@ws-ui/shared 1.11.4 → 1.11.6

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,26 +1,26 @@
1
- "use strict";var yO=Object.defineProperty;var uh=e=>{throw TypeError(e)};var bO=(e,t,r)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>bO(e,typeof t!="symbol"?t+"":t,r),ml=(e,t,r)=>t.has(e)||uh("Cannot "+r);var re=(e,t,r)=>(ml(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)=>(ml(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(ml(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),W=require("react"),Do=require("react-dom"),nt=require("@ws-ui/icons"),sc=require("@emotion/react"),wO=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),xO=Um(Do),Bm=({children:e,container:t=document.body})=>Do.createPortal(e,t);var lh=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},ch=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,It="top",or="bottom",ar="right",Lt="left",Lc="auto",No=[It,or,ar,Lt],vi="start",Ao="end",SO="clippingParents",Hm="viewport",Ui="popper",EO="reference",fh=No.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+Ao])},[]),qm=[].concat(No,[Lc]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+Ao])},[]),_O="beforeRead",OO="read",AO="afterRead",TO="beforeMain",RO="main",PO="afterMain",CO="beforeWrite",kO="write",$O="afterWrite",IO=[_O,OO,AO,TO,RO,PO,CO,kO,$O];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 Mc(e){if(typeof ShadowRoot>"u")return!1;var t=Ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function LO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!ir(s)||!Pr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function MO(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 a=t.elements[i],s=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(a)||!Pr(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(f){a.removeAttribute(f)}))})}}const FO={name:"applyStyles",enabled:!0,phase:"write",fn:LO,effect:MO,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var jn=Math.max,gs=Math.min,yi=Math.round;function uc(){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(uc())}function bi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&ir(e)&&(a=e.offsetWidth>0&&yi(i.width)/e.offsetWidth||1,s=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))/a,m=(i.top+(f&&c?c.offsetTop:0))/s,g=i.width/a,p=i.height/s;return{width:g,height:p,top:m,right:v+g,bottom:m+p,left:v,x:v,y:m}}function Fc(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&&Mc(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 DO(e){return["table","td","th"].indexOf(Pr(e))>=0}function mn(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cs(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(Mc(e)?e.host:null)||mn(e)}function dh(e){return!ir(e)||Gr(e).position==="fixed"?null:e.offsetParent}function NO(e){var t=/firefox/i.test(uc()),r=/Trident/i.test(uc());if(r&&ir(e)){var i=Gr(e);if(i.position==="fixed")return null}var a=Cs(e);for(Mc(a)&&(a=a.host);ir(a)&&["html","body"].indexOf(Pr(a))<0;){var s=Gr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function jo(e){for(var t=Ht(e),r=dh(e);r&&DO(r)&&Gr(r).position==="static";)r=dh(r);return r&&(Pr(r)==="html"||Pr(r)==="body"&&Gr(r).position==="static")?t:r||NO(e)||t}function Dc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,r){return jn(e,gs(t,r))}function jO(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 zO=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 WO(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Tr(r.placement),f=Dc(c),v=[Lt,ar].indexOf(c)>=0,m=v?"height":"width";if(!(!s||!l)){var g=zO(a.padding,r),p=Fc(s),b=f==="y"?It:Lt,x=f==="y"?or:ar,d=r.rects.reference[m]+r.rects.reference[f]-l[f]-r.rects.popper[m],w=l[f]-r.rects.reference[f],h=jo(s),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),M=f;r.modifiersData[i]=(t={},t[M]=U,t.centerOffset=U-k,t)}}function UO(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Gm(t.elements.popper,a)&&(t.elements.arrow=a))}const BO={name:"arrow",enabled:!0,phase:"main",fn:WO,effect:UO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wi(e){return e.split("-")[1]}var HO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qO(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:yi(r*a)/a||0,y:yi(i*a)/a||0}}function ph(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=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",M="clientWidth";if(k===Ht(r)&&(k=mn(r),Gr(k).position!=="static"&&c==="absolute"&&(U="scrollHeight",M="scrollWidth")),k=k,a===It||(a===Lt||a===ar)&&s===Ao){R=or;var F=g&&k===O&&O.visualViewport?O.visualViewport.height:k[U];d-=F-i.height,d*=f?1:-1}if(a===Lt||(a===It||a===or)&&s===Ao){E=ar;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[M];b-=G-i.width,b*=f?1:-1}}var j=Object.assign({position:c},v&&HO),L=m===!0?qO({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 ZO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,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:a,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 GO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZO,data:{}};var Da={passive:!0};function KO(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,f=Ht(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&v.forEach(function(m){m.addEventListener("scroll",r.update,Da)}),c&&f.addEventListener("resize",r.update,Da),function(){s&&v.forEach(function(m){m.removeEventListener("scroll",r.update,Da)}),c&&f.removeEventListener("resize",r.update,Da)}}const VO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KO,data:{}};var YO={left:"right",right:"left",bottom:"top",top:"bottom"};function os(e){return e.replace(/left|right|bottom|top/g,function(t){return YO[t]})}var XO={start:"end",end:"start"};function hh(e){return e.replace(/start|end/g,function(t){return XO[t]})}function Nc(e){var t=Ht(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function jc(e){return bi(mn(e)).left+Nc(e).scrollLeft}function JO(e,t){var r=Ht(e),i=mn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,f=0;if(a){s=a.width,l=a.height;var v=Zm();(v||!v&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:s,height:l,x:c+jc(e),y:f}}function QO(e){var t,r=mn(e),i=Nc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=jn(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=jn(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+jc(e),f=-i.scrollTop;return Gr(a||r).direction==="rtl"&&(c+=jn(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:f}}function zc(e){var t=Gr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Xm(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:ir(e)&&zc(e)?e:Xm(Cs(e))}function So(e,t){var r;t===void 0&&(t=[]);var i=Xm(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ht(i),l=a?[s].concat(s.visualViewport||[],zc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(So(Cs(l)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eA(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?lc(JO(e,r)):Wn(t)?eA(t,r):lc(QO(mn(e)))}function tA(e){var t=So(Cs(e)),r=["absolute","fixed"].indexOf(Gr(e).position)>=0,i=r&&ir(e)?jo(e):e;return Wn(i)?t.filter(function(a){return Wn(a)&&Gm(a,i)&&Pr(a)!=="body"}):[]}function rA(e,t,r,i){var a=t==="clippingParents"?tA(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(f,v){var m=gh(e,v,i);return f.top=jn(m.top,f.top),f.right=gs(m.right,f.right),f.bottom=gs(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,a=i?Tr(i):null,s=i?wi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(a){case It:f={x:l,y:t.y-r.height};break;case or:f={x:l,y:t.y+t.height};break;case ar: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=a?Dc(a):null;if(v!=null){var m=v==="y"?"height":"width";switch(s){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,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,f=c===void 0?SO: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?EO:Ui,E=e.rects.popper,R=e.elements[x?S:p],O=rA(Wn(R)?R:R.contextElement||mn(e.elements.popper),f,m,l),k=bi(e.elements.reference),U=Jm({reference:k,element:E,placement:a}),M=lc(Object.assign({},E,U)),F=p===Ui?M:k,G={top:O.top-F.top+h.top,bottom:F.bottom-O.bottom+h.bottom,left:O.left-F.left+h.left,right:F.right-O.right+h.right},j=e.modifiersData.offset;if(p===Ui&&j){var L=j[a];Object.keys(G).forEach(function(B){var q=[ar,or].indexOf(B)>=0?1:-1,C=[It,or].indexOf(B)>=0?"y":"x";G[B]+=L[C]*q})}return G}function nA(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=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:a,rootBoundary:s,padding:l})[Tr(d)],x},{});return Object.keys(b).sort(function(x,d){return b[x]-b[d]})}function iA(e){if(Tr(e)===Lc)return[];var t=os(e);return[hh(e),t,hh(t)]}function oA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,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?[os(w)]:iA(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Tr(ce)===Lc?nA(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,M=!0,F=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?ar:Lt:B?or:It;O[C]>k[C]&&(Y=os(Y));var te=os(Y),de=[];if(s&&de.push(J[L]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){F=j,M=!1;break}U.set(j,de)}if(M)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 F=fe,"break"},ae=Z;ae>0;ae--){var ue=Q(ae);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const aA={name:"flip",enabled:!0,phase:"main",fn:oA,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,ar,or,Lt].some(function(t){return e[t]>=0})}function sA(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=To(t,{elementContext:"reference"}),c=To(t,{altBoundary:!0}),f=mh(l,i),v=mh(c,a,s),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 uA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sA};function lA(e,t,r){var i=Tr(e),a=[Lt,It].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[Lt,ar].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function cA(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=qm.reduce(function(m,g){return m[g]=lA(g,t.rects,s),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 fA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cA};function dA(e){var t=e.state,r=e.name;t.modifiersData[r]=Jm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const pA={name:"popperOffsets",enabled:!0,phase:"read",fn:dA,data:{}};function hA(e){return e==="x"?"y":"x"}function gA(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,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=Dc(h),O=hA(R),k=t.modifiersData.popperOffsets,U=t.rects.reference,M=t.rects.popper,F=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(s){var B,q=R==="y"?It:Lt,C=R==="y"?or:ar,J=R==="y"?"height":"width",Y=k[R],te=Y+w[q],de=Y-w[C],Z=b?-M[J]/2:0,Q=S===vi?U[J]:M[J],ae=S===vi?-M[J]:-U[J],ue=t.elements.arrow,ne=b&&ue?Fc(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:ae+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?gs(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,Ks=R==="x"?or:ar,Mt=k[O],yt=O==="y"?"height":"width",Kr=Mt+w[Go],wn=Mt-w[Ks],Ai=[It,Lt].indexOf(h)!==-1,Vr=(Gt=j==null?void 0:j[O])!=null?Gt:0,Ko=Ai?Kr:Mt-U[yt]-M[yt]-Vr+G.altAxis,Yr=Ai?Mt+U[yt]+M[yt]-Vr-G.altAxis:wn,$r=b&&Ai?jO(Ko,Mt,Yr):xo(b?Ko:Kr,Mt,b?Yr:wn);k[O]=$r,L[O]=$r-Mt}t.modifiersData[i]=L}}const mA={name:"preventOverflow",enabled:!0,phase:"main",fn:gA,requiresIfExists:["offset"]};function vA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yA(e){return e===Ht(e)||!ir(e)?Nc(e):vA(e)}function bA(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 wA(e,t,r){r===void 0&&(r=!1);var i=ir(t),a=ir(t)&&bA(t),s=mn(t),l=bi(e,a,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Pr(t)!=="body"||zc(s))&&(c=yA(t)),ir(t)?(f=bi(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=jc(s))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function xA(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&a(f)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function SA(e){var t=xA(e);return IO.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function EA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function _A(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.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 OA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?yh:a;return function(c,f,v){v===void 0&&(v=s);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},yh,s),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({},s,m.options,S),m.scrollParents={reference:Wn(c)?So(c):c.contextElement?So(c.contextElement):[],popper:So(f)};var E=SA(_A([].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:wA(S,jo(E),m.options.strategy==="fixed"),popper:Fc(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,M=U===void 0?{}:U,F=O.name;typeof k=="function"&&(m=k({state:m,options:M,name:F,instance:b})||m)}}}},update:EA(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 AA=[VO,pA,GO,FO,fA,aA,mA,BO,uA],TA=OA({defaultModifiers:AA}),Na=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 vl,wh;function RA(){if(wh)return vl;wh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,f,v;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!a(s[f],l[f]))return!1;return!0}var m;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(m=s.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;for(m=s.entries();!(f=m.next()).done;)if(!a(f.value[1],l.get(f.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(m=s.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(s[f]!==l[f])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(v=Object.keys(s),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&&s instanceof Element)return!1;for(f=c;f--!==0;)if(!((v[f]==="_owner"||v[f]==="__v"||v[f]==="__o")&&s.$$typeof)&&!a(s[v[f]],l[v[f]]))return!1;return!0}return s!==s&&l!==l}return vl=function(l,c){try{return a(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},vl}var PA=RA();const CA=Qm(PA);var kA=[],ev=function(t,r,i){i===void 0&&(i={});var a=$.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||kA},l=$.useState({styles:{popper:{position:s.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);xO.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:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[v,{name:"applyStyles",enabled:!1}])};return CA(a.current,p)?a.current||p:(a.current=p,p)},[s.onFirstUpdate,s.placement,s.strategy,s.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||TA,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=>D.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),rv=W.forwardRef(({children:e,style:t,attributes:r},i)=>D.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})),$A=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=W.useState(null),{styles:c,attributes:f}=ev(e,s,{placement:t||"bottom-start"}),v=W.useCallback(()=>{a&&a()},[a]);return r?D.jsxs(Bm,{children:[D.jsx(tv,{onClick:()=>v()}),D.jsx(rv,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var yl={exports:{}};/*!
1
+ "use strict";var bO=Object.defineProperty;var uh=e=>{throw TypeError(e)};var wO=(e,t,r)=>t in e?bO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>wO(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 D=require("react/jsx-runtime"),W=require("react"),Do=require("react-dom"),nt=require("@ws-ui/icons"),uc=require("@emotion/react"),xO=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),SO=Um(Do),Bm=({children:e,container:t=document.body})=>Do.createPortal(e,t);var lh=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},ch=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,It="top",or="bottom",ar="right",Lt="left",Mc="auto",No=[It,or,ar,Lt],vi="start",Ao="end",EO="clippingParents",Hm="viewport",Ui="popper",_O="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])},[]),OO="beforeRead",AO="read",TO="afterRead",RO="beforeMain",PO="main",CO="afterMain",kO="beforeWrite",$O="write",IO="afterWrite",LO=[OO,AO,TO,RO,PO,CO,kO,$O,IO];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 MO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!ir(s)||!Pr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function FO(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 a=t.elements[i],s=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(a)||!Pr(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(f){a.removeAttribute(f)}))})}}const DO={name:"applyStyles",enabled:!0,phase:"write",fn:MO,effect:FO,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var jn=Math.max,gs=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(),a=1,s=1;t&&ir(e)&&(a=e.offsetWidth>0&&yi(i.width)/e.offsetWidth||1,s=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))/a,m=(i.top+(f&&c?c.offsetTop:0))/s,g=i.width/a,p=i.height/s;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 NO(e){return["table","td","th"].indexOf(Pr(e))>=0}function mn(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ks(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 jO(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 a=ks(e);for(Fc(a)&&(a=a.host);ir(a)&&["html","body"].indexOf(Pr(a))<0;){var s=Gr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function jo(e){for(var t=Ht(e),r=dh(e);r&&NO(r)&&Gr(r).position==="static";)r=dh(r);return r&&(Pr(r)==="html"||Pr(r)==="body"&&Gr(r).position==="static")?t:r||jO(e)||t}function Nc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,r){return jn(e,gs(t,r))}function zO(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 WO=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 UO(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Tr(r.placement),f=Nc(c),v=[Lt,ar].indexOf(c)>=0,m=v?"height":"width";if(!(!s||!l)){var g=WO(a.padding,r),p=Dc(s),b=f==="y"?It:Lt,x=f==="y"?or:ar,d=r.rects.reference[m]+r.rects.reference[f]-l[f]-r.rects.popper[m],w=l[f]-r.rects.reference[f],h=jo(s),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),M=f;r.modifiersData[i]=(t={},t[M]=U,t.centerOffset=U-k,t)}}function BO(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Gm(t.elements.popper,a)&&(t.elements.arrow=a))}const HO={name:"arrow",enabled:!0,phase:"main",fn:UO,effect:BO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wi(e){return e.split("-")[1]}var qO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZO(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:yi(r*a)/a||0,y:yi(i*a)/a||0}}function ph(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=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",M="clientWidth";if(k===Ht(r)&&(k=mn(r),Gr(k).position!=="static"&&c==="absolute"&&(U="scrollHeight",M="scrollWidth")),k=k,a===It||(a===Lt||a===ar)&&s===Ao){R=or;var F=g&&k===O&&O.visualViewport?O.visualViewport.height:k[U];d-=F-i.height,d*=f?1:-1}if(a===Lt||(a===It||a===or)&&s===Ao){E=ar;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[M];b-=G-i.width,b*=f?1:-1}}var j=Object.assign({position:c},v&&qO),L=m===!0?ZO({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 GO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,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:a,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 KO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GO,data:{}};var Da={passive:!0};function VO(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,f=Ht(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&v.forEach(function(m){m.addEventListener("scroll",r.update,Da)}),c&&f.addEventListener("resize",r.update,Da),function(){s&&v.forEach(function(m){m.removeEventListener("scroll",r.update,Da)}),c&&f.removeEventListener("resize",r.update,Da)}}const YO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VO,data:{}};var XO={left:"right",right:"left",bottom:"top",top:"bottom"};function os(e){return e.replace(/left|right|bottom|top/g,function(t){return XO[t]})}var JO={start:"end",end:"start"};function hh(e){return e.replace(/start|end/g,function(t){return JO[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 QO(e,t){var r=Ht(e),i=mn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,f=0;if(a){s=a.width,l=a.height;var v=Zm();(v||!v&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:s,height:l,x:c+zc(e),y:f}}function eA(e){var t,r=mn(e),i=jc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=jn(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=jn(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+zc(e),f=-i.scrollTop;return Gr(a||r).direction==="rtl"&&(c+=jn(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:f}}function Wc(e){var t=Gr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Xm(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:ir(e)&&Wc(e)?e:Xm(ks(e))}function So(e,t){var r;t===void 0&&(t=[]);var i=Xm(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ht(i),l=a?[s].concat(s.visualViewport||[],Wc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(So(ks(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 tA(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(QO(e,r)):Wn(t)?tA(t,r):cc(eA(mn(e)))}function rA(e){var t=So(ks(e)),r=["absolute","fixed"].indexOf(Gr(e).position)>=0,i=r&&ir(e)?jo(e):e;return Wn(i)?t.filter(function(a){return Wn(a)&&Gm(a,i)&&Pr(a)!=="body"}):[]}function nA(e,t,r,i){var a=t==="clippingParents"?rA(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(f,v){var m=gh(e,v,i);return f.top=jn(m.top,f.top),f.right=gs(m.right,f.right),f.bottom=gs(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,a=i?Tr(i):null,s=i?wi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(a){case It:f={x:l,y:t.y-r.height};break;case or:f={x:l,y:t.y+t.height};break;case ar: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=a?Nc(a):null;if(v!=null){var m=v==="y"?"height":"width";switch(s){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,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,f=c===void 0?EO: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?_O:Ui,E=e.rects.popper,R=e.elements[x?S:p],O=nA(Wn(R)?R:R.contextElement||mn(e.elements.popper),f,m,l),k=bi(e.elements.reference),U=Jm({reference:k,element:E,placement:a}),M=cc(Object.assign({},E,U)),F=p===Ui?M:k,G={top:O.top-F.top+h.top,bottom:F.bottom-O.bottom+h.bottom,left:O.left-F.left+h.left,right:F.right-O.right+h.right},j=e.modifiersData.offset;if(p===Ui&&j){var L=j[a];Object.keys(G).forEach(function(B){var q=[ar,or].indexOf(B)>=0?1:-1,C=[It,or].indexOf(B)>=0?"y":"x";G[B]+=L[C]*q})}return G}function iA(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=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:a,rootBoundary:s,padding:l})[Tr(d)],x},{});return Object.keys(b).sort(function(x,d){return b[x]-b[d]})}function oA(e){if(Tr(e)===Mc)return[];var t=os(e);return[hh(e),t,hh(t)]}function aA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,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?[os(w)]:oA(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Tr(ce)===Mc?iA(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,M=!0,F=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?ar:Lt:B?or:It;O[C]>k[C]&&(Y=os(Y));var te=os(Y),de=[];if(s&&de.push(J[L]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){F=j,M=!1;break}U.set(j,de)}if(M)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 F=fe,"break"},ae=Z;ae>0;ae--){var ue=Q(ae);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const sA={name:"flip",enabled:!0,phase:"main",fn:aA,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,ar,or,Lt].some(function(t){return e[t]>=0})}function uA(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=To(t,{elementContext:"reference"}),c=To(t,{altBoundary:!0}),f=mh(l,i),v=mh(c,a,s),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 lA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uA};function cA(e,t,r){var i=Tr(e),a=[Lt,It].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[Lt,ar].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function fA(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=qm.reduce(function(m,g){return m[g]=cA(g,t.rects,s),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 dA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fA};function pA(e){var t=e.state,r=e.name;t.modifiersData[r]=Jm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hA={name:"popperOffsets",enabled:!0,phase:"read",fn:pA,data:{}};function gA(e){return e==="x"?"y":"x"}function mA(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,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=gA(R),k=t.modifiersData.popperOffsets,U=t.rects.reference,M=t.rects.popper,F=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(s){var B,q=R==="y"?It:Lt,C=R==="y"?or:ar,J=R==="y"?"height":"width",Y=k[R],te=Y+w[q],de=Y-w[C],Z=b?-M[J]/2:0,Q=S===vi?U[J]:M[J],ae=S===vi?-M[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:ae+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?gs(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,Vs=R==="x"?or:ar,Mt=k[O],yt=O==="y"?"height":"width",Kr=Mt+w[Go],wn=Mt-w[Vs],Ai=[It,Lt].indexOf(h)!==-1,Vr=(Gt=j==null?void 0:j[O])!=null?Gt:0,Ko=Ai?Kr:Mt-U[yt]-M[yt]-Vr+G.altAxis,Yr=Ai?Mt+U[yt]+M[yt]-Vr-G.altAxis:wn,$r=b&&Ai?zO(Ko,Mt,Yr):xo(b?Ko:Kr,Mt,b?Yr:wn);k[O]=$r,L[O]=$r-Mt}t.modifiersData[i]=L}}const vA={name:"preventOverflow",enabled:!0,phase:"main",fn:mA,requiresIfExists:["offset"]};function yA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bA(e){return e===Ht(e)||!ir(e)?jc(e):yA(e)}function wA(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 xA(e,t,r){r===void 0&&(r=!1);var i=ir(t),a=ir(t)&&wA(t),s=mn(t),l=bi(e,a,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Pr(t)!=="body"||Wc(s))&&(c=bA(t)),ir(t)?(f=bi(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=zc(s))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function SA(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&a(f)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function EA(e){var t=SA(e);return LO.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function _A(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function OA(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.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 AA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?yh:a;return function(c,f,v){v===void 0&&(v=s);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},yh,s),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({},s,m.options,S),m.scrollParents={reference:Wn(c)?So(c):c.contextElement?So(c.contextElement):[],popper:So(f)};var E=EA(OA([].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:xA(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,M=U===void 0?{}:U,F=O.name;typeof k=="function"&&(m=k({state:m,options:M,name:F,instance:b})||m)}}}},update:_A(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 TA=[YO,hA,KO,DO,dA,sA,vA,HO,lA],RA=AA({defaultModifiers:TA}),Na=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 PA(){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 a(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,f,v;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!a(s[f],l[f]))return!1;return!0}var m;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(m=s.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;for(m=s.entries();!(f=m.next()).done;)if(!a(f.value[1],l.get(f.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(m=s.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(s[f]!==l[f])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(v=Object.keys(s),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&&s instanceof Element)return!1;for(f=c;f--!==0;)if(!((v[f]==="_owner"||v[f]==="__v"||v[f]==="__o")&&s.$$typeof)&&!a(s[v[f]],l[v[f]]))return!1;return!0}return s!==s&&l!==l}return yl=function(l,c){try{return a(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 CA=PA();const kA=Qm(CA);var $A=[],ev=function(t,r,i){i===void 0&&(i={});var a=$.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||$A},l=$.useState({styles:{popper:{position:s.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);SO.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:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[v,{name:"applyStyles",enabled:!1}])};return kA(a.current,p)?a.current||p:(a.current=p,p)},[s.onFirstUpdate,s.placement,s.strategy,s.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||RA,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=>D.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),rv=W.forwardRef(({children:e,style:t,attributes:r},i)=>D.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})),IA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=W.useState(null),{styles:c,attributes:f}=ev(e,s,{placement:t||"bottom-start"}),v=W.useCallback(()=>{a&&a()},[a]);return r?D.jsxs(Bm,{children:[D.jsx(tv,{onClick:()=>v()}),D.jsx(rv,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var bl={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 s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=a(s,i(c)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=a(l,c));return l}function a(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(yl)),yl.exports}var IA=nv();const We=Qm(IA);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 LA=["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:"“"},MA=["style","script","pre"],FA=["src","href","data","formAction","srcDoc","action"],DA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,NA=/\n{2,}$/,_h=/^(\s*>[\s\S]*?)(?=\n\n|$)/,jA=/^ *> ?/gm,zA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,WA=/^ {2,}\n/,UA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Oh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ah=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,BA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,HA=/^(?:\n *)*\n/,qA=/\r\n?/g,ZA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,GA=/^\[\^([^\]]+)]/,KA=/\f/g,VA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,YA=/^\s*?\[(x|\s)\]/,Th=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Rh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ph=/^([^\n]+)\n *(=|-)\2{2,} *\n/,bl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,XA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ch=/^<!--[\s\S]*?(?:-->)/,JA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,wl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,QA=/^\{.*\}$/,eT=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,tT=/^<([^ >]+[:@\/][^ >]+)>/,rT=/-([a-z])?/gi,kh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,nT=/^[^\n]+(?: \n|\n{2,})/,iT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,oT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,aT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,sT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,uT=/\t/g,lT=/(^ *\||\| *$)/g,cT=/^ *:-+: *$/,fT=/^ *:-+ *$/,dT=/^ *-+: *$/,ks=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,$s="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",pT=RegExp(`^([*_])\\1${ks(1)}${$s}\\1\\1(?!\\1)`),hT=RegExp(`^([*_])${ks(0)}${$s}\\1(?!\\1)`),gT=RegExp(`^(==)${ks(0)}${$s}\\1`),mT=RegExp(`^(~~)${ks(0)}${$s}\\1`),vT=/^(:[a-zA-Z0-9-_]+:)/,yT=/^\\([^0-9A-Za-z\s])/,bT=/\\([^0-9A-Za-z\s])/g,wT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,xT=/^\n+/,ST=/^([ \t]*)/,ET=/(?:^|\n)( *)$/,Wc="(?:\\d+\\.)",Uc="(?:[*+-])";function iv(e){return"( *)("+(e===1?Wc:Uc)+") +"}const ov=iv(1),av=iv(2);function sv(e){return RegExp("^"+(e===1?ov:av))}const _T=sv(1),OT=sv(2);function uv(e){return RegExp("^"+(e===1?ov:av)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Wc:Uc)+" )[^\\n]*)*(\\n|$)","gm")}const AT=uv(1),TT=uv(2);function lv(e){const t=e===1?Wc:Uc;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,a=r?AT:TT,s=r?_T:OT;return{t:l=>s.test(l),o:xi(function(l,c){const f=ET.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(NA,`
5
+ */var xh;function nv(){return xh||(xh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=a(s,i(c)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=a(l,c));return l}function a(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(bl)),bl.exports}var LA=nv();const We=Qm(LA);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 MA=["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:"“"},FA=["style","script","pre"],DA=["src","href","data","formAction","srcDoc","action"],NA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,jA=/\n{2,}$/,_h=/^(\s*>[\s\S]*?)(?=\n\n|$)/,zA=/^ *> ?/gm,WA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,UA=/^ {2,}\n/,BA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Oh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ah=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,HA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,qA=/^(?:\n *)*\n/,ZA=/\r\n?/g,GA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,KA=/^\[\^([^\]]+)]/,VA=/\f/g,YA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,XA=/^\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,JA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ch=/^<!--[\s\S]*?(?:-->)/,QA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,xl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,eT=/^\{.*\}$/,tT=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,rT=/^<([^ >]+[:@\/][^ >]+)>/,nT=/-([a-z])?/gi,kh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,iT=/^[^\n]+(?: \n|\n{2,})/,oT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,aT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,sT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,uT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,lT=/\t/g,cT=/(^ *\||\| *$)/g,fT=/^ *:-+: *$/,dT=/^ *:-+ *$/,pT=/^ *-+: *$/,$s=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Is="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",hT=RegExp(`^([*_])\\1${$s(1)}${Is}\\1\\1(?!\\1)`),gT=RegExp(`^([*_])${$s(0)}${Is}\\1(?!\\1)`),mT=RegExp(`^(==)${$s(0)}${Is}\\1`),vT=RegExp(`^(~~)${$s(0)}${Is}\\1`),yT=/^(:[a-zA-Z0-9-_]+:)/,bT=/^\\([^0-9A-Za-z\s])/,wT=/\\([^0-9A-Za-z\s])/g,xT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,ST=/^\n+/,ET=/^([ \t]*)/,_T=/(?:^|\n)( *)$/,Uc="(?:\\d+\\.)",Bc="(?:[*+-])";function iv(e){return"( *)("+(e===1?Uc:Bc)+") +"}const ov=iv(1),av=iv(2);function sv(e){return RegExp("^"+(e===1?ov:av))}const OT=sv(1),AT=sv(2);function uv(e){return RegExp("^"+(e===1?ov:av)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Uc:Bc)+" )[^\\n]*)*(\\n|$)","gm")}const TT=uv(1),RT=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,a=r?TT:RT,s=r?OT:AT;return{t:l=>s.test(l),o:xi(function(l,c){const f=_T.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(jA,`
6
6
  `).match(a);let g=!1;return{items:m.map(function(p,b){const x=s.exec(p)[0].length,d=RegExp("^ {1,"+x+"}","gm"),w=p.replace(d,"").replace(s,""),h=b===m.length-1,S=w.indexOf(`
7
7
 
8
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)+`
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 RT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),PT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;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 as(e,t){return e.startsWith(t)}function CT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(as(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 kT(e){return dT.test(e)?"right":cT.test(e)?"center":fT.test(e)?"left":null}function Lh(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const f=s[s.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&&s.push([]):l+=f}),c(),r.inTable=a,s}function $T(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(lT,"").split("|").map(kT):[],a=e[3]?(function(l,c,f){return l.trim().split(`
11
- `).map(function(v){return Lh(v,c,f,!0)})})(e[3],t,r):[],s=Lh(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:"25"}:{children:s,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 sn(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 ja(e){return xi(function(t){return e.exec(t)})}const IT=/(javascript|vbscript|data(?!:image)):/i;function LT(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(IT.test(t))return null}catch{return null}return e}function wr(e){return e&&e.replace(bT,"$1")}function ss(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function MT(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function FT(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const xl=(e,t,r)=>({children:ss(t,e[2],r)});function Sl(){return{}}function El(){return null}function DT(...e){return e.filter(Boolean).join(" ")}function _l(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}function NT(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Mn({},Eh,t.namedCodesToUnicode):Eh;const r=t.slugify||Bi,i=t.sanitizer||LT,a=t.createElement||$.createElement,s=[_h,Oh,Ah,t.enforceAtxHeadings?Rh:Th,Ph,kh,cv,fv],l=[...s,nT,bl,Ch,wl];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=_l(t.overrides,h+".props",{});return a((function(O,k){const U=_l(k,O);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:_l(k,O+".component",O):O})(h,t.overrides),Mn({},S,R,{className:DT(S==null?void 0:S.className,R.className)||void 0}),...E)}function v(h){h=h.replace(VA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=sT.test(h)===!1);const E=d(x(S?h:Eo(h).replace(xT,"")+`
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 PT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),CT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;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 as(e,t){return e.startsWith(t)}function kT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(as(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 $T(e){return pT.test(e)?"right":fT.test(e)?"center":dT.test(e)?"left":null}function Lh(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const f=s[s.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&&s.push([]):l+=f}),c(),r.inTable=a,s}function IT(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(cT,"").split("|").map($T):[],a=e[3]?(function(l,c,f){return l.trim().split(`
11
+ `).map(function(v){return Lh(v,c,f,!0)})})(e[3],t,r):[],s=Lh(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:"25"}:{children:s,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 sn(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 ja(e){return xi(function(t){return e.exec(t)})}const LT=/(javascript|vbscript|data(?!:image)):/i;function MT(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(LT.test(t))return null}catch{return null}return e}function wr(e){return e&&e.replace(wT,"$1")}function ss(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function FT(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function DT(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const Sl=(e,t,r)=>({children:ss(t,e[2],r)});function El(){return{}}function _l(){return null}function NT(...e){return e.filter(Boolean).join(" ")}function Ol(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}function jT(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Mn({},Eh,t.namedCodesToUnicode):Eh;const r=t.slugify||Bi,i=t.sanitizer||MT,a=t.createElement||$.createElement,s=[_h,Oh,Ah,t.enforceAtxHeadings?Rh:Th,Ph,kh,cv,fv],l=[...s,iT,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 a((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:NT(S==null?void 0:S.className,R.className)||void 0}),...E)}function v(h){h=h.replace(YA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=uT.test(h)===!1);const E=d(x(S?h:Eo(h).replace(ST,"")+`
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 a(R,{key:"outer"},O)}function m(h,S){if(!S||!S.trim())return null;const E=S.match(DA);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const U=(function(j){return j.indexOf("-")!==-1&&j.match(JA)===null&&(j=j.replace(rT,function(L,B){return B.toUpperCase()})),j})(O.slice(0,k)).trim(),M=(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()),F=Sh[U]||U;if(F==="ref")return R;const G=R[F]=(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 ae=0;ae<C.length;ae++){const ue=C[ae];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 ae=Q.indexOf(":");if(ae>0){const ue=Q.slice(0,ae).trim(),ne=Q.slice(ae+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},{}):FA.indexOf(L)!==-1?q(wr(B),j,L):(B.match(QA)&&(B=wr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(h,U,M,i);typeof G=="string"&&(bl.test(G)||wl.test(G))&&(R[F]=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(jA,"").match(zA);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:ja(WA),i:1,u:Sl,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Ur(UA),i:1,u:Sl,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:sn(BA),i:3,u:h=>({text:wr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:Ur(ZA),i:0,u:h=>(g.push({footnote:h[2],identifier:h[1]}),{}),l:El},7:{t:["[^"],o:Cn(GA),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(YA),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:ss(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:ss(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ja(bl),i:1,u(h,S,E){const[,R]=h[3].match(ST),O=RegExp("^"+R,"gm"),k=h[3].replace(O,""),U=c(l,k)?FT:ss,M=h[1].toLowerCase(),F=MA.indexOf(M)!==-1,G=(F?M:h[1]).trim(),j={attrs:m(G,h[2]),noInnerParse:F,tag:G};if(E.inAnchor=E.inAnchor||M==="a",F)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:ja(wl),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:ja(Ch),i:1,u:()=>({}),l:El},14:{t:["!["],o:sn(PT),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(RT),i:3,u:(h,S,E)=>({children:MT(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(tT),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&&(as(h,"http://")||as(h,"https://")),o:Cn(eT),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(HA),i:3,u:Sl,l:()=>`
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 a(R,{key:"outer"},O)}function m(h,S){if(!S||!S.trim())return null;const E=S.match(NA);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const U=(function(j){return j.indexOf("-")!==-1&&j.match(QA)===null&&(j=j.replace(nT,function(L,B){return B.toUpperCase()})),j})(O.slice(0,k)).trim(),M=(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()),F=Sh[U]||U;if(F==="ref")return R;const G=R[F]=(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 ae=0;ae<C.length;ae++){const ue=C[ae];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 ae=Q.indexOf(":");if(ae>0){const ue=Q.slice(0,ae).trim(),ne=Q.slice(ae+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},{}):DA.indexOf(L)!==-1?q(wr(B),j,L):(B.match(eT)&&(B=wr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(h,U,M,i);typeof G=="string"&&(wl.test(G)||xl.test(G))&&(R[F]=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(zA,"").match(WA);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:ja(UA),i:1,u:El,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Ur(BA),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:sn(HA),i:3,u:h=>({text:wr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:Ur(GA),i:0,u:h=>(g.push({footnote:h[2],identifier:h[1]}),{}),l:_l},7:{t:["[^"],o:Cn(KA),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(XA),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:ss(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:ss(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ja(wl),i:1,u(h,S,E){const[,R]=h[3].match(ET),O=RegExp("^"+R,"gm"),k=h[3].replace(O,""),U=c(l,k)?DT:ss,M=h[1].toLowerCase(),F=FA.indexOf(M)!==-1,G=(F?M:h[1]).trim(),j={attrs:m(G,h[2]),noInnerParse:F,tag:G};if(E.inAnchor=E.inAnchor||M==="a",F)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:ja(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:ja(Ch),i:1,u:()=>({}),l:_l},14:{t:["!["],o:sn(CT),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(PT),i:3,u:(h,S,E)=>({children:FT(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(rT),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&&(as(h,"http://")||as(h,"https://")),o:Cn(tT),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(qA),i:3,u:El,l:()=>`
16
16
  `},21:{o:xi(function(h,S){if(S.inline||S.simple||S.inHTML&&h.indexOf(`
17
17
 
18
18
  `)===-1&&S.prevCapture.indexOf(`
19
19
 
20
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(s,U)||(E+=U,k===-1||!U.trim()))break;R=k+1}const O=Eo(E);return O===""?null:[E,,O]}),i:3,u:xl,l:(h,S,E)=>f("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Cn(iT),i:0,u:h=>(p[h[1]]={target:h[2],title:h[4]},{}),l:El},23:{t:["!["],o:sn(oT),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(aT),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:$T,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,M){return f("td",{key:M,style:Mh(R,M)},S(U,E))}))})))}},27:{o:xi(function(h,S){let E;return as(h,":")&&(E=vT.exec(h)),E||wT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(XA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:sn(pT),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:sn(hT),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:sn(yT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:sn(gT),i:3,u:xl,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:sn(mT),i:3,u:xl,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 M=S[U],F=h[M];if(!F.t||CT(R,O,F.t)){var G=F.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var j=F.u(G,E,O);O.prevCapture+=G[0],j.type||(j.type=M),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(qA,`
22
- `).replace(KA,"").replace(uT," ")})(R),O)}})(b),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,U=[];let M=!1;for(let F=0;F<R.length;F++){O.key=F;const G=E(R[F],O),j=Ih(G);j&&M?U[U.length-1]+=G:G!==null&&U.push(G),M=j}return O.key=k,U}return(function(k,U,M){const F=h[k.type].l;return S?S(()=>F(k,U,M),k,U,M):F(k,U,M)})(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 ms=e=>{let{children:t="",options:r}=e,i=(function(a,s){if(a==null)return{};var l,c,f={},v=Object.keys(a);for(c=0;c<v.length;c++)s.indexOf(l=v[c])>=0||(f[l]=a[l]);return f})(e,LA);return $.cloneElement(NT(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 D.jsx(t,{className:We("flex-none size-6",r)});switch(e){case"error":case"danger":return D.jsx(nt.FdSanityCheckInfo,{className:We("flex-none size-6",r)});case"info":return D.jsx(D.Fragment,{children:D.jsx(nt.FdInfoBold,{className:We("flex-none size-6",r)})});case"warning":return D.jsx(D.Fragment,{children:D.jsx(nt.FdWarningDanger,{className:We("flex-none size-6",r)})});case"message":return D.jsx(D.Fragment,{children:D.jsx(nt.FdInfoBold,{className:We("flex-none size-6",r)})});default:return null}},jT=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>D.jsx("button",{onClick:t,className:We("flex justify-center p-1",c),children:D.jsx(nt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return D.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"?D.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[D.jsx("div",{className:"pt-1",children:D.jsx(Fh,{kind:r,customIcon:s})}),D.jsx("div",{className:"flex items-center gap-1 prose",children:a?D.jsx(ms,{children:i}):D.jsx(D.Fragment,{children:i})}),l()]}):D.jsxs("div",{className:"flex items-start",children:[D.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>D.jsxs(D.Fragment,{children:[c.title&&D.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[D.jsx(Fh,{kind:r,customIcon:s}),D.jsxs("span",{children:[c.title," :"]})]}),D.jsx("ul",{className:We("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>D.jsx("li",{children:a?D.jsx(ms,{children:f}):D.jsx(D.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},dv=({children:e,size:t,className:r,...i})=>D.jsx("div",{style:{"--width":`${t||24}px`},className:We("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Ol={},Hi={},za={},Dh;function pv(){if(Dh)return za;Dh=1,Object.defineProperty(za,"__esModule",{value:!0}),za.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 za}var li={},qi={},Zi={},Nh;function zT(){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 Is(){if(jh)return qi;jh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(zT());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){return typeof a=="string"&&e.default.test(a)}var i=r;return qi.default=i,qi}var zh;function Ls(){if(zh)return li;zh=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0,li.unsafeStringify=i;var e=t(Is());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 a(l,c=0){const f=i(l,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var s=a;return li.default=s,li}var Wh;function WT(){if(Wh)return Hi;Wh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=r(pv()),t=Ls();function r(v){return v&&v.__esModule?v:{default:v}}let i,a,s=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:a;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=a=(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-s+(h-l)/1e4;if(S<0&&v.clockseq===void 0&&(d=d+1&16383),(S<0||w>s)&&v.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=w,l=h,a=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(Is());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(a.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(a.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(a.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(a.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var 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=Ls(),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 a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";un.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";un.URL=s;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=a,m.URL=s,m}return un}var Vi={},Hh;function UT(){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(a(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=s(d,R),w=s(w,O),h=s(h,k),S=s(S,U)}return[d,w,h,S]}function a(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 s(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 s(l(s(s(x,b),s(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 BT(){if(qh)return Gi;qh=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=r(gv()),t=r(UT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v3",48,t.default);return Gi.default=a,Gi}var Yi={},Xi={},Zh;function HT(){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 qT(){if(Gh)return Yi;Gh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=i(HT()),t=i(pv()),r=Ls();function i(l){return l&&l.__esModule?l:{default:l}}function a(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 s=a;return Yi.default=s,Yi}var Ji={},Qi={},Kh;function ZT(){if(Kh)return Qi;Kh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(a,s,l,c){switch(a){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(a,s){return a<<s|a>>>32-s}function r(a){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const m=unescape(encodeURIComponent(a));a=[];for(let g=0;g<m.length;++g)a.push(m.charCodeAt(g))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const c=a.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]=a[m*64+p*4]<<24|a[m*64+p*4+1]<<16|a[m*64+p*4+2]<<8|a[m*64+p*4+3];v[m]=g}v[f-1][14]=(a.length-1)*8/Math.pow(2,32),v[f-1][14]=Math.floor(v[f-1][14]),v[f-1][15]=(a.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+s[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 GT(){if(Vh)return Ji;Vh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=r(gv()),t=r(ZT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v5",80,t.default);return Ji.default=a,Ji}var eo={},Yh;function KT(){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 VT(){if(Xh)return to;Xh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=t(Is());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var i=r;return to.default=i,to}var Jh;function YT(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return 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 a.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(WT()),r=m(BT()),i=m(qT()),a=m(GT()),s=m(KT()),l=m(VT()),c=m(Is()),f=m(Ls()),v=m(hv());function m(g){return g&&g.__esModule?g:{default:g}}})(Ol)),Ol}var Al,Qh;function XT(){if(Qh)return Al;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,a,s={},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++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,a=0,r=0;r<f;r++)i=i*l+s[r],i>=c?(s[a++]=parseInt(i/c,10),i=i%c):a>0&&(s[a++]=0);f=a,v=this.dstAlphabet.slice(i,i+1).concat(v)}while(a!==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},Al=e,Al}var Tl,eg;function JT(){if(eg)return Tl;eg=1;var e=XT();function t(r,i){var a=new e(r,i);return function(s){return a.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Tl=t,Tl}var Rl,tg;function QT(){if(tg)return Rl;tg=1;const{v4:e,validate:t}=YT(),r=JT(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let s;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 Rl=(()=>{const v=(m,g)=>{const p=m||i.flickrBase58,b={...a,...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,M=O.split("").every(F=>p.includes(F));return k===!1?U&&M:U&&M&&t(c(O,h))}};return Object.freeze(R),R};return v.constants=i,v.uuid=e,v.generate=()=>(s||(s=v(i.flickrBase58).generate),s()),v})(),Rl}var Bc=QT();const mv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:a="rgb(241, 245, 249)"})=>{const s=`indent_line_${Bc.generate()}`;return D.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[D.jsx("defs",{children:D.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:D.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:a})})}),i?D.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):D.jsx("rect",{fill:i?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},vv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?D.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return D.jsx(nt.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?D.jsx(nt.FdDown,{}):D.jsx(nt.FdRight,{});default:return D.jsx(nt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):D.jsx("div",{className:"flex h-6 w-3 items-center"}),Hc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,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,a,s):rR(e,t,m,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"flex items-center space-x-2",children:g},f),tR(v||[],t,s,r,i,m.expanded,a,c,l)]}):null},eR=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=D.jsx(dv,{children:i})),D.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,D.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&D.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},tR=function(e,t,r,i,a,s,l,c,f){return e.length&&s?e.map(v=>D.jsx(Hc,{actions:l,node:v,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:f},v.key)):null},rR=function(e,t,r,i){return D.jsxs(D.Fragment,{children:[D.jsx(mv,{showLines:!0,depth:t}),D.jsx(vv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),eR(e,i)]})},Wa=e=>t=>e===t,nR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,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(Wa(h.key));let E=[];S===-1?(E=[...m.expandedKeys,h.key],g(()=>({...m,expandedKeys:E})),a&&a(E)):(E=m.expandedKeys.filter(R=>R!==h.key),g(()=>({...m,expandedKeys:E})),a&&a(E))},[m]),b=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Wa(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(Wa(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(Wa(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 D.jsx("div",{className:We("fd-tree",v,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>D.jsx(Hc,{node:h,searchQuery:s||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function us(e){return e.of&&e.children?D.jsx(D.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 iR(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=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(a){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 oR={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 aR=/[A-Z]|^ms/g,sR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bv=function(t){return t.charCodeAt(1)===45},rg=function(t){return t!=null&&typeof t!="boolean"},Pl=yv(function(e){return bv(e)?e:e.replace(aR,"-$&").toLowerCase()}),ng=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sR,function(i,a,s){return _r={name:a,styles:s,next:_r},a})}return oR[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 a=r;if(a.anim===1)return _r={name:a.name,styles:a.styles,next:_r},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=s.styles+";";return c}return uR(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 uR(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=Ro(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":rg(c)&&(i+=Pl(s)+":"+ng(s,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+=Pl(s)+":"+ng(s,l[f])+";");else{var v=Ro(e,t,l);switch(s){case"animation":case"animationName":{i+=Pl(s)+":"+v+";";break}default:i+=s+"{"+v+"}"}}}return i}var ig=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function lR(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,a="";_r=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=Ro(r,t,s);else{var l=s;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=Ro(r,t,e[c]),i){var f=s;a+=f[c]}ig.lastIndex=0;for(var v="",m;(m=ig.exec(a))!==null;)v+="-"+m[1];var g=iR(a)+v;return{name:g,styles:a,next:_r}}var cR=function(t){return t()},fR=$.useInsertionEffect?$.useInsertionEffect:!1,dR=fR||cR,pR=!0;function hR(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var wv=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||pR===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},gR=function(t,r,i){wv(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},mR=/^((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)-.*))$/,vR=yv(function(e){return mR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),yR=vR,bR=function(t){return t!=="theme"},og=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yR:bR},ag=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},wR=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return wv(r,i,a),dR(function(){return gR(r,i,a)}),null},xR=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=ag(t,r,i),f=c||og(a),v=!f("as");return function(){var m=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&g.push("label:"+s+";"),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=sc.withEmotionCache(function(w,h,S){var E=v&&w.as||a,R="",O=[],k=w;if(w.theme==null){k={};for(var U in w)k[U]=w[U];k.theme=$.useContext(sc.ThemeContext)}typeof w.className=="string"?R=hR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=lR(g.concat(O),h.registered,k);R+=h.key+"-"+M.name,l!==void 0&&(R+=" "+l);var F=v&&c===void 0?og(E):f,G={};for(var j in w)v&&j==="as"||F(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(wR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,G))});return d.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=a,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:ag(d,h,!0)}));return S.apply(void 0,g)},d}},SR=["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"],vs=xR.bind(null);SR.forEach(function(e){vs[e]=vs(e)});var ER=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Ua=new WeakMap,Ba={},Cl=0,xv=function(e){return e&&(e.host||xv(e.parentNode))},_R=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})},OR=function(e,t,r,i){var a=_R(t,Array.isArray(e)?e:[e]);Ba[r]||(Ba[r]=new WeakMap);var s=Ba[r],l=[],c=new Set,f=new Set(a),v=function(g){!g||c.has(g)||(c.add(g),v(g.parentNode))};a.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=(s.get(p)||0)+1;ci.set(p,d),s.set(p,w),l.push(p),d===1&&x&&Ua.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(),Cl++,function(){l.forEach(function(g){var p=ci.get(g)-1,b=s.get(g)-1;ci.set(g,p),s.set(g,b),p||(Ua.has(g)||g.removeAttribute(i),Ua.delete(g)),b||g.removeAttribute(r)}),Cl--,Cl||(ci=new WeakMap,ci=new WeakMap,Ua=new WeakMap,Ba={})}},AR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=ER(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),OR(i,a,r,"aria-hidden")):function(){return null}},cc=function(e,t){return cc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},cc(e,t)};function Ms(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cc(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,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}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 a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function fc(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 dc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function ys(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var ls="right-scroll-bar-position",cs="width-before-scroll-bar",TR="with-scroll-bars-hidden",RR="--removed-body-scroll-bar-size";function kl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PR(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var CR=typeof window<"u"?$.useLayoutEffect:$.useEffect,sg=new WeakMap;function kR(e,t){var r=PR(null,function(i){return e.forEach(function(a){return kl(a,i)})});return CR(function(){var i=sg.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(c){s.has(c)||kl(c,null)}),s.forEach(function(c){a.has(c)||kl(c,l)})}sg.set(r,e)},[e]),r}function $R(e){return e}function IR(e,t){t===void 0&&(t=$R);var r=[],i=!1,a={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(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var f=function(){var m=l;l=[],m.forEach(s)},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 a}function LR(e){e===void 0&&(e={});var t=IR(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 MR(e,t){return e.useMedium(t),Ev}var _v=LR(),$l=function(){},Fs=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:$l,onWheelCapture:$l,onTouchMoveCapture:$l}),a=i[0],s=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=kR([r,t]),U=Or(Or({},R),a);return $.createElement($.Fragment,null,m&&$.createElement(O,{sideCar:_v,removeScrollBar:v,shards:g,noRelative:b,noIsolation:x,inert:d,setCallbacks:s,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))});Fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fs.classNames={fullWidth:cs,zeroRight:ls};var FR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function DR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=FR();return t&&e.setAttribute("nonce",t),e}function NR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=DR())&&(NR(t,r),jR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WR=function(){var e=zR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ov=function(){var e=WR(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},UR={left:0,top:0,right:0,gap:0},Il=function(e){return parseInt(e||"",10)||0},BR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Il(r),Il(i),Il(a)]},HR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return UR;var t=BR(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])}},qR=Ov(),hi="data-scroll-locked",ZR=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(TR,` {
21
+ `,R),U=h.slice(R,k===-1?void 0:k+1);if(c(s,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(oT),i:0,u:h=>(p[h[1]]={target:h[2],title:h[4]},{}),l:_l},23:{t:["!["],o:sn(aT),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(sT),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:IT,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,M){return f("td",{key:M,style:Mh(R,M)},S(U,E))}))})))}},27:{o:xi(function(h,S){let E;return as(h,":")&&(E=yT.exec(h)),E||xT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(JA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:sn(hT),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:sn(gT),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:sn(bT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:sn(mT),i:3,u:Sl,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:sn(vT),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 M=S[U],F=h[M];if(!F.t||kT(R,O,F.t)){var G=F.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var j=F.u(G,E,O);O.prevCapture+=G[0],j.type||(j.type=M),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(ZA,`
22
+ `).replace(VA,"").replace(lT," ")})(R),O)}})(b),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,U=[];let M=!1;for(let F=0;F<R.length;F++){O.key=F;const G=E(R[F],O),j=Ih(G);j&&M?U[U.length-1]+=G:G!==null&&U.push(G),M=j}return O.key=k,U}return(function(k,U,M){const F=h[k.type].l;return S?S(()=>F(k,U,M),k,U,M):F(k,U,M)})(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 ms=e=>{let{children:t="",options:r}=e,i=(function(a,s){if(a==null)return{};var l,c,f={},v=Object.keys(a);for(c=0;c<v.length;c++)s.indexOf(l=v[c])>=0||(f[l]=a[l]);return f})(e,MA);return $.cloneElement(jT(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 D.jsx(t,{className:We("flex-none size-6",r)});switch(e){case"error":case"danger":return D.jsx(nt.FdSanityCheckInfo,{className:We("flex-none size-6",r)});case"info":return D.jsx(D.Fragment,{children:D.jsx(nt.FdInfoBold,{className:We("flex-none size-6",r)})});case"warning":return D.jsx(D.Fragment,{children:D.jsx(nt.FdWarningDanger,{className:We("flex-none size-6",r)})});case"message":return D.jsx(D.Fragment,{children:D.jsx(nt.FdInfoBold,{className:We("flex-none size-6",r)})});default:return null}},zT=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>D.jsx("button",{onClick:t,className:We("flex justify-center p-1",c),children:D.jsx(nt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return D.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"?D.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[D.jsx("div",{className:"pt-1",children:D.jsx(Fh,{kind:r,customIcon:s})}),D.jsx("div",{className:"flex items-center gap-1 prose",children:a?D.jsx(ms,{children:i}):D.jsx(D.Fragment,{children:i})}),l()]}):D.jsxs("div",{className:"flex items-start",children:[D.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>D.jsxs(D.Fragment,{children:[c.title&&D.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[D.jsx(Fh,{kind:r,customIcon:s}),D.jsxs("span",{children:[c.title," :"]})]}),D.jsx("ul",{className:We("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>D.jsx("li",{children:a?D.jsx(ms,{children:f}):D.jsx(D.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},dv=({children:e,size:t,className:r,...i})=>D.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={},za={},Dh;function pv(){if(Dh)return za;Dh=1,Object.defineProperty(za,"__esModule",{value:!0}),za.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 za}var li={},qi={},Zi={},Nh;function WT(){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 Ls(){if(jh)return qi;jh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(WT());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){return typeof a=="string"&&e.default.test(a)}var i=r;return qi.default=i,qi}var zh;function Ms(){if(zh)return li;zh=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0,li.unsafeStringify=i;var e=t(Ls());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 a(l,c=0){const f=i(l,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var s=a;return li.default=s,li}var Wh;function UT(){if(Wh)return Hi;Wh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=r(pv()),t=Ms();function r(v){return v&&v.__esModule?v:{default:v}}let i,a,s=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:a;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=a=(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-s+(h-l)/1e4;if(S<0&&v.clockseq===void 0&&(d=d+1&16383),(S<0||w>s)&&v.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=w,l=h,a=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(Ls());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(a.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(a.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(a.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(a.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var 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=Ms(),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 a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";un.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";un.URL=s;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=a,m.URL=s,m}return un}var Vi={},Hh;function BT(){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(a(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=s(d,R),w=s(w,O),h=s(h,k),S=s(S,U)}return[d,w,h,S]}function a(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 s(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 s(l(s(s(x,b),s(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 HT(){if(qh)return Gi;qh=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=r(gv()),t=r(BT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v3",48,t.default);return Gi.default=a,Gi}var Yi={},Xi={},Zh;function qT(){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 ZT(){if(Gh)return Yi;Gh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=i(qT()),t=i(pv()),r=Ms();function i(l){return l&&l.__esModule?l:{default:l}}function a(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 s=a;return Yi.default=s,Yi}var Ji={},Qi={},Kh;function GT(){if(Kh)return Qi;Kh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(a,s,l,c){switch(a){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(a,s){return a<<s|a>>>32-s}function r(a){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const m=unescape(encodeURIComponent(a));a=[];for(let g=0;g<m.length;++g)a.push(m.charCodeAt(g))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const c=a.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]=a[m*64+p*4]<<24|a[m*64+p*4+1]<<16|a[m*64+p*4+2]<<8|a[m*64+p*4+3];v[m]=g}v[f-1][14]=(a.length-1)*8/Math.pow(2,32),v[f-1][14]=Math.floor(v[f-1][14]),v[f-1][15]=(a.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+s[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 KT(){if(Vh)return Ji;Vh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=r(gv()),t=r(GT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v5",80,t.default);return Ji.default=a,Ji}var eo={},Yh;function VT(){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 YT(){if(Xh)return to;Xh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=t(Ls());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var i=r;return to.default=i,to}var Jh;function XT(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return 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 a.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(UT()),r=m(HT()),i=m(ZT()),a=m(KT()),s=m(VT()),l=m(YT()),c=m(Ls()),f=m(Ms()),v=m(hv());function m(g){return g&&g.__esModule?g:{default:g}}})(Al)),Al}var Tl,Qh;function JT(){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,a,s={},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++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,a=0,r=0;r<f;r++)i=i*l+s[r],i>=c?(s[a++]=parseInt(i/c,10),i=i%c):a>0&&(s[a++]=0);f=a,v=this.dstAlphabet.slice(i,i+1).concat(v)}while(a!==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 QT(){if(eg)return Rl;eg=1;var e=JT();function t(r,i){var a=new e(r,i);return function(s){return a.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Rl=t,Rl}var Pl,tg;function eR(){if(tg)return Pl;tg=1;const{v4:e,validate:t}=XT(),r=QT(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let s;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={...a,...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,M=O.split("").every(F=>p.includes(F));return k===!1?U&&M:U&&M&&t(c(O,h))}};return Object.freeze(R),R};return v.constants=i,v.uuid=e,v.generate=()=>(s||(s=v(i.flickrBase58).generate),s()),v})(),Pl}var Hc=eR();const mv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:a="rgb(241, 245, 249)"})=>{const s=`indent_line_${Hc.generate()}`;return D.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[D.jsx("defs",{children:D.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:D.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:a})})}),i?D.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):D.jsx("rect",{fill:i?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},vv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?D.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return D.jsx(nt.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?D.jsx(nt.FdDown,{}):D.jsx(nt.FdRight,{});default:return D.jsx(nt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):D.jsx("div",{className:"flex h-6 w-3 items-center"}),qc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,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,a,s):nR(e,t,m,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"flex items-center space-x-2",children:g},f),rR(v||[],t,s,r,i,m.expanded,a,c,l)]}):null},tR=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=D.jsx(dv,{children:i})),D.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,D.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&D.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},rR=function(e,t,r,i,a,s,l,c,f){return e.length&&s?e.sort((v,m)=>o0(v.title,m.title)).map(v=>D.jsx(qc,{actions:l,node:v,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:f},v.key)):null},nR=function(e,t,r,i){return D.jsxs(D.Fragment,{children:[D.jsx(mv,{showLines:!0,depth:t}),D.jsx(vv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),tR(e,i)]})},Wa=e=>t=>e===t,iR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,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(Wa(h.key));let E=[];S===-1?(E=[...m.expandedKeys,h.key],g(()=>({...m,expandedKeys:E})),a&&a(E)):(E=m.expandedKeys.filter(R=>R!==h.key),g(()=>({...m,expandedKeys:E})),a&&a(E))},[m]),b=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Wa(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(Wa(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(Wa(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 D.jsx("div",{className:We("fd-tree",v,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>D.jsx(qc,{node:h,searchQuery:s||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function us(e){return e.of&&e.children?D.jsx(D.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 oR(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=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(a){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 aR={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 sR=/[A-Z]|^ms/g,uR=/_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(sR,"-$&").toLowerCase()}),ng=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(uR,function(i,a,s){return _r={name:a,styles:s,next:_r},a})}return aR[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 a=r;if(a.anim===1)return _r={name:a.name,styles:a.styles,next:_r},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=s.styles+";";return c}return lR(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 lR(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=Ro(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":rg(c)&&(i+=Cl(s)+":"+ng(s,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(s)+":"+ng(s,l[f])+";");else{var v=Ro(e,t,l);switch(s){case"animation":case"animationName":{i+=Cl(s)+":"+v+";";break}default:i+=s+"{"+v+"}"}}}return i}var ig=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function cR(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,a="";_r=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=Ro(r,t,s);else{var l=s;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=Ro(r,t,e[c]),i){var f=s;a+=f[c]}ig.lastIndex=0;for(var v="",m;(m=ig.exec(a))!==null;)v+="-"+m[1];var g=oR(a)+v;return{name:g,styles:a,next:_r}}var fR=function(t){return t()},dR=$.useInsertionEffect?$.useInsertionEffect:!1,pR=dR||fR,hR=!0;function gR(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var wv=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||hR===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},mR=function(t,r,i){wv(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},vR=/^((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)-.*))$/,yR=yv(function(e){return vR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),bR=yR,wR=function(t){return t!=="theme"},og=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?bR:wR},ag=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},xR=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return wv(r,i,a),pR(function(){return mR(r,i,a)}),null},SR=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=ag(t,r,i),f=c||og(a),v=!f("as");return function(){var m=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&g.push("label:"+s+";"),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||a,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=gR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=cR(g.concat(O),h.registered,k);R+=h.key+"-"+M.name,l!==void 0&&(R+=" "+l);var F=v&&c===void 0?og(E):f,G={};for(var j in w)v&&j==="as"||F(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(xR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,G))});return d.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=a,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:ag(d,h,!0)}));return S.apply(void 0,g)},d}},ER=["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"],vs=SR.bind(null);ER.forEach(function(e){vs[e]=vs(e)});var _R=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Ua=new WeakMap,Ba={},kl=0,xv=function(e){return e&&(e.host||xv(e.parentNode))},OR=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})},AR=function(e,t,r,i){var a=OR(t,Array.isArray(e)?e:[e]);Ba[r]||(Ba[r]=new WeakMap);var s=Ba[r],l=[],c=new Set,f=new Set(a),v=function(g){!g||c.has(g)||(c.add(g),v(g.parentNode))};a.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=(s.get(p)||0)+1;ci.set(p,d),s.set(p,w),l.push(p),d===1&&x&&Ua.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=s.get(g)-1;ci.set(g,p),s.set(g,b),p||(Ua.has(g)||g.removeAttribute(i),Ua.delete(g)),b||g.removeAttribute(r)}),kl--,kl||(ci=new WeakMap,ci=new WeakMap,Ua=new WeakMap,Ba={})}},TR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=_R(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),AR(i,a,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 a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},fc(e,t)};function Fs(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,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}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 a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);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),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function ys(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var ls="right-scroll-bar-position",cs="width-before-scroll-bar",RR="with-scroll-bars-hidden",PR="--removed-body-scroll-bar-size";function $l(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CR(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var kR=typeof window<"u"?$.useLayoutEffect:$.useEffect,sg=new WeakMap;function $R(e,t){var r=CR(null,function(i){return e.forEach(function(a){return $l(a,i)})});return kR(function(){var i=sg.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(c){s.has(c)||$l(c,null)}),s.forEach(function(c){a.has(c)||$l(c,l)})}sg.set(r,e)},[e]),r}function IR(e){return e}function LR(e,t){t===void 0&&(t=IR);var r=[],i=!1,a={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(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var f=function(){var m=l;l=[],m.forEach(s)},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 a}function MR(e){e===void 0&&(e={});var t=LR(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 FR(e,t){return e.useMedium(t),Ev}var _v=MR(),Il=function(){},Ds=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Il,onWheelCapture:Il,onTouchMoveCapture:Il}),a=i[0],s=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=$R([r,t]),U=Or(Or({},R),a);return $.createElement($.Fragment,null,m&&$.createElement(O,{sideCar:_v,removeScrollBar:v,shards:g,noRelative:b,noIsolation:x,inert:d,setCallbacks:s,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))});Ds.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ds.classNames={fullWidth:cs,zeroRight:ls};var DR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DR();return t&&e.setAttribute("nonce",t),e}function jR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=NR())&&(jR(t,r),zR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UR=function(){var e=WR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ov=function(){var e=UR(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},BR={left:0,top:0,right:0,gap:0},Ll=function(e){return parseInt(e||"",10)||0},HR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Ll(r),Ll(i),Ll(a)]},qR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BR;var t=HR(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])}},ZR=Ov(),hi="data-scroll-locked",GR=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
+ .`.concat(RR,` {
24
24
  overflow: hidden `).concat(i,`;
25
25
  padding-right: `).concat(c,"px ").concat(i,`;
26
26
  }
@@ -54,44 +54,44 @@
54
54
  }
55
55
 
56
56
  body[`).concat(hi,`] {
57
- `).concat(RR,": ").concat(c,`px;
57
+ `).concat(PR,": ").concat(c,`px;
58
58
  }
59
- `)},ug=function(){var e=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(e)?e:0},GR=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())}},[])},KR=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;GR();var s=$.useMemo(function(){return HR(a)},[a]);return $.createElement(qR,{styles:ZR(s,!t,a,r?"":"!important")})},pc=!1;if(typeof window<"u")try{var Ha=Object.defineProperty({},"passive",{get:function(){return pc=!0,!0}});window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{pc=!1}var fi=pc?{passive:!1}:!1,VR=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&&!VR(e)&&r[t]==="visible")},YR=function(e){return Av(e,"overflowY")},XR=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 a=Tv(e,i);if(a){var s=Rv(e,i),l=s[1],c=s[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},JR=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},QR=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Tv=function(e,t){return e==="v"?YR(t):XR(t)},Rv=function(e,t){return e==="v"?JR(t):QR(t)},eP=function(e,t){return e==="h"&&t==="rtl"?-1:1},tP=function(e,t,r,i,a){var s=eP(e,window.getComputedStyle(t).direction),l=s*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-s*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},qa=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},rP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nP=function(e){return`
59
+ `)},ug=function(){var e=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(e)?e:0},KR=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())}},[])},VR=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;KR();var s=$.useMemo(function(){return qR(a)},[a]);return $.createElement(ZR,{styles:GR(s,!t,a,r?"":"!important")})},hc=!1;if(typeof window<"u")try{var Ha=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{hc=!1}var fi=hc?{passive:!1}:!1,YR=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&&!YR(e)&&r[t]==="visible")},XR=function(e){return Av(e,"overflowY")},JR=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 a=Tv(e,i);if(a){var s=Rv(e,i),l=s[1],c=s[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},QR=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},eP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Tv=function(e,t){return e==="v"?XR(t):JR(t)},Rv=function(e,t){return e==="v"?QR(t):eP(t)},tP=function(e,t){return e==="h"&&t==="rtl"?-1:1},rP=function(e,t,r,i,a){var s=tP(e,window.getComputedStyle(t).direction),l=s*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-s*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},qa=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},nP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},iP=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},iP=0,di=[];function oP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),a=$.useState(iP++)[0],s=$.useState(Ov)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var d=ys([e.lockRef.current],(e.shards||[]).map(fg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[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=qa(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 M=lg(U,k);if(!M)return!0;if(M?O=U:(O=U==="v"?"h":"v",M=lg(U,k)),!M)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var F=i.current||O;return tP(F,w,d,F==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!di.length||di[di.length-1]!==s)){var h="deltaY"in w?cg(w):qa(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&rP(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:aP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),m=$.useCallback(function(d){r.current=qa(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,qa(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return di.push(s),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!==s}),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(s,{styles:nP(a)}):null,b?$.createElement(KR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sP=MR(_v,oP);var Pv=$.forwardRef(function(e,t){return $.createElement(Fs,Or({},e,{ref:t,sideCar:sP}))});Pv.classNames=Fs.classNames;const uP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},lP=$.useId||(()=>{});let cP=0;function Cv(e){const[t,r]=$.useState(lP());return uP((()=>{r((i=>i??String(cP++)))}),[e]),e||(t?`radix-${t}`:"")}function kv(...e){return t=>e.forEach((r=>(function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)})(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,(a=>dg(a)?$.createElement(hc,Xe({},i,{ref:t}),a.props.children):a))):$.createElement(hc,Xe({},i,{ref:t}),r)}));$v.displayName="Slot";const hc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...fP(i,r.props),ref:kv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));hc.displayName="SlotClone";const Iv=({children:e})=>$.createElement($.Fragment,null,e);function dg(e){return $.isValidElement(e)&&e.type===Iv}function fP(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].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:a,...s}=r,l=a?$v:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Xe({},s,{ref:i}))}))})),{}),pg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},qc=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=Za(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=Za(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=Za(v.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(g.current=Za(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),a=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),s=vn(i.ref,a.ref);return typeof r=="function"||i.isPresent?$.cloneElement(a,{ref:s}):null};function Za(e){return(e==null?void 0:e.animationName)||"none"}qc.displayName="Presence";let Ll=0;function dP(){$.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()),Ll++,()=>{Ll===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Ll--}}),[])}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 pP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Zc=$.forwardRef(((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return pP((()=>{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,...s}: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},hP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,f]=$.useState(null),v=Un(a),m=Un(s),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),M=vg(k.reverse(),O);return[U,M]})(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 a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?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(!gP(r,{upTo:t}))return r}function gP(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 mP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let wg,Ga=0;function vP({disabled:e}){const t=$.useRef(!1);mP((()=>{if(e){let r=function(){Ga--,Ga===0&&(document.body.style.pointerEvents=wg)},i=function(a){t.current=a.pointerType!=="mouse"};return Ga===0&&(wg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ga++,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 yP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,v=$.useContext(yP),[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),M=$.useRef(!1);return $.useEffect((()=>{const F=j=>{j.target&&!M.current&&Sg("dismissableLayer.pointerDownOutside",U,{originalEvent:j}),M.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",F)}}),[U]),{onPointerDownCapture:()=>M.current=!0}})((k=>{const U=k.target,M=[...v.branches].some((F=>F.contains(U)));E&&!M&&(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const U=Un(k),M=$.useRef(!1);return $.useEffect((()=>{const F=G=>{G.target&&!M.current&&Sg("dismissableLayer.focusOutside",U,{originalEvent:G})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[U]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((k=>{const U=k.target;[...v.branches].some((M=>M.contains(U)))||(s==null||s(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())})),vP({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,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function Eg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const f=s.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 wP(e,t){const r=$n.get(e);return r===void 0?($n.set(e,{rect:{},callbacks:[t]}),$n.size===1&&(gc=requestAnimationFrame(Mv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=$n.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&($n.delete(e),$n.size===0&&cancelAnimationFrame(gc))}}let gc;const $n=new Map;function Mv(){const e=[];$n.forEach(((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),gc=requestAnimationFrame(Mv)}function Fv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=wP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function Gc(e,t=[]){let r=[];const i=()=>{const a=r.map((s=>$.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return i.scopeName=e,[function(a,s){const l=$.createContext(s),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,s],f.displayName=a+"Provider",[f,function(v,m){const g=(m==null?void 0:m[e][c])||l,p=$.useContext(g);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},xP(i,...t)]}function xP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((a=>({useScope:a(),scopeName:a.scopeName})));return function(a){const s=i.reduce(((l,{useScope:c,scopeName:f})=>({...l,...c(a)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function SP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:v,collisionTolerance:m=0}){if(!e||!t||!v)return{popperStyles:EP,arrowStyles:Ml};const g=(function(U,M,F=0,G=0,j){const L=j?j.height:0,B=_g(M,U,"x"),q=_g(M,U,"y"),C=q.before-F-L,J=q.after+F+L,Y=B.before-F-L,te=B.after+F+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,s,c,r),p=g[a][l];if(f===!1){const U=Og(p);let M=Ml;return r&&(M=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Ag(t,a,l,i,r)},arrowStyles:M,placedSide:a,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(a)][l],E=(function(U,M,F){const G=Rg(U);return M[U]&&!F[G]?G:U})(a,h,Pg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,M,F,G,j){const L=F==="top"||F==="bottom",B=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=M[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,a,l,h),O=Og(g[E][R]);let k=Ml;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"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}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,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,f=l/2+i;let v="",m="";return s?(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 EP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ml={position:"absolute",opacity:0};function Tg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(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:_P(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(v.left=`${r}px`),a==="center"&&(v.left=`${s}px`),a==="end"&&(v.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(v.top=`${r}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${r}px`)),v}function _P(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,Ds]=Gc("Popper"),[OP,Nv]=Dv("Popper"),AP=e=>{const{__scopePopper:t,children:r}=e,[i,a]=$.useState(null);return $.createElement(OP,{scope:t,anchor:i,onAnchorChange:a},r)},TP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=Nv("PopperAnchor",r),l=$.useRef(null),c=vn(t,l);return $.useEffect((()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(yn.div,Xe({},a,{ref:c}))})),[RP,aM]=Dv("PopperContent"),PP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="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:M,placedSide:F,placedAlign:G}=SP({anchorRect:b,popperSize:w,arrowSize:E,arrowOffset:g,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=F!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(RP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:p},$.createElement(yn.div,Xe({"data-side":F,"data-align":G},v,{style:{...v.style,animation:j?void 0:"none"},ref:R}))))})),jv=AP,zv=TP,Wv=PP;function Uv({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,a]=(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}),s=e!==void 0,l=s?e:i,c=Un(r);return[l,$.useCallback((f=>{if(s){const v=f,m=typeof f=="function"?v(e):f;m!==e&&c(m)}else a(f)}),[s,e,a,c])]}const[CP]=Gc("Popover",[Ds]),Kc=Ds(),[kP,zo]=CP("Popover"),$P=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Kc(t),f=$.useRef(null),[v,m]=$.useState(!1),[g=!1,p]=Uv({prop:i,defaultProp:a,onChange:s});return $.createElement(jv,c,$.createElement(kP,{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))},IP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,a=zo("PopoverTrigger",r),s=Kc(r),l=vn(t,a.triggerRef),c=$.createElement(yn.button,Xe({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Hv(a.open)},i,{ref:l,onClick:Bt(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:$.createElement(zv,Xe({asChild:!0},s),c)})),LP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=zo("PopoverContent",e.__scopePopover);return $.createElement(qc,{present:r||a.open},a.modal?$.createElement(MP,Xe({},i,{ref:t})):$.createElement(FP,Xe({},i,{ref:t})))})),MP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=zo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=vn(t,l),f=$.useRef(!1);$.useEffect((()=>{const m=l.current;if(m)return AR(m)}),[]);const v=i?Zc:$.Fragment;return $.createElement(v,null,$.createElement(Pv,{allowPinchZoom:r},$.createElement(Bv,Xe({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,(m=>{var g;m.preventDefault(),f.current||(g=s.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})}))))})),FP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,a=zo("PopoverContent",e.__scopePopover),s=$.useRef(!1),l=r?Zc:$.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||(s.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var f,v;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(s.current=!0);const m=c.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(m)&&c.preventDefault()}})))})),Bv=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:m,...g}=e,p=zo("PopoverContent",r),b=Kc(r);return dP(),$.createElement(hP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},$.createElement(bP,{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 DP=$P,NP=IP,jP=LP;var fs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(fs||{}),Fl={},ro={},Ka={},Va={},Ya={exports:{}},Xa={exports:{}},Ie={};/** @license React v16.13.1
62
+ `)},oP=0,di=[];function aP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),a=$.useState(oP++)[0],s=$.useState(Ov)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var d=ys([e.lockRef.current],(e.shards||[]).map(fg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[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=qa(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 M=lg(U,k);if(!M)return!0;if(M?O=U:(O=U==="v"?"h":"v",M=lg(U,k)),!M)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var F=i.current||O;return rP(F,w,d,F==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!di.length||di[di.length-1]!==s)){var h="deltaY"in w?cg(w):qa(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&nP(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:sP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),m=$.useCallback(function(d){r.current=qa(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,qa(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return di.push(s),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!==s}),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(s,{styles:iP(a)}):null,b?$.createElement(VR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const uP=FR(_v,aP);var Pv=$.forwardRef(function(e,t){return $.createElement(Ds,Or({},e,{ref:t,sideCar:uP}))});Pv.classNames=Ds.classNames;const lP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},cP=$.useId||(()=>{});let fP=0;function Cv(e){const[t,r]=$.useState(cP());return lP((()=>{r((i=>i??String(fP++)))}),[e]),e||(t?`radix-${t}`:"")}function kv(...e){return t=>e.forEach((r=>(function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)})(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,(a=>dg(a)?$.createElement(gc,Xe({},i,{ref:t}),a.props.children):a))):$.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,{...dP(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 dP(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].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:a,...s}=r,l=a?$v:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Xe({},s,{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=Za(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=Za(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=Za(v.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(g.current=Za(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),a=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),s=vn(i.ref,a.ref);return typeof r=="function"||i.isPresent?$.cloneElement(a,{ref:s}):null};function Za(e){return(e==null?void 0:e.animationName)||"none"}Zc.displayName="Presence";let Ml=0;function pP(){$.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 hP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Gc=$.forwardRef(((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return hP((()=>{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,...s}: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},gP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,f]=$.useState(null),v=Un(a),m=Un(s),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),M=vg(k.reverse(),O);return[U,M]})(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 a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?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(!mP(r,{upTo:t}))return r}function mP(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 vP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let wg,Ga=0;function yP({disabled:e}){const t=$.useRef(!1);vP((()=>{if(e){let r=function(){Ga--,Ga===0&&(document.body.style.pointerEvents=wg)},i=function(a){t.current=a.pointerType!=="mouse"};return Ga===0&&(wg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ga++,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 bP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,v=$.useContext(bP),[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),M=$.useRef(!1);return $.useEffect((()=>{const F=j=>{j.target&&!M.current&&Sg("dismissableLayer.pointerDownOutside",U,{originalEvent:j}),M.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",F)}}),[U]),{onPointerDownCapture:()=>M.current=!0}})((k=>{const U=k.target,M=[...v.branches].some((F=>F.contains(U)));E&&!M&&(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const U=Un(k),M=$.useRef(!1);return $.useEffect((()=>{const F=G=>{G.target&&!M.current&&Sg("dismissableLayer.focusOutside",U,{originalEvent:G})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[U]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((k=>{const U=k.target;[...v.branches].some((M=>M.contains(U)))||(s==null||s(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())})),yP({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,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function Eg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const f=s.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 xP(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 a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,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 a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.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=xP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function Kc(e,t=[]){let r=[];const i=()=>{const a=r.map((s=>$.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return i.scopeName=e,[function(a,s){const l=$.createContext(s),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,s],f.displayName=a+"Provider",[f,function(v,m){const g=(m==null?void 0:m[e][c])||l,p=$.useContext(g);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},SP(i,...t)]}function SP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((a=>({useScope:a(),scopeName:a.scopeName})));return function(a){const s=i.reduce(((l,{useScope:c,scopeName:f})=>({...l,...c(a)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function EP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:v,collisionTolerance:m=0}){if(!e||!t||!v)return{popperStyles:_P,arrowStyles:Fl};const g=(function(U,M,F=0,G=0,j){const L=j?j.height:0,B=_g(M,U,"x"),q=_g(M,U,"y"),C=q.before-F-L,J=q.after+F+L,Y=B.before-F-L,te=B.after+F+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,s,c,r),p=g[a][l];if(f===!1){const U=Og(p);let M=Fl;return r&&(M=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Ag(t,a,l,i,r)},arrowStyles:M,placedSide:a,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(a)][l],E=(function(U,M,F){const G=Rg(U);return M[U]&&!F[G]?G:U})(a,h,Pg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,M,F,G,j){const L=F==="top"||F==="bottom",B=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=M[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,a,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"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}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,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,f=l/2+i;let v="",m="";return s?(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 _P={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:a}){const s=(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:OP(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(v.left=`${r}px`),a==="center"&&(v.left=`${s}px`),a==="end"&&(v.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(v.top=`${r}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${r}px`)),v}function OP(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,Ns]=Kc("Popper"),[AP,Nv]=Dv("Popper"),TP=e=>{const{__scopePopper:t,children:r}=e,[i,a]=$.useState(null);return $.createElement(AP,{scope:t,anchor:i,onAnchorChange:a},r)},RP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=Nv("PopperAnchor",r),l=$.useRef(null),c=vn(t,l);return $.useEffect((()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(yn.div,Xe({},a,{ref:c}))})),[PP,uM]=Dv("PopperContent"),CP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="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:M,placedSide:F,placedAlign:G}=EP({anchorRect:b,popperSize:w,arrowSize:E,arrowOffset:g,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=F!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(PP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:p},$.createElement(yn.div,Xe({"data-side":F,"data-align":G},v,{style:{...v.style,animation:j?void 0:"none"},ref:R}))))})),jv=TP,zv=RP,Wv=CP;function Uv({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,a]=(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}),s=e!==void 0,l=s?e:i,c=Un(r);return[l,$.useCallback((f=>{if(s){const v=f,m=typeof f=="function"?v(e):f;m!==e&&c(m)}else a(f)}),[s,e,a,c])]}const[kP]=Kc("Popover",[Ns]),Vc=Ns(),[$P,zo]=kP("Popover"),IP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Vc(t),f=$.useRef(null),[v,m]=$.useState(!1),[g=!1,p]=Uv({prop:i,defaultProp:a,onChange:s});return $.createElement(jv,c,$.createElement($P,{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))},LP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,a=zo("PopoverTrigger",r),s=Vc(r),l=vn(t,a.triggerRef),c=$.createElement(yn.button,Xe({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Hv(a.open)},i,{ref:l,onClick:Bt(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:$.createElement(zv,Xe({asChild:!0},s),c)})),MP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=zo("PopoverContent",e.__scopePopover);return $.createElement(Zc,{present:r||a.open},a.modal?$.createElement(FP,Xe({},i,{ref:t})):$.createElement(DP,Xe({},i,{ref:t})))})),FP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=zo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=vn(t,l),f=$.useRef(!1);$.useEffect((()=>{const m=l.current;if(m)return TR(m)}),[]);const v=i?Gc:$.Fragment;return $.createElement(v,null,$.createElement(Pv,{allowPinchZoom:r},$.createElement(Bv,Xe({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,(m=>{var g;m.preventDefault(),f.current||(g=s.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})}))))})),DP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,a=zo("PopoverContent",e.__scopePopover),s=$.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||(s.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var f,v;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(s.current=!0);const m=c.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(m)&&c.preventDefault()}})))})),Bv=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:m,...g}=e,p=zo("PopoverContent",r),b=Vc(r);return pP(),$.createElement(gP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},$.createElement(wP,{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 NP=IP,jP=LP,zP=MP;var fs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(fs||{}),Dl={},ro={},Ka={},Va={},Ya={exports:{}},Xa={exports:{}},Ie={};/** @license React v16.13.1
63
63
  * react-is.production.min.js
64
64
  *
65
65
  * Copyright (c) Facebook, Inc. and its affiliates.
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var Cg;function zP(){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,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,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 s:case a: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=s,Ie.StrictMode=a,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)===s},Ie.isStrictMode=function(O){return E(O)===a},Ie.isSuspense=function(O){return E(O)===g},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===v||O===s||O===a||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
69
+ */var Cg;function WP(){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,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,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 s:case a: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=s,Ie.StrictMode=a,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)===s},Ie.isStrictMode=function(O){return E(O)===a},Ie.isSuspense=function(O){return E(O)===g},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===v||O===s||O===a||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
70
70
  * react-is.development.js
71
71
  *
72
72
  * Copyright (c) Facebook, Inc. and its affiliates.
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var kg;function WP(){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,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,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===s||ie===a||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 s:case a: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,M=l,F=t,G=m,j=i,L=x,B=b,q=r,C=s,J=a,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 ae(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)===s}function Ae(ie){return R(ie)===a}function Ze(ie){return R(ie)===g}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=U,Le.ContextProvider=M,Le.Element=F,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=ae,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"?Xa.exports=zP():Xa.exports=WP()),Xa.exports}/*
76
+ */var kg;function UP(){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,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,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===s||ie===a||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 s:case a: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,M=l,F=t,G=m,j=i,L=x,B=b,q=r,C=s,J=a,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 ae(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)===s}function Ae(ie){return R(ie)===a}function Ze(ie){return R(ie)===g}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=U,Le.ContextProvider=M,Le.Element=F,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=ae,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"?Xa.exports=WP():Xa.exports=UP()),Xa.exports}/*
77
77
  object-assign
78
78
  (c) Sindre Sorhus
79
79
  @license MIT
80
- */var Dl,Ig;function UP(){if(Ig)return Dl;Ig=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var 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 Dl=a()?Object.assign:function(s,l){for(var c,f=i(s),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},Dl}var Nl,Lg;function Vc(){if(Lg)return Nl;Lg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nl=e,Nl}var jl,Mg;function Zv(){return Mg||(Mg=1,jl=Function.call.bind(Object.prototype.hasOwnProperty)),jl}var zl,Fg;function BP(){if(Fg)return zl;Fg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vc(),r={},i=Zv();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,f,v){if(process.env.NODE_ENV!=="production"){for(var m in s)if(i(s,m)){var g;try{if(typeof s[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 s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=s[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 a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zl=a,zl}var Wl,Dg;function HP(){if(Dg)return Wl;Dg=1;var e=qv(),t=UP(),r=Vc(),i=Zv(),a=BP(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function l(){return null}return Wl=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:M,oneOf:U,oneOfType:F,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={},ae=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]&&ae<3&&(s("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,ae++)}}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(ae,ue,ne,ce,fe,ye){var me=ae[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(ae,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=ae[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,ae,ue,ne,ce){var fe=Q[ae];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,ae,ue,ne,ce){var fe=Q[ae];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(ae,ue,ne,ce,fe){if(!(ae[ue]instanceof Z)){var ye=Z.name||p,me=de(ae[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?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function Q(ae,ue,ne,ce,fe){for(var ye=ae[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 M(Z){function Q(ae,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=ae[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 F(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Q=0;Q<Z.length;Q++){var ae=Z[Q];if(typeof ae!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" 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,ae,ue,ne,ce){return q(Q[ae])?null:new d("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,Q,ae,ue,ne){return new d((Z||"React class")+": "+Q+" type `"+ae+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function L(Z){function Q(ae,ue,ne,ce,fe){var ye=ae[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(ae,ue,ne,ce,fe){var ye=ae[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},ae[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(ae[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 ae=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=ae.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=ae.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=a,b.resetWarningCache=a.resetWarningCache,b.PropTypes=b,b},Wl}var Ul,Ng;function qP(){if(Ng)return Ul;Ng=1;var e=Vc();function t(){}function r(){}return r.resetWarningCache=t,Ul=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 a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Ul}var jg;function ZP(){if(jg)return Ya.exports;if(jg=1,process.env.NODE_ENV!=="production"){var e=qv(),t=!0;Ya.exports=HP()(e.isElement,t)}else Ya.exports=qP()();return Ya.exports}var zg;function GP(){return zg||(zg=1,(function(e){(function(t,r){r(e,W,ZP())})(Va,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var a=l(r),s=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 M=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}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,M=k.y;this.moveStart={x:U,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=w(O),U=k.x,M=k.y,F=U-this.moveStart.x,G=M-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:F,y:G},O);j&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:F,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,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var F=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:U},F),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},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})})(Va)),Va}var Wg;function Gv(){return Wg||(Wg=1,(function(e){(function(t,r){r(e,GP())})(Ka,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(Ka)),Ka}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(a){return a&&a.__esModule?a:{default:a}}function r(a,s,l){return s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a}var i={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return no.default=i,no}var io={},oo={},Bg;function KP(){if(Bg)return oo;Bg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,a=getComputedStyle(r);return i+=parseInt(a.marginLeft)+parseInt(a.marginRight),i};return oo.outerWidth=e,oo}var ao={},Hg;function Yc(){if(Hg)return ao;Hg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=function(r,i,a){var s=r===0?r:r+i,l=a==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",f="("+l.join(",")+")";return c+f};return ao.default=e,ao}var so={},qg;function Vv(){if(qg)return so;qg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=function(){return window};return so.default=e,so}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=KP(),i=l(Yc()),a=l(Gv()),s=l(Vv());function l(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||v(M)!=="object"&&typeof M!="function")return{default:M};var F=c();if(F&&F.has(M))return F.get(M);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var B=j?Object.getOwnPropertyDescriptor(M,L):null;B&&(B.get||B.set)?Object.defineProperty(G,L,B):G[L]=M[L]}return G.default=M,F&&F.set(M,G),G}function v(M){"@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(M)}function m(){return m=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(M[j]=G[j])}return M},m.apply(this,arguments)}function g(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var G=0;G<F.length;G++){var j=F[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}function b(M,F,G){return F&&p(M.prototype,F),M}function x(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),F&&d(M,F)}function d(M,F){return d=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},d(M,F)}function w(M){var F=E();return function(){var j=R(M),L;if(F){var B=R(this).constructor;L=Reflect.construct(j,arguments,B)}else L=j.apply(this,arguments);return h(this,L)}}function h(M,F){return F&&(v(F)==="object"||typeof F=="function")?F:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}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(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(M)}function O(M,F,G){return F in M?Object.defineProperty(M,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):M[F]=G,M}var k=function(F){return F.hasOwnProperty("key")},U=(function(M){x(G,M);var F=w(G);function G(j){var L;return g(this,G),L=F.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(ae){L.itemsListRef.style[ae]=(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,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(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(a.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 VP(){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(Yc());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ut.noop=i;var a=function(v,m){return"".concat(v," of ").concat(m)};Ut.defaultStatusFormatter=a;var s=function(v){return v?v.hasOwnProperty("key"):!1};Ut.isKeyboardEvent=s;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 YP(){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(Yc()),r=Xv();function i(g){return g&&g.__esModule?g:{default:g}}function a(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 s(g){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{};p%2?a(Object(b),!0).forEach(function(x){l(g,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):a(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=s(s({},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 M=R+100/(x.itemSize/U),F=Math.abs(k)>b.swipeScrollTolerance;return b.infiniteLoop&&F&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!b.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,b.axis)),F&&!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=s(s({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:s(s({},w),{},{opacity:1,position:"relative"}),prevStyle:s({},w)}};return fr.fadeAnimationHandler=m,fr}var Yg;function XP(){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()),a=f(VP()),s=f(Vv()),l=Xv(),c=YP();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){F(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=M(j),C;if(L){var J=M(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 M(j){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},M(j)}function F(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),F(k(C),"thumbsRef",void 0),F(k(C),"carouselWrapperRef",void 0),F(k(C),"listRef",void 0),F(k(C),"itemsRef",void 0),F(k(C),"timer",void 0),F(k(C),"animationHandler",void 0),F(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),F(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),F(k(C),"setListRef",function(Y){C.listRef=Y}),F(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),F(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)))}),F(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),F(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),F(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),F(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),F(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,a.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),F(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,ae=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():ae===Y.keyCode&&C.decrement()}}),F(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()}}}),F(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),F(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})}}),F(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),F(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),F(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),F(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),F(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}),F(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))}),F(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))}),F(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()}}),F(k(C),"onClickNext",function(){C.increment(1)}),F(k(C),"onClickPrev",function(){C.decrement(1)}),F(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),F(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])}),F(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),F(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 ae=de[0]||te.children[0],ue=ae.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,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.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 ae={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",ae,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,ae){return de&&de(C.changeItem(ae),ae===C.state.selectedItem,ae,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),ae=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&&ae):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&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return ro.default=G,F(G,"displayName","Carousel"),F(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 JP(){return Jg||(Jg=1),Xg}var Qg;function QP(){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=a(XP()),r=JP(),i=a(Yv());function a(s){return s&&s.__esModule?s:{default:s}}})(Fl)),Fl}var eC=QP();const tC=({tip:e})=>D.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Jv(e,!0)}),rC=({pages:e})=>D.jsx("div",{className:"min-h-[10rem] w-96",children:D.jsx(eC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>D.jsx(tC,{tip:t},t.key))})}),nC=({body:e,isInsideCarousel:t})=>D.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:D.jsx(ms,{children:e,options:{overrides:{a:{component:({children:r,...i})=>D.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,D.jsx(nt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),iC=({video:e,body:t,title:r,isInsideCarousel:i})=>D.jsxs("div",{className:We([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[D.jsx("div",{className:We([{"mr-1":!i,"mb-1":i}]),children:D.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})}),D.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:D.jsx(ms,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>D.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,D.jsx(nt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Jv=(e,t)=>{switch(e.type){case fs.TEXT:return D.jsx(nC,{body:e.body,isInsideCarousel:t});case fs.VIDEO:return D.jsx(iC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case fs.CAROUSEL:return D.jsx(rC,{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 oC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=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},{});s(m=>({...m,tips:v}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return D.jsx(Qv.Provider,{value:{tips:i,toggleTips:l,show:a,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}},aC=vs(NP)`
80
+ */var Nl,Ig;function BP(){if(Ig)return Nl;Ig=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var 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=a()?Object.assign:function(s,l){for(var c,f=i(s),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 HP(){if(Fg)return Wl;Fg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),r={},i=Zv();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,f,v){if(process.env.NODE_ENV!=="production"){for(var m in s)if(i(s,m)){var g;try{if(typeof s[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 s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=s[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 a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Wl=a,Wl}var Ul,Dg;function qP(){if(Dg)return Ul;Dg=1;var e=qv(),t=BP(),r=Yc(),i=Zv(),a=HP(),s=function(){};process.env.NODE_ENV!=="production"&&(s=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:M,oneOf:U,oneOfType:F,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={},ae=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]&&ae<3&&(s("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,ae++)}}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(ae,ue,ne,ce,fe,ye){var me=ae[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(ae,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=ae[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,ae,ue,ne,ce){var fe=Q[ae];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,ae,ue,ne,ce){var fe=Q[ae];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(ae,ue,ne,ce,fe){if(!(ae[ue]instanceof Z)){var ye=Z.name||p,me=de(ae[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?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function Q(ae,ue,ne,ce,fe){for(var ye=ae[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 M(Z){function Q(ae,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=ae[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 F(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Q=0;Q<Z.length;Q++){var ae=Z[Q];if(typeof ae!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" 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,ae,ue,ne,ce){return q(Q[ae])?null:new d("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,Q,ae,ue,ne){return new d((Z||"React class")+": "+Q+" type `"+ae+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function L(Z){function Q(ae,ue,ne,ce,fe){var ye=ae[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(ae,ue,ne,ce,fe){var ye=ae[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},ae[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(ae[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 ae=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=ae.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=ae.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=a,b.resetWarningCache=a.resetWarningCache,b.PropTypes=b,b},Ul}var Bl,Ng;function ZP(){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 a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Bl}var jg;function GP(){if(jg)return Ya.exports;if(jg=1,process.env.NODE_ENV!=="production"){var e=qv(),t=!0;Ya.exports=qP()(e.isElement,t)}else Ya.exports=ZP()();return Ya.exports}var zg;function KP(){return zg||(zg=1,(function(e){(function(t,r){r(e,W,GP())})(Va,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var a=l(r),s=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 M=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}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,M=k.y;this.moveStart={x:U,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=w(O),U=k.x,M=k.y,F=U-this.moveStart.x,G=M-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:F,y:G},O);j&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:F,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,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var F=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:U},F),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},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})})(Va)),Va}var Wg;function Gv(){return Wg||(Wg=1,(function(e){(function(t,r){r(e,KP())})(Ka,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(Ka)),Ka}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(a){return a&&a.__esModule?a:{default:a}}function r(a,s,l){return s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a}var i={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return no.default=i,no}var io={},oo={},Bg;function VP(){if(Bg)return oo;Bg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,a=getComputedStyle(r);return i+=parseInt(a.marginLeft)+parseInt(a.marginRight),i};return oo.outerWidth=e,oo}var ao={},Hg;function Xc(){if(Hg)return ao;Hg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=function(r,i,a){var s=r===0?r:r+i,l=a==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",f="("+l.join(",")+")";return c+f};return ao.default=e,ao}var so={},qg;function Vv(){if(qg)return so;qg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=function(){return window};return so.default=e,so}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=VP(),i=l(Xc()),a=l(Gv()),s=l(Vv());function l(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||v(M)!=="object"&&typeof M!="function")return{default:M};var F=c();if(F&&F.has(M))return F.get(M);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var B=j?Object.getOwnPropertyDescriptor(M,L):null;B&&(B.get||B.set)?Object.defineProperty(G,L,B):G[L]=M[L]}return G.default=M,F&&F.set(M,G),G}function v(M){"@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(M)}function m(){return m=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(M[j]=G[j])}return M},m.apply(this,arguments)}function g(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var G=0;G<F.length;G++){var j=F[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}function b(M,F,G){return F&&p(M.prototype,F),M}function x(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),F&&d(M,F)}function d(M,F){return d=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},d(M,F)}function w(M){var F=E();return function(){var j=R(M),L;if(F){var B=R(this).constructor;L=Reflect.construct(j,arguments,B)}else L=j.apply(this,arguments);return h(this,L)}}function h(M,F){return F&&(v(F)==="object"||typeof F=="function")?F:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}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(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(M)}function O(M,F,G){return F in M?Object.defineProperty(M,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):M[F]=G,M}var k=function(F){return F.hasOwnProperty("key")},U=(function(M){x(G,M);var F=w(G);function G(j){var L;return g(this,G),L=F.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(ae){L.itemsListRef.style[ae]=(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,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(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(a.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 YP(){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 a=function(v,m){return"".concat(v," of ").concat(m)};Ut.defaultStatusFormatter=a;var s=function(v){return v?v.hasOwnProperty("key"):!1};Ut.isKeyboardEvent=s;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 XP(){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 a(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 s(g){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{};p%2?a(Object(b),!0).forEach(function(x){l(g,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):a(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=s(s({},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 M=R+100/(x.itemSize/U),F=Math.abs(k)>b.swipeScrollTolerance;return b.infiniteLoop&&F&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!b.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,b.axis)),F&&!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=s(s({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:s(s({},w),{},{opacity:1,position:"relative"}),prevStyle:s({},w)}};return fr.fadeAnimationHandler=m,fr}var Yg;function JP(){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()),a=f(YP()),s=f(Vv()),l=Xv(),c=XP();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){F(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=M(j),C;if(L){var J=M(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 M(j){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},M(j)}function F(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),F(k(C),"thumbsRef",void 0),F(k(C),"carouselWrapperRef",void 0),F(k(C),"listRef",void 0),F(k(C),"itemsRef",void 0),F(k(C),"timer",void 0),F(k(C),"animationHandler",void 0),F(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),F(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),F(k(C),"setListRef",function(Y){C.listRef=Y}),F(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),F(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)))}),F(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),F(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),F(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),F(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),F(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,a.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),F(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,ae=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():ae===Y.keyCode&&C.decrement()}}),F(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()}}}),F(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),F(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})}}),F(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),F(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),F(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),F(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),F(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}),F(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))}),F(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))}),F(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()}}),F(k(C),"onClickNext",function(){C.increment(1)}),F(k(C),"onClickPrev",function(){C.decrement(1)}),F(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),F(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])}),F(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),F(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 ae=de[0]||te.children[0],ue=ae.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,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.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 ae={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",ae,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,ae){return de&&de(C.changeItem(ae),ae===C.state.selectedItem,ae,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),ae=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&&ae):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&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return ro.default=G,F(G,"displayName","Carousel"),F(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 QP(){return Jg||(Jg=1),Xg}var Qg;function eC(){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=a(JP()),r=QP(),i=a(Yv());function a(s){return s&&s.__esModule?s:{default:s}}})(Dl)),Dl}var tC=eC();const rC=({tip:e})=>D.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Jv(e,!0)}),nC=({pages:e})=>D.jsx("div",{className:"min-h-[10rem] w-96",children:D.jsx(tC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>D.jsx(rC,{tip:t},t.key))})}),iC=({body:e,isInsideCarousel:t})=>D.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:D.jsx(ms,{children:e,options:{overrides:{a:{component:({children:r,...i})=>D.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,D.jsx(nt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),oC=({video:e,body:t,title:r,isInsideCarousel:i})=>D.jsxs("div",{className:We([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[D.jsx("div",{className:We([{"mr-1":!i,"mb-1":i}]),children:D.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})}),D.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:D.jsx(ms,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>D.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,D.jsx(nt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Jv=(e,t)=>{switch(e.type){case fs.TEXT:return D.jsx(iC,{body:e.body,isInsideCarousel:t});case fs.VIDEO:return D.jsx(oC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case fs.CAROUSEL:return D.jsx(nC,{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 aC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=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},{});s(m=>({...m,tips:v}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return D.jsx(Qv.Provider,{value:{tips:i,toggleTips:l,show:a,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}},sC=vs(jP)`
82
82
  &[data-state='open'] > * {
83
83
  display: block !important;
84
84
  }
85
- `,ty=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=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)}}},[]),a&&s?D.jsxs(DP,{open:l,onOpenChange:c,children:[D.jsx(aC,{ref:f,className:We("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:v=>v.stopPropagation(),children:D.jsx("span",{className:We("group-hover:block",{hidden:!r}),children:D.jsx(nt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),D.jsx(jP,{side:t,sideOffset:5,onClick:v=>v.stopPropagation(),children:D.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Jv(a)})})]}):null};var sC=Object.defineProperty,uC=(e,t,r)=>t in e?sC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bl=(e,t,r)=>(uC(e,typeof t!="symbol"?t+"":t,r),r);let lC=class{constructor(){Bl(this,"current",this.detect()),Bl(this,"handoffState","pending"),Bl(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 lC,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 cC(e,t,r){let[i,a]=W.useState(r),s=e!==void 0,l=W.useRef(s),c=W.useRef(!1),f=W.useRef(!1);return s&&!l.current&&!c.current?(c.current=!0,l.current=s,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.")):!s&&l.current&&!f.current&&(f.current=!0,l.current=s,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.")),[s?e:i,St(v=>(s||a(v),t==null?void 0:t(v)))]}function fC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Wo(){let e=[],t={addEventListener(r,i,a,s){return r.addEventListener(i,a,s),t.add(()=>r.removeEventListener(i,a,s))},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 fC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,a){let s=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:a}),this.add(()=>{Object.assign(r.style,{[i]:s})})},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 a of e.splice(i,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function Xc(){let[e]=W.useState(Wo);return W.useEffect(()=>()=>e.dispose(),[e]),e}function dC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Jc(){let e=dC(),[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 Qc=(tm=W.useId)!=null?tm:function(){let e=Jc(),[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 a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).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 pC(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 hC=Symbol();function Uo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=St(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[hC]))?void 0:r}function bs(...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:a,visible:s=!0,name:l,mergeRefs:c}){c=c??gC;let f=ny(t,e);if(s)return Ja(f,r,i,l,c);let v=a??0;if(v&2){let{static:m=!1,...g}=f;if(m)return Ja(g,r,i,l,c)}if(v&1){let{unmount:m=!0,...g}=f;return Ar(m?0:1,{0(){return null},1(){return Ja({...g,hidden:!0,style:{display:"none"}},r,i,l,c)}})}return Ja(f,r,i,l,c)}function Ja(e,t={},r,i,a){let{as:s=r,children:l,refName:c="ref",...f}=Hl(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(s===W.Fragment&&Object.keys(mc(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(`
85
+ `,ty=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=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)}}},[]),a&&s?D.jsxs(NP,{open:l,onOpenChange:c,children:[D.jsx(sC,{ref:f,className:We("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:v=>v.stopPropagation(),children:D.jsx("span",{className:We("group-hover:block",{hidden:!r}),children:D.jsx(nt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),D.jsx(zP,{side:t,sideOffset:5,onClick:v=>v.stopPropagation(),children:D.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Jv(a)})})]}):null};var uC=Object.defineProperty,lC=(e,t,r)=>t in e?uC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hl=(e,t,r)=>(lC(e,typeof t!="symbol"?t+"":t,r),r);let cC=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 cC,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 fC(e,t,r){let[i,a]=W.useState(r),s=e!==void 0,l=W.useRef(s),c=W.useRef(!1),f=W.useRef(!1);return s&&!l.current&&!c.current?(c.current=!0,l.current=s,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.")):!s&&l.current&&!f.current&&(f.current=!0,l.current=s,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.")),[s?e:i,St(v=>(s||a(v),t==null?void 0:t(v)))]}function dC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Wo(){let e=[],t={addEventListener(r,i,a,s){return r.addEventListener(i,a,s),t.add(()=>r.removeEventListener(i,a,s))},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 dC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,a){let s=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:a}),this.add(()=>{Object.assign(r.style,{[i]:s})})},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 a of e.splice(i,1))a()}},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 pC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Qc(){let e=pC(),[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 a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).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 hC(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 gC=Symbol();function Uo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=St(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[gC]))?void 0:r}function bs(...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:a,visible:s=!0,name:l,mergeRefs:c}){c=c??mC;let f=ny(t,e);if(s)return Ja(f,r,i,l,c);let v=a??0;if(v&2){let{static:m=!1,...g}=f;if(m)return Ja(g,r,i,l,c)}if(v&1){let{unmount:m=!0,...g}=f;return Ar(m?0:1,{0(){return null},1(){return Ja({...g,hidden:!0,style:{display:"none"}},r,i,l,c)}})}return Ja(f,r,i,l,c)}function Ja(e,t={},r,i,a){let{as:s=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(s===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
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
87
  `)].join(`
88
- `));let p=m.props,b=typeof(p==null?void 0:p.className)=="function"?(...d)=>bs(p==null?void 0:p.className(...d),f.className):bs(p==null?void 0:p.className,f.className),x=b?{className:b}:{};return W.cloneElement(m,Object.assign({},ny(m.props,mc(Hl(f,["ref"]))),g,v,{ref:a(m.ref,v.ref)},x))}return W.createElement(s,Object.assign({},Hl(f,["ref"]),s!==W.Fragment&&v,s!==W.Fragment&&g),m)}function gC(...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 a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];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](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});return t}function Gn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function mc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Hl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let mC="div";var iy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(iy||{});function vC(e,t){var r;let{features:i=1,...a}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(r=a["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:s,theirProps:a,slot:{},defaultTag:mC,name:"Hidden"})}let yC=Gn(vC),ef=W.createContext(null);ef.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(ef)}function bC({value:e,children:t}){return W.createElement(ef.Provider,{value:e},t)}function wC(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&&xC(r)?!1:i}function xC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function SC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=i.requestSubmit)==null||r.call(i)}}var vc=(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))(vc||{});function tf(){let e=W.useRef(!1);return Cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ay=W.createContext(null);function sy(){let e=W.useContext(ay);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,sy),t}return e}function EC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),a=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(ay.Provider,{value:a},r.children)},[t])]}let _C="p";function OC(e,t){let r=Qc(),{id:i=`headlessui-description-${r}`,...a}=e,s=sy(),l=Uo(t);Cr(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Zn({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:_C,name:s.name||"Description"})}let AC=Gn(OC),TC=Object.assign(AC,{}),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 RC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),a=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:a},r.children)},[t])]}let PC="label";function CC(e,t){let r=Qc(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=ly(),c=Uo(t);Cr(()=>l.register(i),[i,l.register]);let f={ref:c,...l.props,id:i};return a&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in s&&delete s.onClick),Zn({ourProps:f,theirProps:s,slot:l.slot||{},defaultTag:PC,name:l.name||"Label"})}let kC=Gn(CC),$C=Object.assign(kC,{});function IC(e=0){let[t,r]=W.useState(e),i=tf(),a=W.useCallback(f=>{i.current&&r(v=>v|f)},[t,i]),s=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:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let rf=W.createContext(null);rf.displayName="GroupContext";let LC=W.Fragment;function MC(e){var t;let[r,i]=W.useState(null),[a,s]=RC(),[l,c]=EC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),v={},m=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(s,{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(rf.Provider,{value:f},Zn({ourProps:v,theirProps:m,defaultTag:LC,name:"Switch.Group"}))))}let FC="button";function DC(e,t){var r;let i=Qc(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:c,disabled:f=!1,name:v,value:m,form:g,...p}=e,b=W.useContext(rf),x=W.useRef(null),d=Uo(x,t,b===null?null:b.setSwitch),[w,h]=cC(s,c,l),S=St(()=>h==null?void 0:h(!w)),E=St(F=>{if(wC(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=St(F=>{F.key===vc.Space?(F.preventDefault(),S()):F.key===vc.Enter&&SC(F.currentTarget)}),O=St(F=>F.preventDefault()),k=W.useMemo(()=>({checked:w}),[w]),U={id:a,ref:d,role:"switch",type:pC(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},M=Xc();return W.useEffect(()=>{var F;let G=(F=x.current)==null?void 0:F.closest("form");G&&l!==void 0&&M.addEventListener(G,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,v!=null&&w&&W.createElement(yC,{features:iy.Hidden,...mc({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:FC,name:"Switch"}))}let NC=Gn(DC),jC=MC,zC=Object.assign(NC,{Group:jC,Label:$C,Description:TC});function WC(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function ql(e,...t){e&&t.length>0&&e.classList.add(...t)}function Zl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function UC(e,t){let r=Wo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].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=s+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 BC(e,t,r,i){let a=r?"enter":"leave",s=Wo(),l=i!==void 0?WC(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ar(a,{enter:()=>t.enter,leave:()=>t.leave}),f=Ar(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),v=Ar(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Zl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ql(e,...t.base,...c,...v),s.nextFrame(()=>{Zl(e,...t.base,...c,...v),ql(e,...t.base,...c,...f),UC(e,()=>(Zl(e,...t.base,...c),ql(e,...t.base,...t.entered),l()))}),s.dispose}function HC({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=tf(),c=Xc(),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(),a.current(f.current),v.add(BC(m,i.current,f.current==="enter",()=>{v.dispose(),s.current(f.current)})),v.dispose},[r])}function ln(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ns=W.createContext(null);Ns.displayName="TransitionContext";var qC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qC||{});function ZC(){let e=W.useContext(Ns);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function GC(){let e=W.useContext(js);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let js=W.createContext(null);js.displayName="NestingContext";function zs(e){return"children"in e?zs(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([]),a=tf(),s=Xc(),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"}}),s.microTask(()=>{var w;!zs(i)&&a.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 KC(){}let VC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nm(e){var t;let r={};for(let i of VC)r[i]=(t=e[i])!=null?t:KC;return r}function YC(e){let t=W.useRef(nm(e));return W.useEffect(()=>{t.current=nm(e)},[e]),t}let XC="div",fy=ry.RenderStrategy;function JC(e,t){var r,i;let{beforeEnter:a,afterEnter:s,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}=ZC(),[k,U]=W.useState(E?"visible":"hidden"),M=GC(),{register:F,unregister:G}=M;W.useEffect(()=>F(w),[F,w]),W.useEffect(()=>{if(S===pn.Hidden&&w.current){if(E&&k!=="visible"){U("visible");return}return Ar(k,{hidden:()=>G(w),visible:()=>F(w)})}},[k,w,F,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=YC({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),B=Jc();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=IC(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)},M),Q=W.useRef(!1);HC({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"&&!zs(Z)&&(U("hidden"),G(w))})});let ae=d,ue={ref:h};return C?ae={...ae,className:bs(d.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(ae.className=bs(d.className,(i=w.current)==null?void 0:i.className),ae.className===""&&delete ae.className),W.createElement(js.Provider,{value:Z},W.createElement(bC,{value:Ar(k,{visible:Hr.Open,hidden:Hr.Closed})|Y.flags},Zn({ourProps:ue,theirProps:ae,defaultTag:XC,features:fy,visible:k==="visible",name:"Transition.Child"})))}function QC(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=W.useRef(null),c=Uo(l,t);Jc();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(!zs(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:a},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(js.Provider,{value:g},W.createElement(Ns.Provider,{value:d},Zn({ourProps:{...w,as:W.Fragment,children:W.createElement(dy,{ref:c,...w,...s,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:fy,visible:v==="visible",name:"Transition"})))}function ek(e,t){let r=W.useContext(Ns)!==null,i=oy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(yc,{ref:t,...e}):W.createElement(dy,{ref:t,...e}))}let yc=Gn(QC),dy=Gn(JC),tk=Gn(ek),ws=Object.assign(yc,{Child:tk,Root:yc});const Gl={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"},a)=>{const s=l=>{e(l)};return D.jsx("div",{className:We("flex items-center",i),children:D.jsx(zC,{as:"span",ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
89
- relative inline-flex shrink-0 ${Gl[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:D.jsx("span",{"aria-hidden":"true",className:`${t?Gl[r].translate:"translate-x-0"}
90
- pointer-events-none inline-block ${Gl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function nf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Kn=nf();function hy(e){Kn=e}var _o={exec:()=>null};function Ce(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(a,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Rt.caret,"$1"),r=r.replace(a,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")},rk=/^(?:[ \t]*(?:\n|$))+/,nk=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ik=/^ {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+|$)/,ok=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,of=/(?:[*+-]|\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,of).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(),ak=Ce(gy).replace(/bull/g,of).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]+)*)/,sk=/^[^\n]+/,sf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,uk=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",sf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),lk=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,of).getRegex(),Ws="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",uf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ck=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",uf).replace("tag",Ws).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",Ws).getRegex(),fk=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vy).getRegex(),lf={blockquote:fk,code:nk,def:uk,fences:ik,heading:ok,hr:Bo,html:ck,lheading:my,list:lk,newline:rk,paragraph:vy,table:_o,text:sk},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",Ws).getRegex(),dk={...lf,lheading:ak,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",Ws).getRegex()},pk={...lf,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",uf).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()},hk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yy=/^( {2,}|\\)\n(?!\s*$)/,mk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Us=/[\p{P}\p{S}]/u,cf=/[\s\p{P}\p{S}]/u,by=/[^\s\p{P}\p{S}]/u,vk=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,cf).getRegex(),wy=/(?!~)[\p{P}\p{S}]/u,yk=/(?!~)[\s\p{P}\p{S}]/u,bk=/(?:[^\s\p{P}\p{S}]|~)/u,wk=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,xy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,xk=Ce(xy,"u").replace(/punct/g,Us).getRegex(),Sk=Ce(xy,"u").replace(/punct/g,wy).getRegex(),Sy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ek=Ce(Sy,"gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,cf).replace(/punct/g,Us).getRegex(),_k=Ce(Sy,"gu").replace(/notPunctSpace/g,bk).replace(/punctSpace/g,yk).replace(/punct/g,wy).getRegex(),Ok=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,cf).replace(/punct/g,Us).getRegex(),Ak=Ce(/\\(punct)/,"gu").replace(/punct/g,Us).getRegex(),Tk=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(),Rk=Ce(uf).replace("(?:-->|$)","-->").getRegex(),Pk=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",Rk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ck=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",xs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ey=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",xs).replace("ref",sf).getRegex(),_y=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",sf).getRegex(),kk=Ce("reflink|nolink(?!\\()","g").replace("reflink",Ey).replace("nolink",_y).getRegex(),om=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ff={_backpedal:_o,anyPunctuation:Ak,autolink:Tk,blockSkip:wk,br:yy,code:gk,del:_o,emStrongLDelim:xk,emStrongRDelimAst:Ek,emStrongRDelimUnd:Ok,escape:hk,link:Ck,nolink:_y,punctuation:vk,reflink:Ey,reflinkSearch:kk,tag:Pk,text:mk,url:_o},$k={...ff,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",xs).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xs).getRegex()},bc={...ff,emStrongRDelimAst:_k,emStrongLDelim:Sk,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()},Ik={...bc,br:Ce(yy).replace("{2,}","*").getRegex(),text:Ce(bc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qa={normal:lf,gfm:dk,pedantic:pk},lo={normal:ff,gfm:bc,breaks:Ik,pedantic:$k},Lk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},am=e=>Lk[e];function Sr(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,am)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,am);return e}function sm(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function um(e,t){var s;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),a=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;a<i.length;a++)i[a]=i[a].trim().replace(Rt.slashPipe,"|");return i}function co(e,t,r){let i=e.length;if(i===0)return"";let a=0;for(;a<i&&e.charAt(i-a-1)===t;)a++;return e.slice(0,i-a)}function Mk(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,a){let s=t.href,l=t.title||null,c=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function Fk(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let a=i[1];return t.split(`
88
+ `));let p=m.props,b=typeof(p==null?void 0:p.className)=="function"?(...d)=>bs(p==null?void 0:p.className(...d),f.className):bs(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:a(m.ref,v.ref)},x))}return W.createElement(s,Object.assign({},ql(f,["ref"]),s!==W.Fragment&&v,s!==W.Fragment&&g),m)}function mC(...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 a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];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](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});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 vC="div";var iy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(iy||{});function yC(e,t){var r;let{features:i=1,...a}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(r=a["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:s,theirProps:a,slot:{},defaultTag:vC,name:"Hidden"})}let bC=Gn(yC),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 wC({value:e,children:t}){return W.createElement(tf.Provider,{value:e},t)}function xC(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&&SC(r)?!1:i}function SC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function EC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.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 ay=W.createContext(null);function sy(){let e=W.useContext(ay);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,sy),t}return e}function _C(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),a=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(ay.Provider,{value:a},r.children)},[t])]}let OC="p";function AC(e,t){let r=ef(),{id:i=`headlessui-description-${r}`,...a}=e,s=sy(),l=Uo(t);Cr(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Zn({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:OC,name:s.name||"Description"})}let TC=Gn(AC),RC=Object.assign(TC,{}),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 PC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),a=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:a},r.children)},[t])]}let CC="label";function kC(e,t){let r=ef(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=ly(),c=Uo(t);Cr(()=>l.register(i),[i,l.register]);let f={ref:c,...l.props,id:i};return a&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in s&&delete s.onClick),Zn({ourProps:f,theirProps:s,slot:l.slot||{},defaultTag:CC,name:l.name||"Label"})}let $C=Gn(kC),IC=Object.assign($C,{});function LC(e=0){let[t,r]=W.useState(e),i=rf(),a=W.useCallback(f=>{i.current&&r(v=>v|f)},[t,i]),s=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:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let nf=W.createContext(null);nf.displayName="GroupContext";let MC=W.Fragment;function FC(e){var t;let[r,i]=W.useState(null),[a,s]=PC(),[l,c]=_C(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),v={},m=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(s,{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:MC,name:"Switch.Group"}))))}let DC="button";function NC(e,t){var r;let i=ef(),{id:a=`headlessui-switch-${i}`,checked:s,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]=fC(s,c,l),S=St(()=>h==null?void 0:h(!w)),E=St(F=>{if(xC(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=St(F=>{F.key===yc.Space?(F.preventDefault(),S()):F.key===yc.Enter&&EC(F.currentTarget)}),O=St(F=>F.preventDefault()),k=W.useMemo(()=>({checked:w}),[w]),U={id:a,ref:d,role:"switch",type:hC(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},M=Jc();return W.useEffect(()=>{var F;let G=(F=x.current)==null?void 0:F.closest("form");G&&l!==void 0&&M.addEventListener(G,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,v!=null&&w&&W.createElement(bC,{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:DC,name:"Switch"}))}let jC=Gn(NC),zC=FC,WC=Object.assign(jC,{Group:zC,Label:IC,Description:RC});function UC(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 BC(e,t){let r=Wo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].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=s+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 HC(e,t,r,i){let a=r?"enter":"leave",s=Wo(),l=i!==void 0?UC(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ar(a,{enter:()=>t.enter,leave:()=>t.leave}),f=Ar(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),v=Ar(a,{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),s.nextFrame(()=>{Gl(e,...t.base,...c,...v),Zl(e,...t.base,...c,...f),BC(e,()=>(Gl(e,...t.base,...c),Zl(e,...t.base,...t.entered),l()))}),s.dispose}function qC({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){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(),a.current(f.current),v.add(HC(m,i.current,f.current==="enter",()=>{v.dispose(),s.current(f.current)})),v.dispose},[r])}function ln(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let js=W.createContext(null);js.displayName="TransitionContext";var ZC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ZC||{});function GC(){let e=W.useContext(js);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function KC(){let e=W.useContext(zs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let zs=W.createContext(null);zs.displayName="NestingContext";function Ws(e){return"children"in e?Ws(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([]),a=rf(),s=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"}}),s.microTask(()=>{var w;!Ws(i)&&a.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 VC(){}let YC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nm(e){var t;let r={};for(let i of YC)r[i]=(t=e[i])!=null?t:VC;return r}function XC(e){let t=W.useRef(nm(e));return W.useEffect(()=>{t.current=nm(e)},[e]),t}let JC="div",fy=ry.RenderStrategy;function QC(e,t){var r,i;let{beforeEnter:a,afterEnter:s,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}=GC(),[k,U]=W.useState(E?"visible":"hidden"),M=KC(),{register:F,unregister:G}=M;W.useEffect(()=>F(w),[F,w]),W.useEffect(()=>{if(S===pn.Hidden&&w.current){if(E&&k!=="visible"){U("visible");return}return Ar(k,{hidden:()=>G(w),visible:()=>F(w)})}},[k,w,F,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=XC({beforeEnter:a,afterEnter:s,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=LC(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)},M),Q=W.useRef(!1);qC({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"&&!Ws(Z)&&(U("hidden"),G(w))})});let ae=d,ue={ref:h};return C?ae={...ae,className:bs(d.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(ae.className=bs(d.className,(i=w.current)==null?void 0:i.className),ae.className===""&&delete ae.className),W.createElement(zs.Provider,{value:Z},W.createElement(wC,{value:Ar(k,{visible:Hr.Open,hidden:Hr.Closed})|Y.flags},Zn({ourProps:ue,theirProps:ae,defaultTag:JC,features:fy,visible:k==="visible",name:"Transition.Child"})))}function ek(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=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(!Ws(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:a},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(zs.Provider,{value:g},W.createElement(js.Provider,{value:d},Zn({ourProps:{...w,as:W.Fragment,children:W.createElement(dy,{ref:c,...w,...s,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:fy,visible:v==="visible",name:"Transition"})))}function tk(e,t){let r=W.useContext(js)!==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(ek),dy=Gn(QC),rk=Gn(tk),ws=Object.assign(bc,{Child:rk,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"},a)=>{const s=l=>{e(l)};return D.jsx("div",{className:We("flex items-center",i),children:D.jsx(WC,{as:"span",ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},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:D.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:(a,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Rt.caret,"$1"),r=r.replace(a,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")},nk=/^(?:[ \t]*(?:\n|$))+/,ik=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ok=/^ {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+|$)/,ak=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,af=/(?:[*+-]|\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,af).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(),sk=Ce(gy).replace(/bull/g,af).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(),sf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uk=/^[^\n]+/,uf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lk=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",uf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ck=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,af).getRegex(),Us="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]*?(?:-->|$))/,fk=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",Us).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vy=Ce(sf).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",Us).getRegex(),dk=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vy).getRegex(),cf={blockquote:dk,code:ik,def:lk,fences:ok,heading:ak,hr:Bo,html:fk,lheading:my,list:ck,newline:nk,paragraph:vy,table:_o,text:uk},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",Us).getRegex(),pk={...cf,lheading:sk,table:im,paragraph:Ce(sf).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",Us).getRegex()},hk={...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(sf).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()},gk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yy=/^( {2,}|\\)\n(?!\s*$)/,vk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Bs=/[\p{P}\p{S}]/u,ff=/[\s\p{P}\p{S}]/u,by=/[^\s\p{P}\p{S}]/u,yk=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ff).getRegex(),wy=/(?!~)[\p{P}\p{S}]/u,bk=/(?!~)[\s\p{P}\p{S}]/u,wk=/(?:[^\s\p{P}\p{S}]|~)/u,xk=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,xy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Sk=Ce(xy,"u").replace(/punct/g,Bs).getRegex(),Ek=Ce(xy,"u").replace(/punct/g,wy).getRegex(),Sy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_k=Ce(Sy,"gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,ff).replace(/punct/g,Bs).getRegex(),Ok=Ce(Sy,"gu").replace(/notPunctSpace/g,wk).replace(/punctSpace/g,bk).replace(/punct/g,wy).getRegex(),Ak=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,ff).replace(/punct/g,Bs).getRegex(),Tk=Ce(/\\(punct)/,"gu").replace(/punct/g,Bs).getRegex(),Rk=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(),Pk=Ce(lf).replace("(?:-->|$)","-->").getRegex(),Ck=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",Pk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,kk=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",xs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ey=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",xs).replace("ref",uf).getRegex(),_y=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",uf).getRegex(),$k=Ce("reflink|nolink(?!\\()","g").replace("reflink",Ey).replace("nolink",_y).getRegex(),om=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,df={_backpedal:_o,anyPunctuation:Tk,autolink:Rk,blockSkip:xk,br:yy,code:mk,del:_o,emStrongLDelim:Sk,emStrongRDelimAst:_k,emStrongRDelimUnd:Ak,escape:gk,link:kk,nolink:_y,punctuation:yk,reflink:Ey,reflinkSearch:$k,tag:Ck,text:vk,url:_o},Ik={...df,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",xs).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xs).getRegex()},wc={...df,emStrongRDelimAst:Ok,emStrongLDelim:Ek,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()},Lk={...wc,br:Ce(yy).replace("{2,}","*").getRegex(),text:Ce(wc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qa={normal:cf,gfm:pk,pedantic:hk},lo={normal:df,gfm:wc,breaks:Lk,pedantic:Ik},Mk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},am=e=>Mk[e];function Sr(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,am)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,am);return e}function sm(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function um(e,t){var s;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),a=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;a<i.length;a++)i[a]=i[a].trim().replace(Rt.slashPipe,"|");return i}function co(e,t,r){let i=e.length;if(i===0)return"";let a=0;for(;a<i&&e.charAt(i-a-1)===t;)a++;return e.slice(0,i-a)}function Fk(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,a){let s=t.href,l=t.title||null,c=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function Dk(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let a=i[1];return t.split(`
92
92
  `).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[c]=l;return c.length>=a.length?s.slice(a.length):s}).join(`
93
93
  `)}var Ss=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],a=Fk(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:a}}}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 a=co(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.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],`
94
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],a=Dk(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:a}}}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 a=co(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.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
95
  `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=co(r[0],`
96
96
  `).split(`
97
97
  `),a="",s="",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(`
@@ -112,7 +112,7 @@ ${g}`:g;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
112
112
  `+b}!x&&!b.trim()&&(x=!0),m+=U+`
113
113
  `,t=t.substring(U.length+1),p=M.slice(d)}}s.loose||(c?s.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,""))),s.items.push({type:"list_item",raw:m,task:!!w,checked:h,loose:!1,text:g,tokens:[]}),s.raw+=m}let f=s.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let v=0;v<s.items.length;v++)if(this.lexer.state.top=!1,s.items[v].tokens=this.lexer.blockTokens(s.items[v].text,[]),!s.loose){let m=s.items[v].tokens.filter(p=>p.type==="space"),g=m.length>0&&m.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=g}if(s.loose)for(let v=0;v<s.items.length;v++)s.items[v].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:a,title:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=um(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
114
114
  `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let f of a)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 s)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=Mk(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 a=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),lm(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[a.toLowerCase()];if(!s){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return lm(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...a[0]].length-1,l,c,f=s,v=0,m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+s);(a=m.exec(r))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(c=[...l].length,a[3]||a[4]){f+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){v+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+v);let g=[...a[0]][0].length,p=t.slice(0,s+a.index+g+c);if(Math.min(s,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," "),a=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&s&&(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,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let a,s;if(r[2]==="@")a=r[0],s="mailto:"+a;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]);a=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}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 wc{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 Ss,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:Qa.normal,inline:lo.normal};this.options.pedantic?(r.block=Qa.pedantic,r.inline=lo.pedantic):this.options.gfm&&(r.block=Qa.gfm,this.options.breaks?r.inline=lo.breaks:r.inline=lo.gfm),this.tokenizer.rules=r}static get rules(){return{block:Qa,inline:lo}}static lex(t,r){return new wc(r).lex(t)}static lexInline(t,r){return new wc(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
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=Fk(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 a=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),lm(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[a.toLowerCase()];if(!s){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return lm(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...a[0]].length-1,l,c,f=s,v=0,m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+s);(a=m.exec(r))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(c=[...l].length,a[3]||a[4]){f+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){v+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+v);let g=[...a[0]][0].length,p=t.slice(0,s+a.index+g+c);if(Math.min(s,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," "),a=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&s&&(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,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let a,s;if(r[2]==="@")a=r[0],s="mailto:"+a;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]);a=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}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 Ss,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:Qa.normal,inline:lo.normal};this.options.pedantic?(r.block=Qa.pedantic,r.inline=lo.pedantic):this.options.gfm&&(r.block=Qa.gfm,this.options.breaks?r.inline=lo.breaks:r.inline=lo.gfm),this.tokenizer.rules=r}static get rules(){return{block:Qa,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
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 a,s,l;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((s=(a=this.options.extensions)==null?void 0:a.block)!=null&&s.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
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(`
118
118
  `)?"":`
@@ -144,9 +144,9 @@ ${this.parser.parse(t)}</blockquote>
144
144
  `}tablerow({text:t}){return`<tr>
145
145
  ${t}</tr>
146
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 a=this.parser.parseInline(i),s=sm(t);if(s===null)return a;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+Sr(r)+'"'),l+=">"+a+"</a>",l}image({href:t,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let s=sm(t);if(s===null)return Sr(i);t=s;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)}},df=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 xc{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||Kn,this.options.renderer=this.options.renderer||new Es,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new df}static parse(t,r){return new xc(r).parse(t)}static parseInline(t,r){return new xc(r).parseInline(t)}parse(t,r=!0){var a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[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 a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[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}},is,ho=(is=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(is,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(is,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),is),Oy=class{constructor(...t){ve(this,"defaults",nf());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",pr);ve(this,"Renderer",Es);ve(this,"TextRenderer",df);ve(this,"Lexer",dr);ve(this,"Tokenizer",Ss);ve(this,"Hooks",ho);this.use(...t)}walkTokens(t,r){var a,s;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;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[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 a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let f=s.renderer.apply(this,c);return f===!1&&(f=l.apply(this,c)),f}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),a.extensions=r),i.renderer){let s=this.defaults.renderer||new Es(this.defaults);for(let l in i.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,f=i.renderer[c],v=s[c];s[c]=(...m)=>{let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g||""}}a.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Ss(this.defaults);for(let l in i.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,f=i.tokenizer[c],v=s[c];s[c]=(...m)=>{let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g}}a.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new ho;for(let l in i.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,f=i.hooks[c],v=s[c];ho.passThroughHooks.has(l)?s[c]=m=>{if(this.defaults.async&&ho.passThroughHooksRespectAsync.has(l))return(async()=>{let p=await f.call(s,m);return v.call(s,p)})();let g=f.call(s,m);return v.call(s,g)}:s[c]=(...m)=>{if(this.defaults.async)return(async()=>{let p=await f.apply(s,m);return p===!1&&(p=await v.apply(s,m)),p})();let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g}}a.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(c){let f=[];return f.push(l.call(this,c)),s&&(f=f.concat(s.call(this,c))),f}}this.defaults={...this.defaults,...a}}),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 a={...i},s={...this.defaults,...a},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,f=await(s.hooks?await s.hooks.provideLexer():t?dr.lex:dr.lexInline)(c,s),v=s.hooks?await s.hooks.processAllTokens(f):f;s.walkTokens&&await Promise.all(this.walkTokens(v,s.walkTokens));let m=await(s.hooks?await s.hooks.provideParser():t?pr.parse:pr.parseInline)(v,s);return s.hooks?await s.hooks.postprocess(m):m})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?dr.lex:dr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let f=(s.hooks?s.hooks.provideParser():t?pr.parse:pr.parseInline)(c,s);return s.hooks&&(f=s.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 a="<p>An error occurred:</p><pre>"+Sr(i.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}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=nf;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=Es;De.TextRenderer=df;De.Lexer=dr;De.lexer=dr.lex;De.Tokenizer=Ss;De.Hooks=ho;De.parse=De;De.options;De.setOptions;De.use;De.walkTokens;De.parseInline;pr.parse;dr.lex;const Dk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ay=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,Nk=RegExp(Ay.source),cm=(e="")=>Nk.test(e)?e.replace(Ay,t=>Dk[t]||"'"):e,fm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var jk=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,a=this.parse(i.tokens);return this.renderer.blockquote(a)}case"list":{const i=r;this.renderer.elIdList.push(0);const a=i.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(a,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 a=i.header.map((v,m)=>this.renderer.tableCell(this.parseInline(v.tokens),{header:!0,align:r.align[m]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(a),l=this.renderer.tableHeader(s);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}},zk=jk,cn,ze,rt,Sc,Wm,Wk=(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 a=r,s=i;!this[a]||a==="elementId"||a==="elIdList"||typeof s!="function"||Object.defineProperty(this,a,{value(...l){return $e(this,ze,Sc).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,ze,rt).call(this,`h${t}`,e)}paragraph(e){return $e(this,ze,rt).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,rt).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,rt).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,rt).call(this,"code",e,{className:r})}code(e,t){return $e(this,ze,rt).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,ze,rt).call(this,"blockquote",e)}list(e,t,r){return $e(this,ze,rt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,ze,rt).call(this,"li",e)}checkbox(e){return $e(this,ze,rt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,ze,rt).call(this,"table",e)}tableHeader(e){return $e(this,ze,rt).call(this,"thead",e)}tableBody(e){return $e(this,ze,rt).call(this,"tbody",e)}tableRow(e){return $e(this,ze,rt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,ze,rt).call(this,r,e,{align:t.align})}strong(e){return $e(this,ze,rt).call(this,"strong",e)}em(e){return $e(this,ze,rt).call(this,"em",e)}del(e){return $e(this,ze,rt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,ze,rt).call(this,"hr")}br(){return $e(this,ze,rt).call(this,"br")}},cn=new WeakMap,ze=new WeakSet,rt=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,ze,Sc).call(this),W.createElement(e,{...r,...i},t)},Sc=function(){this.elIdList[this.elIdList.length-1]+=1},Wm),Uk=Wk;const Bk=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}`)},Hk={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},qk=new Oy,Zk=e=>{Bk(e);const t={...Hk,...e},r=t.instance??qk,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},a=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(a,i):r.lexer(a,i),l={renderer:new Uk({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new zk(l),f=t.isInline?c.parseInline(s):c.parse(s);return W.createElement(W.Fragment,null,f)};var Gk=Zk,Kk=Gk;const Vk=({children:e,label:t,placement:r="top",className:i,isDisabled:a,container:s})=>{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 a?D.jsx(D.Fragment,{children:d}):D.jsxs(D.Fragment,{children:[d,g&&t&&Do.createPortal(D.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:D.jsx(Kk,{openLinksInNewTab:!0,children:t})}),s||document.body)]})},Yk=sc.keyframes`
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 a=this.parser.parseInline(i),s=sm(t);if(s===null)return a;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+Sr(r)+'"'),l+=">"+a+"</a>",l}image({href:t,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let s=sm(t);if(s===null)return Sr(i);t=s;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 Es,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 a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[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 a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[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}},is,ho=(is=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(is,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(is,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),is),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",Es);ve(this,"TextRenderer",pf);ve(this,"Lexer",dr);ve(this,"Tokenizer",Ss);ve(this,"Hooks",ho);this.use(...t)}walkTokens(t,r){var a,s;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;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[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 a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let f=s.renderer.apply(this,c);return f===!1&&(f=l.apply(this,c)),f}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),a.extensions=r),i.renderer){let s=this.defaults.renderer||new Es(this.defaults);for(let l in i.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,f=i.renderer[c],v=s[c];s[c]=(...m)=>{let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g||""}}a.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Ss(this.defaults);for(let l in i.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,f=i.tokenizer[c],v=s[c];s[c]=(...m)=>{let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g}}a.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new ho;for(let l in i.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,f=i.hooks[c],v=s[c];ho.passThroughHooks.has(l)?s[c]=m=>{if(this.defaults.async&&ho.passThroughHooksRespectAsync.has(l))return(async()=>{let p=await f.call(s,m);return v.call(s,p)})();let g=f.call(s,m);return v.call(s,g)}:s[c]=(...m)=>{if(this.defaults.async)return(async()=>{let p=await f.apply(s,m);return p===!1&&(p=await v.apply(s,m)),p})();let g=f.apply(s,m);return g===!1&&(g=v.apply(s,m)),g}}a.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(c){let f=[];return f.push(l.call(this,c)),s&&(f=f.concat(s.call(this,c))),f}}this.defaults={...this.defaults,...a}}),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 a={...i},s={...this.defaults,...a},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,f=await(s.hooks?await s.hooks.provideLexer():t?dr.lex:dr.lexInline)(c,s),v=s.hooks?await s.hooks.processAllTokens(f):f;s.walkTokens&&await Promise.all(this.walkTokens(v,s.walkTokens));let m=await(s.hooks?await s.hooks.provideParser():t?pr.parse:pr.parseInline)(v,s);return s.hooks?await s.hooks.postprocess(m):m})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?dr.lex:dr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let f=(s.hooks?s.hooks.provideParser():t?pr.parse:pr.parseInline)(c,s);return s.hooks&&(f=s.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 a="<p>An error occurred:</p><pre>"+Sr(i.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}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=Es;De.TextRenderer=pf;De.Lexer=dr;De.lexer=dr.lex;De.Tokenizer=Ss;De.Hooks=ho;De.parse=De;De.options;De.setOptions;De.use;De.walkTokens;De.parseInline;pr.parse;dr.lex;const Nk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ay=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,jk=RegExp(Ay.source),cm=(e="")=>jk.test(e)?e.replace(Ay,t=>Nk[t]||"'"):e,fm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var zk=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,a=this.parse(i.tokens);return this.renderer.blockquote(a)}case"list":{const i=r;this.renderer.elIdList.push(0);const a=i.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(a,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 a=i.header.map((v,m)=>this.renderer.tableCell(this.parseInline(v.tokens),{header:!0,align:r.align[m]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(a),l=this.renderer.tableHeader(s);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}},Wk=zk,cn,ze,rt,Ec,Wm,Uk=(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 a=r,s=i;!this[a]||a==="elementId"||a==="elIdList"||typeof s!="function"||Object.defineProperty(this,a,{value(...l){return $e(this,ze,Ec).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,ze,rt).call(this,`h${t}`,e)}paragraph(e){return $e(this,ze,rt).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,rt).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,rt).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,rt).call(this,"code",e,{className:r})}code(e,t){return $e(this,ze,rt).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,ze,rt).call(this,"blockquote",e)}list(e,t,r){return $e(this,ze,rt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,ze,rt).call(this,"li",e)}checkbox(e){return $e(this,ze,rt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,ze,rt).call(this,"table",e)}tableHeader(e){return $e(this,ze,rt).call(this,"thead",e)}tableBody(e){return $e(this,ze,rt).call(this,"tbody",e)}tableRow(e){return $e(this,ze,rt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,ze,rt).call(this,r,e,{align:t.align})}strong(e){return $e(this,ze,rt).call(this,"strong",e)}em(e){return $e(this,ze,rt).call(this,"em",e)}del(e){return $e(this,ze,rt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,ze,rt).call(this,"hr")}br(){return $e(this,ze,rt).call(this,"br")}},cn=new WeakMap,ze=new WeakSet,rt=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),Bk=Uk;const Hk=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}`)},qk={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},Zk=new Oy,Gk=e=>{Hk(e);const t={...qk,...e},r=t.instance??Zk,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},a=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(a,i):r.lexer(a,i),l={renderer:new Bk({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new Wk(l),f=t.isInline?c.parseInline(s):c.parse(s);return W.createElement(W.Fragment,null,f)};var Kk=Gk,Vk=Kk;const Yk=({children:e,label:t,placement:r="top",className:i,isDisabled:a,container:s})=>{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 a?D.jsx(D.Fragment,{children:d}):D.jsxs(D.Fragment,{children:[d,g&&t&&Do.createPortal(D.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:D.jsx(Vk,{openLinksInNewTab:!0,children:t})}),s||document.body)]})},Xk=uc.keyframes`
150
150
  to {
151
151
  fill: url(#d);
152
152
  stroke-dashoffset: 0;
@@ -162,7 +162,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error
162
162
  fill: transparent;
163
163
  stroke-dasharray: 700;
164
164
  stroke-dashoffset: 700;
165
- animation: ${Yk} 1.5s ease-in-out infinite alternate-reverse;
165
+ animation: ${Xk} 1.5s ease-in-out infinite alternate-reverse;
166
166
  }
167
167
 
168
168
  & #circle {
@@ -172,17 +172,17 @@ Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error
172
172
  stroke-dasharray: 700;
173
173
  stroke-dashoffset: 700;
174
174
  }
175
- `,Xk=({message:e,version:t})=>D.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:D.jsxs("div",{className:"flex flex-col text-center",children:[D.jsx("div",{className:"relative mr-4 self-center",children:D.jsx("div",{className:"flex items-center justify-center rounded",children:D.jsxs(Ty,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[D.jsx("defs",{children:D.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[D.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:D.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),D.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:D.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),D.jsx("g",{id:"a"}),D.jsx("g",{id:"b",children:D.jsx("g",{id:"c",children:D.jsxs("g",{children:[D.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"}),D.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"})]})})})]})})}),D.jsxs("div",{children:[D.jsx("span",{className:"text-xs text-grey-200",children:t}),D.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var go={exports:{}};/**
175
+ `,Jk=({message:e,version:t})=>D.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:D.jsxs("div",{className:"flex flex-col text-center",children:[D.jsx("div",{className:"relative mr-4 self-center",children:D.jsx("div",{className:"flex items-center justify-center rounded",children:D.jsxs(Ty,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[D.jsx("defs",{children:D.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[D.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:D.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),D.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:D.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),D.jsx("g",{id:"a"}),D.jsx("g",{id:"b",children:D.jsx("g",{id:"c",children:D.jsxs("g",{children:[D.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"}),D.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"})]})})})]})})}),D.jsxs("div",{children:[D.jsx("span",{className:"text-xs text-grey-200",children:t}),D.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var go={exports:{}};/**
176
176
  * @license
177
177
  * Lodash <https://lodash.com/>
178
178
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
179
179
  * Released under MIT license <https://lodash.com/license>
180
180
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
181
181
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
182
- */var Jk=go.exports,dm;function Qk(){return dm||(dm=1,(function(e,t){(function(){var r,i="4.17.21",a=200,s="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,M=256,F=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,ae=Q-1,ue=Q>>>1,ne=[["ary",U],["bind",w],["bindKey",h],["curry",E],["curryRight",R],["flip",F],["partial",O],["partialRight",k],["rearg",M]],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]",Ks="[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]",Vs="[object Float32Array]",Ys="[object Float64Array]",Xs="[object Int8Array]",Js="[object Int16Array]",Qs="[object Int32Array]",eu="[object Uint8Array]",tu="[object Uint8ClampedArray]",ru="[object Uint16Array]",nu="[object Uint32Array]",j0=/\b__p \+= '';/g,z0=/\b(__p \+=) '' \+/g,W0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,If=/&(?:amp|lt|gt|quot|#39);/g,Lf=/[&<>"']/g,U0=RegExp(If.source),B0=RegExp(Lf.source),H0=/<%-([\s\S]+?)%>/g,q0=/<%([\s\S]+?)%>/g,Mf=/<%=([\s\S]+?)%>/g,Z0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G0=/^\w*$/,K0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iu=/[\\^$.*+?()[\]{}|]/g,V0=RegExp(iu.source),ou=/^\s+/,Y0=/\s/,X0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J0=/\{\n\/\* \[wrapped with (.+)\] \*/,Q0=/,? & /,eb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tb=/[()=,{}\[\]\/\s]/,rb=/\\(\\)?/g,nb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ff=/\w*$/,ib=/^[-+]0x[0-9a-f]+$/i,ob=/^0b[01]+$/i,ab=/^\[object .+?Constructor\]$/,sb=/^0o[0-7]+$/i,ub=/^(?:0|[1-9]\d*)$/,lb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vo=/($^)/,cb=/['\n\r\u2028\u2029\\]/g,Yo="\\ud800-\\udfff",fb="\\u0300-\\u036f",db="\\ufe20-\\ufe2f",pb="\\u20d0-\\u20ff",Df=fb+db+pb,Nf="\\u2700-\\u27bf",jf="a-z\\xdf-\\xf6\\xf8-\\xff",hb="\\xac\\xb1\\xd7\\xf7",gb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mb="\\u2000-\\u206f",vb=" \\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=hb+gb+mb+vb,au="['’]",yb="["+Yo+"]",Bf="["+Uf+"]",Xo="["+Df+"]",Hf="\\d+",bb="["+Nf+"]",qf="["+jf+"]",Zf="[^"+Yo+Uf+Hf+Nf+jf+zf+"]",su="\\ud83c[\\udffb-\\udfff]",wb="(?:"+Xo+"|"+su+")",Gf="[^"+Yo+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+zf+"]",Kf="\\u200d",Vf="(?:"+qf+"|"+Zf+")",xb="(?:"+Vn+"|"+Zf+")",Yf="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",Xf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Jf=wb+"?",Qf="["+Wf+"]?",Sb="(?:"+Kf+"(?:"+[Gf,uu,lu].join("|")+")"+Qf+Jf+")*",Eb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_b="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ed=Qf+Jf+Sb,Ob="(?:"+[bb,uu,lu].join("|")+")"+ed,Ab="(?:"+[Gf+Xo+"?",Xo,uu,lu,yb].join("|")+")",Tb=RegExp(au,"g"),Rb=RegExp(Xo,"g"),cu=RegExp(su+"(?="+su+")|"+Ab+ed,"g"),Pb=RegExp([Vn+"?"+qf+"+"+Yf+"(?="+[Bf,Vn,"$"].join("|")+")",xb+"+"+Xf+"(?="+[Bf,Vn+Vf,"$"].join("|")+")",Vn+"?"+Vf+"+"+Yf,Vn+"+"+Xf,_b,Eb,Hf,Ob].join("|"),"g"),Cb=RegExp("["+Kf+Yo+Df+Wf+"]"),kb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$b=["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"],Ib=-1,Ue={};Ue[Vs]=Ue[Ys]=Ue[Xs]=Ue[Js]=Ue[Qs]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=!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[Vs]=je[Ys]=je[Xs]=je[Js]=je[Qs]=je[lt]=je[mr]=je[Gt]=je[Mt]=je[yt]=je[Kr]=je[wn]=je[eu]=je[tu]=je[ru]=je[nu]=!0,je[Ze]=je[ie]=je[Vr]=!1;var Lb={À:"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"},Mb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Db={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nb=parseFloat,jb=parseInt,td=typeof Na=="object"&&Na&&Na.Object===Object&&Na,zb=typeof self=="object"&&self&&self.Object===Object&&self,dt=td||zb||Function("return this")(),fu=t&&!t.nodeType&&t,xn=fu&&!0&&e&&!e.nodeType&&e,rd=xn&&xn.exports===fu,du=rd&&td.process,Kt=(function(){try{var N=xn&&xn.require&&xn.require("util").types;return N||du&&du.binding&&du.binding("util")}catch{}})(),nd=Kt&&Kt.isArrayBuffer,id=Kt&&Kt.isDate,od=Kt&&Kt.isMap,ad=Kt&&Kt.isRegExp,sd=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 Wb(N,K,H,se){for(var be=-1,Pe=N==null?0:N.length;++be<Pe;){var at=N[be];K(se,at,H(at),N)}return se}function Vt(N,K){for(var H=-1,se=N==null?0:N.length;++H<se&&K(N[H],H,N)!==!1;);return N}function Ub(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,se=N==null?0:N.length;++H<se;)if(!K(N[H],H,N))return!1;return!0}function Xr(N,K){for(var H=-1,se=N==null?0:N.length,be=0,Pe=[];++H<se;){var at=N[H];K(at,H,N)&&(Pe[be++]=at)}return Pe}function Jo(N,K){var H=N==null?0:N.length;return!!H&&Yn(N,K,0)>-1}function pu(N,K,H){for(var se=-1,be=N==null?0:N.length;++se<be;)if(H(K,N[se]))return!0;return!1}function Be(N,K){for(var H=-1,se=N==null?0:N.length,be=Array(se);++H<se;)be[H]=K(N[H],H,N);return be}function Jr(N,K){for(var H=-1,se=K.length,be=N.length;++H<se;)N[be+H]=K[H];return N}function hu(N,K,H,se){var be=-1,Pe=N==null?0:N.length;for(se&&Pe&&(H=N[++be]);++be<Pe;)H=K(H,N[be],be,N);return H}function Bb(N,K,H,se){var be=N==null?0:N.length;for(se&&be&&(H=N[--be]);be--;)H=K(H,N[be],be,N);return H}function gu(N,K){for(var H=-1,se=N==null?0:N.length;++H<se;)if(K(N[H],H,N))return!0;return!1}var Hb=mu("length");function qb(N){return N.split("")}function Zb(N){return N.match(eb)||[]}function cd(N,K,H){var se;return H(N,function(be,Pe,at){if(K(be,Pe,at))return se=Pe,!1}),se}function Qo(N,K,H,se){for(var be=N.length,Pe=H+(se?1:-1);se?Pe--:++Pe<be;)if(K(N[Pe],Pe,N))return Pe;return-1}function Yn(N,K,H){return K===K?iw(N,K,H):Qo(N,fd,H)}function Gb(N,K,H,se){for(var be=H-1,Pe=N.length;++be<Pe;)if(se(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?yu(N,K)/H:Z}function mu(N){return function(K){return K==null?r:K[N]}}function vu(N){return function(K){return N==null?r:N[K]}}function pd(N,K,H,se,be){return be(N,function(Pe,at,Ne){H=se?(se=!1,Pe):K(H,Pe,at,Ne)}),H}function Kb(N,K){var H=N.length;for(N.sort(K);H--;)N[H]=N[H].value;return N}function yu(N,K){for(var H,se=-1,be=N.length;++se<be;){var Pe=K(N[se]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function bu(N,K){for(var H=-1,se=Array(N);++H<N;)se[H]=K(H);return se}function Vb(N,K){return Be(K,function(H){return[H,N[H]]})}function hd(N){return N&&N.slice(0,yd(N)+1).replace(ou,"")}function Dt(N){return function(K){return N(K)}}function wu(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,se=N.length;++H<se&&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 Yb(N,K){for(var H=N.length,se=0;H--;)N[H]===K&&++se;return se}var Xb=vu(Lb),Jb=vu(Mb);function Qb(N){return"\\"+Db[N]}function ew(N,K){return N==null?r:N[K]}function Xn(N){return Cb.test(N)}function tw(N){return kb.test(N)}function rw(N){for(var K,H=[];!(K=N.next()).done;)H.push(K.value);return H}function xu(N){var K=-1,H=Array(N.size);return N.forEach(function(se,be){H[++K]=[be,se]}),H}function vd(N,K){return function(H){return N(K(H))}}function Qr(N,K){for(var H=-1,se=N.length,be=0,Pe=[];++H<se;){var at=N[H];(at===K||at===m)&&(N[H]=m,Pe[be++]=H)}return Pe}function ea(N){var K=-1,H=Array(N.size);return N.forEach(function(se){H[++K]=se}),H}function nw(N){var K=-1,H=Array(N.size);return N.forEach(function(se){H[++K]=[se,se]}),H}function iw(N,K,H){for(var se=H-1,be=N.length;++se<be;)if(N[se]===K)return se;return-1}function ow(N,K,H){for(var se=H+1;se--;)if(N[se]===K)return se;return se}function Jn(N){return Xn(N)?sw(N):Hb(N)}function sr(N){return Xn(N)?uw(N):qb(N)}function yd(N){for(var K=N.length;K--&&Y0.test(N.charAt(K)););return K}var aw=vu(Fb);function sw(N){for(var K=cu.lastIndex=0;cu.test(N);)++K;return K}function uw(N){return N.match(cu)||[]}function lw(N){return N.match(Pb)||[]}var cw=(function N(K){K=K==null?dt:Qn.defaults(dt.Object(),K,Qn.pick(dt,$b));var H=K.Array,se=K.Date,be=K.Error,Pe=K.Function,at=K.Math,Ne=K.Object,Su=K.RegExp,fw=K.String,Yt=K.TypeError,ta=H.prototype,dw=Pe.prototype,ei=Ne.prototype,ra=K["__core-js_shared__"],na=dw.toString,Fe=ei.hasOwnProperty,pw=0,bd=(function(){var n=/[^.]+$/.exec(ra&&ra.keys&&ra.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),ia=ei.toString,hw=na.call(Ne),gw=dt._,mw=Su("^"+na.call(Fe).replace(iu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oa=rd?K.Buffer:r,en=K.Symbol,aa=K.Uint8Array,wd=oa?oa.allocUnsafe:r,sa=vd(Ne.getPrototypeOf,Ne),xd=Ne.create,Sd=ei.propertyIsEnumerable,ua=ta.splice,Ed=en?en.isConcatSpreadable:r,Ri=en?en.iterator:r,Sn=en?en.toStringTag:r,la=(function(){try{var n=Tn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),vw=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,yw=se&&se.now!==dt.Date.now&&se.now,bw=K.setTimeout!==dt.setTimeout&&K.setTimeout,ca=at.ceil,fa=at.floor,Eu=Ne.getOwnPropertySymbols,ww=oa?oa.isBuffer:r,_d=K.isFinite,xw=ta.join,Sw=vd(Ne.keys,Ne),st=at.max,bt=at.min,Ew=se.now,_w=K.parseInt,Od=at.random,Ow=ta.reverse,_u=Tn(K,"DataView"),Pi=Tn(K,"Map"),Ou=Tn(K,"Promise"),ti=Tn(K,"Set"),Ci=Tn(K,"WeakMap"),ki=Tn(Ne,"create"),da=Ci&&new Ci,ri={},Aw=Rn(_u),Tw=Rn(Pi),Rw=Rn(Ou),Pw=Rn(ti),Cw=Rn(Ci),pa=en?en.prototype:r,$i=pa?pa.valueOf:r,Ad=pa?pa.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 ha(){}function Xt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:H0,evaluate:q0,interpolate:Mf,variable:"",imports:{_:A}},A.prototype=ha.prototype,A.prototype.constructor=A,Xt.prototype=ni(ha.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 kw(){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 $w(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Iw(){var n=this.__wrapped__.value(),o=this.__dir__,u=we(n),y=o<0,_=u?n.length:0,T=q1(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(ha.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 Lw(){this.__data__=ki?ki(null):{},this.size=0}function Mw(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Fw(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 Dw(n){var o=this.__data__;return ki?o[n]!==r:Fe.call(o,n)}function Nw(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=Lw,En.prototype.delete=Mw,En.prototype.get=Fw,En.prototype.has=Dw,En.prototype.set=Nw;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 jw(){this.__data__=[],this.size=0}function zw(n){var o=this.__data__,u=ga(o,n);if(u<0)return!1;var y=o.length-1;return u==y?o.pop():ua.call(o,u,1),--this.size,!0}function Ww(n){var o=this.__data__,u=ga(o,n);return u<0?r:o[u][1]}function Uw(n){return ga(this.__data__,n)>-1}function Bw(n,o){var u=this.__data__,y=ga(u,n);return y<0?(++this.size,u.push([n,o])):u[y][1]=o,this}Ir.prototype.clear=jw,Ir.prototype.delete=zw,Ir.prototype.get=Ww,Ir.prototype.has=Uw,Ir.prototype.set=Bw;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 Hw(){this.size=0,this.__data__={hash:new En,map:new(Pi||Ir),string:new En}}function qw(n){var o=Ta(this,n).delete(n);return this.size-=o?1:0,o}function Zw(n){return Ta(this,n).get(n)}function Gw(n){return Ta(this,n).has(n)}function Kw(n,o){var u=Ta(this,n),y=u.size;return u.set(n,o),this.size+=u.size==y?0:1,this}Lr.prototype.clear=Hw,Lr.prototype.delete=qw,Lr.prototype.get=Zw,Lr.prototype.has=Gw,Lr.prototype.set=Kw;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Lr;++o<u;)this.add(n[o])}function Vw(n){return this.__data__.set(n,f),this}function Yw(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Vw,_n.prototype.has=Yw;function ur(n){var o=this.__data__=new Ir(n);this.size=o.size}function Xw(){this.__data__=new Ir,this.size=0}function Jw(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Qw(n){return this.__data__.get(n)}function e1(n){return this.__data__.has(n)}function t1(n,o){var u=this.__data__;if(u instanceof Ir){var y=u.__data__;if(!Pi||y.length<a-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=Xw,ur.prototype.delete=Jw,ur.prototype.get=Qw,ur.prototype.has=e1,ur.prototype.set=t1;function Td(n,o){var u=we(n),y=!u&&Pn(n),_=!u&&!y&&an(n),T=!u&&!y&&!_&&si(n),P=u||y||_||T,I=P?bu(n.length,fw):[],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[Fu(0,o-1)]:r}function r1(n,o){return Ra(Pt(n),On(o,0,n.length))}function n1(n){return Ra(Pt(n))}function Au(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 ga(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function i1(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 o1(n,o){return n&&yr(o,kt(o),n)}function Mr(n,o,u){o=="__proto__"&&la?la(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Tu(n,o){for(var u=-1,y=o.length,_=H(y),T=n==null;++u<y;)_[u]=T?r:sl(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=G1(n),!I)return Pt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==vt;if(an(n))return Qd(n,I);if(ee==Gt||ee==ce||oe&&!_){if(P=z||oe?{}:yp(n),!I)return z?F1(n,o1(P,n)):M1(n,Pd(P,n))}else{if(!je[ee])return _?n:{};P=K1(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?Gu:Zu: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 a1(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=pu,P=!1):o.length>=a&&(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(Pu,!0);function s1(n,o){var u=!0;return tn(n,function(y,_,T){return u=!!o(y,_,T),u}),u}function ma(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 u1(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=Y1),_||(_=[]);++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 Ru=op(),Ld=op(!0);function vr(n,o){return n&&Ru(n,o,ct)}function Pu(n,o){return n&&Ld(n,o,ct)}function va(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)?H1(n):nx(n)}function Cu(n,o){return n>o}function l1(n,o){return n!=null&&Fe.call(n,o)}function c1(n,o){return n!=null&&o in Ne(n)}function f1(n,o,u){return n>=bt(o,u)&&n<st(o,u)}function ku(n,o,u){for(var y=u?pu: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 d1(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 p1(n){return Je(n)&&_t(n)==Yr}function h1(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:g1(n,o,u,y,Fi,_)}function g1(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&&an(n)){if(!an(o))return!1;P=!0,X=!1}if(oe&&!X)return T||(T=new ur),P||si(n)?gp(n,o,u,y,_,T):U1(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),B1(n,o,u,y,_,T)):!1}function m1(n){return Je(n)&&wt(n)==lt}function $u(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)||J1(n))return!1;var o=jr(n)?mw:ab;return o.test(Rn(n))}function v1(n){return Je(n)&&_t(n)==Mt}function y1(n){return Je(n)&&wt(n)==yt}function b1(n){return Je(n)&&La(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):ah(n)}function Iu(n){if(!ji(n))return Sw(n);var o=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&o.push(u);return o}function w1(n){if(!Ge(n))return rx(n);var o=ji(n),u=[];for(var y in n)y=="constructor"&&(o||!Fe.call(n,y))||u.push(y);return u}function Lu(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=Vu(n);return o.length==1&&o[0][2]?wp(o[0][0],o[0][1]):function(u){return u===n||$u(u,n,o)}}function Wd(n,o){return Xu(n)&&bp(o)?wp(br(n),o):function(u){var y=sl(u,n);return y===r&&y===o?ul(u,n):Fi(o,y,x|d)}}function ya(n,o,u,y,_){n!==o&&Ru(o,function(T,P){if(_||(_=new ur),Ge(T))x1(n,o,P,u,ya,y,_);else{var I=y?y(Qu(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Au(n,P,I)}},kt)}function x1(n,o,u,y,_,T,P){var I=Qu(n,u),z=Qu(o,u),V=P.get(z);if(V){Au(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&&an(z),he=!oe&&!le&&si(z);X=z,oe||le||he?we(I)?X=I:et(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)),Au(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 Kb(_,function(T,P){return L1(T,P,u)})}function S1(n,o){return Hd(n,o,function(u,y){return ul(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 E1(n){return function(o){return An(o,n)}}function Mu(n,o,u,y){var _=y?Gb: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&&ua.call(I,z,1),ua.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(_)?ua.call(n,_,1):ju(n,_)}}return n}function Fu(n,o){return n+fa(Od()*(o-n+1))}function _1(n,o,u,y){for(var _=-1,T=st(ca((o-n)/(u||1)),0),P=H(T);T--;)P[y?T:++_]=n,n+=u;return P}function Du(n,o){var u="";if(!n||o<1||o>te)return u;do o%2&&(u+=n),o=fa(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return el(xp(n,o,$t),n+"")}function O1(n){return Rd(ui(n))}function A1(n,o){var u=ui(n);return Ra(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=da?function(n,o){return da.set(n,o),n}:$t,T1=la?function(n,o){return la(n,"toString",{configurable:!0,enumerable:!1,value:cl(o),writable:!0})}:$t;function R1(n){return Ra(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 P1(n,o){var u;return tn(n,function(y,_,T){return u=o(y,_,T),!u}),!!u}function ba(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 Nu(n,o,$t,u)}function Nu(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=fa((_+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,ae)}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,_=pu;else if(T>=a){var V=o?null:z1(n);if(V)return ea(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 ju(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 wa(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()),hu(o,function(y,_){return _.func.apply(_.thisArg,Jr([y],_.args))},u)}function zu(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 Wu(n){return et(n)?n:[]}function Uu(n){return typeof n=="function"?n:$t}function nn(n,o){return we(n)?n:Xu(n,o)?[n]:Ap(ke(n))}var C1=_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=vw||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 Bu(n){var o=new n.constructor(n.byteLength);return new aa(o).set(new aa(n)),o}function k1(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function $1(n){var o=new n.constructor(n.source,Ff.exec(n));return o.lastIndex=n.lastIndex,o}function I1(n){return $i?Ne($i.call(n)):{}}function ep(n,o){var u=o?Bu(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 L1(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=st(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=st(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 M1(n,o){return yr(n,Yu(n),o)}function F1(n,o){return yr(n,mp(n),o)}function xa(n,o){return function(u,y){var _=we(u)?Wb:i1,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 D1(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 ap(n){return function(o){o=ke(o);var u=Xn(o)?sr(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 hu(ih(nh(o).replace(Tb,"")),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 N1(n,o,u){var y=Ni(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=ai(_);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,Sa,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==dt&&this instanceof _?y:n;return Ft(X,this,P)}return _}function sp(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&&Aa(T)=="wrapper")var P=new Xt([],!0)}for(y=P?y:u;++y<u;){T=o[y];var I=Aa(T),z=I=="wrapper"?Ku(T):r;z&&Ju(z[0])&&z[1]==(U|E|O|M)&&!z[4].length&&z[9]==1?P=P[Aa(z[0])].apply(P,z[3]):P=T.length==1&&Ju(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 Sa(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&F,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=ai(ge),Wt=Yb(Re,At);if(y&&(Re=rp(Re,y,_,le)),T&&(Re=np(Re,T,P,le)),Oe-=Wt,le&&Oe<V){var tt=Qr(Re,At);return fp(n,o,Sa,ge.placeholder,u,Re,tt,I,z,V-Oe)}var cr=ee?u:this,Wr=oe?cr[n]:n;return Oe=Re.length,I?Re=ix(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 d1(u,n,o(y),{})}}function Ea(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 Hu(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 _a(n,o){o=o===r?" ":Nt(o);var u=o.length;if(u<2)return u?Du(o,n):o;var y=Du(o,ca(n/Jn(o)));return Xn(o)?on(sr(y),0,n).join(""):y.slice(0,n)}function j1(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),_1(o,u,y,n)}}function Oa(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 Ju(n)&&Ep(ge,Se),ge.placeholder=y,_p(ge,n,o)}function qu(n){var o=at[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 z1=ti&&1/ea(new ti([,-0]))[1]==Y?function(n){return new ti(n)}:pl;function dp(n){return function(o){var u=wt(o);return u==lt?xu(o):u==yt?nw(o):Vb(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:st(xe(P),0),I=I===r?I:xe(I),V-=_?_.length:0,o&k){var X=y,ee=_;y=_=r}var oe=z?r:Ku(n),le=[n,o,u,y,_,X,ee,T,P,I];if(oe&&tx(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:st(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==w)var he=D1(n,o,u);else o==E||o==R?he=N1(n,o,I):(o==O||o==(w|O))&&!_.length?he=j1(n,o,u,y):he=Sa.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),ya(n,o,r,hp,T),T.delete(o)),n}function W1(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(!gu(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 U1(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 aa(n),new aa(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=xu;case yt:var z=y&x;if(I||(I=ea),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 B1(n,o,u,y,_,T){var P=u&x,I=Zu(n),z=I.length,V=Zu(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 el(xp(n,r,Cp),n+"")}function Zu(n){return Md(n,ct,Yu)}function Gu(n){return Md(n,kt,mp)}var Ku=da?function(n){return da.get(n)}:pl;function Aa(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 ai(n){var o=Fe.call(A,"placeholder")?A:n;return o.placeholder}function pe(){var n=A.iteratee||fl;return n=n===fl?Nd:n,arguments.length?n(arguments[0],arguments[1]):n}function Ta(n,o){var u=n.__data__;return X1(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Vu(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=ew(n,o);return Dd(u)?u:r}function H1(n){var o=Fe.call(n,Sn),u=n[Sn];try{n[Sn]=r;var y=!0}catch{}var _=ia.call(n);return y&&(o?n[Sn]=u:delete n[Sn]),_}var Yu=Eu?function(n){return n==null?[]:(n=Ne(n),Xr(Eu(n),function(o){return Sd.call(n,o)}))}:hl,mp=Eu?function(n){for(var o=[];n;)Jr(o,Yu(n)),n=sa(n);return o}:hl,wt=_t;(_u&&wt(new _u(new ArrayBuffer(1)))!=$r||Pi&&wt(new Pi)!=lt||Ou&&wt(Ou.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 Aw:return $r;case Tw:return lt;case Rw:return Go;case Pw:return yt;case Cw:return Vr}return o});function q1(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=st(n,o-P);break}}return{start:n,end:o}}function Z1(n){var o=n.match(J0);return o?o[1].split(Q0):[]}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,!!_&&La(_)&&Nr(P,_)&&(we(n)||Pn(n)))}function G1(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(sa(n)):{}}function K1(n,o,u){var y=n.constructor;switch(o){case Yr:return Bu(n);case me:case Ee:return new y(+n);case $r:return k1(n,u);case Vs:case Ys:case Xs:case Js:case Qs:case eu:case tu:case ru:case nu:return ep(n,u);case lt:return new y;case mr:case Kr:return new y(n);case Mt:return $1(n);case yt:return new y;case wn:return I1(n)}}function V1(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(X0,`{
182
+ */var Qk=go.exports,dm;function e$(){return dm||(dm=1,(function(e,t){(function(){var r,i="4.17.21",a=200,s="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,M=256,F=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,ae=Q-1,ue=Q>>>1,ne=[["ary",U],["bind",w],["bindKey",h],["curry",E],["curryRight",R],["flip",F],["partial",O],["partialRight",k],["rearg",M]],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]",Vs="[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]",Ys="[object Float32Array]",Xs="[object Float64Array]",Js="[object Int8Array]",Qs="[object Int16Array]",eu="[object Int32Array]",tu="[object Uint8Array]",ru="[object Uint8ClampedArray]",nu="[object Uint16Array]",iu="[object Uint32Array]",z0=/\b__p \+= '';/g,W0=/\b(__p \+=) '' \+/g,U0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,If=/&(?:amp|lt|gt|quot|#39);/g,Lf=/[&<>"']/g,B0=RegExp(If.source),H0=RegExp(Lf.source),q0=/<%-([\s\S]+?)%>/g,Z0=/<%([\s\S]+?)%>/g,Mf=/<%=([\s\S]+?)%>/g,G0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K0=/^\w*$/,V0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ou=/[\\^$.*+?()[\]{}|]/g,Y0=RegExp(ou.source),au=/^\s+/,X0=/\s/,J0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q0=/\{\n\/\* \[wrapped with (.+)\] \*/,eb=/,? & /,tb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rb=/[()=,{}\[\]\/\s]/,nb=/\\(\\)?/g,ib=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ff=/\w*$/,ob=/^[-+]0x[0-9a-f]+$/i,ab=/^0b[01]+$/i,sb=/^\[object .+?Constructor\]$/,ub=/^0o[0-7]+$/i,lb=/^(?:0|[1-9]\d*)$/,cb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vo=/($^)/,fb=/['\n\r\u2028\u2029\\]/g,Yo="\\ud800-\\udfff",db="\\u0300-\\u036f",pb="\\ufe20-\\ufe2f",hb="\\u20d0-\\u20ff",Df=db+pb+hb,Nf="\\u2700-\\u27bf",jf="a-z\\xdf-\\xf6\\xf8-\\xff",gb="\\xac\\xb1\\xd7\\xf7",mb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vb="\\u2000-\\u206f",yb=" \\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=gb+mb+vb+yb,su="['’]",bb="["+Yo+"]",Bf="["+Uf+"]",Xo="["+Df+"]",Hf="\\d+",wb="["+Nf+"]",qf="["+jf+"]",Zf="[^"+Yo+Uf+Hf+Nf+jf+zf+"]",uu="\\ud83c[\\udffb-\\udfff]",xb="(?:"+Xo+"|"+uu+")",Gf="[^"+Yo+"]",lu="(?:\\ud83c[\\udde6-\\uddff]){2}",cu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+zf+"]",Kf="\\u200d",Vf="(?:"+qf+"|"+Zf+")",Sb="(?:"+Vn+"|"+Zf+")",Yf="(?:"+su+"(?:d|ll|m|re|s|t|ve))?",Xf="(?:"+su+"(?:D|LL|M|RE|S|T|VE))?",Jf=xb+"?",Qf="["+Wf+"]?",Eb="(?:"+Kf+"(?:"+[Gf,lu,cu].join("|")+")"+Qf+Jf+")*",_b="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ob="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ed=Qf+Jf+Eb,Ab="(?:"+[wb,lu,cu].join("|")+")"+ed,Tb="(?:"+[Gf+Xo+"?",Xo,lu,cu,bb].join("|")+")",Rb=RegExp(su,"g"),Pb=RegExp(Xo,"g"),fu=RegExp(uu+"(?="+uu+")|"+Tb+ed,"g"),Cb=RegExp([Vn+"?"+qf+"+"+Yf+"(?="+[Bf,Vn,"$"].join("|")+")",Sb+"+"+Xf+"(?="+[Bf,Vn+Vf,"$"].join("|")+")",Vn+"?"+Vf+"+"+Yf,Vn+"+"+Xf,Ob,_b,Hf,Ab].join("|"),"g"),kb=RegExp("["+Kf+Yo+Df+Wf+"]"),$b=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ib=["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"],Lb=-1,Ue={};Ue[Ys]=Ue[Xs]=Ue[Js]=Ue[Qs]=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[Ys]=je[Xs]=je[Js]=je[Qs]=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 Mb={À:"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"},Fb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Db={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Nb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jb=parseFloat,zb=parseInt,td=typeof Na=="object"&&Na&&Na.Object===Object&&Na,Wb=typeof self=="object"&&self&&self.Object===Object&&self,dt=td||Wb||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,ad=Kt&&Kt.isRegExp,sd=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 Ub(N,K,H,se){for(var be=-1,Pe=N==null?0:N.length;++be<Pe;){var at=N[be];K(se,at,H(at),N)}return se}function Vt(N,K){for(var H=-1,se=N==null?0:N.length;++H<se&&K(N[H],H,N)!==!1;);return N}function Bb(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,se=N==null?0:N.length;++H<se;)if(!K(N[H],H,N))return!1;return!0}function Xr(N,K){for(var H=-1,se=N==null?0:N.length,be=0,Pe=[];++H<se;){var at=N[H];K(at,H,N)&&(Pe[be++]=at)}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 se=-1,be=N==null?0:N.length;++se<be;)if(H(K,N[se]))return!0;return!1}function Be(N,K){for(var H=-1,se=N==null?0:N.length,be=Array(se);++H<se;)be[H]=K(N[H],H,N);return be}function Jr(N,K){for(var H=-1,se=K.length,be=N.length;++H<se;)N[be+H]=K[H];return N}function gu(N,K,H,se){var be=-1,Pe=N==null?0:N.length;for(se&&Pe&&(H=N[++be]);++be<Pe;)H=K(H,N[be],be,N);return H}function Hb(N,K,H,se){var be=N==null?0:N.length;for(se&&be&&(H=N[--be]);be--;)H=K(H,N[be],be,N);return H}function mu(N,K){for(var H=-1,se=N==null?0:N.length;++H<se;)if(K(N[H],H,N))return!0;return!1}var qb=vu("length");function Zb(N){return N.split("")}function Gb(N){return N.match(tb)||[]}function cd(N,K,H){var se;return H(N,function(be,Pe,at){if(K(be,Pe,at))return se=Pe,!1}),se}function Qo(N,K,H,se){for(var be=N.length,Pe=H+(se?1:-1);se?Pe--:++Pe<be;)if(K(N[Pe],Pe,N))return Pe;return-1}function Yn(N,K,H){return K===K?ow(N,K,H):Qo(N,fd,H)}function Kb(N,K,H,se){for(var be=H-1,Pe=N.length;++be<Pe;)if(se(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,se,be){return be(N,function(Pe,at,Ne){H=se?(se=!1,Pe):K(H,Pe,at,Ne)}),H}function Vb(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,se=-1,be=N.length;++se<be;){var Pe=K(N[se]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function wu(N,K){for(var H=-1,se=Array(N);++H<N;)se[H]=K(H);return se}function Yb(N,K){return Be(K,function(H){return[H,N[H]]})}function hd(N){return N&&N.slice(0,yd(N)+1).replace(au,"")}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,se=N.length;++H<se&&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 Xb(N,K){for(var H=N.length,se=0;H--;)N[H]===K&&++se;return se}var Jb=yu(Mb),Qb=yu(Fb);function ew(N){return"\\"+Nb[N]}function tw(N,K){return N==null?r:N[K]}function Xn(N){return kb.test(N)}function rw(N){return $b.test(N)}function nw(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(se,be){H[++K]=[be,se]}),H}function vd(N,K){return function(H){return N(K(H))}}function Qr(N,K){for(var H=-1,se=N.length,be=0,Pe=[];++H<se;){var at=N[H];(at===K||at===m)&&(N[H]=m,Pe[be++]=H)}return Pe}function ea(N){var K=-1,H=Array(N.size);return N.forEach(function(se){H[++K]=se}),H}function iw(N){var K=-1,H=Array(N.size);return N.forEach(function(se){H[++K]=[se,se]}),H}function ow(N,K,H){for(var se=H-1,be=N.length;++se<be;)if(N[se]===K)return se;return-1}function aw(N,K,H){for(var se=H+1;se--;)if(N[se]===K)return se;return se}function Jn(N){return Xn(N)?uw(N):qb(N)}function sr(N){return Xn(N)?lw(N):Zb(N)}function yd(N){for(var K=N.length;K--&&X0.test(N.charAt(K)););return K}var sw=yu(Db);function uw(N){for(var K=fu.lastIndex=0;fu.test(N);)++K;return K}function lw(N){return N.match(fu)||[]}function cw(N){return N.match(Cb)||[]}var fw=(function N(K){K=K==null?dt:Qn.defaults(dt.Object(),K,Qn.pick(dt,Ib));var H=K.Array,se=K.Date,be=K.Error,Pe=K.Function,at=K.Math,Ne=K.Object,Eu=K.RegExp,dw=K.String,Yt=K.TypeError,ta=H.prototype,pw=Pe.prototype,ei=Ne.prototype,ra=K["__core-js_shared__"],na=pw.toString,Fe=ei.hasOwnProperty,hw=0,bd=(function(){var n=/[^.]+$/.exec(ra&&ra.keys&&ra.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),ia=ei.toString,gw=na.call(Ne),mw=dt._,vw=Eu("^"+na.call(Fe).replace(ou,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oa=rd?K.Buffer:r,en=K.Symbol,aa=K.Uint8Array,wd=oa?oa.allocUnsafe:r,sa=vd(Ne.getPrototypeOf,Ne),xd=Ne.create,Sd=ei.propertyIsEnumerable,ua=ta.splice,Ed=en?en.isConcatSpreadable:r,Ri=en?en.iterator:r,Sn=en?en.toStringTag:r,la=(function(){try{var n=Tn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),yw=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,bw=se&&se.now!==dt.Date.now&&se.now,ww=K.setTimeout!==dt.setTimeout&&K.setTimeout,ca=at.ceil,fa=at.floor,_u=Ne.getOwnPropertySymbols,xw=oa?oa.isBuffer:r,_d=K.isFinite,Sw=ta.join,Ew=vd(Ne.keys,Ne),st=at.max,bt=at.min,_w=se.now,Ow=K.parseInt,Od=at.random,Aw=ta.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"),da=Ci&&new Ci,ri={},Tw=Rn(Ou),Rw=Rn(Pi),Pw=Rn(Au),Cw=Rn(ti),kw=Rn(Ci),pa=en?en.prototype:r,$i=pa?pa.valueOf:r,Ad=pa?pa.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 ha(){}function Xt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:q0,evaluate:Z0,interpolate:Mf,variable:"",imports:{_:A}},A.prototype=ha.prototype,A.prototype.constructor=A,Xt.prototype=ni(ha.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 $w(){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 Iw(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Lw(){var n=this.__wrapped__.value(),o=this.__dir__,u=we(n),y=o<0,_=u?n.length:0,T=Z1(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(ha.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 Mw(){this.__data__=ki?ki(null):{},this.size=0}function Fw(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Dw(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 Nw(n){var o=this.__data__;return ki?o[n]!==r:Fe.call(o,n)}function jw(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=Mw,En.prototype.delete=Fw,En.prototype.get=Dw,En.prototype.has=Nw,En.prototype.set=jw;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 zw(){this.__data__=[],this.size=0}function Ww(n){var o=this.__data__,u=ga(o,n);if(u<0)return!1;var y=o.length-1;return u==y?o.pop():ua.call(o,u,1),--this.size,!0}function Uw(n){var o=this.__data__,u=ga(o,n);return u<0?r:o[u][1]}function Bw(n){return ga(this.__data__,n)>-1}function Hw(n,o){var u=this.__data__,y=ga(u,n);return y<0?(++this.size,u.push([n,o])):u[y][1]=o,this}Ir.prototype.clear=zw,Ir.prototype.delete=Ww,Ir.prototype.get=Uw,Ir.prototype.has=Bw,Ir.prototype.set=Hw;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 qw(){this.size=0,this.__data__={hash:new En,map:new(Pi||Ir),string:new En}}function Zw(n){var o=Ta(this,n).delete(n);return this.size-=o?1:0,o}function Gw(n){return Ta(this,n).get(n)}function Kw(n){return Ta(this,n).has(n)}function Vw(n,o){var u=Ta(this,n),y=u.size;return u.set(n,o),this.size+=u.size==y?0:1,this}Lr.prototype.clear=qw,Lr.prototype.delete=Zw,Lr.prototype.get=Gw,Lr.prototype.has=Kw,Lr.prototype.set=Vw;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Lr;++o<u;)this.add(n[o])}function Yw(n){return this.__data__.set(n,f),this}function Xw(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Yw,_n.prototype.has=Xw;function ur(n){var o=this.__data__=new Ir(n);this.size=o.size}function Jw(){this.__data__=new Ir,this.size=0}function Qw(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function e1(n){return this.__data__.get(n)}function t1(n){return this.__data__.has(n)}function r1(n,o){var u=this.__data__;if(u instanceof Ir){var y=u.__data__;if(!Pi||y.length<a-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=Jw,ur.prototype.delete=Qw,ur.prototype.get=e1,ur.prototype.has=t1,ur.prototype.set=r1;function Td(n,o){var u=we(n),y=!u&&Pn(n),_=!u&&!y&&an(n),T=!u&&!y&&!_&&si(n),P=u||y||_||T,I=P?wu(n.length,dw):[],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 n1(n,o){return Ra(Pt(n),On(o,0,n.length))}function i1(n){return Ra(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 ga(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function o1(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 a1(n,o){return n&&yr(o,kt(o),n)}function Mr(n,o,u){o=="__proto__"&&la?la(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=K1(n),!I)return Pt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==vt;if(an(n))return Qd(n,I);if(ee==Gt||ee==ce||oe&&!_){if(P=z||oe?{}:yp(n),!I)return z?D1(n,a1(P,n)):F1(n,Pd(P,n))}else{if(!je[ee])return _?n:{};P=V1(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 s1(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>=a&&(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 u1(n,o){var u=!0;return tn(n,function(y,_,T){return u=!!o(y,_,T),u}),u}function ma(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 l1(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=X1),_||(_=[]);++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 va(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)?q1(n):ix(n)}function ku(n,o){return n>o}function c1(n,o){return n!=null&&Fe.call(n,o)}function f1(n,o){return n!=null&&o in Ne(n)}function d1(n,o,u){return n>=bt(o,u)&&n<st(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 p1(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 h1(n){return Je(n)&&_t(n)==Yr}function g1(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:m1(n,o,u,y,Fi,_)}function m1(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&&an(n)){if(!an(o))return!1;P=!0,X=!1}if(oe&&!X)return T||(T=new ur),P||si(n)?gp(n,o,u,y,_,T):B1(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),H1(n,o,u,y,_,T)):!1}function v1(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)||Q1(n))return!1;var o=jr(n)?vw:sb;return o.test(Rn(n))}function y1(n){return Je(n)&&_t(n)==Mt}function b1(n){return Je(n)&&wt(n)==yt}function w1(n){return Je(n)&&La(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):ah(n)}function Lu(n){if(!ji(n))return Ew(n);var o=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&o.push(u);return o}function x1(n){if(!Ge(n))return nx(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 ya(n,o,u,y,_){n!==o&&Pu(o,function(T,P){if(_||(_=new ur),Ge(T))S1(n,o,P,u,ya,y,_);else{var I=y?y(el(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Tu(n,P,I)}},kt)}function S1(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&&an(z),he=!oe&&!le&&si(z);X=z,oe||le||he?we(I)?X=I:et(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 Vb(_,function(T,P){return M1(T,P,u)})}function E1(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 _1(n){return function(o){return An(o,n)}}function Fu(n,o,u,y){var _=y?Kb: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&&ua.call(I,z,1),ua.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(_)?ua.call(n,_,1):zu(n,_)}}return n}function Du(n,o){return n+fa(Od()*(o-n+1))}function O1(n,o,u,y){for(var _=-1,T=st(ca((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=fa(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return tl(xp(n,o,$t),n+"")}function A1(n){return Rd(ui(n))}function T1(n,o){var u=ui(n);return Ra(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=da?function(n,o){return da.set(n,o),n}:$t,R1=la?function(n,o){return la(n,"toString",{configurable:!0,enumerable:!1,value:fl(o),writable:!0})}:$t;function P1(n){return Ra(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 C1(n,o){var u;return tn(n,function(y,_,T){return u=o(y,_,T),!u}),!!u}function ba(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=fa((_+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,ae)}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>=a){var V=o?null:W1(n);if(V)return ea(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 wa(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 et(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 k1=_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=yw||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 aa(o).set(new aa(n)),o}function $1(n,o){var u=o?Hu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function I1(n){var o=new n.constructor(n.source,Ff.exec(n));return o.lastIndex=n.lastIndex,o}function L1(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 M1(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=st(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=st(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 F1(n,o){return yr(n,Xu(n),o)}function D1(n,o){return yr(n,mp(n),o)}function xa(n,o){return function(u,y){var _=we(u)?Ub:o1,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 N1(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 ap(n){return function(o){o=ke(o);var u=Xn(o)?sr(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(Rb,"")),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 j1(n,o,u){var y=Ni(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=ai(_);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,Sa,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==dt&&this instanceof _?y:n;return Ft(X,this,P)}return _}function sp(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&&Aa(T)=="wrapper")var P=new Xt([],!0)}for(y=P?y:u;++y<u;){T=o[y];var I=Aa(T),z=I=="wrapper"?Vu(T):r;z&&Qu(z[0])&&z[1]==(U|E|O|M)&&!z[4].length&&z[9]==1?P=P[Aa(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 Sa(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&F,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=ai(ge),Wt=Xb(Re,At);if(y&&(Re=rp(Re,y,_,le)),T&&(Re=np(Re,T,P,le)),Oe-=Wt,le&&Oe<V){var tt=Qr(Re,At);return fp(n,o,Sa,ge.placeholder,u,Re,tt,I,z,V-Oe)}var cr=ee?u:this,Wr=oe?cr[n]:n;return Oe=Re.length,I?Re=ox(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 p1(u,n,o(y),{})}}function Ea(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 _a(n,o){o=o===r?" ":Nt(o);var u=o.length;if(u<2)return u?Nu(o,n):o;var y=Nu(o,ca(n/Jn(o)));return Xn(o)?on(sr(y),0,n).join(""):y.slice(0,n)}function z1(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),O1(o,u,y,n)}}function Oa(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=at[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 W1=ti&&1/ea(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?iw(o):Yb(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:st(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&&rx(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:st(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==w)var he=N1(n,o,u);else o==E||o==R?he=j1(n,o,I):(o==O||o==(w|O))&&!_.length?he=z1(n,o,u,y):he=Sa.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),ya(n,o,r,hp,T),T.delete(o)),n}function U1(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 B1(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 aa(n),new aa(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=ea),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 H1(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=da?function(n){return da.get(n)}:hl;function Aa(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 ai(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 Ta(n,o){var u=n.__data__;return J1(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=tw(n,o);return Dd(u)?u:r}function q1(n){var o=Fe.call(n,Sn),u=n[Sn];try{n[Sn]=r;var y=!0}catch{}var _=ia.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=sa(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 Tw:return $r;case Rw:return lt;case Pw:return Go;case Cw:return yt;case kw:return Vr}return o});function Z1(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=st(n,o-P);break}}return{start:n,end:o}}function G1(n){var o=n.match(Q0);return o?o[1].split(eb):[]}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,!!_&&La(_)&&Nr(P,_)&&(we(n)||Pn(n)))}function K1(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(sa(n)):{}}function V1(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 $1(n,u);case Ys:case Xs:case Js:case Qs: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 I1(n);case yt:return new y;case wn:return L1(n)}}function Y1(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(J0,`{
183
183
  /* [wrapped with `+o+`] */
184
- `)}function Y1(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"&&ub.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 Xu(n,o){if(we(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||jt(n)?!0:G0.test(n)||!Z0.test(n)||o!=null&&n in Ne(o)}function X1(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ju(n){var o=Aa(n),u=A[o];if(typeof u!="function"||!(o in Te.prototype))return!1;if(n===u)return!0;var y=Ku(u);return!!y&&n===y[0]}function J1(n){return!!bd&&bd in n}var Q1=ra?jr:gl;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 ex(n){var o=$a(n,function(y){return u.size===v&&u.clear(),y}),u=o.cache;return o}function tx(n,o){var u=n[1],y=o[1],_=u|y,T=_<(w|h|U),P=y==U&&u==E||y==U&&u==M&&n[7].length<=o[8]||y==(U|M)&&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 rx(n){var o=[];if(n!=null)for(var u in Ne(n))o.push(u);return o}function nx(n){return ia.call(n)}function xp(n,o,u){return o=st(o===r?n.length-1:o,0),function(){for(var y=arguments,_=-1,T=st(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 ix(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 Qu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Ep=Op(Zd),zi=bw||function(n,o){return dt.setTimeout(n,o)},el=Op(T1);function _p(n,o,u){var y=o+"";return el(n,V1(y,ox(Z1(y),u)))}function Op(n){var o=0,u=0;return function(){var y=Ew(),_=B-(y-u);if(u=y,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Ra(n,o){var u=-1,y=n.length,_=y-1;for(o=o===r?y:o;++u<o;){var T=Fu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var Ap=ex(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(K0,function(u,y,_,T){o.push(_?T.replace(rb,"$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 na.call(n)}catch{}try{return n+""}catch{}}return""}function ox(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 ax(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=st(xe(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var _=0,T=0,P=H(ca(y/o));_<y;)P[T++]=Qt(n,_,_+=o);return P}function sx(n){for(var o=-1,u=n==null?0:n.length,y=0,_=[];++o<u;){var T=n[o];T&&(_[y++]=T)}return _}function ux(){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 lx=_e(function(n,o){return et(n)?Li(n,pt(o,1,et,!0)):[]}),cx=_e(function(n,o){var u=er(o);return et(u)&&(u=r),et(n)?Li(n,pt(o,1,et,!0),pe(u,2)):[]}),fx=_e(function(n,o){var u=er(o);return et(u)&&(u=r),et(n)?Li(n,pt(o,1,et,!0),r,u):[]});function dx(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 px(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 hx(n,o){return n&&n.length?wa(n,pe(o,3),!0,!0):[]}function gx(n,o){return n&&n.length?wa(n,pe(o,3),!0):[]}function mx(n,o,u,y){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,y=_),u1(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&&(_=st(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?st(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 vx(n){var o=n==null?0:n.length;return o?pt(n,Y):[]}function yx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:xe(o),pt(n,o)):[]}function bx(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 wx(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=st(y+_,0)),Yn(n,o,_)}function xx(n){var o=n==null?0:n.length;return o?Qt(n,0,-1):[]}var Sx=_e(function(n){var o=Be(n,Wu);return o.length&&o[0]===n[0]?ku(o):[]}),Ex=_e(function(n){var o=er(n),u=Be(n,Wu);return o===er(u)?o=r:u.pop(),u.length&&u[0]===n[0]?ku(u,pe(o,2)):[]}),_x=_e(function(n){var o=er(n),u=Be(n,Wu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?ku(u,r,o):[]});function Ox(n,o){return n==null?"":xw.call(n,o)}function er(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Ax(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y;return u!==r&&(_=xe(u),_=_<0?st(y+_,0):bt(_,y-1)),o===o?ow(n,o,_):Qo(n,fd,_,!0)}function Tx(n,o){return n&&n.length?Ud(n,xe(o)):r}var Rx=_e($p);function $p(n,o){return n&&n.length&&o&&o.length?Mu(n,o):n}function Px(n,o,u){return n&&n.length&&o&&o.length?Mu(n,o,pe(u,2)):n}function Cx(n,o,u){return n&&n.length&&o&&o.length?Mu(n,o,r,u):n}var kx=Dr(function(n,o){var u=n==null?0:n.length,y=Tu(n,o);return qd(n,Be(o,function(_){return Nr(_,u)?+_:_}).sort(tp)),y});function $x(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 tl(n){return n==null?n:Ow.call(n)}function Ix(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 Lx(n,o){return ba(n,o)}function Mx(n,o,u){return Nu(n,o,pe(u,2))}function Fx(n,o){var u=n==null?0:n.length;if(u){var y=ba(n,o);if(y<u&&lr(n[y],o))return y}return-1}function Dx(n,o){return ba(n,o,!0)}function Nx(n,o,u){return Nu(n,o,pe(u,2),!0)}function jx(n,o){var u=n==null?0:n.length;if(u){var y=ba(n,o,!0)-1;if(lr(n[y],o))return y}return-1}function zx(n){return n&&n.length?Gd(n):[]}function Wx(n,o){return n&&n.length?Gd(n,pe(o,2)):[]}function Ux(n){var o=n==null?0:n.length;return o?Qt(n,1,o):[]}function Bx(n,o,u){return n&&n.length?(o=u||o===r?1:xe(o),Qt(n,0,o<0?0:o)):[]}function Hx(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 qx(n,o){return n&&n.length?wa(n,pe(o,3),!1,!0):[]}function Zx(n,o){return n&&n.length?wa(n,pe(o,3)):[]}var Gx=_e(function(n){return rn(pt(n,1,et,!0))}),Kx=_e(function(n){var o=er(n);return et(o)&&(o=r),rn(pt(n,1,et,!0),pe(o,2))}),Vx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,rn(pt(n,1,et,!0),r,o)});function Yx(n){return n&&n.length?rn(n):[]}function Xx(n,o){return n&&n.length?rn(n,pe(o,2)):[]}function Jx(n,o){return o=typeof o=="function"?o:r,n&&n.length?rn(n,r,o):[]}function rl(n){if(!(n&&n.length))return[];var o=0;return n=Xr(n,function(u){if(et(u))return o=st(u.length,o),!0}),bu(o,function(u){return Be(n,mu(u))})}function Ip(n,o){if(!(n&&n.length))return[];var u=rl(n);return o==null?u:Be(u,function(y){return Ft(o,r,y)})}var Qx=_e(function(n,o){return et(n)?Li(n,o):[]}),eS=_e(function(n){return zu(Xr(n,et))}),tS=_e(function(n){var o=er(n);return et(o)&&(o=r),zu(Xr(n,et),pe(o,2))}),rS=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,zu(Xr(n,et),r,o)}),nS=_e(rl);function iS(n,o){return Xd(n||[],o||[],Ii)}function oS(n,o){return Xd(n||[],o||[],Di)}var aS=_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 sS(n,o){return o(n),n}function Pa(n,o){return o(n)}var uS=Dr(function(n){var o=n.length,u=o?n[0]:0,y=this.__wrapped__,_=function(T){return Tu(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:Pa,args:[_],thisArg:r}),new Xt(y,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function lS(){return Lp(this)}function cS(){return new Xt(this.value(),this.__chain__)}function fS(){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 dS(){return this}function pS(n){for(var o,u=this;u instanceof ha;){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 hS(){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:Pa,args:[tl],thisArg:r}),new Xt(o,this.__chain__)}return this.thru(tl)}function gS(){return Yd(this.__wrapped__,this.__actions__)}var mS=xa(function(n,o,u){Fe.call(n,u)?++n[u]:Mr(n,u,1)});function vS(n,o,u){var y=we(n)?ld:s1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}function yS(n,o){var u=we(n)?Xr:Id;return u(n,pe(o,3))}var bS=sp(Rp),wS=sp(Pp);function xS(n,o){return pt(Ca(n,o),1)}function SS(n,o){return pt(Ca(n,o),Y)}function ES(n,o,u){return u=u===r?1:xe(u),pt(Ca(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)?Ub:$d;return u(n,pe(o,3))}var _S=xa(function(n,o,u){Fe.call(n,u)?n[u].push(o):Mr(n,u,[o])});function OS(n,o,u,y){n=Ct(n)?n:ui(n),u=u&&!y?xe(u):0;var _=n.length;return u<0&&(u=st(_+u,0)),Ma(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Yn(n,o,u)>-1}var AS=_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}),TS=xa(function(n,o,u){Mr(n,u,o)});function Ca(n,o){var u=we(n)?Be:jd;return u(n,pe(o,3))}function RS(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 PS=xa(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function CS(n,o,u){var y=we(n)?hu:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,tn)}function kS(n,o,u){var y=we(n)?Bb:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,$d)}function $S(n,o){var u=we(n)?Xr:Id;return u(n,Ia(pe(o,3)))}function IS(n){var o=we(n)?Rd:O1;return o(n)}function LS(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=xe(o);var y=we(n)?r1:A1;return y(n,o)}function MS(n){var o=we(n)?n1:R1;return o(n)}function FS(n){if(n==null)return 0;if(Ct(n))return Ma(n)?Jn(n):n.length;var o=wt(n);return o==lt||o==yt?n.size:Iu(n).length}function DS(n,o,u){var y=we(n)?gu:P1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}var NS=_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),[])}),ka=yw||function(){return dt.Date.now()};function jS(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 nl=_e(function(n,o,u){var y=w;if(u.length){var _=Qr(u,ai(nl));y|=O}return Fr(n,y,o,u,_)}),jp=_e(function(n,o,u){var y=w|h;if(u.length){var _=Qr(u,ai(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?st(tr(u.maxWait)||0,o):T,oe="trailing"in u?!!u.trailing:oe);function le(tt){var cr=y,Wr=_;return y=_=r,V=tt,P=n.apply(Wr,cr),P}function he(tt){return V=tt,I=zi(Oe,o),X?le(tt):P}function Se(tt){var cr=tt-z,Wr=tt-V,sh=o-cr;return ee?bt(sh,T-Wr):sh}function ge(tt){var cr=tt-z,Wr=tt-V;return z===r||cr>=o||cr<0||ee&&Wr>=T}function Oe(){var tt=ka();if(ge(tt))return Re(tt);I=zi(Oe,Se(tt))}function Re(tt){return I=r,oe&&y?le(tt):(y=_=r,P)}function zt(){I!==r&&Jd(I),V=0,y=z=_=I=r}function At(){return I===r?P:Re(ka())}function Wt(){var tt=ka(),cr=ge(tt);if(y=arguments,_=this,z=tt,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 zS=_e(function(n,o){return kd(n,1,o)}),WS=_e(function(n,o,u){return kd(n,tr(o)||0,u)});function US(n){return Fr(n,F)}function $a(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($a.Cache||Lr),u}$a.Cache=Lr;function Ia(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 BS(n){return Np(2,n)}var HS=C1(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)})}),il=_e(function(n,o){var u=Qr(o,ai(il));return Fr(n,O,r,o,u)}),Bp=_e(function(n,o){var u=Qr(o,ai(Bp));return Fr(n,k,r,o,u)}),qS=Dr(function(n,o){return Fr(n,M,r,r,r,o)});function ZS(n,o){if(typeof n!="function")throw new Yt(l);return o=o===r?o:xe(o),_e(n,o)}function GS(n,o){if(typeof n!="function")throw new Yt(l);return o=o==null?0:st(xe(o),0),_e(function(u){var y=u[o],_=on(u,0,o);return y&&Jr(_,y),Ft(n,this,_)})}function KS(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 VS(n){return Dp(n,1)}function YS(n,o){return il(Uu(o),n)}function XS(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function JS(n){return Jt(n,b)}function QS(n,o){return o=typeof o=="function"?o:r,Jt(n,b,o)}function eE(n){return Jt(n,g|b)}function tE(n,o){return o=typeof o=="function"?o:r,Jt(n,g|b,o)}function rE(n,o){return o==null||Cd(n,o,ct(o))}function lr(n,o){return n===o||n!==n&&o!==o}var nE=Oa(Cu),iE=Oa(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,oE=nd?Dt(nd):p1;function Ct(n){return n!=null&&La(n.length)&&!jr(n)}function et(n){return Je(n)&&Ct(n)}function aE(n){return n===!0||n===!1||Je(n)&&_t(n)==me}var an=ww||gl,sE=id?Dt(id):h1;function uE(n){return Je(n)&&n.nodeType===1&&!Wi(n)}function lE(n){if(n==null)return!0;if(Ct(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||an(n)||si(n)||Pn(n)))return!n.length;var o=wt(n);if(o==lt||o==yt)return!n.size;if(ji(n))return!Iu(n).length;for(var u in n)if(Fe.call(n,u))return!1;return!0}function cE(n,o){return Fi(n,o)}function fE(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 ol(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 dE(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==Ks}function Hp(n){return typeof n=="number"&&n==xe(n)}function La(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):m1;function pE(n,o){return n===o||$u(n,o,Vu(o))}function hE(n,o,u){return u=typeof u=="function"?u:r,$u(n,o,Vu(o),u)}function gE(n){return Zp(n)&&n!=+n}function mE(n){if(Q1(n))throw new be(s);return Dd(n)}function vE(n){return n===null}function yE(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=sa(n);if(o===null)return!0;var u=Fe.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&na.call(u)==hw}var al=ad?Dt(ad):v1;function bE(n){return Hp(n)&&n>=-te&&n<=te}var Gp=sd?Dt(sd):y1;function Ma(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 si=ud?Dt(ud):b1;function wE(n){return n===r}function xE(n){return Je(n)&&wt(n)==Vr}function SE(n){return Je(n)&&_t(n)==Ko}var EE=Oa(Lu),_E=Oa(function(n,o){return n<=o});function Kp(n){if(!n)return[];if(Ct(n))return Ma(n)?sr(n):Pt(n);if(Ri&&n[Ri])return rw(n[Ri]());var o=wt(n),u=o==lt?xu:o==yt?ea: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=ob.test(n);return u||sb.test(n)?jb(n.slice(2),u?2:8):ib.test(n)?Z:+n}function Yp(n){return yr(n,kt(n))}function OE(n){return n?On(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Nt(n)}var AE=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)}),Fa=ii(function(n,o,u,y){yr(o,kt(o),n,y)}),TE=ii(function(n,o,u,y){yr(o,ct(o),n,y)}),RE=Dr(Tu);function PE(n,o){var u=ni(n);return o==null?u:Pd(u,o)}var CE=_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}),kE=_e(function(n){return n.push(r,hp),Ft(Jp,r,n)});function $E(n,o){return cd(n,pe(o,3),vr)}function IE(n,o){return cd(n,pe(o,3),Pu)}function LE(n,o){return n==null?n:Ru(n,pe(o,3),kt)}function ME(n,o){return n==null?n:Ld(n,pe(o,3),kt)}function FE(n,o){return n&&vr(n,pe(o,3))}function DE(n,o){return n&&Pu(n,pe(o,3))}function NE(n){return n==null?[]:va(n,ct(n))}function jE(n){return n==null?[]:va(n,kt(n))}function sl(n,o,u){var y=n==null?r:An(n,o);return y===r?u:y}function zE(n,o){return n!=null&&vp(n,o,l1)}function ul(n,o){return n!=null&&vp(n,o,c1)}var WE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ia.call(o)),n[o]=u},cl($t)),UE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ia.call(o)),Fe.call(n,o)?n[o].push(u):n[o]=[u]},pe),BE=_e(Mi);function ct(n){return Ct(n)?Td(n):Iu(n)}function kt(n){return Ct(n)?Td(n,!0):w1(n)}function HE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,o(y,_,T),y)}),u}function qE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,_,o(y,_,T))}),u}var ZE=ii(function(n,o,u){ya(n,o,u)}),Jp=ii(function(n,o,u,y){ya(n,o,u,y)}),GE=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,Gu(n),u),y&&(u=Jt(u,g|p|b,W1));for(var _=o.length;_--;)ju(u,o[_]);return u});function KE(n,o){return Qp(n,Ia(pe(o)))}var VE=Dr(function(n,o){return n==null?{}:S1(n,o)});function Qp(n,o){if(n==null)return{};var u=Be(Gu(n),function(y){return[y]});return o=pe(o),Hd(n,u,function(y,_){return o(y,_[0])})}function YE(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 XE(n,o,u){return n==null?n:Di(n,o,u)}function JE(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 QE(n,o,u){var y=we(n),_=y||an(n)||si(n);if(o=pe(o,4),u==null){var T=n&&n.constructor;_?u=y?new T:[]:Ge(n)?u=jr(T)?ni(sa(n)):{}:u={}}return(_?Vt:vr)(n,function(P,I,z){return o(u,P,I,z)}),u}function e_(n,o){return n==null?!0:ju(n,o)}function t_(n,o,u){return n==null?n:Vd(n,o,Uu(u))}function r_(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Vd(n,o,Uu(u),y)}function ui(n){return n==null?[]:wu(n,ct(n))}function n_(n){return n==null?[]:wu(n,kt(n))}function i_(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 o_(n,o,u){return o=zr(o),u===r?(u=o,o=0):u=zr(u),n=tr(n),f1(n,o,u)}function a_(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+Nb("1e-"+((_+"").length-1))),o)}return Fu(n,o)}var s_=oi(function(n,o,u){return o=o.toLowerCase(),n+(u?rh(o):o)});function rh(n){return ll(ke(n).toLowerCase())}function nh(n){return n=ke(n),n&&n.replace(lb,Xb).replace(Rb,"")}function u_(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 l_(n){return n=ke(n),n&&B0.test(n)?n.replace(Lf,Jb):n}function c_(n){return n=ke(n),n&&V0.test(n)?n.replace(iu,"\\$&"):n}var f_=oi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),d_=oi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),p_=ap("toLowerCase");function h_(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 _a(fa(_),u)+n+_a(ca(_),u)}function g_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?n+_a(o-y,u):n}function m_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?_a(o-y,u)+n:n}function v_(n,o,u){return u||o==null?o=0:o&&(o=+o),_w(ke(n).replace(ou,""),o||0)}function y_(n,o,u){return(u?Ot(n,o,u):o===r)?o=1:o=xe(o),Du(ke(n),o)}function b_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var w_=oi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function x_(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(sr(n),0,u):n.split(o,u)):[]}var S_=oi(function(n,o,u){return n+(u?" ":"")+ll(o)});function E_(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 __(n,o,u){var y=A.templateSettings;u&&Ot(n,o,u)&&(o=r),n=ke(n),o=Fa({},o,y,pp);var _=Fa({},o.imports,y.imports,pp),T=ct(_),P=wu(_,T),I,z,V=0,X=o.interpolate||Vo,ee="__p += '",oe=Su((o.escape||Vo).source+"|"+X.source+"|"+(X===Mf?nb:Vo).source+"|"+(o.evaluate||Vo).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ib+"]")+`
185
- `;n.replace(oe,function(ge,Oe,Re,zt,At,Wt){return Re||(Re=zt),ee+=n.slice(V,Wt).replace(cb,Qb),Oe&&(I=!0,ee+=`' +
184
+ `)}function X1(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"&&lb.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:K0.test(n)||!G0.test(n)||o!=null&&n in Ne(o)}function J1(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Qu(n){var o=Aa(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 Q1(n){return!!bd&&bd in n}var ex=ra?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 tx(n){var o=$a(n,function(y){return u.size===v&&u.clear(),y}),u=o.cache;return o}function rx(n,o){var u=n[1],y=o[1],_=u|y,T=_<(w|h|U),P=y==U&&u==E||y==U&&u==M&&n[7].length<=o[8]||y==(U|M)&&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 nx(n){var o=[];if(n!=null)for(var u in Ne(n))o.push(u);return o}function ix(n){return ia.call(n)}function xp(n,o,u){return o=st(o===r?n.length-1:o,0),function(){for(var y=arguments,_=-1,T=st(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 ox(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=ww||function(n,o){return dt.setTimeout(n,o)},tl=Op(R1);function _p(n,o,u){var y=o+"";return tl(n,Y1(y,ax(G1(y),u)))}function Op(n){var o=0,u=0;return function(){var y=_w(),_=B-(y-u);if(u=y,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Ra(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=tx(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(V0,function(u,y,_,T){o.push(_?T.replace(nb,"$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 na.call(n)}catch{}try{return n+""}catch{}}return""}function ax(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 sx(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=st(xe(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var _=0,T=0,P=H(ca(y/o));_<y;)P[T++]=Qt(n,_,_+=o);return P}function ux(n){for(var o=-1,u=n==null?0:n.length,y=0,_=[];++o<u;){var T=n[o];T&&(_[y++]=T)}return _}function lx(){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 cx=_e(function(n,o){return et(n)?Li(n,pt(o,1,et,!0)):[]}),fx=_e(function(n,o){var u=er(o);return et(u)&&(u=r),et(n)?Li(n,pt(o,1,et,!0),pe(u,2)):[]}),dx=_e(function(n,o){var u=er(o);return et(u)&&(u=r),et(n)?Li(n,pt(o,1,et,!0),r,u):[]});function px(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 hx(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 gx(n,o){return n&&n.length?wa(n,pe(o,3),!0,!0):[]}function mx(n,o){return n&&n.length?wa(n,pe(o,3),!0):[]}function vx(n,o,u,y){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,y=_),l1(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&&(_=st(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?st(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 yx(n){var o=n==null?0:n.length;return o?pt(n,Y):[]}function bx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:xe(o),pt(n,o)):[]}function wx(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 xx(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=st(y+_,0)),Yn(n,o,_)}function Sx(n){var o=n==null?0:n.length;return o?Qt(n,0,-1):[]}var Ex=_e(function(n){var o=Be(n,Uu);return o.length&&o[0]===n[0]?$u(o):[]}),_x=_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)):[]}),Ox=_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 Ax(n,o){return n==null?"":Sw.call(n,o)}function er(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Tx(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y;return u!==r&&(_=xe(u),_=_<0?st(y+_,0):bt(_,y-1)),o===o?aw(n,o,_):Qo(n,fd,_,!0)}function Rx(n,o){return n&&n.length?Ud(n,xe(o)):r}var Px=_e($p);function $p(n,o){return n&&n.length&&o&&o.length?Fu(n,o):n}function Cx(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,pe(u,2)):n}function kx(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,r,u):n}var $x=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 Ix(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:Aw.call(n)}function Lx(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 Mx(n,o){return ba(n,o)}function Fx(n,o,u){return ju(n,o,pe(u,2))}function Dx(n,o){var u=n==null?0:n.length;if(u){var y=ba(n,o);if(y<u&&lr(n[y],o))return y}return-1}function Nx(n,o){return ba(n,o,!0)}function jx(n,o,u){return ju(n,o,pe(u,2),!0)}function zx(n,o){var u=n==null?0:n.length;if(u){var y=ba(n,o,!0)-1;if(lr(n[y],o))return y}return-1}function Wx(n){return n&&n.length?Gd(n):[]}function Ux(n,o){return n&&n.length?Gd(n,pe(o,2)):[]}function Bx(n){var o=n==null?0:n.length;return o?Qt(n,1,o):[]}function Hx(n,o,u){return n&&n.length?(o=u||o===r?1:xe(o),Qt(n,0,o<0?0:o)):[]}function qx(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 Zx(n,o){return n&&n.length?wa(n,pe(o,3),!1,!0):[]}function Gx(n,o){return n&&n.length?wa(n,pe(o,3)):[]}var Kx=_e(function(n){return rn(pt(n,1,et,!0))}),Vx=_e(function(n){var o=er(n);return et(o)&&(o=r),rn(pt(n,1,et,!0),pe(o,2))}),Yx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,rn(pt(n,1,et,!0),r,o)});function Xx(n){return n&&n.length?rn(n):[]}function Jx(n,o){return n&&n.length?rn(n,pe(o,2)):[]}function Qx(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(et(u))return o=st(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 eS=_e(function(n,o){return et(n)?Li(n,o):[]}),tS=_e(function(n){return Wu(Xr(n,et))}),rS=_e(function(n){var o=er(n);return et(o)&&(o=r),Wu(Xr(n,et),pe(o,2))}),nS=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,Wu(Xr(n,et),r,o)}),iS=_e(nl);function oS(n,o){return Xd(n||[],o||[],Ii)}function aS(n,o){return Xd(n||[],o||[],Di)}var sS=_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 uS(n,o){return o(n),n}function Pa(n,o){return o(n)}var lS=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:Pa,args:[_],thisArg:r}),new Xt(y,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function cS(){return Lp(this)}function fS(){return new Xt(this.value(),this.__chain__)}function dS(){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 pS(){return this}function hS(n){for(var o,u=this;u instanceof ha;){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 gS(){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:Pa,args:[rl],thisArg:r}),new Xt(o,this.__chain__)}return this.thru(rl)}function mS(){return Yd(this.__wrapped__,this.__actions__)}var vS=xa(function(n,o,u){Fe.call(n,u)?++n[u]:Mr(n,u,1)});function yS(n,o,u){var y=we(n)?ld:u1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}function bS(n,o){var u=we(n)?Xr:Id;return u(n,pe(o,3))}var wS=sp(Rp),xS=sp(Pp);function SS(n,o){return pt(Ca(n,o),1)}function ES(n,o){return pt(Ca(n,o),Y)}function _S(n,o,u){return u=u===r?1:xe(u),pt(Ca(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)?Bb:$d;return u(n,pe(o,3))}var OS=xa(function(n,o,u){Fe.call(n,u)?n[u].push(o):Mr(n,u,[o])});function AS(n,o,u,y){n=Ct(n)?n:ui(n),u=u&&!y?xe(u):0;var _=n.length;return u<0&&(u=st(_+u,0)),Ma(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Yn(n,o,u)>-1}var TS=_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}),RS=xa(function(n,o,u){Mr(n,u,o)});function Ca(n,o){var u=we(n)?Be:jd;return u(n,pe(o,3))}function PS(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 CS=xa(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function kS(n,o,u){var y=we(n)?gu:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,tn)}function $S(n,o,u){var y=we(n)?Hb:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,$d)}function IS(n,o){var u=we(n)?Xr:Id;return u(n,Ia(pe(o,3)))}function LS(n){var o=we(n)?Rd:A1;return o(n)}function MS(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=xe(o);var y=we(n)?n1:T1;return y(n,o)}function FS(n){var o=we(n)?i1:P1;return o(n)}function DS(n){if(n==null)return 0;if(Ct(n))return Ma(n)?Jn(n):n.length;var o=wt(n);return o==lt||o==yt?n.size:Lu(n).length}function NS(n,o,u){var y=we(n)?mu:C1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}var jS=_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),[])}),ka=bw||function(){return dt.Date.now()};function zS(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,ai(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,ai(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?st(tr(u.maxWait)||0,o):T,oe="trailing"in u?!!u.trailing:oe);function le(tt){var cr=y,Wr=_;return y=_=r,V=tt,P=n.apply(Wr,cr),P}function he(tt){return V=tt,I=zi(Oe,o),X?le(tt):P}function Se(tt){var cr=tt-z,Wr=tt-V,sh=o-cr;return ee?bt(sh,T-Wr):sh}function ge(tt){var cr=tt-z,Wr=tt-V;return z===r||cr>=o||cr<0||ee&&Wr>=T}function Oe(){var tt=ka();if(ge(tt))return Re(tt);I=zi(Oe,Se(tt))}function Re(tt){return I=r,oe&&y?le(tt):(y=_=r,P)}function zt(){I!==r&&Jd(I),V=0,y=z=_=I=r}function At(){return I===r?P:Re(ka())}function Wt(){var tt=ka(),cr=ge(tt);if(y=arguments,_=this,z=tt,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 WS=_e(function(n,o){return kd(n,1,o)}),US=_e(function(n,o,u){return kd(n,tr(o)||0,u)});function BS(n){return Fr(n,F)}function $a(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($a.Cache||Lr),u}$a.Cache=Lr;function Ia(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 HS(n){return Np(2,n)}var qS=k1(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,ai(ol));return Fr(n,O,r,o,u)}),Bp=_e(function(n,o){var u=Qr(o,ai(Bp));return Fr(n,k,r,o,u)}),ZS=Dr(function(n,o){return Fr(n,M,r,r,r,o)});function GS(n,o){if(typeof n!="function")throw new Yt(l);return o=o===r?o:xe(o),_e(n,o)}function KS(n,o){if(typeof n!="function")throw new Yt(l);return o=o==null?0:st(xe(o),0),_e(function(u){var y=u[o],_=on(u,0,o);return y&&Jr(_,y),Ft(n,this,_)})}function VS(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 YS(n){return Dp(n,1)}function XS(n,o){return ol(Bu(o),n)}function JS(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function QS(n){return Jt(n,b)}function eE(n,o){return o=typeof o=="function"?o:r,Jt(n,b,o)}function tE(n){return Jt(n,g|b)}function rE(n,o){return o=typeof o=="function"?o:r,Jt(n,g|b,o)}function nE(n,o){return o==null||Cd(n,o,ct(o))}function lr(n,o){return n===o||n!==n&&o!==o}var iE=Oa(ku),oE=Oa(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,aE=nd?Dt(nd):h1;function Ct(n){return n!=null&&La(n.length)&&!jr(n)}function et(n){return Je(n)&&Ct(n)}function sE(n){return n===!0||n===!1||Je(n)&&_t(n)==me}var an=xw||ml,uE=id?Dt(id):g1;function lE(n){return Je(n)&&n.nodeType===1&&!Wi(n)}function cE(n){if(n==null)return!0;if(Ct(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||an(n)||si(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 fE(n,o){return Fi(n,o)}function dE(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 al(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 pE(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==Vs}function Hp(n){return typeof n=="number"&&n==xe(n)}function La(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):v1;function hE(n,o){return n===o||Iu(n,o,Yu(o))}function gE(n,o,u){return u=typeof u=="function"?u:r,Iu(n,o,Yu(o),u)}function mE(n){return Zp(n)&&n!=+n}function vE(n){if(ex(n))throw new be(s);return Dd(n)}function yE(n){return n===null}function bE(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=sa(n);if(o===null)return!0;var u=Fe.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&na.call(u)==gw}var sl=ad?Dt(ad):y1;function wE(n){return Hp(n)&&n>=-te&&n<=te}var Gp=sd?Dt(sd):b1;function Ma(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 si=ud?Dt(ud):w1;function xE(n){return n===r}function SE(n){return Je(n)&&wt(n)==Vr}function EE(n){return Je(n)&&_t(n)==Ko}var _E=Oa(Mu),OE=Oa(function(n,o){return n<=o});function Kp(n){if(!n)return[];if(Ct(n))return Ma(n)?sr(n):Pt(n);if(Ri&&n[Ri])return nw(n[Ri]());var o=wt(n),u=o==lt?Su:o==yt?ea: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=ab.test(n);return u||ub.test(n)?zb(n.slice(2),u?2:8):ob.test(n)?Z:+n}function Yp(n){return yr(n,kt(n))}function AE(n){return n?On(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Nt(n)}var TE=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)}),Fa=ii(function(n,o,u,y){yr(o,kt(o),n,y)}),RE=ii(function(n,o,u,y){yr(o,ct(o),n,y)}),PE=Dr(Ru);function CE(n,o){var u=ni(n);return o==null?u:Pd(u,o)}var kE=_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}),$E=_e(function(n){return n.push(r,hp),Ft(Jp,r,n)});function IE(n,o){return cd(n,pe(o,3),vr)}function LE(n,o){return cd(n,pe(o,3),Cu)}function ME(n,o){return n==null?n:Pu(n,pe(o,3),kt)}function FE(n,o){return n==null?n:Ld(n,pe(o,3),kt)}function DE(n,o){return n&&vr(n,pe(o,3))}function NE(n,o){return n&&Cu(n,pe(o,3))}function jE(n){return n==null?[]:va(n,ct(n))}function zE(n){return n==null?[]:va(n,kt(n))}function ul(n,o,u){var y=n==null?r:An(n,o);return y===r?u:y}function WE(n,o){return n!=null&&vp(n,o,c1)}function ll(n,o){return n!=null&&vp(n,o,f1)}var UE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ia.call(o)),n[o]=u},fl($t)),BE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ia.call(o)),Fe.call(n,o)?n[o].push(u):n[o]=[u]},pe),HE=_e(Mi);function ct(n){return Ct(n)?Td(n):Lu(n)}function kt(n){return Ct(n)?Td(n,!0):x1(n)}function qE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,o(y,_,T),y)}),u}function ZE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,_,o(y,_,T))}),u}var GE=ii(function(n,o,u){ya(n,o,u)}),Jp=ii(function(n,o,u,y){ya(n,o,u,y)}),KE=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,U1));for(var _=o.length;_--;)zu(u,o[_]);return u});function VE(n,o){return Qp(n,Ia(pe(o)))}var YE=Dr(function(n,o){return n==null?{}:E1(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 XE(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 JE(n,o,u){return n==null?n:Di(n,o,u)}function QE(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 e_(n,o,u){var y=we(n),_=y||an(n)||si(n);if(o=pe(o,4),u==null){var T=n&&n.constructor;_?u=y?new T:[]:Ge(n)?u=jr(T)?ni(sa(n)):{}:u={}}return(_?Vt:vr)(n,function(P,I,z){return o(u,P,I,z)}),u}function t_(n,o){return n==null?!0:zu(n,o)}function r_(n,o,u){return n==null?n:Vd(n,o,Bu(u))}function n_(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 i_(n){return n==null?[]:xu(n,kt(n))}function o_(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 a_(n,o,u){return o=zr(o),u===r?(u=o,o=0):u=zr(u),n=tr(n),d1(n,o,u)}function s_(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+jb("1e-"+((_+"").length-1))),o)}return Du(n,o)}var u_=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(cb,Jb).replace(Pb,"")}function l_(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 c_(n){return n=ke(n),n&&H0.test(n)?n.replace(Lf,Qb):n}function f_(n){return n=ke(n),n&&Y0.test(n)?n.replace(ou,"\\$&"):n}var d_=oi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),p_=oi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),h_=ap("toLowerCase");function g_(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 _a(fa(_),u)+n+_a(ca(_),u)}function m_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?n+_a(o-y,u):n}function v_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?_a(o-y,u)+n:n}function y_(n,o,u){return u||o==null?o=0:o&&(o=+o),Ow(ke(n).replace(au,""),o||0)}function b_(n,o,u){return(u?Ot(n,o,u):o===r)?o=1:o=xe(o),Nu(ke(n),o)}function w_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var x_=oi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function S_(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&&!sl(o))&&(o=Nt(o),!o&&Xn(n))?on(sr(n),0,u):n.split(o,u)):[]}var E_=oi(function(n,o,u){return n+(u?" ":"")+cl(o)});function __(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 O_(n,o,u){var y=A.templateSettings;u&&Ot(n,o,u)&&(o=r),n=ke(n),o=Fa({},o,y,pp);var _=Fa({},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?ib:Vo).source+"|"+(o.evaluate||Vo).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Lb+"]")+`
185
+ `;n.replace(oe,function(ge,Oe,Re,zt,At,Wt){return Re||(Re=zt),ee+=n.slice(V,Wt).replace(fb,ew),Oe&&(I=!0,ee+=`' +
186
186
  __e(`+Oe+`) +
187
187
  '`),At&&(z=!0,ee+=`';
188
188
  `+At+`;
@@ -192,17 +192,17 @@ __p += '`),Re&&(ee+=`' +
192
192
  `;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
193
193
  `+ee+`
194
194
  }
195
- `;else if(tb.test(he))throw new be(c);ee=(z?ee.replace(j0,""):ee).replace(z0,"$1").replace(W0,"$1;"),ee="function("+(he||"obj")+`) {
195
+ `;else if(rb.test(he))throw new be(c);ee=(z?ee.replace(z0,""):ee).replace(W0,"$1").replace(U0,"$1;"),ee="function("+(he||"obj")+`) {
196
196
  `+(he?"":`obj || (obj = {});
197
197
  `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
198
198
  function print() { __p += __j.call(arguments, '') }
199
199
  `:`;
200
200
  `)+ee+`return __p
201
- }`;var Se=oh(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,ol(Se))throw Se;return Se}function O_(n){return ke(n).toLowerCase()}function A_(n){return ke(n).toUpperCase()}function T_(n,o,u){if(n=ke(n),n&&(u||o===r))return hd(n);if(!n||!(o=Nt(o)))return n;var y=sr(n),_=sr(o),T=gd(y,_),P=md(y,_)+1;return on(y,T,P).join("")}function R_(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=sr(n),_=md(y,sr(o))+1;return on(y,0,_).join("")}function P_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.replace(ou,"");if(!n||!(o=Nt(o)))return n;var y=sr(n),_=gd(y,sr(o));return on(y,_).join("")}function C_(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=sr(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||(_=Su(_.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 k_(n){return n=ke(n),n&&U0.test(n)?n.replace(If,aw):n}var $_=oi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ll=ap("toUpperCase");function ih(n,o,u){return n=ke(n),o=u?r:o,o===r?tw(n)?lw(n):Zb(n):n.match(o)||[]}var oh=_e(function(n,o){try{return Ft(n,r,o)}catch(u){return ol(u)?u:new be(u)}}),I_=Dr(function(n,o){return Vt(o,function(u){u=br(u),Mr(n,u,nl(n[u],n))}),n});function L_(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 M_(n){return a1(Jt(n,g))}function cl(n){return function(){return n}}function F_(n,o){return n==null||n!==n?o:n}var D_=up(),N_=up(!0);function $t(n){return n}function fl(n){return Nd(typeof n=="function"?n:Jt(n,g))}function j_(n){return zd(Jt(n,g))}function z_(n,o){return Wd(n,Jt(o,g))}var W_=_e(function(n,o){return function(u){return Mi(u,n,o)}}),U_=_e(function(n,o){return function(u){return Mi(n,u,o)}});function dl(n,o,u){var y=ct(o),_=va(o,y);u==null&&!(Ge(o)&&(_.length||!y.length))&&(u=o,o=n,n=this,_=va(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 B_(){return dt._===this&&(dt._=gw),this}function pl(){}function H_(n){return n=xe(n),_e(function(o){return Ud(o,n)})}var q_=Hu(Be),Z_=Hu(ld),G_=Hu(gu);function ah(n){return Xu(n)?mu(br(n)):E1(n)}function K_(n){return function(o){return n==null?r:An(n,o)}}var V_=cp(),Y_=cp(!0);function hl(){return[]}function gl(){return!1}function X_(){return{}}function J_(){return""}function Q_(){return!0}function eO(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 _=bu(y,o);++u<n;)o(u);return _}function tO(n){return we(n)?Be(n,br):jt(n)?[n]:Pt(Ap(ke(n)))}function rO(n){var o=++pw;return ke(n)+o}var nO=Ea(function(n,o){return n+o},0),iO=qu("ceil"),oO=Ea(function(n,o){return n/o},1),aO=qu("floor");function sO(n){return n&&n.length?ma(n,$t,Cu):r}function uO(n,o){return n&&n.length?ma(n,pe(o,2),Cu):r}function lO(n){return dd(n,$t)}function cO(n,o){return dd(n,pe(o,2))}function fO(n){return n&&n.length?ma(n,$t,Lu):r}function dO(n,o){return n&&n.length?ma(n,pe(o,2),Lu):r}var pO=Ea(function(n,o){return n*o},1),hO=qu("round"),gO=Ea(function(n,o){return n-o},0);function mO(n){return n&&n.length?yu(n,$t):0}function vO(n,o){return n&&n.length?yu(n,pe(o,2)):0}return A.after=jS,A.ary=Dp,A.assign=AE,A.assignIn=Xp,A.assignInWith=Fa,A.assignWith=TE,A.at=RE,A.before=Np,A.bind=nl,A.bindAll=I_,A.bindKey=jp,A.castArray=XS,A.chain=Lp,A.chunk=ax,A.compact=sx,A.concat=ux,A.cond=L_,A.conforms=M_,A.constant=cl,A.countBy=mS,A.create=PE,A.curry=zp,A.curryRight=Wp,A.debounce=Up,A.defaults=CE,A.defaultsDeep=kE,A.defer=zS,A.delay=WS,A.difference=lx,A.differenceBy=cx,A.differenceWith=fx,A.drop=dx,A.dropRight=px,A.dropRightWhile=hx,A.dropWhile=gx,A.fill=mx,A.filter=yS,A.flatMap=xS,A.flatMapDeep=SS,A.flatMapDepth=ES,A.flatten=Cp,A.flattenDeep=vx,A.flattenDepth=yx,A.flip=US,A.flow=D_,A.flowRight=N_,A.fromPairs=bx,A.functions=NE,A.functionsIn=jE,A.groupBy=_S,A.initial=xx,A.intersection=Sx,A.intersectionBy=Ex,A.intersectionWith=_x,A.invert=WE,A.invertBy=UE,A.invokeMap=AS,A.iteratee=fl,A.keyBy=TS,A.keys=ct,A.keysIn=kt,A.map=Ca,A.mapKeys=HE,A.mapValues=qE,A.matches=j_,A.matchesProperty=z_,A.memoize=$a,A.merge=ZE,A.mergeWith=Jp,A.method=W_,A.methodOf=U_,A.mixin=dl,A.negate=Ia,A.nthArg=H_,A.omit=GE,A.omitBy=KE,A.once=BS,A.orderBy=RS,A.over=q_,A.overArgs=HS,A.overEvery=Z_,A.overSome=G_,A.partial=il,A.partialRight=Bp,A.partition=PS,A.pick=VE,A.pickBy=Qp,A.property=ah,A.propertyOf=K_,A.pull=Rx,A.pullAll=$p,A.pullAllBy=Px,A.pullAllWith=Cx,A.pullAt=kx,A.range=V_,A.rangeRight=Y_,A.rearg=qS,A.reject=$S,A.remove=$x,A.rest=ZS,A.reverse=tl,A.sampleSize=LS,A.set=XE,A.setWith=JE,A.shuffle=MS,A.slice=Ix,A.sortBy=NS,A.sortedUniq=zx,A.sortedUniqBy=Wx,A.split=x_,A.spread=GS,A.tail=Ux,A.take=Bx,A.takeRight=Hx,A.takeRightWhile=qx,A.takeWhile=Zx,A.tap=sS,A.throttle=KS,A.thru=Pa,A.toArray=Kp,A.toPairs=eh,A.toPairsIn=th,A.toPath=tO,A.toPlainObject=Yp,A.transform=QE,A.unary=VS,A.union=Gx,A.unionBy=Kx,A.unionWith=Vx,A.uniq=Yx,A.uniqBy=Xx,A.uniqWith=Jx,A.unset=e_,A.unzip=rl,A.unzipWith=Ip,A.update=t_,A.updateWith=r_,A.values=ui,A.valuesIn=n_,A.without=Qx,A.words=ih,A.wrap=YS,A.xor=eS,A.xorBy=tS,A.xorWith=rS,A.zip=nS,A.zipObject=iS,A.zipObjectDeep=oS,A.zipWith=aS,A.entries=eh,A.entriesIn=th,A.extend=Xp,A.extendWith=Fa,dl(A,A),A.add=nO,A.attempt=oh,A.camelCase=s_,A.capitalize=rh,A.ceil=iO,A.clamp=i_,A.clone=JS,A.cloneDeep=eE,A.cloneDeepWith=tE,A.cloneWith=QS,A.conformsTo=rE,A.deburr=nh,A.defaultTo=F_,A.divide=oO,A.endsWith=u_,A.eq=lr,A.escape=l_,A.escapeRegExp=c_,A.every=vS,A.find=bS,A.findIndex=Rp,A.findKey=$E,A.findLast=wS,A.findLastIndex=Pp,A.findLastKey=IE,A.floor=aO,A.forEach=Mp,A.forEachRight=Fp,A.forIn=LE,A.forInRight=ME,A.forOwn=FE,A.forOwnRight=DE,A.get=sl,A.gt=nE,A.gte=iE,A.has=zE,A.hasIn=ul,A.head=kp,A.identity=$t,A.includes=OS,A.indexOf=wx,A.inRange=o_,A.invoke=BE,A.isArguments=Pn,A.isArray=we,A.isArrayBuffer=oE,A.isArrayLike=Ct,A.isArrayLikeObject=et,A.isBoolean=aE,A.isBuffer=an,A.isDate=sE,A.isElement=uE,A.isEmpty=lE,A.isEqual=cE,A.isEqualWith=fE,A.isError=ol,A.isFinite=dE,A.isFunction=jr,A.isInteger=Hp,A.isLength=La,A.isMap=qp,A.isMatch=pE,A.isMatchWith=hE,A.isNaN=gE,A.isNative=mE,A.isNil=yE,A.isNull=vE,A.isNumber=Zp,A.isObject=Ge,A.isObjectLike=Je,A.isPlainObject=Wi,A.isRegExp=al,A.isSafeInteger=bE,A.isSet=Gp,A.isString=Ma,A.isSymbol=jt,A.isTypedArray=si,A.isUndefined=wE,A.isWeakMap=xE,A.isWeakSet=SE,A.join=Ox,A.kebabCase=f_,A.last=er,A.lastIndexOf=Ax,A.lowerCase=d_,A.lowerFirst=p_,A.lt=EE,A.lte=_E,A.max=sO,A.maxBy=uO,A.mean=lO,A.meanBy=cO,A.min=fO,A.minBy=dO,A.stubArray=hl,A.stubFalse=gl,A.stubObject=X_,A.stubString=J_,A.stubTrue=Q_,A.multiply=pO,A.nth=Tx,A.noConflict=B_,A.noop=pl,A.now=ka,A.pad=h_,A.padEnd=g_,A.padStart=m_,A.parseInt=v_,A.random=a_,A.reduce=CS,A.reduceRight=kS,A.repeat=y_,A.replace=b_,A.result=YE,A.round=hO,A.runInContext=N,A.sample=IS,A.size=FS,A.snakeCase=w_,A.some=DS,A.sortedIndex=Lx,A.sortedIndexBy=Mx,A.sortedIndexOf=Fx,A.sortedLastIndex=Dx,A.sortedLastIndexBy=Nx,A.sortedLastIndexOf=jx,A.startCase=S_,A.startsWith=E_,A.subtract=gO,A.sum=mO,A.sumBy=vO,A.template=__,A.times=eO,A.toFinite=zr,A.toInteger=xe,A.toLength=Vp,A.toLower=O_,A.toNumber=tr,A.toSafeInteger=OE,A.toString=ke,A.toUpper=A_,A.trim=T_,A.trimEnd=R_,A.trimStart=P_,A.truncate=C_,A.unescape=k_,A.uniqueId=rO,A.upperCase=$_,A.upperFirst=ll,A.each=Mp,A.eachRight=Fp,A.first=kp,dl(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:st(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(Ia(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:Pa,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=ta[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[Sa(r,h).name]=[{name:"wrapper",func:r}],Te.prototype.clone=kw,Te.prototype.reverse=$w,Te.prototype.value=Iw,A.prototype.at=uS,A.prototype.chain=lS,A.prototype.commit=cS,A.prototype.next=fS,A.prototype.plant=pS,A.prototype.reverse=hS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=gS,A.prototype.first=A.prototype.head,Ri&&(A.prototype[Ri]=dS),A}),Qn=cw();xn?((xn.exports=Qn)._=Qn,fu._=Qn):dt._=Qn}).call(Jk)})(go,go.exports)),go.exports}var Ve=Qk();const Ec={FdSave:nt.FdSave,FdWarningDanger:nt.FdWarningDanger,FdInfoCircle:nt.FdInfoCircle,FdInfoBold:nt.FdInfoBold};var pf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(pf||{}),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"}},Kl=({color:e=zn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=Ry[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-primary-hover hover:text-white`;return D.jsx("button",{autoFocus:i,className:We("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},e$=({name:e,color:t=zn.PRIMARY,className:r="w-8 h-8"})=>{const i=Ec[e]||Ec.FdInfoCircle,a=`text-${Ry[t].icon}`;return D.jsx(i,{className:We(r,a)})},t$=({id:e,title:t,message:r,icon:i,type:a,color:s,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(D.jsx(ws,{appear:!0,show:!0,as:W.Fragment,children:D.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:D.jsx(ws.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:D.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:D.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?D.jsx("div",{className:"flex items-center justify-center",children:D.jsx(e$,{name:i,color:s,className:"w-6 h-6"})}):null,D.jsx(r$,{condition:t,children:D.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),D.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),D.jsx("div",{className:"text-xs text-white",children:Ve.values(c==null?void 0:c.toggles).map(w=>D.jsx("div",{children:D.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[D.jsx(py,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),D.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),D.jsx(n$,{warnings:x}),D.jsx("div",{className:"flex items-center gap-4",children:a===pf.CONFIRM?D.jsxs(D.Fragment,{children:[D.jsx(Kl,{autoFocus:!0,color:s,onClick:()=>b(pi.CONFIRMED),children:"Confirm"}),D.jsx(Kl,{color:s,variant:"outlined",onClick:()=>b(pi.CANCELED),children:"Cancel"})]}):D.jsx(Kl,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),m||document.body)},r$=e=>e.condition?D.jsx(D.Fragment,{children:e.children}):null,n$=e=>e.warnings?D.jsx(ws,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:D.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)=>D.jsx(ws.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:D.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[D.jsx(nt.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")}),D.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 i$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:a})=>D.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[D.jsx(nt.FdMinusNaked,{onClick:a,className:We("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),D.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),D.jsx(nt.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})})]}),o$=$.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}})))),a$=o$;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]=Gc("Tooltip",[Ds]),hf=Ds(),s$=700,[dM,u$]=Cy("TooltipProvider",{isOpenDelayed:!0,delayDuration:s$,onOpen:()=>{},onClose:()=>{}}),[l$,Bs]=Cy("Tooltip"),c$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a=!1,onOpenChange:s,delayDuration:l}=e,c=u$("Tooltip",t),f=hf(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:a,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),s==null||s(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(l$,{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))},f$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,a=Bs("TooltipTrigger",r),s=hf(r),l=vn(t,a.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(zv,Xe({asChild:!0},s),$.createElement(yn.button,Xe({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},i,{ref:l,onMouseEnter:Bt(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Bt(e.onMouseLeave,a.onClose),onMouseDown:Bt(e.onMouseDown,(()=>{a.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Bt(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:Bt(e.onBlur,a.onClose),onClick:Bt(e.onClick,(v=>{v.detail===0&&a.onClose()}))})))})),d$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=Bs("TooltipContent",e.__scopeTooltip);return $.createElement(qc,{present:r||a.open},$.createElement(p$,Xe({ref:t},i)))})),p$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":a,portalled:s=!0,...l}=e,c=Bs("TooltipContent",r),f=hf(r),v=s?Zc:$.Fragment,{onClose:m}=c;return Lv((()=>m())),$.useEffect((()=>(document.addEventListener("tooltip.open",m),()=>document.removeEventListener("tooltip.open",m))),[m]),$.createElement(v,null,$.createElement(h$,{__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(a$,{id:c.contentId,role:"tooltip"},a||i)))}));function h$(e){const{__scopeTooltip:t}=e,r=Bs("CheckTriggerMoved",t),i=Fv(r.trigger),a=i==null?void 0:i.left,s=pm(a),l=i==null?void 0:i.top,c=pm(l),f=r.onClose;return $.useEffect((()=>{(s!==void 0&&s!==a||c!==void 0&&c!==l)&&f()}),[f,s,c,a,l]),null}const g$=c$,m$=f$,v$=d$;function y$(e){return D.jsxs(g$,{delayDuration:e.delayDuration,open:e.open,children:[D.jsx(m$,{tabIndex:-1,asChild:!0,children:D.jsx("span",{children:e.children})}),D.jsxs(v$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&D.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,ds=500,b$=()=>D.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),w$=e=>{const[t,r]=W.useState(In),i=W.useRef(),a=t>In,s=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!a&&r(ds),!e.isOpen&&a&&r(In)},[e.isOpen]),D.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[D.jsx(wO.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(a?In:ds):i.current=Date.now()},onResize:(l,c,f)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var v;(v=e.onResize)==null||v.call(e),s.current=null})},onResizeStop:(l,c,f,v)=>{r(t+v.height)},handleComponent:{top:D.jsx(b$,{})}}),D.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ve.kebabCase(e.path)}`,children:[D.jsxs("div",{className:We("flex justify-between items-center px-3 py-0.5",{"flex-1":!a}),children:[D.jsxs("div",{className:"group flex items-center justify-start",children:[D.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),D.jsx("span",{}),e.tipKey?D.jsx(ty,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,D.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{a?(r(In),e.onClose()):(r(ds),e.onOpen())},children:a?D.jsx(nt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):D.jsx(nt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),D.jsxs(us,{of:a,children:[D.jsx(us,{of:e.render,children:e.render}),D.jsx(us,{of:!e.render,children:e.children})]})]})]})};function ky({children:e,viewBox:t="0 0 24 24",...r}){return D.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 D.jsx(ky,{viewBox:"0 0 24 24",...e,children:D.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function x$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:a,className:s="",style:l,...c}){const f=W.useRef(null),v=i||D.jsx($y,{}),m=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const g=m||t,p=["base-checkbox-container",s].join(" ");return D.jsxs("label",{className:p,style:l,"data-invalid":r,children:[D.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:m,...c,"aria-invalid":r||void 0}),D.jsx("span",{className:"base-checkbox-control",children:g&&v&&W.cloneElement(v,{isChecked:m,isIndeterminate:t,className:"base-checkbox-icon"})}),a&&D.jsx("span",{className:"base-checkbox-label",children:a})]})}function S$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Vl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Yl(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 E$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}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,"-":Vl?173:189,"=":Vl?61:187,";":Vl?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),_$=e=>Object.keys(Po).find(t=>Po[t]===e),O$=e=>Object.keys(gr).find(t=>gr[t]===e);function Fy(e){My=e||"all"}function Co(){return My||"all"}function A$(){return qe.slice(0)}function T$(){return qe.map(e=>_$(e)||O$(e)||String.fromCharCode(e))}function R$(){const e=[];return Object.keys(Ye).forEach(t=>{Ye[t].forEach(r=>{let{key:i,scope:a,mods:s,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(c=>_i(c))})})}),e}function P$(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function C$(e){return typeof e=="string"&&(e=_i(e)),qe.indexOf(e)!==-1}function k$(e,t){let r,i;e||(e=Co());for(const a in Ye)if(Object.prototype.hasOwnProperty.call(Ye,a))for(r=Ye[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return gf(c)}):i++;Co()===e&&Fy(t||"all")}function $$(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(a=>{Array.isArray(Ye[a])&&Ye[a].forEach(s=>es(s)),delete Ye[a]}),gf(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&es(a)});else if(typeof e=="object")e.key&&es(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[a,s]=r;typeof a=="function"&&(s=a,a=""),es({key:e,scope:a,method:s,splitKey:"+"})}}const es=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Ly(t).forEach(l=>{const c=l.split(a),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&&E$(b.mods,g);return d&&p.push(b.element),!d}),p.forEach(b=>gf(b))})};function hm(e,t,r,i){if(t.element!==i)return;let a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in gt)Object.prototype.hasOwnProperty.call(gt,s)&&(!gt[s]&&t.mods.indexOf(+s)>-1||gt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||a||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 a=Co();if(r)for(let c=0;c<r.length;c++)r[c].scope===a&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&hm(e,r[c],a,t);if(!(i in Ye))return;const s=Ye[i],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const f=s[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,a,t)}}function hr(e,t,r){qe=[];const i=Ly(e);let a=[],s="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&&(s=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"&&(s=t),p&&Dy(e,s);c<i.length;c++)e=i[c].split(m),a=[],e.length>1&&(a=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:s,mods:a,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),$$(d)};Br.set(l,{keydownListener:b,keyupListenr:x,capture:g}),Yl(l,"keydown",b,g),Yl(l,"keyup",x,g)}if(!Oo){const b=()=>{qe=[]};Oo={listener:b,capture:g},Yl(window,"focus",b,g)}}}function I$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ye).forEach(r=>{Ye[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function gf(e){const t=Object.values(Ye).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=Br.get(e)||{};i&&a&&(fo(e,"keyup",a,s),fo(e,"keydown",i,s),Br.delete(e))}if((t.length<=0||Br.size<=0)&&(Object.keys(Br).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:c}=Br.get(a)||{};s&&l&&(fo(a,"keyup",l,c),fo(a,"keydown",s,c),Br.delete(a))}),Br.clear(),Object.keys(Ye).forEach(a=>delete Ye[a]),Oo)){const{listener:a,capture:s}=Oo;fo(window,"focus",a,s),Oo=null}}const Xl={getPressedKeyString:T$,setScope:Fy,getScope:Co,deleteScope:k$,getPressedKeyCodes:A$,getAllKeyCodes:R$,isPressed:C$,filter:P$,trigger:I$,unbind:Dy,keyMap:Po,modifier:gr,modifierMap:mo};for(const e in Xl)Object.prototype.hasOwnProperty.call(Xl,e)&&(hr[e]=Xl[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 L$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=W.useCallback((c,f)=>{a&&c.preventDefault(),setTimeout(()=>t(c,f))},i),l=()=>{hr.unbind(e,s)};W.useEffect(()=>(hr(e,r,s),l),[e,r,s])}const M$=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 F$(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function D$(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function N$(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function j$(e){const[t,r]=W.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=W.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const Ny=W.createContext(""),z$=e=>D.jsx(Ny.Provider,{value:e.value,children:e.children}),W$=()=>{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 U$(e){const[t,r]=W.useState(e),i=W.useMemo(()=>B$(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function B$(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${Ve.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const H$=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...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 a=X$[e],s=a?typeof a=="function"?a.apply(null,r):a:"unknown error nr: "+e;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function 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 a=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===J$})(e)||Array.isArray(e)||!!e[Em]||!!(!((t=e.constructor)===null||t===void 0)&&t[Em])||mf(e)||vf(e))}function ko(e,t,r){r===void 0&&(r=!1),Oi(e)===0?(r?Object.keys:xf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,a){return t(a,i,e)}))}function Oi(e){var t=e[qt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:mf(e)?2:vf(e)?3:0}function _c(e,t){return Oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function q$(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 Z$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function mf(e){return V$&&e instanceof Map}function vf(e){return Y$&&e instanceof Set}function Ln(e){return e.o||e.t}function yf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q$(e);delete t[qt];for(var r=xf(t),i=0;i<r.length;i++){var a=r[i],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function $o(e,t){return t===void 0&&(t=!1),bf(e)||Si(e)||!Hn(e)||(Oi(e)>1&&(e.set=e.add=e.clear=e.delete=G$),Object.freeze(e),t&&ko(e,(function(r,i){return $o(i,!0)}),!0)),e}function G$(){mt(2)}function bf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var t=eI[e];return t||mt(18,e),t}function mm(){return process.env.NODE_ENV==="production"||Ei||mt(0),Ei}function Jl(e,t){t&&(Rr("Patches"),e.u=[],e.s=[],e.v=t)}function _s(e){Oc(e),e.p.forEach(K$),e.p=null}function Oc(e){e===Ei&&(Ei=e.l)}function vm(e){return Ei={p:[],l:Ei,h:e,m:!0,_:0}}function K$(e){var t=e[qt];t.i===0||t.i===1?t.j():t.g=!0}function Ql(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&&(_s(t),mt(4)),Hn(e)&&(e=Os(t,e),t.l||As(t,e)),t.u&&Rr("Patches").M(r[qt].t,e,t.u,t.s)):e=Os(t,r,[]),_s(t),t.u&&t.v(t.u,t.s),e!==Wy?e:void 0}function Os(e,t,r){if(bf(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 As(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var a=i.i===4||i.i===5?i.o=yf(i.k):i.o,s=a,l=!1;i.i===3&&(s=new Set(a),a.clear(),l=!0),ko(s,(function(c,f){return ym(e,i,a,c,f,r,l)})),As(e,a,!1),r&&e.u&&Rr("Patches").N(i,r,e.u,e.s)}return i.o}function ym(e,t,r,i,a,s,l){if(process.env.NODE_ENV!=="production"&&a===r&&mt(5),Si(a)){var c=Os(e,a,s&&t&&t.i!==3&&!_c(t.R,i)?s.concat(i):void 0);if(jy(r,i,c),!Si(c))return;e.m=!1}else l&&r.add(a);if(Hn(a)&&!bf(a)){if(!e.h.D&&e._<1)return;Os(e,a),t&&t.A.l||As(e,a)}}function As(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&$o(t,r)}function ec(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 Ac(e){e.P||(e.P=!0,e.l&&Ac(e.l))}function tc(e){e.o||(e.o=yf(e.t))}function Tc(e,t,r){var i=mf(t)?Rr("MapSet").F(t,r):vf(t)?Rr("MapSet").T(t,r):e.O?(function(a,s){var l=Array.isArray(a),c={i:l?1:0,A:s?s.A:mm(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},f=c,v=Rc;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,a=r[qt],s=Oi(r);if(a){if(!a.P&&(a.i<4||!Rr("ES5").K(a)))return a.t;a.I=!0,i=wm(r,s),a.I=!1}else i=wm(r,s);return ko(i,(function(l,c){a&&q$(a.t,l)===c||jy(i,l,t(c))})),s===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 yf(e)}var xm,Ei,wf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",V$=typeof Map<"u",Y$=typeof Set<"u",Sm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wy=wf?Symbol.for("immer-nothing"):((xm={})["immer-nothing"]=!0,xm),Em=wf?Symbol.for("immer-draftable"):"__$immer_draftable",qt=wf?Symbol.for("immer-state"):"__$immer_state",X$={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"},J$=""+Object.prototype.constructor,xf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Q$=Object.getOwnPropertyDescriptors||function(e){var t={};return xf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},eI={},Rc={get:function(e,t){if(t===qt)return e;var r=Ln(e);if(!_c(r,t))return(function(a,s,l){var c,f=bm(s,l);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(a.k):void 0})(e,r,t);var i=r[t];return e.I||!Hn(i)?i:i===ec(e.t,t)?(tc(e),e.o[t]=Tc(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 a=ec(Ln(e),t),s=a==null?void 0:a[qt];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Z$(r,a)&&(r!==void 0||_c(e.t,t)))return!0;tc(e),Ac(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 ec(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,tc(e),Ac(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(Rc,(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),Rc.set.call(this,e[0],t,r,e[0])};var tI=(function(){function e(r){var i=this;this.O=Sm,this.D=!0,this.produce=function(a,s,l){if(typeof a=="function"&&typeof s!="function"){var c=s;s=a;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=s).call.apply(O,[w,R].concat(S))}))}}var v;if(typeof s!="function"&&mt(6),l!==void 0&&typeof l!="function"&&mt(7),Hn(a)){var m=vm(i),g=Tc(i,a,void 0),p=!0;try{v=s(g),p=!1}finally{p?_s(m):Oc(m)}return typeof Promise<"u"&&v instanceof Promise?v.then((function(d){return Jl(m,l),Ql(d,m)}),(function(d){throw _s(m),d})):(Jl(m,l),Ql(v,m))}if(!a||typeof a!="object"){if((v=s(a))===void 0&&(v=a),v===Wy&&(v=void 0),i.D&&$o(v,!0),l){var b=[],x=[];Rr("Patches").M(a,v,b,x),l(b,x)}return v}mt(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="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 a.apply(void 0,[b].concat(g))}))};var l,c,f=i.produce(a,s,(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),a=Tc(this,r,void 0);return a[qt].C=!0,Oc(i),a},t.finishDraft=function(r,i){var a=r&&r[qt];process.env.NODE_ENV!=="production"&&(a&&a.C||mt(9),a.I&&mt(10));var s=a.A;return Jl(s,i),Ql(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Sm&&mt(20),this.O=r},t.applyPatches=function(r,i){var a;for(a=i.length-1;a>=0;a--){var s=i[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(i=i.slice(a+1));var l=Rr("Patches").$;return Si(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Zt=new tI,rI=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 nI(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"?rI(i):$o(i))},[])]}const iI=process.env.NODE_ENV==="development",rc=iI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,oI=(e,t,r)=>{const[i,a]=nI(e),s=W.useRef(null);W.useEffect(()=>{var f;return r&&(s.current=rc==null?void 0:rc.connect({name:r,trace:!0}),(f=s.current)==null||f.init(e)),()=>{var v,m;(m=(v=s.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=>(a(g=>{var p;l[v](g,m),(p=s.current)==null||p.send({type:l[v].name},zy(g))}),c)}),{}),[a]);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 nc=Uy(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
201
+ }`;var Se=oh(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,al(Se))throw Se;return Se}function A_(n){return ke(n).toLowerCase()}function T_(n){return ke(n).toUpperCase()}function R_(n,o,u){if(n=ke(n),n&&(u||o===r))return hd(n);if(!n||!(o=Nt(o)))return n;var y=sr(n),_=sr(o),T=gd(y,_),P=md(y,_)+1;return on(y,T,P).join("")}function P_(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=sr(n),_=md(y,sr(o))+1;return on(y,0,_).join("")}function C_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.replace(au,"");if(!n||!(o=Nt(o)))return n;var y=sr(n),_=gd(y,sr(o));return on(y,_).join("")}function k_(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=sr(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),sl(_)){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 $_(n){return n=ke(n),n&&B0.test(n)?n.replace(If,sw):n}var I_=oi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),cl=ap("toUpperCase");function ih(n,o,u){return n=ke(n),o=u?r:o,o===r?rw(n)?cw(n):Gb(n):n.match(o)||[]}var oh=_e(function(n,o){try{return Ft(n,r,o)}catch(u){return al(u)?u:new be(u)}}),L_=Dr(function(n,o){return Vt(o,function(u){u=br(u),Mr(n,u,il(n[u],n))}),n});function M_(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 F_(n){return s1(Jt(n,g))}function fl(n){return function(){return n}}function D_(n,o){return n==null||n!==n?o:n}var N_=up(),j_=up(!0);function $t(n){return n}function dl(n){return Nd(typeof n=="function"?n:Jt(n,g))}function z_(n){return zd(Jt(n,g))}function W_(n,o){return Wd(n,Jt(o,g))}var U_=_e(function(n,o){return function(u){return Mi(u,n,o)}}),B_=_e(function(n,o){return function(u){return Mi(n,u,o)}});function pl(n,o,u){var y=ct(o),_=va(o,y);u==null&&!(Ge(o)&&(_.length||!y.length))&&(u=o,o=n,n=this,_=va(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 H_(){return dt._===this&&(dt._=mw),this}function hl(){}function q_(n){return n=xe(n),_e(function(o){return Ud(o,n)})}var Z_=qu(Be),G_=qu(ld),K_=qu(mu);function ah(n){return Ju(n)?vu(br(n)):_1(n)}function V_(n){return function(o){return n==null?r:An(n,o)}}var Y_=cp(),X_=cp(!0);function gl(){return[]}function ml(){return!1}function J_(){return{}}function Q_(){return""}function eO(){return!0}function tO(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 rO(n){return we(n)?Be(n,br):jt(n)?[n]:Pt(Ap(ke(n)))}function nO(n){var o=++hw;return ke(n)+o}var iO=Ea(function(n,o){return n+o},0),oO=Zu("ceil"),aO=Ea(function(n,o){return n/o},1),sO=Zu("floor");function uO(n){return n&&n.length?ma(n,$t,ku):r}function lO(n,o){return n&&n.length?ma(n,pe(o,2),ku):r}function cO(n){return dd(n,$t)}function fO(n,o){return dd(n,pe(o,2))}function dO(n){return n&&n.length?ma(n,$t,Mu):r}function pO(n,o){return n&&n.length?ma(n,pe(o,2),Mu):r}var hO=Ea(function(n,o){return n*o},1),gO=Zu("round"),mO=Ea(function(n,o){return n-o},0);function vO(n){return n&&n.length?bu(n,$t):0}function yO(n,o){return n&&n.length?bu(n,pe(o,2)):0}return A.after=zS,A.ary=Dp,A.assign=TE,A.assignIn=Xp,A.assignInWith=Fa,A.assignWith=RE,A.at=PE,A.before=Np,A.bind=il,A.bindAll=L_,A.bindKey=jp,A.castArray=JS,A.chain=Lp,A.chunk=sx,A.compact=ux,A.concat=lx,A.cond=M_,A.conforms=F_,A.constant=fl,A.countBy=vS,A.create=CE,A.curry=zp,A.curryRight=Wp,A.debounce=Up,A.defaults=kE,A.defaultsDeep=$E,A.defer=WS,A.delay=US,A.difference=cx,A.differenceBy=fx,A.differenceWith=dx,A.drop=px,A.dropRight=hx,A.dropRightWhile=gx,A.dropWhile=mx,A.fill=vx,A.filter=bS,A.flatMap=SS,A.flatMapDeep=ES,A.flatMapDepth=_S,A.flatten=Cp,A.flattenDeep=yx,A.flattenDepth=bx,A.flip=BS,A.flow=N_,A.flowRight=j_,A.fromPairs=wx,A.functions=jE,A.functionsIn=zE,A.groupBy=OS,A.initial=Sx,A.intersection=Ex,A.intersectionBy=_x,A.intersectionWith=Ox,A.invert=UE,A.invertBy=BE,A.invokeMap=TS,A.iteratee=dl,A.keyBy=RS,A.keys=ct,A.keysIn=kt,A.map=Ca,A.mapKeys=qE,A.mapValues=ZE,A.matches=z_,A.matchesProperty=W_,A.memoize=$a,A.merge=GE,A.mergeWith=Jp,A.method=U_,A.methodOf=B_,A.mixin=pl,A.negate=Ia,A.nthArg=q_,A.omit=KE,A.omitBy=VE,A.once=HS,A.orderBy=PS,A.over=Z_,A.overArgs=qS,A.overEvery=G_,A.overSome=K_,A.partial=ol,A.partialRight=Bp,A.partition=CS,A.pick=YE,A.pickBy=Qp,A.property=ah,A.propertyOf=V_,A.pull=Px,A.pullAll=$p,A.pullAllBy=Cx,A.pullAllWith=kx,A.pullAt=$x,A.range=Y_,A.rangeRight=X_,A.rearg=ZS,A.reject=IS,A.remove=Ix,A.rest=GS,A.reverse=rl,A.sampleSize=MS,A.set=JE,A.setWith=QE,A.shuffle=FS,A.slice=Lx,A.sortBy=jS,A.sortedUniq=Wx,A.sortedUniqBy=Ux,A.split=S_,A.spread=KS,A.tail=Bx,A.take=Hx,A.takeRight=qx,A.takeRightWhile=Zx,A.takeWhile=Gx,A.tap=uS,A.throttle=VS,A.thru=Pa,A.toArray=Kp,A.toPairs=eh,A.toPairsIn=th,A.toPath=rO,A.toPlainObject=Yp,A.transform=e_,A.unary=YS,A.union=Kx,A.unionBy=Vx,A.unionWith=Yx,A.uniq=Xx,A.uniqBy=Jx,A.uniqWith=Qx,A.unset=t_,A.unzip=nl,A.unzipWith=Ip,A.update=r_,A.updateWith=n_,A.values=ui,A.valuesIn=i_,A.without=eS,A.words=ih,A.wrap=XS,A.xor=tS,A.xorBy=rS,A.xorWith=nS,A.zip=iS,A.zipObject=oS,A.zipObjectDeep=aS,A.zipWith=sS,A.entries=eh,A.entriesIn=th,A.extend=Xp,A.extendWith=Fa,pl(A,A),A.add=iO,A.attempt=oh,A.camelCase=u_,A.capitalize=rh,A.ceil=oO,A.clamp=o_,A.clone=QS,A.cloneDeep=tE,A.cloneDeepWith=rE,A.cloneWith=eE,A.conformsTo=nE,A.deburr=nh,A.defaultTo=D_,A.divide=aO,A.endsWith=l_,A.eq=lr,A.escape=c_,A.escapeRegExp=f_,A.every=yS,A.find=wS,A.findIndex=Rp,A.findKey=IE,A.findLast=xS,A.findLastIndex=Pp,A.findLastKey=LE,A.floor=sO,A.forEach=Mp,A.forEachRight=Fp,A.forIn=ME,A.forInRight=FE,A.forOwn=DE,A.forOwnRight=NE,A.get=ul,A.gt=iE,A.gte=oE,A.has=WE,A.hasIn=ll,A.head=kp,A.identity=$t,A.includes=AS,A.indexOf=xx,A.inRange=a_,A.invoke=HE,A.isArguments=Pn,A.isArray=we,A.isArrayBuffer=aE,A.isArrayLike=Ct,A.isArrayLikeObject=et,A.isBoolean=sE,A.isBuffer=an,A.isDate=uE,A.isElement=lE,A.isEmpty=cE,A.isEqual=fE,A.isEqualWith=dE,A.isError=al,A.isFinite=pE,A.isFunction=jr,A.isInteger=Hp,A.isLength=La,A.isMap=qp,A.isMatch=hE,A.isMatchWith=gE,A.isNaN=mE,A.isNative=vE,A.isNil=bE,A.isNull=yE,A.isNumber=Zp,A.isObject=Ge,A.isObjectLike=Je,A.isPlainObject=Wi,A.isRegExp=sl,A.isSafeInteger=wE,A.isSet=Gp,A.isString=Ma,A.isSymbol=jt,A.isTypedArray=si,A.isUndefined=xE,A.isWeakMap=SE,A.isWeakSet=EE,A.join=Ax,A.kebabCase=d_,A.last=er,A.lastIndexOf=Tx,A.lowerCase=p_,A.lowerFirst=h_,A.lt=_E,A.lte=OE,A.max=uO,A.maxBy=lO,A.mean=cO,A.meanBy=fO,A.min=dO,A.minBy=pO,A.stubArray=gl,A.stubFalse=ml,A.stubObject=J_,A.stubString=Q_,A.stubTrue=eO,A.multiply=hO,A.nth=Rx,A.noConflict=H_,A.noop=hl,A.now=ka,A.pad=g_,A.padEnd=m_,A.padStart=v_,A.parseInt=y_,A.random=s_,A.reduce=kS,A.reduceRight=$S,A.repeat=b_,A.replace=w_,A.result=XE,A.round=gO,A.runInContext=N,A.sample=LS,A.size=DS,A.snakeCase=x_,A.some=NS,A.sortedIndex=Mx,A.sortedIndexBy=Fx,A.sortedIndexOf=Dx,A.sortedLastIndex=Nx,A.sortedLastIndexBy=jx,A.sortedLastIndexOf=zx,A.startCase=E_,A.startsWith=__,A.subtract=mO,A.sum=vO,A.sumBy=yO,A.template=O_,A.times=tO,A.toFinite=zr,A.toInteger=xe,A.toLength=Vp,A.toLower=A_,A.toNumber=tr,A.toSafeInteger=AE,A.toString=ke,A.toUpper=T_,A.trim=R_,A.trimEnd=P_,A.trimStart=C_,A.truncate=k_,A.unescape=$_,A.uniqueId=nO,A.upperCase=I_,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:st(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(Ia(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:Pa,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=ta[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[Sa(r,h).name]=[{name:"wrapper",func:r}],Te.prototype.clone=$w,Te.prototype.reverse=Iw,Te.prototype.value=Lw,A.prototype.at=lS,A.prototype.chain=cS,A.prototype.commit=fS,A.prototype.next=dS,A.prototype.plant=hS,A.prototype.reverse=gS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=mS,A.prototype.first=A.prototype.head,Ri&&(A.prototype[Ri]=pS),A}),Qn=fw();xn?((xn.exports=Qn)._=Qn,du._=Qn):dt._=Qn}).call(Qk)})(go,go.exports)),go.exports}var Ve=e$();const _c={FdSave:nt.FdSave,FdWarningDanger:nt.FdWarningDanger,FdInfoCircle:nt.FdInfoCircle,FdInfoBold:nt.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,...a})=>{const s=Ry[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-primary-hover hover:text-white`;return D.jsx("button",{autoFocus:i,className:We("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},t$=({name:e,color:t=zn.PRIMARY,className:r="w-8 h-8"})=>{const i=_c[e]||_c.FdInfoCircle,a=`text-${Ry[t].icon}`;return D.jsx(i,{className:We(r,a)})},r$=({id:e,title:t,message:r,icon:i,type:a,color:s,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(D.jsx(ws,{appear:!0,show:!0,as:W.Fragment,children:D.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:D.jsx(ws.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:D.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:D.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?D.jsx("div",{className:"flex items-center justify-center",children:D.jsx(t$,{name:i,color:s,className:"w-6 h-6"})}):null,D.jsx(n$,{condition:t,children:D.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),D.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),D.jsx("div",{className:"text-xs text-white",children:Ve.values(c==null?void 0:c.toggles).map(w=>D.jsx("div",{children:D.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[D.jsx(py,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),D.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),D.jsx(i$,{warnings:x}),D.jsx("div",{className:"flex items-center gap-4",children:a===hf.CONFIRM?D.jsxs(D.Fragment,{children:[D.jsx(Vl,{autoFocus:!0,color:s,onClick:()=>b(pi.CONFIRMED),children:"Confirm"}),D.jsx(Vl,{color:s,variant:"outlined",onClick:()=>b(pi.CANCELED),children:"Cancel"})]}):D.jsx(Vl,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),m||document.body)},n$=e=>e.condition?D.jsx(D.Fragment,{children:e.children}):null,i$=e=>e.warnings?D.jsx(ws,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:D.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)=>D.jsx(ws.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:D.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[D.jsx(nt.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")}),D.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 o$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:a})=>D.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[D.jsx(nt.FdMinusNaked,{onClick:a,className:We("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),D.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),D.jsx(nt.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})})]}),a$=$.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}})))),s$=a$;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",[Ns]),gf=Ns(),u$=700,[hM,l$]=Cy("TooltipProvider",{isOpenDelayed:!0,delayDuration:u$,onOpen:()=>{},onClose:()=>{}}),[c$,Hs]=Cy("Tooltip"),f$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a=!1,onOpenChange:s,delayDuration:l}=e,c=l$("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:a,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),s==null||s(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(c$,{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))},d$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,a=Hs("TooltipTrigger",r),s=gf(r),l=vn(t,a.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(zv,Xe({asChild:!0},s),$.createElement(yn.button,Xe({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},i,{ref:l,onMouseEnter:Bt(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Bt(e.onMouseLeave,a.onClose),onMouseDown:Bt(e.onMouseDown,(()=>{a.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Bt(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:Bt(e.onBlur,a.onClose),onClick:Bt(e.onClick,(v=>{v.detail===0&&a.onClose()}))})))})),p$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=Hs("TooltipContent",e.__scopeTooltip);return $.createElement(Zc,{present:r||a.open},$.createElement(h$,Xe({ref:t},i)))})),h$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":a,portalled:s=!0,...l}=e,c=Hs("TooltipContent",r),f=gf(r),v=s?Gc:$.Fragment,{onClose:m}=c;return Lv((()=>m())),$.useEffect((()=>(document.addEventListener("tooltip.open",m),()=>document.removeEventListener("tooltip.open",m))),[m]),$.createElement(v,null,$.createElement(g$,{__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(s$,{id:c.contentId,role:"tooltip"},a||i)))}));function g$(e){const{__scopeTooltip:t}=e,r=Hs("CheckTriggerMoved",t),i=Fv(r.trigger),a=i==null?void 0:i.left,s=pm(a),l=i==null?void 0:i.top,c=pm(l),f=r.onClose;return $.useEffect((()=>{(s!==void 0&&s!==a||c!==void 0&&c!==l)&&f()}),[f,s,c,a,l]),null}const m$=f$,v$=d$,y$=p$;function b$(e){return D.jsxs(m$,{delayDuration:e.delayDuration,open:e.open,children:[D.jsx(v$,{tabIndex:-1,asChild:!0,children:D.jsx("span",{children:e.children})}),D.jsxs(y$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&D.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,ds=500,w$=()=>D.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),x$=e=>{const[t,r]=W.useState(In),i=W.useRef(),a=t>In,s=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!a&&r(ds),!e.isOpen&&a&&r(In)},[e.isOpen]),D.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[D.jsx(xO.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(a?In:ds):i.current=Date.now()},onResize:(l,c,f)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var v;(v=e.onResize)==null||v.call(e),s.current=null})},onResizeStop:(l,c,f,v)=>{r(t+v.height)},handleComponent:{top:D.jsx(w$,{})}}),D.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ve.kebabCase(e.path)}`,children:[D.jsxs("div",{className:We("flex justify-between items-center px-3 py-0.5",{"flex-1":!a}),children:[D.jsxs("div",{className:"group flex items-center justify-start",children:[D.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),D.jsx("span",{}),e.tipKey?D.jsx(ty,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,D.jsx("button",{"data-cy":`contextualPanel-toggle-button-${a?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{a?(r(In),e.onClose()):(r(ds),e.onOpen())},children:a?D.jsx(nt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):D.jsx(nt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),D.jsxs(us,{of:a,children:[D.jsx(us,{of:e.render,children:e.render}),D.jsx(us,{of:!e.render,children:e.children})]})]})]})};function ky({children:e,viewBox:t="0 0 24 24",...r}){return D.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 D.jsx(ky,{viewBox:"0 0 24 24",...e,children:D.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function S$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:a,className:s="",style:l,...c}){const f=W.useRef(null),v=i||D.jsx($y,{}),m=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const g=m||t,p=["base-checkbox-container",s].join(" ");return D.jsxs("label",{className:p,style:l,"data-invalid":r,children:[D.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:m,...c,"aria-invalid":r||void 0}),D.jsx("span",{className:"base-checkbox-control",children:g&&v&&W.cloneElement(v,{isChecked:m,isIndeterminate:t,className:"base-checkbox-icon"})}),a&&D.jsx("span",{className:"base-checkbox-label",children:a})]})}function E$(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 _$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}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),O$=e=>Object.keys(Po).find(t=>Po[t]===e),A$=e=>Object.keys(gr).find(t=>gr[t]===e);function Fy(e){My=e||"all"}function Co(){return My||"all"}function T$(){return qe.slice(0)}function R$(){return qe.map(e=>O$(e)||A$(e)||String.fromCharCode(e))}function P$(){const e=[];return Object.keys(Ye).forEach(t=>{Ye[t].forEach(r=>{let{key:i,scope:a,mods:s,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(c=>_i(c))})})}),e}function C$(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function k$(e){return typeof e=="string"&&(e=_i(e)),qe.indexOf(e)!==-1}function $$(e,t){let r,i;e||(e=Co());for(const a in Ye)if(Object.prototype.hasOwnProperty.call(Ye,a))for(r=Ye[a],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 I$(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(a=>{Array.isArray(Ye[a])&&Ye[a].forEach(s=>es(s)),delete Ye[a]}),mf(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&es(a)});else if(typeof e=="object")e.key&&es(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[a,s]=r;typeof a=="function"&&(s=a,a=""),es({key:e,scope:a,method:s,splitKey:"+"})}}const es=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Ly(t).forEach(l=>{const c=l.split(a),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&&_$(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 a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in gt)Object.prototype.hasOwnProperty.call(gt,s)&&(!gt[s]&&t.mods.indexOf(+s)>-1||gt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||a||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 a=Co();if(r)for(let c=0;c<r.length;c++)r[c].scope===a&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&hm(e,r[c],a,t);if(!(i in Ye))return;const s=Ye[i],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const f=s[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,a,t)}}function hr(e,t,r){qe=[];const i=Ly(e);let a=[],s="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&&(s=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"&&(s=t),p&&Dy(e,s);c<i.length;c++)e=i[c].split(m),a=[],e.length>1&&(a=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:s,mods:a,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),I$(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 L$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ye).forEach(r=>{Ye[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function mf(e){const t=Object.values(Ye).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=Br.get(e)||{};i&&a&&(fo(e,"keyup",a,s),fo(e,"keydown",i,s),Br.delete(e))}if((t.length<=0||Br.size<=0)&&(Object.keys(Br).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:c}=Br.get(a)||{};s&&l&&(fo(a,"keyup",l,c),fo(a,"keydown",s,c),Br.delete(a))}),Br.clear(),Object.keys(Ye).forEach(a=>delete Ye[a]),Oo)){const{listener:a,capture:s}=Oo;fo(window,"focus",a,s),Oo=null}}const Jl={getPressedKeyString:R$,setScope:Fy,getScope:Co,deleteScope:$$,getPressedKeyCodes:T$,getAllKeyCodes:P$,isPressed:k$,filter:C$,trigger:L$,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 M$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=W.useCallback((c,f)=>{a&&c.preventDefault(),setTimeout(()=>t(c,f))},i),l=()=>{hr.unbind(e,s)};W.useEffect(()=>(hr(e,r,s),l),[e,r,s])}const F$=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 D$(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function N$(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function j$(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function z$(e){const[t,r]=W.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=W.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const Ny=W.createContext(""),W$=e=>D.jsx(Ny.Provider,{value:e.value,children:e.children}),U$=()=>{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 B$(e){const[t,r]=W.useState(e),i=W.useMemo(()=>H$(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function H$(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${Ve.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const q$=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...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 a=J$[e],s=a?typeof a=="function"?a.apply(null,r):a:"unknown error nr: "+e;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function 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 a=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Q$})(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,a){return t(a,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 Z$(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 G$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vf(e){return Y$&&e instanceof Map}function yf(e){return X$&&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=eI(e);delete t[qt];for(var r=Sf(t),i=0;i<r.length;i++){var a=r[i],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}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=K$),Object.freeze(e),t&&ko(e,(function(r,i){return $o(i,!0)}),!0)),e}function K$(){mt(2)}function wf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var t=tI[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 _s(e){Ac(e),e.p.forEach(V$),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 V$(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&&(_s(t),mt(4)),Hn(e)&&(e=Os(t,e),t.l||As(t,e)),t.u&&Rr("Patches").M(r[qt].t,e,t.u,t.s)):e=Os(t,r,[]),_s(t),t.u&&t.v(t.u,t.s),e!==Wy?e:void 0}function Os(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 As(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var a=i.i===4||i.i===5?i.o=bf(i.k):i.o,s=a,l=!1;i.i===3&&(s=new Set(a),a.clear(),l=!0),ko(s,(function(c,f){return ym(e,i,a,c,f,r,l)})),As(e,a,!1),r&&e.u&&Rr("Patches").N(i,r,e.u,e.s)}return i.o}function ym(e,t,r,i,a,s,l){if(process.env.NODE_ENV!=="production"&&a===r&&mt(5),Si(a)){var c=Os(e,a,s&&t&&t.i!==3&&!Oc(t.R,i)?s.concat(i):void 0);if(jy(r,i,c),!Si(c))return;e.m=!1}else l&&r.add(a);if(Hn(a)&&!wf(a)){if(!e.h.D&&e._<1)return;Os(e,a),t&&t.A.l||As(e,a)}}function As(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(a,s){var l=Array.isArray(a),c={i:l?1:0,A:s?s.A:mm(),P:!1,I:!1,R:{},l:s,t:a,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,a=r[qt],s=Oi(r);if(a){if(!a.P&&(a.i<4||!Rr("ES5").K(a)))return a.t;a.I=!0,i=wm(r,s),a.I=!1}else i=wm(r,s);return ko(i,(function(l,c){a&&Z$(a.t,l)===c||jy(i,l,t(c))})),s===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",Y$=typeof Map<"u",X$=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",J$={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"},Q$=""+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,eI=Object.getOwnPropertyDescriptors||function(e){var t={};return Sf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},tI={},Pc={get:function(e,t){if(t===qt)return e;var r=Ln(e);if(!Oc(r,t))return(function(a,s,l){var c,f=bm(s,l);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(a.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 a=tc(Ln(e),t),s=a==null?void 0:a[qt];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(G$(r,a)&&(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 rI=(function(){function e(r){var i=this;this.O=Sm,this.D=!0,this.produce=function(a,s,l){if(typeof a=="function"&&typeof s!="function"){var c=s;s=a;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=s).call.apply(O,[w,R].concat(S))}))}}var v;if(typeof s!="function"&&mt(6),l!==void 0&&typeof l!="function"&&mt(7),Hn(a)){var m=vm(i),g=Rc(i,a,void 0),p=!0;try{v=s(g),p=!1}finally{p?_s(m):Ac(m)}return typeof Promise<"u"&&v instanceof Promise?v.then((function(d){return Ql(m,l),ec(d,m)}),(function(d){throw _s(m),d})):(Ql(m,l),ec(v,m))}if(!a||typeof a!="object"){if((v=s(a))===void 0&&(v=a),v===Wy&&(v=void 0),i.D&&$o(v,!0),l){var b=[],x=[];Rr("Patches").M(a,v,b,x),l(b,x)}return v}mt(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="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 a.apply(void 0,[b].concat(g))}))};var l,c,f=i.produce(a,s,(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),a=Rc(this,r,void 0);return a[qt].C=!0,Ac(i),a},t.finishDraft=function(r,i){var a=r&&r[qt];process.env.NODE_ENV!=="production"&&(a&&a.C||mt(9),a.I&&mt(10));var s=a.A;return Ql(s,i),ec(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Sm&&mt(20),this.O=r},t.applyPatches=function(r,i){var a;for(a=i.length-1;a>=0;a--){var s=i[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(i=i.slice(a+1));var l=Rr("Patches").$;return Si(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Zt=new rI,nI=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 iI(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"?nI(i):$o(i))},[])]}const oI=process.env.NODE_ENV==="development",nc=oI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,aI=(e,t,r)=>{const[i,a]=iI(e),s=W.useRef(null);W.useEffect(()=>{var f;return r&&(s.current=nc==null?void 0:nc.connect({name:r,trace:!0}),(f=s.current)==null||f.init(e)),()=>{var v,m;(m=(v=s.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=>(a(g=>{var p;l[v](g,m),(p=s.current)==null||p.send({type:l[v].name},zy(g))}),c)}),{}),[a]);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
202
  `+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
203
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Pc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Hs=(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,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=fc(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){s=d instanceof nc?d.errors:[d]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=fc(g),b=p.next();!b.done;b=p.next()){var x=b.value;try{_m(x)}catch(d){s=s??[],d instanceof nc?s=ys(ys([],dc(s)),dc(d.errors)):s.push(d)}}}catch(d){i={error:d}}finally{try{b&&!b.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}if(s)throw new nc(s)}},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)&&Pc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Pc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),By=Hs.EMPTY;function Hy(e){return e instanceof Hs||e&&"closed"in e&&Zr(e.remove)&&Zr(e.add)&&Zr(e.unsubscribe)}function _m(e){Zr(e)?e():e.unsubscribe()}var aI={Promise:void 0},sI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ys([e,t],dc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function uI(e){sI.setTimeout(function(){throw e})}function Om(){}function ps(e){e()}var qy=(function(e){Ms(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=fI,i}return t.create=function(r,i,a){return new Cc(r,i,a)},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})(Hs),lI=(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){ts(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ts(i)}else ts(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ts(r)}},e})(),Cc=(function(e){Ms(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Zr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new lI(l),s}return t})(qy);function ts(e){uI(e)}function cI(e){throw e}var fI={closed:!0,next:Om,error:cI,complete:Om},dI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function pI(e){return e}function hI(e){return e.length===0?pI:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(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 a=this,s=mI(t)?t:new Cc(t,r,i);return ps(function(){var l=a,c=l.operator,f=l.source;s.add(c?c.call(s,f):f?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Tm(r),new r(function(a,s){var l=new Cc({next:function(c){try{t(c)}catch(f){s(f),l.unsubscribe()}},error:s,complete:a});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[dI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Tm(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e})();function Tm(e){var t;return(t=e??aI.Promise)!==null&&t!==void 0?t:Promise}function gI(e){return e&&Zr(e.next)&&Zr(e.error)&&Zr(e.complete)}function mI(e){return e&&e instanceof qy||gI(e)&&Hy(e)}var vI=Uy(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kr=(function(e){Ms(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 vI},t.prototype.next=function(r){var i=this;ps(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=fc(i.currentObservers),c=l.next();!c.done;c=l.next()){var f=c.value;f.next(r)}}catch(v){a={error:v}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;ps(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;ps(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,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?By:(this.currentObservers=null,c.push(r),new Hs(function(){i.currentObservers=null,Pc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):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){Ms(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.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,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a: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 yI=new kr,bI=new kr,Ky=new kr;var Vy=(e=>(e.SAVE_ALL="save-all",e))(Vy||{});const wI=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 xI=new kr;var Xy=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Xy||{});const SI=new kr,EI=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 Ts=new kr,_I=new kr,Sf=255;var Ef=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Sf} 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))(Ef||{});function Jy(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Sf)throw new Error(Ef.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 OI(e){if(!e)return null;if(typeof e=="string")try{Jy(e)}catch(t){return t.message}}function AI(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 TI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function qs(e){const{PLACEHOLDER_PREFIX:t,counter:r}=TI();let i=r;const a=[],s="@!",l=m=>(a.push(m),`${t}${i++}${s}`);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<a.length;m++){const p=`${t}${m}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(p,"g");v=v.replace(b,a[m])}return v}var _f=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(_f||{});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||{}),Of=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Of||{});const Qy="roles.json",e0="qodlyApp.json",RI="model.4DModel",t0="HTTPHandlers.json",r0="Shared/i18n.json";function PI(e){const t=Af(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 Af(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 CI(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 kI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function $I(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(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Tf(){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),II=Ve.curry((e,t,r)=>Ve.get(r,e)!==t),LI=Ve.curry((e,t)=>Ve.get(t,"id")!==e),MI=Ve.curry((e,t)=>Ve.get(t,"id")===e),FI=Ve.curry((e,t)=>Ve.get(t,"path")===e);function DI(e="id",t,r){return r.findIndex(i0(e,t))!==-1}function NI(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function jI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function o0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function zI(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 s0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!o0(e)}function WI(e){return a0(e)||s0(e)}function UI(e){return e.applyTo==="dataStore"}function BI(e){return e.applyTo==="dataClass"}function HI(e){return e.applyTo==="entity"}function qI(e){return e.applyTo==="entityCollection"}function ZI(e){return e.type==="entity"}function GI(e){return e.type==="entitysel"}function u0(e){return e.dataType==="array"}function l0(e){return e.dataType==="object"}function c0(e){return e.type==="scalar"}function KI(e){return u0(e)||l0(e)||c0(e)}const VI=e=>e!=null&&e.type==="entity",YI=e=>e.type==="entitysel",XI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",JI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",QI=e=>e.type==="scalar"&&e.dataType==="date";function eL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function tL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const yo="Qodly",f0="Location",d0="UserLanguage",p0="Title",Rf={[yo]:[{id:p0,dataType:"string",type:"scalar",namespace:yo,initialValue:""},{id:f0,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:d0,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||{}),h0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(h0||{}),Pf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Pf||{});const rL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function nL(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...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 g0(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 iL(e,t,r=!1){const i=Ve.isString(t)?t:g0(t);if(!r&&m0(e))return e;const a=v0(e);return`//%attributes = ${i}\r
204
- ${a}`}function m0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function v0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const oL=()=>Bc.uuid().replaceAll("-","").toUpperCase(),aL=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,""),ot="/rest/$designer",Ho="/rest/$designer-ext";function sL(...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 kc 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 a;Ts.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 s;try{const l=await r.json();((a=l==null?void 0:l.__ERROR)==null?void 0:a.some(f=>f.errCode===1651))&&Ts.next({action:Io.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new kc(e,r,l)}catch{s=new kc(e,r)}throw s.log(),s}return await r.json()}function uL(e){return Ts.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 a=ht.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=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};s.prototype.resolve=function(d){return b(this.base,d)},s.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 s(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 ic,Cm;function lL(){if(Cm)return ic;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 a=i.validators={};a.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 s(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}a.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(s.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},a.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},a.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(s.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},a.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=s.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]}}a.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}},a.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)}}a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}};a.multipleOf=function(g,p,b,x){return f.call(this,g,p,b,x,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(g,p,b,x){return f.call(this,g,p,b,x,"divisibleBy","is not divisible by (multiple of) ")},a.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},a.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}},a.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}},a.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}},a.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}},a.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}},a.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 a.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}},a.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}},a.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},a.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},a.not=a.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},ic=i,ic}var rs={},km;function $c(){if(km)return rs;km=1;var e=Fn();rs.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return rs.scan=function(i,a){function s(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]),s(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),s(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),s(x+"/not",g.not)}function l(m,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)s(m+"/"+p,g[p])}function c(m,g){if(!(!g||typeof g!="object"))for(var p in g)s(m+"/"+p,g[p])}var f={},v={};return s(i,a),new t(f,v)},rs}var oc,$m;function cL(){if($m)return oc;$m=1;var e=lL(),t=Fn(),r=$c().scan,i=t.ValidatorResult,a=t.ValidatorResultError,s=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 s("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 a(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,M=this.attributes[k];if(M)U=M.call(this,p,b,x,d);else if(x.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+k,b);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,p,b,x,d);w.instance=F}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 s("no such schema <"+b+">",p);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new s("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 s('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)},oc=f,oc}var Im;function fL(){if(Im)return xr;Im=1;var e=xr.Validator=cL();return xr.ValidatorResult=Fn().ValidatorResult,xr.ValidatorResultError=Fn().ValidatorResultError,xr.ValidationError=Fn().ValidationError,xr.SchemaError=Fn().SchemaError,xr.SchemaScanResult=$c().SchemaScanResult,xr.scan=$c().scan,xr.validate=function(t,r,i){var a=new e;return a.validate(t,r,i)},xr}var dL=fL();const y0=(e,t,r)=>{const i=e instanceof RegExp?Lm(e,r):e,a=t instanceof RegExp?Lm(t,r):t,s=i!==null&&a!=null&&pL(i,a,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+a.length)}},Lm=(e,t)=>{const r=t.match(e);return r?r[0]:null},pL=(e,t,r)=>{let i,a,s,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=[],s=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 a=i.pop(),a!==void 0&&a<s&&(s=a,l=v),v=r.indexOf(t,m+1);m=f<v&&f>=0?f:v}i.length&&l!==void 0&&(c=[s,l])}return c},b0="\0SLASH"+Math.random()+"\0",w0="\0OPEN"+Math.random()+"\0",Cf="\0CLOSE"+Math.random()+"\0",x0="\0COMMA"+Math.random()+"\0",S0="\0PERIOD"+Math.random()+"\0",hL=new RegExp(b0,"g"),gL=new RegExp(w0,"g"),mL=new RegExp(Cf,"g"),vL=new RegExp(x0,"g"),yL=new RegExp(S0,"g"),bL=/\\\\/g,wL=/\\{/g,xL=/\\}/g,SL=/\\,/g,EL=/\\./g;function ac(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function _L(e){return e.replace(bL,b0).replace(wL,w0).replace(xL,Cf).replace(SL,x0).replace(EL,S0)}function OL(e){return e.replace(hL,"\\").replace(gL,"{").replace(mL,"}").replace(vL,",").replace(yL,".")}function E0(e){if(!e)return[""];const t=[],r=y0("{","}",e);if(!r)return e.split(",");const{pre:i,body:a,post:s}=r,l=i.split(",");l[l.length-1]+="{"+a+"}";const c=E0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function AL(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),bo(_L(e),!0).map(OL)):[]}function TL(e){return"{"+e+"}"}function RL(e){return/^-?0\d/.test(e)}function PL(e,t){return e<=t}function CL(e,t){return e>=t}function bo(e,t){const r=[],i=y0("{","}",e);if(!i)return[e];const a=i.pre,s=i.post.length?bo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let l=0;l<s.length;l++){const c=a+"{"+i.body+"}"+s[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=E0(i.body),m.length===1&&m[0]!==void 0&&(m=bo(m[0],!1).map(TL),m.length===1))return s.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=PL;b<p&&(d*=-1,w=CL);const S=m.some(RL);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<s.length;b++){const x=a+g[p]+s[b];(!t||f||x)&&r.push(x)}}return r}const kL=1024*64,Rs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>kL)throw new TypeError("pattern is too long")},$L={"[: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,"\\$&"),IL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Mm=e=>e.join(""),LL=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,f=!1,v=!1,m=r,g="";e:for(;s<e.length;){const d=e.charAt(s);if((d==="!"||d==="^")&&s===r+1){v=!0,s++;continue}if(d==="]"&&l&&!f){m=s+1;break}if(l=!0,d==="\\"&&!f){f=!0,s++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries($L))if(e.startsWith(w,s)){if(g)return["$.",!1,e.length-r,!0];s+=w.length,E?a.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="",s++;continue}if(e.startsWith("-]",s+1)){i.push(po(d+"-")),s+=2;continue}if(e.startsWith("-",s+1)){g=d,s+=2;continue}i.push(po(d)),s++}if(m<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!v){const d=i[0].length===2?i[0].slice(-1):i[0];return[IL(d),!1,m-r,!1]}const p="["+(v?"^":"")+Mm(i)+"]",b="["+(v?"":"^")+Mm(a)+"]";return[i.length&&a.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"),ML=new Set(["!","?","+","*","@"]),Fm=e=>ML.has(e),FL="(?!(?:^|/)\\.\\.?(?:$|/))",ns="(?!\\.)",DL=new Set(["[","."]),NL=new Set(["..","."]),jL=new Set("().*{}+?[]^$\\!"),zL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),kf="[^/]",Dm=kf+"*?",Nm=kf+"+?";var ut,ft,qr,He,it,fn,Dn,dn,Er,Nn,Fo,qn,_0,gn,hs,Ic,O0;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 a=re(t,He)[i];if(!(a instanceof Tt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;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(a=re(this,it))==null?void 0:a.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 a;const i=new Tt(null,void 0,r);return $e(a=Tt,gn,hs).call(a,t,i,0,r),i}toMMPattern(){if(this!==re(this,ut))return re(this,ut).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||re(this,ft)||re(this,Er).nocase&&!re(this,Er).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Er).nocase?"i":"")+(s?"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,_0).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,O0).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&&NL.has(re(this,He)[0]))){const d=DL,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?FL:h?ns:""}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==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=$e(this,qn,Ic).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&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||!ns?"":$e(this,qn,Ic).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,Fo))c=(this.isStart()&&!r?ns:"")+Nm;else{const v=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ns:"")+Dm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+v}return[c,wo(s),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,_0=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 a=re(r,fn)+1;!i.type&&a<re(i,He).length;a++)for(const s of re(t,He)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(re(i,He)[a])}r=i,i=re(r,it)}}return this},gn=new WeakSet,hs=function(t,r,i,a){var b,x;let s=!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(s||h==="\\"){s=!s,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(!a.noext&&Fm(h)&&t.charAt(d)==="("){r.push(w),w="";const S=new Tt(h,r);d=$e(b=Tt,gn,hs).call(b,t,S,d,a),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(s||d==="\\"){s=!s,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,hs).call(x,t,w,v,a);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},Ic=function(t){return re(this,He).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return Qe(this,qr,re(this,qr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},O0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(a){a=!1,s+=(jL.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(f==="["){const[v,m,g,p]=LL(t,c);if(g){s+=v,l=l||m,c+=g-1,r=r||p;continue}}if(f==="*"){i&&t==="*"?s+=Nm:s+=Dm,r=!0;continue}if(f==="?"){s+=kf,r=!0;continue}s+=zL(f)}return[s,wo(t),!!r,l]},xt(Tt,gn);let Ps=Tt;const WL=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Et=(e,t,r={})=>(Rs(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Zs(t,r).match(e)),UL=/^\*+([^+@!?\*\[\(]*)$/,BL=e=>t=>!t.startsWith(".")&&t.endsWith(e),HL=e=>t=>t.endsWith(e),qL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),ZL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),GL=/^\*+\.\*+$/,KL=e=>!e.startsWith(".")&&e.includes("."),VL=e=>e!=="."&&e!==".."&&e.includes("."),YL=/^\.\*+$/,XL=e=>e!=="."&&e!==".."&&e.startsWith("."),JL=/^\*+$/,QL=e=>e.length!==0&&!e.startsWith("."),e2=e=>e.length!==0&&e!=="."&&e!=="..",t2=/^\?+([^+@!?\*\[\(]*)?$/,r2=([e,t=""])=>{const r=A0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},n2=([e,t=""])=>{const r=T0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},i2=([e,t=""])=>{const r=T0([e]);return t?i=>r(i)&&i.endsWith(t):r},o2=([e,t=""])=>{const r=A0([e]);return t?i=>r(i)&&i.endsWith(t):r},A0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},T0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},R0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",jm={win32:{sep:"\\"},posix:{sep:"/"}},a2=R0==="win32"?jm.win32.sep:jm.posix.sep;Et.sep=a2;const nr=Symbol("globstar **");Et.GLOBSTAR=nr;const s2="[^/]",u2=s2+"*?",l2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c2="(?:(?!(?:\\/|^)\\.).)*?",f2=(e,t={})=>r=>Et(r,e,t);Et.filter=f2;const rr=(e,t={})=>Object.assign({},e,t),d2=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Et;const t=Et;return Object.assign((i,a,s={})=>t(i,a,rr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,rr(e,s))}static defaults(a){return t.defaults(rr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,rr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,rr(e,s))}},unescape:(i,a={})=>t.unescape(i,rr(e,a)),escape:(i,a={})=>t.escape(i,rr(e,a)),filter:(i,a={})=>t.filter(i,rr(e,a)),defaults:i=>t.defaults(rr(e,i)),makeRe:(i,a={})=>t.makeRe(i,rr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,rr(e,a)),match:(i,a,s={})=>t.match(i,a,rr(e,s)),sep:t.sep,GLOBSTAR:nr})};Et.defaults=d2;const P0=(e,t={})=>(Rs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:AL(e));Et.braceExpand=P0;const p2=(e,t={})=>new Zs(e,t).makeRe();Et.makeRe=p2;const h2=(e,t,r={})=>{const i=new Zs(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Et.match=h2;const zm=/[?*]|[+@!]\(.*?\)|\[|\]/,g2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Zs{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");Rs(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||R0,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=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=s[0]===""&&s[1]===""&&(s[2]==="?"||!zm.test(s[2]))&&!zm.test(s[3]),v=/^[a-z]:/i.test(s[0]);if(f)return[...s.slice(0,4),...s.slice(4).map(m=>this.parse(m))];if(v)return[s[0],...s.slice(1).map(m=>this.parse(m))]}return s.map(f=>this.parse(f))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");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 a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),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 a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(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 a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let c=i[a+1];const f=i[a+2],v=i[a+3];if(c!==".."||!f||f==="."||f===".."||!v||v==="."||v==="..")continue;r=!0,i.splice(a,1);const m=i.slice(0);m[a]="**",t.push(m),a--}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 s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const f=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...f),i.length===0&&i.push(""),s-=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 a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}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 a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=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:s=1}=this.options;s>=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]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<f;){var x=t[p];if(this.debug(`
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 qs=(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,a,s;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){s=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){s=s??[],d instanceof ic?s=ys(ys([],pc(s)),pc(d.errors)):s.push(d)}}}catch(d){i={error:d}}finally{try{b&&!b.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}if(s)throw new ic(s)}},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=qs.EMPTY;function Hy(e){return e instanceof qs||e&&"closed"in e&&Zr(e.remove)&&Zr(e.add)&&Zr(e.unsubscribe)}function _m(e){Zr(e)?e():e.unsubscribe()}var sI={Promise:void 0},uI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ys([e,t],pc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function lI(e){uI.setTimeout(function(){throw e})}function Om(){}function ps(e){e()}var qy=(function(e){Fs(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=dI,i}return t.create=function(r,i,a){return new kc(r,i,a)},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})(qs),cI=(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){ts(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ts(i)}else ts(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ts(r)}},e})(),kc=(function(e){Fs(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Zr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new cI(l),s}return t})(qy);function ts(e){lI(e)}function fI(e){throw e}var dI={closed:!0,next:Om,error:fI,complete:Om},pI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function hI(e){return e}function gI(e){return e.length===0?hI:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(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 a=this,s=vI(t)?t:new kc(t,r,i);return ps(function(){var l=a,c=l.operator,f=l.source;s.add(c?c.call(s,f):f?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Tm(r),new r(function(a,s){var l=new kc({next:function(c){try{t(c)}catch(f){s(f),l.unsubscribe()}},error:s,complete:a});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[pI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return gI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Tm(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e})();function Tm(e){var t;return(t=e??sI.Promise)!==null&&t!==void 0?t:Promise}function mI(e){return e&&Zr(e.next)&&Zr(e.error)&&Zr(e.complete)}function vI(e){return e&&e instanceof qy||mI(e)&&Hy(e)}var yI=Uy(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kr=(function(e){Fs(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 yI},t.prototype.next=function(r){var i=this;ps(function(){var a,s;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){a={error:v}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;ps(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;ps(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,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?By:(this.currentObservers=null,c.push(r),new qs(function(){i.currentObservers=null,Cc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):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){Fs(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.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,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a: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 bI=new kr,wI=new kr,Ky=new kr;var Vy=(e=>(e.SAVE_ALL="save-all",e))(Vy||{});const xI=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 SI=new kr;var Xy=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Xy||{});const EI=new kr,_I=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 Ts=new kr,OI=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 AI(e){if(!e)return null;if(typeof e=="string")try{Jy(e)}catch(t){return t.message}}function TI(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 RI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Zs(e){const{PLACEHOLDER_PREFIX:t,counter:r}=RI();let i=r;const a=[],s="@!",l=m=>(a.push(m),`${t}${i++}${s}`);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<a.length;m++){const p=`${t}${m}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(p,"g");v=v.replace(b,a[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",PI="model.4DModel",t0="HTTPHandlers.json",r0="Shared/i18n.json";function CI(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 kI(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 $I(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function II(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(a=>{t=a}),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),LI=Ve.curry((e,t,r)=>Ve.get(r,e)!==t),MI=Ve.curry((e,t)=>Ve.get(t,"id")!==e),FI=Ve.curry((e,t)=>Ve.get(t,"id")===e),DI=Ve.curry((e,t)=>Ve.get(t,"path")===e);function NI(e="id",t,r){return r.findIndex(i0(e,t))!==-1}function o0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function jI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function zI(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 a0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function WI(e){return e.type==="object"}function s0(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"||!a0(e)}function UI(e){return s0(e)||u0(e)}function BI(e){return e.applyTo==="dataStore"}function HI(e){return e.applyTo==="dataClass"}function qI(e){return e.applyTo==="entity"}function ZI(e){return e.applyTo==="entityCollection"}function GI(e){return e.type==="entity"}function KI(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 VI(e){return l0(e)||c0(e)||f0(e)}const YI=e=>e!=null&&e.type==="entity",XI=e=>e.type==="entitysel",JI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",QI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",eL=e=>e.type==="scalar"&&e.dataType==="date",tL=(e,t)=>(e||"")===(t||"");function rL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function nL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const yo="Qodly",d0="Location",p0="UserLanguage",h0="Title",Rs={[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 iL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function oL(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...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 aL(e,t,r=!1){const i=Ve.isString(t)?t:m0(t);if(!r&&v0(e))return e;const a=y0(e);return`//%attributes = ${i}\r
204
+ ${a}`}function v0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function y0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const sL=()=>Hc.uuid().replaceAll("-","").toUpperCase(),uL=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,""),ot="/rest/$designer",Ho="/rest/$designer-ext";function lL(...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 a;Ts.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 s;try{const l=await r.json();((a=l==null?void 0:l.__ERROR)==null?void 0:a.some(f=>f.errCode===1651))&&Ts.next({action:Io.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new $c(e,r,l)}catch{s=new $c(e,r)}throw s.log(),s}return await r.json()}function cL(e){return Ts.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 a=ht.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=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};s.prototype.resolve=function(d){return b(this.base,d)},s.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 s(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 fL(){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 a=i.validators={};a.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 s(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}a.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(s.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},a.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},a.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(s.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},a.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=s.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]}}a.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}},a.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)}}a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}},a.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}};a.multipleOf=function(g,p,b,x){return f.call(this,g,p,b,x,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(g,p,b,x){return f.call(this,g,p,b,x,"divisibleBy","is not divisible by (multiple of) ")},a.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},a.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}},a.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}},a.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}},a.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}},a.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}},a.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 a.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}},a.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}},a.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},a.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},a.not=a.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 rs={},km;function Ic(){if(km)return rs;km=1;var e=Fn();rs.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return rs.scan=function(i,a){function s(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]),s(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),s(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),s(x+"/not",g.not)}function l(m,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)s(m+"/"+p,g[p])}function c(m,g){if(!(!g||typeof g!="object"))for(var p in g)s(m+"/"+p,g[p])}var f={},v={};return s(i,a),new t(f,v)},rs}var ac,$m;function dL(){if($m)return ac;$m=1;var e=fL(),t=Fn(),r=Ic().scan,i=t.ValidatorResult,a=t.ValidatorResultError,s=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 s("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 a(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,M=this.attributes[k];if(M)U=M.call(this,p,b,x,d);else if(x.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+k,b);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,p,b,x,d);w.instance=F}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 s("no such schema <"+b+">",p);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new s("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 s('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)},ac=f,ac}var Im;function pL(){if(Im)return xr;Im=1;var e=xr.Validator=dL();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 a=new e;return a.validate(t,r,i)},xr}var hL=pL();const b0=(e,t,r)=>{const i=e instanceof RegExp?Lm(e,r):e,a=t instanceof RegExp?Lm(t,r):t,s=i!==null&&a!=null&&gL(i,a,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+a.length)}},Lm=(e,t)=>{const r=t.match(e);return r?r[0]:null},gL=(e,t,r)=>{let i,a,s,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=[],s=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 a=i.pop(),a!==void 0&&a<s&&(s=a,l=v),v=r.indexOf(t,m+1);m=f<v&&f>=0?f:v}i.length&&l!==void 0&&(c=[s,l])}return c},w0="\0SLASH"+Math.random()+"\0",x0="\0OPEN"+Math.random()+"\0",Cf="\0CLOSE"+Math.random()+"\0",S0="\0COMMA"+Math.random()+"\0",E0="\0PERIOD"+Math.random()+"\0",mL=new RegExp(w0,"g"),vL=new RegExp(x0,"g"),yL=new RegExp(Cf,"g"),bL=new RegExp(S0,"g"),wL=new RegExp(E0,"g"),xL=/\\\\/g,SL=/\\{/g,EL=/\\}/g,_L=/\\,/g,OL=/\\./g;function sc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function AL(e){return e.replace(xL,w0).replace(SL,x0).replace(EL,Cf).replace(_L,S0).replace(OL,E0)}function TL(e){return e.replace(mL,"\\").replace(vL,"{").replace(yL,"}").replace(bL,",").replace(wL,".")}function _0(e){if(!e)return[""];const t=[],r=b0("{","}",e);if(!r)return e.split(",");const{pre:i,body:a,post:s}=r,l=i.split(",");l[l.length-1]+="{"+a+"}";const c=_0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function RL(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),bo(AL(e),!0).map(TL)):[]}function PL(e){return"{"+e+"}"}function CL(e){return/^-?0\d/.test(e)}function kL(e,t){return e<=t}function $L(e,t){return e>=t}function bo(e,t){const r=[],i=b0("{","}",e);if(!i)return[e];const a=i.pre,s=i.post.length?bo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let l=0;l<s.length;l++){const c=a+"{"+i.body+"}"+s[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=_0(i.body),m.length===1&&m[0]!==void 0&&(m=bo(m[0],!1).map(PL),m.length===1))return s.map(p=>i.pre+m[0]+p);let g;if(f&&m[0]!==void 0&&m[1]!==void 0){const p=sc(m[0]),b=sc(m[1]),x=Math.max(m[0].length,m[1].length);let d=m.length===3&&m[2]!==void 0?Math.abs(sc(m[2])):1,w=kL;b<p&&(d*=-1,w=$L);const S=m.some(CL);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<s.length;b++){const x=a+g[p]+s[b];(!t||f||x)&&r.push(x)}}return r}const IL=1024*64,Ps=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>IL)throw new TypeError("pattern is too long")},LL={"[: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,"\\$&"),ML=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Mm=e=>e.join(""),FL=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,f=!1,v=!1,m=r,g="";e:for(;s<e.length;){const d=e.charAt(s);if((d==="!"||d==="^")&&s===r+1){v=!0,s++;continue}if(d==="]"&&l&&!f){m=s+1;break}if(l=!0,d==="\\"&&!f){f=!0,s++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(LL))if(e.startsWith(w,s)){if(g)return["$.",!1,e.length-r,!0];s+=w.length,E?a.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="",s++;continue}if(e.startsWith("-]",s+1)){i.push(po(d+"-")),s+=2;continue}if(e.startsWith("-",s+1)){g=d,s+=2;continue}i.push(po(d)),s++}if(m<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!v){const d=i[0].length===2?i[0].slice(-1):i[0];return[ML(d),!1,m-r,!1]}const p="["+(v?"^":"")+Mm(i)+"]",b="["+(v?"":"^")+Mm(a)+"]";return[i.length&&a.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"),DL=new Set(["!","?","+","*","@"]),Fm=e=>DL.has(e),NL="(?!(?:^|/)\\.\\.?(?:$|/))",ns="(?!\\.)",jL=new Set(["[","."]),zL=new Set(["..","."]),WL=new Set("().*{}+?[]^$\\!"),UL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),kf="[^/]",Dm=kf+"*?",Nm=kf+"+?";var ut,ft,qr,He,it,fn,Dn,dn,Er,Nn,Fo,qn,O0,gn,hs,Lc,A0;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 a=re(t,He)[i];if(!(a instanceof Tt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;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(a=re(this,it))==null?void 0:a.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 a;const i=new Tt(null,void 0,r);return $e(a=Tt,gn,hs).call(a,t,i,0,r),i}toMMPattern(){if(this!==re(this,ut))return re(this,ut).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||re(this,ft)||re(this,Er).nocase&&!re(this,Er).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Er).nocase?"i":"")+(s?"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,O0).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,A0).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&&zL.has(re(this,He)[0]))){const d=jL,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?NL:h?ns:""}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==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=$e(this,qn,Lc).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&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||!ns?"":$e(this,qn,Lc).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,Fo))c=(this.isStart()&&!r?ns:"")+Nm;else{const v=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ns:"")+Dm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+v}return[c,wo(s),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,O0=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 a=re(r,fn)+1;!i.type&&a<re(i,He).length;a++)for(const s of re(t,He)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(re(i,He)[a])}r=i,i=re(r,it)}}return this},gn=new WeakSet,hs=function(t,r,i,a){var b,x;let s=!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(s||h==="\\"){s=!s,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(!a.noext&&Fm(h)&&t.charAt(d)==="("){r.push(w),w="";const S=new Tt(h,r);d=$e(b=Tt,gn,hs).call(b,t,S,d,a),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(s||d==="\\"){s=!s,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,hs).call(x,t,w,v,a);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,a,s,l]=r.toRegExpSource(t);return Qe(this,qr,re(this,qr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},A0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(a){a=!1,s+=(WL.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(f==="["){const[v,m,g,p]=FL(t,c);if(g){s+=v,l=l||m,c+=g-1,r=r||p;continue}}if(f==="*"){i&&t==="*"?s+=Nm:s+=Dm,r=!0;continue}if(f==="?"){s+=kf,r=!0;continue}s+=UL(f)}return[s,wo(t),!!r,l]},xt(Tt,gn);let Cs=Tt;const BL=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Et=(e,t,r={})=>(Ps(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Gs(t,r).match(e)),HL=/^\*+([^+@!?\*\[\(]*)$/,qL=e=>t=>!t.startsWith(".")&&t.endsWith(e),ZL=e=>t=>t.endsWith(e),GL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),KL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),VL=/^\*+\.\*+$/,YL=e=>!e.startsWith(".")&&e.includes("."),XL=e=>e!=="."&&e!==".."&&e.includes("."),JL=/^\.\*+$/,QL=e=>e!=="."&&e!==".."&&e.startsWith("."),e2=/^\*+$/,t2=e=>e.length!==0&&!e.startsWith("."),r2=e=>e.length!==0&&e!=="."&&e!=="..",n2=/^\?+([^+@!?\*\[\(]*)?$/,i2=([e,t=""])=>{const r=T0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},o2=([e,t=""])=>{const r=R0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},a2=([e,t=""])=>{const r=R0([e]);return t?i=>r(i)&&i.endsWith(t):r},s2=([e,t=""])=>{const r=T0([e]);return t?i=>r(i)&&i.endsWith(t):r},T0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},R0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},P0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",jm={win32:{sep:"\\"},posix:{sep:"/"}},u2=P0==="win32"?jm.win32.sep:jm.posix.sep;Et.sep=u2;const nr=Symbol("globstar **");Et.GLOBSTAR=nr;const l2="[^/]",c2=l2+"*?",f2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",d2="(?:(?!(?:\\/|^)\\.).)*?",p2=(e,t={})=>r=>Et(r,e,t);Et.filter=p2;const rr=(e,t={})=>Object.assign({},e,t),h2=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Et;const t=Et;return Object.assign((i,a,s={})=>t(i,a,rr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,rr(e,s))}static defaults(a){return t.defaults(rr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,rr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,rr(e,s))}},unescape:(i,a={})=>t.unescape(i,rr(e,a)),escape:(i,a={})=>t.escape(i,rr(e,a)),filter:(i,a={})=>t.filter(i,rr(e,a)),defaults:i=>t.defaults(rr(e,i)),makeRe:(i,a={})=>t.makeRe(i,rr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,rr(e,a)),match:(i,a,s={})=>t.match(i,a,rr(e,s)),sep:t.sep,GLOBSTAR:nr})};Et.defaults=h2;const C0=(e,t={})=>(Ps(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:RL(e));Et.braceExpand=C0;const g2=(e,t={})=>new Gs(e,t).makeRe();Et.makeRe=g2;const m2=(e,t,r={})=>{const i=new Gs(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Et.match=m2;const zm=/[?*]|[+@!]\(.*?\)|\[|\]/,v2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Gs{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");Ps(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||P0,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=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=s[0]===""&&s[1]===""&&(s[2]==="?"||!zm.test(s[2]))&&!zm.test(s[3]),v=/^[a-z]:/i.test(s[0]);if(f)return[...s.slice(0,4),...s.slice(4).map(m=>this.parse(m))];if(v)return[s[0],...s.slice(1).map(m=>this.parse(m))]}return s.map(f=>this.parse(f))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");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 a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),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 a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(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 a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let c=i[a+1];const f=i[a+2],v=i[a+3];if(c!==".."||!f||f==="."||f===".."||!v||v==="."||v==="..")continue;r=!0,i.splice(a,1);const m=i.slice(0);m[a]="**",t.push(m),a--}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 s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const f=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...f),i.length===0&&i.push(""),s-=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 a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}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 a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=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:s=1}=this.options;s>=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]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<f;){var x=t[p];if(this.debug(`
206
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===".."||!a.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 P0(this.pattern,this.options)}parse(t){Rs(t);const r=this.options;if(t==="**")return nr;if(t==="")return"";let i,a=null;(i=t.match(JL))?a=r.dot?e2:QL:(i=t.match(UL))?a=(r.nocase?r.dot?ZL:qL:r.dot?HL:BL)(i[1]):(i=t.match(t2))?a=(r.nocase?r.dot?n2:r2:r.dot?i2:o2)(i):(i=t.match(GL))?a=r.dot?VL:KL:(i=t.match(YL))&&(a=XL);const s=Ps.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?u2:r.dot?l2:c2,a=new Set(r.nocase?["i"]:[]);let s=t.map(f=>{const v=f.map(m=>{if(m instanceof RegExp)for(const g of m.flags.split(""))a.add(g);return typeof m=="string"?g2(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?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].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 a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const f=s[c];let v=a;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=Ps;Et.Minimatch=Zs;Et.escape=WL;Et.unescape=wo;const Mo="/$shared",m2={"**/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 C0(e){const t=Object.entries(m2).find(([r])=>Et(e,r));return t==null?void 0:t[1]}function Gs(e){var i;const t=(i=C0(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 v2(){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){k0(r)&&Gs(`${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 a=C0(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new dL.Validator().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(k0(i)&&t){const a=y2(i,e);Ky.next({message:a,kind:"warning"}),Gs(r)}throw i})}function k0(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 y2(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 b2(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function w2(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const $0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Of.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function x2(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),$0()}}async function I0(e){return await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function S2(...e){return(await Promise.all(e.map(i=>I0({root:i,verb:bn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function E2(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 a=new Map;return{...i,components:Ve.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:f}=l.type;if(f==="WebformLoader"){const v=Bc.generate();a.set(s,v),s=v}return[s,l,c]}).reduce((s,[l,c,f])=>{var v;return c.nodes&&(c.nodes=c.nodes.map(m=>a.get(m)||m)),c.linkedNodes&&(c.linkedNodes=Ve.entries(c.linkedNodes).reduce((m,[g,p])=>({...m,[g]:a.get(p)||p}),{})),(v=c.props)!=null&&v.events&&(c.props.events=c.props.events.map(m=>(m.type==="navigation"&&m.loader&&(m.loader=a.get(m.loader)||m.loader),m))),{...s,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function _2(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)?qs(t.content):t.content}))}function O2(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 A2(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 T2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function P2(e){return(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function C2(...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 k2(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 $2(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function I2(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:a}=JSON.parse(i);return a}catch{return[]}}async function L2({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 M2(e={}){try{return{...await qo({path:"shared_datasources.json",...e}),...Rf}}catch{return{}}}async function F2(e={}){try{return await qo({path:"shared_app_events.json",...e})}catch{return[]}}async function D2(e={}){try{return await qo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function N2(e={}){try{return await qo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function j2(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function z2(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const W2=Tf(),U2=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ve.omit(e,Ve.keys(Rf))};return W2(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},B2=Tf(),H2=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return B2(()=>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:_f.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Af(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},q2=async e=>await $f({name:"crafted_components.json",path:hn.WEBFORMS,content:e});function Z2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function G2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function K2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function V2(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)?qs(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&&Gs(e.path),t})}function Y2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function X2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function J2(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 Q2(e){const t=X2(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=J2(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function eM(e,t){const i=e.split(".").pop();try{const a=await Me(ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=qs(a.content);const{params:s,result:l}=Q2(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var L0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(L0||{});function tM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function rM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var M0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(M0||{}),F0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(F0||{}),D0=(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))(D0||{}),N0=(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))(N0||{});const nM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},iM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=ot;exports.AppLoader=Xk;exports.BaseCheckboxIcon=ky;exports.Checkbox=x$;exports.ControlledSwitch=py;exports.DATASOURCE_THEMES=nM;exports.DatasourcesActions=Gy;exports.DebuggerActions=Xy;exports.DefaultCheckboxIcon=$y;exports.DesignerRequestVerb=bn;exports.Dialog=$A;exports.DialogBody=rv;exports.EActivity=L0;exports.EDITOR=iM;exports.EIDENTIFIERS=D0;exports.ERROR_CODES=N0;exports.EWebFormStyleClassScope=M0;exports.EXT_API_PREFIX=Ho;exports.FileFolderType=Ke;exports.FloatingTooltip=y$;exports.FolderRootPath=hn;exports.FolderRootType=_f;exports.HTTPError=kc;exports.HTTP_HANDLERS_TAB_PATH=t0;exports.IPreemptive=Lo;exports.IPublished=h0;exports.IPublishedRestScope=Pf;exports.IdentityProvider=z$;exports.Incase=us;exports.IndentLines=mv;exports.LOCALIZATION_TAB_PATH=r0;exports.LOCATION_DATASOURCE_ID=f0;exports.LogoSVG=Ty;exports.LspActions=Yy;exports.MAX_FILE_NAME_LENGTH=Sf;exports.MODEL_TAB_PATH=RI;exports.Modal=t$;exports.ModalCloseReason=pi;exports.ModalColor=zn;exports.ModalIcons=Ec;exports.ModalType=pf;exports.Mutex=n0;exports.NameError=Ef;exports.Overlay=tv;exports.PANEL_EXPANDED_HEIGHT=ds;exports.PANEL_INITIAL_HEIGHT=In;exports.Panel=w$;exports.Portal=Bm;exports.PublishOptions=rL;exports.QODLY_NAMESPACE=yo;exports.ROLES_TAB_PATH=Qy;exports.RemoteDebuggerMode=Of;exports.SETTINGS_TAB_PATH=e0;exports.SHARED_API_PREFIX=Mo;exports.SHARED_USER_NAMESPACE=Rf;exports.SourceCodeDescriptor=F0;exports.Switcher=vv;exports.TITLE_DATASOURCE_ID=p0;exports.TabEventsActions=Vy;exports.Tip=ty;exports.TipsProvider=oC;exports.Toast=jT;exports.Tooltip=Vk;exports.Tree=nR;exports.TreeIcon=dv;exports.TreeNode=Hc;exports.USER_LANGUAGE_DATASOURCE_ID=d0;exports.WebformActions=Zy;exports.WebformEventsActions=Io;exports.ZoomComponent=i$;exports.ZoomLevel=Py;exports._isArrayDatasource=XI;exports._isObjectDatasource=JI;exports.addAttributesToContent=iL;exports.addFolder=T2;exports.by=i0;exports.byId=MI;exports.byPath=FI;exports.callServerSideParser=uL;exports.checkUpdates=b2;exports.createFolder=Z2;exports.datasourcesSubject=yI;exports.debuggerSubject=SI;exports.dropFile=A2;exports.dropFolder=P2;exports.exists=DI;exports.extractWebformName=kI;exports.generateUUID=oL;exports.getAppSettings=x2;exports.getCatalog=$2;exports.getDatasourceId=jI;exports.getDefaultAppSettings=$0;exports.getFile=_2;exports.getFileContent=L2;exports.getFileExtentionFromType=CI;exports.getFilenameAndTypeFromPath=PI;exports.getFilenameFromType=$I;exports.getFilesInfo=C2;exports.getFolder=I0;exports.getFolders=S2;exports.getFunctionContent=eM;exports.getMonacoTheme=z2;exports.getNodeInfo=V2;exports.getSavedConditions=N2;exports.getSharedAppEvents=F2;exports.getSharedCSS=D2;exports.getSharedDatasources=M2;exports.getSharedResource=qo;exports.getSupportedLanguages=I2;exports.getTypeFromExtension=Af;exports.getUserPrivileges=j2;exports.getWebForm=E2;exports.hasAttributesString=m0;exports.http=Me;exports.i18nSubject=_I;exports.initializeDefaultProjectFiles=v2;exports.installUpdates=w2;exports.isArrayDatasource=u0;exports.isDataClassMethod=BI;exports.isDataStoreMethod=UI;exports.isDateDatasource=QI;exports.isEntity=VI;exports.isEntityDatasource=ZI;exports.isEntityMethod=HI;exports.isEntitySelection=YI;exports.isEntitySelectionDatasource=GI;exports.isEntitySelectionMethod=qI;exports.isObjectAttribute=zI;exports.isObjectDatasource=l0;exports.isRelatedAttribute=WI;exports.isRelatedEntitiesAttribute=a0;exports.isRelatedEntityAttribute=s0;exports.isScalarDatasource=c0;exports.isSimpleAttribute=o0;exports.isSimpleDatasource=KI;exports.loadDS=eL;exports.loadI18n=tL;exports.localeCompare=NI;exports.log=tM;exports.login=k2;exports.lspSubject=xI;exports.moveItem=K2;exports.outBy=II;exports.outById=LI;exports.parseAttributes=nL;exports.queue=Tf;exports.removeAttributesString=v0;exports.removeItem=G2;exports.renameFile=O2;exports.renameFolder=R2;exports.sanitizeContent=qs;exports.sanitizeNameCY=aL;exports.saveContent=Y2;exports.setCraftedComponents=q2;exports.setFileContent=$f;exports.setSharedAppEvents=H2;exports.setSharedSources=U2;exports.stringifyAttributes=g0;exports.tabEventsSubject=wI;exports.tasksManagerSubject=EI;exports.toastSubject=Ky;exports.trackEvent=rM;exports.transformDates=sL;exports.tryCreateSharedResource=Gs;exports.useDidMountEffect=S$;exports.useDoubleClick=H$;exports.useEnhancedState=oI;exports.useFeatureFlags=j$;exports.useForwardedRef=N$;exports.useHotkeys=L$;exports.useIdentity=W$;exports.useOutsideClick=M$;exports.usePrevious=F$;exports.useStateObject=U$;exports.useStateRef=D$;exports.useTip=ey;exports.validateName=Jy;exports.validateServerSide=OI;exports.validateValue=AI;exports.webformEventsSubject=Ts;exports.webformSubject=bI;
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 C0(this.pattern,this.options)}parse(t){Ps(t);const r=this.options;if(t==="**")return nr;if(t==="")return"";let i,a=null;(i=t.match(e2))?a=r.dot?r2:t2:(i=t.match(HL))?a=(r.nocase?r.dot?KL:GL:r.dot?ZL:qL)(i[1]):(i=t.match(n2))?a=(r.nocase?r.dot?o2:i2:r.dot?a2:s2)(i):(i=t.match(VL))?a=r.dot?XL:YL:(i=t.match(JL))&&(a=QL);const s=Cs.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?c2:r.dot?f2:d2,a=new Set(r.nocase?["i"]:[]);let s=t.map(f=>{const v=f.map(m=>{if(m instanceof RegExp)for(const g of m.flags.split(""))a.add(g);return typeof m=="string"?v2(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?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].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 a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const f=s[c];let v=a;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=Cs;Et.Minimatch=Gs;Et.escape=BL;Et.unescape=wo;const Mo="/$shared",y2={"**/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 k0(e){const t=Object.entries(y2).find(([r])=>Et(e,r));return t==null?void 0:t[1]}function Ks(e){var i;const t=(i=k0(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 b2(){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){$0(r)&&Ks(`${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 a=k0(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new hL.Validator().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if($0(i)&&t){const a=w2(i,e);Ky.next({message:a,kind:"warning"}),Ks(r)}throw i})}function $0(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 w2(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 x2(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function S2(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const I0=()=>{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 E2(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),I0()}}async function L0(e){return await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function _2(...e){return(await Promise.all(e.map(i=>L0({root:i,verb:bn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function O2(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 a=new Map;return{...i,components:Ve.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:f}=l.type;if(f==="WebformLoader"){const v=Hc.generate();a.set(s,v),s=v}return[s,l,c]}).reduce((s,[l,c,f])=>{var v;return c.nodes&&(c.nodes=c.nodes.map(m=>a.get(m)||m)),c.linkedNodes&&(c.linkedNodes=Ve.entries(c.linkedNodes).reduce((m,[g,p])=>({...m,[g]:a.get(p)||p}),{})),(v=c.props)!=null&&v.events&&(c.props.events=c.props.events.map(m=>(m.type==="navigation"&&m.loader&&(m.loader=a.get(m.loader)||m.loader),m))),{...s,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function A2(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)?Zs(t.content):t.content}))}function T2(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 R2(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 P2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function C2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function k2(e){return(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function $2(...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 I2(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 L2(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function M2(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:a}=JSON.parse(i);return a}catch{return[]}}async function F2({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 D2(e={}){try{return{...await qo({path:"shared_datasources.json",...e}),...Rs}}catch{return{...Rs}}}async function N2(e={}){try{return await qo({path:"shared_app_events.json",...e})}catch{return[]}}async function j2(e={}){try{return await qo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function z2(e={}){try{return await qo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function W2(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function U2(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const B2=Rf(),H2=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ve.omit(e,Ve.keys(Rs))};return B2(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},q2=Rf(),Z2=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return q2(()=>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}},G2=async e=>await $f({name:"crafted_components.json",path:hn.WEBFORMS,content:e});function K2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function V2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Y2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function X2(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)?Zs(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&&Ks(e.path),t})}function J2(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Q2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function eM(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 tM(e){const t=Q2(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=eM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function rM(e,t){const i=e.split(".").pop();try{const a=await Me(ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=Zs(a.content);const{params:s,result:l}=tM(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var M0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(M0||{});function nM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function iM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var F0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(F0||{}),D0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(D0||{}),N0=(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))(N0||{}),j0=(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))(j0||{});const oM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},aM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=ot;exports.AppLoader=Jk;exports.BaseCheckboxIcon=ky;exports.Checkbox=S$;exports.ControlledSwitch=py;exports.DATASOURCE_THEMES=oM;exports.DatasourcesActions=Gy;exports.DebuggerActions=Xy;exports.DefaultCheckboxIcon=$y;exports.DesignerRequestVerb=bn;exports.Dialog=IA;exports.DialogBody=rv;exports.EActivity=M0;exports.EDITOR=aM;exports.EIDENTIFIERS=N0;exports.ERROR_CODES=j0;exports.EWebFormStyleClassScope=F0;exports.EXT_API_PREFIX=Ho;exports.FileFolderType=Ke;exports.FloatingTooltip=b$;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=W$;exports.Incase=us;exports.IndentLines=mv;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=PI;exports.Modal=r$;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=ds;exports.PANEL_INITIAL_HEIGHT=In;exports.Panel=x$;exports.Portal=Bm;exports.PublishOptions=iL;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=Rs;exports.SourceCodeDescriptor=D0;exports.Switcher=vv;exports.TITLE_DATASOURCE_ID=h0;exports.TabEventsActions=Vy;exports.Tip=ty;exports.TipsProvider=aC;exports.Toast=zT;exports.Tooltip=Yk;exports.Tree=iR;exports.TreeIcon=dv;exports.TreeNode=qc;exports.USER_LANGUAGE_DATASOURCE_ID=p0;exports.WebformActions=Zy;exports.WebformEventsActions=Io;exports.ZoomComponent=o$;exports.ZoomLevel=Py;exports._isArrayDatasource=JI;exports._isObjectDatasource=QI;exports.addAttributesToContent=aL;exports.addFolder=P2;exports.by=i0;exports.byId=FI;exports.byPath=DI;exports.callServerSideParser=cL;exports.checkUpdates=x2;exports.createFolder=K2;exports.datasourcesSubject=bI;exports.debuggerSubject=EI;exports.dropFile=R2;exports.dropFolder=k2;exports.exists=NI;exports.extractWebformName=$I;exports.generateUUID=sL;exports.getAppSettings=E2;exports.getCatalog=L2;exports.getDatasourceId=jI;exports.getDefaultAppSettings=I0;exports.getFile=A2;exports.getFileContent=F2;exports.getFileExtentionFromType=kI;exports.getFilenameAndTypeFromPath=CI;exports.getFilenameFromType=II;exports.getFilesInfo=$2;exports.getFolder=L0;exports.getFolders=_2;exports.getFunctionContent=rM;exports.getMonacoTheme=U2;exports.getNodeInfo=X2;exports.getSavedConditions=z2;exports.getSharedAppEvents=N2;exports.getSharedCSS=j2;exports.getSharedDatasources=D2;exports.getSharedResource=qo;exports.getSupportedLanguages=M2;exports.getTypeFromExtension=Tf;exports.getUserPrivileges=W2;exports.getWebForm=O2;exports.hasAttributesString=v0;exports.http=Me;exports.i18nSubject=OI;exports.initializeDefaultProjectFiles=b2;exports.installUpdates=S2;exports.isArrayDatasource=l0;exports.isDataClassMethod=HI;exports.isDataStoreMethod=BI;exports.isDateDatasource=eL;exports.isEntity=YI;exports.isEntityDatasource=GI;exports.isEntityMethod=qI;exports.isEntitySelection=XI;exports.isEntitySelectionDatasource=KI;exports.isEntitySelectionMethod=ZI;exports.isObjectAttribute=WI;exports.isObjectDatasource=c0;exports.isRelatedAttribute=UI;exports.isRelatedEntitiesAttribute=s0;exports.isRelatedEntityAttribute=u0;exports.isSameNamespace=tL;exports.isScalarDatasource=f0;exports.isSimpleAttribute=a0;exports.isSimpleDatasource=VI;exports.loadDS=rL;exports.loadI18n=nL;exports.localeCompare=o0;exports.log=nM;exports.login=I2;exports.lspSubject=SI;exports.moveItem=Y2;exports.outBy=LI;exports.outById=MI;exports.parseAttributes=oL;exports.queue=Rf;exports.removeAttributesString=y0;exports.removeItem=V2;exports.renameFile=T2;exports.renameFolder=C2;exports.sanitizeContent=Zs;exports.sanitizeNameCY=uL;exports.saveContent=J2;exports.setCraftedComponents=G2;exports.setFileContent=$f;exports.setSharedAppEvents=Z2;exports.setSharedSources=H2;exports.splitDatasourceID=zI;exports.stringifyAttributes=m0;exports.tabEventsSubject=xI;exports.tasksManagerSubject=_I;exports.toastSubject=Ky;exports.trackEvent=iM;exports.transformDates=lL;exports.tryCreateSharedResource=Ks;exports.useDidMountEffect=E$;exports.useDoubleClick=q$;exports.useEnhancedState=aI;exports.useFeatureFlags=z$;exports.useForwardedRef=j$;exports.useHotkeys=M$;exports.useIdentity=U$;exports.useOutsideClick=F$;exports.usePrevious=D$;exports.useStateObject=B$;exports.useStateRef=N$;exports.useTip=ey;exports.validateName=Jy;exports.validateServerSide=AI;exports.validateValue=TI;exports.webformEventsSubject=Ts;exports.webformSubject=wI;
208
208
  //# sourceMappingURL=index.cjs.js.map