@ws-ui/shared 1.1.0 → 1.1.1

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,20 +1,20 @@
1
- "use strict";var Sx=Object.defineProperty;var Ep=e=>{throw TypeError(e)};var Ex=(e,t,r)=>t in e?Sx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var it=(e,t,r)=>Ex(e,typeof t!="symbol"?t+"":t,r),qu=(e,t,r)=>t.has(e)||Ep("Cannot "+r);var Z=(e,t,r)=>(qu(e,t,"read from private field"),r?r.call(e):t.get(e)),Nt=(e,t,r)=>t.has(e)?Ep("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Je=(e,t,r,i)=>(qu(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),fn=(e,t,r)=>(qu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),D=require("react"),ho=require("react-dom"),vt=require("@ws-ui/icons"),Ml=require("@emotion/react");function Jh(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 T=Jh(D),xx=Jh(ho),Qh=({children:e})=>ho.createPortal(e,document.querySelector("body"));var xp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},_p=typeof window<"u"&&window.document&&window.document.createElement?T.useLayoutEffect:T.useEffect,jt="top",fr="bottom",cr="right",Wt="left",af="auto",vo=[jt,fr,cr,Wt],bi="start",ro="end",_x="clippingParents",ev="viewport",Bi="popper",Ox="reference",Op=vo.reduce(function(e,t){return e.concat([t+"-"+bi,t+"-"+ro])},[]),tv=[].concat(vo,[af]).reduce(function(e,t){return e.concat([t,t+"-"+bi,t+"-"+ro])},[]),Ax="beforeRead",Tx="read",Cx="afterRead",Px="beforeMain",Rx="main",Ix="afterMain",Mx="beforeWrite",Fx="write",Lx="afterWrite",$x=[Ax,Tx,Cx,Px,Rx,Ix,Mx,Fx,Lx];function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qn(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sf(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dx(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];!lr(s)||!Rr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var f=a[l];f===!1?s.removeAttribute(l):s.setAttribute(l,f===!0?"":f)}))})}function kx(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]),f=l.reduce(function(d,p){return d[p]="",d},{});!lr(a)||!Rr(a)||(Object.assign(a.style,f),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const Nx={name:"applyStyles",enabled:!0,phase:"write",fn:Dx,effect:kx,requires:["computeStyles"]};function Pr(e){return e.split("-")[0]}var Un=Math.max,Za=Math.min,Si=Math.round;function Fl(){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 rv(){return!/^((?!chrome|android).)*safari/i.test(Fl())}function Ei(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&lr(e)&&(a=e.offsetWidth>0&&Si(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Si(i.height)/e.offsetHeight||1);var l=qn(e)?Vt(e):window,f=l.visualViewport,d=!rv()&&r,p=(i.left+(d&&f?f.offsetLeft:0))/a,h=(i.top+(d&&f?f.offsetTop:0))/s,S=i.width/a,v=i.height/s;return{width:S,height:v,top:h,right:p+S,bottom:h+v,left:p,x:p,y:h}}function uf(e){var t=Ei(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 nv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sf(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Vr(e){return Vt(e).getComputedStyle(e)}function jx(e){return["table","td","th"].indexOf(Rr(e))>=0}function Sn(e){return((qn(e)?e.ownerDocument:e.document)||window.document).documentElement}function is(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(sf(e)?e.host:null)||Sn(e)}function Ap(e){return!lr(e)||Vr(e).position==="fixed"?null:e.offsetParent}function Wx(e){var t=/firefox/i.test(Fl()),r=/Trident/i.test(Fl());if(r&&lr(e)){var i=Vr(e);if(i.position==="fixed")return null}var a=is(e);for(sf(a)&&(a=a.host);lr(a)&&["html","body"].indexOf(Rr(a))<0;){var s=Vr(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 mo(e){for(var t=Vt(e),r=Ap(e);r&&jx(r)&&Vr(r).position==="static";)r=Ap(r);return r&&(Rr(r)==="html"||Rr(r)==="body"&&Vr(r).position==="static")?t:r||Wx(e)||t}function lf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xi(e,t,r){return Un(e,Za(t,r))}function zx(e,t,r){var i=Xi(e,t,r);return i>r?r:i}function iv(){return{top:0,right:0,bottom:0,left:0}}function ov(e){return Object.assign({},iv(),e)}function av(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Ux=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ov(typeof t!="number"?t:av(t,vo))};function Bx(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,f=Pr(r.placement),d=lf(f),p=[Wt,cr].indexOf(f)>=0,h=p?"height":"width";if(!(!s||!l)){var S=Ux(a.padding,r),v=uf(s),w=d==="y"?jt:Wt,x=d==="y"?fr:cr,y=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],E=l[d]-r.rects.reference[d],P=mo(s),C=P?d==="y"?P.clientHeight||0:P.clientWidth||0:0,I=y/2-E/2,F=S[w],O=C-v[h]-S[x],L=C/2-v[h]/2+I,U=Xi(F,L,O),z=d;r.modifiersData[i]=(t={},t[z]=U,t.centerOffset=U-L,t)}}function Hx(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)||nv(t.elements.popper,a)&&(t.elements.arrow=a))}const qx={name:"arrow",enabled:!0,phase:"main",fn:Bx,effect:Hx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xi(e){return e.split("-")[1]}var Zx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gx(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Si(r*a)/a||0,y:Si(i*a)/a||0}}function Tp(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,S=e.isFixed,v=l.x,w=v===void 0?0:v,x=l.y,y=x===void 0?0:x,E=typeof h=="function"?h({x:w,y}):{x:w,y};w=E.x,y=E.y;var P=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),I=Wt,F=jt,O=window;if(p){var L=mo(r),U="clientHeight",z="clientWidth";if(L===Vt(r)&&(L=Sn(r),Vr(L).position!=="static"&&f==="absolute"&&(U="scrollHeight",z="scrollWidth")),L=L,a===jt||(a===Wt||a===cr)&&s===ro){F=fr;var q=S&&L===O&&O.visualViewport?O.visualViewport.height:L[U];y-=q-i.height,y*=d?1:-1}if(a===Wt||(a===jt||a===fr)&&s===ro){I=cr;var V=S&&L===O&&O.visualViewport?O.visualViewport.width:L[z];w-=V-i.width,w*=d?1:-1}}var ee=Object.assign({position:f},p&&Zx),be=h===!0?Gx({x:w,y},Vt(r)):{x:w,y};if(w=be.x,y=be.y,d){var pe;return Object.assign({},ee,(pe={},pe[F]=C?"0":"",pe[I]=P?"0":"",pe.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",pe))}return Object.assign({},ee,(t={},t[F]=C?y+"px":"",t[I]=P?w+"px":"",t.transform="",t))}function Kx(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,f=r.roundOffsets,d=f===void 0?!0:f,p={placement:Pr(t.placement),variation:xi(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,Tp(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tp(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Yx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kx,data:{}};var wa={passive:!0};function Vx(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,f=l===void 0?!0:l,d=Vt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,wa)}),f&&d.addEventListener("resize",r.update,wa),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,wa)}),f&&d.removeEventListener("resize",r.update,wa)}}const Xx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vx,data:{}};var Jx={left:"right",right:"left",bottom:"top",top:"bottom"};function ka(e){return e.replace(/left|right|bottom|top/g,function(t){return Jx[t]})}var Qx={start:"end",end:"start"};function Cp(e){return e.replace(/start|end/g,function(t){return Qx[t]})}function ff(e){var t=Vt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function cf(e){return Ei(Sn(e)).left+ff(e).scrollLeft}function e_(e,t){var r=Vt(e),i=Sn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,f=0,d=0;if(a){s=a.width,l=a.height;var p=rv();(p||!p&&t==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:f+cf(e),y:d}}function t_(e){var t,r=Sn(e),i=ff(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Un(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Un(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-i.scrollLeft+cf(e),d=-i.scrollTop;return Vr(a||r).direction==="rtl"&&(f+=Un(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:f,y:d}}function df(e){var t=Vr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function sv(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:lr(e)&&df(e)?e:sv(is(e))}function Ji(e,t){var r;t===void 0&&(t=[]);var i=sv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Vt(i),l=a?[s].concat(s.visualViewport||[],df(i)?i:[]):i,f=t.concat(l);return a?f:f.concat(Ji(is(l)))}function Ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r_(e,t){var r=Ei(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 Pp(e,t,r){return t===ev?Ll(e_(e,r)):qn(t)?r_(t,r):Ll(t_(Sn(e)))}function n_(e){var t=Ji(is(e)),r=["absolute","fixed"].indexOf(Vr(e).position)>=0,i=r&&lr(e)?mo(e):e;return qn(i)?t.filter(function(a){return qn(a)&&nv(a,i)&&Rr(a)!=="body"}):[]}function i_(e,t,r,i){var a=t==="clippingParents"?n_(e):[].concat(t),s=[].concat(a,[r]),l=s[0],f=s.reduce(function(d,p){var h=Pp(e,p,i);return d.top=Un(h.top,d.top),d.right=Za(h.right,d.right),d.bottom=Za(h.bottom,d.bottom),d.left=Un(h.left,d.left),d},Pp(e,l,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function uv(e){var t=e.reference,r=e.element,i=e.placement,a=i?Pr(i):null,s=i?xi(i):null,l=t.x+t.width/2-r.width/2,f=t.y+t.height/2-r.height/2,d;switch(a){case jt:d={x:l,y:t.y-r.height};break;case fr:d={x:l,y:t.y+t.height};break;case cr:d={x:t.x+t.width,y:f};break;case Wt:d={x:t.x-r.width,y:f};break;default:d={x:t.x,y:t.y}}var p=a?lf(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case bi:d[p]=d[p]-(t[h]/2-r[h]/2);break;case ro:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function no(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,f=r.boundary,d=f===void 0?_x:f,p=r.rootBoundary,h=p===void 0?ev:p,S=r.elementContext,v=S===void 0?Bi:S,w=r.altBoundary,x=w===void 0?!1:w,y=r.padding,E=y===void 0?0:y,P=ov(typeof E!="number"?E:av(E,vo)),C=v===Bi?Ox:Bi,I=e.rects.popper,F=e.elements[x?C:v],O=i_(qn(F)?F:F.contextElement||Sn(e.elements.popper),d,h,l),L=Ei(e.elements.reference),U=uv({reference:L,element:I,placement:a}),z=Ll(Object.assign({},I,U)),q=v===Bi?z:L,V={top:O.top-q.top+P.top,bottom:q.bottom-O.bottom+P.bottom,left:O.left-q.left+P.left,right:q.right-O.right+P.right},ee=e.modifiersData.offset;if(v===Bi&&ee){var be=ee[a];Object.keys(V).forEach(function(pe){var Ae=[cr,fr].indexOf(pe)>=0?1:-1,Ne=[jt,fr].indexOf(pe)>=0?"y":"x";V[pe]+=be[Ne]*Ae})}return V}function o_(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,f=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?tv:d,h=xi(i),S=h?f?Op:Op.filter(function(x){return xi(x)===h}):vo,v=S.filter(function(x){return p.indexOf(x)>=0});v.length===0&&(v=S);var w=v.reduce(function(x,y){return x[y]=no(e,{placement:y,boundary:a,rootBoundary:s,padding:l})[Pr(y)],x},{});return Object.keys(w).sort(function(x,y){return w[x]-w[y]})}function a_(e){if(Pr(e)===af)return[];var t=ka(e);return[Cp(e),t,Cp(t)]}function s_(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,f=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,S=r.rootBoundary,v=r.altBoundary,w=r.flipVariations,x=w===void 0?!0:w,y=r.allowedAutoPlacements,E=t.options.placement,P=Pr(E),C=P===E,I=d||(C||!x?[ka(E)]:a_(E)),F=[E].concat(I).reduce(function(Q,ae){return Q.concat(Pr(ae)===af?o_(t,{placement:ae,boundary:h,rootBoundary:S,padding:p,flipVariations:x,allowedAutoPlacements:y}):ae)},[]),O=t.rects.reference,L=t.rects.popper,U=new Map,z=!0,q=F[0],V=0;V<F.length;V++){var ee=F[V],be=Pr(ee),pe=xi(ee)===bi,Ae=[jt,fr].indexOf(be)>=0,Ne=Ae?"width":"height",ve=no(t,{placement:ee,boundary:h,rootBoundary:S,altBoundary:v,padding:p}),Te=Ae?pe?cr:Wt:pe?fr:jt;O[Ne]>L[Ne]&&(Te=ka(Te));var Ge=ka(Te),Ct=[];if(s&&Ct.push(ve[be]<=0),f&&Ct.push(ve[Te]<=0,ve[Ge]<=0),Ct.every(function(Q){return Q})){q=ee,z=!1;break}U.set(ee,Ct)}if(z)for(var H=x?3:1,G=function(ae){var se=F.find(function(ce){var ue=U.get(ce);if(ue)return ue.slice(0,ae).every(function(ge){return ge})});if(se)return q=se,"break"},re=H;re>0;re--){var le=G(re);if(le==="break")break}t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}}const u_={name:"flip",enabled:!0,phase:"main",fn:s_,requiresIfExists:["offset"],data:{_skip:!1}};function Rp(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 Ip(e){return[jt,cr,fr,Wt].some(function(t){return e[t]>=0})}function l_(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),f=no(t,{altBoundary:!0}),d=Rp(l,i),p=Rp(f,a,s),h=Ip(d),S=Ip(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:S},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":S})}const f_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:l_};function c_(e,t,r){var i=Pr(e),a=[Wt,jt].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],f=s[1];return l=l||0,f=(f||0)*a,[Wt,cr].indexOf(i)>=0?{x:f,y:l}:{x:l,y:f}}function d_(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=tv.reduce(function(h,S){return h[S]=c_(S,t.rects,s),h},{}),f=l[t.placement],d=f.x,p=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const p_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:d_};function h_(e){var t=e.state,r=e.name;t.modifiersData[r]=uv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const v_={name:"popperOffsets",enabled:!0,phase:"read",fn:h_,data:{}};function m_(e){return e==="x"?"y":"x"}function g_(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,S=r.padding,v=r.tether,w=v===void 0?!0:v,x=r.tetherOffset,y=x===void 0?0:x,E=no(t,{boundary:d,rootBoundary:p,padding:S,altBoundary:h}),P=Pr(t.placement),C=xi(t.placement),I=!C,F=lf(P),O=m_(F),L=t.modifiersData.popperOffsets,U=t.rects.reference,z=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,V=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),ee=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,be={x:0,y:0};if(L){if(s){var pe,Ae=F==="y"?jt:Wt,Ne=F==="y"?fr:cr,ve=F==="y"?"height":"width",Te=L[F],Ge=Te+E[Ae],Ct=Te-E[Ne],H=w?-z[ve]/2:0,G=C===bi?U[ve]:z[ve],re=C===bi?-z[ve]:-U[ve],le=t.elements.arrow,Q=w&&le?uf(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iv(),se=ae[Ae],ce=ae[Ne],ue=Xi(0,U[ve],Q[ve]),ge=I?U[ve]/2-H-ue-se-V.mainAxis:G-ue-se-V.mainAxis,xe=I?-U[ve]/2+H+ue+ce+V.mainAxis:re+ue+ce+V.mainAxis,He=t.elements.arrow&&mo(t.elements.arrow),K=He?F==="y"?He.clientTop||0:He.clientLeft||0:0,gt=(pe=ee==null?void 0:ee[F])!=null?pe:0,st=Te+ge-gt-K,br=Te+xe-gt,Co=Xi(w?Za(Ge,st):Ge,Te,w?Un(Ct,br):Ct);L[F]=Co,be[F]=Co-Te}if(f){var Xt,Po=F==="x"?jt:Wt,xs=F==="x"?fr:cr,zt=L[O],yt=O==="y"?"height":"width",Xr=zt+E[Po],_n=zt-E[xs],Ti=[jt,Wt].indexOf(P)!==-1,Jr=(Xt=ee==null?void 0:ee[O])!=null?Xt:0,Ro=Ti?Xr:zt-U[yt]-z[yt]-Jr+V.altAxis,Qr=Ti?zt+U[yt]+z[yt]-Jr-V.altAxis:_n,Lr=w&&Ti?zx(Ro,zt,Qr):Xi(w?Ro:Xr,zt,w?Qr:_n);L[O]=Lr,be[O]=Lr-zt}t.modifiersData[i]=be}}const y_={name:"preventOverflow",enabled:!0,phase:"main",fn:g_,requiresIfExists:["offset"]};function w_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function b_(e){return e===Vt(e)||!lr(e)?ff(e):w_(e)}function S_(e){var t=e.getBoundingClientRect(),r=Si(t.width)/e.offsetWidth||1,i=Si(t.height)/e.offsetHeight||1;return r!==1||i!==1}function E_(e,t,r){r===void 0&&(r=!1);var i=lr(t),a=lr(t)&&S_(t),s=Sn(t),l=Ei(e,a,r),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((Rr(t)!=="body"||df(s))&&(f=b_(t)),lr(t)?(d=Ei(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=cf(s))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function x_(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(f){if(!r.has(f)){var d=t.get(f);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function __(e){var t=x_(e);return $x.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function O_(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 Mp={placement:"bottom",modifiers:[],strategy:"absolute"};function Fp(){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 T_(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?Mp:a;return function(f,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mp,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},S=[],v=!1,w={state:h,setOptions:function(P){var C=typeof P=="function"?P(h.options):P;y(),h.options=Object.assign({},s,h.options,C),h.scrollParents={reference:qn(f)?Ji(f):f.contextElement?Ji(f.contextElement):[],popper:Ji(d)};var I=__(A_([].concat(i,h.options.modifiers)));return h.orderedModifiers=I.filter(function(F){return F.enabled}),x(),w.update()},forceUpdate:function(){if(!v){var P=h.elements,C=P.reference,I=P.popper;if(Fp(C,I)){h.rects={reference:E_(C,mo(I),h.options.strategy==="fixed"),popper:uf(I)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(V){return h.modifiersData[V.name]=Object.assign({},V.data)});for(var F=0;F<h.orderedModifiers.length;F++){if(h.reset===!0){h.reset=!1,F=-1;continue}var O=h.orderedModifiers[F],L=O.fn,U=O.options,z=U===void 0?{}:U,q=O.name;typeof L=="function"&&(h=L({state:h,options:z,name:q,instance:w})||h)}}}},update:O_(function(){return new Promise(function(E){w.forceUpdate(),E(h)})}),destroy:function(){y(),v=!0}};if(!Fp(f,d))return w;w.setOptions(p).then(function(E){!v&&p.onFirstUpdate&&p.onFirstUpdate(E)});function x(){h.orderedModifiers.forEach(function(E){var P=E.name,C=E.options,I=C===void 0?{}:C,F=E.effect;if(typeof F=="function"){var O=F({state:h,name:P,instance:w,options:I}),L=function(){};S.push(O||L)}})}function y(){S.forEach(function(E){return E()}),S=[]}return w}}var C_=[Xx,v_,Yx,Nx,p_,u_,y_,qx,f_],P_=T_({defaultModifiers:C_}),kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function R_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var I_=typeof Element<"u",M_=typeof Map=="function",F_=typeof Set=="function",L_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Na(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Na(e[i],t[i]))return!1;return!0}var s;if(M_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!Na(i.value[1],t.get(i.value[0])))return!1;return!0}if(F_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(L_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(I_&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!Na(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var $_=function(t,r){try{return Na(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const D_=pf($_);var k_=[],lv=function(t,r,i){i===void 0&&(i={});var a=T.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||k_},l=T.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],d=l[1],p=T.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var x=w.state,y=Object.keys(x.elements);xx.flushSync(function(){d({styles:xp(y.map(function(E){return[E,x.styles[E]||{}]})),attributes:xp(y.map(function(E){return[E,x.attributes[E]]}))})})},requires:["computeStyles"]}},[]),h=T.useMemo(function(){var v={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return D_(a.current,v)?a.current||v:(a.current=v,v)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),S=T.useRef();return _p(function(){S.current&&S.current.setOptions(h)},[h]),_p(function(){if(!(t==null||r==null)){var v=i.createPopper||P_,w=v(t,r,h);return S.current=w,function(){w.destroy(),S.current=null}}},[t,r,i.createPopper]),{state:S.current?S.current.state:null,styles:f.styles,attributes:f.attributes,update:S.current?S.current.update:null,forceUpdate:S.current?S.current.forceUpdate:null}};const fv=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),cv=D.forwardRef(({children:e,style:t,attributes:r},i)=>$.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),N_=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=D.useState(null),{styles:f,attributes:d}=lv(e,s,{placement:t||"bottom-start"}),p=D.useCallback(()=>{a&&a()},[a]);return r?$.jsxs(Qh,{children:[$.jsx(fv,{onClick:()=>p()}),$.jsx(cv,{ref:l,style:f.popper,attributes:d.popper,children:i})]}):null};var dv={exports:{}};/*!
1
+ "use strict";var Ex=Object.defineProperty;var Ep=e=>{throw TypeError(e)};var xx=(e,t,r)=>t in e?Ex(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var it=(e,t,r)=>xx(e,typeof t!="symbol"?t+"":t,r),qu=(e,t,r)=>t.has(e)||Ep("Cannot "+r);var Z=(e,t,r)=>(qu(e,t,"read from private field"),r?r.call(e):t.get(e)),Nt=(e,t,r)=>t.has(e)?Ep("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Je=(e,t,r,i)=>(qu(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),fn=(e,t,r)=>(qu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),D=require("react"),ho=require("react-dom"),mt=require("@ws-ui/icons"),Ml=require("@emotion/react");function Jh(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 C=Jh(D),_x=Jh(ho),Qh=({children:e})=>ho.createPortal(e,document.querySelector("body"));var xp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},_p=typeof window<"u"&&window.document&&window.document.createElement?C.useLayoutEffect:C.useEffect,jt="top",fr="bottom",cr="right",Wt="left",af="auto",vo=[jt,fr,cr,Wt],bi="start",ro="end",Ox="clippingParents",ev="viewport",Bi="popper",Ax="reference",Op=vo.reduce(function(e,t){return e.concat([t+"-"+bi,t+"-"+ro])},[]),tv=[].concat(vo,[af]).reduce(function(e,t){return e.concat([t,t+"-"+bi,t+"-"+ro])},[]),Tx="beforeRead",Cx="read",Px="afterRead",Rx="beforeMain",Ix="main",Mx="afterMain",Fx="beforeWrite",Lx="write",$x="afterWrite",Dx=[Tx,Cx,Px,Rx,Ix,Mx,Fx,Lx,$x];function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qn(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sf(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kx(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];!lr(s)||!Rr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var f=a[l];f===!1?s.removeAttribute(l):s.setAttribute(l,f===!0?"":f)}))})}function Nx(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]),f=l.reduce(function(d,p){return d[p]="",d},{});!lr(a)||!Rr(a)||(Object.assign(a.style,f),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const jx={name:"applyStyles",enabled:!0,phase:"write",fn:kx,effect:Nx,requires:["computeStyles"]};function Pr(e){return e.split("-")[0]}var Un=Math.max,Za=Math.min,Si=Math.round;function Fl(){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 rv(){return!/^((?!chrome|android).)*safari/i.test(Fl())}function Ei(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&lr(e)&&(a=e.offsetWidth>0&&Si(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Si(i.height)/e.offsetHeight||1);var l=qn(e)?Vt(e):window,f=l.visualViewport,d=!rv()&&r,p=(i.left+(d&&f?f.offsetLeft:0))/a,h=(i.top+(d&&f?f.offsetTop:0))/s,b=i.width/a,v=i.height/s;return{width:b,height:v,top:h,right:p+b,bottom:h+v,left:p,x:p,y:h}}function uf(e){var t=Ei(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 nv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sf(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Vr(e){return Vt(e).getComputedStyle(e)}function Wx(e){return["table","td","th"].indexOf(Rr(e))>=0}function Sn(e){return((qn(e)?e.ownerDocument:e.document)||window.document).documentElement}function is(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(sf(e)?e.host:null)||Sn(e)}function Ap(e){return!lr(e)||Vr(e).position==="fixed"?null:e.offsetParent}function zx(e){var t=/firefox/i.test(Fl()),r=/Trident/i.test(Fl());if(r&&lr(e)){var i=Vr(e);if(i.position==="fixed")return null}var a=is(e);for(sf(a)&&(a=a.host);lr(a)&&["html","body"].indexOf(Rr(a))<0;){var s=Vr(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 mo(e){for(var t=Vt(e),r=Ap(e);r&&Wx(r)&&Vr(r).position==="static";)r=Ap(r);return r&&(Rr(r)==="html"||Rr(r)==="body"&&Vr(r).position==="static")?t:r||zx(e)||t}function lf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xi(e,t,r){return Un(e,Za(t,r))}function Ux(e,t,r){var i=Xi(e,t,r);return i>r?r:i}function iv(){return{top:0,right:0,bottom:0,left:0}}function ov(e){return Object.assign({},iv(),e)}function av(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Bx=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ov(typeof t!="number"?t:av(t,vo))};function Hx(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,f=Pr(r.placement),d=lf(f),p=[Wt,cr].indexOf(f)>=0,h=p?"height":"width";if(!(!s||!l)){var b=Bx(a.padding,r),v=uf(s),w=d==="y"?jt:Wt,E=d==="y"?fr:cr,y=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],x=l[d]-r.rects.reference[d],A=mo(s),I=A?d==="y"?A.clientHeight||0:A.clientWidth||0:0,P=y/2-x/2,F=b[w],O=I-v[h]-b[E],L=I/2-v[h]/2+P,U=Xi(F,L,O),z=d;r.modifiersData[i]=(t={},t[z]=U,t.centerOffset=U-L,t)}}function qx(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)||nv(t.elements.popper,a)&&(t.elements.arrow=a))}const Zx={name:"arrow",enabled:!0,phase:"main",fn:Hx,effect:qx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xi(e){return e.split("-")[1]}var Gx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kx(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Si(r*a)/a||0,y:Si(i*a)/a||0}}function Tp(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,b=e.isFixed,v=l.x,w=v===void 0?0:v,E=l.y,y=E===void 0?0:E,x=typeof h=="function"?h({x:w,y}):{x:w,y};w=x.x,y=x.y;var A=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),P=Wt,F=jt,O=window;if(p){var L=mo(r),U="clientHeight",z="clientWidth";if(L===Vt(r)&&(L=Sn(r),Vr(L).position!=="static"&&f==="absolute"&&(U="scrollHeight",z="scrollWidth")),L=L,a===jt||(a===Wt||a===cr)&&s===ro){F=fr;var q=b&&L===O&&O.visualViewport?O.visualViewport.height:L[U];y-=q-i.height,y*=d?1:-1}if(a===Wt||(a===jt||a===fr)&&s===ro){P=cr;var V=b&&L===O&&O.visualViewport?O.visualViewport.width:L[z];w-=V-i.width,w*=d?1:-1}}var ee=Object.assign({position:f},p&&Gx),be=h===!0?Kx({x:w,y},Vt(r)):{x:w,y};if(w=be.x,y=be.y,d){var pe;return Object.assign({},ee,(pe={},pe[F]=I?"0":"",pe[P]=A?"0":"",pe.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",pe))}return Object.assign({},ee,(t={},t[F]=I?y+"px":"",t[P]=A?w+"px":"",t.transform="",t))}function Yx(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,f=r.roundOffsets,d=f===void 0?!0:f,p={placement:Pr(t.placement),variation:xi(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,Tp(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tp(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yx,data:{}};var wa={passive:!0};function Xx(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,f=l===void 0?!0:l,d=Vt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,wa)}),f&&d.addEventListener("resize",r.update,wa),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,wa)}),f&&d.removeEventListener("resize",r.update,wa)}}const Jx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xx,data:{}};var Qx={left:"right",right:"left",bottom:"top",top:"bottom"};function ka(e){return e.replace(/left|right|bottom|top/g,function(t){return Qx[t]})}var e_={start:"end",end:"start"};function Cp(e){return e.replace(/start|end/g,function(t){return e_[t]})}function ff(e){var t=Vt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function cf(e){return Ei(Sn(e)).left+ff(e).scrollLeft}function t_(e,t){var r=Vt(e),i=Sn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,f=0,d=0;if(a){s=a.width,l=a.height;var p=rv();(p||!p&&t==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:f+cf(e),y:d}}function r_(e){var t,r=Sn(e),i=ff(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Un(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Un(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-i.scrollLeft+cf(e),d=-i.scrollTop;return Vr(a||r).direction==="rtl"&&(f+=Un(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:f,y:d}}function df(e){var t=Vr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function sv(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:lr(e)&&df(e)?e:sv(is(e))}function Ji(e,t){var r;t===void 0&&(t=[]);var i=sv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Vt(i),l=a?[s].concat(s.visualViewport||[],df(i)?i:[]):i,f=t.concat(l);return a?f:f.concat(Ji(is(l)))}function Ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n_(e,t){var r=Ei(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 Pp(e,t,r){return t===ev?Ll(t_(e,r)):qn(t)?n_(t,r):Ll(r_(Sn(e)))}function i_(e){var t=Ji(is(e)),r=["absolute","fixed"].indexOf(Vr(e).position)>=0,i=r&&lr(e)?mo(e):e;return qn(i)?t.filter(function(a){return qn(a)&&nv(a,i)&&Rr(a)!=="body"}):[]}function o_(e,t,r,i){var a=t==="clippingParents"?i_(e):[].concat(t),s=[].concat(a,[r]),l=s[0],f=s.reduce(function(d,p){var h=Pp(e,p,i);return d.top=Un(h.top,d.top),d.right=Za(h.right,d.right),d.bottom=Za(h.bottom,d.bottom),d.left=Un(h.left,d.left),d},Pp(e,l,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function uv(e){var t=e.reference,r=e.element,i=e.placement,a=i?Pr(i):null,s=i?xi(i):null,l=t.x+t.width/2-r.width/2,f=t.y+t.height/2-r.height/2,d;switch(a){case jt:d={x:l,y:t.y-r.height};break;case fr:d={x:l,y:t.y+t.height};break;case cr:d={x:t.x+t.width,y:f};break;case Wt:d={x:t.x-r.width,y:f};break;default:d={x:t.x,y:t.y}}var p=a?lf(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case bi:d[p]=d[p]-(t[h]/2-r[h]/2);break;case ro:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function no(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,f=r.boundary,d=f===void 0?Ox:f,p=r.rootBoundary,h=p===void 0?ev:p,b=r.elementContext,v=b===void 0?Bi:b,w=r.altBoundary,E=w===void 0?!1:w,y=r.padding,x=y===void 0?0:y,A=ov(typeof x!="number"?x:av(x,vo)),I=v===Bi?Ax:Bi,P=e.rects.popper,F=e.elements[E?I:v],O=o_(qn(F)?F:F.contextElement||Sn(e.elements.popper),d,h,l),L=Ei(e.elements.reference),U=uv({reference:L,element:P,placement:a}),z=Ll(Object.assign({},P,U)),q=v===Bi?z:L,V={top:O.top-q.top+A.top,bottom:q.bottom-O.bottom+A.bottom,left:O.left-q.left+A.left,right:q.right-O.right+A.right},ee=e.modifiersData.offset;if(v===Bi&&ee){var be=ee[a];Object.keys(V).forEach(function(pe){var Ae=[cr,fr].indexOf(pe)>=0?1:-1,Ne=[jt,fr].indexOf(pe)>=0?"y":"x";V[pe]+=be[Ne]*Ae})}return V}function a_(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,f=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?tv:d,h=xi(i),b=h?f?Op:Op.filter(function(E){return xi(E)===h}):vo,v=b.filter(function(E){return p.indexOf(E)>=0});v.length===0&&(v=b);var w=v.reduce(function(E,y){return E[y]=no(e,{placement:y,boundary:a,rootBoundary:s,padding:l})[Pr(y)],E},{});return Object.keys(w).sort(function(E,y){return w[E]-w[y]})}function s_(e){if(Pr(e)===af)return[];var t=ka(e);return[Cp(e),t,Cp(t)]}function u_(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,f=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,b=r.rootBoundary,v=r.altBoundary,w=r.flipVariations,E=w===void 0?!0:w,y=r.allowedAutoPlacements,x=t.options.placement,A=Pr(x),I=A===x,P=d||(I||!E?[ka(x)]:s_(x)),F=[x].concat(P).reduce(function(Q,ae){return Q.concat(Pr(ae)===af?a_(t,{placement:ae,boundary:h,rootBoundary:b,padding:p,flipVariations:E,allowedAutoPlacements:y}):ae)},[]),O=t.rects.reference,L=t.rects.popper,U=new Map,z=!0,q=F[0],V=0;V<F.length;V++){var ee=F[V],be=Pr(ee),pe=xi(ee)===bi,Ae=[jt,fr].indexOf(be)>=0,Ne=Ae?"width":"height",ve=no(t,{placement:ee,boundary:h,rootBoundary:b,altBoundary:v,padding:p}),Te=Ae?pe?cr:Wt:pe?fr:jt;O[Ne]>L[Ne]&&(Te=ka(Te));var Ge=ka(Te),Ct=[];if(s&&Ct.push(ve[be]<=0),f&&Ct.push(ve[Te]<=0,ve[Ge]<=0),Ct.every(function(Q){return Q})){q=ee,z=!1;break}U.set(ee,Ct)}if(z)for(var H=E?3:1,G=function(ae){var se=F.find(function(ce){var ue=U.get(ce);if(ue)return ue.slice(0,ae).every(function(ge){return ge})});if(se)return q=se,"break"},re=H;re>0;re--){var le=G(re);if(le==="break")break}t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}}const l_={name:"flip",enabled:!0,phase:"main",fn:u_,requiresIfExists:["offset"],data:{_skip:!1}};function Rp(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 Ip(e){return[jt,cr,fr,Wt].some(function(t){return e[t]>=0})}function f_(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),f=no(t,{altBoundary:!0}),d=Rp(l,i),p=Rp(f,a,s),h=Ip(d),b=Ip(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":b})}const c_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f_};function d_(e,t,r){var i=Pr(e),a=[Wt,jt].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],f=s[1];return l=l||0,f=(f||0)*a,[Wt,cr].indexOf(i)>=0?{x:f,y:l}:{x:l,y:f}}function p_(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=tv.reduce(function(h,b){return h[b]=d_(b,t.rects,s),h},{}),f=l[t.placement],d=f.x,p=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const h_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p_};function v_(e){var t=e.state,r=e.name;t.modifiersData[r]=uv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const m_={name:"popperOffsets",enabled:!0,phase:"read",fn:v_,data:{}};function g_(e){return e==="x"?"y":"x"}function y_(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.padding,v=r.tether,w=v===void 0?!0:v,E=r.tetherOffset,y=E===void 0?0:E,x=no(t,{boundary:d,rootBoundary:p,padding:b,altBoundary:h}),A=Pr(t.placement),I=xi(t.placement),P=!I,F=lf(A),O=g_(F),L=t.modifiersData.popperOffsets,U=t.rects.reference,z=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,V=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),ee=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,be={x:0,y:0};if(L){if(s){var pe,Ae=F==="y"?jt:Wt,Ne=F==="y"?fr:cr,ve=F==="y"?"height":"width",Te=L[F],Ge=Te+x[Ae],Ct=Te-x[Ne],H=w?-z[ve]/2:0,G=I===bi?U[ve]:z[ve],re=I===bi?-z[ve]:-U[ve],le=t.elements.arrow,Q=w&&le?uf(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iv(),se=ae[Ae],ce=ae[Ne],ue=Xi(0,U[ve],Q[ve]),ge=P?U[ve]/2-H-ue-se-V.mainAxis:G-ue-se-V.mainAxis,xe=P?-U[ve]/2+H+ue+ce+V.mainAxis:re+ue+ce+V.mainAxis,He=t.elements.arrow&&mo(t.elements.arrow),K=He?F==="y"?He.clientTop||0:He.clientLeft||0:0,gt=(pe=ee==null?void 0:ee[F])!=null?pe:0,st=Te+ge-gt-K,br=Te+xe-gt,Co=Xi(w?Za(Ge,st):Ge,Te,w?Un(Ct,br):Ct);L[F]=Co,be[F]=Co-Te}if(f){var Xt,Po=F==="x"?jt:Wt,xs=F==="x"?fr:cr,zt=L[O],yt=O==="y"?"height":"width",Xr=zt+x[Po],_n=zt-x[xs],Ti=[jt,Wt].indexOf(A)!==-1,Jr=(Xt=ee==null?void 0:ee[O])!=null?Xt:0,Ro=Ti?Xr:zt-U[yt]-z[yt]-Jr+V.altAxis,Qr=Ti?zt+U[yt]+z[yt]-Jr-V.altAxis:_n,Lr=w&&Ti?Ux(Ro,zt,Qr):Xi(w?Ro:Xr,zt,w?Qr:_n);L[O]=Lr,be[O]=Lr-zt}t.modifiersData[i]=be}}const w_={name:"preventOverflow",enabled:!0,phase:"main",fn:y_,requiresIfExists:["offset"]};function b_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function S_(e){return e===Vt(e)||!lr(e)?ff(e):b_(e)}function E_(e){var t=e.getBoundingClientRect(),r=Si(t.width)/e.offsetWidth||1,i=Si(t.height)/e.offsetHeight||1;return r!==1||i!==1}function x_(e,t,r){r===void 0&&(r=!1);var i=lr(t),a=lr(t)&&E_(t),s=Sn(t),l=Ei(e,a,r),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((Rr(t)!=="body"||df(s))&&(f=S_(t)),lr(t)?(d=Ei(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=cf(s))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function __(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(f){if(!r.has(f)){var d=t.get(f);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function O_(e){var t=__(e);return Dx.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 T_(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 Mp={placement:"bottom",modifiers:[],strategy:"absolute"};function Fp(){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 C_(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?Mp:a;return function(f,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mp,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},b=[],v=!1,w={state:h,setOptions:function(A){var I=typeof A=="function"?A(h.options):A;y(),h.options=Object.assign({},s,h.options,I),h.scrollParents={reference:qn(f)?Ji(f):f.contextElement?Ji(f.contextElement):[],popper:Ji(d)};var P=O_(T_([].concat(i,h.options.modifiers)));return h.orderedModifiers=P.filter(function(F){return F.enabled}),E(),w.update()},forceUpdate:function(){if(!v){var A=h.elements,I=A.reference,P=A.popper;if(Fp(I,P)){h.rects={reference:x_(I,mo(P),h.options.strategy==="fixed"),popper:uf(P)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(V){return h.modifiersData[V.name]=Object.assign({},V.data)});for(var F=0;F<h.orderedModifiers.length;F++){if(h.reset===!0){h.reset=!1,F=-1;continue}var O=h.orderedModifiers[F],L=O.fn,U=O.options,z=U===void 0?{}:U,q=O.name;typeof L=="function"&&(h=L({state:h,options:z,name:q,instance:w})||h)}}}},update:A_(function(){return new Promise(function(x){w.forceUpdate(),x(h)})}),destroy:function(){y(),v=!0}};if(!Fp(f,d))return w;w.setOptions(p).then(function(x){!v&&p.onFirstUpdate&&p.onFirstUpdate(x)});function E(){h.orderedModifiers.forEach(function(x){var A=x.name,I=x.options,P=I===void 0?{}:I,F=x.effect;if(typeof F=="function"){var O=F({state:h,name:A,instance:w,options:P}),L=function(){};b.push(O||L)}})}function y(){b.forEach(function(x){return x()}),b=[]}return w}}var P_=[Jx,m_,Vx,jx,h_,l_,w_,Zx,c_],R_=C_({defaultModifiers:P_}),kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function I_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var M_=typeof Element<"u",F_=typeof Map=="function",L_=typeof Set=="function",$_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Na(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Na(e[i],t[i]))return!1;return!0}var s;if(F_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!Na(i.value[1],t.get(i.value[0])))return!1;return!0}if(L_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if($_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(M_&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!Na(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var D_=function(t,r){try{return Na(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const k_=pf(D_);var N_=[],lv=function(t,r,i){i===void 0&&(i={});var a=C.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||N_},l=C.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],d=l[1],p=C.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var E=w.state,y=Object.keys(E.elements);_x.flushSync(function(){d({styles:xp(y.map(function(x){return[x,E.styles[x]||{}]})),attributes:xp(y.map(function(x){return[x,E.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=C.useMemo(function(){var v={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return k_(a.current,v)?a.current||v:(a.current=v,v)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),b=C.useRef();return _p(function(){b.current&&b.current.setOptions(h)},[h]),_p(function(){if(!(t==null||r==null)){var v=i.createPopper||R_,w=v(t,r,h);return b.current=w,function(){w.destroy(),b.current=null}}},[t,r,i.createPopper]),{state:b.current?b.current.state:null,styles:f.styles,attributes:f.attributes,update:b.current?b.current.update:null,forceUpdate:b.current?b.current.forceUpdate:null}};const fv=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),cv=D.forwardRef(({children:e,style:t,attributes:r},i)=>$.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),j_=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=D.useState(null),{styles:f,attributes:d}=lv(e,s,{placement:t||"bottom-start"}),p=D.useCallback(()=>{a&&a()},[a]);return r?$.jsxs(Qh,{children:[$.jsx(fv,{onClick:()=>p()}),$.jsx(cv,{ref:l,style:f.popper,attributes:d.popper,children:i})]}):null};var dv={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
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(s=a(s,i(f)))}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 f in s)t.call(s,f)&&s[f]&&(l=a(l,f));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})()})(dv);var pv=dv.exports;const mt=pf(pv);function Nn(){return Nn=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},Nn.apply(this,arguments)}const j_=["children","options"],oe={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Lp;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Lp||(Lp={}));const $p=["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"}),Dp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},W_=["style","script"],z_=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,U_=/mailto:/i,B_=/\n{2,}$/,hv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,H_=/^ *> ?/gm,q_=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Z_=/^ {2,}\n/,G_=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,vv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,K_=/^(`+)((?:\\`|[^`])+)\1/,Y_=/^(?:\n *)*\n/,V_=/\r\n?/g,X_=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,J_=/^\[\^([^\]]+)]/,Q_=/\f/g,eO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,tO=/^\s*?\[(x|\s)\]/,gv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$l=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,rO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,bv=/^<!--[\s\S]*?(?:-->)/,nO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Dl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,iO=/^\{.*\}$/,oO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,aO=/^<([^ >]+@[^ >]+)>/,sO=/^<([^ >]+:\/[^ >]+)>/,uO=/-([a-z])?/gi,Sv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,lO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,fO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,cO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,dO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,pO=/\t/g,hO=/(^ *\||\| *$)/g,vO=/^ *:-+: *$/,mO=/^ *:-+ *$/,gO=/^ *-+: *$/,os="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",yO=new RegExp(`^([*_])\\1${os}\\1\\1(?!\\1)`),wO=new RegExp(`^([*_])${os}\\1(?!\\1)`),bO=new RegExp(`^(==)${os}\\1`),SO=new RegExp(`^(~~)${os}\\1`),EO=/^\\([^0-9A-Za-z\s])/,Zu=/\\([^0-9A-Za-z\s])/g,xO=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,_O=/^\n+/,OO=/^([ \t]*)/,AO=/\\([^\\])/g,TO=/(?:^|\n)( *)$/,hf="(?:\\d+\\.)",vf="(?:[*+-])";function Ev(e){return"( *)("+(e===1?hf:vf)+") +"}const xv=Ev(1),_v=Ev(2);function Ov(e){return new RegExp("^"+(e===1?xv:_v))}const CO=Ov(1),PO=Ov(2);function Av(e){return new RegExp("^"+(e===1?xv:_v)+"[^\\n]*(?:\\n(?!\\1"+(e===1?hf:vf)+" )[^\\n]*)*(\\n|$)","gm")}const RO=Av(1),IO=Av(2);function Tv(e){const t=e===1?hf:vf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Cv=Tv(1),Pv=Tv(2);function kp(e,t){const r=t===1,i=r?Cv:Pv,a=r?RO:IO,s=r?CO:PO;return{match:_i(function(l,f){const d=TO.exec(f.prevCapture);return d&&(f.list||!f.inline&&!f.simple)?i.exec(l=d[1]+l):null}),order:1,parse(l,f,d){const p=r?+l[2]:void 0,h=l[0].replace(B_,`
6
- `).match(a);let S=!1;return{items:h.map(function(v,w){const x=s.exec(v)[0].length,y=new RegExp("^ {1,"+x+"}","gm"),E=v.replace(y,"").replace(s,""),P=w===h.length-1,C=E.indexOf(`
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(s=a(s,i(f)))}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 f in s)t.call(s,f)&&s[f]&&(l=a(l,f));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})()})(dv);var pv=dv.exports;const ft=pf(pv);function Nn(){return Nn=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},Nn.apply(this,arguments)}const W_=["children","options"],oe={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Lp;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Lp||(Lp={}));const $p=["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"}),Dp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},z_=["style","script"],U_=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,B_=/mailto:/i,H_=/\n{2,}$/,hv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,q_=/^ *> ?/gm,Z_=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,G_=/^ {2,}\n/,K_=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,vv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Y_=/^(`+)((?:\\`|[^`])+)\1/,V_=/^(?:\n *)*\n/,X_=/\r\n?/g,J_=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Q_=/^\[\^([^\]]+)]/,eO=/\f/g,tO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,rO=/^\s*?\[(x|\s)\]/,gv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$l=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,nO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,bv=/^<!--[\s\S]*?(?:-->)/,iO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Dl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oO=/^\{.*\}$/,aO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sO=/^<([^ >]+@[^ >]+)>/,uO=/^<([^ >]+:\/[^ >]+)>/,lO=/-([a-z])?/gi,Sv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,fO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,cO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,dO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hO=/\t/g,vO=/(^ *\||\| *$)/g,mO=/^ *:-+: *$/,gO=/^ *:-+ *$/,yO=/^ *-+: *$/,os="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wO=new RegExp(`^([*_])\\1${os}\\1\\1(?!\\1)`),bO=new RegExp(`^([*_])${os}\\1(?!\\1)`),SO=new RegExp(`^(==)${os}\\1`),EO=new RegExp(`^(~~)${os}\\1`),xO=/^\\([^0-9A-Za-z\s])/,Zu=/\\([^0-9A-Za-z\s])/g,_O=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,OO=/^\n+/,AO=/^([ \t]*)/,TO=/\\([^\\])/g,CO=/(?:^|\n)( *)$/,hf="(?:\\d+\\.)",vf="(?:[*+-])";function Ev(e){return"( *)("+(e===1?hf:vf)+") +"}const xv=Ev(1),_v=Ev(2);function Ov(e){return new RegExp("^"+(e===1?xv:_v))}const PO=Ov(1),RO=Ov(2);function Av(e){return new RegExp("^"+(e===1?xv:_v)+"[^\\n]*(?:\\n(?!\\1"+(e===1?hf:vf)+" )[^\\n]*)*(\\n|$)","gm")}const IO=Av(1),MO=Av(2);function Tv(e){const t=e===1?hf:vf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Cv=Tv(1),Pv=Tv(2);function kp(e,t){const r=t===1,i=r?Cv:Pv,a=r?IO:MO,s=r?PO:RO;return{match:_i(function(l,f){const d=CO.exec(f.prevCapture);return d&&(f.list||!f.inline&&!f.simple)?i.exec(l=d[1]+l):null}),order:1,parse(l,f,d){const p=r?+l[2]:void 0,h=l[0].replace(H_,`
6
+ `).match(a);let b=!1;return{items:h.map(function(v,w){const E=s.exec(v)[0].length,y=new RegExp("^ {1,"+E+"}","gm"),x=v.replace(y,"").replace(s,""),A=w===h.length-1,I=x.indexOf(`
7
7
 
8
- `)!==-1||P&&S;S=C;const I=d.inline,F=d.list;let O;d.list=!0,C?(d.inline=!1,O=io(E)+`
8
+ `)!==-1||A&&b;b=I;const P=d.inline,F=d.list;let O;d.list=!0,I?(d.inline=!1,O=io(x)+`
9
9
 
10
- `):(d.inline=!0,O=io(E));const L=f(O,d);return d.inline=I,d.list=F,L}),ordered:r,start:p}},render:(l,f,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type===oe.orderedList?l.start:void 0},l.items.map(function(p,h){return e("li",{key:h},f(p,d))}))}}const MO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),FO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Rv=[hv,vv,mv,gv,wv,yv,Sv,Cv,Pv],LO=[...Rv,/^[^\n]+(?: \n|\n{2,})/,$l,bv,Dl];function io(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Hi(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 $O(e){return gO.test(e)?"right":vO.test(e)?"center":mO.test(e)?"left":null}function Np(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function f(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,p,h)=>{d.trim()==="|"&&(f(),i)?p!==0&&p!==h.length-1&&s.push([]):l+=d}),f(),r.inTable=a,s}function DO(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(hO,"").split("|").map($O):[],a=e[3]?function(l,f,d){return l.trim().split(`
11
- `).map(function(p){return Np(p,f,d,!0)})}(e[3],t,r):[],s=Np(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:oe.table}:{children:s,type:oe.paragraph}}function jp(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function _i(e){return e.inline=1,e}function cn(e){return _i(function(t,r){return r.inline?e.exec(t):null})}function dn(e){return _i(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Hr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function qi(e){return _i(function(t){return e.exec(t)})}function kO(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
10
+ `):(d.inline=!0,O=io(x));const L=f(O,d);return d.inline=P,d.list=F,L}),ordered:r,start:p}},render:(l,f,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type===oe.orderedList?l.start:void 0},l.items.map(function(p,h){return e("li",{key:h},f(p,d))}))}}const FO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),LO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Rv=[hv,vv,mv,gv,wv,yv,Sv,Cv,Pv],$O=[...Rv,/^[^\n]+(?: \n|\n{2,})/,$l,bv,Dl];function io(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Hi(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 DO(e){return yO.test(e)?"right":mO.test(e)?"center":gO.test(e)?"left":null}function Np(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function f(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,p,h)=>{d.trim()==="|"&&(f(),i)?p!==0&&p!==h.length-1&&s.push([]):l+=d}),f(),r.inTable=a,s}function kO(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(vO,"").split("|").map(DO):[],a=e[3]?function(l,f,d){return l.trim().split(`
11
+ `).map(function(p){return Np(p,f,d,!0)})}(e[3],t,r):[],s=Np(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:oe.table}:{children:s,type:oe.paragraph}}function jp(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function _i(e){return e.inline=1,e}function cn(e){return _i(function(t,r){return r.inline?e.exec(t):null})}function dn(e){return _i(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Hr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function qi(e){return _i(function(t){return e.exec(t)})}function NO(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
12
12
  `).every(a=>(a+=`
13
- `,!Rv.some(s=>s.test(a))&&(r+=a,!!a.trim())));const i=io(r);return i==""?null:[r,,i]}function NO(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Wp(e){return e.replace(AO,"$1")}function ja(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 jO(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 WO(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const Gu=(e,t,r)=>({children:ja(t,e[2],r)});function Ku(){return{}}function Yu(){return null}function zO(...e){return e.filter(Boolean).join(" ")}function Vu(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 UO(e="",t={}){function r(v,w,...x){const y=Vu(t.overrides,`${v}.props`,{});return t.createElement(function(E,P){const C=Vu(P,E);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Vu(P,`${E}.component`,E):E}(v,t.overrides),Nn({},w,y,{className:zO(w==null?void 0:w.className,y.className)||void 0}),...x)}function i(v){v=v.replace(eO,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=dO.test(v)===!1);const x=p(d(w?v:`${io(v).replace(_O,"")}
13
+ `,!Rv.some(s=>s.test(a))&&(r+=a,!!a.trim())));const i=io(r);return i==""?null:[r,,i]}function jO(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Wp(e){return e.replace(TO,"$1")}function ja(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 WO(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 zO(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const Gu=(e,t,r)=>({children:ja(t,e[2],r)});function Ku(){return{}}function Yu(){return null}function UO(...e){return e.filter(Boolean).join(" ")}function Vu(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 BO(e="",t={}){function r(v,w,...E){const y=Vu(t.overrides,`${v}.props`,{});return t.createElement(function(x,A){const I=Vu(A,x);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:Vu(A,`${x}.component`,x):x}(v,t.overrides),Nn({},w,y,{className:UO(w==null?void 0:w.className,y.className)||void 0}),...E)}function i(v){v=v.replace(tO,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=pO.test(v)===!1);const E=p(d(w?v:`${io(v).replace(OO,"")}
14
14
 
15
- `,{inline:w}));for(;typeof x[x.length-1]=="string"&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const y=t.wrapper||(w?"span":"div");let E;if(x.length>1||t.forceWrapper)E=x;else{if(x.length===1)return E=x[0],typeof E=="string"?r("span",{key:"outer"},E):E;E=null}return t.createElement(y,{key:"outer"},E)}function a(v,w){const x=w.match(z_);return x?x.reduce(function(y,E){const P=E.indexOf("=");if(P!==-1){const C=function(L){return L.indexOf("-")!==-1&&L.match(nO)===null&&(L=L.replace(uO,function(U,z){return z.toUpperCase()})),L}(E.slice(0,P)).trim(),I=function(L){const U=L[0];return(U==='"'||U==="'")&&L.length>=2&&L[L.length-1]===U?L.slice(1,-1):L}(E.slice(P+1).trim()),F=$p[C]||C;if(F==="ref")return y;const O=y[F]=function(L,U,z,q){return U==="style"?z.split(/;\s?/).reduce(function(V,ee){const be=ee.slice(0,ee.indexOf(":"));return V[be.trim().replace(/(-[a-z])/g,pe=>pe[1].toUpperCase())]=ee.slice(be.length+1).trim(),V},{}):U==="href"||U==="src"?q(z,L,U):(z.match(iO)&&(z=z.slice(1,z.length-1)),z==="true"||z!=="false"&&z)}(v,C,I,t.sanitizer);typeof O=="string"&&($l.test(O)||Dl.test(O))&&(y[F]=i(O.trim()))}else E!=="style"&&(y[$p[E]||E]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||NO,t.slugify=t.slugify||Hi,t.namedCodesToUnicode=t.namedCodesToUnicode?Nn({},Dp,t.namedCodesToUnicode):Dp,t.createElement=t.createElement||T.createElement;const s=[],l={},f={[oe.blockQuote]:{match:Hr(hv),order:1,parse(v,w,x){const[,y,E]=v[0].replace(H_,"").match(q_);return{alert:y,children:w(E,x)}},render(v,w,x){const y={key:x.key};return v.alert&&(y.className="markdown-alert-"+t.slugify(v.alert.toLowerCase(),Hi),v.children.unshift({attrs:{},children:[{type:oe.text,text:v.alert}],noInnerParse:!0,type:oe.htmlBlock,tag:"header"})),r("blockquote",y,w(v.children,x))}},[oe.breakLine]:{match:qi(Z_),order:1,parse:Ku,render:(v,w,x)=>r("br",{key:x.key})},[oe.breakThematic]:{match:Hr(G_),order:1,parse:Ku,render:(v,w,x)=>r("hr",{key:x.key})},[oe.codeBlock]:{match:Hr(mv),order:0,parse:v=>({lang:void 0,text:io(v[0].replace(/^ {4}/gm,"")).replace(Zu,"$1")}),render:(v,w,x)=>r("pre",{key:x.key},r("code",Nn({},v.attrs,{className:v.lang?`lang-${v.lang}`:""}),v.text))},[oe.codeFenced]:{match:Hr(vv),order:0,parse:v=>({attrs:a("code",v[3]||""),lang:v[2]||void 0,text:v[4].replace(Zu,"$1"),type:oe.codeBlock})},[oe.codeInline]:{match:dn(K_),order:3,parse:v=>({text:v[2].replace(Zu,"$1")}),render:(v,w,x)=>r("code",{key:x.key},v.text)},[oe.footnote]:{match:Hr(X_),order:0,parse:v=>(s.push({footnote:v[2],identifier:v[1]}),{}),render:Yu},[oe.footnoteReference]:{match:cn(J_),order:1,parse:v=>({target:`#${t.slugify(v[1],Hi)}`,text:v[1]}),render:(v,w,x)=>r("a",{key:x.key,href:t.sanitizer(v.target,"a","href")},r("sup",{key:x.key},v.text))},[oe.gfmTask]:{match:cn(tO),order:1,parse:v=>({completed:v[1].toLowerCase()==="x"}),render:(v,w,x)=>r("input",{checked:v.completed,key:x.key,readOnly:!0,type:"checkbox"})},[oe.heading]:{match:Hr(t.enforceAtxHeadings?yv:gv),order:1,parse:(v,w,x)=>({children:ja(w,v[2],x),id:t.slugify(v[2],Hi),level:v[1].length}),render:(v,w,x)=>r(`h${v.level}`,{id:v.id,key:x.key},w(v.children,x))},[oe.headingSetext]:{match:Hr(wv),order:0,parse:(v,w,x)=>({children:ja(w,v[1],x),level:v[2]==="="?1:2,type:oe.heading})},[oe.htmlBlock]:{match:qi($l),order:1,parse(v,w,x){const[,y]=v[3].match(OO),E=new RegExp(`^${y}`,"gm"),P=v[3].replace(E,""),C=(I=P,LO.some(z=>z.test(I))?WO:ja);var I;const F=v[1].toLowerCase(),O=W_.indexOf(F)!==-1,L=(O?F:v[1]).trim(),U={attrs:a(L,v[2]),noInnerParse:O,tag:L};return x.inAnchor=x.inAnchor||F==="a",O?U.text=v[3]:U.children=C(w,P,x),x.inAnchor=!1,U},render:(v,w,x)=>r(v.tag,Nn({key:x.key},v.attrs),v.text||(v.children?w(v.children,x):""))},[oe.htmlSelfClosing]:{match:qi(Dl),order:1,parse(v){const w=v[1].trim();return{attrs:a(w,v[2]||""),tag:w}},render:(v,w,x)=>r(v.tag,Nn({},v.attrs,{key:x.key}))},[oe.htmlComment]:{match:qi(bv),order:1,parse:()=>({}),render:Yu},[oe.image]:{match:dn(FO),order:1,parse:v=>({alt:v[1],target:Wp(v[2]),title:v[3]}),render:(v,w,x)=>r("img",{key:x.key,alt:v.alt||void 0,title:v.title||void 0,src:t.sanitizer(v.target,"img","src")})},[oe.link]:{match:cn(MO),order:3,parse:(v,w,x)=>({children:jO(w,v[1],x),target:Wp(v[2]),title:v[3]}),render:(v,w,x)=>r("a",{key:x.key,href:t.sanitizer(v.target,"a","href"),title:v.title},w(v.children,x))},[oe.linkAngleBraceStyleDetector]:{match:cn(sO),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],type:oe.link})},[oe.linkBareUrlDetector]:{match:_i((v,w)=>w.inAnchor||t.disableAutoLink?null:cn(oO)(v,w)),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],title:void 0,type:oe.link})},[oe.linkMailtoDetector]:{match:cn(aO),order:0,parse(v){let w=v[1],x=v[1];return U_.test(x)||(x="mailto:"+x),{children:[{text:w.replace("mailto:",""),type:oe.text}],target:x,type:oe.link}}},[oe.orderedList]:kp(r,1),[oe.unorderedList]:kp(r,2),[oe.newlineCoalescer]:{match:Hr(Y_),order:3,parse:Ku,render:()=>`
16
- `},[oe.paragraph]:{match:_i(kO),order:3,parse:Gu,render:(v,w,x)=>r("p",{key:x.key},w(v.children,x))},[oe.ref]:{match:cn(lO),order:0,parse:v=>(l[v[1]]={target:v[2],title:v[4]},{}),render:Yu},[oe.refImage]:{match:dn(fO),order:0,parse:v=>({alt:v[1]||void 0,ref:v[2]}),render:(v,w,x)=>l[v.ref]?r("img",{key:x.key,alt:v.alt,src:t.sanitizer(l[v.ref].target,"img","src"),title:l[v.ref].title}):null},[oe.refLink]:{match:cn(cO),order:0,parse:(v,w,x)=>({children:w(v[1],x),fallbackChildren:v[0],ref:v[2]}),render:(v,w,x)=>l[v.ref]?r("a",{key:x.key,href:t.sanitizer(l[v.ref].target,"a","href"),title:l[v.ref].title},w(v.children,x)):r("span",{key:x.key},v.fallbackChildren)},[oe.table]:{match:Hr(Sv),order:1,parse:DO,render(v,w,x){const y=v;return r("table",{key:x.key},r("thead",null,r("tr",null,y.header.map(function(E,P){return r("th",{key:P,style:jp(y,P)},w(E,x))}))),r("tbody",null,y.cells.map(function(E,P){return r("tr",{key:P},E.map(function(C,I){return r("td",{key:I,style:jp(y,I)},w(C,x))}))})))}},[oe.text]:{match:qi(xO),order:4,parse:v=>({text:v[0].replace(rO,(w,x)=>t.namedCodesToUnicode[x]?t.namedCodesToUnicode[x]:w)}),render:v=>v.text},[oe.textBolded]:{match:dn(yO),order:2,parse:(v,w,x)=>({children:w(v[2],x)}),render:(v,w,x)=>r("strong",{key:x.key},w(v.children,x))},[oe.textEmphasized]:{match:dn(wO),order:3,parse:(v,w,x)=>({children:w(v[2],x)}),render:(v,w,x)=>r("em",{key:x.key},w(v.children,x))},[oe.textEscaped]:{match:dn(EO),order:1,parse:v=>({text:v[1],type:oe.text})},[oe.textMarked]:{match:dn(bO),order:3,parse:Gu,render:(v,w,x)=>r("mark",{key:x.key},w(v.children,x))},[oe.textStrikethroughed]:{match:dn(SO),order:3,parse:Gu,render:(v,w,x)=>r("del",{key:x.key},w(v.children,x))}};t.disableParsingRawHTML===!0&&(delete f[oe.htmlBlock],delete f[oe.htmlSelfClosing]);const d=function(v){let w=Object.keys(v);function x(y,E){let P,C,I=[],F="",O="";for(E.prevCapture=E.prevCapture||"";y;){let L=0;for(;L<w.length;){if(F=w[L],P=v[F],E.inline&&!P.match.inline){L++;continue}const U=P.match(y,E);if(U){O=U[0],E.prevCapture+=O,y=y.substring(O.length),C=P.parse(U,x,E),C.type==null&&(C.type=F),I.push(C);break}L++}}return E.prevCapture="",I}return w.sort(function(y,E){let P=v[y].order,C=v[E].order;return P!==C?P-C:y<E?-1:1}),function(y,E){return x(function(P){return P.replace(V_,`
17
- `).replace(Q_,"").replace(pO," ")}(y),E)}}(f),p=(h=function(v,w){return function(x,y,E){const P=v[x.type].render;return w?w(()=>P(x,y,E),x,y,E):P(x,y,E)}}(f,t.renderRule),function v(w,x={}){if(Array.isArray(w)){const y=x.key,E=[];let P=!1;for(let C=0;C<w.length;C++){x.key=C;const I=v(w[C],x),F=typeof I=="string";F&&P?E[E.length-1]+=I:I!==null&&E.push(I),P=F}return x.key=y,E}return h(w,v,x)});var h;const S=i(e);return s.length?r("div",null,S,r("footer",{key:"footer"},s.map(function(v){return r("div",{id:t.slugify(v.identifier,Hi),key:v.identifier},v.identifier,p(d(v.footnote,{inline:!0})))}))):S}const Ga=e=>{let{children:t="",options:r}=e,i=function(a,s){if(a==null)return{};var l,f,d={},p=Object.keys(a);for(f=0;f<p.length;f++)s.indexOf(l=p[f])>=0||(d[l]=a[l]);return d}(e,j_);return T.cloneElement(UO(t,r),i)},zp=({kind:e,customIcon:t})=>{if(t)return $.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(vt.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(vt.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(vt.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(vt.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},BO=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:f}={})=>$.jsx("button",{onClick:t,className:mt("flex items-center justify-center p-1",f),children:$.jsx(vt.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:mt("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="string"?$.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[$.jsxs("div",{className:"flex items-center gap-1",children:[$.jsx(zp,{kind:r,customIcon:s}),a?$.jsx(Ga,{children:i}):$.jsx($.Fragment,{children:i})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(f=>f.messages.length>0).map(f=>$.jsxs($.Fragment,{children:[$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(zp,{kind:r,customIcon:s}),$.jsxs("span",{children:[f.title," :"]})]}),$.jsx("ul",{className:"list-disc px-12",children:f.messages.map(d=>$.jsx("li",{children:a?$.jsx(Ga,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Iv=({children:e,size:t,className:r,...i})=>$.jsx("div",{style:{"--width":`${t||24}px`},className:mt("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var ba,HO=new Uint8Array(16);function Mv(){if(!ba&&(ba=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ba))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ba(HO)}const qO=/^(?:[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;function as(e){return typeof e=="string"&&qO.test(e)}var pt=[];for(var Xu=0;Xu<256;++Xu)pt.push((Xu+256).toString(16).substr(1));function ss(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(pt[e[t+0]]+pt[e[t+1]]+pt[e[t+2]]+pt[e[t+3]]+"-"+pt[e[t+4]]+pt[e[t+5]]+"-"+pt[e[t+6]]+pt[e[t+7]]+"-"+pt[e[t+8]]+pt[e[t+9]]+"-"+pt[e[t+10]]+pt[e[t+11]]+pt[e[t+12]]+pt[e[t+13]]+pt[e[t+14]]+pt[e[t+15]]).toLowerCase();if(!as(r))throw TypeError("Stringified UUID is invalid");return r}var Up,Ju,Qu=0,el=0;function ZO(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||Up,l=e.clockseq!==void 0?e.clockseq:Ju;if(s==null||l==null){var f=e.random||(e.rng||Mv)();s==null&&(s=Up=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=Ju=(f[6]<<8|f[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:el+1,h=d-Qu+(p-el)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Qu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Qu=d,el=p,Ju=l,d+=122192928e5;var S=((d&268435455)*1e4+p)%4294967296;a[i++]=S>>>24&255,a[i++]=S>>>16&255,a[i++]=S>>>8&255,a[i++]=S&255;var v=d/4294967296*1e4&268435455;a[i++]=v>>>8&255,a[i++]=v&255,a[i++]=v>>>24&15|16,a[i++]=v>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var w=0;w<6;++w)a[i+w]=s[w];return t||ss(a)}function Fv(e){if(!as(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function GO(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var KO="6ba7b810-9dad-11d1-80b4-00c04fd430c8",YO="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Lv(e,t,r){function i(a,s,l,f){if(typeof a=="string"&&(a=GO(a)),typeof s=="string"&&(s=Fv(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){f=f||0;for(var p=0;p<16;++p)l[f+p]=d[p];return l}return ss(d)}try{i.name=e}catch{}return i.DNS=KO,i.URL=YO,i}function VO(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return XO(JO(QO(e),e.length*8))}function XO(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function $v(e){return(e+64>>>9<<4)+14+1}function JO(e,t){e[t>>5]|=128<<t%32,e[$v(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var f=r,d=i,p=a,h=s;r=St(r,i,a,s,e[l],7,-680876936),s=St(s,r,i,a,e[l+1],12,-389564586),a=St(a,s,r,i,e[l+2],17,606105819),i=St(i,a,s,r,e[l+3],22,-1044525330),r=St(r,i,a,s,e[l+4],7,-176418897),s=St(s,r,i,a,e[l+5],12,1200080426),a=St(a,s,r,i,e[l+6],17,-1473231341),i=St(i,a,s,r,e[l+7],22,-45705983),r=St(r,i,a,s,e[l+8],7,1770035416),s=St(s,r,i,a,e[l+9],12,-1958414417),a=St(a,s,r,i,e[l+10],17,-42063),i=St(i,a,s,r,e[l+11],22,-1990404162),r=St(r,i,a,s,e[l+12],7,1804603682),s=St(s,r,i,a,e[l+13],12,-40341101),a=St(a,s,r,i,e[l+14],17,-1502002290),i=St(i,a,s,r,e[l+15],22,1236535329),r=Et(r,i,a,s,e[l+1],5,-165796510),s=Et(s,r,i,a,e[l+6],9,-1069501632),a=Et(a,s,r,i,e[l+11],14,643717713),i=Et(i,a,s,r,e[l],20,-373897302),r=Et(r,i,a,s,e[l+5],5,-701558691),s=Et(s,r,i,a,e[l+10],9,38016083),a=Et(a,s,r,i,e[l+15],14,-660478335),i=Et(i,a,s,r,e[l+4],20,-405537848),r=Et(r,i,a,s,e[l+9],5,568446438),s=Et(s,r,i,a,e[l+14],9,-1019803690),a=Et(a,s,r,i,e[l+3],14,-187363961),i=Et(i,a,s,r,e[l+8],20,1163531501),r=Et(r,i,a,s,e[l+13],5,-1444681467),s=Et(s,r,i,a,e[l+2],9,-51403784),a=Et(a,s,r,i,e[l+7],14,1735328473),i=Et(i,a,s,r,e[l+12],20,-1926607734),r=xt(r,i,a,s,e[l+5],4,-378558),s=xt(s,r,i,a,e[l+8],11,-2022574463),a=xt(a,s,r,i,e[l+11],16,1839030562),i=xt(i,a,s,r,e[l+14],23,-35309556),r=xt(r,i,a,s,e[l+1],4,-1530992060),s=xt(s,r,i,a,e[l+4],11,1272893353),a=xt(a,s,r,i,e[l+7],16,-155497632),i=xt(i,a,s,r,e[l+10],23,-1094730640),r=xt(r,i,a,s,e[l+13],4,681279174),s=xt(s,r,i,a,e[l],11,-358537222),a=xt(a,s,r,i,e[l+3],16,-722521979),i=xt(i,a,s,r,e[l+6],23,76029189),r=xt(r,i,a,s,e[l+9],4,-640364487),s=xt(s,r,i,a,e[l+12],11,-421815835),a=xt(a,s,r,i,e[l+15],16,530742520),i=xt(i,a,s,r,e[l+2],23,-995338651),r=_t(r,i,a,s,e[l],6,-198630844),s=_t(s,r,i,a,e[l+7],10,1126891415),a=_t(a,s,r,i,e[l+14],15,-1416354905),i=_t(i,a,s,r,e[l+5],21,-57434055),r=_t(r,i,a,s,e[l+12],6,1700485571),s=_t(s,r,i,a,e[l+3],10,-1894986606),a=_t(a,s,r,i,e[l+10],15,-1051523),i=_t(i,a,s,r,e[l+1],21,-2054922799),r=_t(r,i,a,s,e[l+8],6,1873313359),s=_t(s,r,i,a,e[l+15],10,-30611744),a=_t(a,s,r,i,e[l+6],15,-1560198380),i=_t(i,a,s,r,e[l+13],21,1309151649),r=_t(r,i,a,s,e[l+4],6,-145523070),s=_t(s,r,i,a,e[l+11],10,-1120210379),a=_t(a,s,r,i,e[l+2],15,718787259),i=_t(i,a,s,r,e[l+9],21,-343485551),r=gn(r,f),i=gn(i,d),a=gn(a,p),s=gn(s,h)}return[r,i,a,s]}function QO(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array($v(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function gn(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function eA(e,t){return e<<t|e>>>32-t}function us(e,t,r,i,a,s){return gn(eA(gn(gn(t,e),gn(i,s)),a),r)}function St(e,t,r,i,a,s,l){return us(t&r|~t&i,e,t,a,s,l)}function Et(e,t,r,i,a,s,l){return us(t&i|r&~i,e,t,a,s,l)}function xt(e,t,r,i,a,s,l){return us(t^r^i,e,t,a,s,l)}function _t(e,t,r,i,a,s,l){return us(r^(t|~i),e,t,a,s,l)}var tA=Lv("v3",48,VO);function rA(e,t,r){e=e||{};var i=e.random||(e.rng||Mv)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return ss(i)}function nA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function tl(e,t){return e<<t|e>>>32-t}function iA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),f=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];f[d]=p}f[l-1][14]=(e.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(e.length-1)*8&4294967295;for(var S=0;S<l;++S){for(var v=new Uint32Array(80),w=0;w<16;++w)v[w]=f[S][w];for(var x=16;x<80;++x)v[x]=tl(v[x-3]^v[x-8]^v[x-14]^v[x-16],1);for(var y=r[0],E=r[1],P=r[2],C=r[3],I=r[4],F=0;F<80;++F){var O=Math.floor(F/20),L=tl(y,5)+nA(O,E,P,C)+I+t[O]+v[F]>>>0;I=C,C=P,P=tl(E,30)>>>0,E=y,y=L}r[0]=r[0]+y>>>0,r[1]=r[1]+E>>>0,r[2]=r[2]+P>>>0,r[3]=r[3]+C>>>0,r[4]=r[4]+I>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var oA=Lv("v5",80,iA);const aA="00000000-0000-0000-0000-000000000000";function sA(e){if(!as(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const uA=Object.freeze(Object.defineProperty({__proto__:null,NIL:aA,parse:Fv,stringify:ss,v1:ZO,v3:tA,v4:rA,v5:oA,validate:as,version:sA},Symbol.toStringTag,{value:"Module"})),lA=R_(uA);function mf(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}mf.prototype.convert=function(e){var t,r,i,a={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,f=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<f;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<f;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);f=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};mf.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var fA=mf,cA=fA;function go(e,t){var r=new cA(e,t);return function(i){return r.convert(i)}}go.BIN="01";go.OCT="01234567";go.DEC="0123456789";go.HEX="0123456789abcdef";var dA=go;const{v4:rl}=lA,Sa=dA,nl="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",pA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",hA={consistentLength:!0};let il;const Bp=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},vA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},mA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var gf=(()=>{const e=(t,r)=>{const i=t||nl,a={...hA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=mA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},f=Sa(Sa.HEX,i),d=Sa(i,Sa.HEX),p=()=>Bp(rl(),f,l),h={new:p,generate:p,uuid:rl,fromUUID:S=>Bp(S,f,l),toUUID:S=>vA(S,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:nl,cookieBase90:pA},e.uuid=rl,e.generate=()=>(il||(il=e(nl).generate),il()),e})();const Dv=({depth:e,height:t=24,width:r=11,showLines:i=!0})=>{const a=`indent_line_${gf.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[$.jsx("defs",{children:$.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:"rgb(241, 245, 249)"})})}),i?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):$.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},kv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return $.jsx(vt.FdDown,{className:mt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?$.jsx(vt.FdDown,{}):$.jsx(vt.FdRight,{});default:return $.jsx(vt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),yf=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:f})=>{var w;const{key:d,children:p}=e,h=D.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),S=l&&typeof l=="function"?l(e,t,h,a,s):wA(e,t,h,f);return!((w=e.options)!=null&&w.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:S},d),yA(p||[],t,s,r,i,h.expanded,a,f,l)]}):null},gA=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=$.jsx(Iv,{children:i})),$.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,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},yA=function(e,t,r,i,a,s,l,f,d){return e.length&&s?e.map(p=>$.jsx(yf,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:f,renderNode:d},p.key)):null},wA=function(e,t,r,i){return $.jsxs($.Fragment,{children:[$.jsx(Dv,{showLines:!0,depth:t}),$.jsx(kv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),gA(e,i)]})},Ea=e=>t=>e===t,bA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:f="always",encapsulated:d}){const[p,h]=D.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));D.useEffect(()=>{f==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const S=D.useCallback(E=>{if(!E)return;const P=p.expandedKeys.findIndex(Ea(E.key));let C=[];P===-1?(C=[...p.expandedKeys,E.key],h(()=>({...p,expandedKeys:C})),a&&a(C)):(C=p.expandedKeys.filter(I=>I!==E.key),h(()=>({...p,expandedKeys:C})),a&&a(C))},[p]),v=D.useCallback(E=>{var C;if(!((C=E==null?void 0:E.options)!=null&&C.selectable))return;p.selectedKeys.findIndex(Ea(E.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,E.key]})},[p]),w=D.useCallback(E=>{var C;if(!((C=E==null?void 0:E.options)!=null&&C.selectable))return;p.selectedKeys.findIndex(Ea(E.key))===-1&&h({...p,selectedKeys:[E.key]})},[p]),x=D.useCallback(E=>{var C;if(!((C=E==null?void 0:E.options)!=null&&C.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex(Ea(E.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(I=>I!==E.key)})},[p]),y=D.useMemo(()=>({expand:S,select:v,selectSingle:w,deselect:x}),[x,S,v,w]);return $.jsx("div",{className:mt("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(E=>$.jsx(yf,{node:E,searchQuery:s||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:y,renderNode:r,onNodeClick:i},E.key))})};function SA(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function Qe(){return Qe=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},Qe.apply(null,arguments)}function EA(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 xA={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 Nv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var _A=/[A-Z]|^ms/g,OA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jv=function(t){return t.charCodeAt(1)===45},Hp=function(t){return t!=null&&typeof t!="boolean"},ol=Nv(function(e){return jv(e)?e:e.replace(_A,"-$&").toLowerCase()}),qp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(OA,function(i,a,s){return Or={name:a,styles:s,next:Or},a})}return xA[t]!==1&&!jv(t)&&typeof r=="number"&&r!==0?r+"px":r};function oo(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 Or={name:a.name,styles:a.styles,next:Or},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Or={name:l.name,styles:l.styles,next:Or},l=l.next;var f=s.styles+";";return f}return AA(e,t,r)}case"function":{if(e!==void 0){var d=Or,p=r(e);return Or=d,oo(e,t,p)}break}}var h=r;if(t==null)return h;var S=t[h];return S!==void 0?S:h}function AA(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=oo(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var f=l;t!=null&&t[f]!==void 0?i+=s+"{"+t[f]+"}":Hp(f)&&(i+=ol(s)+":"+qp(s,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)Hp(l[d])&&(i+=ol(s)+":"+qp(s,l[d])+";");else{var p=oo(e,t,l);switch(s){case"animation":case"animationName":{i+=ol(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var Zp=/label:\s*([^\s;{]+)\s*(;|$)/g,Or;function TA(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="";Or=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=oo(r,t,s);else{var l=s;a+=l[0]}for(var f=1;f<e.length;f++)if(a+=oo(r,t,e[f]),i){var d=s;a+=d[f]}Zp.lastIndex=0;for(var p="",h;(h=Zp.exec(a))!==null;)p+="-"+h[1];var S=EA(a)+p;return{name:S,styles:a,next:Or}}var CA=function(t){return t()},PA=T.useInsertionEffect?T.useInsertionEffect:!1,RA=PA||CA,IA=!0;function MA(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||IA===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},FA=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)}},LA=/^((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|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)-.*))$/,$A=Nv(function(e){return LA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),DA=$A,kA=function(t){return t!=="theme"},Gp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?DA:kA},Kp=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},NA=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return Wv(r,i,a),RA(function(){return FA(r,i,a)}),null},jA=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 f=Kp(t,r,i),d=f||Gp(a),p=!d("as");return function(){var h=arguments,S=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&S.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)S.push.apply(S,h);else{var v=h[0];S.push(v[0]);for(var w=h.length,x=1;x<w;x++)S.push(h[x],v[x])}var y=Ml.withEmotionCache(function(E,P,C){var I=p&&E.as||a,F="",O=[],L=E;if(E.theme==null){L={};for(var U in E)L[U]=E[U];L.theme=T.useContext(Ml.ThemeContext)}typeof E.className=="string"?F=MA(P.registered,O,E.className):E.className!=null&&(F=E.className+" ");var z=TA(S.concat(O),P.registered,L);F+=P.key+"-"+z.name,l!==void 0&&(F+=" "+l);var q=p&&f===void 0?Gp(I):d,V={};for(var ee in E)p&&ee==="as"||q(ee)&&(V[ee]=E[ee]);return V.className=F,C&&(V.ref=C),T.createElement(T.Fragment,null,T.createElement(NA,{cache:P,serialized:z,isStringTag:typeof I=="string"}),T.createElement(I,V))});return y.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=S,y.__emotion_forwardProp=f,Object.defineProperty(y,"toString",{value:function(){return"."+l}}),y.withComponent=function(E,P){var C=e(E,Qe({},r,P,{shouldForwardProp:Kp(y,P,!0)}));return C.apply(void 0,S)},y}},WA=["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"],Ka=jA.bind(null);WA.forEach(function(e){Ka[e]=Ka(e)});var zA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},di=new WeakMap,xa=new WeakMap,_a={},al=0,zv=function(e){return e&&(e.host||zv(e.parentNode))},UA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=zv(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})},BA=function(e,t,r,i){var a=UA(t,Array.isArray(e)?e:[e]);_a[r]||(_a[r]=new WeakMap);var s=_a[r],l=[],f=new Set,d=new Set(a),p=function(S){!S||f.has(S)||(f.add(S),p(S.parentNode))};a.forEach(p);var h=function(S){!S||d.has(S)||Array.prototype.forEach.call(S.children,function(v){if(f.has(v))h(v);else try{var w=v.getAttribute(i),x=w!==null&&w!=="false",y=(di.get(v)||0)+1,E=(s.get(v)||0)+1;di.set(v,y),s.set(v,E),l.push(v),y===1&&x&&xa.set(v,!0),E===1&&v.setAttribute(r,"true"),x||v.setAttribute(i,"true")}catch(P){console.error("aria-hidden: cannot operate on ",v,P)}})};return h(t),f.clear(),al++,function(){l.forEach(function(S){var v=di.get(S)-1,w=s.get(S)-1;di.set(S,v),s.set(S,w),v||(xa.has(S)||S.removeAttribute(i),xa.delete(S)),w||S.removeAttribute(r)}),al--,al||(di=new WeakMap,di=new WeakMap,xa=new WeakMap,_a={})}},HA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=zA(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),BA(i,a,r,"aria-hidden")):function(){return null}};/*! *****************************************************************************
15
+ `,{inline:w}));for(;typeof E[E.length-1]=="string"&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const y=t.wrapper||(w?"span":"div");let x;if(E.length>1||t.forceWrapper)x=E;else{if(E.length===1)return x=E[0],typeof x=="string"?r("span",{key:"outer"},x):x;x=null}return t.createElement(y,{key:"outer"},x)}function a(v,w){const E=w.match(U_);return E?E.reduce(function(y,x){const A=x.indexOf("=");if(A!==-1){const I=function(L){return L.indexOf("-")!==-1&&L.match(iO)===null&&(L=L.replace(lO,function(U,z){return z.toUpperCase()})),L}(x.slice(0,A)).trim(),P=function(L){const U=L[0];return(U==='"'||U==="'")&&L.length>=2&&L[L.length-1]===U?L.slice(1,-1):L}(x.slice(A+1).trim()),F=$p[I]||I;if(F==="ref")return y;const O=y[F]=function(L,U,z,q){return U==="style"?z.split(/;\s?/).reduce(function(V,ee){const be=ee.slice(0,ee.indexOf(":"));return V[be.trim().replace(/(-[a-z])/g,pe=>pe[1].toUpperCase())]=ee.slice(be.length+1).trim(),V},{}):U==="href"||U==="src"?q(z,L,U):(z.match(oO)&&(z=z.slice(1,z.length-1)),z==="true"||z!=="false"&&z)}(v,I,P,t.sanitizer);typeof O=="string"&&($l.test(O)||Dl.test(O))&&(y[F]=i(O.trim()))}else x!=="style"&&(y[$p[x]||x]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||jO,t.slugify=t.slugify||Hi,t.namedCodesToUnicode=t.namedCodesToUnicode?Nn({},Dp,t.namedCodesToUnicode):Dp,t.createElement=t.createElement||C.createElement;const s=[],l={},f={[oe.blockQuote]:{match:Hr(hv),order:1,parse(v,w,E){const[,y,x]=v[0].replace(q_,"").match(Z_);return{alert:y,children:w(x,E)}},render(v,w,E){const y={key:E.key};return v.alert&&(y.className="markdown-alert-"+t.slugify(v.alert.toLowerCase(),Hi),v.children.unshift({attrs:{},children:[{type:oe.text,text:v.alert}],noInnerParse:!0,type:oe.htmlBlock,tag:"header"})),r("blockquote",y,w(v.children,E))}},[oe.breakLine]:{match:qi(G_),order:1,parse:Ku,render:(v,w,E)=>r("br",{key:E.key})},[oe.breakThematic]:{match:Hr(K_),order:1,parse:Ku,render:(v,w,E)=>r("hr",{key:E.key})},[oe.codeBlock]:{match:Hr(mv),order:0,parse:v=>({lang:void 0,text:io(v[0].replace(/^ {4}/gm,"")).replace(Zu,"$1")}),render:(v,w,E)=>r("pre",{key:E.key},r("code",Nn({},v.attrs,{className:v.lang?`lang-${v.lang}`:""}),v.text))},[oe.codeFenced]:{match:Hr(vv),order:0,parse:v=>({attrs:a("code",v[3]||""),lang:v[2]||void 0,text:v[4].replace(Zu,"$1"),type:oe.codeBlock})},[oe.codeInline]:{match:dn(Y_),order:3,parse:v=>({text:v[2].replace(Zu,"$1")}),render:(v,w,E)=>r("code",{key:E.key},v.text)},[oe.footnote]:{match:Hr(J_),order:0,parse:v=>(s.push({footnote:v[2],identifier:v[1]}),{}),render:Yu},[oe.footnoteReference]:{match:cn(Q_),order:1,parse:v=>({target:`#${t.slugify(v[1],Hi)}`,text:v[1]}),render:(v,w,E)=>r("a",{key:E.key,href:t.sanitizer(v.target,"a","href")},r("sup",{key:E.key},v.text))},[oe.gfmTask]:{match:cn(rO),order:1,parse:v=>({completed:v[1].toLowerCase()==="x"}),render:(v,w,E)=>r("input",{checked:v.completed,key:E.key,readOnly:!0,type:"checkbox"})},[oe.heading]:{match:Hr(t.enforceAtxHeadings?yv:gv),order:1,parse:(v,w,E)=>({children:ja(w,v[2],E),id:t.slugify(v[2],Hi),level:v[1].length}),render:(v,w,E)=>r(`h${v.level}`,{id:v.id,key:E.key},w(v.children,E))},[oe.headingSetext]:{match:Hr(wv),order:0,parse:(v,w,E)=>({children:ja(w,v[1],E),level:v[2]==="="?1:2,type:oe.heading})},[oe.htmlBlock]:{match:qi($l),order:1,parse(v,w,E){const[,y]=v[3].match(AO),x=new RegExp(`^${y}`,"gm"),A=v[3].replace(x,""),I=(P=A,$O.some(z=>z.test(P))?zO:ja);var P;const F=v[1].toLowerCase(),O=z_.indexOf(F)!==-1,L=(O?F:v[1]).trim(),U={attrs:a(L,v[2]),noInnerParse:O,tag:L};return E.inAnchor=E.inAnchor||F==="a",O?U.text=v[3]:U.children=I(w,A,E),E.inAnchor=!1,U},render:(v,w,E)=>r(v.tag,Nn({key:E.key},v.attrs),v.text||(v.children?w(v.children,E):""))},[oe.htmlSelfClosing]:{match:qi(Dl),order:1,parse(v){const w=v[1].trim();return{attrs:a(w,v[2]||""),tag:w}},render:(v,w,E)=>r(v.tag,Nn({},v.attrs,{key:E.key}))},[oe.htmlComment]:{match:qi(bv),order:1,parse:()=>({}),render:Yu},[oe.image]:{match:dn(LO),order:1,parse:v=>({alt:v[1],target:Wp(v[2]),title:v[3]}),render:(v,w,E)=>r("img",{key:E.key,alt:v.alt||void 0,title:v.title||void 0,src:t.sanitizer(v.target,"img","src")})},[oe.link]:{match:cn(FO),order:3,parse:(v,w,E)=>({children:WO(w,v[1],E),target:Wp(v[2]),title:v[3]}),render:(v,w,E)=>r("a",{key:E.key,href:t.sanitizer(v.target,"a","href"),title:v.title},w(v.children,E))},[oe.linkAngleBraceStyleDetector]:{match:cn(uO),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],type:oe.link})},[oe.linkBareUrlDetector]:{match:_i((v,w)=>w.inAnchor||t.disableAutoLink?null:cn(aO)(v,w)),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],title:void 0,type:oe.link})},[oe.linkMailtoDetector]:{match:cn(sO),order:0,parse(v){let w=v[1],E=v[1];return B_.test(E)||(E="mailto:"+E),{children:[{text:w.replace("mailto:",""),type:oe.text}],target:E,type:oe.link}}},[oe.orderedList]:kp(r,1),[oe.unorderedList]:kp(r,2),[oe.newlineCoalescer]:{match:Hr(V_),order:3,parse:Ku,render:()=>`
16
+ `},[oe.paragraph]:{match:_i(NO),order:3,parse:Gu,render:(v,w,E)=>r("p",{key:E.key},w(v.children,E))},[oe.ref]:{match:cn(fO),order:0,parse:v=>(l[v[1]]={target:v[2],title:v[4]},{}),render:Yu},[oe.refImage]:{match:dn(cO),order:0,parse:v=>({alt:v[1]||void 0,ref:v[2]}),render:(v,w,E)=>l[v.ref]?r("img",{key:E.key,alt:v.alt,src:t.sanitizer(l[v.ref].target,"img","src"),title:l[v.ref].title}):null},[oe.refLink]:{match:cn(dO),order:0,parse:(v,w,E)=>({children:w(v[1],E),fallbackChildren:v[0],ref:v[2]}),render:(v,w,E)=>l[v.ref]?r("a",{key:E.key,href:t.sanitizer(l[v.ref].target,"a","href"),title:l[v.ref].title},w(v.children,E)):r("span",{key:E.key},v.fallbackChildren)},[oe.table]:{match:Hr(Sv),order:1,parse:kO,render(v,w,E){const y=v;return r("table",{key:E.key},r("thead",null,r("tr",null,y.header.map(function(x,A){return r("th",{key:A,style:jp(y,A)},w(x,E))}))),r("tbody",null,y.cells.map(function(x,A){return r("tr",{key:A},x.map(function(I,P){return r("td",{key:P,style:jp(y,P)},w(I,E))}))})))}},[oe.text]:{match:qi(_O),order:4,parse:v=>({text:v[0].replace(nO,(w,E)=>t.namedCodesToUnicode[E]?t.namedCodesToUnicode[E]:w)}),render:v=>v.text},[oe.textBolded]:{match:dn(wO),order:2,parse:(v,w,E)=>({children:w(v[2],E)}),render:(v,w,E)=>r("strong",{key:E.key},w(v.children,E))},[oe.textEmphasized]:{match:dn(bO),order:3,parse:(v,w,E)=>({children:w(v[2],E)}),render:(v,w,E)=>r("em",{key:E.key},w(v.children,E))},[oe.textEscaped]:{match:dn(xO),order:1,parse:v=>({text:v[1],type:oe.text})},[oe.textMarked]:{match:dn(SO),order:3,parse:Gu,render:(v,w,E)=>r("mark",{key:E.key},w(v.children,E))},[oe.textStrikethroughed]:{match:dn(EO),order:3,parse:Gu,render:(v,w,E)=>r("del",{key:E.key},w(v.children,E))}};t.disableParsingRawHTML===!0&&(delete f[oe.htmlBlock],delete f[oe.htmlSelfClosing]);const d=function(v){let w=Object.keys(v);function E(y,x){let A,I,P=[],F="",O="";for(x.prevCapture=x.prevCapture||"";y;){let L=0;for(;L<w.length;){if(F=w[L],A=v[F],x.inline&&!A.match.inline){L++;continue}const U=A.match(y,x);if(U){O=U[0],x.prevCapture+=O,y=y.substring(O.length),I=A.parse(U,E,x),I.type==null&&(I.type=F),P.push(I);break}L++}}return x.prevCapture="",P}return w.sort(function(y,x){let A=v[y].order,I=v[x].order;return A!==I?A-I:y<x?-1:1}),function(y,x){return E(function(A){return A.replace(X_,`
17
+ `).replace(eO,"").replace(hO," ")}(y),x)}}(f),p=(h=function(v,w){return function(E,y,x){const A=v[E.type].render;return w?w(()=>A(E,y,x),E,y,x):A(E,y,x)}}(f,t.renderRule),function v(w,E={}){if(Array.isArray(w)){const y=E.key,x=[];let A=!1;for(let I=0;I<w.length;I++){E.key=I;const P=v(w[I],E),F=typeof P=="string";F&&A?x[x.length-1]+=P:P!==null&&x.push(P),A=F}return E.key=y,x}return h(w,v,E)});var h;const b=i(e);return s.length?r("div",null,b,r("footer",{key:"footer"},s.map(function(v){return r("div",{id:t.slugify(v.identifier,Hi),key:v.identifier},v.identifier,p(d(v.footnote,{inline:!0})))}))):b}const Ga=e=>{let{children:t="",options:r}=e,i=function(a,s){if(a==null)return{};var l,f,d={},p=Object.keys(a);for(f=0;f<p.length;f++)s.indexOf(l=p[f])>=0||(d[l]=a[l]);return d}(e,W_);return C.cloneElement(BO(t,r),i)},zp=({kind:e,customIcon:t})=>{if(t)return $.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(mt.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(mt.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(mt.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(mt.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},HO=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:f}={})=>$.jsx("button",{onClick:t,className:ft("flex items-center justify-center p-1",f),children:$.jsx(mt.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:ft("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="string"?$.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[$.jsxs("div",{className:"flex items-center gap-1",children:[$.jsx(zp,{kind:r,customIcon:s}),a?$.jsx(Ga,{children:i}):$.jsx($.Fragment,{children:i})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(f=>f.messages.length>0).map(f=>$.jsxs($.Fragment,{children:[f.title&&$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(zp,{kind:r,customIcon:s}),$.jsxs("span",{children:[f.title," :"]})]}),$.jsx("ul",{className:ft("list-disc",{"px-12":f.title,"px-6":!f.title}),children:f.messages.map(d=>$.jsx("li",{children:a?$.jsx(Ga,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Iv=({children:e,size:t,className:r,...i})=>$.jsx("div",{style:{"--width":`${t||24}px`},className:ft("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var ba,qO=new Uint8Array(16);function Mv(){if(!ba&&(ba=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ba))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ba(qO)}const ZO=/^(?:[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;function as(e){return typeof e=="string"&&ZO.test(e)}var ht=[];for(var Xu=0;Xu<256;++Xu)ht.push((Xu+256).toString(16).substr(1));function ss(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(ht[e[t+0]]+ht[e[t+1]]+ht[e[t+2]]+ht[e[t+3]]+"-"+ht[e[t+4]]+ht[e[t+5]]+"-"+ht[e[t+6]]+ht[e[t+7]]+"-"+ht[e[t+8]]+ht[e[t+9]]+"-"+ht[e[t+10]]+ht[e[t+11]]+ht[e[t+12]]+ht[e[t+13]]+ht[e[t+14]]+ht[e[t+15]]).toLowerCase();if(!as(r))throw TypeError("Stringified UUID is invalid");return r}var Up,Ju,Qu=0,el=0;function GO(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||Up,l=e.clockseq!==void 0?e.clockseq:Ju;if(s==null||l==null){var f=e.random||(e.rng||Mv)();s==null&&(s=Up=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=Ju=(f[6]<<8|f[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:el+1,h=d-Qu+(p-el)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Qu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Qu=d,el=p,Ju=l,d+=122192928e5;var b=((d&268435455)*1e4+p)%4294967296;a[i++]=b>>>24&255,a[i++]=b>>>16&255,a[i++]=b>>>8&255,a[i++]=b&255;var v=d/4294967296*1e4&268435455;a[i++]=v>>>8&255,a[i++]=v&255,a[i++]=v>>>24&15|16,a[i++]=v>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var w=0;w<6;++w)a[i+w]=s[w];return t||ss(a)}function Fv(e){if(!as(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function KO(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var YO="6ba7b810-9dad-11d1-80b4-00c04fd430c8",VO="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Lv(e,t,r){function i(a,s,l,f){if(typeof a=="string"&&(a=KO(a)),typeof s=="string"&&(s=Fv(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){f=f||0;for(var p=0;p<16;++p)l[f+p]=d[p];return l}return ss(d)}try{i.name=e}catch{}return i.DNS=YO,i.URL=VO,i}function XO(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return JO(QO(eA(e),e.length*8))}function JO(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function $v(e){return(e+64>>>9<<4)+14+1}function QO(e,t){e[t>>5]|=128<<t%32,e[$v(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var f=r,d=i,p=a,h=s;r=St(r,i,a,s,e[l],7,-680876936),s=St(s,r,i,a,e[l+1],12,-389564586),a=St(a,s,r,i,e[l+2],17,606105819),i=St(i,a,s,r,e[l+3],22,-1044525330),r=St(r,i,a,s,e[l+4],7,-176418897),s=St(s,r,i,a,e[l+5],12,1200080426),a=St(a,s,r,i,e[l+6],17,-1473231341),i=St(i,a,s,r,e[l+7],22,-45705983),r=St(r,i,a,s,e[l+8],7,1770035416),s=St(s,r,i,a,e[l+9],12,-1958414417),a=St(a,s,r,i,e[l+10],17,-42063),i=St(i,a,s,r,e[l+11],22,-1990404162),r=St(r,i,a,s,e[l+12],7,1804603682),s=St(s,r,i,a,e[l+13],12,-40341101),a=St(a,s,r,i,e[l+14],17,-1502002290),i=St(i,a,s,r,e[l+15],22,1236535329),r=Et(r,i,a,s,e[l+1],5,-165796510),s=Et(s,r,i,a,e[l+6],9,-1069501632),a=Et(a,s,r,i,e[l+11],14,643717713),i=Et(i,a,s,r,e[l],20,-373897302),r=Et(r,i,a,s,e[l+5],5,-701558691),s=Et(s,r,i,a,e[l+10],9,38016083),a=Et(a,s,r,i,e[l+15],14,-660478335),i=Et(i,a,s,r,e[l+4],20,-405537848),r=Et(r,i,a,s,e[l+9],5,568446438),s=Et(s,r,i,a,e[l+14],9,-1019803690),a=Et(a,s,r,i,e[l+3],14,-187363961),i=Et(i,a,s,r,e[l+8],20,1163531501),r=Et(r,i,a,s,e[l+13],5,-1444681467),s=Et(s,r,i,a,e[l+2],9,-51403784),a=Et(a,s,r,i,e[l+7],14,1735328473),i=Et(i,a,s,r,e[l+12],20,-1926607734),r=xt(r,i,a,s,e[l+5],4,-378558),s=xt(s,r,i,a,e[l+8],11,-2022574463),a=xt(a,s,r,i,e[l+11],16,1839030562),i=xt(i,a,s,r,e[l+14],23,-35309556),r=xt(r,i,a,s,e[l+1],4,-1530992060),s=xt(s,r,i,a,e[l+4],11,1272893353),a=xt(a,s,r,i,e[l+7],16,-155497632),i=xt(i,a,s,r,e[l+10],23,-1094730640),r=xt(r,i,a,s,e[l+13],4,681279174),s=xt(s,r,i,a,e[l],11,-358537222),a=xt(a,s,r,i,e[l+3],16,-722521979),i=xt(i,a,s,r,e[l+6],23,76029189),r=xt(r,i,a,s,e[l+9],4,-640364487),s=xt(s,r,i,a,e[l+12],11,-421815835),a=xt(a,s,r,i,e[l+15],16,530742520),i=xt(i,a,s,r,e[l+2],23,-995338651),r=_t(r,i,a,s,e[l],6,-198630844),s=_t(s,r,i,a,e[l+7],10,1126891415),a=_t(a,s,r,i,e[l+14],15,-1416354905),i=_t(i,a,s,r,e[l+5],21,-57434055),r=_t(r,i,a,s,e[l+12],6,1700485571),s=_t(s,r,i,a,e[l+3],10,-1894986606),a=_t(a,s,r,i,e[l+10],15,-1051523),i=_t(i,a,s,r,e[l+1],21,-2054922799),r=_t(r,i,a,s,e[l+8],6,1873313359),s=_t(s,r,i,a,e[l+15],10,-30611744),a=_t(a,s,r,i,e[l+6],15,-1560198380),i=_t(i,a,s,r,e[l+13],21,1309151649),r=_t(r,i,a,s,e[l+4],6,-145523070),s=_t(s,r,i,a,e[l+11],10,-1120210379),a=_t(a,s,r,i,e[l+2],15,718787259),i=_t(i,a,s,r,e[l+9],21,-343485551),r=gn(r,f),i=gn(i,d),a=gn(a,p),s=gn(s,h)}return[r,i,a,s]}function eA(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array($v(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function gn(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function tA(e,t){return e<<t|e>>>32-t}function us(e,t,r,i,a,s){return gn(tA(gn(gn(t,e),gn(i,s)),a),r)}function St(e,t,r,i,a,s,l){return us(t&r|~t&i,e,t,a,s,l)}function Et(e,t,r,i,a,s,l){return us(t&i|r&~i,e,t,a,s,l)}function xt(e,t,r,i,a,s,l){return us(t^r^i,e,t,a,s,l)}function _t(e,t,r,i,a,s,l){return us(r^(t|~i),e,t,a,s,l)}var rA=Lv("v3",48,XO);function nA(e,t,r){e=e||{};var i=e.random||(e.rng||Mv)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return ss(i)}function iA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function tl(e,t){return e<<t|e>>>32-t}function oA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),f=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];f[d]=p}f[l-1][14]=(e.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(e.length-1)*8&4294967295;for(var b=0;b<l;++b){for(var v=new Uint32Array(80),w=0;w<16;++w)v[w]=f[b][w];for(var E=16;E<80;++E)v[E]=tl(v[E-3]^v[E-8]^v[E-14]^v[E-16],1);for(var y=r[0],x=r[1],A=r[2],I=r[3],P=r[4],F=0;F<80;++F){var O=Math.floor(F/20),L=tl(y,5)+iA(O,x,A,I)+P+t[O]+v[F]>>>0;P=I,I=A,A=tl(x,30)>>>0,x=y,y=L}r[0]=r[0]+y>>>0,r[1]=r[1]+x>>>0,r[2]=r[2]+A>>>0,r[3]=r[3]+I>>>0,r[4]=r[4]+P>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var aA=Lv("v5",80,oA);const sA="00000000-0000-0000-0000-000000000000";function uA(e){if(!as(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const lA=Object.freeze(Object.defineProperty({__proto__:null,NIL:sA,parse:Fv,stringify:ss,v1:GO,v3:rA,v4:nA,v5:aA,validate:as,version:uA},Symbol.toStringTag,{value:"Module"})),fA=I_(lA);function mf(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}mf.prototype.convert=function(e){var t,r,i,a={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,f=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<f;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<f;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);f=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};mf.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var cA=mf,dA=cA;function go(e,t){var r=new dA(e,t);return function(i){return r.convert(i)}}go.BIN="01";go.OCT="01234567";go.DEC="0123456789";go.HEX="0123456789abcdef";var pA=go;const{v4:rl}=fA,Sa=pA,nl="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",hA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",vA={consistentLength:!0};let il;const Bp=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},mA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},gA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var gf=(()=>{const e=(t,r)=>{const i=t||nl,a={...vA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=gA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},f=Sa(Sa.HEX,i),d=Sa(i,Sa.HEX),p=()=>Bp(rl(),f,l),h={new:p,generate:p,uuid:rl,fromUUID:b=>Bp(b,f,l),toUUID:b=>mA(b,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:nl,cookieBase90:hA},e.uuid=rl,e.generate=()=>(il||(il=e(nl).generate),il()),e})();const Dv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:a="rgb(241, 245, 249)"})=>{const s=`indent_line_${gf.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[$.jsx("defs",{children:$.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:a})})}),i?$.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):$.jsx("rect",{fill:i?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},kv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return $.jsx(mt.FdDown,{className:ft(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?$.jsx(mt.FdDown,{}):$.jsx(mt.FdRight,{});default:return $.jsx(mt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),yf=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:f})=>{var w;const{key:d,children:p}=e,h=D.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),b=l&&typeof l=="function"?l(e,t,h,a,s):bA(e,t,h,f);return!((w=e.options)!=null&&w.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:b},d),wA(p||[],t,s,r,i,h.expanded,a,f,l)]}):null},yA=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=$.jsx(Iv,{children:i})),$.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,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},wA=function(e,t,r,i,a,s,l,f,d){return e.length&&s?e.map(p=>$.jsx(yf,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:f,renderNode:d},p.key)):null},bA=function(e,t,r,i){return $.jsxs($.Fragment,{children:[$.jsx(Dv,{showLines:!0,depth:t}),$.jsx(kv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),yA(e,i)]})},Ea=e=>t=>e===t,SA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:f="always",encapsulated:d,className:p}){const[h,b]=D.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));D.useEffect(()=>{f==="when-collapsed"&&h.expandedKeys.length>0||b({...h,expandedKeys:l||h.expandedKeys})},[l]);const v=D.useCallback(A=>{if(!A)return;const I=h.expandedKeys.findIndex(Ea(A.key));let P=[];I===-1?(P=[...h.expandedKeys,A.key],b(()=>({...h,expandedKeys:P})),a&&a(P)):(P=h.expandedKeys.filter(F=>F!==A.key),b(()=>({...h,expandedKeys:P})),a&&a(P))},[h]),w=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable))return;h.selectedKeys.findIndex(Ea(A.key))===-1&&b({...h,selectedKeys:[...h.selectedKeys,A.key]})},[h]),E=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable))return;h.selectedKeys.findIndex(Ea(A.key))===-1&&b({...h,selectedKeys:[A.key]})},[h]),y=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable)){b({...h,selectedKeys:[]});return}h.selectedKeys.findIndex(Ea(A.key))!==-1&&b({...h,selectedKeys:h.selectedKeys.filter(F=>F!==A.key)})},[h]),x=D.useMemo(()=>({expand:v,select:w,selectSingle:E,deselect:y}),[y,v,w,E]);return $.jsx("div",{className:ft("fd-tree",p,{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(A=>$.jsx(yf,{node:A,searchQuery:s||"",depth:0,expandedKeys:h.expandedKeys,selectedKeys:h.selectedKeys,actions:x,renderNode:r,onNodeClick:i},A.key))})};function EA(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function Qe(){return Qe=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},Qe.apply(null,arguments)}function xA(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 _A={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 Nv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var OA=/[A-Z]|^ms/g,AA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jv=function(t){return t.charCodeAt(1)===45},Hp=function(t){return t!=null&&typeof t!="boolean"},ol=Nv(function(e){return jv(e)?e:e.replace(OA,"-$&").toLowerCase()}),qp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(AA,function(i,a,s){return Or={name:a,styles:s,next:Or},a})}return _A[t]!==1&&!jv(t)&&typeof r=="number"&&r!==0?r+"px":r};function oo(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 Or={name:a.name,styles:a.styles,next:Or},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Or={name:l.name,styles:l.styles,next:Or},l=l.next;var f=s.styles+";";return f}return TA(e,t,r)}case"function":{if(e!==void 0){var d=Or,p=r(e);return Or=d,oo(e,t,p)}break}}var h=r;if(t==null)return h;var b=t[h];return b!==void 0?b:h}function TA(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=oo(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var f=l;t!=null&&t[f]!==void 0?i+=s+"{"+t[f]+"}":Hp(f)&&(i+=ol(s)+":"+qp(s,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)Hp(l[d])&&(i+=ol(s)+":"+qp(s,l[d])+";");else{var p=oo(e,t,l);switch(s){case"animation":case"animationName":{i+=ol(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var Zp=/label:\s*([^\s;{]+)\s*(;|$)/g,Or;function CA(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="";Or=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=oo(r,t,s);else{var l=s;a+=l[0]}for(var f=1;f<e.length;f++)if(a+=oo(r,t,e[f]),i){var d=s;a+=d[f]}Zp.lastIndex=0;for(var p="",h;(h=Zp.exec(a))!==null;)p+="-"+h[1];var b=xA(a)+p;return{name:b,styles:a,next:Or}}var PA=function(t){return t()},RA=C.useInsertionEffect?C.useInsertionEffect:!1,IA=RA||PA,MA=!0;function FA(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||MA===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},LA=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)}},$A=/^((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|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)-.*))$/,DA=Nv(function(e){return $A.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),kA=DA,NA=function(t){return t!=="theme"},Gp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?kA:NA},Kp=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},jA=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return Wv(r,i,a),IA(function(){return LA(r,i,a)}),null},WA=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 f=Kp(t,r,i),d=f||Gp(a),p=!d("as");return function(){var h=arguments,b=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)b.push.apply(b,h);else{var v=h[0];b.push(v[0]);for(var w=h.length,E=1;E<w;E++)b.push(h[E],v[E])}var y=Ml.withEmotionCache(function(x,A,I){var P=p&&x.as||a,F="",O=[],L=x;if(x.theme==null){L={};for(var U in x)L[U]=x[U];L.theme=C.useContext(Ml.ThemeContext)}typeof x.className=="string"?F=FA(A.registered,O,x.className):x.className!=null&&(F=x.className+" ");var z=CA(b.concat(O),A.registered,L);F+=A.key+"-"+z.name,l!==void 0&&(F+=" "+l);var q=p&&f===void 0?Gp(P):d,V={};for(var ee in x)p&&ee==="as"||q(ee)&&(V[ee]=x[ee]);return V.className=F,I&&(V.ref=I),C.createElement(C.Fragment,null,C.createElement(jA,{cache:A,serialized:z,isStringTag:typeof P=="string"}),C.createElement(P,V))});return y.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=b,y.__emotion_forwardProp=f,Object.defineProperty(y,"toString",{value:function(){return"."+l}}),y.withComponent=function(x,A){var I=e(x,Qe({},r,A,{shouldForwardProp:Kp(y,A,!0)}));return I.apply(void 0,b)},y}},zA=["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"],Ka=WA.bind(null);zA.forEach(function(e){Ka[e]=Ka(e)});var UA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},di=new WeakMap,xa=new WeakMap,_a={},al=0,zv=function(e){return e&&(e.host||zv(e.parentNode))},BA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=zv(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})},HA=function(e,t,r,i){var a=BA(t,Array.isArray(e)?e:[e]);_a[r]||(_a[r]=new WeakMap);var s=_a[r],l=[],f=new Set,d=new Set(a),p=function(b){!b||f.has(b)||(f.add(b),p(b.parentNode))};a.forEach(p);var h=function(b){!b||d.has(b)||Array.prototype.forEach.call(b.children,function(v){if(f.has(v))h(v);else try{var w=v.getAttribute(i),E=w!==null&&w!=="false",y=(di.get(v)||0)+1,x=(s.get(v)||0)+1;di.set(v,y),s.set(v,x),l.push(v),y===1&&E&&xa.set(v,!0),x===1&&v.setAttribute(r,"true"),E||v.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",v,A)}})};return h(t),f.clear(),al++,function(){l.forEach(function(b){var v=di.get(b)-1,w=s.get(b)-1;di.set(b,v),s.set(b,w),v||(xa.has(b)||b.removeAttribute(i),xa.delete(b)),w||b.removeAttribute(r)}),al--,al||(di=new WeakMap,di=new WeakMap,xa=new WeakMap,_a={})}},qA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=UA(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),HA(i,a,r,"aria-hidden")):function(){return null}};/*! *****************************************************************************
18
18
  Copyright (c) Microsoft Corporation.
19
19
 
20
20
  Permission to use, copy, modify, and/or distribute this software for any
@@ -27,8 +27,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
27
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
28
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
29
  PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */var mi=function(){return mi=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},mi.apply(this,arguments)};function qA(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}var Wa="right-scroll-bar-position",za="width-before-scroll-bar",ZA="with-scroll-bars-hidden",GA="--removed-body-scroll-bar-size",kl=function(e,t){return kl=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])},kl(e,t)};function ls(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ya=function(){return Ya=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},Ya.apply(this,arguments)};function KA(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 Nl(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 jl(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(f){l={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function Wl(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))}function YA(e){return e}function VA(e,t){t===void 0&&(t=YA);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(f){return f!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var f=r;r=[],f.forEach(s),l=r}var d=function(){var h=l;l=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return a}function XA(e){e===void 0&&(e={});var t=VA(null);return t.options=Ya({async:!0,ssr:!1},e),t}var Uv=function(e){var t=e.sideCar,r=KA(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 T.createElement(i,Ya({},r))};Uv.isSideCarExport=!0;function JA(e,t){return e.useMedium(t),Uv}var Bv=XA();function sl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function QA(e,t){var r=D.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 eT=typeof window<"u"?T.useLayoutEffect:T.useEffect,Yp=new WeakMap;function tT(e,t){var r=QA(null,function(i){return e.forEach(function(a){return sl(a,i)})});return eT(function(){var i=Yp.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(f){s.has(f)||sl(f,null)}),s.forEach(function(f){a.has(f)||sl(f,l)})}Yp.set(r,e)},[e]),r}var ul=function(){},fs=T.forwardRef(function(e,t){var r=T.useRef(null),i=T.useState({onScrollCapture:ul,onWheelCapture:ul,onTouchMoveCapture:ul}),a=i[0],s=i[1],l=e.forwardProps,f=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,S=e.shards,v=e.sideCar,w=e.noIsolation,x=e.inert,y=e.allowPinchZoom,E=e.as,P=E===void 0?"div":E,C=qA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),I=v,F=tT([r,t]),O=mi({},C,a);return T.createElement(T.Fragment,null,h&&T.createElement(I,{sideCar:Bv,removeScrollBar:p,shards:S,noIsolation:w,inert:x,setCallbacks:s,allowPinchZoom:!!y,lockRef:r}),l?T.cloneElement(T.Children.only(f),mi({},O,{ref:F})):T.createElement(P,mi({},O,{className:d,ref:F}),f))});fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fs.classNames={fullWidth:za,zeroRight:Wa};var rT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rT();return t&&e.setAttribute("nonce",t),e}function iT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=nT())&&(iT(t,r),oT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sT=function(){var e=aT();return function(t,r){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Hv=function(){var e=sT(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},uT={left:0,top:0,right:0,gap:0},ll=function(e){return parseInt(e||"",10)||0},lT=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)]},fT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uT;var t=lT(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])}},cT=Hv(),gi="data-scroll-locked",dT=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,f=e.gap;return r===void 0&&(r="margin"),`
31
- .`.concat(ZA,` {
30
+ ***************************************************************************** */var mi=function(){return mi=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},mi.apply(this,arguments)};function ZA(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}var Wa="right-scroll-bar-position",za="width-before-scroll-bar",GA="with-scroll-bars-hidden",KA="--removed-body-scroll-bar-size",kl=function(e,t){return kl=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])},kl(e,t)};function ls(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ya=function(){return Ya=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},Ya.apply(this,arguments)};function YA(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 Nl(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 jl(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(f){l={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function Wl(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))}function VA(e){return e}function XA(e,t){t===void 0&&(t=VA);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(f){return f!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var f=r;r=[],f.forEach(s),l=r}var d=function(){var h=l;l=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return a}function JA(e){e===void 0&&(e={});var t=XA(null);return t.options=Ya({async:!0,ssr:!1},e),t}var Uv=function(e){var t=e.sideCar,r=YA(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 C.createElement(i,Ya({},r))};Uv.isSideCarExport=!0;function QA(e,t){return e.useMedium(t),Uv}var Bv=JA();function sl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eT(e,t){var r=D.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 tT=typeof window<"u"?C.useLayoutEffect:C.useEffect,Yp=new WeakMap;function rT(e,t){var r=eT(null,function(i){return e.forEach(function(a){return sl(a,i)})});return tT(function(){var i=Yp.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(f){s.has(f)||sl(f,null)}),s.forEach(function(f){a.has(f)||sl(f,l)})}Yp.set(r,e)},[e]),r}var ul=function(){},fs=C.forwardRef(function(e,t){var r=C.useRef(null),i=C.useState({onScrollCapture:ul,onWheelCapture:ul,onTouchMoveCapture:ul}),a=i[0],s=i[1],l=e.forwardProps,f=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,b=e.shards,v=e.sideCar,w=e.noIsolation,E=e.inert,y=e.allowPinchZoom,x=e.as,A=x===void 0?"div":x,I=ZA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=v,F=rT([r,t]),O=mi({},I,a);return C.createElement(C.Fragment,null,h&&C.createElement(P,{sideCar:Bv,removeScrollBar:p,shards:b,noIsolation:w,inert:E,setCallbacks:s,allowPinchZoom:!!y,lockRef:r}),l?C.cloneElement(C.Children.only(f),mi({},O,{ref:F})):C.createElement(A,mi({},O,{className:d,ref:F}),f))});fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fs.classNames={fullWidth:za,zeroRight:Wa};var nT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nT();return t&&e.setAttribute("nonce",t),e}function oT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=iT())&&(oT(t,r),aT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uT=function(){var e=sT();return function(t,r){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Hv=function(){var e=uT(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},lT={left:0,top:0,right:0,gap:0},ll=function(e){return parseInt(e||"",10)||0},fT=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)]},cT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lT;var t=fT(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])}},dT=Hv(),gi="data-scroll-locked",pT=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,f=e.gap;return r===void 0&&(r="margin"),`
31
+ .`.concat(GA,` {
32
32
  overflow: hidden `).concat(i,`;
33
33
  padding-right: `).concat(f,"px ").concat(i,`;
34
34
  }
@@ -62,40 +62,40 @@ PERFORMANCE OF THIS SOFTWARE.
62
62
  }
63
63
 
64
64
  body[`).concat(gi,`] {
65
- `).concat(GA,": ").concat(f,`px;
65
+ `).concat(KA,": ").concat(f,`px;
66
66
  }
67
- `)},Vp=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},pT=function(){T.useEffect(function(){return document.body.setAttribute(gi,(Vp()+1).toString()),function(){var e=Vp()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},hT=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;pT();var s=T.useMemo(function(){return fT(a)},[a]);return T.createElement(cT,{styles:dT(s,!t,a,r?"":"!important")})},vT=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},mT=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Xp=function(e,t){var r=t;do{var i=qv(e,r);if(i){var a=Zv(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},gT=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},yT=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},qv=function(e,t){return e==="v"?vT(t):mT(t)},Zv=function(e,t){return e==="v"?gT(t):yT(t)},wT=function(e,t,r,i,a){var s=i,l=r.target,f=t.contains(l),d=!1,p=s>0,h=0,S=0;do{var v=Zv(e,l),w=v[0],x=v[1],y=v[2],E=x-y-w;(w||E)&&qv(e,l)&&(h+=E,S+=w),l=l.parentNode}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(p&&h===0||!p&&S===0)&&(d=!0),d},zl=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return zl=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{zl=!1}var pi=zl?{passive:!1}:!1,Aa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jp=function(e){return[e.deltaX,e.deltaY]},Qp=function(e){return e&&"current"in e?e.current:e},bT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ST=function(e){return`
67
+ `)},Vp=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},hT=function(){C.useEffect(function(){return document.body.setAttribute(gi,(Vp()+1).toString()),function(){var e=Vp()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},vT=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;hT();var s=C.useMemo(function(){return cT(a)},[a]);return C.createElement(dT,{styles:pT(s,!t,a,r?"":"!important")})},mT=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},gT=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Xp=function(e,t){var r=t;do{var i=qv(e,r);if(i){var a=Zv(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},yT=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},wT=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},qv=function(e,t){return e==="v"?mT(t):gT(t)},Zv=function(e,t){return e==="v"?yT(t):wT(t)},bT=function(e,t,r,i,a){var s=i,l=r.target,f=t.contains(l),d=!1,p=s>0,h=0,b=0;do{var v=Zv(e,l),w=v[0],E=v[1],y=v[2],x=E-y-w;(w||x)&&qv(e,l)&&(h+=x,b+=w),l=l.parentNode}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(p&&h===0||!p&&b===0)&&(d=!0),d},zl=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return zl=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{zl=!1}var pi=zl?{passive:!1}:!1,Aa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jp=function(e){return[e.deltaX,e.deltaY]},Qp=function(e){return e&&"current"in e?e.current:e},ST=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ET=function(e){return`
68
68
  .block-interactivity-`+e+` {pointer-events: none;}
69
69
  .allow-interactivity-`+e+` {pointer-events: all;}
70
- `},ET=0,hi=[];function xT(e){var t=T.useRef([]),r=T.useRef([0,0]),i=T.useRef(),a=T.useState(ET++)[0],s=T.useState(function(){return Hv()})[0],l=T.useRef(e);T.useEffect(function(){l.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+a);var y=[e.lockRef.current].concat((e.shards||[]).map(Qp)).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-"+a)}),function(){document.body.classList.remove("block-interactivity-"+a),y.forEach(function(E){return E.classList.remove("allow-interactivity-"+a)})}}},[e.inert,e.lockRef.current,e.shards]);var f=T.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var P=Aa(y),C=r.current,I="deltaX"in y?y.deltaX:C[0]-P[0],F="deltaY"in y?y.deltaY:C[1]-P[1],O,L=y.target,U=Math.abs(I)>Math.abs(F)?"h":"v",z=Xp(U,L);if(!z)return!0;if(z?O=U:(O=U==="v"?"h":"v",z=Xp(U,L)),!z)return!1;if(!i.current&&"changedTouches"in y&&(I||F)&&(i.current=O),!O)return!0;var q=i.current||O;return wT(q,E,y,q==="h"?I:F)},[]),d=T.useCallback(function(y){var E=y;if(!(!hi.length||hi[hi.length-1]!==s)){var P="deltaY"in E?Jp(E):Aa(E),C=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&bT(O.delta,P)})[0];if(C&&C.should){E.preventDefault();return}if(!C){var I=(l.current.shards||[]).map(Qp).filter(Boolean).filter(function(O){return O.contains(E.target)}),F=I.length>0?f(E,I[0]):!l.current.noIsolation;F&&E.preventDefault()}}},[]),p=T.useCallback(function(y,E,P,C){var I={name:y,delta:E,target:P,should:C};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(F){return F!==I})},1)},[]),h=T.useCallback(function(y){r.current=Aa(y),i.current=void 0},[]),S=T.useCallback(function(y){p(y.type,Jp(y),y.target,f(y,e.lockRef.current))},[]),v=T.useCallback(function(y){p(y.type,Aa(y),y.target,f(y,e.lockRef.current))},[]);T.useEffect(function(){return hi.push(s),e.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:v}),document.addEventListener("wheel",d,pi),document.addEventListener("touchmove",d,pi),document.addEventListener("touchstart",h,pi),function(){hi=hi.filter(function(y){return y!==s}),document.removeEventListener("wheel",d,pi),document.removeEventListener("touchmove",d,pi),document.removeEventListener("touchstart",h,pi)}},[]);var w=e.removeScrollBar,x=e.inert;return T.createElement(T.Fragment,null,x?T.createElement(s,{styles:ST(a)}):null,w?T.createElement(hT,{gapMode:"margin"}):null)}const _T=JA(Bv,xT);var Gv=T.forwardRef(function(e,t){return T.createElement(fs,mi({},e,{ref:t,sideCar:_T}))});Gv.classNames=fs.classNames;const ao=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},OT=T.useId||(()=>{});let AT=0;function TT(e){const[t,r]=T.useState(OT());return ao(()=>{r(i=>i??String(AT++))},[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 Oi(...e){return T.useCallback(Kv(...e),e)}const Yv=T.forwardRef((e,t)=>{const{children:r,...i}=e;return T.Children.toArray(r).some(eh)?T.createElement(T.Fragment,null,T.Children.map(r,a=>eh(a)?T.createElement(Ul,Qe({},i,{ref:t}),a.props.children):a)):T.createElement(Ul,Qe({},i,{ref:t}),r)});Yv.displayName="Slot";const Ul=T.forwardRef((e,t)=>{const{children:r,...i}=e;return T.isValidElement(r)?T.cloneElement(r,{...PT(i,r.props),ref:Kv(t,r.ref)}):T.Children.count(r)>1?T.Children.only(null):null});Ul.displayName="SlotClone";const CT=({children:e})=>T.createElement(T.Fragment,null,e);function eh(e){return T.isValidElement(e)&&e.type===CT}function PT(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 yo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:T.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Yv:t;return T.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),T.createElement(l,Qe({},s,{ref:i}))})}),{}),Vv=e=>{const{present:t,children:r}=e,i=function(l){const[f,d]=T.useState(),p=T.useRef({}),h=T.useRef(l),S=T.useRef("none"),v=l?"mounted":"unmounted",[w,x]=function(y,E){return T.useReducer((P,C)=>{const I=E[P][C];return I??P},y)}(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const y=Ta(p.current);S.current=w==="mounted"?y:"none"},[w]),ao(()=>{const y=p.current,E=h.current;if(E!==l){const P=S.current,C=Ta(y);l?x("MOUNT"):C==="none"||(y==null?void 0:y.display)==="none"?x("UNMOUNT"):x(E&&P!==C?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,x]),ao(()=>{if(f){const y=P=>{const C=Ta(p.current).includes(P.animationName);P.target===f&&C&&x("ANIMATION_END")},E=P=>{P.target===f&&(S.current=Ta(p.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}x("ANIMATION_END")},[f,x]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:T.useCallback(y=>{y&&(p.current=getComputedStyle(y)),d(y)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):T.Children.only(r),s=Oi(i.ref,a.ref);return typeof r=="function"||i.isPresent?T.cloneElement(a,{ref:s}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Vv.displayName="Presence";let fl=0;function RT(){T.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:th()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:th()),fl++,()=>{fl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),fl--}},[])}function th(){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 Xv=T.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,f=(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,[,d]=T.useState({});return ao(()=>{d({})},[]),f?ho.createPortal(T.createElement(yo.div,Qe({"data-radix-portal":""},l,{ref:t,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),f):null});function rh(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function Jv(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function IT(...e){return T.useCallback(Jv(...e),e)}const Qv=T.forwardRef((e,t)=>{const{children:r,...i}=e;return T.Children.toArray(r).some(nh)?T.createElement(T.Fragment,null,T.Children.map(r,a=>nh(a)?T.createElement(Bl,Qe({},i,{ref:t}),a.props.children):a)):T.createElement(Bl,Qe({},i,{ref:t}),r)});Qv.displayName="Slot";const Bl=T.forwardRef((e,t)=>{const{children:r,...i}=e;return T.isValidElement(r)?T.cloneElement(r,{...FT(i,r.props),ref:Jv(t,r.ref)}):T.Children.count(r)>1?T.Children.only(null):null});Bl.displayName="SlotClone";const MT=({children:e})=>T.createElement(T.Fragment,null,e);function nh(e){return T.isValidElement(e)&&e.type===MT}function FT(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 LT=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:T.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Qv:t;return T.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),T.createElement(l,Qe({},s,{ref:i}))})}),{}),ih={bubbles:!1,cancelable:!0},$T=T.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[f,d]=T.useState(null),p=rh(a),h=rh(s),S=T.useRef(null),v=IT(t,y=>d(y)),w=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(i){let y=function(P){if(w.paused||!f)return;const C=P.target;f.contains(C)?S.current=C:Ln(S.current,{select:!0})},E=function(P){!w.paused&&f&&(f.contains(P.relatedTarget)||Ln(S.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[i,f,w.paused]),T.useEffect(()=>{if(f){sh.add(w);const E=document.activeElement;if(!f.contains(E)){const P=new Event("focusScope.autoFocusOnMount",ih);f.addEventListener("focusScope.autoFocusOnMount",p),f.dispatchEvent(P),P.defaultPrevented||(function(C,{select:I=!1}={}){const F=document.activeElement;for(const O of C)if(Ln(O,{select:I}),document.activeElement!==F)return}((y=oh(f),y.filter(C=>C.tagName!=="A")),{select:!0}),document.activeElement===E&&Ln(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const P=new Event("focusScope.autoFocusOnUnmount",ih);f.addEventListener("focusScope.autoFocusOnUnmount",h),f.dispatchEvent(P),P.defaultPrevented||Ln(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",h),sh.remove(w)},0)}}var y},[f,p,h,w]);const x=T.useCallback(y=>{if(!r&&!i||w.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,P=document.activeElement;if(E&&P){const C=y.currentTarget,[I,F]=function(O){const L=oh(O),U=ah(L,O),z=ah(L.reverse(),O);return[U,z]}(C);I&&F?y.shiftKey||P!==F?y.shiftKey&&P===I&&(y.preventDefault(),r&&Ln(F,{select:!0})):(y.preventDefault(),r&&Ln(I,{select:!0})):P===C&&y.preventDefault()}},[r,i,w.paused]);return T.createElement(LT.div,Qe({tabIndex:-1},l,{ref:v,onKeyDown:x}))});function oh(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 ah(e,t){for(const r of e)if(!DT(r,{upTo:t}))return r}function DT(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 Ln(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 sh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=uh(e,t),e.unshift(t)},remove(t){var r;e=uh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function uh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function so(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function kT(e){const t=so(e);T.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let lh,Ca=0;function NT({disabled:e}){const t=T.useRef(!1);ao(()=>{if(e){let r=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=lh)},i=function(a){t.current=a.pointerType!=="mouse"};return Ca===0&&(lh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function Bn(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 jT=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),WT=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:f,...d}=e,p=T.useContext(jT),[h,S]=T.useState(null),[,v]=T.useState({}),w=Oi(t,L=>S(L)),x=Array.from(p.layers),[y]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(y),P=h?x.indexOf(h):-1,C=p.layersWithOutsidePointerEventsDisabled.size>0,I=P>=E,F=function(L){const U=so(L),z=T.useRef(!1);return T.useEffect(()=>{const q=ee=>{ee.target&&!z.current&&ch("dismissableLayer.pointerDownOutside",U,{originalEvent:ee}),z.current=!1},V=window.setTimeout(()=>{document.addEventListener("pointerdown",q)},0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",q)}},[U]),{onPointerDownCapture:()=>z.current=!0}}(L=>{const U=L.target,z=[...p.branches].some(q=>q.contains(U));I&&!z&&(a==null||a(L),l==null||l(L),L.defaultPrevented||f==null||f())}),O=function(L){const U=so(L),z=T.useRef(!1);return T.useEffect(()=>{const q=V=>{V.target&&!z.current&&ch("dismissableLayer.focusOutside",U,{originalEvent:V})};return document.addEventListener("focusin",q),()=>document.removeEventListener("focusin",q)},[U]),{onFocusCapture:()=>z.current=!0,onBlurCapture:()=>z.current=!1}}(L=>{const U=L.target;[...p.branches].some(z=>z.contains(U))||(s==null||s(L),l==null||l(L),L.defaultPrevented||f==null||f())});return kT(L=>{P===p.layers.size-1&&(i==null||i(L),L.defaultPrevented||f==null||f())}),NT({disabled:r}),T.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),fh())},[h,r,p]),T.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),fh())},[h,p]),T.useEffect(()=>{const L=()=>v({});return document.addEventListener("dismissableLayer.update",L),()=>document.removeEventListener("dismissableLayer.update",L)},[]),T.createElement(yo.div,Qe({},d,{ref:w,style:{pointerEvents:C?I?"auto":"none":void 0,...e.style},onFocusCapture:Bn(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Bn(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Bn(e.onPointerDownCapture,F.onPointerDownCapture)}))});function fh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function ch(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 dh(e){const[t,r]=T.useState(void 0);return T.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,f;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,f=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}r({width:l,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function zT(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(Hl=requestAnimationFrame(em))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(Hl))}}let Hl;const Dn=new Map;function em(){const e=[];Dn.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))}),Hl=requestAnimationFrame(em)}function UT(e){const[t,r]=T.useState();return T.useEffect(()=>{if(e){const i=zT(e,r);return()=>{r(void 0),i()}}},[e]),t}function tm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>T.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return T.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=T.createContext(s),f=r.length;function d(p){const{scope:h,children:S,...v}=p,w=(h==null?void 0:h[e][f])||l,x=T.useMemo(()=>v,Object.values(v));return T.createElement(w.Provider,{value:x},S)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const S=(h==null?void 0:h[e][f])||l,v=T.useContext(S);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},BT(i,...t)]}function BT(...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:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function HT({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:qT,arrowStyles:cl};const S=function(U,z,q=0,V=0,ee){const be=ee?ee.height:0,pe=ph(z,U,"x"),Ae=ph(z,U,"y"),Ne=Ae.before-q-be,ve=Ae.after+q+be,Te=pe.before-q-be,Ge=pe.after+q+be;return{top:{start:{x:pe.start+V,y:Ne},center:{x:pe.center,y:Ne},end:{x:pe.end-V,y:Ne}},right:{start:{x:Ge,y:Ae.start+V},center:{x:Ge,y:Ae.center},end:{x:Ge,y:Ae.end-V}},bottom:{start:{x:pe.start+V,y:ve},center:{x:pe.center,y:ve},end:{x:pe.end-V,y:ve}},left:{start:{x:Te,y:Ae.start+V},center:{x:Te,y:Ae.center},end:{x:Te,y:Ae.end-V}}}}(t,e,s,f,r),v=S[a][l];if(d===!1){const U=hh(v);let z=cl;return r&&(z=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":vh(t,a,l,i,r)},arrowStyles:z,placedSide:a,placedAlign:l}}const w=DOMRect.fromRect({...t,...v}),x=(y=p,E=h,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const P=yh(w,x),C=S[gh(a)][l],I=function(U,z,q){const V=gh(U);return z[U]&&!q[V]?V:U}(a,P,yh(DOMRect.fromRect({...t,...C}),x)),F=function(U,z,q,V,ee){const be=q==="top"||q==="bottom",pe=be?"left":"top",Ae=be?"right":"bottom",Ne=be?"width":"height",ve=z[Ne]>U[Ne];return(V==="start"||V==="center")&&(ee[pe]&&ve||ee[Ae]&&!ve)?"end":(V==="end"||V==="center")&&(ee[Ae]&&ve||ee[pe]&&!ve)?"start":V}(t,e,a,l,P),O=hh(S[I][F]);let L=cl;return r&&(L=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:I,align:F})),{popperStyles:{...O,"--radix-popper-transform-origin":vh(t,I,F,i,r)},arrowStyles:L,placedSide:I,placedAlign:F}}function ph(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 hh(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 vh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+f}px`:-f+"px"):(p=t==="left"?`${e.width+f}px`:-f+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const qT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},cl={position:"absolute",opacity:0};function mh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,f={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:ZT(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function ZT(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function gh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function yh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[rm,nm]=tm("Popper"),[GT,im]=rm("Popper"),KT=e=>{const{__scopePopper:t,children:r}=e,[i,a]=T.useState(null);return T.createElement(GT,{scope:t,anchor:i,onAnchorChange:a},r)},YT=T.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=im("PopperAnchor",r),l=T.useRef(null),f=Oi(t,l);return T.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:T.createElement(yo.div,Qe({},a,{ref:f}))}),[VT,TM]=rm("PopperContent"),XT=T.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...p}=e,h=im("PopperContent",r),[S,v]=T.useState(),w=UT(h.anchor),[x,y]=T.useState(null),E=dh(x),[P,C]=T.useState(null),I=dh(P),F=Oi(t,be=>y(be)),O=function(){const[be,pe]=T.useState(void 0);return T.useEffect(()=>{let Ae;function Ne(){pe({width:window.innerWidth,height:window.innerHeight})}function ve(){window.clearTimeout(Ae),Ae=window.setTimeout(Ne,100)}return Ne(),window.addEventListener("resize",ve),()=>window.removeEventListener("resize",ve)},[]),be}(),L=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:z,placedSide:q,placedAlign:V}=HT({anchorRect:w,popperSize:E,arrowSize:I,arrowOffset:S,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:L,collisionTolerance:f}),ee=q!==void 0;return T.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},T.createElement(VT,{scope:r,arrowStyles:z,onArrowChange:C,onArrowOffsetChange:v},T.createElement(yo.div,Qe({"data-side":q,"data-align":V},p,{style:{...p.style,animation:ee?void 0:"none"},ref:F}))))}),JT=KT,QT=YT,eC=XT;function tC({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=T.useState(d),[S]=h,v=T.useRef(S),w=so(p);return T.useEffect(()=>{v.current!==S&&(w(S),v.current=S)},[S,v,w]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,f=so(r);return[l,T.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&f(h)}else a(d)},[s,e,a,f])]}const[rC,CM]=tm("Popover",[nm]),wf=nm(),[nC,wo]=rC("Popover"),iC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,f=wf(t),d=T.useRef(null),[p,h]=T.useState(!1),[S=!1,v]=tC({prop:i,defaultProp:a,onChange:s});return T.createElement(JT,f,T.createElement(nC,{scope:t,contentId:TT(),triggerRef:d,open:S,onOpenChange:v,onOpenToggle:T.useCallback(()=>v(w=>!w),[v]),hasCustomAnchor:p,onCustomAnchorAdd:T.useCallback(()=>h(!0),[]),onCustomAnchorRemove:T.useCallback(()=>h(!1),[]),modal:l},r))},oC=T.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=wo("PopoverTrigger",r),s=wf(r),l=Oi(t,a.triggerRef),f=T.createElement(yo.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":am(a.open)},i,{ref:l,onClick:Bn(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:T.createElement(QT,Qe({asChild:!0},s),f)}),aC=T.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=wo("PopoverContent",e.__scopePopover);return T.createElement(Vv,{present:r||a.open},a.modal?T.createElement(sC,Qe({},i,{ref:t})):T.createElement(uC,Qe({},i,{ref:t})))}),sC=T.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=wo("PopoverContent",e.__scopePopover),l=T.useRef(null),f=Oi(t,l),d=T.useRef(!1);T.useEffect(()=>{const h=l.current;if(h)return HA(h)},[]);const p=i?Xv:T.Fragment;return T.createElement(p,null,T.createElement(Gv,{allowPinchZoom:r},T.createElement(om,Qe({},a,{ref:f,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bn(e.onCloseAutoFocus,h=>{var S;h.preventDefault(),d.current||(S=s.triggerRef.current)===null||S===void 0||S.focus()}),onPointerDownOutside:Bn(e.onPointerDownOutside,h=>{const S=h.detail.originalEvent,v=S.button===0&&S.ctrlKey===!0,w=S.button===2||v;d.current=w},{checkForDefaultPrevented:!1}),onFocusOutside:Bn(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),uC=T.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=wo("PopoverContent",e.__scopePopover),s=T.useRef(!1),l=r?Xv:T.Fragment;return T.createElement(l,null,T.createElement(om,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),f.preventDefault()),s.current=!1},onInteractOutside:f=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current=!0);const h=f.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&f.preventDefault()}})))}),om=T.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...S}=e,v=wo("PopoverContent",r),w=wf(r);return RT(),T.createElement($T,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},T.createElement(WT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1)},T.createElement(eC,Qe({"data-state":am(v.open),role:"dialog",id:v.contentId},w,S,{ref:t,style:{...S.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function am(e){return e?"open":"closed"}const lC=iC,fC=oC,cC=aC;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{}),sm={},cs={},bf={},dl={},Pa={exports:{}},Ra={exports:{}},Me={};/** @license React v16.13.1
70
+ `},xT=0,hi=[];function _T(e){var t=C.useRef([]),r=C.useRef([0,0]),i=C.useRef(),a=C.useState(xT++)[0],s=C.useState(function(){return Hv()})[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+a);var y=[e.lockRef.current].concat((e.shards||[]).map(Qp)).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-"+a)}),function(){document.body.classList.remove("block-interactivity-"+a),y.forEach(function(x){return x.classList.remove("allow-interactivity-"+a)})}}},[e.inert,e.lockRef.current,e.shards]);var f=C.useCallback(function(y,x){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var A=Aa(y),I=r.current,P="deltaX"in y?y.deltaX:I[0]-A[0],F="deltaY"in y?y.deltaY:I[1]-A[1],O,L=y.target,U=Math.abs(P)>Math.abs(F)?"h":"v",z=Xp(U,L);if(!z)return!0;if(z?O=U:(O=U==="v"?"h":"v",z=Xp(U,L)),!z)return!1;if(!i.current&&"changedTouches"in y&&(P||F)&&(i.current=O),!O)return!0;var q=i.current||O;return bT(q,x,y,q==="h"?P:F)},[]),d=C.useCallback(function(y){var x=y;if(!(!hi.length||hi[hi.length-1]!==s)){var A="deltaY"in x?Jp(x):Aa(x),I=t.current.filter(function(O){return O.name===x.type&&O.target===x.target&&ST(O.delta,A)})[0];if(I&&I.should){x.preventDefault();return}if(!I){var P=(l.current.shards||[]).map(Qp).filter(Boolean).filter(function(O){return O.contains(x.target)}),F=P.length>0?f(x,P[0]):!l.current.noIsolation;F&&x.preventDefault()}}},[]),p=C.useCallback(function(y,x,A,I){var P={name:y,delta:x,target:A,should:I};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(F){return F!==P})},1)},[]),h=C.useCallback(function(y){r.current=Aa(y),i.current=void 0},[]),b=C.useCallback(function(y){p(y.type,Jp(y),y.target,f(y,e.lockRef.current))},[]),v=C.useCallback(function(y){p(y.type,Aa(y),y.target,f(y,e.lockRef.current))},[]);C.useEffect(function(){return hi.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:v}),document.addEventListener("wheel",d,pi),document.addEventListener("touchmove",d,pi),document.addEventListener("touchstart",h,pi),function(){hi=hi.filter(function(y){return y!==s}),document.removeEventListener("wheel",d,pi),document.removeEventListener("touchmove",d,pi),document.removeEventListener("touchstart",h,pi)}},[]);var w=e.removeScrollBar,E=e.inert;return C.createElement(C.Fragment,null,E?C.createElement(s,{styles:ET(a)}):null,w?C.createElement(vT,{gapMode:"margin"}):null)}const OT=QA(Bv,_T);var Gv=C.forwardRef(function(e,t){return C.createElement(fs,mi({},e,{ref:t,sideCar:OT}))});Gv.classNames=fs.classNames;const ao=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},AT=C.useId||(()=>{});let TT=0;function CT(e){const[t,r]=C.useState(AT());return ao(()=>{r(i=>i??String(TT++))},[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 Oi(...e){return C.useCallback(Kv(...e),e)}const Yv=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(eh)?C.createElement(C.Fragment,null,C.Children.map(r,a=>eh(a)?C.createElement(Ul,Qe({},i,{ref:t}),a.props.children):a)):C.createElement(Ul,Qe({},i,{ref:t}),r)});Yv.displayName="Slot";const Ul=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...RT(i,r.props),ref:Kv(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});Ul.displayName="SlotClone";const PT=({children:e})=>C.createElement(C.Fragment,null,e);function eh(e){return C.isValidElement(e)&&e.type===PT}function RT(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 yo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Yv:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,Qe({},s,{ref:i}))})}),{}),Vv=e=>{const{present:t,children:r}=e,i=function(l){const[f,d]=C.useState(),p=C.useRef({}),h=C.useRef(l),b=C.useRef("none"),v=l?"mounted":"unmounted",[w,E]=function(y,x){return C.useReducer((A,I)=>{const P=x[A][I];return P??A},y)}(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const y=Ta(p.current);b.current=w==="mounted"?y:"none"},[w]),ao(()=>{const y=p.current,x=h.current;if(x!==l){const A=b.current,I=Ta(y);l?E("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?E("UNMOUNT"):E(x&&A!==I?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,E]),ao(()=>{if(f){const y=A=>{const I=Ta(p.current).includes(A.animationName);A.target===f&&I&&E("ANIMATION_END")},x=A=>{A.target===f&&(b.current=Ta(p.current))};return f.addEventListener("animationstart",x),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",x),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}E("ANIMATION_END")},[f,E]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:C.useCallback(y=>{y&&(p.current=getComputedStyle(y)),d(y)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):C.Children.only(r),s=Oi(i.ref,a.ref);return typeof r=="function"||i.isPresent?C.cloneElement(a,{ref:s}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Vv.displayName="Presence";let fl=0;function IT(){C.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:th()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:th()),fl++,()=>{fl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),fl--}},[])}function th(){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 Xv=C.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,f=(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,[,d]=C.useState({});return ao(()=>{d({})},[]),f?ho.createPortal(C.createElement(yo.div,Qe({"data-radix-portal":""},l,{ref:t,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),f):null});function rh(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function Jv(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function MT(...e){return C.useCallback(Jv(...e),e)}const Qv=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(nh)?C.createElement(C.Fragment,null,C.Children.map(r,a=>nh(a)?C.createElement(Bl,Qe({},i,{ref:t}),a.props.children):a)):C.createElement(Bl,Qe({},i,{ref:t}),r)});Qv.displayName="Slot";const Bl=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...LT(i,r.props),ref:Jv(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});Bl.displayName="SlotClone";const FT=({children:e})=>C.createElement(C.Fragment,null,e);function nh(e){return C.isValidElement(e)&&e.type===FT}function LT(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 $T=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Qv:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,Qe({},s,{ref:i}))})}),{}),ih={bubbles:!1,cancelable:!0},DT=C.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[f,d]=C.useState(null),p=rh(a),h=rh(s),b=C.useRef(null),v=MT(t,y=>d(y)),w=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let y=function(A){if(w.paused||!f)return;const I=A.target;f.contains(I)?b.current=I:Ln(b.current,{select:!0})},x=function(A){!w.paused&&f&&(f.contains(A.relatedTarget)||Ln(b.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x)}}},[i,f,w.paused]),C.useEffect(()=>{if(f){sh.add(w);const x=document.activeElement;if(!f.contains(x)){const A=new Event("focusScope.autoFocusOnMount",ih);f.addEventListener("focusScope.autoFocusOnMount",p),f.dispatchEvent(A),A.defaultPrevented||(function(I,{select:P=!1}={}){const F=document.activeElement;for(const O of I)if(Ln(O,{select:P}),document.activeElement!==F)return}((y=oh(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===x&&Ln(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const A=new Event("focusScope.autoFocusOnUnmount",ih);f.addEventListener("focusScope.autoFocusOnUnmount",h),f.dispatchEvent(A),A.defaultPrevented||Ln(x??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",h),sh.remove(w)},0)}}var y},[f,p,h,w]);const E=C.useCallback(y=>{if(!r&&!i||w.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,A=document.activeElement;if(x&&A){const I=y.currentTarget,[P,F]=function(O){const L=oh(O),U=ah(L,O),z=ah(L.reverse(),O);return[U,z]}(I);P&&F?y.shiftKey||A!==F?y.shiftKey&&A===P&&(y.preventDefault(),r&&Ln(F,{select:!0})):(y.preventDefault(),r&&Ln(P,{select:!0})):A===I&&y.preventDefault()}},[r,i,w.paused]);return C.createElement($T.div,Qe({tabIndex:-1},l,{ref:v,onKeyDown:E}))});function oh(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 ah(e,t){for(const r of e)if(!kT(r,{upTo:t}))return r}function kT(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 Ln(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 sh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=uh(e,t),e.unshift(t)},remove(t){var r;e=uh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function uh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function so(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function NT(e){const t=so(e);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let lh,Ca=0;function jT({disabled:e}){const t=C.useRef(!1);ao(()=>{if(e){let r=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=lh)},i=function(a){t.current=a.pointerType!=="mouse"};return Ca===0&&(lh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function Bn(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 WT=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zT=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:f,...d}=e,p=C.useContext(WT),[h,b]=C.useState(null),[,v]=C.useState({}),w=Oi(t,L=>b(L)),E=Array.from(p.layers),[y]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=E.indexOf(y),A=h?E.indexOf(h):-1,I=p.layersWithOutsidePointerEventsDisabled.size>0,P=A>=x,F=function(L){const U=so(L),z=C.useRef(!1);return C.useEffect(()=>{const q=ee=>{ee.target&&!z.current&&ch("dismissableLayer.pointerDownOutside",U,{originalEvent:ee}),z.current=!1},V=window.setTimeout(()=>{document.addEventListener("pointerdown",q)},0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",q)}},[U]),{onPointerDownCapture:()=>z.current=!0}}(L=>{const U=L.target,z=[...p.branches].some(q=>q.contains(U));P&&!z&&(a==null||a(L),l==null||l(L),L.defaultPrevented||f==null||f())}),O=function(L){const U=so(L),z=C.useRef(!1);return C.useEffect(()=>{const q=V=>{V.target&&!z.current&&ch("dismissableLayer.focusOutside",U,{originalEvent:V})};return document.addEventListener("focusin",q),()=>document.removeEventListener("focusin",q)},[U]),{onFocusCapture:()=>z.current=!0,onBlurCapture:()=>z.current=!1}}(L=>{const U=L.target;[...p.branches].some(z=>z.contains(U))||(s==null||s(L),l==null||l(L),L.defaultPrevented||f==null||f())});return NT(L=>{A===p.layers.size-1&&(i==null||i(L),L.defaultPrevented||f==null||f())}),jT({disabled:r}),C.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),fh())},[h,r,p]),C.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),fh())},[h,p]),C.useEffect(()=>{const L=()=>v({});return document.addEventListener("dismissableLayer.update",L),()=>document.removeEventListener("dismissableLayer.update",L)},[]),C.createElement(yo.div,Qe({},d,{ref:w,style:{pointerEvents:I?P?"auto":"none":void 0,...e.style},onFocusCapture:Bn(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Bn(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Bn(e.onPointerDownCapture,F.onPointerDownCapture)}))});function fh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function ch(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 dh(e){const[t,r]=C.useState(void 0);return C.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,f;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,f=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}r({width:l,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function UT(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(Hl=requestAnimationFrame(em))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(Hl))}}let Hl;const Dn=new Map;function em(){const e=[];Dn.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))}),Hl=requestAnimationFrame(em)}function BT(e){const[t,r]=C.useState();return C.useEffect(()=>{if(e){const i=UT(e,r);return()=>{r(void 0),i()}}},[e]),t}function tm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>C.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return C.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=C.createContext(s),f=r.length;function d(p){const{scope:h,children:b,...v}=p,w=(h==null?void 0:h[e][f])||l,E=C.useMemo(()=>v,Object.values(v));return C.createElement(w.Provider,{value:E},b)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const b=(h==null?void 0:h[e][f])||l,v=C.useContext(b);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},HT(i,...t)]}function HT(...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:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function qT({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:ZT,arrowStyles:cl};const b=function(U,z,q=0,V=0,ee){const be=ee?ee.height:0,pe=ph(z,U,"x"),Ae=ph(z,U,"y"),Ne=Ae.before-q-be,ve=Ae.after+q+be,Te=pe.before-q-be,Ge=pe.after+q+be;return{top:{start:{x:pe.start+V,y:Ne},center:{x:pe.center,y:Ne},end:{x:pe.end-V,y:Ne}},right:{start:{x:Ge,y:Ae.start+V},center:{x:Ge,y:Ae.center},end:{x:Ge,y:Ae.end-V}},bottom:{start:{x:pe.start+V,y:ve},center:{x:pe.center,y:ve},end:{x:pe.end-V,y:ve}},left:{start:{x:Te,y:Ae.start+V},center:{x:Te,y:Ae.center},end:{x:Te,y:Ae.end-V}}}}(t,e,s,f,r),v=b[a][l];if(d===!1){const U=hh(v);let z=cl;return r&&(z=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":vh(t,a,l,i,r)},arrowStyles:z,placedSide:a,placedAlign:l}}const w=DOMRect.fromRect({...t,...v}),E=(y=p,x=h,DOMRect.fromRect({width:y.width-2*x,height:y.height-2*x,x:y.left+x,y:y.top+x}));var y,x;const A=yh(w,E),I=b[gh(a)][l],P=function(U,z,q){const V=gh(U);return z[U]&&!q[V]?V:U}(a,A,yh(DOMRect.fromRect({...t,...I}),E)),F=function(U,z,q,V,ee){const be=q==="top"||q==="bottom",pe=be?"left":"top",Ae=be?"right":"bottom",Ne=be?"width":"height",ve=z[Ne]>U[Ne];return(V==="start"||V==="center")&&(ee[pe]&&ve||ee[Ae]&&!ve)?"end":(V==="end"||V==="center")&&(ee[Ae]&&ve||ee[pe]&&!ve)?"start":V}(t,e,a,l,A),O=hh(b[P][F]);let L=cl;return r&&(L=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:P,align:F})),{popperStyles:{...O,"--radix-popper-transform-origin":vh(t,P,F,i,r)},arrowStyles:L,placedSide:P,placedAlign:F}}function ph(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 hh(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 vh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+f}px`:-f+"px"):(p=t==="left"?`${e.width+f}px`:-f+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const ZT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},cl={position:"absolute",opacity:0};function mh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,f={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:GT(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function GT(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function gh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function yh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[rm,nm]=tm("Popper"),[KT,im]=rm("Popper"),YT=e=>{const{__scopePopper:t,children:r}=e,[i,a]=C.useState(null);return C.createElement(KT,{scope:t,anchor:i,onAnchorChange:a},r)},VT=C.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=im("PopperAnchor",r),l=C.useRef(null),f=Oi(t,l);return C.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:C.createElement(yo.div,Qe({},a,{ref:f}))}),[XT,C2]=rm("PopperContent"),JT=C.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...p}=e,h=im("PopperContent",r),[b,v]=C.useState(),w=BT(h.anchor),[E,y]=C.useState(null),x=dh(E),[A,I]=C.useState(null),P=dh(A),F=Oi(t,be=>y(be)),O=function(){const[be,pe]=C.useState(void 0);return C.useEffect(()=>{let Ae;function Ne(){pe({width:window.innerWidth,height:window.innerHeight})}function ve(){window.clearTimeout(Ae),Ae=window.setTimeout(Ne,100)}return Ne(),window.addEventListener("resize",ve),()=>window.removeEventListener("resize",ve)},[]),be}(),L=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:z,placedSide:q,placedAlign:V}=qT({anchorRect:w,popperSize:x,arrowSize:P,arrowOffset:b,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:L,collisionTolerance:f}),ee=q!==void 0;return C.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},C.createElement(XT,{scope:r,arrowStyles:z,onArrowChange:I,onArrowOffsetChange:v},C.createElement(yo.div,Qe({"data-side":q,"data-align":V},p,{style:{...p.style,animation:ee?void 0:"none"},ref:F}))))}),QT=YT,eC=VT,tC=JT;function rC({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=C.useState(d),[b]=h,v=C.useRef(b),w=so(p);return C.useEffect(()=>{v.current!==b&&(w(b),v.current=b)},[b,v,w]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,f=so(r);return[l,C.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&f(h)}else a(d)},[s,e,a,f])]}const[nC,P2]=tm("Popover",[nm]),wf=nm(),[iC,wo]=nC("Popover"),oC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,f=wf(t),d=C.useRef(null),[p,h]=C.useState(!1),[b=!1,v]=rC({prop:i,defaultProp:a,onChange:s});return C.createElement(QT,f,C.createElement(iC,{scope:t,contentId:CT(),triggerRef:d,open:b,onOpenChange:v,onOpenToggle:C.useCallback(()=>v(w=>!w),[v]),hasCustomAnchor:p,onCustomAnchorAdd:C.useCallback(()=>h(!0),[]),onCustomAnchorRemove:C.useCallback(()=>h(!1),[]),modal:l},r))},aC=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=wo("PopoverTrigger",r),s=wf(r),l=Oi(t,a.triggerRef),f=C.createElement(yo.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":am(a.open)},i,{ref:l,onClick:Bn(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:C.createElement(eC,Qe({asChild:!0},s),f)}),sC=C.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=wo("PopoverContent",e.__scopePopover);return C.createElement(Vv,{present:r||a.open},a.modal?C.createElement(uC,Qe({},i,{ref:t})):C.createElement(lC,Qe({},i,{ref:t})))}),uC=C.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=wo("PopoverContent",e.__scopePopover),l=C.useRef(null),f=Oi(t,l),d=C.useRef(!1);C.useEffect(()=>{const h=l.current;if(h)return qA(h)},[]);const p=i?Xv:C.Fragment;return C.createElement(p,null,C.createElement(Gv,{allowPinchZoom:r},C.createElement(om,Qe({},a,{ref:f,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bn(e.onCloseAutoFocus,h=>{var b;h.preventDefault(),d.current||(b=s.triggerRef.current)===null||b===void 0||b.focus()}),onPointerDownOutside:Bn(e.onPointerDownOutside,h=>{const b=h.detail.originalEvent,v=b.button===0&&b.ctrlKey===!0,w=b.button===2||v;d.current=w},{checkForDefaultPrevented:!1}),onFocusOutside:Bn(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),lC=C.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=wo("PopoverContent",e.__scopePopover),s=C.useRef(!1),l=r?Xv:C.Fragment;return C.createElement(l,null,C.createElement(om,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),f.preventDefault()),s.current=!1},onInteractOutside:f=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current=!0);const h=f.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&f.preventDefault()}})))}),om=C.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...b}=e,v=wo("PopoverContent",r),w=wf(r);return IT(),C.createElement(DT,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},C.createElement(zT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1)},C.createElement(tC,Qe({"data-state":am(v.open),role:"dialog",id:v.contentId},w,b,{ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function am(e){return e?"open":"closed"}const fC=oC,cC=aC,dC=sC;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{}),sm={},cs={},bf={},dl={},Pa={exports:{}},Ra={exports:{}},Me={};/** @license React v16.13.1
71
71
  * react-is.production.min.js
72
72
  *
73
73
  * Copyright (c) Facebook, Inc. and its affiliates.
74
74
  *
75
75
  * This source code is licensed under the MIT license found in the
76
76
  * LICENSE file in the root directory of this source tree.
77
- */var wh;function dC(){if(wh)return Me;wh=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,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function I(O){if(typeof O=="object"&&O!==null){var L=O.$$typeof;switch(L){case t:switch(O=O.type,O){case d:case p:case i:case s:case a:case S:return O;default:switch(O=O&&O.$$typeof,O){case f:case h:case x:case w:case l:return O;default:return L}}case r:return L}}}function F(O){return I(O)===p}return Me.AsyncMode=d,Me.ConcurrentMode=p,Me.ContextConsumer=f,Me.ContextProvider=l,Me.Element=t,Me.ForwardRef=h,Me.Fragment=i,Me.Lazy=x,Me.Memo=w,Me.Portal=r,Me.Profiler=s,Me.StrictMode=a,Me.Suspense=S,Me.isAsyncMode=function(O){return F(O)||I(O)===d},Me.isConcurrentMode=F,Me.isContextConsumer=function(O){return I(O)===f},Me.isContextProvider=function(O){return I(O)===l},Me.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Me.isForwardRef=function(O){return I(O)===h},Me.isFragment=function(O){return I(O)===i},Me.isLazy=function(O){return I(O)===x},Me.isMemo=function(O){return I(O)===w},Me.isPortal=function(O){return I(O)===r},Me.isProfiler=function(O){return I(O)===s},Me.isStrictMode=function(O){return I(O)===a},Me.isSuspense=function(O){return I(O)===S},Me.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===p||O===s||O===a||O===S||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===w||O.$$typeof===l||O.$$typeof===f||O.$$typeof===h||O.$$typeof===E||O.$$typeof===P||O.$$typeof===C||O.$$typeof===y)},Me.typeOf=I,Me}var Fe={};/** @license React v16.13.1
77
+ */var wh;function pC(){if(wh)return Me;wh=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,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function P(O){if(typeof O=="object"&&O!==null){var L=O.$$typeof;switch(L){case t:switch(O=O.type,O){case d:case p:case i:case s:case a:case b:return O;default:switch(O=O&&O.$$typeof,O){case f:case h:case E:case w:case l:return O;default:return L}}case r:return L}}}function F(O){return P(O)===p}return Me.AsyncMode=d,Me.ConcurrentMode=p,Me.ContextConsumer=f,Me.ContextProvider=l,Me.Element=t,Me.ForwardRef=h,Me.Fragment=i,Me.Lazy=E,Me.Memo=w,Me.Portal=r,Me.Profiler=s,Me.StrictMode=a,Me.Suspense=b,Me.isAsyncMode=function(O){return F(O)||P(O)===d},Me.isConcurrentMode=F,Me.isContextConsumer=function(O){return P(O)===f},Me.isContextProvider=function(O){return P(O)===l},Me.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Me.isForwardRef=function(O){return P(O)===h},Me.isFragment=function(O){return P(O)===i},Me.isLazy=function(O){return P(O)===E},Me.isMemo=function(O){return P(O)===w},Me.isPortal=function(O){return P(O)===r},Me.isProfiler=function(O){return P(O)===s},Me.isStrictMode=function(O){return P(O)===a},Me.isSuspense=function(O){return P(O)===b},Me.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===p||O===s||O===a||O===b||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===E||O.$$typeof===w||O.$$typeof===l||O.$$typeof===f||O.$$typeof===h||O.$$typeof===x||O.$$typeof===A||O.$$typeof===I||O.$$typeof===y)},Me.typeOf=P,Me}var Fe={};/** @license React v16.13.1
78
78
  * react-is.development.js
79
79
  *
80
80
  * Copyright (c) Facebook, Inc. and its affiliates.
81
81
  *
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */var bh;function pC(){return bh||(bh=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,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function I(K){return typeof K=="string"||typeof K=="function"||K===i||K===p||K===s||K===a||K===S||K===v||typeof K=="object"&&K!==null&&(K.$$typeof===x||K.$$typeof===w||K.$$typeof===l||K.$$typeof===f||K.$$typeof===h||K.$$typeof===E||K.$$typeof===P||K.$$typeof===C||K.$$typeof===y)}function F(K){if(typeof K=="object"&&K!==null){var gt=K.$$typeof;switch(gt){case t:var st=K.type;switch(st){case d:case p:case i:case s:case a:case S:return st;default:var br=st&&st.$$typeof;switch(br){case f:case h:case x:case w:case l:return br;default:return gt}}case r:return gt}}}var O=d,L=p,U=f,z=l,q=t,V=h,ee=i,be=x,pe=w,Ae=r,Ne=s,ve=a,Te=S,Ge=!1;function Ct(K){return Ge||(Ge=!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.")),H(K)||F(K)===d}function H(K){return F(K)===p}function G(K){return F(K)===f}function re(K){return F(K)===l}function le(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Q(K){return F(K)===h}function ae(K){return F(K)===i}function se(K){return F(K)===x}function ce(K){return F(K)===w}function ue(K){return F(K)===r}function ge(K){return F(K)===s}function xe(K){return F(K)===a}function He(K){return F(K)===S}Fe.AsyncMode=O,Fe.ConcurrentMode=L,Fe.ContextConsumer=U,Fe.ContextProvider=z,Fe.Element=q,Fe.ForwardRef=V,Fe.Fragment=ee,Fe.Lazy=be,Fe.Memo=pe,Fe.Portal=Ae,Fe.Profiler=Ne,Fe.StrictMode=ve,Fe.Suspense=Te,Fe.isAsyncMode=Ct,Fe.isConcurrentMode=H,Fe.isContextConsumer=G,Fe.isContextProvider=re,Fe.isElement=le,Fe.isForwardRef=Q,Fe.isFragment=ae,Fe.isLazy=se,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=ge,Fe.isStrictMode=xe,Fe.isSuspense=He,Fe.isValidElementType=I,Fe.typeOf=F}()),Fe}var Sh;function um(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Ra.exports=dC():Ra.exports=pC()),Ra.exports}/*
84
+ */var bh;function hC(){return bh||(bh=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,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function P(K){return typeof K=="string"||typeof K=="function"||K===i||K===p||K===s||K===a||K===b||K===v||typeof K=="object"&&K!==null&&(K.$$typeof===E||K.$$typeof===w||K.$$typeof===l||K.$$typeof===f||K.$$typeof===h||K.$$typeof===x||K.$$typeof===A||K.$$typeof===I||K.$$typeof===y)}function F(K){if(typeof K=="object"&&K!==null){var gt=K.$$typeof;switch(gt){case t:var st=K.type;switch(st){case d:case p:case i:case s:case a:case b:return st;default:var br=st&&st.$$typeof;switch(br){case f:case h:case E:case w:case l:return br;default:return gt}}case r:return gt}}}var O=d,L=p,U=f,z=l,q=t,V=h,ee=i,be=E,pe=w,Ae=r,Ne=s,ve=a,Te=b,Ge=!1;function Ct(K){return Ge||(Ge=!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.")),H(K)||F(K)===d}function H(K){return F(K)===p}function G(K){return F(K)===f}function re(K){return F(K)===l}function le(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Q(K){return F(K)===h}function ae(K){return F(K)===i}function se(K){return F(K)===E}function ce(K){return F(K)===w}function ue(K){return F(K)===r}function ge(K){return F(K)===s}function xe(K){return F(K)===a}function He(K){return F(K)===b}Fe.AsyncMode=O,Fe.ConcurrentMode=L,Fe.ContextConsumer=U,Fe.ContextProvider=z,Fe.Element=q,Fe.ForwardRef=V,Fe.Fragment=ee,Fe.Lazy=be,Fe.Memo=pe,Fe.Portal=Ae,Fe.Profiler=Ne,Fe.StrictMode=ve,Fe.Suspense=Te,Fe.isAsyncMode=Ct,Fe.isConcurrentMode=H,Fe.isContextConsumer=G,Fe.isContextProvider=re,Fe.isElement=le,Fe.isForwardRef=Q,Fe.isFragment=ae,Fe.isLazy=se,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=ge,Fe.isStrictMode=xe,Fe.isSuspense=He,Fe.isValidElementType=P,Fe.typeOf=F}()),Fe}var Sh;function um(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Ra.exports=pC():Ra.exports=hC()),Ra.exports}/*
85
85
  object-assign
86
86
  (c) Sindre Sorhus
87
87
  @license MIT
88
- */var pl,Eh;function hC(){if(Eh)return pl;Eh=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={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pl=a()?Object.assign:function(s,l){for(var f,d=i(s),p,h=1;h<arguments.length;h++){f=Object(arguments[h]);for(var S in f)t.call(f,S)&&(d[S]=f[S]);if(e){p=e(f);for(var v=0;v<p.length;v++)r.call(f,p[v])&&(d[p[v]]=f[p[v]])}}return d},pl}var hl,xh;function Sf(){if(xh)return hl;xh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hl=e,hl}var vl,_h;function lm(){return _h||(_h=1,vl=Function.call.bind(Object.prototype.hasOwnProperty)),vl}var ml,Oh;function vC(){if(Oh)return ml;Oh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Sf(),r={},i=lm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,f,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var S;try{if(typeof s[h]!="function"){var v=Error((d||"React class")+": "+f+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}S=s[h](l,h,d,f,null,t)}catch(x){S=x}if(S&&!(S instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof S+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),S instanceof Error&&!(S.message in r)){r[S.message]=!0;var w=p?p():"";e("Failed "+f+" type: "+S.message+(w??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ml=a,ml}var gl,Ah;function mC(){if(Ah)return gl;Ah=1;var e=um(),t=hC(),r=Sf(),i=lm(),a=vC(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return gl=function(f,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function S(H){var G=H&&(p&&H[p]||H[h]);if(typeof G=="function")return G}var v="<<anonymous>>",w={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:C(),arrayOf:I,element:F(),elementType:O(),instanceOf:L,node:V(),objectOf:z,oneOf:U,oneOfType:q,shape:be,exact:pe};function x(H,G){return H===G?H!==0||1/H===1/G:H!==H&&G!==G}function y(H,G){this.message=H,this.data=G&&typeof G=="object"?G:{},this.stack=""}y.prototype=Error.prototype;function E(H){if(process.env.NODE_ENV!=="production")var G={},re=0;function le(ae,se,ce,ue,ge,xe,He){if(ue=ue||v,xe=xe||ce,He!==r){if(d){var K=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 K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var gt=ue+":"+ce;!G[gt]&&re<3&&(s("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ue+"`. 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."),G[gt]=!0,re++)}}return se[ce]==null?ae?se[ce]===null?new y("The "+ge+" `"+xe+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new y("The "+ge+" `"+xe+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(se,ce,ue,ge,xe)}var Q=le.bind(null,!1);return Q.isRequired=le.bind(null,!0),Q}function P(H){function G(re,le,Q,ae,se,ce){var ue=re[le],ge=ve(ue);if(ge!==H){var xe=Te(ue);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+xe+"` supplied to `"+Q+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return E(G)}function C(){return E(l)}function I(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ce=re[le];if(!Array.isArray(ce)){var ue=ve(ce);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an array."))}for(var ge=0;ge<ce.length;ge++){var xe=H(ce,ge,Q,ae,se+"["+ge+"]",r);if(xe instanceof Error)return xe}return null}return E(G)}function F(){function H(G,re,le,Q,ae){var se=G[re];if(!f(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return E(H)}function O(){function H(G,re,le,Q,ae){var se=G[re];if(!e.isValidElementType(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return E(H)}function L(H){function G(re,le,Q,ae,se){if(!(re[le]instanceof H)){var ce=H.name||v,ue=Ct(re[le]);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected ")+("instance of `"+ce+"`."))}return null}return E(G)}function U(H){if(!Array.isArray(H))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 G(re,le,Q,ae,se){for(var ce=re[le],ue=0;ue<H.length;ue++)if(x(ce,H[ue]))return null;var ge=JSON.stringify(H,function(He,K){var gt=Te(K);return gt==="symbol"?String(K):K});return new y("Invalid "+ae+" `"+se+"` of value `"+String(ce)+"` "+("supplied to `"+Q+"`, expected one of "+ge+"."))}return E(G)}function z(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an object."));for(var ge in ce)if(i(ce,ge)){var xe=H(ce,ge,Q,ae,se+"."+ge,r);if(xe instanceof Error)return xe}return null}return E(G)}function q(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var G=0;G<H.length;G++){var re=H[G];if(typeof re!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ge(re)+" at index "+G+"."),l}function le(Q,ae,se,ce,ue){for(var ge=[],xe=0;xe<H.length;xe++){var He=H[xe],K=He(Q,ae,se,ce,ue,r);if(K==null)return null;K.data&&i(K.data,"expectedType")&&ge.push(K.data.expectedType)}var gt=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new y("Invalid "+ce+" `"+ue+"` supplied to "+("`"+se+"`"+gt+"."))}return E(le)}function V(){function H(G,re,le,Q,ae){return Ae(G[re])?null:new y("Invalid "+Q+" `"+ae+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return E(H)}function ee(H,G,re,le,Q){return new y((H||"React class")+": "+G+" type `"+re+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function be(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));for(var ge in H){var xe=H[ge];if(typeof xe!="function")return ee(Q,ae,se,ge,Te(xe));var He=xe(ce,ge,Q,ae,se+"."+ge,r);if(He)return He}return null}return E(G)}function pe(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));var ge=t({},re[le],H);for(var xe in ge){var He=H[xe];if(i(H,xe)&&typeof He!="function")return ee(Q,ae,se,xe,Te(He));if(!He)return new y("Invalid "+ae+" `"+se+"` key `"+xe+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(re[le],null," ")+`
89
- Valid keys: `+JSON.stringify(Object.keys(H),null," "));var K=He(ce,xe,Q,ae,se+"."+xe,r);if(K)return K}return null}return E(G)}function Ae(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(Ae);if(H===null||f(H))return!0;var G=S(H);if(G){var re=G.call(H),le;if(G!==H.entries){for(;!(le=re.next()).done;)if(!Ae(le.value))return!1}else for(;!(le=re.next()).done;){var Q=le.value;if(Q&&!Ae(Q[1]))return!1}}else return!1;return!0;default:return!1}}function Ne(H,G){return H==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function ve(H){var G=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Ne(G,H)?"symbol":G}function Te(H){if(typeof H>"u"||H===null)return""+H;var G=ve(H);if(G==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return G}function Ge(H){var G=Te(H);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Ct(H){return!H.constructor||!H.constructor.name?v:H.constructor.name}return w.checkPropTypes=a,w.resetWarningCache=a.resetWarningCache,w.PropTypes=w,w},gl}var yl,Th;function gC(){if(Th)return yl;Th=1;var e=Sf();function t(){}function r(){}return r.resetWarningCache=t,yl=function(){function i(l,f,d,p,h,S){if(S!==e){var v=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 v.name="Invariant Violation",v}}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},yl}var Ch;function yC(){if(Ch)return Pa.exports;if(Ch=1,process.env.NODE_ENV!=="production"){var e=um(),t=!0;Pa.exports=mC()(e.isElement,t)}else Pa.exports=gC()();return Pa.exports}var Ph;function wC(){return Ph||(Ph=1,function(e){(function(t,r){r(e,D,yC())})(kn,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var a=l(r),s=l(i);function l(C){return C&&C.__esModule?C:{default:C}}var f=Object.assign||function(C){for(var I=1;I<arguments.length;I++){var F=arguments[I];for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&(C[O]=F[O])}return C};function d(C,I){var F={};for(var O in C)I.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(C,O)&&(F[O]=C[O]);return F}function p(C,I){if(!(C instanceof I))throw new TypeError("Cannot call a class as a function")}var h=function(){function C(I,F){for(var O=0;O<F.length;O++){var L=F[O];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}return function(I,F,O){return F&&C(I.prototype,F),O&&C(I,O),I}}();function S(C,I){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:C}function v(C,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);C.prototype=Object.create(I&&I.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(C,I):C.__proto__=I)}var w=!1;function x(C){w=C}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function y(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?C:C.capture}function E(C){if("touches"in C){var I=C.touches[0],F=I.pageX,O=I.pageY;return{x:F,y:O}}var L=C.screenX,U=C.screenY;return{x:L,y:U}}var P=function(C){v(I,C);function I(){var F;p(this,I);for(var O=arguments.length,L=Array(O),U=0;U<O;U++)L[U]=arguments[U];var z=S(this,(F=I.__proto__||Object.getPrototypeOf(I)).call.apply(F,[this].concat(L)));return z._handleSwipeStart=z._handleSwipeStart.bind(z),z._handleSwipeMove=z._handleSwipeMove.bind(z),z._handleSwipeEnd=z._handleSwipeEnd.bind(z),z._onMouseDown=z._onMouseDown.bind(z),z._onMouseMove=z._onMouseMove.bind(z),z._onMouseUp=z._onMouseUp.bind(z),z._setSwiperRef=z._setSwiperRef.bind(z),z}return h(I,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({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 L=E(O),U=L.x,z=L.y;this.moveStart={x:U,y:z},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var L=E(O),U=L.x,z=L.y,q=U-this.moveStart.x,V=z-this.moveStart.y;this.moving=!0;var ee=this.props.onSwipeMove({x:q,y:V},O);ee&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:q,deltaY:V}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var L=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-L?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>L&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-L?this.props.onSwipeUp(1,O):this.movePosition.deltaY>L&&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 L=O.className,U=O.style,z=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var q=d(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:L,style:U},q),z)}}]),I}(r.Component);P.displayName="ReactSwipe",P.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},P.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=P})}(dl)),dl}(function(e){(function(t,r){r(e,wC())})(kn,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})})(bf);var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var pn=bC(pv);function bC(e){return e&&e.__esModule?e:{default:e}}function SC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var EC={ROOT:function(t){return(0,pn.default)(SC({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,pn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,pn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,pn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,pn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,pn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,pn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,pn.default)({dot:!0,selected:t})}};bo.default=EC;var So={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});ds.outerWidth=void 0;var xC=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};ds.outerWidth=xC;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.default=void 0;var _C=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+s.join(",")+")";return l+f};Ai.default=_C;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var OC=function(){return window};Eo.default=OC;Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var mr=CC(D),$n=ps(bo),AC=ds,Rh=ps(Ai),TC=ps(bf),Ia=ps(Eo);function ps(e){return e&&e.__esModule?e:{default:e}}function fm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return fm=function(){return e},e}function CC(e){if(e&&e.__esModule)return e;if(e===null||Qi(e)!=="object"&&typeof e!="function")return{default:e};var t=fm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Qi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(r){return typeof r}:Qi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qi(e)}function ql(){return ql=Object.assign||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},ql.apply(this,arguments)}function PC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function IC(e,t,r){return t&&RC(e.prototype,t),e}function MC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Zl(e,t)}function FC(e){var t=$C();return function(){var i=Va(e),a;if(t){var s=Va(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return LC(this,a)}}function LC(e,t){return t&&(Qi(t)==="object"||typeof t=="function")?t:Mt(e)}function Mt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $C(){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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var DC=function(t){return t.hasOwnProperty("key")},Ef=function(e){MC(r,e);var t=FC(r);function r(i){var a;return PC(this,r),a=t.call(this,i),Ot(Mt(a),"itemsWrapperRef",void 0),Ot(Mt(a),"itemsListRef",void 0),Ot(Mt(a),"thumbsRef",void 0),Ot(Mt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),Ot(Mt(a),"setItemsListRef",function(s){a.itemsListRef=s}),Ot(Mt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),Ot(Mt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=mr.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,AC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),p=d<s,h=p?s-d:0;a.setState(function(S,v){return{itemSize:f,visibleItems:d,firstItem:p?a.getFirstItem(v.selectedItem):0,lastPosition:h,showArrows:p}})}}),Ot(Mt(a),"handleClickItem",function(s,l,f){if(!DC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),Ot(Mt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Ot(Mt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Ot(Mt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=mr.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),S=-h*100/a.state.visibleItems;p===f&&l>0&&(l=0),p===S&&l<0&&(l=0);var v=a.itemsWrapperRef.clientWidth,w=p+100/(v/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(x){a.itemsListRef.style[x]=(0,Rh.default)(w,"%",a.props.axis)}),!0}),Ot(Mt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),Ot(Mt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),Ot(Mt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return IC(r,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Ia.default)().addEventListener("resize",this.updateSizes),(0,Ia.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Ia.default)().removeEventListener("resize",this.updateSizes),(0,Ia.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var f=$n.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return mr.default.createElement("li",ql({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=mr.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,Rh.default)(p,"px",this.props.axis),S=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:S,MozTransitionDuration:S,MsTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S},mr.default.createElement("div",{className:$n.default.CAROUSEL(!1)},mr.default.createElement("div",{className:$n.default.WRAPPER(!1),ref:this.setItemsWrapperRef},mr.default.createElement("button",{type:"button",className:$n.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?mr.default.createElement(TC.default,{tagName:"ul",className:$n.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):mr.default.createElement("ul",{className:$n.default.SLIDER(!1,this.state.swiping),ref:function(w){return a.setItemsListRef(w)},style:d},this.renderItems()),mr.default.createElement("button",{type:"button",className:$n.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(mr.Component);So.default=Ef;Ot(Ef,"displayName","Thumbs");Ot(Ef,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var hs={};Object.defineProperty(hs,"__esModule",{value:!0});hs.default=void 0;var kC=function(){return document};hs.default=kC;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.setPosition=Kt.getPosition=Kt.isKeyboardEvent=Kt.defaultStatusFormatter=Kt.noop=void 0;var NC=D,jC=WC(Ai);function WC(e){return e&&e.__esModule?e:{default:e}}var zC=function(){};Kt.noop=zC;var UC=function(t,r){return"".concat(t," of ").concat(r)};Kt.defaultStatusFormatter=UC;var BC=function(t){return t?t.hasOwnProperty("key"):!1};Kt.isKeyboardEvent=BC;var HC=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=NC.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};Kt.getPosition=HC;var qC=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,jC.default)(t,"%",r)}),i};Kt.setPosition=qC;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.fadeAnimationHandler=Ar.slideStopSwipingHandler=Ar.slideSwipeAnimationHandler=Ar.slideAnimationHandler=void 0;var cm=D,ZC=GC(Ai),Tr=Kt;function GC(e){return e&&e.__esModule?e:{default:e}}function Ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(r),!0).forEach(function(i){KC(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function KC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YC=function(t,r){var i={},a=r.selectedItem,s=a,l=cm.Children.count(t.children)-1,f=t.infiniteLoop&&(a<0||a>l);if(f)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,Tr.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,Tr.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,Tr.setPosition)(0,t.axis)),i;var d=(0,Tr.getPosition)(a,t),p=(0,ZC.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=jn(jn({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Ar.slideAnimationHandler=YC;var VC=function(t,r,i,a){var s={},l=r.axis==="horizontal",f=cm.Children.count(r.children),d=0,p=(0,Tr.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,Tr.getPosition)(f-1,r)-100:(0,Tr.getPosition)(f-1,r),S=l?t.x:t.y,v=S;p===d&&S>0&&(v=0),p===h&&S<0&&(v=0);var w=p+100/(i.itemSize/v),x=Math.abs(S)>r.swipeScrollTolerance;return r.infiniteLoop&&x&&(i.selectedItem===0&&w>-100?w-=f*100:i.selectedItem===f-1&&w<-f*100&&(w+=f*100)),(!r.preventMovementUntilSwipeScrollTolerance||x||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,Tr.setPosition)(w,r.axis)),x&&!i.cancelClick&&a({cancelClick:!0}),s};Ar.slideSwipeAnimationHandler=VC;var XC=function(t,r){var i=(0,Tr.getPosition)(r.selectedItem,t),a=(0,Tr.setPosition)(i,t.axis);return{itemListStyle:a}};Ar.slideStopSwipingHandler=XC;var JC=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return r.swiping||(s=jn(jn({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:jn(jn({},s),{},{opacity:1,position:"relative"}),prevStyle:jn({},s)}};Ar.fadeAnimationHandler=JC;Object.defineProperty(cs,"__esModule",{value:!0});cs.default=void 0;var $e=tP(D),QC=xo(bf),Zr=xo(bo),eP=xo(So),Ma=xo(hs),Fa=xo(Eo),Ki=Kt,Xa=Ar;function xo(e){return e&&e.__esModule?e:{default:e}}function dm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return dm=function(){return e},e}function tP(e){if(e&&e.__esModule)return e;if(e===null||eo(e)!=="object"&&typeof e!="function")return{default:e};var t=dm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function eo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eo=function(r){return typeof r}:eo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eo(e)}function Gl(){return Gl=Object.assign||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},Gl.apply(this,arguments)}function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(i){we(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function rP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nP(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function iP(e,t,r){return t&&nP(e.prototype,t),e}function oP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Kl(e,t)}function aP(e){var t=uP();return function(){var i=Ja(e),a;if(t){var s=Ja(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return sP(this,a)}}function sP(e,t){return t&&(eo(t)==="object"||typeof t=="function")?t:Se(e)}function Se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(){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 Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xf=function(e){oP(r,e);var t=aP(r);function r(i){var a;rP(this,r),a=t.call(this,i),we(Se(a),"thumbsRef",void 0),we(Se(a),"carouselWrapperRef",void 0),we(Se(a),"listRef",void 0),we(Se(a),"itemsRef",void 0),we(Se(a),"timer",void 0),we(Se(a),"animationHandler",void 0),we(Se(a),"setThumbsRef",function(l){a.thumbsRef=l}),we(Se(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),we(Se(a),"setListRef",function(l){a.listRef=l}),we(Se(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),we(Se(a),"autoPlay",function(){$e.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),we(Se(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),we(Se(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),we(Se(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),we(Se(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),we(Se(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,Ma.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,Ma.default)().activeElement)):!1}),we(Se(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,S=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():S===l.keyCode&&a.decrement()}}),we(Se(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),we(Se(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),we(Se(a),"handleClickItem",function(l,f){if($e.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),we(Se(a),"handleOnChange",function(l,f){$e.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),we(Se(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),we(Se(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),we(Se(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),we(Se(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Se(a)));return a.setState(gr({},d)),!!Object.keys(d).length}),we(Se(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),we(Se(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),we(Se(a),"moveTo",function(l){if(typeof l=="number"){var f=$e.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),we(Se(a),"onClickNext",function(){a.increment(1)}),we(Se(a),"onClickPrev",function(){a.decrement(1)}),we(Se(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"changeItem",function(l){return function(f){(!(0,Ki.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),we(Se(a),"selectItem",function(l){a.setState(gr({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,$e.Children.toArray(a.props.children)[l.selectedItem])}),we(Se(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),we(Se(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var p=d[0];if(!p.complete){var h=function w(){a.forceUpdate(),p.removeEventListener("load",w)};p.addEventListener("load",h)}}var S=d[0]||f.children[0],v=S.clientHeight;return v>0?v:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Xa.fadeAnimationHandler||Xa.slideAnimationHandler,a.state=gr(gr({},s),a.animationHandler(i,s)),a}return iP(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(gr({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.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 a=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 s=a.getInitialImage();s&&!s.complete?s.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,Fa.default)().addEventListener("resize",this.updateSizes),(0,Fa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,Ma.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Fa.default)().removeEventListener("resize",this.updateSizes),(0,Fa.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,Ma.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var s=this;return this.props.children?$e.Children.map(this.props.children,function(l,f){var d=f===s.state.selectedItem,p=f===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=gr(gr({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=gr(gr({},h),{},{pointerEvents:"none"}));var S={ref:function(w){return s.setItemsRef(w,f)},key:"itemKey"+f+(a?"clone":""),className:Zr.default.ITEM(!0,f===s.state.selectedItem,f===s.state.previousItem),onClick:s.handleClickItem.bind(s,f,l),style:h};return $e.default.createElement("li",S,s.props.renderItem(l,{isSelected:f===s.state.selectedItem,isPrevious:f===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,f=s.labels,d=s.renderIndicator,p=s.children;return l?$e.default.createElement("ul",{className:"control-dots"},$e.Children.map(p,function(h,S){return d&&d(a.changeItem(S),S===a.state.selectedItem,S,f.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(eP.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 a=this;if(!this.props.children||$e.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&$e.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&$e.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=f&&(this.state.selectedItem<$e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),S=h.shift(),v=h.pop(),w={className:Zr.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},x={};if(l){if(w.onSwipeLeft=this.onSwipeForward,w.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);x.height=y||"auto"}}else w.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,w.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,w.style=gr(gr({},w.style),{},{height:this.state.itemSize}),x.height=this.state.itemSize;return $e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Zr.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},$e.default.createElement("div",{className:Zr.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),$e.default.createElement("div",{className:Zr.default.WRAPPER(!0,this.props.axis),style:x},s?$e.default.createElement(QC.default,Gl({tagName:"ul",innerRef:this.setListRef},w,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&S):$e.default.createElement("ul",{className:Zr.default.SLIDER(!0,this.state.swiping),ref:function(P){return a.setListRef(P)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&S)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}($e.default.Component);cs.default=xf;we(xf,"displayName","Carousel");we(xf,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:Ki.noop,onClickThumb:Ki.noop,onChange:Ki.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return $e.default.createElement("li",{className:Zr.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=$e.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=$e.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).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"),[]):r},statusFormatter:Ki.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:Xa.slideSwipeAnimationHandler,stopSwipingHandler:Xa.slideStopSwipingHandler});var lP={};(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(cs),r=lP,i=a(So);function a(s){return s&&s.__esModule?s:{default:s}}})(sm);const fP=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:pm(e,!0)}),cP=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(sm.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>$.jsx(fP,{tip:t},t.key))})}),dP=({body:e,isInsideCarousel:t})=>$.jsx("article",{className:mt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:$.jsx(Ga,{children:e,options:{overrides:{a:{component:({children:r,...i})=>$.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,$.jsx(vt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),pP=({video:e,body:t,title:r,isInsideCarousel:i})=>$.jsxs("div",{className:mt([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[$.jsx("div",{className:mt([{"mr-1":!i,"mb-1":i}]),children:$.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:mt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:$.jsx(Ga,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>$.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(vt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),pm=(e,t)=>{switch(e.type){case Ua.TEXT:return $.jsx(dP,{body:e.body,isInsideCarousel:t});case Ua.VIDEO:return $.jsx(pP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Ua.CAROUSEL:return $.jsx(cP,{pages:e.pages})}},hm=D.createContext(void 0);function Fh(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const hP=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=D.useState({tips:{},show:!0});D.useEffect(()=>{const f=new AbortController;try{fetch(`${r}/tips.json`,{signal:f.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,S)=>Fh(d,S.key).length>1?{...h,[S.key]:{type:"carousel",pages:Fh(d,S.key)}}:{...h,[S.key]:S},{});s(h=>({...h,tips:p}))})}catch{}return()=>{f.abort()}},[]);const l=()=>{s(f=>({...f,show:!a}))};return $.jsx(hm.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},vm=e=>{const t=D.useContext(hm);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}},vP=Ka(fC)`
88
+ */var pl,Eh;function vC(){if(Eh)return pl;Eh=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={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pl=a()?Object.assign:function(s,l){for(var f,d=i(s),p,h=1;h<arguments.length;h++){f=Object(arguments[h]);for(var b in f)t.call(f,b)&&(d[b]=f[b]);if(e){p=e(f);for(var v=0;v<p.length;v++)r.call(f,p[v])&&(d[p[v]]=f[p[v]])}}return d},pl}var hl,xh;function Sf(){if(xh)return hl;xh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hl=e,hl}var vl,_h;function lm(){return _h||(_h=1,vl=Function.call.bind(Object.prototype.hasOwnProperty)),vl}var ml,Oh;function mC(){if(Oh)return ml;Oh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Sf(),r={},i=lm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,f,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var b;try{if(typeof s[h]!="function"){var v=Error((d||"React class")+": "+f+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}b=s[h](l,h,d,f,null,t)}catch(E){b=E}if(b&&!(b instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof b+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),b instanceof Error&&!(b.message in r)){r[b.message]=!0;var w=p?p():"";e("Failed "+f+" type: "+b.message+(w??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ml=a,ml}var gl,Ah;function gC(){if(Ah)return gl;Ah=1;var e=um(),t=vC(),r=Sf(),i=lm(),a=mC(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return gl=function(f,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function b(H){var G=H&&(p&&H[p]||H[h]);if(typeof G=="function")return G}var v="<<anonymous>>",w={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:I(),arrayOf:P,element:F(),elementType:O(),instanceOf:L,node:V(),objectOf:z,oneOf:U,oneOfType:q,shape:be,exact:pe};function E(H,G){return H===G?H!==0||1/H===1/G:H!==H&&G!==G}function y(H,G){this.message=H,this.data=G&&typeof G=="object"?G:{},this.stack=""}y.prototype=Error.prototype;function x(H){if(process.env.NODE_ENV!=="production")var G={},re=0;function le(ae,se,ce,ue,ge,xe,He){if(ue=ue||v,xe=xe||ce,He!==r){if(d){var K=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 K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var gt=ue+":"+ce;!G[gt]&&re<3&&(s("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ue+"`. 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."),G[gt]=!0,re++)}}return se[ce]==null?ae?se[ce]===null?new y("The "+ge+" `"+xe+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new y("The "+ge+" `"+xe+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(se,ce,ue,ge,xe)}var Q=le.bind(null,!1);return Q.isRequired=le.bind(null,!0),Q}function A(H){function G(re,le,Q,ae,se,ce){var ue=re[le],ge=ve(ue);if(ge!==H){var xe=Te(ue);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+xe+"` supplied to `"+Q+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return x(G)}function I(){return x(l)}function P(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ce=re[le];if(!Array.isArray(ce)){var ue=ve(ce);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an array."))}for(var ge=0;ge<ce.length;ge++){var xe=H(ce,ge,Q,ae,se+"["+ge+"]",r);if(xe instanceof Error)return xe}return null}return x(G)}function F(){function H(G,re,le,Q,ae){var se=G[re];if(!f(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return x(H)}function O(){function H(G,re,le,Q,ae){var se=G[re];if(!e.isValidElementType(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return x(H)}function L(H){function G(re,le,Q,ae,se){if(!(re[le]instanceof H)){var ce=H.name||v,ue=Ct(re[le]);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected ")+("instance of `"+ce+"`."))}return null}return x(G)}function U(H){if(!Array.isArray(H))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 G(re,le,Q,ae,se){for(var ce=re[le],ue=0;ue<H.length;ue++)if(E(ce,H[ue]))return null;var ge=JSON.stringify(H,function(He,K){var gt=Te(K);return gt==="symbol"?String(K):K});return new y("Invalid "+ae+" `"+se+"` of value `"+String(ce)+"` "+("supplied to `"+Q+"`, expected one of "+ge+"."))}return x(G)}function z(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an object."));for(var ge in ce)if(i(ce,ge)){var xe=H(ce,ge,Q,ae,se+"."+ge,r);if(xe instanceof Error)return xe}return null}return x(G)}function q(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var G=0;G<H.length;G++){var re=H[G];if(typeof re!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ge(re)+" at index "+G+"."),l}function le(Q,ae,se,ce,ue){for(var ge=[],xe=0;xe<H.length;xe++){var He=H[xe],K=He(Q,ae,se,ce,ue,r);if(K==null)return null;K.data&&i(K.data,"expectedType")&&ge.push(K.data.expectedType)}var gt=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new y("Invalid "+ce+" `"+ue+"` supplied to "+("`"+se+"`"+gt+"."))}return x(le)}function V(){function H(G,re,le,Q,ae){return Ae(G[re])?null:new y("Invalid "+Q+" `"+ae+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return x(H)}function ee(H,G,re,le,Q){return new y((H||"React class")+": "+G+" type `"+re+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function be(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));for(var ge in H){var xe=H[ge];if(typeof xe!="function")return ee(Q,ae,se,ge,Te(xe));var He=xe(ce,ge,Q,ae,se+"."+ge,r);if(He)return He}return null}return x(G)}function pe(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));var ge=t({},re[le],H);for(var xe in ge){var He=H[xe];if(i(H,xe)&&typeof He!="function")return ee(Q,ae,se,xe,Te(He));if(!He)return new y("Invalid "+ae+" `"+se+"` key `"+xe+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(re[le],null," ")+`
89
+ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var K=He(ce,xe,Q,ae,se+"."+xe,r);if(K)return K}return null}return x(G)}function Ae(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(Ae);if(H===null||f(H))return!0;var G=b(H);if(G){var re=G.call(H),le;if(G!==H.entries){for(;!(le=re.next()).done;)if(!Ae(le.value))return!1}else for(;!(le=re.next()).done;){var Q=le.value;if(Q&&!Ae(Q[1]))return!1}}else return!1;return!0;default:return!1}}function Ne(H,G){return H==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function ve(H){var G=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Ne(G,H)?"symbol":G}function Te(H){if(typeof H>"u"||H===null)return""+H;var G=ve(H);if(G==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return G}function Ge(H){var G=Te(H);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Ct(H){return!H.constructor||!H.constructor.name?v:H.constructor.name}return w.checkPropTypes=a,w.resetWarningCache=a.resetWarningCache,w.PropTypes=w,w},gl}var yl,Th;function yC(){if(Th)return yl;Th=1;var e=Sf();function t(){}function r(){}return r.resetWarningCache=t,yl=function(){function i(l,f,d,p,h,b){if(b!==e){var v=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 v.name="Invariant Violation",v}}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},yl}var Ch;function wC(){if(Ch)return Pa.exports;if(Ch=1,process.env.NODE_ENV!=="production"){var e=um(),t=!0;Pa.exports=gC()(e.isElement,t)}else Pa.exports=yC()();return Pa.exports}var Ph;function bC(){return Ph||(Ph=1,function(e){(function(t,r){r(e,D,wC())})(kn,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=E;var a=l(r),s=l(i);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var P=1;P<arguments.length;P++){var F=arguments[P];for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&(I[O]=F[O])}return I};function d(I,P){var F={};for(var O in I)P.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(I,O)&&(F[O]=I[O]);return F}function p(I,P){if(!(I instanceof P))throw new TypeError("Cannot call a class as a function")}var h=function(){function I(P,F){for(var O=0;O<F.length;O++){var L=F[O];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,F,O){return F&&I(P.prototype,F),O&&I(P,O),P}}();function b(I,P){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:I}function v(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);I.prototype=Object.create(P&&P.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(I,P):I.__proto__=P)}var w=!1;function E(I){w=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){E(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?I:I.capture}function x(I){if("touches"in I){var P=I.touches[0],F=P.pageX,O=P.pageY;return{x:F,y:O}}var L=I.screenX,U=I.screenY;return{x:L,y:U}}var A=function(I){v(P,I);function P(){var F;p(this,P);for(var O=arguments.length,L=Array(O),U=0;U<O;U++)L[U]=arguments[U];var z=b(this,(F=P.__proto__||Object.getPrototypeOf(P)).call.apply(F,[this].concat(L)));return z._handleSwipeStart=z._handleSwipeStart.bind(z),z._handleSwipeMove=z._handleSwipeMove.bind(z),z._handleSwipeEnd=z._handleSwipeEnd.bind(z),z._onMouseDown=z._onMouseDown.bind(z),z._onMouseMove=z._onMouseMove.bind(z),z._onMouseUp=z._onMouseUp.bind(z),z._setSwiperRef=z._setSwiperRef.bind(z),z}return h(P,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({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 L=x(O),U=L.x,z=L.y;this.moveStart={x:U,y:z},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var L=x(O),U=L.x,z=L.y,q=U-this.moveStart.x,V=z-this.moveStart.y;this.moving=!0;var ee=this.props.onSwipeMove({x:q,y:V},O);ee&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:q,deltaY:V}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var L=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-L?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>L&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-L?this.props.onSwipeUp(1,O):this.movePosition.deltaY>L&&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 L=O.className,U=O.style,z=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var q=d(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:L,style:U},q),z)}}]),P}(r.Component);A.displayName="ReactSwipe",A.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},A.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=A})}(dl)),dl}(function(e){(function(t,r){r(e,bC())})(kn,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})})(bf);var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var pn=SC(pv);function SC(e){return e&&e.__esModule?e:{default:e}}function EC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xC={ROOT:function(t){return(0,pn.default)(EC({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,pn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,pn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,pn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,pn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,pn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,pn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,pn.default)({dot:!0,selected:t})}};bo.default=xC;var So={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});ds.outerWidth=void 0;var _C=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};ds.outerWidth=_C;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.default=void 0;var OC=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+s.join(",")+")";return l+f};Ai.default=OC;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var AC=function(){return window};Eo.default=AC;Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var mr=PC(D),$n=ps(bo),TC=ds,Rh=ps(Ai),CC=ps(bf),Ia=ps(Eo);function ps(e){return e&&e.__esModule?e:{default:e}}function fm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return fm=function(){return e},e}function PC(e){if(e&&e.__esModule)return e;if(e===null||Qi(e)!=="object"&&typeof e!="function")return{default:e};var t=fm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Qi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(r){return typeof r}:Qi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qi(e)}function ql(){return ql=Object.assign||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},ql.apply(this,arguments)}function RC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function MC(e,t,r){return t&&IC(e.prototype,t),e}function FC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Zl(e,t)}function LC(e){var t=DC();return function(){var i=Va(e),a;if(t){var s=Va(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return $C(this,a)}}function $C(e,t){return t&&(Qi(t)==="object"||typeof t=="function")?t:Mt(e)}function Mt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DC(){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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kC=function(t){return t.hasOwnProperty("key")},Ef=function(e){FC(r,e);var t=LC(r);function r(i){var a;return RC(this,r),a=t.call(this,i),Ot(Mt(a),"itemsWrapperRef",void 0),Ot(Mt(a),"itemsListRef",void 0),Ot(Mt(a),"thumbsRef",void 0),Ot(Mt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),Ot(Mt(a),"setItemsListRef",function(s){a.itemsListRef=s}),Ot(Mt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),Ot(Mt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=mr.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,TC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),p=d<s,h=p?s-d:0;a.setState(function(b,v){return{itemSize:f,visibleItems:d,firstItem:p?a.getFirstItem(v.selectedItem):0,lastPosition:h,showArrows:p}})}}),Ot(Mt(a),"handleClickItem",function(s,l,f){if(!kC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),Ot(Mt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Ot(Mt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Ot(Mt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=mr.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),b=-h*100/a.state.visibleItems;p===f&&l>0&&(l=0),p===b&&l<0&&(l=0);var v=a.itemsWrapperRef.clientWidth,w=p+100/(v/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(E){a.itemsListRef.style[E]=(0,Rh.default)(w,"%",a.props.axis)}),!0}),Ot(Mt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),Ot(Mt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),Ot(Mt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return MC(r,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Ia.default)().addEventListener("resize",this.updateSizes),(0,Ia.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Ia.default)().removeEventListener("resize",this.updateSizes),(0,Ia.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var f=$n.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return mr.default.createElement("li",ql({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=mr.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,Rh.default)(p,"px",this.props.axis),b=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:b,MozTransitionDuration:b,MsTransitionDuration:b,OTransitionDuration:b,transitionDuration:b,msTransitionDuration:b},mr.default.createElement("div",{className:$n.default.CAROUSEL(!1)},mr.default.createElement("div",{className:$n.default.WRAPPER(!1),ref:this.setItemsWrapperRef},mr.default.createElement("button",{type:"button",className:$n.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?mr.default.createElement(CC.default,{tagName:"ul",className:$n.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):mr.default.createElement("ul",{className:$n.default.SLIDER(!1,this.state.swiping),ref:function(w){return a.setItemsListRef(w)},style:d},this.renderItems()),mr.default.createElement("button",{type:"button",className:$n.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(mr.Component);So.default=Ef;Ot(Ef,"displayName","Thumbs");Ot(Ef,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var hs={};Object.defineProperty(hs,"__esModule",{value:!0});hs.default=void 0;var NC=function(){return document};hs.default=NC;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.setPosition=Kt.getPosition=Kt.isKeyboardEvent=Kt.defaultStatusFormatter=Kt.noop=void 0;var jC=D,WC=zC(Ai);function zC(e){return e&&e.__esModule?e:{default:e}}var UC=function(){};Kt.noop=UC;var BC=function(t,r){return"".concat(t," of ").concat(r)};Kt.defaultStatusFormatter=BC;var HC=function(t){return t?t.hasOwnProperty("key"):!1};Kt.isKeyboardEvent=HC;var qC=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=jC.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};Kt.getPosition=qC;var ZC=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,WC.default)(t,"%",r)}),i};Kt.setPosition=ZC;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.fadeAnimationHandler=Ar.slideStopSwipingHandler=Ar.slideSwipeAnimationHandler=Ar.slideAnimationHandler=void 0;var cm=D,GC=KC(Ai),Tr=Kt;function KC(e){return e&&e.__esModule?e:{default:e}}function Ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(r),!0).forEach(function(i){YC(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function YC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var VC=function(t,r){var i={},a=r.selectedItem,s=a,l=cm.Children.count(t.children)-1,f=t.infiniteLoop&&(a<0||a>l);if(f)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,Tr.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,Tr.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,Tr.setPosition)(0,t.axis)),i;var d=(0,Tr.getPosition)(a,t),p=(0,GC.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=jn(jn({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Ar.slideAnimationHandler=VC;var XC=function(t,r,i,a){var s={},l=r.axis==="horizontal",f=cm.Children.count(r.children),d=0,p=(0,Tr.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,Tr.getPosition)(f-1,r)-100:(0,Tr.getPosition)(f-1,r),b=l?t.x:t.y,v=b;p===d&&b>0&&(v=0),p===h&&b<0&&(v=0);var w=p+100/(i.itemSize/v),E=Math.abs(b)>r.swipeScrollTolerance;return r.infiniteLoop&&E&&(i.selectedItem===0&&w>-100?w-=f*100:i.selectedItem===f-1&&w<-f*100&&(w+=f*100)),(!r.preventMovementUntilSwipeScrollTolerance||E||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,Tr.setPosition)(w,r.axis)),E&&!i.cancelClick&&a({cancelClick:!0}),s};Ar.slideSwipeAnimationHandler=XC;var JC=function(t,r){var i=(0,Tr.getPosition)(r.selectedItem,t),a=(0,Tr.setPosition)(i,t.axis);return{itemListStyle:a}};Ar.slideStopSwipingHandler=JC;var QC=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return r.swiping||(s=jn(jn({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:jn(jn({},s),{},{opacity:1,position:"relative"}),prevStyle:jn({},s)}};Ar.fadeAnimationHandler=QC;Object.defineProperty(cs,"__esModule",{value:!0});cs.default=void 0;var $e=rP(D),eP=xo(bf),Zr=xo(bo),tP=xo(So),Ma=xo(hs),Fa=xo(Eo),Ki=Kt,Xa=Ar;function xo(e){return e&&e.__esModule?e:{default:e}}function dm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return dm=function(){return e},e}function rP(e){if(e&&e.__esModule)return e;if(e===null||eo(e)!=="object"&&typeof e!="function")return{default:e};var t=dm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function eo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eo=function(r){return typeof r}:eo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eo(e)}function Gl(){return Gl=Object.assign||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},Gl.apply(this,arguments)}function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(i){we(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function nP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iP(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function oP(e,t,r){return t&&iP(e.prototype,t),e}function aP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Kl(e,t)}function sP(e){var t=lP();return function(){var i=Ja(e),a;if(t){var s=Ja(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return uP(this,a)}}function uP(e,t){return t&&(eo(t)==="object"||typeof t=="function")?t:Se(e)}function Se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(){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 Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xf=function(e){aP(r,e);var t=sP(r);function r(i){var a;nP(this,r),a=t.call(this,i),we(Se(a),"thumbsRef",void 0),we(Se(a),"carouselWrapperRef",void 0),we(Se(a),"listRef",void 0),we(Se(a),"itemsRef",void 0),we(Se(a),"timer",void 0),we(Se(a),"animationHandler",void 0),we(Se(a),"setThumbsRef",function(l){a.thumbsRef=l}),we(Se(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),we(Se(a),"setListRef",function(l){a.listRef=l}),we(Se(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),we(Se(a),"autoPlay",function(){$e.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),we(Se(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),we(Se(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),we(Se(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),we(Se(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),we(Se(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,Ma.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,Ma.default)().activeElement)):!1}),we(Se(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,b=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():b===l.keyCode&&a.decrement()}}),we(Se(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),we(Se(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),we(Se(a),"handleClickItem",function(l,f){if($e.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),we(Se(a),"handleOnChange",function(l,f){$e.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),we(Se(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),we(Se(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),we(Se(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),we(Se(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Se(a)));return a.setState(gr({},d)),!!Object.keys(d).length}),we(Se(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),we(Se(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),we(Se(a),"moveTo",function(l){if(typeof l=="number"){var f=$e.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),we(Se(a),"onClickNext",function(){a.increment(1)}),we(Se(a),"onClickPrev",function(){a.decrement(1)}),we(Se(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"changeItem",function(l){return function(f){(!(0,Ki.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),we(Se(a),"selectItem",function(l){a.setState(gr({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,$e.Children.toArray(a.props.children)[l.selectedItem])}),we(Se(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),we(Se(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var p=d[0];if(!p.complete){var h=function w(){a.forceUpdate(),p.removeEventListener("load",w)};p.addEventListener("load",h)}}var b=d[0]||f.children[0],v=b.clientHeight;return v>0?v:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Xa.fadeAnimationHandler||Xa.slideAnimationHandler,a.state=gr(gr({},s),a.animationHandler(i,s)),a}return oP(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(gr({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.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 a=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 s=a.getInitialImage();s&&!s.complete?s.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,Fa.default)().addEventListener("resize",this.updateSizes),(0,Fa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,Ma.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Fa.default)().removeEventListener("resize",this.updateSizes),(0,Fa.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,Ma.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var s=this;return this.props.children?$e.Children.map(this.props.children,function(l,f){var d=f===s.state.selectedItem,p=f===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=gr(gr({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=gr(gr({},h),{},{pointerEvents:"none"}));var b={ref:function(w){return s.setItemsRef(w,f)},key:"itemKey"+f+(a?"clone":""),className:Zr.default.ITEM(!0,f===s.state.selectedItem,f===s.state.previousItem),onClick:s.handleClickItem.bind(s,f,l),style:h};return $e.default.createElement("li",b,s.props.renderItem(l,{isSelected:f===s.state.selectedItem,isPrevious:f===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,f=s.labels,d=s.renderIndicator,p=s.children;return l?$e.default.createElement("ul",{className:"control-dots"},$e.Children.map(p,function(h,b){return d&&d(a.changeItem(b),b===a.state.selectedItem,b,f.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(tP.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 a=this;if(!this.props.children||$e.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&$e.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&$e.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=f&&(this.state.selectedItem<$e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),b=h.shift(),v=h.pop(),w={className:Zr.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},E={};if(l){if(w.onSwipeLeft=this.onSwipeForward,w.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);E.height=y||"auto"}}else w.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,w.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,w.style=gr(gr({},w.style),{},{height:this.state.itemSize}),E.height=this.state.itemSize;return $e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Zr.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},$e.default.createElement("div",{className:Zr.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),$e.default.createElement("div",{className:Zr.default.WRAPPER(!0,this.props.axis),style:E},s?$e.default.createElement(eP.default,Gl({tagName:"ul",innerRef:this.setListRef},w,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b):$e.default.createElement("ul",{className:Zr.default.SLIDER(!0,this.state.swiping),ref:function(A){return a.setListRef(A)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}($e.default.Component);cs.default=xf;we(xf,"displayName","Carousel");we(xf,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:Ki.noop,onClickThumb:Ki.noop,onChange:Ki.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return $e.default.createElement("li",{className:Zr.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=$e.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=$e.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).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"),[]):r},statusFormatter:Ki.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:Xa.slideSwipeAnimationHandler,stopSwipingHandler:Xa.slideStopSwipingHandler});var fP={};(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(cs),r=fP,i=a(So);function a(s){return s&&s.__esModule?s:{default:s}}})(sm);const cP=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:pm(e,!0)}),dP=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(sm.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>$.jsx(cP,{tip:t},t.key))})}),pP=({body:e,isInsideCarousel:t})=>$.jsx("article",{className:ft(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:$.jsx(Ga,{children:e,options:{overrides:{a:{component:({children:r,...i})=>$.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,$.jsx(mt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),hP=({video:e,body:t,title:r,isInsideCarousel:i})=>$.jsxs("div",{className:ft([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[$.jsx("div",{className:ft([{"mr-1":!i,"mb-1":i}]),children:$.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:ft(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:$.jsx(Ga,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>$.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(mt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),pm=(e,t)=>{switch(e.type){case Ua.TEXT:return $.jsx(pP,{body:e.body,isInsideCarousel:t});case Ua.VIDEO:return $.jsx(hP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Ua.CAROUSEL:return $.jsx(dP,{pages:e.pages})}},hm=D.createContext(void 0);function Fh(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const vP=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=D.useState({tips:{},show:!0});D.useEffect(()=>{const f=new AbortController;try{fetch(`${r}/tips.json`,{signal:f.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,b)=>Fh(d,b.key).length>1?{...h,[b.key]:{type:"carousel",pages:Fh(d,b.key)}}:{...h,[b.key]:b},{});s(h=>({...h,tips:p}))})}catch{}return()=>{f.abort()}},[]);const l=()=>{s(f=>({...f,show:!a}))};return $.jsx(hm.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},vm=e=>{const t=D.useContext(hm);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}},mP=Ka(cC)`
90
90
  &[data-state='open'] > * {
91
91
  display: block !important;
92
92
  }
93
- `,mP=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=vm(e),[l,f]=D.useState(!1),d=D.useRef(null);return D.useEffect(()=>{if(d.current){const p=new IntersectionObserver(h=>{h[0].isIntersecting||f(!1)});return p.observe(d.current),()=>{d.current&&p.unobserve(d.current)}}},[]),a&&s?$.jsxs(lC,{open:l,onOpenChange:f,children:[$.jsx(vP,{ref:d,className:mt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:$.jsx("span",{className:mt("group-hover:block",{hidden:!r}),children:$.jsx(vt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(cC,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:pm(a)})})]}):null};var gP=Object.defineProperty,yP=(e,t,r)=>t in e?gP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t,r)=>(yP(e,typeof t!="symbol"?t+"":t,r),r);let wP=class{constructor(){wl(this,"current",this.detect()),wl(this,"handoffState","pending"),wl(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"}},yi=new wP,Ir=(e,t)=>{yi.isServer?D.useEffect(e,t):D.useLayoutEffect(e,t)};function wi(e){let t=D.useRef(e);return Ir(()=>{t.current=e},[e]),t}let At=function(e){let t=wi(e);return D.useCallback((...r)=>t.current(...r),[t])};function bP(e,t,r){let[i,a]=D.useState(r),s=e!==void 0,l=D.useRef(s),f=D.useRef(!1),d=D.useRef(!1);return s&&!l.current&&!f.current?(f.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&&!d.current&&(d.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,At(p=>(s||a(p),t==null?void 0:t(p)))]}function SP(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _o(){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 SP(()=>{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=_o();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 _f(){let[e]=D.useState(_o);return D.useEffect(()=>()=>e.dispose(),[e]),e}function EP(){let e=typeof document>"u";return"useSyncExternalStore"in T?(t=>t.useSyncExternalStore)(T)(()=>()=>{},()=>!1,()=>!e):!1}function Of(){let e=EP(),[t,r]=T.useState(yi.isHandoffComplete);return t&&yi.isHandoffComplete===!1&&r(!1),T.useEffect(()=>{t!==!0&&r(!0)},[t]),T.useEffect(()=>yi.handoff(),[]),e?!1:t}var Lh;let Af=(Lh=D.useId)!=null?Lh:function(){let e=Of(),[t,r]=D.useState(e?()=>yi.nextId():null);return Ir(()=>{t===null&&r(yi.nextId())},[t]),t!=null?""+t:void 0};function Cr(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,Cr),i}function $h(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 xP(e,t){let[r,i]=D.useState(()=>$h(e));return Ir(()=>{i($h(e))},[e.type,e.as]),Ir(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let _P=Symbol();function Oo(...e){let t=D.useRef(e);D.useEffect(()=>{t.current=e},[e]);let r=At(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[_P]))?void 0:r}function Qa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var mm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mm||{}),yn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yn||{});function Kn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:f}){f=f??OP;let d=gm(t,e);if(s)return La(d,r,i,l,f);let p=a??0;if(p&2){let{static:h=!1,...S}=d;if(h)return La(S,r,i,l,f)}if(p&1){let{unmount:h=!0,...S}=d;return Cr(h?0:1,{0(){return null},1(){return La({...S,hidden:!0,style:{display:"none"}},r,i,l,f)}})}return La(d,r,i,l,f)}function La(e,t={},r,i,a){let{as:s=r,children:l,refName:f="ref",...d}=bl(e,["unmount","static"]),p=e.ref!==void 0?{[f]:e.ref}:{},h=typeof l=="function"?l(t):l;"className"in d&&d.className&&typeof d.className=="function"&&(d.className=d.className(t));let S={};if(t){let v=!1,w=[];for(let[x,y]of Object.entries(t))typeof y=="boolean"&&(v=!0),y===!0&&w.push(x);v&&(S["data-headlessui-state"]=w.join(" "))}if(s===D.Fragment&&Object.keys(Yl(d)).length>0){if(!D.isValidElement(h)||Array.isArray(h)&&h.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(d).map(y=>` - ${y}`).join(`
93
+ `,gP=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=vm(e),[l,f]=D.useState(!1),d=D.useRef(null);return D.useEffect(()=>{if(d.current){const p=new IntersectionObserver(h=>{h[0].isIntersecting||f(!1)});return p.observe(d.current),()=>{d.current&&p.unobserve(d.current)}}},[]),a&&s?$.jsxs(fC,{open:l,onOpenChange:f,children:[$.jsx(mP,{ref:d,className:ft("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:$.jsx("span",{className:ft("group-hover:block",{hidden:!r}),children:$.jsx(mt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(dC,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:pm(a)})})]}):null};var yP=Object.defineProperty,wP=(e,t,r)=>t in e?yP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t,r)=>(wP(e,typeof t!="symbol"?t+"":t,r),r);let bP=class{constructor(){wl(this,"current",this.detect()),wl(this,"handoffState","pending"),wl(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"}},yi=new bP,Ir=(e,t)=>{yi.isServer?D.useEffect(e,t):D.useLayoutEffect(e,t)};function wi(e){let t=D.useRef(e);return Ir(()=>{t.current=e},[e]),t}let At=function(e){let t=wi(e);return D.useCallback((...r)=>t.current(...r),[t])};function SP(e,t,r){let[i,a]=D.useState(r),s=e!==void 0,l=D.useRef(s),f=D.useRef(!1),d=D.useRef(!1);return s&&!l.current&&!f.current?(f.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&&!d.current&&(d.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,At(p=>(s||a(p),t==null?void 0:t(p)))]}function EP(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _o(){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 EP(()=>{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=_o();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 _f(){let[e]=D.useState(_o);return D.useEffect(()=>()=>e.dispose(),[e]),e}function xP(){let e=typeof document>"u";return"useSyncExternalStore"in C?(t=>t.useSyncExternalStore)(C)(()=>()=>{},()=>!1,()=>!e):!1}function Of(){let e=xP(),[t,r]=C.useState(yi.isHandoffComplete);return t&&yi.isHandoffComplete===!1&&r(!1),C.useEffect(()=>{t!==!0&&r(!0)},[t]),C.useEffect(()=>yi.handoff(),[]),e?!1:t}var Lh;let Af=(Lh=D.useId)!=null?Lh:function(){let e=Of(),[t,r]=D.useState(e?()=>yi.nextId():null);return Ir(()=>{t===null&&r(yi.nextId())},[t]),t!=null?""+t:void 0};function Cr(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,Cr),i}function $h(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 _P(e,t){let[r,i]=D.useState(()=>$h(e));return Ir(()=>{i($h(e))},[e.type,e.as]),Ir(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let OP=Symbol();function Oo(...e){let t=D.useRef(e);D.useEffect(()=>{t.current=e},[e]);let r=At(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[OP]))?void 0:r}function Qa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var mm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mm||{}),yn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yn||{});function Kn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:f}){f=f??AP;let d=gm(t,e);if(s)return La(d,r,i,l,f);let p=a??0;if(p&2){let{static:h=!1,...b}=d;if(h)return La(b,r,i,l,f)}if(p&1){let{unmount:h=!0,...b}=d;return Cr(h?0:1,{0(){return null},1(){return La({...b,hidden:!0,style:{display:"none"}},r,i,l,f)}})}return La(d,r,i,l,f)}function La(e,t={},r,i,a){let{as:s=r,children:l,refName:f="ref",...d}=bl(e,["unmount","static"]),p=e.ref!==void 0?{[f]:e.ref}:{},h=typeof l=="function"?l(t):l;"className"in d&&d.className&&typeof d.className=="function"&&(d.className=d.className(t));let b={};if(t){let v=!1,w=[];for(let[E,y]of Object.entries(t))typeof y=="boolean"&&(v=!0),y===!0&&w.push(E);v&&(b["data-headlessui-state"]=w.join(" "))}if(s===D.Fragment&&Object.keys(Yl(d)).length>0){if(!D.isValidElement(h)||Array.isArray(h)&&h.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(d).map(y=>` - ${y}`).join(`
94
94
  `),"","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(y=>` - ${y}`).join(`
95
95
  `)].join(`
96
- `));let v=h.props,w=typeof(v==null?void 0:v.className)=="function"?(...y)=>Qa(v==null?void 0:v.className(...y),d.className):Qa(v==null?void 0:v.className,d.className),x=w?{className:w}:{};return D.cloneElement(h,Object.assign({},gm(h.props,Yl(bl(d,["ref"]))),S,p,{ref:a(h.ref,p.ref)},x))}return D.createElement(s,Object.assign({},bl(d,["ref"]),s!==D.Fragment&&p,s!==D.Fragment&&S),h)}function OP(...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 gm(...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 f of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...s)}}});return t}function Yn(e){var t;return Object.assign(D.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yl(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function bl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let AP="div";var ym=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ym||{});function TP(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 Kn({ourProps:s,theirProps:a,slot:{},defaultTag:AP,name:"Hidden"})}let CP=Yn(TP),Tf=D.createContext(null);Tf.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function wm(){return D.useContext(Tf)}function PP({value:e,children:t}){return D.createElement(Tf.Provider,{value:e},t)}function RP(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&&IP(r)?!1:i}function IP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function MP(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 Vl=(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))(Vl||{});function Cf(){let e=D.useRef(!1);return Ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let bm=D.createContext(null);function Sm(){let e=D.useContext(bm);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,Sm),t}return e}function FP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(bm.Provider,{value:a},r.children)},[t])]}let LP="p";function $P(e,t){let r=Af(),{id:i=`headlessui-description-${r}`,...a}=e,s=Sm(),l=Oo(t);Ir(()=>s.register(i),[i,s.register]);let f={ref:l,...s.props,id:i};return Kn({ourProps:f,theirProps:a,slot:s.slot||{},defaultTag:LP,name:s.name||"Description"})}let DP=Yn($P),kP=Object.assign(DP,{}),Em=D.createContext(null);function xm(){let e=D.useContext(Em);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,xm),t}return e}function NP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(Em.Provider,{value:a},r.children)},[t])]}let jP="label";function WP(e,t){let r=Af(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=xm(),f=Oo(t);Ir(()=>l.register(i),[i,l.register]);let d={ref:f,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Kn({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:jP,name:l.name||"Label"})}let zP=Yn(WP),UP=Object.assign(zP,{});function BP(e=0){let[t,r]=D.useState(e),i=Cf(),a=D.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=D.useCallback(d=>!!(t&d),[t]),l=D.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),f=D.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:f}}let Pf=D.createContext(null);Pf.displayName="GroupContext";let HP=D.Fragment;function qP(e){var t;let[r,i]=D.useState(null),[a,s]=NP(),[l,f]=FP(),d=D.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return D.createElement(f,{name:"Switch.Description"},D.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(S){r&&(S.currentTarget.tagName==="LABEL"&&S.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},D.createElement(Pf.Provider,{value:d},Kn({ourProps:p,theirProps:h,defaultTag:HP,name:"Switch.Group"}))))}let ZP="button";function GP(e,t){var r;let i=Af(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:f,disabled:d=!1,name:p,value:h,form:S,...v}=e,w=D.useContext(Pf),x=D.useRef(null),y=Oo(x,t,w===null?null:w.setSwitch),[E,P]=bP(s,f,l),C=At(()=>P==null?void 0:P(!E)),I=At(q=>{if(RP(q.currentTarget))return q.preventDefault();q.preventDefault(),C()}),F=At(q=>{q.key===Vl.Space?(q.preventDefault(),C()):q.key===Vl.Enter&&MP(q.currentTarget)}),O=At(q=>q.preventDefault()),L=D.useMemo(()=>({checked:E}),[E]),U={id:a,ref:y,role:"switch",type:xP(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":E,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:d,onClick:I,onKeyUp:F,onKeyPress:O},z=_f();return D.useEffect(()=>{var q;let V=(q=x.current)==null?void 0:q.closest("form");V&&l!==void 0&&z.addEventListener(V,"reset",()=>{P(l)})},[x,P]),D.createElement(D.Fragment,null,p!=null&&E&&D.createElement(CP,{features:ym.Hidden,...Yl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:d,form:S,checked:E,name:p,value:h})}),Kn({ourProps:U,theirProps:v,slot:L,defaultTag:ZP,name:"Switch"}))}let KP=Yn(GP),YP=qP,VP=Object.assign(KP,{Group:YP,Label:UP,Description:kP});function XP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Sl(e,...t){e&&t.length>0&&e.classList.add(...t)}function El(e,...t){e&&t.length>0&&e.classList.remove(...t)}function JP(e,t){let r=_o();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,S)=>S-h);return p}),f=s+l;if(f!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},f),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function QP(e,t,r,i){let a=r?"enter":"leave",s=_o(),l=i!==void 0?XP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=Cr(a,{enter:()=>t.enter,leave:()=>t.leave}),d=Cr(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=Cr(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return El(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Sl(e,...t.base,...f,...p),s.nextFrame(()=>{El(e,...t.base,...f,...p),Sl(e,...t.base,...f,...d),JP(e,()=>(El(e,...t.base,...f),Sl(e,...t.base,...t.entered),l()))}),s.dispose}function eR({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=Cf(),f=_f(),d=wi(r);Ir(()=>{e&&(d.current="enter")},[e]),Ir(()=>{let p=_o();f.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(QP(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function hn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let vs=D.createContext(null);vs.displayName="TransitionContext";var tR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(tR||{});function rR(){let e=D.useContext(vs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function nR(){let e=D.useContext(ms);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ms=D.createContext(null);ms.displayName="NestingContext";function gs(e){return"children"in e?gs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function _m(e,t){let r=wi(e),i=D.useRef([]),a=Cf(),s=_f(),l=At((w,x=yn.Hidden)=>{let y=i.current.findIndex(({el:E})=>E===w);y!==-1&&(Cr(x,{[yn.Unmount](){i.current.splice(y,1)},[yn.Hidden](){i.current[y].state="hidden"}}),s.microTask(()=>{var E;!gs(i)&&a.current&&((E=r.current)==null||E.call(r))}))}),f=At(w=>{let x=i.current.find(({el:y})=>y===w);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:w,state:"visible"}),()=>l(w,yn.Unmount)}),d=D.useRef([]),p=D.useRef(Promise.resolve()),h=D.useRef({enter:[],leave:[],idle:[]}),S=At((w,x,y)=>{d.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([E])=>E!==w)),t==null||t.chains.current[x].push([w,new Promise(E=>{d.current.push(E)})]),t==null||t.chains.current[x].push([w,new Promise(E=>{Promise.all(h.current[x].map(([P,C])=>C)).then(()=>E())})]),x==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(x)):y(x)}),v=At((w,x,y)=>{Promise.all(h.current[x].splice(0).map(([E,P])=>P)).then(()=>{var E;(E=d.current.shift())==null||E()}).then(()=>y(x))});return D.useMemo(()=>({children:i,register:f,unregister:l,onStart:S,onStop:v,wait:p,chains:h}),[f,l,i,S,v,h,p])}function iR(){}let oR=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Dh(e){var t;let r={};for(let i of oR)r[i]=(t=e[i])!=null?t:iR;return r}function aR(e){let t=D.useRef(Dh(e));return D.useEffect(()=>{t.current=Dh(e)},[e]),t}let sR="div",Om=mm.RenderStrategy;function uR(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f,enter:d,enterFrom:p,enterTo:h,entered:S,leave:v,leaveFrom:w,leaveTo:x,...y}=e,E=D.useRef(null),P=Oo(E,t),C=(r=y.unmount)==null||r?yn.Unmount:yn.Hidden,{show:I,appear:F,initial:O}=rR(),[L,U]=D.useState(I?"visible":"hidden"),z=nR(),{register:q,unregister:V}=z;D.useEffect(()=>q(E),[q,E]),D.useEffect(()=>{if(C===yn.Hidden&&E.current){if(I&&L!=="visible"){U("visible");return}return Cr(L,{hidden:()=>V(E),visible:()=>q(E)})}},[L,E,q,V,I,C]);let ee=wi({base:hn(y.className),enter:hn(d),enterFrom:hn(p),enterTo:hn(h),entered:hn(S),leave:hn(v),leaveFrom:hn(w),leaveTo:hn(x)}),be=aR({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f}),pe=Of();D.useEffect(()=>{if(pe&&L==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,L,pe]);let Ae=O&&!F,Ne=F&&I&&O,ve=!pe||Ae?"idle":I?"enter":"leave",Te=BP(0),Ge=At(Q=>Cr(Q,{enter:()=>{Te.addFlag(Gr.Opening),be.current.beforeEnter()},leave:()=>{Te.addFlag(Gr.Closing),be.current.beforeLeave()},idle:()=>{}})),Ct=At(Q=>Cr(Q,{enter:()=>{Te.removeFlag(Gr.Opening),be.current.afterEnter()},leave:()=>{Te.removeFlag(Gr.Closing),be.current.afterLeave()},idle:()=>{}})),H=_m(()=>{U("hidden"),V(E)},z),G=D.useRef(!1);eR({immediate:Ne,container:E,classes:ee,direction:ve,onStart:wi(Q=>{G.current=!0,H.onStart(E,Q,Ge)}),onStop:wi(Q=>{G.current=!1,H.onStop(E,Q,Ct),Q==="leave"&&!gs(H)&&(U("hidden"),V(E))})});let re=y,le={ref:P};return Ne?re={...re,className:Qa(y.className,...ee.current.enter,...ee.current.enterFrom)}:G.current&&(re.className=Qa(y.className,(i=E.current)==null?void 0:i.className),re.className===""&&delete re.className),D.createElement(ms.Provider,{value:H},D.createElement(PP,{value:Cr(L,{visible:Gr.Open,hidden:Gr.Closed})|Te.flags},Kn({ourProps:le,theirProps:re,defaultTag:sR,features:Om,visible:L==="visible",name:"Transition.Child"})))}function lR(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=D.useRef(null),f=Oo(l,t);Of();let d=wm();if(r===void 0&&d!==null&&(r=(d&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=D.useState(r?"visible":"hidden"),S=_m(()=>{h("hidden")}),[v,w]=D.useState(!0),x=D.useRef([r]);Ir(()=>{v!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),w(!1))},[x,r]);let y=D.useMemo(()=>({show:r,appear:i,initial:v}),[r,i,v]);D.useEffect(()=>{if(r)h("visible");else if(!gs(S))h("hidden");else{let I=l.current;if(!I)return;let F=I.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&h("hidden")}},[r,S]);let E={unmount:a},P=At(()=>{var I;v&&w(!1),(I=e.beforeEnter)==null||I.call(e)}),C=At(()=>{var I;v&&w(!1),(I=e.beforeLeave)==null||I.call(e)});return D.createElement(ms.Provider,{value:S},D.createElement(vs.Provider,{value:y},Kn({ourProps:{...E,as:D.Fragment,children:D.createElement(Am,{ref:f,...E,...s,beforeEnter:P,beforeLeave:C})},theirProps:{},defaultTag:D.Fragment,features:Om,visible:p==="visible",name:"Transition"})))}function fR(e,t){let r=D.useContext(vs)!==null,i=wm()!==null;return D.createElement(D.Fragment,null,!r&&i?D.createElement(Xl,{ref:t,...e}):D.createElement(Am,{ref:t,...e}))}let Xl=Yn(lR),Am=Yn(uR),cR=Yn(fR),es=Object.assign(Xl,{Child:cR,Root:Xl});const xl={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"}},Tm=D.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return $.jsx("div",{className:mt("flex items-center",i),children:$.jsx(VP,{ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
96
+ `));let v=h.props,w=typeof(v==null?void 0:v.className)=="function"?(...y)=>Qa(v==null?void 0:v.className(...y),d.className):Qa(v==null?void 0:v.className,d.className),E=w?{className:w}:{};return D.cloneElement(h,Object.assign({},gm(h.props,Yl(bl(d,["ref"]))),b,p,{ref:a(h.ref,p.ref)},E))}return D.createElement(s,Object.assign({},bl(d,["ref"]),s!==D.Fragment&&p,s!==D.Fragment&&b),h)}function AP(...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 gm(...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 f of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...s)}}});return t}function Yn(e){var t;return Object.assign(D.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yl(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function bl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let TP="div";var ym=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ym||{});function CP(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 Kn({ourProps:s,theirProps:a,slot:{},defaultTag:TP,name:"Hidden"})}let PP=Yn(CP),Tf=D.createContext(null);Tf.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function wm(){return D.useContext(Tf)}function RP({value:e,children:t}){return D.createElement(Tf.Provider,{value:e},t)}function IP(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&&MP(r)?!1:i}function MP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function FP(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 Vl=(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))(Vl||{});function Cf(){let e=D.useRef(!1);return Ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let bm=D.createContext(null);function Sm(){let e=D.useContext(bm);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,Sm),t}return e}function LP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(bm.Provider,{value:a},r.children)},[t])]}let $P="p";function DP(e,t){let r=Af(),{id:i=`headlessui-description-${r}`,...a}=e,s=Sm(),l=Oo(t);Ir(()=>s.register(i),[i,s.register]);let f={ref:l,...s.props,id:i};return Kn({ourProps:f,theirProps:a,slot:s.slot||{},defaultTag:$P,name:s.name||"Description"})}let kP=Yn(DP),NP=Object.assign(kP,{}),Em=D.createContext(null);function xm(){let e=D.useContext(Em);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,xm),t}return e}function jP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(Em.Provider,{value:a},r.children)},[t])]}let WP="label";function zP(e,t){let r=Af(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=xm(),f=Oo(t);Ir(()=>l.register(i),[i,l.register]);let d={ref:f,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Kn({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:WP,name:l.name||"Label"})}let UP=Yn(zP),BP=Object.assign(UP,{});function HP(e=0){let[t,r]=D.useState(e),i=Cf(),a=D.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=D.useCallback(d=>!!(t&d),[t]),l=D.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),f=D.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:f}}let Pf=D.createContext(null);Pf.displayName="GroupContext";let qP=D.Fragment;function ZP(e){var t;let[r,i]=D.useState(null),[a,s]=jP(),[l,f]=LP(),d=D.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return D.createElement(f,{name:"Switch.Description"},D.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(b){r&&(b.currentTarget.tagName==="LABEL"&&b.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},D.createElement(Pf.Provider,{value:d},Kn({ourProps:p,theirProps:h,defaultTag:qP,name:"Switch.Group"}))))}let GP="button";function KP(e,t){var r;let i=Af(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:f,disabled:d=!1,name:p,value:h,form:b,...v}=e,w=D.useContext(Pf),E=D.useRef(null),y=Oo(E,t,w===null?null:w.setSwitch),[x,A]=SP(s,f,l),I=At(()=>A==null?void 0:A(!x)),P=At(q=>{if(IP(q.currentTarget))return q.preventDefault();q.preventDefault(),I()}),F=At(q=>{q.key===Vl.Space?(q.preventDefault(),I()):q.key===Vl.Enter&&FP(q.currentTarget)}),O=At(q=>q.preventDefault()),L=D.useMemo(()=>({checked:x}),[x]),U={id:a,ref:y,role:"switch",type:_P(e,E),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":x,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:d,onClick:P,onKeyUp:F,onKeyPress:O},z=_f();return D.useEffect(()=>{var q;let V=(q=E.current)==null?void 0:q.closest("form");V&&l!==void 0&&z.addEventListener(V,"reset",()=>{A(l)})},[E,A]),D.createElement(D.Fragment,null,p!=null&&x&&D.createElement(PP,{features:ym.Hidden,...Yl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:d,form:b,checked:x,name:p,value:h})}),Kn({ourProps:U,theirProps:v,slot:L,defaultTag:GP,name:"Switch"}))}let YP=Yn(KP),VP=ZP,XP=Object.assign(YP,{Group:VP,Label:BP,Description:NP});function JP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Sl(e,...t){e&&t.length>0&&e.classList.add(...t)}function El(e,...t){e&&t.length>0&&e.classList.remove(...t)}function QP(e,t){let r=_o();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,b)=>b-h);return p}),f=s+l;if(f!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},f),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function eR(e,t,r,i){let a=r?"enter":"leave",s=_o(),l=i!==void 0?JP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=Cr(a,{enter:()=>t.enter,leave:()=>t.leave}),d=Cr(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=Cr(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return El(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Sl(e,...t.base,...f,...p),s.nextFrame(()=>{El(e,...t.base,...f,...p),Sl(e,...t.base,...f,...d),QP(e,()=>(El(e,...t.base,...f),Sl(e,...t.base,...t.entered),l()))}),s.dispose}function tR({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=Cf(),f=_f(),d=wi(r);Ir(()=>{e&&(d.current="enter")},[e]),Ir(()=>{let p=_o();f.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(eR(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function hn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let vs=D.createContext(null);vs.displayName="TransitionContext";var rR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(rR||{});function nR(){let e=D.useContext(vs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function iR(){let e=D.useContext(ms);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ms=D.createContext(null);ms.displayName="NestingContext";function gs(e){return"children"in e?gs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function _m(e,t){let r=wi(e),i=D.useRef([]),a=Cf(),s=_f(),l=At((w,E=yn.Hidden)=>{let y=i.current.findIndex(({el:x})=>x===w);y!==-1&&(Cr(E,{[yn.Unmount](){i.current.splice(y,1)},[yn.Hidden](){i.current[y].state="hidden"}}),s.microTask(()=>{var x;!gs(i)&&a.current&&((x=r.current)==null||x.call(r))}))}),f=At(w=>{let E=i.current.find(({el:y})=>y===w);return E?E.state!=="visible"&&(E.state="visible"):i.current.push({el:w,state:"visible"}),()=>l(w,yn.Unmount)}),d=D.useRef([]),p=D.useRef(Promise.resolve()),h=D.useRef({enter:[],leave:[],idle:[]}),b=At((w,E,y)=>{d.current.splice(0),t&&(t.chains.current[E]=t.chains.current[E].filter(([x])=>x!==w)),t==null||t.chains.current[E].push([w,new Promise(x=>{d.current.push(x)})]),t==null||t.chains.current[E].push([w,new Promise(x=>{Promise.all(h.current[E].map(([A,I])=>I)).then(()=>x())})]),E==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(E)):y(E)}),v=At((w,E,y)=>{Promise.all(h.current[E].splice(0).map(([x,A])=>A)).then(()=>{var x;(x=d.current.shift())==null||x()}).then(()=>y(E))});return D.useMemo(()=>({children:i,register:f,unregister:l,onStart:b,onStop:v,wait:p,chains:h}),[f,l,i,b,v,h,p])}function oR(){}let aR=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Dh(e){var t;let r={};for(let i of aR)r[i]=(t=e[i])!=null?t:oR;return r}function sR(e){let t=D.useRef(Dh(e));return D.useEffect(()=>{t.current=Dh(e)},[e]),t}let uR="div",Om=mm.RenderStrategy;function lR(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f,enter:d,enterFrom:p,enterTo:h,entered:b,leave:v,leaveFrom:w,leaveTo:E,...y}=e,x=D.useRef(null),A=Oo(x,t),I=(r=y.unmount)==null||r?yn.Unmount:yn.Hidden,{show:P,appear:F,initial:O}=nR(),[L,U]=D.useState(P?"visible":"hidden"),z=iR(),{register:q,unregister:V}=z;D.useEffect(()=>q(x),[q,x]),D.useEffect(()=>{if(I===yn.Hidden&&x.current){if(P&&L!=="visible"){U("visible");return}return Cr(L,{hidden:()=>V(x),visible:()=>q(x)})}},[L,x,q,V,P,I]);let ee=wi({base:hn(y.className),enter:hn(d),enterFrom:hn(p),enterTo:hn(h),entered:hn(b),leave:hn(v),leaveFrom:hn(w),leaveTo:hn(E)}),be=sR({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f}),pe=Of();D.useEffect(()=>{if(pe&&L==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,L,pe]);let Ae=O&&!F,Ne=F&&P&&O,ve=!pe||Ae?"idle":P?"enter":"leave",Te=HP(0),Ge=At(Q=>Cr(Q,{enter:()=>{Te.addFlag(Gr.Opening),be.current.beforeEnter()},leave:()=>{Te.addFlag(Gr.Closing),be.current.beforeLeave()},idle:()=>{}})),Ct=At(Q=>Cr(Q,{enter:()=>{Te.removeFlag(Gr.Opening),be.current.afterEnter()},leave:()=>{Te.removeFlag(Gr.Closing),be.current.afterLeave()},idle:()=>{}})),H=_m(()=>{U("hidden"),V(x)},z),G=D.useRef(!1);tR({immediate:Ne,container:x,classes:ee,direction:ve,onStart:wi(Q=>{G.current=!0,H.onStart(x,Q,Ge)}),onStop:wi(Q=>{G.current=!1,H.onStop(x,Q,Ct),Q==="leave"&&!gs(H)&&(U("hidden"),V(x))})});let re=y,le={ref:A};return Ne?re={...re,className:Qa(y.className,...ee.current.enter,...ee.current.enterFrom)}:G.current&&(re.className=Qa(y.className,(i=x.current)==null?void 0:i.className),re.className===""&&delete re.className),D.createElement(ms.Provider,{value:H},D.createElement(RP,{value:Cr(L,{visible:Gr.Open,hidden:Gr.Closed})|Te.flags},Kn({ourProps:le,theirProps:re,defaultTag:uR,features:Om,visible:L==="visible",name:"Transition.Child"})))}function fR(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=D.useRef(null),f=Oo(l,t);Of();let d=wm();if(r===void 0&&d!==null&&(r=(d&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=D.useState(r?"visible":"hidden"),b=_m(()=>{h("hidden")}),[v,w]=D.useState(!0),E=D.useRef([r]);Ir(()=>{v!==!1&&E.current[E.current.length-1]!==r&&(E.current.push(r),w(!1))},[E,r]);let y=D.useMemo(()=>({show:r,appear:i,initial:v}),[r,i,v]);D.useEffect(()=>{if(r)h("visible");else if(!gs(b))h("hidden");else{let P=l.current;if(!P)return;let F=P.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&h("hidden")}},[r,b]);let x={unmount:a},A=At(()=>{var P;v&&w(!1),(P=e.beforeEnter)==null||P.call(e)}),I=At(()=>{var P;v&&w(!1),(P=e.beforeLeave)==null||P.call(e)});return D.createElement(ms.Provider,{value:b},D.createElement(vs.Provider,{value:y},Kn({ourProps:{...x,as:D.Fragment,children:D.createElement(Am,{ref:f,...x,...s,beforeEnter:A,beforeLeave:I})},theirProps:{},defaultTag:D.Fragment,features:Om,visible:p==="visible",name:"Transition"})))}function cR(e,t){let r=D.useContext(vs)!==null,i=wm()!==null;return D.createElement(D.Fragment,null,!r&&i?D.createElement(Xl,{ref:t,...e}):D.createElement(Am,{ref:t,...e}))}let Xl=Yn(fR),Am=Yn(lR),dR=Yn(cR),es=Object.assign(Xl,{Child:dR,Root:Xl});const xl={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"}},Tm=D.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return $.jsx("div",{className:ft("flex items-center",i),children:$.jsx(XP,{as:"span",ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
97
97
  relative inline-flex shrink-0 ${xl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:$.jsx("span",{"aria-hidden":"true",className:`${t?xl[r].translate:"translate-x-0"}
98
- pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),dR=({children:e,label:t,placement:r="top",className:i})=>{const[a,s]=D.useState(null),[l,f]=D.useState(null),[d,p]=D.useState(!1),{styles:h,attributes:S}=lv(a,l,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),v=D.Children.map(e,w=>D.isValidElement(w)?D.cloneElement(w,{ref:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)}):w);return $.jsxs($.Fragment,{children:[v,d&&ho.createPortal($.jsx("div",{ref:f,style:h.popper,...S.popper,className:mt("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",i),children:t}),document.querySelector("body"))]})},pR=Ml.keyframes`
98
+ pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),pR=({children:e,label:t,placement:r="top",className:i})=>{const[a,s]=D.useState(null),[l,f]=D.useState(null),[d,p]=D.useState(!1),{styles:h,attributes:b}=lv(a,l,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),v=D.Children.map(e,w=>D.isValidElement(w)?D.cloneElement(w,{ref:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)}):w);return $.jsxs($.Fragment,{children:[v,d&&ho.createPortal($.jsx("div",{ref:f,style:h.popper,...b.popper,className:ft("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",i),children:t}),document.querySelector("body"))]})},hR=Ml.keyframes`
99
99
  to {
100
100
  fill: url(#d);
101
101
  stroke-dashoffset: 0;
@@ -111,7 +111,7 @@ pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white
111
111
  fill: transparent;
112
112
  stroke-dasharray: 700;
113
113
  stroke-dashoffset: 700;
114
- animation: ${pR} 1.5s ease-in-out infinite alternate-reverse;
114
+ animation: ${hR} 1.5s ease-in-out infinite alternate-reverse;
115
115
  }
116
116
 
117
117
  & #circle {
@@ -121,17 +121,17 @@ pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white
121
121
  stroke-dasharray: 700;
122
122
  stroke-dashoffset: 700;
123
123
  }
124
- `,hR=({message:e,version:t})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(Cm,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),$.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:t}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var ts={exports:{}};/**
124
+ `,vR=({message:e,version:t})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(Cm,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),$.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:t}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var ts={exports:{}};/**
125
125
  * @license
126
126
  * Lodash <https://lodash.com/>
127
127
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
128
128
  * Released under MIT license <https://lodash.com/license>
129
129
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
130
130
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
131
- */ts.exports;(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",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",S=1,v=2,w=4,x=1,y=2,E=1,P=2,C=4,I=8,F=16,O=32,L=64,U=128,z=256,q=512,V=30,ee="...",be=800,pe=16,Ae=1,Ne=2,ve=3,Te=1/0,Ge=9007199254740991,Ct=17976931348623157e292,H=NaN,G=4294967295,re=G-1,le=G>>>1,Q=[["ary",U],["bind",E],["bindKey",P],["curry",I],["curryRight",F],["flip",q],["partial",O],["partialRight",L],["rearg",z]],ae="[object Arguments]",se="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",ge="[object Date]",xe="[object DOMException]",He="[object Error]",K="[object Function]",gt="[object GeneratorFunction]",st="[object Map]",br="[object Number]",Co="[object Null]",Xt="[object Object]",Po="[object Promise]",xs="[object Proxy]",zt="[object RegExp]",yt="[object Set]",Xr="[object String]",_n="[object Symbol]",Ti="[object Undefined]",Jr="[object WeakMap]",Ro="[object WeakSet]",Qr="[object ArrayBuffer]",Lr="[object DataView]",_s="[object Float32Array]",Os="[object Float64Array]",As="[object Int8Array]",Ts="[object Int16Array]",Cs="[object Int32Array]",Ps="[object Uint8Array]",Rs="[object Uint8ClampedArray]",Is="[object Uint16Array]",Ms="[object Uint32Array]",Ug=/\b__p \+= '';/g,Bg=/\b(__p \+=) '' \+/g,Hg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gf=/&(?:amp|lt|gt|quot|#39);/g,Kf=/[&<>"']/g,qg=RegExp(Gf.source),Zg=RegExp(Kf.source),Gg=/<%-([\s\S]+?)%>/g,Kg=/<%([\s\S]+?)%>/g,Yf=/<%=([\s\S]+?)%>/g,Yg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vg=/^\w*$/,Xg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fs=/[\\^$.*+?()[\]{}|]/g,Jg=RegExp(Fs.source),Ls=/^\s+/,Qg=/\s/,ey=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ty=/\{\n\/\* \[wrapped with (.+)\] \*/,ry=/,? & /,ny=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,iy=/[()=,{}\[\]\/\s]/,oy=/\\(\\)?/g,ay=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vf=/\w*$/,sy=/^[-+]0x[0-9a-f]+$/i,uy=/^0b[01]+$/i,ly=/^\[object .+?Constructor\]$/,fy=/^0o[0-7]+$/i,cy=/^(?:0|[1-9]\d*)$/,dy=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,py=/['\n\r\u2028\u2029\\]/g,Mo="\\ud800-\\udfff",hy="\\u0300-\\u036f",vy="\\ufe20-\\ufe2f",my="\\u20d0-\\u20ff",Xf=hy+vy+my,Jf="\\u2700-\\u27bf",Qf="a-z\\xdf-\\xf6\\xf8-\\xff",gy="\\xac\\xb1\\xd7\\xf7",yy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wy="\\u2000-\\u206f",by=" \\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",ec="A-Z\\xc0-\\xd6\\xd8-\\xde",tc="\\ufe0e\\ufe0f",rc=gy+yy+wy+by,$s="['’]",Sy="["+Mo+"]",nc="["+rc+"]",Fo="["+Xf+"]",ic="\\d+",Ey="["+Jf+"]",oc="["+Qf+"]",ac="[^"+Mo+rc+ic+Jf+Qf+ec+"]",Ds="\\ud83c[\\udffb-\\udfff]",xy="(?:"+Fo+"|"+Ds+")",sc="[^"+Mo+"]",ks="(?:\\ud83c[\\udde6-\\uddff]){2}",Ns="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+ec+"]",uc="\\u200d",lc="(?:"+oc+"|"+ac+")",_y="(?:"+Jn+"|"+ac+")",fc="(?:"+$s+"(?:d|ll|m|re|s|t|ve))?",cc="(?:"+$s+"(?:D|LL|M|RE|S|T|VE))?",dc=xy+"?",pc="["+tc+"]?",Oy="(?:"+uc+"(?:"+[sc,ks,Ns].join("|")+")"+pc+dc+")*",Ay="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ty="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hc=pc+dc+Oy,Cy="(?:"+[Ey,ks,Ns].join("|")+")"+hc,Py="(?:"+[sc+Fo+"?",Fo,ks,Ns,Sy].join("|")+")",Ry=RegExp($s,"g"),Iy=RegExp(Fo,"g"),js=RegExp(Ds+"(?="+Ds+")|"+Py+hc,"g"),My=RegExp([Jn+"?"+oc+"+"+fc+"(?="+[nc,Jn,"$"].join("|")+")",_y+"+"+cc+"(?="+[nc,Jn+lc,"$"].join("|")+")",Jn+"?"+lc+"+"+fc,Jn+"+"+cc,Ty,Ay,ic,Cy].join("|"),"g"),Fy=RegExp("["+uc+Mo+Xf+tc+"]"),Ly=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$y=["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"],Dy=-1,We={};We[_s]=We[Os]=We[As]=We[Ts]=We[Cs]=We[Ps]=We[Rs]=We[Is]=We[Ms]=!0,We[ae]=We[se]=We[Qr]=We[ue]=We[Lr]=We[ge]=We[He]=We[K]=We[st]=We[br]=We[Xt]=We[zt]=We[yt]=We[Xr]=We[Jr]=!1;var je={};je[ae]=je[se]=je[Qr]=je[Lr]=je[ue]=je[ge]=je[_s]=je[Os]=je[As]=je[Ts]=je[Cs]=je[st]=je[br]=je[Xt]=je[zt]=je[yt]=je[Xr]=je[_n]=je[Ps]=je[Rs]=je[Is]=je[Ms]=!0,je[He]=je[K]=je[Jr]=!1;var ky={À:"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"},Ny={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zy=parseFloat,Uy=parseInt,vc=typeof kn=="object"&&kn&&kn.Object===Object&&kn,By=typeof self=="object"&&self&&self.Object===Object&&self,ct=vc||By||Function("return this")(),Ws=t&&!t.nodeType&&t,On=Ws&&!0&&e&&!e.nodeType&&e,mc=On&&On.exports===Ws,zs=mc&&vc.process,Jt=function(){try{var R=On&&On.require&&On.require("util").types;return R||zs&&zs.binding&&zs.binding("util")}catch{}}(),gc=Jt&&Jt.isArrayBuffer,yc=Jt&&Jt.isDate,wc=Jt&&Jt.isMap,bc=Jt&&Jt.isRegExp,Sc=Jt&&Jt.isSet,Ec=Jt&&Jt.isTypedArray;function Ut(R,N,k){switch(k.length){case 0:return R.call(N);case 1:return R.call(N,k[0]);case 2:return R.call(N,k[0],k[1]);case 3:return R.call(N,k[0],k[1],k[2])}return R.apply(N,k)}function Hy(R,N,k,X){for(var fe=-1,Re=R==null?0:R.length;++fe<Re;){var rt=R[fe];N(X,rt,k(rt),R)}return X}function Qt(R,N){for(var k=-1,X=R==null?0:R.length;++k<X&&N(R[k],k,R)!==!1;);return R}function qy(R,N){for(var k=R==null?0:R.length;k--&&N(R[k],k,R)!==!1;);return R}function xc(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(!N(R[k],k,R))return!1;return!0}function en(R,N){for(var k=-1,X=R==null?0:R.length,fe=0,Re=[];++k<X;){var rt=R[k];N(rt,k,R)&&(Re[fe++]=rt)}return Re}function Lo(R,N){var k=R==null?0:R.length;return!!k&&Qn(R,N,0)>-1}function Us(R,N,k){for(var X=-1,fe=R==null?0:R.length;++X<fe;)if(k(N,R[X]))return!0;return!1}function ze(R,N){for(var k=-1,X=R==null?0:R.length,fe=Array(X);++k<X;)fe[k]=N(R[k],k,R);return fe}function tn(R,N){for(var k=-1,X=N.length,fe=R.length;++k<X;)R[fe+k]=N[k];return R}function Bs(R,N,k,X){var fe=-1,Re=R==null?0:R.length;for(X&&Re&&(k=R[++fe]);++fe<Re;)k=N(k,R[fe],fe,R);return k}function Zy(R,N,k,X){var fe=R==null?0:R.length;for(X&&fe&&(k=R[--fe]);fe--;)k=N(k,R[fe],fe,R);return k}function Hs(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(N(R[k],k,R))return!0;return!1}var Gy=qs("length");function Ky(R){return R.split("")}function Yy(R){return R.match(ny)||[]}function _c(R,N,k){var X;return k(R,function(fe,Re,rt){if(N(fe,Re,rt))return X=Re,!1}),X}function $o(R,N,k,X){for(var fe=R.length,Re=k+(X?1:-1);X?Re--:++Re<fe;)if(N(R[Re],Re,R))return Re;return-1}function Qn(R,N,k){return N===N?s0(R,N,k):$o(R,Oc,k)}function Vy(R,N,k,X){for(var fe=k-1,Re=R.length;++fe<Re;)if(X(R[fe],N))return fe;return-1}function Oc(R){return R!==R}function Ac(R,N){var k=R==null?0:R.length;return k?Gs(R,N)/k:H}function qs(R){return function(N){return N==null?r:N[R]}}function Zs(R){return function(N){return R==null?r:R[N]}}function Tc(R,N,k,X,fe){return fe(R,function(Re,rt,ke){k=X?(X=!1,Re):N(k,Re,rt,ke)}),k}function Xy(R,N){var k=R.length;for(R.sort(N);k--;)R[k]=R[k].value;return R}function Gs(R,N){for(var k,X=-1,fe=R.length;++X<fe;){var Re=N(R[X]);Re!==r&&(k=k===r?Re:k+Re)}return k}function Ks(R,N){for(var k=-1,X=Array(R);++k<R;)X[k]=N(k);return X}function Jy(R,N){return ze(N,function(k){return[k,R[k]]})}function Cc(R){return R&&R.slice(0,Mc(R)+1).replace(Ls,"")}function Bt(R){return function(N){return R(N)}}function Ys(R,N){return ze(N,function(k){return R[k]})}function Ci(R,N){return R.has(N)}function Pc(R,N){for(var k=-1,X=R.length;++k<X&&Qn(N,R[k],0)>-1;);return k}function Rc(R,N){for(var k=R.length;k--&&Qn(N,R[k],0)>-1;);return k}function Qy(R,N){for(var k=R.length,X=0;k--;)R[k]===N&&++X;return X}var e0=Zs(ky),t0=Zs(Ny);function r0(R){return"\\"+Wy[R]}function n0(R,N){return R==null?r:R[N]}function ei(R){return Fy.test(R)}function i0(R){return Ly.test(R)}function o0(R){for(var N,k=[];!(N=R.next()).done;)k.push(N.value);return k}function Vs(R){var N=-1,k=Array(R.size);return R.forEach(function(X,fe){k[++N]=[fe,X]}),k}function Ic(R,N){return function(k){return R(N(k))}}function rn(R,N){for(var k=-1,X=R.length,fe=0,Re=[];++k<X;){var rt=R[k];(rt===N||rt===h)&&(R[k]=h,Re[fe++]=k)}return Re}function Do(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=X}),k}function a0(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=[X,X]}),k}function s0(R,N,k){for(var X=k-1,fe=R.length;++X<fe;)if(R[X]===N)return X;return-1}function u0(R,N,k){for(var X=k+1;X--;)if(R[X]===N)return X;return X}function ti(R){return ei(R)?f0(R):Gy(R)}function dr(R){return ei(R)?c0(R):Ky(R)}function Mc(R){for(var N=R.length;N--&&Qg.test(R.charAt(N)););return N}var l0=Zs(jy);function f0(R){for(var N=js.lastIndex=0;js.test(R);)++N;return N}function c0(R){return R.match(js)||[]}function d0(R){return R.match(My)||[]}var p0=function R(N){N=N==null?ct:ri.defaults(ct.Object(),N,ri.pick(ct,$y));var k=N.Array,X=N.Date,fe=N.Error,Re=N.Function,rt=N.Math,ke=N.Object,Xs=N.RegExp,h0=N.String,er=N.TypeError,ko=k.prototype,v0=Re.prototype,ni=ke.prototype,No=N["__core-js_shared__"],jo=v0.toString,Le=ni.hasOwnProperty,m0=0,Fc=function(){var n=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Wo=ni.toString,g0=jo.call(ke),y0=ct._,w0=Xs("^"+jo.call(Le).replace(Fs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zo=mc?N.Buffer:r,nn=N.Symbol,Uo=N.Uint8Array,Lc=zo?zo.allocUnsafe:r,Bo=Ic(ke.getPrototypeOf,ke),$c=ke.create,Dc=ni.propertyIsEnumerable,Ho=ko.splice,kc=nn?nn.isConcatSpreadable:r,Pi=nn?nn.iterator:r,An=nn?nn.toStringTag:r,qo=function(){try{var n=In(ke,"defineProperty");return n({},"",{}),n}catch{}}(),b0=N.clearTimeout!==ct.clearTimeout&&N.clearTimeout,S0=X&&X.now!==ct.Date.now&&X.now,E0=N.setTimeout!==ct.setTimeout&&N.setTimeout,Zo=rt.ceil,Go=rt.floor,Js=ke.getOwnPropertySymbols,x0=zo?zo.isBuffer:r,Nc=N.isFinite,_0=ko.join,O0=Ic(ke.keys,ke),nt=rt.max,wt=rt.min,A0=X.now,T0=N.parseInt,jc=rt.random,C0=ko.reverse,Qs=In(N,"DataView"),Ri=In(N,"Map"),eu=In(N,"Promise"),ii=In(N,"Set"),Ii=In(N,"WeakMap"),Mi=In(ke,"create"),Ko=Ii&&new Ii,oi={},P0=Mn(Qs),R0=Mn(Ri),I0=Mn(eu),M0=Mn(ii),F0=Mn(Ii),Yo=nn?nn.prototype:r,Fi=Yo?Yo.valueOf:r,Wc=Yo?Yo.toString:r;function g(n){if(Ke(n)&&!de(n)&&!(n instanceof _e)){if(n instanceof tr)return n;if(Le.call(n,"__wrapped__"))return zd(n)}return new tr(n)}var ai=function(){function n(){}return function(o){if(!qe(o))return{};if($c)return $c(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Vo(){}function tr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}g.templateSettings={escape:Gg,evaluate:Kg,interpolate:Yf,variable:"",imports:{_:g}},g.prototype=Vo.prototype,g.prototype.constructor=g,tr.prototype=ai(Vo.prototype),tr.prototype.constructor=tr;function _e(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function L0(){var n=new _e(this.__wrapped__);return n.__actions__=Lt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Lt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Lt(this.__views__),n}function $0(){if(this.__filtered__){var n=new _e(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function D0(){var n=this.__wrapped__.value(),o=this.__dir__,u=de(n),c=o<0,m=u?n.length:0,b=K1(0,m,this.__views__),_=b.start,A=b.end,M=A-_,j=c?A:_-1,W=this.__iteratees__,B=W.length,Y=0,J=wt(M,this.__takeCount__);if(!u||!c&&m==M&&J==M)return fd(n,this.__actions__);var ne=[];e:for(;M--&&Y<J;){j+=o;for(var me=-1,ie=n[j];++me<B;){var Ee=W[me],Oe=Ee.iteratee,Zt=Ee.type,It=Oe(ie);if(Zt==Ne)ie=It;else if(!It){if(Zt==Ae)continue e;break e}}ne[Y++]=ie}return ne}_e.prototype=ai(Vo.prototype),_e.prototype.constructor=_e;function Tn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function k0(){this.__data__=Mi?Mi(null):{},this.size=0}function N0(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function j0(n){var o=this.__data__;if(Mi){var u=o[n];return u===d?r:u}return Le.call(o,n)?o[n]:r}function W0(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function z0(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Mi&&o===r?d:o,this}Tn.prototype.clear=k0,Tn.prototype.delete=N0,Tn.prototype.get=j0,Tn.prototype.has=W0,Tn.prototype.set=z0;function $r(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function U0(){this.__data__=[],this.size=0}function B0(n){var o=this.__data__,u=Xo(o,n);if(u<0)return!1;var c=o.length-1;return u==c?o.pop():Ho.call(o,u,1),--this.size,!0}function H0(n){var o=this.__data__,u=Xo(o,n);return u<0?r:o[u][1]}function q0(n){return Xo(this.__data__,n)>-1}function Z0(n,o){var u=this.__data__,c=Xo(u,n);return c<0?(++this.size,u.push([n,o])):u[c][1]=o,this}$r.prototype.clear=U0,$r.prototype.delete=B0,$r.prototype.get=H0,$r.prototype.has=q0,$r.prototype.set=Z0;function Dr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function G0(){this.size=0,this.__data__={hash:new Tn,map:new(Ri||$r),string:new Tn}}function K0(n){var o=la(this,n).delete(n);return this.size-=o?1:0,o}function Y0(n){return la(this,n).get(n)}function V0(n){return la(this,n).has(n)}function X0(n,o){var u=la(this,n),c=u.size;return u.set(n,o),this.size+=u.size==c?0:1,this}Dr.prototype.clear=G0,Dr.prototype.delete=K0,Dr.prototype.get=Y0,Dr.prototype.has=V0,Dr.prototype.set=X0;function Cn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Dr;++o<u;)this.add(n[o])}function J0(n){return this.__data__.set(n,d),this}function Q0(n){return this.__data__.has(n)}Cn.prototype.add=Cn.prototype.push=J0,Cn.prototype.has=Q0;function pr(n){var o=this.__data__=new $r(n);this.size=o.size}function e1(){this.__data__=new $r,this.size=0}function t1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function r1(n){return this.__data__.get(n)}function n1(n){return this.__data__.has(n)}function i1(n,o){var u=this.__data__;if(u instanceof $r){var c=u.__data__;if(!Ri||c.length<a-1)return c.push([n,o]),this.size=++u.size,this;u=this.__data__=new Dr(c)}return u.set(n,o),this.size=u.size,this}pr.prototype.clear=e1,pr.prototype.delete=t1,pr.prototype.get=r1,pr.prototype.has=n1,pr.prototype.set=i1;function zc(n,o){var u=de(n),c=!u&&Fn(n),m=!u&&!c&&ln(n),b=!u&&!c&&!m&&fi(n),_=u||c||m||b,A=_?Ks(n.length,h0):[],M=A.length;for(var j in n)(o||Le.call(n,j))&&!(_&&(j=="length"||m&&(j=="offset"||j=="parent")||b&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Wr(j,M)))&&A.push(j);return A}function Uc(n){var o=n.length;return o?n[cu(0,o-1)]:r}function o1(n,o){return fa(Lt(n),Pn(o,0,n.length))}function a1(n){return fa(Lt(n))}function tu(n,o,u){(u!==r&&!hr(n[o],u)||u===r&&!(o in n))&&kr(n,o,u)}function Li(n,o,u){var c=n[o];(!(Le.call(n,o)&&hr(c,u))||u===r&&!(o in n))&&kr(n,o,u)}function Xo(n,o){for(var u=n.length;u--;)if(hr(n[u][0],o))return u;return-1}function s1(n,o,u,c){return on(n,function(m,b,_){o(c,m,u(m),_)}),c}function Bc(n,o){return n&&Er(o,ut(o),n)}function u1(n,o){return n&&Er(o,Dt(o),n)}function kr(n,o,u){o=="__proto__"&&qo?qo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function ru(n,o){for(var u=-1,c=o.length,m=k(c),b=n==null;++u<c;)m[u]=b?r:Du(n,o[u]);return m}function Pn(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function rr(n,o,u,c,m,b){var _,A=o&S,M=o&v,j=o&w;if(u&&(_=m?u(n,c,m,b):u(n)),_!==r)return _;if(!qe(n))return n;var W=de(n);if(W){if(_=V1(n),!A)return Lt(n,_)}else{var B=bt(n),Y=B==K||B==gt;if(ln(n))return pd(n,A);if(B==Xt||B==ae||Y&&!m){if(_=M||Y?{}:Md(n),!A)return M?j1(n,u1(_,n)):N1(n,Bc(_,n))}else{if(!je[B])return m?n:{};_=X1(n,B,A)}}b||(b=new pr);var J=b.get(n);if(J)return J;b.set(n,_),sp(n)?n.forEach(function(ie){_.add(rr(ie,o,u,ie,n,b))}):op(n)&&n.forEach(function(ie,Ee){_.set(Ee,rr(ie,o,u,Ee,n,b))});var ne=j?M?Eu:Su:M?Dt:ut,me=W?r:ne(n);return Qt(me||n,function(ie,Ee){me&&(Ee=ie,ie=n[Ee]),Li(_,Ee,rr(ie,o,u,Ee,n,b))}),_}function l1(n){var o=ut(n);return function(u){return Hc(u,n,o)}}function Hc(n,o,u){var c=u.length;if(n==null)return!c;for(n=ke(n);c--;){var m=u[c],b=o[m],_=n[m];if(_===r&&!(m in n)||!b(_))return!1}return!0}function qc(n,o,u){if(typeof n!="function")throw new er(l);return zi(function(){n.apply(r,u)},o)}function $i(n,o,u,c){var m=-1,b=Lo,_=!0,A=n.length,M=[],j=o.length;if(!A)return M;u&&(o=ze(o,Bt(u))),c?(b=Us,_=!1):o.length>=a&&(b=Ci,_=!1,o=new Cn(o));e:for(;++m<A;){var W=n[m],B=u==null?W:u(W);if(W=c||W!==0?W:0,_&&B===B){for(var Y=j;Y--;)if(o[Y]===B)continue e;M.push(W)}else b(o,B,c)||M.push(W)}return M}var on=yd(Sr),Zc=yd(iu,!0);function f1(n,o){var u=!0;return on(n,function(c,m,b){return u=!!o(c,m,b),u}),u}function Jo(n,o,u){for(var c=-1,m=n.length;++c<m;){var b=n[c],_=o(b);if(_!=null&&(A===r?_===_&&!qt(_):u(_,A)))var A=_,M=b}return M}function c1(n,o,u,c){var m=n.length;for(u=he(u),u<0&&(u=-u>m?0:m+u),c=c===r||c>m?m:he(c),c<0&&(c+=m),c=u>c?0:lp(c);u<c;)n[u++]=o;return n}function Gc(n,o){var u=[];return on(n,function(c,m,b){o(c,m,b)&&u.push(c)}),u}function dt(n,o,u,c,m){var b=-1,_=n.length;for(u||(u=Q1),m||(m=[]);++b<_;){var A=n[b];o>0&&u(A)?o>1?dt(A,o-1,u,c,m):tn(m,A):c||(m[m.length]=A)}return m}var nu=wd(),Kc=wd(!0);function Sr(n,o){return n&&nu(n,o,ut)}function iu(n,o){return n&&Kc(n,o,ut)}function Qo(n,o){return en(o,function(u){return zr(n[u])})}function Rn(n,o){o=sn(o,n);for(var u=0,c=o.length;n!=null&&u<c;)n=n[xr(o[u++])];return u&&u==c?n:r}function Yc(n,o,u){var c=o(n);return de(n)?c:tn(c,u(n))}function Pt(n){return n==null?n===r?Ti:Co:An&&An in ke(n)?G1(n):aw(n)}function ou(n,o){return n>o}function d1(n,o){return n!=null&&Le.call(n,o)}function p1(n,o){return n!=null&&o in ke(n)}function h1(n,o,u){return n>=wt(o,u)&&n<nt(o,u)}function au(n,o,u){for(var c=u?Us:Lo,m=n[0].length,b=n.length,_=b,A=k(b),M=1/0,j=[];_--;){var W=n[_];_&&o&&(W=ze(W,Bt(o))),M=wt(W.length,M),A[_]=!u&&(o||m>=120&&W.length>=120)?new Cn(_&&W):r}W=n[0];var B=-1,Y=A[0];e:for(;++B<m&&j.length<M;){var J=W[B],ne=o?o(J):J;if(J=u||J!==0?J:0,!(Y?Ci(Y,ne):c(j,ne,u))){for(_=b;--_;){var me=A[_];if(!(me?Ci(me,ne):c(n[_],ne,u)))continue e}Y&&Y.push(ne),j.push(J)}}return j}function v1(n,o,u,c){return Sr(n,function(m,b,_){o(c,u(m),b,_)}),c}function Di(n,o,u){o=sn(o,n),n=Dd(n,o);var c=n==null?n:n[xr(ir(o))];return c==null?r:Ut(c,n,u)}function Vc(n){return Ke(n)&&Pt(n)==ae}function m1(n){return Ke(n)&&Pt(n)==Qr}function g1(n){return Ke(n)&&Pt(n)==ge}function ki(n,o,u,c,m){return n===o?!0:n==null||o==null||!Ke(n)&&!Ke(o)?n!==n&&o!==o:y1(n,o,u,c,ki,m)}function y1(n,o,u,c,m,b){var _=de(n),A=de(o),M=_?se:bt(n),j=A?se:bt(o);M=M==ae?Xt:M,j=j==ae?Xt:j;var W=M==Xt,B=j==Xt,Y=M==j;if(Y&&ln(n)){if(!ln(o))return!1;_=!0,W=!1}if(Y&&!W)return b||(b=new pr),_||fi(n)?Pd(n,o,u,c,m,b):q1(n,o,M,u,c,m,b);if(!(u&x)){var J=W&&Le.call(n,"__wrapped__"),ne=B&&Le.call(o,"__wrapped__");if(J||ne){var me=J?n.value():n,ie=ne?o.value():o;return b||(b=new pr),m(me,ie,u,c,b)}}return Y?(b||(b=new pr),Z1(n,o,u,c,m,b)):!1}function w1(n){return Ke(n)&&bt(n)==st}function su(n,o,u,c){var m=u.length,b=m,_=!c;if(n==null)return!b;for(n=ke(n);m--;){var A=u[m];if(_&&A[2]?A[1]!==n[A[0]]:!(A[0]in n))return!1}for(;++m<b;){A=u[m];var M=A[0],j=n[M],W=A[1];if(_&&A[2]){if(j===r&&!(M in n))return!1}else{var B=new pr;if(c)var Y=c(j,W,M,n,o,B);if(!(Y===r?ki(W,j,x|y,c,B):Y))return!1}}return!0}function Xc(n){if(!qe(n)||tw(n))return!1;var o=zr(n)?w0:ly;return o.test(Mn(n))}function b1(n){return Ke(n)&&Pt(n)==zt}function S1(n){return Ke(n)&&bt(n)==yt}function E1(n){return Ke(n)&&ma(n.length)&&!!We[Pt(n)]}function Jc(n){return typeof n=="function"?n:n==null?kt:typeof n=="object"?de(n)?td(n[0],n[1]):ed(n):bp(n)}function uu(n){if(!Wi(n))return O0(n);var o=[];for(var u in ke(n))Le.call(n,u)&&u!="constructor"&&o.push(u);return o}function x1(n){if(!qe(n))return ow(n);var o=Wi(n),u=[];for(var c in n)c=="constructor"&&(o||!Le.call(n,c))||u.push(c);return u}function lu(n,o){return n<o}function Qc(n,o){var u=-1,c=$t(n)?k(n.length):[];return on(n,function(m,b,_){c[++u]=o(m,b,_)}),c}function ed(n){var o=_u(n);return o.length==1&&o[0][2]?Ld(o[0][0],o[0][1]):function(u){return u===n||su(u,n,o)}}function td(n,o){return Au(n)&&Fd(o)?Ld(xr(n),o):function(u){var c=Du(u,n);return c===r&&c===o?ku(u,n):ki(o,c,x|y)}}function ea(n,o,u,c,m){n!==o&&nu(o,function(b,_){if(m||(m=new pr),qe(b))_1(n,o,_,u,ea,c,m);else{var A=c?c(Cu(n,_),b,_+"",n,o,m):r;A===r&&(A=b),tu(n,_,A)}},Dt)}function _1(n,o,u,c,m,b,_){var A=Cu(n,u),M=Cu(o,u),j=_.get(M);if(j){tu(n,u,j);return}var W=b?b(A,M,u+"",n,o,_):r,B=W===r;if(B){var Y=de(M),J=!Y&&ln(M),ne=!Y&&!J&&fi(M);W=M,Y||J||ne?de(A)?W=A:Ve(A)?W=Lt(A):J?(B=!1,W=pd(M,!0)):ne?(B=!1,W=hd(M,!0)):W=[]:Ui(M)||Fn(M)?(W=A,Fn(A)?W=fp(A):(!qe(A)||zr(A))&&(W=Md(M))):B=!1}B&&(_.set(M,W),m(W,M,c,b,_),_.delete(M)),tu(n,u,W)}function rd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Wr(o,u)?n[o]:r}function nd(n,o,u){o.length?o=ze(o,function(b){return de(b)?function(_){return Rn(_,b.length===1?b[0]:b)}:b}):o=[kt];var c=-1;o=ze(o,Bt(te()));var m=Qc(n,function(b,_,A){var M=ze(o,function(j){return j(b)});return{criteria:M,index:++c,value:b}});return Xy(m,function(b,_){return k1(b,_,u)})}function O1(n,o){return id(n,o,function(u,c){return ku(n,c)})}function id(n,o,u){for(var c=-1,m=o.length,b={};++c<m;){var _=o[c],A=Rn(n,_);u(A,_)&&Ni(b,sn(_,n),A)}return b}function A1(n){return function(o){return Rn(o,n)}}function fu(n,o,u,c){var m=c?Vy:Qn,b=-1,_=o.length,A=n;for(n===o&&(o=Lt(o)),u&&(A=ze(n,Bt(u)));++b<_;)for(var M=0,j=o[b],W=u?u(j):j;(M=m(A,W,M,c))>-1;)A!==n&&Ho.call(A,M,1),Ho.call(n,M,1);return n}function od(n,o){for(var u=n?o.length:0,c=u-1;u--;){var m=o[u];if(u==c||m!==b){var b=m;Wr(m)?Ho.call(n,m,1):hu(n,m)}}return n}function cu(n,o){return n+Go(jc()*(o-n+1))}function T1(n,o,u,c){for(var m=-1,b=nt(Zo((o-n)/(u||1)),0),_=k(b);b--;)_[c?b:++m]=n,n+=u;return _}function du(n,o){var u="";if(!n||o<1||o>Ge)return u;do o%2&&(u+=n),o=Go(o/2),o&&(n+=n);while(o);return u}function ye(n,o){return Pu($d(n,o,kt),n+"")}function C1(n){return Uc(ci(n))}function P1(n,o){var u=ci(n);return fa(u,Pn(o,0,u.length))}function Ni(n,o,u,c){if(!qe(n))return n;o=sn(o,n);for(var m=-1,b=o.length,_=b-1,A=n;A!=null&&++m<b;){var M=xr(o[m]),j=u;if(M==="__proto__"||M==="constructor"||M==="prototype")return n;if(m!=_){var W=A[M];j=c?c(W,M,A):r,j===r&&(j=qe(W)?W:Wr(o[m+1])?[]:{})}Li(A,M,j),A=A[M]}return n}var ad=Ko?function(n,o){return Ko.set(n,o),n}:kt,R1=qo?function(n,o){return qo(n,"toString",{configurable:!0,enumerable:!1,value:ju(o),writable:!0})}:kt;function I1(n){return fa(ci(n))}function nr(n,o,u){var c=-1,m=n.length;o<0&&(o=-o>m?0:m+o),u=u>m?m:u,u<0&&(u+=m),m=o>u?0:u-o>>>0,o>>>=0;for(var b=k(m);++c<m;)b[c]=n[c+o];return b}function M1(n,o){var u;return on(n,function(c,m,b){return u=o(c,m,b),!u}),!!u}function ta(n,o,u){var c=0,m=n==null?c:n.length;if(typeof o=="number"&&o===o&&m<=le){for(;c<m;){var b=c+m>>>1,_=n[b];_!==null&&!qt(_)&&(u?_<=o:_<o)?c=b+1:m=b}return m}return pu(n,o,kt,u)}function pu(n,o,u,c){var m=0,b=n==null?0:n.length;if(b===0)return 0;o=u(o);for(var _=o!==o,A=o===null,M=qt(o),j=o===r;m<b;){var W=Go((m+b)/2),B=u(n[W]),Y=B!==r,J=B===null,ne=B===B,me=qt(B);if(_)var ie=c||ne;else j?ie=ne&&(c||Y):A?ie=ne&&Y&&(c||!J):M?ie=ne&&Y&&!J&&(c||!me):J||me?ie=!1:ie=c?B<=o:B<o;ie?m=W+1:b=W}return wt(b,re)}function sd(n,o){for(var u=-1,c=n.length,m=0,b=[];++u<c;){var _=n[u],A=o?o(_):_;if(!u||!hr(A,M)){var M=A;b[m++]=_===0?0:_}}return b}function ud(n){return typeof n=="number"?n:qt(n)?H:+n}function Ht(n){if(typeof n=="string")return n;if(de(n))return ze(n,Ht)+"";if(qt(n))return Wc?Wc.call(n):"";var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function an(n,o,u){var c=-1,m=Lo,b=n.length,_=!0,A=[],M=A;if(u)_=!1,m=Us;else if(b>=a){var j=o?null:B1(n);if(j)return Do(j);_=!1,m=Ci,M=new Cn}else M=o?[]:A;e:for(;++c<b;){var W=n[c],B=o?o(W):W;if(W=u||W!==0?W:0,_&&B===B){for(var Y=M.length;Y--;)if(M[Y]===B)continue e;o&&M.push(B),A.push(W)}else m(M,B,u)||(M!==A&&M.push(B),A.push(W))}return A}function hu(n,o){return o=sn(o,n),n=Dd(n,o),n==null||delete n[xr(ir(o))]}function ld(n,o,u,c){return Ni(n,o,u(Rn(n,o)),c)}function ra(n,o,u,c){for(var m=n.length,b=c?m:-1;(c?b--:++b<m)&&o(n[b],b,n););return u?nr(n,c?0:b,c?b+1:m):nr(n,c?b+1:0,c?m:b)}function fd(n,o){var u=n;return u instanceof _e&&(u=u.value()),Bs(o,function(c,m){return m.func.apply(m.thisArg,tn([c],m.args))},u)}function vu(n,o,u){var c=n.length;if(c<2)return c?an(n[0]):[];for(var m=-1,b=k(c);++m<c;)for(var _=n[m],A=-1;++A<c;)A!=m&&(b[m]=$i(b[m]||_,n[A],o,u));return an(dt(b,1),o,u)}function cd(n,o,u){for(var c=-1,m=n.length,b=o.length,_={};++c<m;){var A=c<b?o[c]:r;u(_,n[c],A)}return _}function mu(n){return Ve(n)?n:[]}function gu(n){return typeof n=="function"?n:kt}function sn(n,o){return de(n)?n:Au(n,o)?[n]:Wd(Ie(n))}var F1=ye;function un(n,o,u){var c=n.length;return u=u===r?c:u,!o&&u>=c?n:nr(n,o,u)}var dd=b0||function(n){return ct.clearTimeout(n)};function pd(n,o){if(o)return n.slice();var u=n.length,c=Lc?Lc(u):new n.constructor(u);return n.copy(c),c}function yu(n){var o=new n.constructor(n.byteLength);return new Uo(o).set(new Uo(n)),o}function L1(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function $1(n){var o=new n.constructor(n.source,Vf.exec(n));return o.lastIndex=n.lastIndex,o}function D1(n){return Fi?ke(Fi.call(n)):{}}function hd(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function vd(n,o){if(n!==o){var u=n!==r,c=n===null,m=n===n,b=qt(n),_=o!==r,A=o===null,M=o===o,j=qt(o);if(!A&&!j&&!b&&n>o||b&&_&&M&&!A&&!j||c&&_&&M||!u&&M||!m)return 1;if(!c&&!b&&!j&&n<o||j&&u&&m&&!c&&!b||A&&u&&m||!_&&m||!M)return-1}return 0}function k1(n,o,u){for(var c=-1,m=n.criteria,b=o.criteria,_=m.length,A=u.length;++c<_;){var M=vd(m[c],b[c]);if(M){if(c>=A)return M;var j=u[c];return M*(j=="desc"?-1:1)}}return n.index-o.index}function md(n,o,u,c){for(var m=-1,b=n.length,_=u.length,A=-1,M=o.length,j=nt(b-_,0),W=k(M+j),B=!c;++A<M;)W[A]=o[A];for(;++m<_;)(B||m<b)&&(W[u[m]]=n[m]);for(;j--;)W[A++]=n[m++];return W}function gd(n,o,u,c){for(var m=-1,b=n.length,_=-1,A=u.length,M=-1,j=o.length,W=nt(b-A,0),B=k(W+j),Y=!c;++m<W;)B[m]=n[m];for(var J=m;++M<j;)B[J+M]=o[M];for(;++_<A;)(Y||m<b)&&(B[J+u[_]]=n[m++]);return B}function Lt(n,o){var u=-1,c=n.length;for(o||(o=k(c));++u<c;)o[u]=n[u];return o}function Er(n,o,u,c){var m=!u;u||(u={});for(var b=-1,_=o.length;++b<_;){var A=o[b],M=c?c(u[A],n[A],A,u,n):r;M===r&&(M=n[A]),m?kr(u,A,M):Li(u,A,M)}return u}function N1(n,o){return Er(n,Ou(n),o)}function j1(n,o){return Er(n,Rd(n),o)}function na(n,o){return function(u,c){var m=de(u)?Hy:s1,b=o?o():{};return m(u,n,te(c,2),b)}}function si(n){return ye(function(o,u){var c=-1,m=u.length,b=m>1?u[m-1]:r,_=m>2?u[2]:r;for(b=n.length>3&&typeof b=="function"?(m--,b):r,_&&Rt(u[0],u[1],_)&&(b=m<3?r:b,m=1),o=ke(o);++c<m;){var A=u[c];A&&n(o,A,c,b)}return o})}function yd(n,o){return function(u,c){if(u==null)return u;if(!$t(u))return n(u,c);for(var m=u.length,b=o?m:-1,_=ke(u);(o?b--:++b<m)&&c(_[b],b,_)!==!1;);return u}}function wd(n){return function(o,u,c){for(var m=-1,b=ke(o),_=c(o),A=_.length;A--;){var M=_[n?A:++m];if(u(b[M],M,b)===!1)break}return o}}function W1(n,o,u){var c=o&E,m=ji(n);function b(){var _=this&&this!==ct&&this instanceof b?m:n;return _.apply(c?u:this,arguments)}return b}function bd(n){return function(o){o=Ie(o);var u=ei(o)?dr(o):r,c=u?u[0]:o.charAt(0),m=u?un(u,1).join(""):o.slice(1);return c[n]()+m}}function ui(n){return function(o){return Bs(yp(gp(o).replace(Ry,"")),n,"")}}function ji(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=ai(n.prototype),c=n.apply(u,o);return qe(c)?c:u}}function z1(n,o,u){var c=ji(n);function m(){for(var b=arguments.length,_=k(b),A=b,M=li(m);A--;)_[A]=arguments[A];var j=b<3&&_[0]!==M&&_[b-1]!==M?[]:rn(_,M);if(b-=j.length,b<u)return Od(n,o,ia,m.placeholder,r,_,j,r,r,u-b);var W=this&&this!==ct&&this instanceof m?c:n;return Ut(W,this,_)}return m}function Sd(n){return function(o,u,c){var m=ke(o);if(!$t(o)){var b=te(u,3);o=ut(o),u=function(A){return b(m[A],A,m)}}var _=n(o,u,c);return _>-1?m[b?o[_]:_]:r}}function Ed(n){return jr(function(o){var u=o.length,c=u,m=tr.prototype.thru;for(n&&o.reverse();c--;){var b=o[c];if(typeof b!="function")throw new er(l);if(m&&!_&&ua(b)=="wrapper")var _=new tr([],!0)}for(c=_?c:u;++c<u;){b=o[c];var A=ua(b),M=A=="wrapper"?xu(b):r;M&&Tu(M[0])&&M[1]==(U|I|O|z)&&!M[4].length&&M[9]==1?_=_[ua(M[0])].apply(_,M[3]):_=b.length==1&&Tu(b)?_[A]():_.thru(b)}return function(){var j=arguments,W=j[0];if(_&&j.length==1&&de(W))return _.plant(W).value();for(var B=0,Y=u?o[B].apply(this,j):W;++B<u;)Y=o[B].call(this,Y);return Y}})}function ia(n,o,u,c,m,b,_,A,M,j){var W=o&U,B=o&E,Y=o&P,J=o&(I|F),ne=o&q,me=Y?r:ji(n);function ie(){for(var Ee=arguments.length,Oe=k(Ee),Zt=Ee;Zt--;)Oe[Zt]=arguments[Zt];if(J)var It=li(ie),Gt=Qy(Oe,It);if(c&&(Oe=md(Oe,c,m,J)),b&&(Oe=gd(Oe,b,_,J)),Ee-=Gt,J&&Ee<j){var Xe=rn(Oe,It);return Od(n,o,ia,ie.placeholder,u,Oe,Xe,A,M,j-Ee)}var vr=B?u:this,Br=Y?vr[n]:n;return Ee=Oe.length,A?Oe=sw(Oe,A):ne&&Ee>1&&Oe.reverse(),W&&M<Ee&&(Oe.length=M),this&&this!==ct&&this instanceof ie&&(Br=me||ji(Br)),Br.apply(vr,Oe)}return ie}function xd(n,o){return function(u,c){return v1(u,n,o(c),{})}}function oa(n,o){return function(u,c){var m;if(u===r&&c===r)return o;if(u!==r&&(m=u),c!==r){if(m===r)return c;typeof u=="string"||typeof c=="string"?(u=Ht(u),c=Ht(c)):(u=ud(u),c=ud(c)),m=n(u,c)}return m}}function wu(n){return jr(function(o){return o=ze(o,Bt(te())),ye(function(u){var c=this;return n(o,function(m){return Ut(m,c,u)})})})}function aa(n,o){o=o===r?" ":Ht(o);var u=o.length;if(u<2)return u?du(o,n):o;var c=du(o,Zo(n/ti(o)));return ei(o)?un(dr(c),0,n).join(""):c.slice(0,n)}function U1(n,o,u,c){var m=o&E,b=ji(n);function _(){for(var A=-1,M=arguments.length,j=-1,W=c.length,B=k(W+M),Y=this&&this!==ct&&this instanceof _?b:n;++j<W;)B[j]=c[j];for(;M--;)B[j++]=arguments[++A];return Ut(Y,m?u:this,B)}return _}function _d(n){return function(o,u,c){return c&&typeof c!="number"&&Rt(o,u,c)&&(u=c=r),o=Ur(o),u===r?(u=o,o=0):u=Ur(u),c=c===r?o<u?1:-1:Ur(c),T1(o,u,c,n)}}function sa(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=or(o),u=or(u)),n(o,u)}}function Od(n,o,u,c,m,b,_,A,M,j){var W=o&I,B=W?_:r,Y=W?r:_,J=W?b:r,ne=W?r:b;o|=W?O:L,o&=~(W?L:O),o&C||(o&=-4);var me=[n,o,m,J,B,ne,Y,A,M,j],ie=u.apply(r,me);return Tu(n)&&kd(ie,me),ie.placeholder=c,Nd(ie,n,o)}function bu(n){var o=rt[n];return function(u,c){if(u=or(u),c=c==null?0:wt(he(c),292),c&&Nc(u)){var m=(Ie(u)+"e").split("e"),b=o(m[0]+"e"+(+m[1]+c));return m=(Ie(b)+"e").split("e"),+(m[0]+"e"+(+m[1]-c))}return o(u)}}var B1=ii&&1/Do(new ii([,-0]))[1]==Te?function(n){return new ii(n)}:Uu;function Ad(n){return function(o){var u=bt(o);return u==st?Vs(o):u==yt?a0(o):Jy(o,n(o))}}function Nr(n,o,u,c,m,b,_,A){var M=o&P;if(!M&&typeof n!="function")throw new er(l);var j=c?c.length:0;if(j||(o&=-97,c=m=r),_=_===r?_:nt(he(_),0),A=A===r?A:he(A),j-=m?m.length:0,o&L){var W=c,B=m;c=m=r}var Y=M?r:xu(n),J=[n,o,u,c,m,W,B,b,_,A];if(Y&&iw(J,Y),n=J[0],o=J[1],u=J[2],c=J[3],m=J[4],A=J[9]=J[9]===r?M?0:n.length:nt(J[9]-j,0),!A&&o&(I|F)&&(o&=-25),!o||o==E)var ne=W1(n,o,u);else o==I||o==F?ne=z1(n,o,A):(o==O||o==(E|O))&&!m.length?ne=U1(n,o,u,c):ne=ia.apply(r,J);var me=Y?ad:kd;return Nd(me(ne,J),n,o)}function Td(n,o,u,c){return n===r||hr(n,ni[u])&&!Le.call(c,u)?o:n}function Cd(n,o,u,c,m,b){return qe(n)&&qe(o)&&(b.set(o,n),ea(n,o,r,Cd,b),b.delete(o)),n}function H1(n){return Ui(n)?r:n}function Pd(n,o,u,c,m,b){var _=u&x,A=n.length,M=o.length;if(A!=M&&!(_&&M>A))return!1;var j=b.get(n),W=b.get(o);if(j&&W)return j==o&&W==n;var B=-1,Y=!0,J=u&y?new Cn:r;for(b.set(n,o),b.set(o,n);++B<A;){var ne=n[B],me=o[B];if(c)var ie=_?c(me,ne,B,o,n,b):c(ne,me,B,n,o,b);if(ie!==r){if(ie)continue;Y=!1;break}if(J){if(!Hs(o,function(Ee,Oe){if(!Ci(J,Oe)&&(ne===Ee||m(ne,Ee,u,c,b)))return J.push(Oe)})){Y=!1;break}}else if(!(ne===me||m(ne,me,u,c,b))){Y=!1;break}}return b.delete(n),b.delete(o),Y}function q1(n,o,u,c,m,b,_){switch(u){case Lr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Qr:return!(n.byteLength!=o.byteLength||!b(new Uo(n),new Uo(o)));case ue:case ge:case br:return hr(+n,+o);case He:return n.name==o.name&&n.message==o.message;case zt:case Xr:return n==o+"";case st:var A=Vs;case yt:var M=c&x;if(A||(A=Do),n.size!=o.size&&!M)return!1;var j=_.get(n);if(j)return j==o;c|=y,_.set(n,o);var W=Pd(A(n),A(o),c,m,b,_);return _.delete(n),W;case _n:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function Z1(n,o,u,c,m,b){var _=u&x,A=Su(n),M=A.length,j=Su(o),W=j.length;if(M!=W&&!_)return!1;for(var B=M;B--;){var Y=A[B];if(!(_?Y in o:Le.call(o,Y)))return!1}var J=b.get(n),ne=b.get(o);if(J&&ne)return J==o&&ne==n;var me=!0;b.set(n,o),b.set(o,n);for(var ie=_;++B<M;){Y=A[B];var Ee=n[Y],Oe=o[Y];if(c)var Zt=_?c(Oe,Ee,Y,o,n,b):c(Ee,Oe,Y,n,o,b);if(!(Zt===r?Ee===Oe||m(Ee,Oe,u,c,b):Zt)){me=!1;break}ie||(ie=Y=="constructor")}if(me&&!ie){var It=n.constructor,Gt=o.constructor;It!=Gt&&"constructor"in n&&"constructor"in o&&!(typeof It=="function"&&It instanceof It&&typeof Gt=="function"&&Gt instanceof Gt)&&(me=!1)}return b.delete(n),b.delete(o),me}function jr(n){return Pu($d(n,r,Hd),n+"")}function Su(n){return Yc(n,ut,Ou)}function Eu(n){return Yc(n,Dt,Rd)}var xu=Ko?function(n){return Ko.get(n)}:Uu;function ua(n){for(var o=n.name+"",u=oi[o],c=Le.call(oi,o)?u.length:0;c--;){var m=u[c],b=m.func;if(b==null||b==n)return m.name}return o}function li(n){var o=Le.call(g,"placeholder")?g:n;return o.placeholder}function te(){var n=g.iteratee||Wu;return n=n===Wu?Jc:n,arguments.length?n(arguments[0],arguments[1]):n}function la(n,o){var u=n.__data__;return ew(o)?u[typeof o=="string"?"string":"hash"]:u.map}function _u(n){for(var o=ut(n),u=o.length;u--;){var c=o[u],m=n[c];o[u]=[c,m,Fd(m)]}return o}function In(n,o){var u=n0(n,o);return Xc(u)?u:r}function G1(n){var o=Le.call(n,An),u=n[An];try{n[An]=r;var c=!0}catch{}var m=Wo.call(n);return c&&(o?n[An]=u:delete n[An]),m}var Ou=Js?function(n){return n==null?[]:(n=ke(n),en(Js(n),function(o){return Dc.call(n,o)}))}:Bu,Rd=Js?function(n){for(var o=[];n;)tn(o,Ou(n)),n=Bo(n);return o}:Bu,bt=Pt;(Qs&&bt(new Qs(new ArrayBuffer(1)))!=Lr||Ri&&bt(new Ri)!=st||eu&&bt(eu.resolve())!=Po||ii&&bt(new ii)!=yt||Ii&&bt(new Ii)!=Jr)&&(bt=function(n){var o=Pt(n),u=o==Xt?n.constructor:r,c=u?Mn(u):"";if(c)switch(c){case P0:return Lr;case R0:return st;case I0:return Po;case M0:return yt;case F0:return Jr}return o});function K1(n,o,u){for(var c=-1,m=u.length;++c<m;){var b=u[c],_=b.size;switch(b.type){case"drop":n+=_;break;case"dropRight":o-=_;break;case"take":o=wt(o,n+_);break;case"takeRight":n=nt(n,o-_);break}}return{start:n,end:o}}function Y1(n){var o=n.match(ty);return o?o[1].split(ry):[]}function Id(n,o,u){o=sn(o,n);for(var c=-1,m=o.length,b=!1;++c<m;){var _=xr(o[c]);if(!(b=n!=null&&u(n,_)))break;n=n[_]}return b||++c!=m?b:(m=n==null?0:n.length,!!m&&ma(m)&&Wr(_,m)&&(de(n)||Fn(n)))}function V1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Md(n){return typeof n.constructor=="function"&&!Wi(n)?ai(Bo(n)):{}}function X1(n,o,u){var c=n.constructor;switch(o){case Qr:return yu(n);case ue:case ge:return new c(+n);case Lr:return L1(n,u);case _s:case Os:case As:case Ts:case Cs:case Ps:case Rs:case Is:case Ms:return hd(n,u);case st:return new c;case br:case Xr:return new c(n);case zt:return $1(n);case yt:return new c;case _n:return D1(n)}}function J1(n,o){var u=o.length;if(!u)return n;var c=u-1;return o[c]=(u>1?"& ":"")+o[c],o=o.join(u>2?", ":" "),n.replace(ey,`{
131
+ */ts.exports;(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",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",b=1,v=2,w=4,E=1,y=2,x=1,A=2,I=4,P=8,F=16,O=32,L=64,U=128,z=256,q=512,V=30,ee="...",be=800,pe=16,Ae=1,Ne=2,ve=3,Te=1/0,Ge=9007199254740991,Ct=17976931348623157e292,H=NaN,G=4294967295,re=G-1,le=G>>>1,Q=[["ary",U],["bind",x],["bindKey",A],["curry",P],["curryRight",F],["flip",q],["partial",O],["partialRight",L],["rearg",z]],ae="[object Arguments]",se="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",ge="[object Date]",xe="[object DOMException]",He="[object Error]",K="[object Function]",gt="[object GeneratorFunction]",st="[object Map]",br="[object Number]",Co="[object Null]",Xt="[object Object]",Po="[object Promise]",xs="[object Proxy]",zt="[object RegExp]",yt="[object Set]",Xr="[object String]",_n="[object Symbol]",Ti="[object Undefined]",Jr="[object WeakMap]",Ro="[object WeakSet]",Qr="[object ArrayBuffer]",Lr="[object DataView]",_s="[object Float32Array]",Os="[object Float64Array]",As="[object Int8Array]",Ts="[object Int16Array]",Cs="[object Int32Array]",Ps="[object Uint8Array]",Rs="[object Uint8ClampedArray]",Is="[object Uint16Array]",Ms="[object Uint32Array]",Bg=/\b__p \+= '';/g,Hg=/\b(__p \+=) '' \+/g,qg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gf=/&(?:amp|lt|gt|quot|#39);/g,Kf=/[&<>"']/g,Zg=RegExp(Gf.source),Gg=RegExp(Kf.source),Kg=/<%-([\s\S]+?)%>/g,Yg=/<%([\s\S]+?)%>/g,Yf=/<%=([\s\S]+?)%>/g,Vg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xg=/^\w*$/,Jg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fs=/[\\^$.*+?()[\]{}|]/g,Qg=RegExp(Fs.source),Ls=/^\s+/,ey=/\s/,ty=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ry=/\{\n\/\* \[wrapped with (.+)\] \*/,ny=/,? & /,iy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oy=/[()=,{}\[\]\/\s]/,ay=/\\(\\)?/g,sy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vf=/\w*$/,uy=/^[-+]0x[0-9a-f]+$/i,ly=/^0b[01]+$/i,fy=/^\[object .+?Constructor\]$/,cy=/^0o[0-7]+$/i,dy=/^(?:0|[1-9]\d*)$/,py=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,hy=/['\n\r\u2028\u2029\\]/g,Mo="\\ud800-\\udfff",vy="\\u0300-\\u036f",my="\\ufe20-\\ufe2f",gy="\\u20d0-\\u20ff",Xf=vy+my+gy,Jf="\\u2700-\\u27bf",Qf="a-z\\xdf-\\xf6\\xf8-\\xff",yy="\\xac\\xb1\\xd7\\xf7",wy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",by="\\u2000-\\u206f",Sy=" \\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",ec="A-Z\\xc0-\\xd6\\xd8-\\xde",tc="\\ufe0e\\ufe0f",rc=yy+wy+by+Sy,$s="['’]",Ey="["+Mo+"]",nc="["+rc+"]",Fo="["+Xf+"]",ic="\\d+",xy="["+Jf+"]",oc="["+Qf+"]",ac="[^"+Mo+rc+ic+Jf+Qf+ec+"]",Ds="\\ud83c[\\udffb-\\udfff]",_y="(?:"+Fo+"|"+Ds+")",sc="[^"+Mo+"]",ks="(?:\\ud83c[\\udde6-\\uddff]){2}",Ns="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+ec+"]",uc="\\u200d",lc="(?:"+oc+"|"+ac+")",Oy="(?:"+Jn+"|"+ac+")",fc="(?:"+$s+"(?:d|ll|m|re|s|t|ve))?",cc="(?:"+$s+"(?:D|LL|M|RE|S|T|VE))?",dc=_y+"?",pc="["+tc+"]?",Ay="(?:"+uc+"(?:"+[sc,ks,Ns].join("|")+")"+pc+dc+")*",Ty="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hc=pc+dc+Ay,Py="(?:"+[xy,ks,Ns].join("|")+")"+hc,Ry="(?:"+[sc+Fo+"?",Fo,ks,Ns,Ey].join("|")+")",Iy=RegExp($s,"g"),My=RegExp(Fo,"g"),js=RegExp(Ds+"(?="+Ds+")|"+Ry+hc,"g"),Fy=RegExp([Jn+"?"+oc+"+"+fc+"(?="+[nc,Jn,"$"].join("|")+")",Oy+"+"+cc+"(?="+[nc,Jn+lc,"$"].join("|")+")",Jn+"?"+lc+"+"+fc,Jn+"+"+cc,Cy,Ty,ic,Py].join("|"),"g"),Ly=RegExp("["+uc+Mo+Xf+tc+"]"),$y=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dy=["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"],ky=-1,We={};We[_s]=We[Os]=We[As]=We[Ts]=We[Cs]=We[Ps]=We[Rs]=We[Is]=We[Ms]=!0,We[ae]=We[se]=We[Qr]=We[ue]=We[Lr]=We[ge]=We[He]=We[K]=We[st]=We[br]=We[Xt]=We[zt]=We[yt]=We[Xr]=We[Jr]=!1;var je={};je[ae]=je[se]=je[Qr]=je[Lr]=je[ue]=je[ge]=je[_s]=je[Os]=je[As]=je[Ts]=je[Cs]=je[st]=je[br]=je[Xt]=je[zt]=je[yt]=je[Xr]=je[_n]=je[Ps]=je[Rs]=je[Is]=je[Ms]=!0,je[He]=je[K]=je[Jr]=!1;var Ny={À:"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"},jy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},zy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Uy=parseFloat,By=parseInt,vc=typeof kn=="object"&&kn&&kn.Object===Object&&kn,Hy=typeof self=="object"&&self&&self.Object===Object&&self,dt=vc||Hy||Function("return this")(),Ws=t&&!t.nodeType&&t,On=Ws&&!0&&e&&!e.nodeType&&e,mc=On&&On.exports===Ws,zs=mc&&vc.process,Jt=function(){try{var R=On&&On.require&&On.require("util").types;return R||zs&&zs.binding&&zs.binding("util")}catch{}}(),gc=Jt&&Jt.isArrayBuffer,yc=Jt&&Jt.isDate,wc=Jt&&Jt.isMap,bc=Jt&&Jt.isRegExp,Sc=Jt&&Jt.isSet,Ec=Jt&&Jt.isTypedArray;function Ut(R,N,k){switch(k.length){case 0:return R.call(N);case 1:return R.call(N,k[0]);case 2:return R.call(N,k[0],k[1]);case 3:return R.call(N,k[0],k[1],k[2])}return R.apply(N,k)}function qy(R,N,k,X){for(var fe=-1,Re=R==null?0:R.length;++fe<Re;){var rt=R[fe];N(X,rt,k(rt),R)}return X}function Qt(R,N){for(var k=-1,X=R==null?0:R.length;++k<X&&N(R[k],k,R)!==!1;);return R}function Zy(R,N){for(var k=R==null?0:R.length;k--&&N(R[k],k,R)!==!1;);return R}function xc(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(!N(R[k],k,R))return!1;return!0}function en(R,N){for(var k=-1,X=R==null?0:R.length,fe=0,Re=[];++k<X;){var rt=R[k];N(rt,k,R)&&(Re[fe++]=rt)}return Re}function Lo(R,N){var k=R==null?0:R.length;return!!k&&Qn(R,N,0)>-1}function Us(R,N,k){for(var X=-1,fe=R==null?0:R.length;++X<fe;)if(k(N,R[X]))return!0;return!1}function ze(R,N){for(var k=-1,X=R==null?0:R.length,fe=Array(X);++k<X;)fe[k]=N(R[k],k,R);return fe}function tn(R,N){for(var k=-1,X=N.length,fe=R.length;++k<X;)R[fe+k]=N[k];return R}function Bs(R,N,k,X){var fe=-1,Re=R==null?0:R.length;for(X&&Re&&(k=R[++fe]);++fe<Re;)k=N(k,R[fe],fe,R);return k}function Gy(R,N,k,X){var fe=R==null?0:R.length;for(X&&fe&&(k=R[--fe]);fe--;)k=N(k,R[fe],fe,R);return k}function Hs(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(N(R[k],k,R))return!0;return!1}var Ky=qs("length");function Yy(R){return R.split("")}function Vy(R){return R.match(iy)||[]}function _c(R,N,k){var X;return k(R,function(fe,Re,rt){if(N(fe,Re,rt))return X=Re,!1}),X}function $o(R,N,k,X){for(var fe=R.length,Re=k+(X?1:-1);X?Re--:++Re<fe;)if(N(R[Re],Re,R))return Re;return-1}function Qn(R,N,k){return N===N?u0(R,N,k):$o(R,Oc,k)}function Xy(R,N,k,X){for(var fe=k-1,Re=R.length;++fe<Re;)if(X(R[fe],N))return fe;return-1}function Oc(R){return R!==R}function Ac(R,N){var k=R==null?0:R.length;return k?Gs(R,N)/k:H}function qs(R){return function(N){return N==null?r:N[R]}}function Zs(R){return function(N){return R==null?r:R[N]}}function Tc(R,N,k,X,fe){return fe(R,function(Re,rt,ke){k=X?(X=!1,Re):N(k,Re,rt,ke)}),k}function Jy(R,N){var k=R.length;for(R.sort(N);k--;)R[k]=R[k].value;return R}function Gs(R,N){for(var k,X=-1,fe=R.length;++X<fe;){var Re=N(R[X]);Re!==r&&(k=k===r?Re:k+Re)}return k}function Ks(R,N){for(var k=-1,X=Array(R);++k<R;)X[k]=N(k);return X}function Qy(R,N){return ze(N,function(k){return[k,R[k]]})}function Cc(R){return R&&R.slice(0,Mc(R)+1).replace(Ls,"")}function Bt(R){return function(N){return R(N)}}function Ys(R,N){return ze(N,function(k){return R[k]})}function Ci(R,N){return R.has(N)}function Pc(R,N){for(var k=-1,X=R.length;++k<X&&Qn(N,R[k],0)>-1;);return k}function Rc(R,N){for(var k=R.length;k--&&Qn(N,R[k],0)>-1;);return k}function e0(R,N){for(var k=R.length,X=0;k--;)R[k]===N&&++X;return X}var t0=Zs(Ny),r0=Zs(jy);function n0(R){return"\\"+zy[R]}function i0(R,N){return R==null?r:R[N]}function ei(R){return Ly.test(R)}function o0(R){return $y.test(R)}function a0(R){for(var N,k=[];!(N=R.next()).done;)k.push(N.value);return k}function Vs(R){var N=-1,k=Array(R.size);return R.forEach(function(X,fe){k[++N]=[fe,X]}),k}function Ic(R,N){return function(k){return R(N(k))}}function rn(R,N){for(var k=-1,X=R.length,fe=0,Re=[];++k<X;){var rt=R[k];(rt===N||rt===h)&&(R[k]=h,Re[fe++]=k)}return Re}function Do(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=X}),k}function s0(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=[X,X]}),k}function u0(R,N,k){for(var X=k-1,fe=R.length;++X<fe;)if(R[X]===N)return X;return-1}function l0(R,N,k){for(var X=k+1;X--;)if(R[X]===N)return X;return X}function ti(R){return ei(R)?c0(R):Ky(R)}function dr(R){return ei(R)?d0(R):Yy(R)}function Mc(R){for(var N=R.length;N--&&ey.test(R.charAt(N)););return N}var f0=Zs(Wy);function c0(R){for(var N=js.lastIndex=0;js.test(R);)++N;return N}function d0(R){return R.match(js)||[]}function p0(R){return R.match(Fy)||[]}var h0=function R(N){N=N==null?dt:ri.defaults(dt.Object(),N,ri.pick(dt,Dy));var k=N.Array,X=N.Date,fe=N.Error,Re=N.Function,rt=N.Math,ke=N.Object,Xs=N.RegExp,v0=N.String,er=N.TypeError,ko=k.prototype,m0=Re.prototype,ni=ke.prototype,No=N["__core-js_shared__"],jo=m0.toString,Le=ni.hasOwnProperty,g0=0,Fc=function(){var n=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Wo=ni.toString,y0=jo.call(ke),w0=dt._,b0=Xs("^"+jo.call(Le).replace(Fs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zo=mc?N.Buffer:r,nn=N.Symbol,Uo=N.Uint8Array,Lc=zo?zo.allocUnsafe:r,Bo=Ic(ke.getPrototypeOf,ke),$c=ke.create,Dc=ni.propertyIsEnumerable,Ho=ko.splice,kc=nn?nn.isConcatSpreadable:r,Pi=nn?nn.iterator:r,An=nn?nn.toStringTag:r,qo=function(){try{var n=In(ke,"defineProperty");return n({},"",{}),n}catch{}}(),S0=N.clearTimeout!==dt.clearTimeout&&N.clearTimeout,E0=X&&X.now!==dt.Date.now&&X.now,x0=N.setTimeout!==dt.setTimeout&&N.setTimeout,Zo=rt.ceil,Go=rt.floor,Js=ke.getOwnPropertySymbols,_0=zo?zo.isBuffer:r,Nc=N.isFinite,O0=ko.join,A0=Ic(ke.keys,ke),nt=rt.max,wt=rt.min,T0=X.now,C0=N.parseInt,jc=rt.random,P0=ko.reverse,Qs=In(N,"DataView"),Ri=In(N,"Map"),eu=In(N,"Promise"),ii=In(N,"Set"),Ii=In(N,"WeakMap"),Mi=In(ke,"create"),Ko=Ii&&new Ii,oi={},R0=Mn(Qs),I0=Mn(Ri),M0=Mn(eu),F0=Mn(ii),L0=Mn(Ii),Yo=nn?nn.prototype:r,Fi=Yo?Yo.valueOf:r,Wc=Yo?Yo.toString:r;function g(n){if(Ke(n)&&!de(n)&&!(n instanceof _e)){if(n instanceof tr)return n;if(Le.call(n,"__wrapped__"))return zd(n)}return new tr(n)}var ai=function(){function n(){}return function(o){if(!qe(o))return{};if($c)return $c(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Vo(){}function tr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}g.templateSettings={escape:Kg,evaluate:Yg,interpolate:Yf,variable:"",imports:{_:g}},g.prototype=Vo.prototype,g.prototype.constructor=g,tr.prototype=ai(Vo.prototype),tr.prototype.constructor=tr;function _e(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function $0(){var n=new _e(this.__wrapped__);return n.__actions__=Lt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Lt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Lt(this.__views__),n}function D0(){if(this.__filtered__){var n=new _e(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function k0(){var n=this.__wrapped__.value(),o=this.__dir__,u=de(n),c=o<0,m=u?n.length:0,S=Y1(0,m,this.__views__),_=S.start,T=S.end,M=T-_,j=c?T:_-1,W=this.__iteratees__,B=W.length,Y=0,J=wt(M,this.__takeCount__);if(!u||!c&&m==M&&J==M)return fd(n,this.__actions__);var ne=[];e:for(;M--&&Y<J;){j+=o;for(var me=-1,ie=n[j];++me<B;){var Ee=W[me],Oe=Ee.iteratee,Zt=Ee.type,It=Oe(ie);if(Zt==Ne)ie=It;else if(!It){if(Zt==Ae)continue e;break e}}ne[Y++]=ie}return ne}_e.prototype=ai(Vo.prototype),_e.prototype.constructor=_e;function Tn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function N0(){this.__data__=Mi?Mi(null):{},this.size=0}function j0(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function W0(n){var o=this.__data__;if(Mi){var u=o[n];return u===d?r:u}return Le.call(o,n)?o[n]:r}function z0(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function U0(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Mi&&o===r?d:o,this}Tn.prototype.clear=N0,Tn.prototype.delete=j0,Tn.prototype.get=W0,Tn.prototype.has=z0,Tn.prototype.set=U0;function $r(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function B0(){this.__data__=[],this.size=0}function H0(n){var o=this.__data__,u=Xo(o,n);if(u<0)return!1;var c=o.length-1;return u==c?o.pop():Ho.call(o,u,1),--this.size,!0}function q0(n){var o=this.__data__,u=Xo(o,n);return u<0?r:o[u][1]}function Z0(n){return Xo(this.__data__,n)>-1}function G0(n,o){var u=this.__data__,c=Xo(u,n);return c<0?(++this.size,u.push([n,o])):u[c][1]=o,this}$r.prototype.clear=B0,$r.prototype.delete=H0,$r.prototype.get=q0,$r.prototype.has=Z0,$r.prototype.set=G0;function Dr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function K0(){this.size=0,this.__data__={hash:new Tn,map:new(Ri||$r),string:new Tn}}function Y0(n){var o=la(this,n).delete(n);return this.size-=o?1:0,o}function V0(n){return la(this,n).get(n)}function X0(n){return la(this,n).has(n)}function J0(n,o){var u=la(this,n),c=u.size;return u.set(n,o),this.size+=u.size==c?0:1,this}Dr.prototype.clear=K0,Dr.prototype.delete=Y0,Dr.prototype.get=V0,Dr.prototype.has=X0,Dr.prototype.set=J0;function Cn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Dr;++o<u;)this.add(n[o])}function Q0(n){return this.__data__.set(n,d),this}function e1(n){return this.__data__.has(n)}Cn.prototype.add=Cn.prototype.push=Q0,Cn.prototype.has=e1;function pr(n){var o=this.__data__=new $r(n);this.size=o.size}function t1(){this.__data__=new $r,this.size=0}function r1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function n1(n){return this.__data__.get(n)}function i1(n){return this.__data__.has(n)}function o1(n,o){var u=this.__data__;if(u instanceof $r){var c=u.__data__;if(!Ri||c.length<a-1)return c.push([n,o]),this.size=++u.size,this;u=this.__data__=new Dr(c)}return u.set(n,o),this.size=u.size,this}pr.prototype.clear=t1,pr.prototype.delete=r1,pr.prototype.get=n1,pr.prototype.has=i1,pr.prototype.set=o1;function zc(n,o){var u=de(n),c=!u&&Fn(n),m=!u&&!c&&ln(n),S=!u&&!c&&!m&&fi(n),_=u||c||m||S,T=_?Ks(n.length,v0):[],M=T.length;for(var j in n)(o||Le.call(n,j))&&!(_&&(j=="length"||m&&(j=="offset"||j=="parent")||S&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Wr(j,M)))&&T.push(j);return T}function Uc(n){var o=n.length;return o?n[cu(0,o-1)]:r}function a1(n,o){return fa(Lt(n),Pn(o,0,n.length))}function s1(n){return fa(Lt(n))}function tu(n,o,u){(u!==r&&!hr(n[o],u)||u===r&&!(o in n))&&kr(n,o,u)}function Li(n,o,u){var c=n[o];(!(Le.call(n,o)&&hr(c,u))||u===r&&!(o in n))&&kr(n,o,u)}function Xo(n,o){for(var u=n.length;u--;)if(hr(n[u][0],o))return u;return-1}function u1(n,o,u,c){return on(n,function(m,S,_){o(c,m,u(m),_)}),c}function Bc(n,o){return n&&Er(o,ut(o),n)}function l1(n,o){return n&&Er(o,Dt(o),n)}function kr(n,o,u){o=="__proto__"&&qo?qo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function ru(n,o){for(var u=-1,c=o.length,m=k(c),S=n==null;++u<c;)m[u]=S?r:Du(n,o[u]);return m}function Pn(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function rr(n,o,u,c,m,S){var _,T=o&b,M=o&v,j=o&w;if(u&&(_=m?u(n,c,m,S):u(n)),_!==r)return _;if(!qe(n))return n;var W=de(n);if(W){if(_=X1(n),!T)return Lt(n,_)}else{var B=bt(n),Y=B==K||B==gt;if(ln(n))return pd(n,T);if(B==Xt||B==ae||Y&&!m){if(_=M||Y?{}:Md(n),!T)return M?W1(n,l1(_,n)):j1(n,Bc(_,n))}else{if(!je[B])return m?n:{};_=J1(n,B,T)}}S||(S=new pr);var J=S.get(n);if(J)return J;S.set(n,_),sp(n)?n.forEach(function(ie){_.add(rr(ie,o,u,ie,n,S))}):op(n)&&n.forEach(function(ie,Ee){_.set(Ee,rr(ie,o,u,Ee,n,S))});var ne=j?M?Eu:Su:M?Dt:ut,me=W?r:ne(n);return Qt(me||n,function(ie,Ee){me&&(Ee=ie,ie=n[Ee]),Li(_,Ee,rr(ie,o,u,Ee,n,S))}),_}function f1(n){var o=ut(n);return function(u){return Hc(u,n,o)}}function Hc(n,o,u){var c=u.length;if(n==null)return!c;for(n=ke(n);c--;){var m=u[c],S=o[m],_=n[m];if(_===r&&!(m in n)||!S(_))return!1}return!0}function qc(n,o,u){if(typeof n!="function")throw new er(l);return zi(function(){n.apply(r,u)},o)}function $i(n,o,u,c){var m=-1,S=Lo,_=!0,T=n.length,M=[],j=o.length;if(!T)return M;u&&(o=ze(o,Bt(u))),c?(S=Us,_=!1):o.length>=a&&(S=Ci,_=!1,o=new Cn(o));e:for(;++m<T;){var W=n[m],B=u==null?W:u(W);if(W=c||W!==0?W:0,_&&B===B){for(var Y=j;Y--;)if(o[Y]===B)continue e;M.push(W)}else S(o,B,c)||M.push(W)}return M}var on=yd(Sr),Zc=yd(iu,!0);function c1(n,o){var u=!0;return on(n,function(c,m,S){return u=!!o(c,m,S),u}),u}function Jo(n,o,u){for(var c=-1,m=n.length;++c<m;){var S=n[c],_=o(S);if(_!=null&&(T===r?_===_&&!qt(_):u(_,T)))var T=_,M=S}return M}function d1(n,o,u,c){var m=n.length;for(u=he(u),u<0&&(u=-u>m?0:m+u),c=c===r||c>m?m:he(c),c<0&&(c+=m),c=u>c?0:lp(c);u<c;)n[u++]=o;return n}function Gc(n,o){var u=[];return on(n,function(c,m,S){o(c,m,S)&&u.push(c)}),u}function pt(n,o,u,c,m){var S=-1,_=n.length;for(u||(u=ew),m||(m=[]);++S<_;){var T=n[S];o>0&&u(T)?o>1?pt(T,o-1,u,c,m):tn(m,T):c||(m[m.length]=T)}return m}var nu=wd(),Kc=wd(!0);function Sr(n,o){return n&&nu(n,o,ut)}function iu(n,o){return n&&Kc(n,o,ut)}function Qo(n,o){return en(o,function(u){return zr(n[u])})}function Rn(n,o){o=sn(o,n);for(var u=0,c=o.length;n!=null&&u<c;)n=n[xr(o[u++])];return u&&u==c?n:r}function Yc(n,o,u){var c=o(n);return de(n)?c:tn(c,u(n))}function Pt(n){return n==null?n===r?Ti:Co:An&&An in ke(n)?K1(n):sw(n)}function ou(n,o){return n>o}function p1(n,o){return n!=null&&Le.call(n,o)}function h1(n,o){return n!=null&&o in ke(n)}function v1(n,o,u){return n>=wt(o,u)&&n<nt(o,u)}function au(n,o,u){for(var c=u?Us:Lo,m=n[0].length,S=n.length,_=S,T=k(S),M=1/0,j=[];_--;){var W=n[_];_&&o&&(W=ze(W,Bt(o))),M=wt(W.length,M),T[_]=!u&&(o||m>=120&&W.length>=120)?new Cn(_&&W):r}W=n[0];var B=-1,Y=T[0];e:for(;++B<m&&j.length<M;){var J=W[B],ne=o?o(J):J;if(J=u||J!==0?J:0,!(Y?Ci(Y,ne):c(j,ne,u))){for(_=S;--_;){var me=T[_];if(!(me?Ci(me,ne):c(n[_],ne,u)))continue e}Y&&Y.push(ne),j.push(J)}}return j}function m1(n,o,u,c){return Sr(n,function(m,S,_){o(c,u(m),S,_)}),c}function Di(n,o,u){o=sn(o,n),n=Dd(n,o);var c=n==null?n:n[xr(ir(o))];return c==null?r:Ut(c,n,u)}function Vc(n){return Ke(n)&&Pt(n)==ae}function g1(n){return Ke(n)&&Pt(n)==Qr}function y1(n){return Ke(n)&&Pt(n)==ge}function ki(n,o,u,c,m){return n===o?!0:n==null||o==null||!Ke(n)&&!Ke(o)?n!==n&&o!==o:w1(n,o,u,c,ki,m)}function w1(n,o,u,c,m,S){var _=de(n),T=de(o),M=_?se:bt(n),j=T?se:bt(o);M=M==ae?Xt:M,j=j==ae?Xt:j;var W=M==Xt,B=j==Xt,Y=M==j;if(Y&&ln(n)){if(!ln(o))return!1;_=!0,W=!1}if(Y&&!W)return S||(S=new pr),_||fi(n)?Pd(n,o,u,c,m,S):Z1(n,o,M,u,c,m,S);if(!(u&E)){var J=W&&Le.call(n,"__wrapped__"),ne=B&&Le.call(o,"__wrapped__");if(J||ne){var me=J?n.value():n,ie=ne?o.value():o;return S||(S=new pr),m(me,ie,u,c,S)}}return Y?(S||(S=new pr),G1(n,o,u,c,m,S)):!1}function b1(n){return Ke(n)&&bt(n)==st}function su(n,o,u,c){var m=u.length,S=m,_=!c;if(n==null)return!S;for(n=ke(n);m--;){var T=u[m];if(_&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++m<S;){T=u[m];var M=T[0],j=n[M],W=T[1];if(_&&T[2]){if(j===r&&!(M in n))return!1}else{var B=new pr;if(c)var Y=c(j,W,M,n,o,B);if(!(Y===r?ki(W,j,E|y,c,B):Y))return!1}}return!0}function Xc(n){if(!qe(n)||rw(n))return!1;var o=zr(n)?b0:fy;return o.test(Mn(n))}function S1(n){return Ke(n)&&Pt(n)==zt}function E1(n){return Ke(n)&&bt(n)==yt}function x1(n){return Ke(n)&&ma(n.length)&&!!We[Pt(n)]}function Jc(n){return typeof n=="function"?n:n==null?kt:typeof n=="object"?de(n)?td(n[0],n[1]):ed(n):bp(n)}function uu(n){if(!Wi(n))return A0(n);var o=[];for(var u in ke(n))Le.call(n,u)&&u!="constructor"&&o.push(u);return o}function _1(n){if(!qe(n))return aw(n);var o=Wi(n),u=[];for(var c in n)c=="constructor"&&(o||!Le.call(n,c))||u.push(c);return u}function lu(n,o){return n<o}function Qc(n,o){var u=-1,c=$t(n)?k(n.length):[];return on(n,function(m,S,_){c[++u]=o(m,S,_)}),c}function ed(n){var o=_u(n);return o.length==1&&o[0][2]?Ld(o[0][0],o[0][1]):function(u){return u===n||su(u,n,o)}}function td(n,o){return Au(n)&&Fd(o)?Ld(xr(n),o):function(u){var c=Du(u,n);return c===r&&c===o?ku(u,n):ki(o,c,E|y)}}function ea(n,o,u,c,m){n!==o&&nu(o,function(S,_){if(m||(m=new pr),qe(S))O1(n,o,_,u,ea,c,m);else{var T=c?c(Cu(n,_),S,_+"",n,o,m):r;T===r&&(T=S),tu(n,_,T)}},Dt)}function O1(n,o,u,c,m,S,_){var T=Cu(n,u),M=Cu(o,u),j=_.get(M);if(j){tu(n,u,j);return}var W=S?S(T,M,u+"",n,o,_):r,B=W===r;if(B){var Y=de(M),J=!Y&&ln(M),ne=!Y&&!J&&fi(M);W=M,Y||J||ne?de(T)?W=T:Ve(T)?W=Lt(T):J?(B=!1,W=pd(M,!0)):ne?(B=!1,W=hd(M,!0)):W=[]:Ui(M)||Fn(M)?(W=T,Fn(T)?W=fp(T):(!qe(T)||zr(T))&&(W=Md(M))):B=!1}B&&(_.set(M,W),m(W,M,c,S,_),_.delete(M)),tu(n,u,W)}function rd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Wr(o,u)?n[o]:r}function nd(n,o,u){o.length?o=ze(o,function(S){return de(S)?function(_){return Rn(_,S.length===1?S[0]:S)}:S}):o=[kt];var c=-1;o=ze(o,Bt(te()));var m=Qc(n,function(S,_,T){var M=ze(o,function(j){return j(S)});return{criteria:M,index:++c,value:S}});return Jy(m,function(S,_){return N1(S,_,u)})}function A1(n,o){return id(n,o,function(u,c){return ku(n,c)})}function id(n,o,u){for(var c=-1,m=o.length,S={};++c<m;){var _=o[c],T=Rn(n,_);u(T,_)&&Ni(S,sn(_,n),T)}return S}function T1(n){return function(o){return Rn(o,n)}}function fu(n,o,u,c){var m=c?Xy:Qn,S=-1,_=o.length,T=n;for(n===o&&(o=Lt(o)),u&&(T=ze(n,Bt(u)));++S<_;)for(var M=0,j=o[S],W=u?u(j):j;(M=m(T,W,M,c))>-1;)T!==n&&Ho.call(T,M,1),Ho.call(n,M,1);return n}function od(n,o){for(var u=n?o.length:0,c=u-1;u--;){var m=o[u];if(u==c||m!==S){var S=m;Wr(m)?Ho.call(n,m,1):hu(n,m)}}return n}function cu(n,o){return n+Go(jc()*(o-n+1))}function C1(n,o,u,c){for(var m=-1,S=nt(Zo((o-n)/(u||1)),0),_=k(S);S--;)_[c?S:++m]=n,n+=u;return _}function du(n,o){var u="";if(!n||o<1||o>Ge)return u;do o%2&&(u+=n),o=Go(o/2),o&&(n+=n);while(o);return u}function ye(n,o){return Pu($d(n,o,kt),n+"")}function P1(n){return Uc(ci(n))}function R1(n,o){var u=ci(n);return fa(u,Pn(o,0,u.length))}function Ni(n,o,u,c){if(!qe(n))return n;o=sn(o,n);for(var m=-1,S=o.length,_=S-1,T=n;T!=null&&++m<S;){var M=xr(o[m]),j=u;if(M==="__proto__"||M==="constructor"||M==="prototype")return n;if(m!=_){var W=T[M];j=c?c(W,M,T):r,j===r&&(j=qe(W)?W:Wr(o[m+1])?[]:{})}Li(T,M,j),T=T[M]}return n}var ad=Ko?function(n,o){return Ko.set(n,o),n}:kt,I1=qo?function(n,o){return qo(n,"toString",{configurable:!0,enumerable:!1,value:ju(o),writable:!0})}:kt;function M1(n){return fa(ci(n))}function nr(n,o,u){var c=-1,m=n.length;o<0&&(o=-o>m?0:m+o),u=u>m?m:u,u<0&&(u+=m),m=o>u?0:u-o>>>0,o>>>=0;for(var S=k(m);++c<m;)S[c]=n[c+o];return S}function F1(n,o){var u;return on(n,function(c,m,S){return u=o(c,m,S),!u}),!!u}function ta(n,o,u){var c=0,m=n==null?c:n.length;if(typeof o=="number"&&o===o&&m<=le){for(;c<m;){var S=c+m>>>1,_=n[S];_!==null&&!qt(_)&&(u?_<=o:_<o)?c=S+1:m=S}return m}return pu(n,o,kt,u)}function pu(n,o,u,c){var m=0,S=n==null?0:n.length;if(S===0)return 0;o=u(o);for(var _=o!==o,T=o===null,M=qt(o),j=o===r;m<S;){var W=Go((m+S)/2),B=u(n[W]),Y=B!==r,J=B===null,ne=B===B,me=qt(B);if(_)var ie=c||ne;else j?ie=ne&&(c||Y):T?ie=ne&&Y&&(c||!J):M?ie=ne&&Y&&!J&&(c||!me):J||me?ie=!1:ie=c?B<=o:B<o;ie?m=W+1:S=W}return wt(S,re)}function sd(n,o){for(var u=-1,c=n.length,m=0,S=[];++u<c;){var _=n[u],T=o?o(_):_;if(!u||!hr(T,M)){var M=T;S[m++]=_===0?0:_}}return S}function ud(n){return typeof n=="number"?n:qt(n)?H:+n}function Ht(n){if(typeof n=="string")return n;if(de(n))return ze(n,Ht)+"";if(qt(n))return Wc?Wc.call(n):"";var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function an(n,o,u){var c=-1,m=Lo,S=n.length,_=!0,T=[],M=T;if(u)_=!1,m=Us;else if(S>=a){var j=o?null:H1(n);if(j)return Do(j);_=!1,m=Ci,M=new Cn}else M=o?[]:T;e:for(;++c<S;){var W=n[c],B=o?o(W):W;if(W=u||W!==0?W:0,_&&B===B){for(var Y=M.length;Y--;)if(M[Y]===B)continue e;o&&M.push(B),T.push(W)}else m(M,B,u)||(M!==T&&M.push(B),T.push(W))}return T}function hu(n,o){return o=sn(o,n),n=Dd(n,o),n==null||delete n[xr(ir(o))]}function ld(n,o,u,c){return Ni(n,o,u(Rn(n,o)),c)}function ra(n,o,u,c){for(var m=n.length,S=c?m:-1;(c?S--:++S<m)&&o(n[S],S,n););return u?nr(n,c?0:S,c?S+1:m):nr(n,c?S+1:0,c?m:S)}function fd(n,o){var u=n;return u instanceof _e&&(u=u.value()),Bs(o,function(c,m){return m.func.apply(m.thisArg,tn([c],m.args))},u)}function vu(n,o,u){var c=n.length;if(c<2)return c?an(n[0]):[];for(var m=-1,S=k(c);++m<c;)for(var _=n[m],T=-1;++T<c;)T!=m&&(S[m]=$i(S[m]||_,n[T],o,u));return an(pt(S,1),o,u)}function cd(n,o,u){for(var c=-1,m=n.length,S=o.length,_={};++c<m;){var T=c<S?o[c]:r;u(_,n[c],T)}return _}function mu(n){return Ve(n)?n:[]}function gu(n){return typeof n=="function"?n:kt}function sn(n,o){return de(n)?n:Au(n,o)?[n]:Wd(Ie(n))}var L1=ye;function un(n,o,u){var c=n.length;return u=u===r?c:u,!o&&u>=c?n:nr(n,o,u)}var dd=S0||function(n){return dt.clearTimeout(n)};function pd(n,o){if(o)return n.slice();var u=n.length,c=Lc?Lc(u):new n.constructor(u);return n.copy(c),c}function yu(n){var o=new n.constructor(n.byteLength);return new Uo(o).set(new Uo(n)),o}function $1(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function D1(n){var o=new n.constructor(n.source,Vf.exec(n));return o.lastIndex=n.lastIndex,o}function k1(n){return Fi?ke(Fi.call(n)):{}}function hd(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function vd(n,o){if(n!==o){var u=n!==r,c=n===null,m=n===n,S=qt(n),_=o!==r,T=o===null,M=o===o,j=qt(o);if(!T&&!j&&!S&&n>o||S&&_&&M&&!T&&!j||c&&_&&M||!u&&M||!m)return 1;if(!c&&!S&&!j&&n<o||j&&u&&m&&!c&&!S||T&&u&&m||!_&&m||!M)return-1}return 0}function N1(n,o,u){for(var c=-1,m=n.criteria,S=o.criteria,_=m.length,T=u.length;++c<_;){var M=vd(m[c],S[c]);if(M){if(c>=T)return M;var j=u[c];return M*(j=="desc"?-1:1)}}return n.index-o.index}function md(n,o,u,c){for(var m=-1,S=n.length,_=u.length,T=-1,M=o.length,j=nt(S-_,0),W=k(M+j),B=!c;++T<M;)W[T]=o[T];for(;++m<_;)(B||m<S)&&(W[u[m]]=n[m]);for(;j--;)W[T++]=n[m++];return W}function gd(n,o,u,c){for(var m=-1,S=n.length,_=-1,T=u.length,M=-1,j=o.length,W=nt(S-T,0),B=k(W+j),Y=!c;++m<W;)B[m]=n[m];for(var J=m;++M<j;)B[J+M]=o[M];for(;++_<T;)(Y||m<S)&&(B[J+u[_]]=n[m++]);return B}function Lt(n,o){var u=-1,c=n.length;for(o||(o=k(c));++u<c;)o[u]=n[u];return o}function Er(n,o,u,c){var m=!u;u||(u={});for(var S=-1,_=o.length;++S<_;){var T=o[S],M=c?c(u[T],n[T],T,u,n):r;M===r&&(M=n[T]),m?kr(u,T,M):Li(u,T,M)}return u}function j1(n,o){return Er(n,Ou(n),o)}function W1(n,o){return Er(n,Rd(n),o)}function na(n,o){return function(u,c){var m=de(u)?qy:u1,S=o?o():{};return m(u,n,te(c,2),S)}}function si(n){return ye(function(o,u){var c=-1,m=u.length,S=m>1?u[m-1]:r,_=m>2?u[2]:r;for(S=n.length>3&&typeof S=="function"?(m--,S):r,_&&Rt(u[0],u[1],_)&&(S=m<3?r:S,m=1),o=ke(o);++c<m;){var T=u[c];T&&n(o,T,c,S)}return o})}function yd(n,o){return function(u,c){if(u==null)return u;if(!$t(u))return n(u,c);for(var m=u.length,S=o?m:-1,_=ke(u);(o?S--:++S<m)&&c(_[S],S,_)!==!1;);return u}}function wd(n){return function(o,u,c){for(var m=-1,S=ke(o),_=c(o),T=_.length;T--;){var M=_[n?T:++m];if(u(S[M],M,S)===!1)break}return o}}function z1(n,o,u){var c=o&x,m=ji(n);function S(){var _=this&&this!==dt&&this instanceof S?m:n;return _.apply(c?u:this,arguments)}return S}function bd(n){return function(o){o=Ie(o);var u=ei(o)?dr(o):r,c=u?u[0]:o.charAt(0),m=u?un(u,1).join(""):o.slice(1);return c[n]()+m}}function ui(n){return function(o){return Bs(yp(gp(o).replace(Iy,"")),n,"")}}function ji(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=ai(n.prototype),c=n.apply(u,o);return qe(c)?c:u}}function U1(n,o,u){var c=ji(n);function m(){for(var S=arguments.length,_=k(S),T=S,M=li(m);T--;)_[T]=arguments[T];var j=S<3&&_[0]!==M&&_[S-1]!==M?[]:rn(_,M);if(S-=j.length,S<u)return Od(n,o,ia,m.placeholder,r,_,j,r,r,u-S);var W=this&&this!==dt&&this instanceof m?c:n;return Ut(W,this,_)}return m}function Sd(n){return function(o,u,c){var m=ke(o);if(!$t(o)){var S=te(u,3);o=ut(o),u=function(T){return S(m[T],T,m)}}var _=n(o,u,c);return _>-1?m[S?o[_]:_]:r}}function Ed(n){return jr(function(o){var u=o.length,c=u,m=tr.prototype.thru;for(n&&o.reverse();c--;){var S=o[c];if(typeof S!="function")throw new er(l);if(m&&!_&&ua(S)=="wrapper")var _=new tr([],!0)}for(c=_?c:u;++c<u;){S=o[c];var T=ua(S),M=T=="wrapper"?xu(S):r;M&&Tu(M[0])&&M[1]==(U|P|O|z)&&!M[4].length&&M[9]==1?_=_[ua(M[0])].apply(_,M[3]):_=S.length==1&&Tu(S)?_[T]():_.thru(S)}return function(){var j=arguments,W=j[0];if(_&&j.length==1&&de(W))return _.plant(W).value();for(var B=0,Y=u?o[B].apply(this,j):W;++B<u;)Y=o[B].call(this,Y);return Y}})}function ia(n,o,u,c,m,S,_,T,M,j){var W=o&U,B=o&x,Y=o&A,J=o&(P|F),ne=o&q,me=Y?r:ji(n);function ie(){for(var Ee=arguments.length,Oe=k(Ee),Zt=Ee;Zt--;)Oe[Zt]=arguments[Zt];if(J)var It=li(ie),Gt=e0(Oe,It);if(c&&(Oe=md(Oe,c,m,J)),S&&(Oe=gd(Oe,S,_,J)),Ee-=Gt,J&&Ee<j){var Xe=rn(Oe,It);return Od(n,o,ia,ie.placeholder,u,Oe,Xe,T,M,j-Ee)}var vr=B?u:this,Br=Y?vr[n]:n;return Ee=Oe.length,T?Oe=uw(Oe,T):ne&&Ee>1&&Oe.reverse(),W&&M<Ee&&(Oe.length=M),this&&this!==dt&&this instanceof ie&&(Br=me||ji(Br)),Br.apply(vr,Oe)}return ie}function xd(n,o){return function(u,c){return m1(u,n,o(c),{})}}function oa(n,o){return function(u,c){var m;if(u===r&&c===r)return o;if(u!==r&&(m=u),c!==r){if(m===r)return c;typeof u=="string"||typeof c=="string"?(u=Ht(u),c=Ht(c)):(u=ud(u),c=ud(c)),m=n(u,c)}return m}}function wu(n){return jr(function(o){return o=ze(o,Bt(te())),ye(function(u){var c=this;return n(o,function(m){return Ut(m,c,u)})})})}function aa(n,o){o=o===r?" ":Ht(o);var u=o.length;if(u<2)return u?du(o,n):o;var c=du(o,Zo(n/ti(o)));return ei(o)?un(dr(c),0,n).join(""):c.slice(0,n)}function B1(n,o,u,c){var m=o&x,S=ji(n);function _(){for(var T=-1,M=arguments.length,j=-1,W=c.length,B=k(W+M),Y=this&&this!==dt&&this instanceof _?S:n;++j<W;)B[j]=c[j];for(;M--;)B[j++]=arguments[++T];return Ut(Y,m?u:this,B)}return _}function _d(n){return function(o,u,c){return c&&typeof c!="number"&&Rt(o,u,c)&&(u=c=r),o=Ur(o),u===r?(u=o,o=0):u=Ur(u),c=c===r?o<u?1:-1:Ur(c),C1(o,u,c,n)}}function sa(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=or(o),u=or(u)),n(o,u)}}function Od(n,o,u,c,m,S,_,T,M,j){var W=o&P,B=W?_:r,Y=W?r:_,J=W?S:r,ne=W?r:S;o|=W?O:L,o&=~(W?L:O),o&I||(o&=-4);var me=[n,o,m,J,B,ne,Y,T,M,j],ie=u.apply(r,me);return Tu(n)&&kd(ie,me),ie.placeholder=c,Nd(ie,n,o)}function bu(n){var o=rt[n];return function(u,c){if(u=or(u),c=c==null?0:wt(he(c),292),c&&Nc(u)){var m=(Ie(u)+"e").split("e"),S=o(m[0]+"e"+(+m[1]+c));return m=(Ie(S)+"e").split("e"),+(m[0]+"e"+(+m[1]-c))}return o(u)}}var H1=ii&&1/Do(new ii([,-0]))[1]==Te?function(n){return new ii(n)}:Uu;function Ad(n){return function(o){var u=bt(o);return u==st?Vs(o):u==yt?s0(o):Qy(o,n(o))}}function Nr(n,o,u,c,m,S,_,T){var M=o&A;if(!M&&typeof n!="function")throw new er(l);var j=c?c.length:0;if(j||(o&=-97,c=m=r),_=_===r?_:nt(he(_),0),T=T===r?T:he(T),j-=m?m.length:0,o&L){var W=c,B=m;c=m=r}var Y=M?r:xu(n),J=[n,o,u,c,m,W,B,S,_,T];if(Y&&ow(J,Y),n=J[0],o=J[1],u=J[2],c=J[3],m=J[4],T=J[9]=J[9]===r?M?0:n.length:nt(J[9]-j,0),!T&&o&(P|F)&&(o&=-25),!o||o==x)var ne=z1(n,o,u);else o==P||o==F?ne=U1(n,o,T):(o==O||o==(x|O))&&!m.length?ne=B1(n,o,u,c):ne=ia.apply(r,J);var me=Y?ad:kd;return Nd(me(ne,J),n,o)}function Td(n,o,u,c){return n===r||hr(n,ni[u])&&!Le.call(c,u)?o:n}function Cd(n,o,u,c,m,S){return qe(n)&&qe(o)&&(S.set(o,n),ea(n,o,r,Cd,S),S.delete(o)),n}function q1(n){return Ui(n)?r:n}function Pd(n,o,u,c,m,S){var _=u&E,T=n.length,M=o.length;if(T!=M&&!(_&&M>T))return!1;var j=S.get(n),W=S.get(o);if(j&&W)return j==o&&W==n;var B=-1,Y=!0,J=u&y?new Cn:r;for(S.set(n,o),S.set(o,n);++B<T;){var ne=n[B],me=o[B];if(c)var ie=_?c(me,ne,B,o,n,S):c(ne,me,B,n,o,S);if(ie!==r){if(ie)continue;Y=!1;break}if(J){if(!Hs(o,function(Ee,Oe){if(!Ci(J,Oe)&&(ne===Ee||m(ne,Ee,u,c,S)))return J.push(Oe)})){Y=!1;break}}else if(!(ne===me||m(ne,me,u,c,S))){Y=!1;break}}return S.delete(n),S.delete(o),Y}function Z1(n,o,u,c,m,S,_){switch(u){case Lr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Qr:return!(n.byteLength!=o.byteLength||!S(new Uo(n),new Uo(o)));case ue:case ge:case br:return hr(+n,+o);case He:return n.name==o.name&&n.message==o.message;case zt:case Xr:return n==o+"";case st:var T=Vs;case yt:var M=c&E;if(T||(T=Do),n.size!=o.size&&!M)return!1;var j=_.get(n);if(j)return j==o;c|=y,_.set(n,o);var W=Pd(T(n),T(o),c,m,S,_);return _.delete(n),W;case _n:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function G1(n,o,u,c,m,S){var _=u&E,T=Su(n),M=T.length,j=Su(o),W=j.length;if(M!=W&&!_)return!1;for(var B=M;B--;){var Y=T[B];if(!(_?Y in o:Le.call(o,Y)))return!1}var J=S.get(n),ne=S.get(o);if(J&&ne)return J==o&&ne==n;var me=!0;S.set(n,o),S.set(o,n);for(var ie=_;++B<M;){Y=T[B];var Ee=n[Y],Oe=o[Y];if(c)var Zt=_?c(Oe,Ee,Y,o,n,S):c(Ee,Oe,Y,n,o,S);if(!(Zt===r?Ee===Oe||m(Ee,Oe,u,c,S):Zt)){me=!1;break}ie||(ie=Y=="constructor")}if(me&&!ie){var It=n.constructor,Gt=o.constructor;It!=Gt&&"constructor"in n&&"constructor"in o&&!(typeof It=="function"&&It instanceof It&&typeof Gt=="function"&&Gt instanceof Gt)&&(me=!1)}return S.delete(n),S.delete(o),me}function jr(n){return Pu($d(n,r,Hd),n+"")}function Su(n){return Yc(n,ut,Ou)}function Eu(n){return Yc(n,Dt,Rd)}var xu=Ko?function(n){return Ko.get(n)}:Uu;function ua(n){for(var o=n.name+"",u=oi[o],c=Le.call(oi,o)?u.length:0;c--;){var m=u[c],S=m.func;if(S==null||S==n)return m.name}return o}function li(n){var o=Le.call(g,"placeholder")?g:n;return o.placeholder}function te(){var n=g.iteratee||Wu;return n=n===Wu?Jc:n,arguments.length?n(arguments[0],arguments[1]):n}function la(n,o){var u=n.__data__;return tw(o)?u[typeof o=="string"?"string":"hash"]:u.map}function _u(n){for(var o=ut(n),u=o.length;u--;){var c=o[u],m=n[c];o[u]=[c,m,Fd(m)]}return o}function In(n,o){var u=i0(n,o);return Xc(u)?u:r}function K1(n){var o=Le.call(n,An),u=n[An];try{n[An]=r;var c=!0}catch{}var m=Wo.call(n);return c&&(o?n[An]=u:delete n[An]),m}var Ou=Js?function(n){return n==null?[]:(n=ke(n),en(Js(n),function(o){return Dc.call(n,o)}))}:Bu,Rd=Js?function(n){for(var o=[];n;)tn(o,Ou(n)),n=Bo(n);return o}:Bu,bt=Pt;(Qs&&bt(new Qs(new ArrayBuffer(1)))!=Lr||Ri&&bt(new Ri)!=st||eu&&bt(eu.resolve())!=Po||ii&&bt(new ii)!=yt||Ii&&bt(new Ii)!=Jr)&&(bt=function(n){var o=Pt(n),u=o==Xt?n.constructor:r,c=u?Mn(u):"";if(c)switch(c){case R0:return Lr;case I0:return st;case M0:return Po;case F0:return yt;case L0:return Jr}return o});function Y1(n,o,u){for(var c=-1,m=u.length;++c<m;){var S=u[c],_=S.size;switch(S.type){case"drop":n+=_;break;case"dropRight":o-=_;break;case"take":o=wt(o,n+_);break;case"takeRight":n=nt(n,o-_);break}}return{start:n,end:o}}function V1(n){var o=n.match(ry);return o?o[1].split(ny):[]}function Id(n,o,u){o=sn(o,n);for(var c=-1,m=o.length,S=!1;++c<m;){var _=xr(o[c]);if(!(S=n!=null&&u(n,_)))break;n=n[_]}return S||++c!=m?S:(m=n==null?0:n.length,!!m&&ma(m)&&Wr(_,m)&&(de(n)||Fn(n)))}function X1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Md(n){return typeof n.constructor=="function"&&!Wi(n)?ai(Bo(n)):{}}function J1(n,o,u){var c=n.constructor;switch(o){case Qr:return yu(n);case ue:case ge:return new c(+n);case Lr:return $1(n,u);case _s:case Os:case As:case Ts:case Cs:case Ps:case Rs:case Is:case Ms:return hd(n,u);case st:return new c;case br:case Xr:return new c(n);case zt:return D1(n);case yt:return new c;case _n:return k1(n)}}function Q1(n,o){var u=o.length;if(!u)return n;var c=u-1;return o[c]=(u>1?"& ":"")+o[c],o=o.join(u>2?", ":" "),n.replace(ty,`{
132
132
  /* [wrapped with `+o+`] */
133
- `)}function Q1(n){return de(n)||Fn(n)||!!(kc&&n&&n[kc])}function Wr(n,o){var u=typeof n;return o=o??Ge,!!o&&(u=="number"||u!="symbol"&&cy.test(n))&&n>-1&&n%1==0&&n<o}function Rt(n,o,u){if(!qe(u))return!1;var c=typeof o;return(c=="number"?$t(u)&&Wr(o,u.length):c=="string"&&o in u)?hr(u[o],n):!1}function Au(n,o){if(de(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||qt(n)?!0:Vg.test(n)||!Yg.test(n)||o!=null&&n in ke(o)}function ew(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Tu(n){var o=ua(n),u=g[o];if(typeof u!="function"||!(o in _e.prototype))return!1;if(n===u)return!0;var c=xu(u);return!!c&&n===c[0]}function tw(n){return!!Fc&&Fc in n}var rw=No?zr:Hu;function Wi(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ni;return n===u}function Fd(n){return n===n&&!qe(n)}function Ld(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in ke(u))}}function nw(n){var o=ha(n,function(c){return u.size===p&&u.clear(),c}),u=o.cache;return o}function iw(n,o){var u=n[1],c=o[1],m=u|c,b=m<(E|P|U),_=c==U&&u==I||c==U&&u==z&&n[7].length<=o[8]||c==(U|z)&&o[7].length<=o[8]&&u==I;if(!(b||_))return n;c&E&&(n[2]=o[2],m|=u&E?0:C);var A=o[3];if(A){var M=n[3];n[3]=M?md(M,A,o[4]):A,n[4]=M?rn(n[3],h):o[4]}return A=o[5],A&&(M=n[5],n[5]=M?gd(M,A,o[6]):A,n[6]=M?rn(n[5],h):o[6]),A=o[7],A&&(n[7]=A),c&U&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=m,n}function ow(n){var o=[];if(n!=null)for(var u in ke(n))o.push(u);return o}function aw(n){return Wo.call(n)}function $d(n,o,u){return o=nt(o===r?n.length-1:o,0),function(){for(var c=arguments,m=-1,b=nt(c.length-o,0),_=k(b);++m<b;)_[m]=c[o+m];m=-1;for(var A=k(o+1);++m<o;)A[m]=c[m];return A[o]=u(_),Ut(n,this,A)}}function Dd(n,o){return o.length<2?n:Rn(n,nr(o,0,-1))}function sw(n,o){for(var u=n.length,c=wt(o.length,u),m=Lt(n);c--;){var b=o[c];n[c]=Wr(b,u)?m[b]:r}return n}function Cu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var kd=jd(ad),zi=E0||function(n,o){return ct.setTimeout(n,o)},Pu=jd(R1);function Nd(n,o,u){var c=o+"";return Pu(n,J1(c,uw(Y1(c),u)))}function jd(n){var o=0,u=0;return function(){var c=A0(),m=pe-(c-u);if(u=c,m>0){if(++o>=be)return arguments[0]}else o=0;return n.apply(r,arguments)}}function fa(n,o){var u=-1,c=n.length,m=c-1;for(o=o===r?c:o;++u<o;){var b=cu(u,m),_=n[b];n[b]=n[u],n[u]=_}return n.length=o,n}var Wd=nw(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(Xg,function(u,c,m,b){o.push(m?b.replace(oy,"$1"):c||u)}),o});function xr(n){if(typeof n=="string"||qt(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function Mn(n){if(n!=null){try{return jo.call(n)}catch{}try{return n+""}catch{}}return""}function uw(n,o){return Qt(Q,function(u){var c="_."+u[0];o&u[1]&&!Lo(n,c)&&n.push(c)}),n.sort()}function zd(n){if(n instanceof _e)return n.clone();var o=new tr(n.__wrapped__,n.__chain__);return o.__actions__=Lt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function lw(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=nt(he(o),0);var c=n==null?0:n.length;if(!c||o<1)return[];for(var m=0,b=0,_=k(Zo(c/o));m<c;)_[b++]=nr(n,m,m+=o);return _}function fw(n){for(var o=-1,u=n==null?0:n.length,c=0,m=[];++o<u;){var b=n[o];b&&(m[c++]=b)}return m}function cw(){var n=arguments.length;if(!n)return[];for(var o=k(n-1),u=arguments[0],c=n;c--;)o[c-1]=arguments[c];return tn(de(u)?Lt(u):[u],dt(o,1))}var dw=ye(function(n,o){return Ve(n)?$i(n,dt(o,1,Ve,!0)):[]}),pw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,dt(o,1,Ve,!0),te(u,2)):[]}),hw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,dt(o,1,Ve,!0),r,u):[]});function vw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),nr(n,o<0?0:o,c)):[]}function mw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,0,o<0?0:o)):[]}function gw(n,o){return n&&n.length?ra(n,te(o,3),!0,!0):[]}function yw(n,o){return n&&n.length?ra(n,te(o,3),!0):[]}function ww(n,o,u,c){var m=n==null?0:n.length;return m?(u&&typeof u!="number"&&Rt(n,o,u)&&(u=0,c=m),c1(n,o,u,c)):[]}function Ud(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),$o(n,te(o,3),m)}function Bd(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c-1;return u!==r&&(m=he(u),m=u<0?nt(c+m,0):wt(m,c-1)),$o(n,te(o,3),m,!0)}function Hd(n){var o=n==null?0:n.length;return o?dt(n,1):[]}function bw(n){var o=n==null?0:n.length;return o?dt(n,Te):[]}function Sw(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:he(o),dt(n,o)):[]}function Ew(n){for(var o=-1,u=n==null?0:n.length,c={};++o<u;){var m=n[o];c[m[0]]=m[1]}return c}function qd(n){return n&&n.length?n[0]:r}function xw(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),Qn(n,o,m)}function _w(n){var o=n==null?0:n.length;return o?nr(n,0,-1):[]}var Ow=ye(function(n){var o=ze(n,mu);return o.length&&o[0]===n[0]?au(o):[]}),Aw=ye(function(n){var o=ir(n),u=ze(n,mu);return o===ir(u)?o=r:u.pop(),u.length&&u[0]===n[0]?au(u,te(o,2)):[]}),Tw=ye(function(n){var o=ir(n),u=ze(n,mu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?au(u,r,o):[]});function Cw(n,o){return n==null?"":_0.call(n,o)}function ir(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Pw(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c;return u!==r&&(m=he(u),m=m<0?nt(c+m,0):wt(m,c-1)),o===o?u0(n,o,m):$o(n,Oc,m,!0)}function Rw(n,o){return n&&n.length?rd(n,he(o)):r}var Iw=ye(Zd);function Zd(n,o){return n&&n.length&&o&&o.length?fu(n,o):n}function Mw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,te(u,2)):n}function Fw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,r,u):n}var Lw=jr(function(n,o){var u=n==null?0:n.length,c=ru(n,o);return od(n,ze(o,function(m){return Wr(m,u)?+m:m}).sort(vd)),c});function $w(n,o){var u=[];if(!(n&&n.length))return u;var c=-1,m=[],b=n.length;for(o=te(o,3);++c<b;){var _=n[c];o(_,c,n)&&(u.push(_),m.push(c))}return od(n,m),u}function Ru(n){return n==null?n:C0.call(n)}function Dw(n,o,u){var c=n==null?0:n.length;return c?(u&&typeof u!="number"&&Rt(n,o,u)?(o=0,u=c):(o=o==null?0:he(o),u=u===r?c:he(u)),nr(n,o,u)):[]}function kw(n,o){return ta(n,o)}function Nw(n,o,u){return pu(n,o,te(u,2))}function jw(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o);if(c<u&&hr(n[c],o))return c}return-1}function Ww(n,o){return ta(n,o,!0)}function zw(n,o,u){return pu(n,o,te(u,2),!0)}function Uw(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o,!0)-1;if(hr(n[c],o))return c}return-1}function Bw(n){return n&&n.length?sd(n):[]}function Hw(n,o){return n&&n.length?sd(n,te(o,2)):[]}function qw(n){var o=n==null?0:n.length;return o?nr(n,1,o):[]}function Zw(n,o,u){return n&&n.length?(o=u||o===r?1:he(o),nr(n,0,o<0?0:o)):[]}function Gw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,o<0?0:o,c)):[]}function Kw(n,o){return n&&n.length?ra(n,te(o,3),!1,!0):[]}function Yw(n,o){return n&&n.length?ra(n,te(o,3)):[]}var Vw=ye(function(n){return an(dt(n,1,Ve,!0))}),Xw=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),an(dt(n,1,Ve,!0),te(o,2))}),Jw=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,an(dt(n,1,Ve,!0),r,o)});function Qw(n){return n&&n.length?an(n):[]}function eb(n,o){return n&&n.length?an(n,te(o,2)):[]}function tb(n,o){return o=typeof o=="function"?o:r,n&&n.length?an(n,r,o):[]}function Iu(n){if(!(n&&n.length))return[];var o=0;return n=en(n,function(u){if(Ve(u))return o=nt(u.length,o),!0}),Ks(o,function(u){return ze(n,qs(u))})}function Gd(n,o){if(!(n&&n.length))return[];var u=Iu(n);return o==null?u:ze(u,function(c){return Ut(o,r,c)})}var rb=ye(function(n,o){return Ve(n)?$i(n,o):[]}),nb=ye(function(n){return vu(en(n,Ve))}),ib=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),vu(en(n,Ve),te(o,2))}),ob=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,vu(en(n,Ve),r,o)}),ab=ye(Iu);function sb(n,o){return cd(n||[],o||[],Li)}function ub(n,o){return cd(n||[],o||[],Ni)}var lb=ye(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Gd(n,u)});function Kd(n){var o=g(n);return o.__chain__=!0,o}function fb(n,o){return o(n),n}function ca(n,o){return o(n)}var cb=jr(function(n){var o=n.length,u=o?n[0]:0,c=this.__wrapped__,m=function(b){return ru(b,n)};return o>1||this.__actions__.length||!(c instanceof _e)||!Wr(u)?this.thru(m):(c=c.slice(u,+u+(o?1:0)),c.__actions__.push({func:ca,args:[m],thisArg:r}),new tr(c,this.__chain__).thru(function(b){return o&&!b.length&&b.push(r),b}))});function db(){return Kd(this)}function pb(){return new tr(this.value(),this.__chain__)}function hb(){this.__values__===r&&(this.__values__=up(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function vb(){return this}function mb(n){for(var o,u=this;u instanceof Vo;){var c=zd(u);c.__index__=0,c.__values__=r,o?m.__wrapped__=c:o=c;var m=c;u=u.__wrapped__}return m.__wrapped__=n,o}function gb(){var n=this.__wrapped__;if(n instanceof _e){var o=n;return this.__actions__.length&&(o=new _e(this)),o=o.reverse(),o.__actions__.push({func:ca,args:[Ru],thisArg:r}),new tr(o,this.__chain__)}return this.thru(Ru)}function yb(){return fd(this.__wrapped__,this.__actions__)}var wb=na(function(n,o,u){Le.call(n,u)?++n[u]:kr(n,u,1)});function bb(n,o,u){var c=de(n)?xc:f1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}function Sb(n,o){var u=de(n)?en:Gc;return u(n,te(o,3))}var Eb=Sd(Ud),xb=Sd(Bd);function _b(n,o){return dt(da(n,o),1)}function Ob(n,o){return dt(da(n,o),Te)}function Ab(n,o,u){return u=u===r?1:he(u),dt(da(n,o),u)}function Yd(n,o){var u=de(n)?Qt:on;return u(n,te(o,3))}function Vd(n,o){var u=de(n)?qy:Zc;return u(n,te(o,3))}var Tb=na(function(n,o,u){Le.call(n,u)?n[u].push(o):kr(n,u,[o])});function Cb(n,o,u,c){n=$t(n)?n:ci(n),u=u&&!c?he(u):0;var m=n.length;return u<0&&(u=nt(m+u,0)),ga(n)?u<=m&&n.indexOf(o,u)>-1:!!m&&Qn(n,o,u)>-1}var Pb=ye(function(n,o,u){var c=-1,m=typeof o=="function",b=$t(n)?k(n.length):[];return on(n,function(_){b[++c]=m?Ut(o,_,u):Di(_,o,u)}),b}),Rb=na(function(n,o,u){kr(n,u,o)});function da(n,o){var u=de(n)?ze:Qc;return u(n,te(o,3))}function Ib(n,o,u,c){return n==null?[]:(de(o)||(o=o==null?[]:[o]),u=c?r:u,de(u)||(u=u==null?[]:[u]),nd(n,o,u))}var Mb=na(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Fb(n,o,u){var c=de(n)?Bs:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,on)}function Lb(n,o,u){var c=de(n)?Zy:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,Zc)}function $b(n,o){var u=de(n)?en:Gc;return u(n,va(te(o,3)))}function Db(n){var o=de(n)?Uc:C1;return o(n)}function kb(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=he(o);var c=de(n)?o1:P1;return c(n,o)}function Nb(n){var o=de(n)?a1:I1;return o(n)}function jb(n){if(n==null)return 0;if($t(n))return ga(n)?ti(n):n.length;var o=bt(n);return o==st||o==yt?n.size:uu(n).length}function Wb(n,o,u){var c=de(n)?Hs:M1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}var zb=ye(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Rt(n,o[0],o[1])?o=[]:u>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),nd(n,dt(o,1),[])}),pa=S0||function(){return ct.Date.now()};function Ub(n,o){if(typeof o!="function")throw new er(l);return n=he(n),function(){if(--n<1)return o.apply(this,arguments)}}function Xd(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Nr(n,U,r,r,r,r,o)}function Jd(n,o){var u;if(typeof o!="function")throw new er(l);return n=he(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var Mu=ye(function(n,o,u){var c=E;if(u.length){var m=rn(u,li(Mu));c|=O}return Nr(n,c,o,u,m)}),Qd=ye(function(n,o,u){var c=E|P;if(u.length){var m=rn(u,li(Qd));c|=O}return Nr(o,c,n,u,m)});function ep(n,o,u){o=u?r:o;var c=Nr(n,I,r,r,r,r,r,o);return c.placeholder=ep.placeholder,c}function tp(n,o,u){o=u?r:o;var c=Nr(n,F,r,r,r,r,r,o);return c.placeholder=tp.placeholder,c}function rp(n,o,u){var c,m,b,_,A,M,j=0,W=!1,B=!1,Y=!0;if(typeof n!="function")throw new er(l);o=or(o)||0,qe(u)&&(W=!!u.leading,B="maxWait"in u,b=B?nt(or(u.maxWait)||0,o):b,Y="trailing"in u?!!u.trailing:Y);function J(Xe){var vr=c,Br=m;return c=m=r,j=Xe,_=n.apply(Br,vr),_}function ne(Xe){return j=Xe,A=zi(Ee,o),W?J(Xe):_}function me(Xe){var vr=Xe-M,Br=Xe-j,Sp=o-vr;return B?wt(Sp,b-Br):Sp}function ie(Xe){var vr=Xe-M,Br=Xe-j;return M===r||vr>=o||vr<0||B&&Br>=b}function Ee(){var Xe=pa();if(ie(Xe))return Oe(Xe);A=zi(Ee,me(Xe))}function Oe(Xe){return A=r,Y&&c?J(Xe):(c=m=r,_)}function Zt(){A!==r&&dd(A),j=0,c=M=m=A=r}function It(){return A===r?_:Oe(pa())}function Gt(){var Xe=pa(),vr=ie(Xe);if(c=arguments,m=this,M=Xe,vr){if(A===r)return ne(M);if(B)return dd(A),A=zi(Ee,o),J(M)}return A===r&&(A=zi(Ee,o)),_}return Gt.cancel=Zt,Gt.flush=It,Gt}var Bb=ye(function(n,o){return qc(n,1,o)}),Hb=ye(function(n,o,u){return qc(n,or(o)||0,u)});function qb(n){return Nr(n,q)}function ha(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new er(l);var u=function(){var c=arguments,m=o?o.apply(this,c):c[0],b=u.cache;if(b.has(m))return b.get(m);var _=n.apply(this,c);return u.cache=b.set(m,_)||b,_};return u.cache=new(ha.Cache||Dr),u}ha.Cache=Dr;function va(n){if(typeof n!="function")throw new er(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 Zb(n){return Jd(2,n)}var Gb=F1(function(n,o){o=o.length==1&&de(o[0])?ze(o[0],Bt(te())):ze(dt(o,1),Bt(te()));var u=o.length;return ye(function(c){for(var m=-1,b=wt(c.length,u);++m<b;)c[m]=o[m].call(this,c[m]);return Ut(n,this,c)})}),Fu=ye(function(n,o){var u=rn(o,li(Fu));return Nr(n,O,r,o,u)}),np=ye(function(n,o){var u=rn(o,li(np));return Nr(n,L,r,o,u)}),Kb=jr(function(n,o){return Nr(n,z,r,r,r,o)});function Yb(n,o){if(typeof n!="function")throw new er(l);return o=o===r?o:he(o),ye(n,o)}function Vb(n,o){if(typeof n!="function")throw new er(l);return o=o==null?0:nt(he(o),0),ye(function(u){var c=u[o],m=un(u,0,o);return c&&tn(m,c),Ut(n,this,m)})}function Xb(n,o,u){var c=!0,m=!0;if(typeof n!="function")throw new er(l);return qe(u)&&(c="leading"in u?!!u.leading:c,m="trailing"in u?!!u.trailing:m),rp(n,o,{leading:c,maxWait:o,trailing:m})}function Jb(n){return Xd(n,1)}function Qb(n,o){return Fu(gu(o),n)}function eS(){if(!arguments.length)return[];var n=arguments[0];return de(n)?n:[n]}function tS(n){return rr(n,w)}function rS(n,o){return o=typeof o=="function"?o:r,rr(n,w,o)}function nS(n){return rr(n,S|w)}function iS(n,o){return o=typeof o=="function"?o:r,rr(n,S|w,o)}function oS(n,o){return o==null||Hc(n,o,ut(o))}function hr(n,o){return n===o||n!==n&&o!==o}var aS=sa(ou),sS=sa(function(n,o){return n>=o}),Fn=Vc(function(){return arguments}())?Vc:function(n){return Ke(n)&&Le.call(n,"callee")&&!Dc.call(n,"callee")},de=k.isArray,uS=gc?Bt(gc):m1;function $t(n){return n!=null&&ma(n.length)&&!zr(n)}function Ve(n){return Ke(n)&&$t(n)}function lS(n){return n===!0||n===!1||Ke(n)&&Pt(n)==ue}var ln=x0||Hu,fS=yc?Bt(yc):g1;function cS(n){return Ke(n)&&n.nodeType===1&&!Ui(n)}function dS(n){if(n==null)return!0;if($t(n)&&(de(n)||typeof n=="string"||typeof n.splice=="function"||ln(n)||fi(n)||Fn(n)))return!n.length;var o=bt(n);if(o==st||o==yt)return!n.size;if(Wi(n))return!uu(n).length;for(var u in n)if(Le.call(n,u))return!1;return!0}function pS(n,o){return ki(n,o)}function hS(n,o,u){u=typeof u=="function"?u:r;var c=u?u(n,o):r;return c===r?ki(n,o,r,u):!!c}function Lu(n){if(!Ke(n))return!1;var o=Pt(n);return o==He||o==xe||typeof n.message=="string"&&typeof n.name=="string"&&!Ui(n)}function vS(n){return typeof n=="number"&&Nc(n)}function zr(n){if(!qe(n))return!1;var o=Pt(n);return o==K||o==gt||o==ce||o==xs}function ip(n){return typeof n=="number"&&n==he(n)}function ma(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Ge}function qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Ke(n){return n!=null&&typeof n=="object"}var op=wc?Bt(wc):w1;function mS(n,o){return n===o||su(n,o,_u(o))}function gS(n,o,u){return u=typeof u=="function"?u:r,su(n,o,_u(o),u)}function yS(n){return ap(n)&&n!=+n}function wS(n){if(rw(n))throw new fe(s);return Xc(n)}function bS(n){return n===null}function SS(n){return n==null}function ap(n){return typeof n=="number"||Ke(n)&&Pt(n)==br}function Ui(n){if(!Ke(n)||Pt(n)!=Xt)return!1;var o=Bo(n);if(o===null)return!0;var u=Le.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&jo.call(u)==g0}var $u=bc?Bt(bc):b1;function ES(n){return ip(n)&&n>=-9007199254740991&&n<=Ge}var sp=Sc?Bt(Sc):S1;function ga(n){return typeof n=="string"||!de(n)&&Ke(n)&&Pt(n)==Xr}function qt(n){return typeof n=="symbol"||Ke(n)&&Pt(n)==_n}var fi=Ec?Bt(Ec):E1;function xS(n){return n===r}function _S(n){return Ke(n)&&bt(n)==Jr}function OS(n){return Ke(n)&&Pt(n)==Ro}var AS=sa(lu),TS=sa(function(n,o){return n<=o});function up(n){if(!n)return[];if($t(n))return ga(n)?dr(n):Lt(n);if(Pi&&n[Pi])return o0(n[Pi]());var o=bt(n),u=o==st?Vs:o==yt?Do:ci;return u(n)}function Ur(n){if(!n)return n===0?n:0;if(n=or(n),n===Te||n===-1/0){var o=n<0?-1:1;return o*Ct}return n===n?n:0}function he(n){var o=Ur(n),u=o%1;return o===o?u?o-u:o:0}function lp(n){return n?Pn(he(n),0,G):0}function or(n){if(typeof n=="number")return n;if(qt(n))return H;if(qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Cc(n);var u=uy.test(n);return u||fy.test(n)?Uy(n.slice(2),u?2:8):sy.test(n)?H:+n}function fp(n){return Er(n,Dt(n))}function CS(n){return n?Pn(he(n),-9007199254740991,Ge):n===0?n:0}function Ie(n){return n==null?"":Ht(n)}var PS=si(function(n,o){if(Wi(o)||$t(o)){Er(o,ut(o),n);return}for(var u in o)Le.call(o,u)&&Li(n,u,o[u])}),cp=si(function(n,o){Er(o,Dt(o),n)}),ya=si(function(n,o,u,c){Er(o,Dt(o),n,c)}),RS=si(function(n,o,u,c){Er(o,ut(o),n,c)}),IS=jr(ru);function MS(n,o){var u=ai(n);return o==null?u:Bc(u,o)}var FS=ye(function(n,o){n=ke(n);var u=-1,c=o.length,m=c>2?o[2]:r;for(m&&Rt(o[0],o[1],m)&&(c=1);++u<c;)for(var b=o[u],_=Dt(b),A=-1,M=_.length;++A<M;){var j=_[A],W=n[j];(W===r||hr(W,ni[j])&&!Le.call(n,j))&&(n[j]=b[j])}return n}),LS=ye(function(n){return n.push(r,Cd),Ut(dp,r,n)});function $S(n,o){return _c(n,te(o,3),Sr)}function DS(n,o){return _c(n,te(o,3),iu)}function kS(n,o){return n==null?n:nu(n,te(o,3),Dt)}function NS(n,o){return n==null?n:Kc(n,te(o,3),Dt)}function jS(n,o){return n&&Sr(n,te(o,3))}function WS(n,o){return n&&iu(n,te(o,3))}function zS(n){return n==null?[]:Qo(n,ut(n))}function US(n){return n==null?[]:Qo(n,Dt(n))}function Du(n,o,u){var c=n==null?r:Rn(n,o);return c===r?u:c}function BS(n,o){return n!=null&&Id(n,o,d1)}function ku(n,o){return n!=null&&Id(n,o,p1)}var HS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),n[o]=u},ju(kt)),qS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),Le.call(n,o)?n[o].push(u):n[o]=[u]},te),ZS=ye(Di);function ut(n){return $t(n)?zc(n):uu(n)}function Dt(n){return $t(n)?zc(n,!0):x1(n)}function GS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,b){kr(u,o(c,m,b),c)}),u}function KS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,b){kr(u,m,o(c,m,b))}),u}var YS=si(function(n,o,u){ea(n,o,u)}),dp=si(function(n,o,u,c){ea(n,o,u,c)}),VS=jr(function(n,o){var u={};if(n==null)return u;var c=!1;o=ze(o,function(b){return b=sn(b,n),c||(c=b.length>1),b}),Er(n,Eu(n),u),c&&(u=rr(u,S|v|w,H1));for(var m=o.length;m--;)hu(u,o[m]);return u});function XS(n,o){return pp(n,va(te(o)))}var JS=jr(function(n,o){return n==null?{}:O1(n,o)});function pp(n,o){if(n==null)return{};var u=ze(Eu(n),function(c){return[c]});return o=te(o),id(n,u,function(c,m){return o(c,m[0])})}function QS(n,o,u){o=sn(o,n);var c=-1,m=o.length;for(m||(m=1,n=r);++c<m;){var b=n==null?r:n[xr(o[c])];b===r&&(c=m,b=u),n=zr(b)?b.call(n):b}return n}function eE(n,o,u){return n==null?n:Ni(n,o,u)}function tE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:Ni(n,o,u,c)}var hp=Ad(ut),vp=Ad(Dt);function rE(n,o,u){var c=de(n),m=c||ln(n)||fi(n);if(o=te(o,4),u==null){var b=n&&n.constructor;m?u=c?new b:[]:qe(n)?u=zr(b)?ai(Bo(n)):{}:u={}}return(m?Qt:Sr)(n,function(_,A,M){return o(u,_,A,M)}),u}function nE(n,o){return n==null?!0:hu(n,o)}function iE(n,o,u){return n==null?n:ld(n,o,gu(u))}function oE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:ld(n,o,gu(u),c)}function ci(n){return n==null?[]:Ys(n,ut(n))}function aE(n){return n==null?[]:Ys(n,Dt(n))}function sE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=or(u),u=u===u?u:0),o!==r&&(o=or(o),o=o===o?o:0),Pn(or(n),o,u)}function uE(n,o,u){return o=Ur(o),u===r?(u=o,o=0):u=Ur(u),n=or(n),h1(n,o,u)}function lE(n,o,u){if(u&&typeof u!="boolean"&&Rt(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=Ur(n),o===r?(o=n,n=0):o=Ur(o)),n>o){var c=n;n=o,o=c}if(u||n%1||o%1){var m=jc();return wt(n+m*(o-n+zy("1e-"+((m+"").length-1))),o)}return cu(n,o)}var fE=ui(function(n,o,u){return o=o.toLowerCase(),n+(u?mp(o):o)});function mp(n){return Nu(Ie(n).toLowerCase())}function gp(n){return n=Ie(n),n&&n.replace(dy,e0).replace(Iy,"")}function cE(n,o,u){n=Ie(n),o=Ht(o);var c=n.length;u=u===r?c:Pn(he(u),0,c);var m=u;return u-=o.length,u>=0&&n.slice(u,m)==o}function dE(n){return n=Ie(n),n&&Zg.test(n)?n.replace(Kf,t0):n}function pE(n){return n=Ie(n),n&&Jg.test(n)?n.replace(Fs,"\\$&"):n}var hE=ui(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),vE=ui(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),mE=bd("toLowerCase");function gE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;if(!o||c>=o)return n;var m=(o-c)/2;return aa(Go(m),u)+n+aa(Zo(m),u)}function yE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?n+aa(o-c,u):n}function wE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?aa(o-c,u)+n:n}function bE(n,o,u){return u||o==null?o=0:o&&(o=+o),T0(Ie(n).replace(Ls,""),o||0)}function SE(n,o,u){return(u?Rt(n,o,u):o===r)?o=1:o=he(o),du(Ie(n),o)}function EE(){var n=arguments,o=Ie(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var xE=ui(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function _E(n,o,u){return u&&typeof u!="number"&&Rt(n,o,u)&&(o=u=r),u=u===r?G:u>>>0,u?(n=Ie(n),n&&(typeof o=="string"||o!=null&&!$u(o))&&(o=Ht(o),!o&&ei(n))?un(dr(n),0,u):n.split(o,u)):[]}var OE=ui(function(n,o,u){return n+(u?" ":"")+Nu(o)});function AE(n,o,u){return n=Ie(n),u=u==null?0:Pn(he(u),0,n.length),o=Ht(o),n.slice(u,u+o.length)==o}function TE(n,o,u){var c=g.templateSettings;u&&Rt(n,o,u)&&(o=r),n=Ie(n),o=ya({},o,c,Td);var m=ya({},o.imports,c.imports,Td),b=ut(m),_=Ys(m,b),A,M,j=0,W=o.interpolate||Io,B="__p += '",Y=Xs((o.escape||Io).source+"|"+W.source+"|"+(W===Yf?ay:Io).source+"|"+(o.evaluate||Io).source+"|$","g"),J="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dy+"]")+`
134
- `;n.replace(Y,function(ie,Ee,Oe,Zt,It,Gt){return Oe||(Oe=Zt),B+=n.slice(j,Gt).replace(py,r0),Ee&&(A=!0,B+=`' +
133
+ `)}function ew(n){return de(n)||Fn(n)||!!(kc&&n&&n[kc])}function Wr(n,o){var u=typeof n;return o=o??Ge,!!o&&(u=="number"||u!="symbol"&&dy.test(n))&&n>-1&&n%1==0&&n<o}function Rt(n,o,u){if(!qe(u))return!1;var c=typeof o;return(c=="number"?$t(u)&&Wr(o,u.length):c=="string"&&o in u)?hr(u[o],n):!1}function Au(n,o){if(de(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||qt(n)?!0:Xg.test(n)||!Vg.test(n)||o!=null&&n in ke(o)}function tw(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Tu(n){var o=ua(n),u=g[o];if(typeof u!="function"||!(o in _e.prototype))return!1;if(n===u)return!0;var c=xu(u);return!!c&&n===c[0]}function rw(n){return!!Fc&&Fc in n}var nw=No?zr:Hu;function Wi(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ni;return n===u}function Fd(n){return n===n&&!qe(n)}function Ld(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in ke(u))}}function iw(n){var o=ha(n,function(c){return u.size===p&&u.clear(),c}),u=o.cache;return o}function ow(n,o){var u=n[1],c=o[1],m=u|c,S=m<(x|A|U),_=c==U&&u==P||c==U&&u==z&&n[7].length<=o[8]||c==(U|z)&&o[7].length<=o[8]&&u==P;if(!(S||_))return n;c&x&&(n[2]=o[2],m|=u&x?0:I);var T=o[3];if(T){var M=n[3];n[3]=M?md(M,T,o[4]):T,n[4]=M?rn(n[3],h):o[4]}return T=o[5],T&&(M=n[5],n[5]=M?gd(M,T,o[6]):T,n[6]=M?rn(n[5],h):o[6]),T=o[7],T&&(n[7]=T),c&U&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=m,n}function aw(n){var o=[];if(n!=null)for(var u in ke(n))o.push(u);return o}function sw(n){return Wo.call(n)}function $d(n,o,u){return o=nt(o===r?n.length-1:o,0),function(){for(var c=arguments,m=-1,S=nt(c.length-o,0),_=k(S);++m<S;)_[m]=c[o+m];m=-1;for(var T=k(o+1);++m<o;)T[m]=c[m];return T[o]=u(_),Ut(n,this,T)}}function Dd(n,o){return o.length<2?n:Rn(n,nr(o,0,-1))}function uw(n,o){for(var u=n.length,c=wt(o.length,u),m=Lt(n);c--;){var S=o[c];n[c]=Wr(S,u)?m[S]:r}return n}function Cu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var kd=jd(ad),zi=x0||function(n,o){return dt.setTimeout(n,o)},Pu=jd(I1);function Nd(n,o,u){var c=o+"";return Pu(n,Q1(c,lw(V1(c),u)))}function jd(n){var o=0,u=0;return function(){var c=T0(),m=pe-(c-u);if(u=c,m>0){if(++o>=be)return arguments[0]}else o=0;return n.apply(r,arguments)}}function fa(n,o){var u=-1,c=n.length,m=c-1;for(o=o===r?c:o;++u<o;){var S=cu(u,m),_=n[S];n[S]=n[u],n[u]=_}return n.length=o,n}var Wd=iw(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(Jg,function(u,c,m,S){o.push(m?S.replace(ay,"$1"):c||u)}),o});function xr(n){if(typeof n=="string"||qt(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function Mn(n){if(n!=null){try{return jo.call(n)}catch{}try{return n+""}catch{}}return""}function lw(n,o){return Qt(Q,function(u){var c="_."+u[0];o&u[1]&&!Lo(n,c)&&n.push(c)}),n.sort()}function zd(n){if(n instanceof _e)return n.clone();var o=new tr(n.__wrapped__,n.__chain__);return o.__actions__=Lt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function fw(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=nt(he(o),0);var c=n==null?0:n.length;if(!c||o<1)return[];for(var m=0,S=0,_=k(Zo(c/o));m<c;)_[S++]=nr(n,m,m+=o);return _}function cw(n){for(var o=-1,u=n==null?0:n.length,c=0,m=[];++o<u;){var S=n[o];S&&(m[c++]=S)}return m}function dw(){var n=arguments.length;if(!n)return[];for(var o=k(n-1),u=arguments[0],c=n;c--;)o[c-1]=arguments[c];return tn(de(u)?Lt(u):[u],pt(o,1))}var pw=ye(function(n,o){return Ve(n)?$i(n,pt(o,1,Ve,!0)):[]}),hw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,pt(o,1,Ve,!0),te(u,2)):[]}),vw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,pt(o,1,Ve,!0),r,u):[]});function mw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),nr(n,o<0?0:o,c)):[]}function gw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,0,o<0?0:o)):[]}function yw(n,o){return n&&n.length?ra(n,te(o,3),!0,!0):[]}function ww(n,o){return n&&n.length?ra(n,te(o,3),!0):[]}function bw(n,o,u,c){var m=n==null?0:n.length;return m?(u&&typeof u!="number"&&Rt(n,o,u)&&(u=0,c=m),d1(n,o,u,c)):[]}function Ud(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),$o(n,te(o,3),m)}function Bd(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c-1;return u!==r&&(m=he(u),m=u<0?nt(c+m,0):wt(m,c-1)),$o(n,te(o,3),m,!0)}function Hd(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function Sw(n){var o=n==null?0:n.length;return o?pt(n,Te):[]}function Ew(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:he(o),pt(n,o)):[]}function xw(n){for(var o=-1,u=n==null?0:n.length,c={};++o<u;){var m=n[o];c[m[0]]=m[1]}return c}function qd(n){return n&&n.length?n[0]:r}function _w(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),Qn(n,o,m)}function Ow(n){var o=n==null?0:n.length;return o?nr(n,0,-1):[]}var Aw=ye(function(n){var o=ze(n,mu);return o.length&&o[0]===n[0]?au(o):[]}),Tw=ye(function(n){var o=ir(n),u=ze(n,mu);return o===ir(u)?o=r:u.pop(),u.length&&u[0]===n[0]?au(u,te(o,2)):[]}),Cw=ye(function(n){var o=ir(n),u=ze(n,mu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?au(u,r,o):[]});function Pw(n,o){return n==null?"":O0.call(n,o)}function ir(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Rw(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c;return u!==r&&(m=he(u),m=m<0?nt(c+m,0):wt(m,c-1)),o===o?l0(n,o,m):$o(n,Oc,m,!0)}function Iw(n,o){return n&&n.length?rd(n,he(o)):r}var Mw=ye(Zd);function Zd(n,o){return n&&n.length&&o&&o.length?fu(n,o):n}function Fw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,te(u,2)):n}function Lw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,r,u):n}var $w=jr(function(n,o){var u=n==null?0:n.length,c=ru(n,o);return od(n,ze(o,function(m){return Wr(m,u)?+m:m}).sort(vd)),c});function Dw(n,o){var u=[];if(!(n&&n.length))return u;var c=-1,m=[],S=n.length;for(o=te(o,3);++c<S;){var _=n[c];o(_,c,n)&&(u.push(_),m.push(c))}return od(n,m),u}function Ru(n){return n==null?n:P0.call(n)}function kw(n,o,u){var c=n==null?0:n.length;return c?(u&&typeof u!="number"&&Rt(n,o,u)?(o=0,u=c):(o=o==null?0:he(o),u=u===r?c:he(u)),nr(n,o,u)):[]}function Nw(n,o){return ta(n,o)}function jw(n,o,u){return pu(n,o,te(u,2))}function Ww(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o);if(c<u&&hr(n[c],o))return c}return-1}function zw(n,o){return ta(n,o,!0)}function Uw(n,o,u){return pu(n,o,te(u,2),!0)}function Bw(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o,!0)-1;if(hr(n[c],o))return c}return-1}function Hw(n){return n&&n.length?sd(n):[]}function qw(n,o){return n&&n.length?sd(n,te(o,2)):[]}function Zw(n){var o=n==null?0:n.length;return o?nr(n,1,o):[]}function Gw(n,o,u){return n&&n.length?(o=u||o===r?1:he(o),nr(n,0,o<0?0:o)):[]}function Kw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,o<0?0:o,c)):[]}function Yw(n,o){return n&&n.length?ra(n,te(o,3),!1,!0):[]}function Vw(n,o){return n&&n.length?ra(n,te(o,3)):[]}var Xw=ye(function(n){return an(pt(n,1,Ve,!0))}),Jw=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),an(pt(n,1,Ve,!0),te(o,2))}),Qw=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,an(pt(n,1,Ve,!0),r,o)});function eb(n){return n&&n.length?an(n):[]}function tb(n,o){return n&&n.length?an(n,te(o,2)):[]}function rb(n,o){return o=typeof o=="function"?o:r,n&&n.length?an(n,r,o):[]}function Iu(n){if(!(n&&n.length))return[];var o=0;return n=en(n,function(u){if(Ve(u))return o=nt(u.length,o),!0}),Ks(o,function(u){return ze(n,qs(u))})}function Gd(n,o){if(!(n&&n.length))return[];var u=Iu(n);return o==null?u:ze(u,function(c){return Ut(o,r,c)})}var nb=ye(function(n,o){return Ve(n)?$i(n,o):[]}),ib=ye(function(n){return vu(en(n,Ve))}),ob=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),vu(en(n,Ve),te(o,2))}),ab=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,vu(en(n,Ve),r,o)}),sb=ye(Iu);function ub(n,o){return cd(n||[],o||[],Li)}function lb(n,o){return cd(n||[],o||[],Ni)}var fb=ye(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Gd(n,u)});function Kd(n){var o=g(n);return o.__chain__=!0,o}function cb(n,o){return o(n),n}function ca(n,o){return o(n)}var db=jr(function(n){var o=n.length,u=o?n[0]:0,c=this.__wrapped__,m=function(S){return ru(S,n)};return o>1||this.__actions__.length||!(c instanceof _e)||!Wr(u)?this.thru(m):(c=c.slice(u,+u+(o?1:0)),c.__actions__.push({func:ca,args:[m],thisArg:r}),new tr(c,this.__chain__).thru(function(S){return o&&!S.length&&S.push(r),S}))});function pb(){return Kd(this)}function hb(){return new tr(this.value(),this.__chain__)}function vb(){this.__values__===r&&(this.__values__=up(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function mb(){return this}function gb(n){for(var o,u=this;u instanceof Vo;){var c=zd(u);c.__index__=0,c.__values__=r,o?m.__wrapped__=c:o=c;var m=c;u=u.__wrapped__}return m.__wrapped__=n,o}function yb(){var n=this.__wrapped__;if(n instanceof _e){var o=n;return this.__actions__.length&&(o=new _e(this)),o=o.reverse(),o.__actions__.push({func:ca,args:[Ru],thisArg:r}),new tr(o,this.__chain__)}return this.thru(Ru)}function wb(){return fd(this.__wrapped__,this.__actions__)}var bb=na(function(n,o,u){Le.call(n,u)?++n[u]:kr(n,u,1)});function Sb(n,o,u){var c=de(n)?xc:c1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}function Eb(n,o){var u=de(n)?en:Gc;return u(n,te(o,3))}var xb=Sd(Ud),_b=Sd(Bd);function Ob(n,o){return pt(da(n,o),1)}function Ab(n,o){return pt(da(n,o),Te)}function Tb(n,o,u){return u=u===r?1:he(u),pt(da(n,o),u)}function Yd(n,o){var u=de(n)?Qt:on;return u(n,te(o,3))}function Vd(n,o){var u=de(n)?Zy:Zc;return u(n,te(o,3))}var Cb=na(function(n,o,u){Le.call(n,u)?n[u].push(o):kr(n,u,[o])});function Pb(n,o,u,c){n=$t(n)?n:ci(n),u=u&&!c?he(u):0;var m=n.length;return u<0&&(u=nt(m+u,0)),ga(n)?u<=m&&n.indexOf(o,u)>-1:!!m&&Qn(n,o,u)>-1}var Rb=ye(function(n,o,u){var c=-1,m=typeof o=="function",S=$t(n)?k(n.length):[];return on(n,function(_){S[++c]=m?Ut(o,_,u):Di(_,o,u)}),S}),Ib=na(function(n,o,u){kr(n,u,o)});function da(n,o){var u=de(n)?ze:Qc;return u(n,te(o,3))}function Mb(n,o,u,c){return n==null?[]:(de(o)||(o=o==null?[]:[o]),u=c?r:u,de(u)||(u=u==null?[]:[u]),nd(n,o,u))}var Fb=na(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Lb(n,o,u){var c=de(n)?Bs:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,on)}function $b(n,o,u){var c=de(n)?Gy:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,Zc)}function Db(n,o){var u=de(n)?en:Gc;return u(n,va(te(o,3)))}function kb(n){var o=de(n)?Uc:P1;return o(n)}function Nb(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=he(o);var c=de(n)?a1:R1;return c(n,o)}function jb(n){var o=de(n)?s1:M1;return o(n)}function Wb(n){if(n==null)return 0;if($t(n))return ga(n)?ti(n):n.length;var o=bt(n);return o==st||o==yt?n.size:uu(n).length}function zb(n,o,u){var c=de(n)?Hs:F1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}var Ub=ye(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Rt(n,o[0],o[1])?o=[]:u>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),nd(n,pt(o,1),[])}),pa=E0||function(){return dt.Date.now()};function Bb(n,o){if(typeof o!="function")throw new er(l);return n=he(n),function(){if(--n<1)return o.apply(this,arguments)}}function Xd(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Nr(n,U,r,r,r,r,o)}function Jd(n,o){var u;if(typeof o!="function")throw new er(l);return n=he(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var Mu=ye(function(n,o,u){var c=x;if(u.length){var m=rn(u,li(Mu));c|=O}return Nr(n,c,o,u,m)}),Qd=ye(function(n,o,u){var c=x|A;if(u.length){var m=rn(u,li(Qd));c|=O}return Nr(o,c,n,u,m)});function ep(n,o,u){o=u?r:o;var c=Nr(n,P,r,r,r,r,r,o);return c.placeholder=ep.placeholder,c}function tp(n,o,u){o=u?r:o;var c=Nr(n,F,r,r,r,r,r,o);return c.placeholder=tp.placeholder,c}function rp(n,o,u){var c,m,S,_,T,M,j=0,W=!1,B=!1,Y=!0;if(typeof n!="function")throw new er(l);o=or(o)||0,qe(u)&&(W=!!u.leading,B="maxWait"in u,S=B?nt(or(u.maxWait)||0,o):S,Y="trailing"in u?!!u.trailing:Y);function J(Xe){var vr=c,Br=m;return c=m=r,j=Xe,_=n.apply(Br,vr),_}function ne(Xe){return j=Xe,T=zi(Ee,o),W?J(Xe):_}function me(Xe){var vr=Xe-M,Br=Xe-j,Sp=o-vr;return B?wt(Sp,S-Br):Sp}function ie(Xe){var vr=Xe-M,Br=Xe-j;return M===r||vr>=o||vr<0||B&&Br>=S}function Ee(){var Xe=pa();if(ie(Xe))return Oe(Xe);T=zi(Ee,me(Xe))}function Oe(Xe){return T=r,Y&&c?J(Xe):(c=m=r,_)}function Zt(){T!==r&&dd(T),j=0,c=M=m=T=r}function It(){return T===r?_:Oe(pa())}function Gt(){var Xe=pa(),vr=ie(Xe);if(c=arguments,m=this,M=Xe,vr){if(T===r)return ne(M);if(B)return dd(T),T=zi(Ee,o),J(M)}return T===r&&(T=zi(Ee,o)),_}return Gt.cancel=Zt,Gt.flush=It,Gt}var Hb=ye(function(n,o){return qc(n,1,o)}),qb=ye(function(n,o,u){return qc(n,or(o)||0,u)});function Zb(n){return Nr(n,q)}function ha(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new er(l);var u=function(){var c=arguments,m=o?o.apply(this,c):c[0],S=u.cache;if(S.has(m))return S.get(m);var _=n.apply(this,c);return u.cache=S.set(m,_)||S,_};return u.cache=new(ha.Cache||Dr),u}ha.Cache=Dr;function va(n){if(typeof n!="function")throw new er(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 Gb(n){return Jd(2,n)}var Kb=L1(function(n,o){o=o.length==1&&de(o[0])?ze(o[0],Bt(te())):ze(pt(o,1),Bt(te()));var u=o.length;return ye(function(c){for(var m=-1,S=wt(c.length,u);++m<S;)c[m]=o[m].call(this,c[m]);return Ut(n,this,c)})}),Fu=ye(function(n,o){var u=rn(o,li(Fu));return Nr(n,O,r,o,u)}),np=ye(function(n,o){var u=rn(o,li(np));return Nr(n,L,r,o,u)}),Yb=jr(function(n,o){return Nr(n,z,r,r,r,o)});function Vb(n,o){if(typeof n!="function")throw new er(l);return o=o===r?o:he(o),ye(n,o)}function Xb(n,o){if(typeof n!="function")throw new er(l);return o=o==null?0:nt(he(o),0),ye(function(u){var c=u[o],m=un(u,0,o);return c&&tn(m,c),Ut(n,this,m)})}function Jb(n,o,u){var c=!0,m=!0;if(typeof n!="function")throw new er(l);return qe(u)&&(c="leading"in u?!!u.leading:c,m="trailing"in u?!!u.trailing:m),rp(n,o,{leading:c,maxWait:o,trailing:m})}function Qb(n){return Xd(n,1)}function eS(n,o){return Fu(gu(o),n)}function tS(){if(!arguments.length)return[];var n=arguments[0];return de(n)?n:[n]}function rS(n){return rr(n,w)}function nS(n,o){return o=typeof o=="function"?o:r,rr(n,w,o)}function iS(n){return rr(n,b|w)}function oS(n,o){return o=typeof o=="function"?o:r,rr(n,b|w,o)}function aS(n,o){return o==null||Hc(n,o,ut(o))}function hr(n,o){return n===o||n!==n&&o!==o}var sS=sa(ou),uS=sa(function(n,o){return n>=o}),Fn=Vc(function(){return arguments}())?Vc:function(n){return Ke(n)&&Le.call(n,"callee")&&!Dc.call(n,"callee")},de=k.isArray,lS=gc?Bt(gc):g1;function $t(n){return n!=null&&ma(n.length)&&!zr(n)}function Ve(n){return Ke(n)&&$t(n)}function fS(n){return n===!0||n===!1||Ke(n)&&Pt(n)==ue}var ln=_0||Hu,cS=yc?Bt(yc):y1;function dS(n){return Ke(n)&&n.nodeType===1&&!Ui(n)}function pS(n){if(n==null)return!0;if($t(n)&&(de(n)||typeof n=="string"||typeof n.splice=="function"||ln(n)||fi(n)||Fn(n)))return!n.length;var o=bt(n);if(o==st||o==yt)return!n.size;if(Wi(n))return!uu(n).length;for(var u in n)if(Le.call(n,u))return!1;return!0}function hS(n,o){return ki(n,o)}function vS(n,o,u){u=typeof u=="function"?u:r;var c=u?u(n,o):r;return c===r?ki(n,o,r,u):!!c}function Lu(n){if(!Ke(n))return!1;var o=Pt(n);return o==He||o==xe||typeof n.message=="string"&&typeof n.name=="string"&&!Ui(n)}function mS(n){return typeof n=="number"&&Nc(n)}function zr(n){if(!qe(n))return!1;var o=Pt(n);return o==K||o==gt||o==ce||o==xs}function ip(n){return typeof n=="number"&&n==he(n)}function ma(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Ge}function qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Ke(n){return n!=null&&typeof n=="object"}var op=wc?Bt(wc):b1;function gS(n,o){return n===o||su(n,o,_u(o))}function yS(n,o,u){return u=typeof u=="function"?u:r,su(n,o,_u(o),u)}function wS(n){return ap(n)&&n!=+n}function bS(n){if(nw(n))throw new fe(s);return Xc(n)}function SS(n){return n===null}function ES(n){return n==null}function ap(n){return typeof n=="number"||Ke(n)&&Pt(n)==br}function Ui(n){if(!Ke(n)||Pt(n)!=Xt)return!1;var o=Bo(n);if(o===null)return!0;var u=Le.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&jo.call(u)==y0}var $u=bc?Bt(bc):S1;function xS(n){return ip(n)&&n>=-9007199254740991&&n<=Ge}var sp=Sc?Bt(Sc):E1;function ga(n){return typeof n=="string"||!de(n)&&Ke(n)&&Pt(n)==Xr}function qt(n){return typeof n=="symbol"||Ke(n)&&Pt(n)==_n}var fi=Ec?Bt(Ec):x1;function _S(n){return n===r}function OS(n){return Ke(n)&&bt(n)==Jr}function AS(n){return Ke(n)&&Pt(n)==Ro}var TS=sa(lu),CS=sa(function(n,o){return n<=o});function up(n){if(!n)return[];if($t(n))return ga(n)?dr(n):Lt(n);if(Pi&&n[Pi])return a0(n[Pi]());var o=bt(n),u=o==st?Vs:o==yt?Do:ci;return u(n)}function Ur(n){if(!n)return n===0?n:0;if(n=or(n),n===Te||n===-1/0){var o=n<0?-1:1;return o*Ct}return n===n?n:0}function he(n){var o=Ur(n),u=o%1;return o===o?u?o-u:o:0}function lp(n){return n?Pn(he(n),0,G):0}function or(n){if(typeof n=="number")return n;if(qt(n))return H;if(qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Cc(n);var u=ly.test(n);return u||cy.test(n)?By(n.slice(2),u?2:8):uy.test(n)?H:+n}function fp(n){return Er(n,Dt(n))}function PS(n){return n?Pn(he(n),-9007199254740991,Ge):n===0?n:0}function Ie(n){return n==null?"":Ht(n)}var RS=si(function(n,o){if(Wi(o)||$t(o)){Er(o,ut(o),n);return}for(var u in o)Le.call(o,u)&&Li(n,u,o[u])}),cp=si(function(n,o){Er(o,Dt(o),n)}),ya=si(function(n,o,u,c){Er(o,Dt(o),n,c)}),IS=si(function(n,o,u,c){Er(o,ut(o),n,c)}),MS=jr(ru);function FS(n,o){var u=ai(n);return o==null?u:Bc(u,o)}var LS=ye(function(n,o){n=ke(n);var u=-1,c=o.length,m=c>2?o[2]:r;for(m&&Rt(o[0],o[1],m)&&(c=1);++u<c;)for(var S=o[u],_=Dt(S),T=-1,M=_.length;++T<M;){var j=_[T],W=n[j];(W===r||hr(W,ni[j])&&!Le.call(n,j))&&(n[j]=S[j])}return n}),$S=ye(function(n){return n.push(r,Cd),Ut(dp,r,n)});function DS(n,o){return _c(n,te(o,3),Sr)}function kS(n,o){return _c(n,te(o,3),iu)}function NS(n,o){return n==null?n:nu(n,te(o,3),Dt)}function jS(n,o){return n==null?n:Kc(n,te(o,3),Dt)}function WS(n,o){return n&&Sr(n,te(o,3))}function zS(n,o){return n&&iu(n,te(o,3))}function US(n){return n==null?[]:Qo(n,ut(n))}function BS(n){return n==null?[]:Qo(n,Dt(n))}function Du(n,o,u){var c=n==null?r:Rn(n,o);return c===r?u:c}function HS(n,o){return n!=null&&Id(n,o,p1)}function ku(n,o){return n!=null&&Id(n,o,h1)}var qS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),n[o]=u},ju(kt)),ZS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),Le.call(n,o)?n[o].push(u):n[o]=[u]},te),GS=ye(Di);function ut(n){return $t(n)?zc(n):uu(n)}function Dt(n){return $t(n)?zc(n,!0):_1(n)}function KS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,S){kr(u,o(c,m,S),c)}),u}function YS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,S){kr(u,m,o(c,m,S))}),u}var VS=si(function(n,o,u){ea(n,o,u)}),dp=si(function(n,o,u,c){ea(n,o,u,c)}),XS=jr(function(n,o){var u={};if(n==null)return u;var c=!1;o=ze(o,function(S){return S=sn(S,n),c||(c=S.length>1),S}),Er(n,Eu(n),u),c&&(u=rr(u,b|v|w,q1));for(var m=o.length;m--;)hu(u,o[m]);return u});function JS(n,o){return pp(n,va(te(o)))}var QS=jr(function(n,o){return n==null?{}:A1(n,o)});function pp(n,o){if(n==null)return{};var u=ze(Eu(n),function(c){return[c]});return o=te(o),id(n,u,function(c,m){return o(c,m[0])})}function eE(n,o,u){o=sn(o,n);var c=-1,m=o.length;for(m||(m=1,n=r);++c<m;){var S=n==null?r:n[xr(o[c])];S===r&&(c=m,S=u),n=zr(S)?S.call(n):S}return n}function tE(n,o,u){return n==null?n:Ni(n,o,u)}function rE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:Ni(n,o,u,c)}var hp=Ad(ut),vp=Ad(Dt);function nE(n,o,u){var c=de(n),m=c||ln(n)||fi(n);if(o=te(o,4),u==null){var S=n&&n.constructor;m?u=c?new S:[]:qe(n)?u=zr(S)?ai(Bo(n)):{}:u={}}return(m?Qt:Sr)(n,function(_,T,M){return o(u,_,T,M)}),u}function iE(n,o){return n==null?!0:hu(n,o)}function oE(n,o,u){return n==null?n:ld(n,o,gu(u))}function aE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:ld(n,o,gu(u),c)}function ci(n){return n==null?[]:Ys(n,ut(n))}function sE(n){return n==null?[]:Ys(n,Dt(n))}function uE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=or(u),u=u===u?u:0),o!==r&&(o=or(o),o=o===o?o:0),Pn(or(n),o,u)}function lE(n,o,u){return o=Ur(o),u===r?(u=o,o=0):u=Ur(u),n=or(n),v1(n,o,u)}function fE(n,o,u){if(u&&typeof u!="boolean"&&Rt(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=Ur(n),o===r?(o=n,n=0):o=Ur(o)),n>o){var c=n;n=o,o=c}if(u||n%1||o%1){var m=jc();return wt(n+m*(o-n+Uy("1e-"+((m+"").length-1))),o)}return cu(n,o)}var cE=ui(function(n,o,u){return o=o.toLowerCase(),n+(u?mp(o):o)});function mp(n){return Nu(Ie(n).toLowerCase())}function gp(n){return n=Ie(n),n&&n.replace(py,t0).replace(My,"")}function dE(n,o,u){n=Ie(n),o=Ht(o);var c=n.length;u=u===r?c:Pn(he(u),0,c);var m=u;return u-=o.length,u>=0&&n.slice(u,m)==o}function pE(n){return n=Ie(n),n&&Gg.test(n)?n.replace(Kf,r0):n}function hE(n){return n=Ie(n),n&&Qg.test(n)?n.replace(Fs,"\\$&"):n}var vE=ui(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),mE=ui(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),gE=bd("toLowerCase");function yE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;if(!o||c>=o)return n;var m=(o-c)/2;return aa(Go(m),u)+n+aa(Zo(m),u)}function wE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?n+aa(o-c,u):n}function bE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?aa(o-c,u)+n:n}function SE(n,o,u){return u||o==null?o=0:o&&(o=+o),C0(Ie(n).replace(Ls,""),o||0)}function EE(n,o,u){return(u?Rt(n,o,u):o===r)?o=1:o=he(o),du(Ie(n),o)}function xE(){var n=arguments,o=Ie(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var _E=ui(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function OE(n,o,u){return u&&typeof u!="number"&&Rt(n,o,u)&&(o=u=r),u=u===r?G:u>>>0,u?(n=Ie(n),n&&(typeof o=="string"||o!=null&&!$u(o))&&(o=Ht(o),!o&&ei(n))?un(dr(n),0,u):n.split(o,u)):[]}var AE=ui(function(n,o,u){return n+(u?" ":"")+Nu(o)});function TE(n,o,u){return n=Ie(n),u=u==null?0:Pn(he(u),0,n.length),o=Ht(o),n.slice(u,u+o.length)==o}function CE(n,o,u){var c=g.templateSettings;u&&Rt(n,o,u)&&(o=r),n=Ie(n),o=ya({},o,c,Td);var m=ya({},o.imports,c.imports,Td),S=ut(m),_=Ys(m,S),T,M,j=0,W=o.interpolate||Io,B="__p += '",Y=Xs((o.escape||Io).source+"|"+W.source+"|"+(W===Yf?sy:Io).source+"|"+(o.evaluate||Io).source+"|$","g"),J="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ky+"]")+`
134
+ `;n.replace(Y,function(ie,Ee,Oe,Zt,It,Gt){return Oe||(Oe=Zt),B+=n.slice(j,Gt).replace(hy,n0),Ee&&(T=!0,B+=`' +
135
135
  __e(`+Ee+`) +
136
136
  '`),It&&(M=!0,B+=`';
137
137
  `+It+`;
@@ -141,17 +141,17 @@ __p += '`),Oe&&(B+=`' +
141
141
  `;var ne=Le.call(o,"variable")&&o.variable;if(!ne)B=`with (obj) {
142
142
  `+B+`
143
143
  }
144
- `;else if(iy.test(ne))throw new fe(f);B=(M?B.replace(Ug,""):B).replace(Bg,"$1").replace(Hg,"$1;"),B="function("+(ne||"obj")+`) {
144
+ `;else if(oy.test(ne))throw new fe(f);B=(M?B.replace(Bg,""):B).replace(Hg,"$1").replace(qg,"$1;"),B="function("+(ne||"obj")+`) {
145
145
  `+(ne?"":`obj || (obj = {});
146
- `)+"var __t, __p = ''"+(A?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
146
+ `)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
147
147
  function print() { __p += __j.call(arguments, '') }
148
148
  `:`;
149
149
  `)+B+`return __p
150
- }`;var me=wp(function(){return Re(b,J+"return "+B).apply(r,_)});if(me.source=B,Lu(me))throw me;return me}function CE(n){return Ie(n).toLowerCase()}function PE(n){return Ie(n).toUpperCase()}function RE(n,o,u){if(n=Ie(n),n&&(u||o===r))return Cc(n);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=dr(o),b=Pc(c,m),_=Rc(c,m)+1;return un(c,b,_).join("")}function IE(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.slice(0,Mc(n)+1);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Rc(c,dr(o))+1;return un(c,0,m).join("")}function ME(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.replace(Ls,"");if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Pc(c,dr(o));return un(c,m).join("")}function FE(n,o){var u=V,c=ee;if(qe(o)){var m="separator"in o?o.separator:m;u="length"in o?he(o.length):u,c="omission"in o?Ht(o.omission):c}n=Ie(n);var b=n.length;if(ei(n)){var _=dr(n);b=_.length}if(u>=b)return n;var A=u-ti(c);if(A<1)return c;var M=_?un(_,0,A).join(""):n.slice(0,A);if(m===r)return M+c;if(_&&(A+=M.length-A),$u(m)){if(n.slice(A).search(m)){var j,W=M;for(m.global||(m=Xs(m.source,Ie(Vf.exec(m))+"g")),m.lastIndex=0;j=m.exec(W);)var B=j.index;M=M.slice(0,B===r?A:B)}}else if(n.indexOf(Ht(m),A)!=A){var Y=M.lastIndexOf(m);Y>-1&&(M=M.slice(0,Y))}return M+c}function LE(n){return n=Ie(n),n&&qg.test(n)?n.replace(Gf,l0):n}var $E=ui(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),Nu=bd("toUpperCase");function yp(n,o,u){return n=Ie(n),o=u?r:o,o===r?i0(n)?d0(n):Yy(n):n.match(o)||[]}var wp=ye(function(n,o){try{return Ut(n,r,o)}catch(u){return Lu(u)?u:new fe(u)}}),DE=jr(function(n,o){return Qt(o,function(u){u=xr(u),kr(n,u,Mu(n[u],n))}),n});function kE(n){var o=n==null?0:n.length,u=te();return n=o?ze(n,function(c){if(typeof c[1]!="function")throw new er(l);return[u(c[0]),c[1]]}):[],ye(function(c){for(var m=-1;++m<o;){var b=n[m];if(Ut(b[0],this,c))return Ut(b[1],this,c)}})}function NE(n){return l1(rr(n,S))}function ju(n){return function(){return n}}function jE(n,o){return n==null||n!==n?o:n}var WE=Ed(),zE=Ed(!0);function kt(n){return n}function Wu(n){return Jc(typeof n=="function"?n:rr(n,S))}function UE(n){return ed(rr(n,S))}function BE(n,o){return td(n,rr(o,S))}var HE=ye(function(n,o){return function(u){return Di(u,n,o)}}),qE=ye(function(n,o){return function(u){return Di(n,u,o)}});function zu(n,o,u){var c=ut(o),m=Qo(o,c);u==null&&!(qe(o)&&(m.length||!c.length))&&(u=o,o=n,n=this,m=Qo(o,ut(o)));var b=!(qe(u)&&"chain"in u)||!!u.chain,_=zr(n);return Qt(m,function(A){var M=o[A];n[A]=M,_&&(n.prototype[A]=function(){var j=this.__chain__;if(b||j){var W=n(this.__wrapped__),B=W.__actions__=Lt(this.__actions__);return B.push({func:M,args:arguments,thisArg:n}),W.__chain__=j,W}return M.apply(n,tn([this.value()],arguments))})}),n}function ZE(){return ct._===this&&(ct._=y0),this}function Uu(){}function GE(n){return n=he(n),ye(function(o){return rd(o,n)})}var KE=wu(ze),YE=wu(xc),VE=wu(Hs);function bp(n){return Au(n)?qs(xr(n)):A1(n)}function XE(n){return function(o){return n==null?r:Rn(n,o)}}var JE=_d(),QE=_d(!0);function Bu(){return[]}function Hu(){return!1}function ex(){return{}}function tx(){return""}function rx(){return!0}function nx(n,o){if(n=he(n),n<1||n>Ge)return[];var u=G,c=wt(n,G);o=te(o),n-=G;for(var m=Ks(c,o);++u<n;)o(u);return m}function ix(n){return de(n)?ze(n,xr):qt(n)?[n]:Lt(Wd(Ie(n)))}function ox(n){var o=++m0;return Ie(n)+o}var ax=oa(function(n,o){return n+o},0),sx=bu("ceil"),ux=oa(function(n,o){return n/o},1),lx=bu("floor");function fx(n){return n&&n.length?Jo(n,kt,ou):r}function cx(n,o){return n&&n.length?Jo(n,te(o,2),ou):r}function dx(n){return Ac(n,kt)}function px(n,o){return Ac(n,te(o,2))}function hx(n){return n&&n.length?Jo(n,kt,lu):r}function vx(n,o){return n&&n.length?Jo(n,te(o,2),lu):r}var mx=oa(function(n,o){return n*o},1),gx=bu("round"),yx=oa(function(n,o){return n-o},0);function wx(n){return n&&n.length?Gs(n,kt):0}function bx(n,o){return n&&n.length?Gs(n,te(o,2)):0}return g.after=Ub,g.ary=Xd,g.assign=PS,g.assignIn=cp,g.assignInWith=ya,g.assignWith=RS,g.at=IS,g.before=Jd,g.bind=Mu,g.bindAll=DE,g.bindKey=Qd,g.castArray=eS,g.chain=Kd,g.chunk=lw,g.compact=fw,g.concat=cw,g.cond=kE,g.conforms=NE,g.constant=ju,g.countBy=wb,g.create=MS,g.curry=ep,g.curryRight=tp,g.debounce=rp,g.defaults=FS,g.defaultsDeep=LS,g.defer=Bb,g.delay=Hb,g.difference=dw,g.differenceBy=pw,g.differenceWith=hw,g.drop=vw,g.dropRight=mw,g.dropRightWhile=gw,g.dropWhile=yw,g.fill=ww,g.filter=Sb,g.flatMap=_b,g.flatMapDeep=Ob,g.flatMapDepth=Ab,g.flatten=Hd,g.flattenDeep=bw,g.flattenDepth=Sw,g.flip=qb,g.flow=WE,g.flowRight=zE,g.fromPairs=Ew,g.functions=zS,g.functionsIn=US,g.groupBy=Tb,g.initial=_w,g.intersection=Ow,g.intersectionBy=Aw,g.intersectionWith=Tw,g.invert=HS,g.invertBy=qS,g.invokeMap=Pb,g.iteratee=Wu,g.keyBy=Rb,g.keys=ut,g.keysIn=Dt,g.map=da,g.mapKeys=GS,g.mapValues=KS,g.matches=UE,g.matchesProperty=BE,g.memoize=ha,g.merge=YS,g.mergeWith=dp,g.method=HE,g.methodOf=qE,g.mixin=zu,g.negate=va,g.nthArg=GE,g.omit=VS,g.omitBy=XS,g.once=Zb,g.orderBy=Ib,g.over=KE,g.overArgs=Gb,g.overEvery=YE,g.overSome=VE,g.partial=Fu,g.partialRight=np,g.partition=Mb,g.pick=JS,g.pickBy=pp,g.property=bp,g.propertyOf=XE,g.pull=Iw,g.pullAll=Zd,g.pullAllBy=Mw,g.pullAllWith=Fw,g.pullAt=Lw,g.range=JE,g.rangeRight=QE,g.rearg=Kb,g.reject=$b,g.remove=$w,g.rest=Yb,g.reverse=Ru,g.sampleSize=kb,g.set=eE,g.setWith=tE,g.shuffle=Nb,g.slice=Dw,g.sortBy=zb,g.sortedUniq=Bw,g.sortedUniqBy=Hw,g.split=_E,g.spread=Vb,g.tail=qw,g.take=Zw,g.takeRight=Gw,g.takeRightWhile=Kw,g.takeWhile=Yw,g.tap=fb,g.throttle=Xb,g.thru=ca,g.toArray=up,g.toPairs=hp,g.toPairsIn=vp,g.toPath=ix,g.toPlainObject=fp,g.transform=rE,g.unary=Jb,g.union=Vw,g.unionBy=Xw,g.unionWith=Jw,g.uniq=Qw,g.uniqBy=eb,g.uniqWith=tb,g.unset=nE,g.unzip=Iu,g.unzipWith=Gd,g.update=iE,g.updateWith=oE,g.values=ci,g.valuesIn=aE,g.without=rb,g.words=yp,g.wrap=Qb,g.xor=nb,g.xorBy=ib,g.xorWith=ob,g.zip=ab,g.zipObject=sb,g.zipObjectDeep=ub,g.zipWith=lb,g.entries=hp,g.entriesIn=vp,g.extend=cp,g.extendWith=ya,zu(g,g),g.add=ax,g.attempt=wp,g.camelCase=fE,g.capitalize=mp,g.ceil=sx,g.clamp=sE,g.clone=tS,g.cloneDeep=nS,g.cloneDeepWith=iS,g.cloneWith=rS,g.conformsTo=oS,g.deburr=gp,g.defaultTo=jE,g.divide=ux,g.endsWith=cE,g.eq=hr,g.escape=dE,g.escapeRegExp=pE,g.every=bb,g.find=Eb,g.findIndex=Ud,g.findKey=$S,g.findLast=xb,g.findLastIndex=Bd,g.findLastKey=DS,g.floor=lx,g.forEach=Yd,g.forEachRight=Vd,g.forIn=kS,g.forInRight=NS,g.forOwn=jS,g.forOwnRight=WS,g.get=Du,g.gt=aS,g.gte=sS,g.has=BS,g.hasIn=ku,g.head=qd,g.identity=kt,g.includes=Cb,g.indexOf=xw,g.inRange=uE,g.invoke=ZS,g.isArguments=Fn,g.isArray=de,g.isArrayBuffer=uS,g.isArrayLike=$t,g.isArrayLikeObject=Ve,g.isBoolean=lS,g.isBuffer=ln,g.isDate=fS,g.isElement=cS,g.isEmpty=dS,g.isEqual=pS,g.isEqualWith=hS,g.isError=Lu,g.isFinite=vS,g.isFunction=zr,g.isInteger=ip,g.isLength=ma,g.isMap=op,g.isMatch=mS,g.isMatchWith=gS,g.isNaN=yS,g.isNative=wS,g.isNil=SS,g.isNull=bS,g.isNumber=ap,g.isObject=qe,g.isObjectLike=Ke,g.isPlainObject=Ui,g.isRegExp=$u,g.isSafeInteger=ES,g.isSet=sp,g.isString=ga,g.isSymbol=qt,g.isTypedArray=fi,g.isUndefined=xS,g.isWeakMap=_S,g.isWeakSet=OS,g.join=Cw,g.kebabCase=hE,g.last=ir,g.lastIndexOf=Pw,g.lowerCase=vE,g.lowerFirst=mE,g.lt=AS,g.lte=TS,g.max=fx,g.maxBy=cx,g.mean=dx,g.meanBy=px,g.min=hx,g.minBy=vx,g.stubArray=Bu,g.stubFalse=Hu,g.stubObject=ex,g.stubString=tx,g.stubTrue=rx,g.multiply=mx,g.nth=Rw,g.noConflict=ZE,g.noop=Uu,g.now=pa,g.pad=gE,g.padEnd=yE,g.padStart=wE,g.parseInt=bE,g.random=lE,g.reduce=Fb,g.reduceRight=Lb,g.repeat=SE,g.replace=EE,g.result=QS,g.round=gx,g.runInContext=R,g.sample=Db,g.size=jb,g.snakeCase=xE,g.some=Wb,g.sortedIndex=kw,g.sortedIndexBy=Nw,g.sortedIndexOf=jw,g.sortedLastIndex=Ww,g.sortedLastIndexBy=zw,g.sortedLastIndexOf=Uw,g.startCase=OE,g.startsWith=AE,g.subtract=yx,g.sum=wx,g.sumBy=bx,g.template=TE,g.times=nx,g.toFinite=Ur,g.toInteger=he,g.toLength=lp,g.toLower=CE,g.toNumber=or,g.toSafeInteger=CS,g.toString=Ie,g.toUpper=PE,g.trim=RE,g.trimEnd=IE,g.trimStart=ME,g.truncate=FE,g.unescape=LE,g.uniqueId=ox,g.upperCase=$E,g.upperFirst=Nu,g.each=Yd,g.eachRight=Vd,g.first=qd,zu(g,function(){var n={};return Sr(g,function(o,u){Le.call(g.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),g.VERSION=i,Qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){g[n].placeholder=g}),Qt(["drop","take"],function(n,o){_e.prototype[n]=function(u){u=u===r?1:nt(he(u),0);var c=this.__filtered__&&!o?new _e(this):this.clone();return c.__filtered__?c.__takeCount__=wt(u,c.__takeCount__):c.__views__.push({size:wt(u,G),type:n+(c.__dir__<0?"Right":"")}),c},_e.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Qt(["filter","map","takeWhile"],function(n,o){var u=o+1,c=u==Ae||u==ve;_e.prototype[n]=function(m){var b=this.clone();return b.__iteratees__.push({iteratee:te(m,3),type:u}),b.__filtered__=b.__filtered__||c,b}}),Qt(["head","last"],function(n,o){var u="take"+(o?"Right":"");_e.prototype[n]=function(){return this[u](1).value()[0]}}),Qt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");_e.prototype[n]=function(){return this.__filtered__?new _e(this):this[u](1)}}),_e.prototype.compact=function(){return this.filter(kt)},_e.prototype.find=function(n){return this.filter(n).head()},_e.prototype.findLast=function(n){return this.reverse().find(n)},_e.prototype.invokeMap=ye(function(n,o){return typeof n=="function"?new _e(this):this.map(function(u){return Di(u,n,o)})}),_e.prototype.reject=function(n){return this.filter(va(te(n)))},_e.prototype.slice=function(n,o){n=he(n);var u=this;return u.__filtered__&&(n>0||o<0)?new _e(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=he(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},_e.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},_e.prototype.toArray=function(){return this.take(G)},Sr(_e.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),c=/^(?:head|last)$/.test(o),m=g[c?"take"+(o=="last"?"Right":""):o],b=c||/^find/.test(o);m&&(g.prototype[o]=function(){var _=this.__wrapped__,A=c?[1]:arguments,M=_ instanceof _e,j=A[0],W=M||de(_),B=function(Ee){var Oe=m.apply(g,tn([Ee],A));return c&&Y?Oe[0]:Oe};W&&u&&typeof j=="function"&&j.length!=1&&(M=W=!1);var Y=this.__chain__,J=!!this.__actions__.length,ne=b&&!Y,me=M&&!J;if(!b&&W){_=me?_:new _e(this);var ie=n.apply(_,A);return ie.__actions__.push({func:ca,args:[B],thisArg:r}),new tr(ie,Y)}return ne&&me?n.apply(this,A):(ie=this.thru(B),ne?c?ie.value()[0]:ie.value():ie)})}),Qt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ko[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",c=/^(?:pop|shift)$/.test(n);g.prototype[n]=function(){var m=arguments;if(c&&!this.__chain__){var b=this.value();return o.apply(de(b)?b:[],m)}return this[u](function(_){return o.apply(de(_)?_:[],m)})}}),Sr(_e.prototype,function(n,o){var u=g[o];if(u){var c=u.name+"";Le.call(oi,c)||(oi[c]=[]),oi[c].push({name:o,func:u})}}),oi[ia(r,P).name]=[{name:"wrapper",func:r}],_e.prototype.clone=L0,_e.prototype.reverse=$0,_e.prototype.value=D0,g.prototype.at=cb,g.prototype.chain=db,g.prototype.commit=pb,g.prototype.next=hb,g.prototype.plant=mb,g.prototype.reverse=gb,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=yb,g.prototype.first=g.prototype.head,Pi&&(g.prototype[Pi]=vb),g},ri=p0();On?((On.exports=ri)._=ri,Ws._=ri):ct._=ri}).call(kn)})(ts,ts.exports);var tt=ts.exports;const Jl={FdSave:vt.FdSave,FdWarningDanger:vt.FdWarningDanger,FdInfoCircle:vt.FdInfoCircle,FdInfoBold:vt.FdInfoBold};var Rf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Rf||{}),Hn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Hn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const Pm={[Hn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Hn.DANGER]:{icon:"red-500",button:"primary-dark"},[Hn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},_l=({color:e=Hn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=Pm[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-white hover:text-${s}`;return $.jsx("button",{autoFocus:i,className:mt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},vR=({name:e,color:t=Hn.PRIMARY,className:r="w-10 h-10"})=>{const i=Jl[e]||Jl.FdInfoCircle,a=`text-${Pm[t].icon}`;return $.jsx(i,{className:mt(r,a)})},mR=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:f,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:S})=>{const v=y=>{h({id:e,reason:y})};D.useEffect(()=>{function y(E){E.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const w=tt.merge(tt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),x=(y,E)=>{var C;if(!(f!=null&&f.toggles))return;const P=tt.cloneDeep(f);(C=P.toggles)!=null&&C[y]&&(P.toggles[y].value=E),S({id:e,views:P})};return ho.createPortal($.jsx(es,{appear:!0,show:!0,as:D.Fragment,children:$.jsx("div",{className:mt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>v(vi.CANCELED),children:$.jsx(es.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[i?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(vR,{name:i,color:s})}):null,$.jsx(gR,{condition:t,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),$.jsx("div",{className:"text-xs text-white",children:tt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(Tm,{size:"xs",value:y.value,onChange:E=>x(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(yR,{warnings:w}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===Rf.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(_l,{autoFocus:!0,color:s,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),$.jsx(_l,{color:s,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):$.jsx(_l,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),document.querySelector("body"))},gR=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,yR=e=>e.warnings?$.jsx(es,{appear:!0,show:!!e.warnings.length,as:D.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>$.jsx(es.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(vt.FdWarningDanger,{className:mt({"h-3 w-3":!0,"text-orange-400":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function wR(e,t){const r=D.useRef(!1);D.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Ol=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Al(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Zi(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Rm(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 Im(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 bR(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 uo={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,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,"-":Ol?173:189,"=":Ol?61:187,";":Ol?59:186,"'":222,"[":219,"]":221,"\\":220},Mr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ba={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ht={16:!1,18:!1,17:!1,91:!1},Ze={};for(let e=1;e<20;e++)uo["f".concat(e)]=111+e;let Be=[],to=null,Mm="all";const qr=new Map,Ao=e=>uo[e.toLowerCase()]||Mr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),SR=e=>Object.keys(uo).find(t=>uo[t]===e),ER=e=>Object.keys(Mr).find(t=>Mr[t]===e);function Fm(e){Mm=e||"all"}function lo(){return Mm||"all"}function xR(){return Be.slice(0)}function _R(){return Be.map(e=>SR(e)||ER(e)||String.fromCharCode(e))}function OR(){const e=[];return Object.keys(Ze).forEach(t=>{Ze[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(f=>Ao(f))})})}),e}function AR(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 TR(e){return typeof e=="string"&&(e=Ao(e)),Be.indexOf(e)!==-1}function CR(e,t){let r,i;e||(e=lo());for(const a in Ze)if(Object.prototype.hasOwnProperty.call(Ze,a))for(r=Ze[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:f}=l;return If(f)}):i++;lo()===e&&Fm(t||"all")}function PR(e){let t=e.keyCode||e.which||e.charCode;const r=Be.indexOf(t);if(r>=0&&Be.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Be.splice(0,Be.length),(t===93||t===224)&&(t=91),t in ht){ht[t]=!1;for(const i in Mr)Mr[i]===t&&(wr[i]=!1)}}function Lm(e){if(typeof e>"u")Object.keys(Ze).forEach(a=>{Array.isArray(Ze[a])&&Ze[a].forEach(s=>$a(s)),delete Ze[a]}),If(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&$a(a)});else if(typeof e=="object")e.key&&$a(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=""),$a({key:e,scope:a,method:s,splitKey:"+"})}}const $a=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Im(t).forEach(l=>{const f=l.split(a),d=f.length,p=f[d-1],h=p==="*"?"*":Ao(p);if(!Ze[h])return;r||(r=lo());const S=d>1?Rm(Mr,f):[],v=[];Ze[h]=Ze[h].filter(w=>{const y=(i?w.method===i:!0)&&w.scope===r&&bR(w.mods,S);return y&&v.push(w.element),!y}),v.forEach(w=>If(w))})};function kh(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 ht)Object.prototype.hasOwnProperty.call(ht,s)&&(!ht[s]&&t.mods.indexOf(+s)>-1||ht[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!ht[16]&&!ht[18]&&!ht[17]&&!ht[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Be),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Nh(e,t){const r=Ze["*"];let i=e.keyCode||e.which||e.charCode;if(!wr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Be.indexOf(i)===-1&&i!==229&&Be.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(f=>{const d=Ba[f];e[f]&&Be.indexOf(d)===-1?Be.push(d):!e[f]&&Be.indexOf(d)>-1?Be.splice(Be.indexOf(d),1):f==="metaKey"&&e[f]&&(Be=Be.filter(p=>p in Ba||p===i))}),i in ht){ht[i]=!0;for(const f in Mr)Mr[f]===i&&(wr[f]=!0);if(!r)return}for(const f in ht)Object.prototype.hasOwnProperty.call(ht,f)&&(ht[f]=e[Ba[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Be.indexOf(17)===-1&&Be.push(17),Be.indexOf(18)===-1&&Be.push(18),ht[17]=!0,ht[18]=!0);const a=lo();if(r)for(let f=0;f<r.length;f++)r[f].scope===a&&(e.type==="keydown"&&r[f].keydown||e.type==="keyup"&&r[f].keyup)&&kh(e,r[f],a,t);if(!(i in Ze))return;const s=Ze[i],l=s.length;for(let f=0;f<l;f++)if((e.type==="keydown"&&s[f].keydown||e.type==="keyup"&&s[f].keyup)&&s[f].key){const d=s[f],{splitKey:p}=d,h=d.key.split(p),S=[];for(let v=0;v<h.length;v++)S.push(Ao(h[v]));S.sort().join("")===Be.sort().join("")&&kh(e,d,a,t)}}function wr(e,t,r){Be=[];const i=Im(e);let a=[],s="all",l=document,f=0,d=!1,p=!0,h="+",S=!1,v=!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&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(S=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey),t.single===!0&&(v=!0)),typeof t=="string"&&(s=t),v&&Lm(e,s);f<i.length;f++)e=i[f].split(h),a=[],e.length>1&&(a=Rm(Mr,e)),e=e[e.length-1],e=e==="*"?"*":Ao(e),e in Ze||(Ze[e]=[]),Ze[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[f],method:r,key:i[f],splitKey:h,element:l});if(typeof l<"u"&&window){if(!qr.has(l)){const w=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Nh(y,l)},x=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Nh(y,l),PR(y)};qr.set(l,{keydownListener:w,keyupListenr:x,capture:S}),Al(l,"keydown",w,S),Al(l,"keyup",x,S)}if(!to){const w=()=>{Be=[]};to={listener:w,capture:S},Al(window,"focus",w,S)}}}function RR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ze).forEach(r=>{Ze[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function If(e){const t=Object.values(Ze).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=qr.get(e)||{};i&&a&&(Zi(e,"keyup",a,s),Zi(e,"keydown",i,s),qr.delete(e))}if((t.length<=0||qr.size<=0)&&(Object.keys(qr).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:f}=qr.get(a)||{};s&&l&&(Zi(a,"keyup",l,f),Zi(a,"keydown",s,f),qr.delete(a))}),qr.clear(),Object.keys(Ze).forEach(a=>delete Ze[a]),to)){const{listener:a,capture:s}=to;Zi(window,"focus",a,s),to=null}}const Tl={getPressedKeyString:_R,setScope:Fm,getScope:lo,deleteScope:CR,getPressedKeyCodes:xR,getAllKeyCodes:OR,isPressed:TR,filter:AR,trigger:RR,unbind:Lm,keyMap:uo,modifier:Mr,modifierMap:Ba};for(const e in Tl)Object.prototype.hasOwnProperty.call(Tl,e)&&(wr[e]=Tl[e]);if(typeof window<"u"){const e=window.hotkeys;wr.noConflict=t=>(t&&window.hotkeys===wr&&(window.hotkeys=e),wr),window.hotkeys=wr}wr.filter=()=>!0;function IR(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=D.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>t(f,d))},i),l=()=>{wr.unbind(e,s)};D.useEffect(()=>(wr(e,r,s),l),[e,r,s])}const MR=e=>{const t=D.useRef(null);return D.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 FR(e){const t=D.useRef();return D.useEffect(()=>{t.current=e},[e]),t.current}function LR(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e},[e]),t}function $R(e){const t=D.useRef(null);return D.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function DR(e){const[t,r]=D.useState(e),i=(s,l)=>{r(f=>({...f,features:{...f.features,[s]:{enabled:l}}}))},a=D.useCallback((...s)=>s.every(l=>{var f;return(f=t.features[l])==null?void 0:f.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const $m=D.createContext(""),kR=e=>$.jsx($m.Provider,{value:e.value,children:e.children}),NR=()=>{const e=D.useContext($m);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function jR(e){const[t,r]=D.useState(e),i=D.useMemo(()=>WR(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function WR(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${tt.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const zR=(e,t,r={})=>{r={timeout:200,...r};const i=D.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return D.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 Yr(e){return typeof e=="function"}function Dm(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 Cl=Dm(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
150
+ }`;var me=wp(function(){return Re(S,J+"return "+B).apply(r,_)});if(me.source=B,Lu(me))throw me;return me}function PE(n){return Ie(n).toLowerCase()}function RE(n){return Ie(n).toUpperCase()}function IE(n,o,u){if(n=Ie(n),n&&(u||o===r))return Cc(n);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=dr(o),S=Pc(c,m),_=Rc(c,m)+1;return un(c,S,_).join("")}function ME(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.slice(0,Mc(n)+1);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Rc(c,dr(o))+1;return un(c,0,m).join("")}function FE(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.replace(Ls,"");if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Pc(c,dr(o));return un(c,m).join("")}function LE(n,o){var u=V,c=ee;if(qe(o)){var m="separator"in o?o.separator:m;u="length"in o?he(o.length):u,c="omission"in o?Ht(o.omission):c}n=Ie(n);var S=n.length;if(ei(n)){var _=dr(n);S=_.length}if(u>=S)return n;var T=u-ti(c);if(T<1)return c;var M=_?un(_,0,T).join(""):n.slice(0,T);if(m===r)return M+c;if(_&&(T+=M.length-T),$u(m)){if(n.slice(T).search(m)){var j,W=M;for(m.global||(m=Xs(m.source,Ie(Vf.exec(m))+"g")),m.lastIndex=0;j=m.exec(W);)var B=j.index;M=M.slice(0,B===r?T:B)}}else if(n.indexOf(Ht(m),T)!=T){var Y=M.lastIndexOf(m);Y>-1&&(M=M.slice(0,Y))}return M+c}function $E(n){return n=Ie(n),n&&Zg.test(n)?n.replace(Gf,f0):n}var DE=ui(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),Nu=bd("toUpperCase");function yp(n,o,u){return n=Ie(n),o=u?r:o,o===r?o0(n)?p0(n):Vy(n):n.match(o)||[]}var wp=ye(function(n,o){try{return Ut(n,r,o)}catch(u){return Lu(u)?u:new fe(u)}}),kE=jr(function(n,o){return Qt(o,function(u){u=xr(u),kr(n,u,Mu(n[u],n))}),n});function NE(n){var o=n==null?0:n.length,u=te();return n=o?ze(n,function(c){if(typeof c[1]!="function")throw new er(l);return[u(c[0]),c[1]]}):[],ye(function(c){for(var m=-1;++m<o;){var S=n[m];if(Ut(S[0],this,c))return Ut(S[1],this,c)}})}function jE(n){return f1(rr(n,b))}function ju(n){return function(){return n}}function WE(n,o){return n==null||n!==n?o:n}var zE=Ed(),UE=Ed(!0);function kt(n){return n}function Wu(n){return Jc(typeof n=="function"?n:rr(n,b))}function BE(n){return ed(rr(n,b))}function HE(n,o){return td(n,rr(o,b))}var qE=ye(function(n,o){return function(u){return Di(u,n,o)}}),ZE=ye(function(n,o){return function(u){return Di(n,u,o)}});function zu(n,o,u){var c=ut(o),m=Qo(o,c);u==null&&!(qe(o)&&(m.length||!c.length))&&(u=o,o=n,n=this,m=Qo(o,ut(o)));var S=!(qe(u)&&"chain"in u)||!!u.chain,_=zr(n);return Qt(m,function(T){var M=o[T];n[T]=M,_&&(n.prototype[T]=function(){var j=this.__chain__;if(S||j){var W=n(this.__wrapped__),B=W.__actions__=Lt(this.__actions__);return B.push({func:M,args:arguments,thisArg:n}),W.__chain__=j,W}return M.apply(n,tn([this.value()],arguments))})}),n}function GE(){return dt._===this&&(dt._=w0),this}function Uu(){}function KE(n){return n=he(n),ye(function(o){return rd(o,n)})}var YE=wu(ze),VE=wu(xc),XE=wu(Hs);function bp(n){return Au(n)?qs(xr(n)):T1(n)}function JE(n){return function(o){return n==null?r:Rn(n,o)}}var QE=_d(),ex=_d(!0);function Bu(){return[]}function Hu(){return!1}function tx(){return{}}function rx(){return""}function nx(){return!0}function ix(n,o){if(n=he(n),n<1||n>Ge)return[];var u=G,c=wt(n,G);o=te(o),n-=G;for(var m=Ks(c,o);++u<n;)o(u);return m}function ox(n){return de(n)?ze(n,xr):qt(n)?[n]:Lt(Wd(Ie(n)))}function ax(n){var o=++g0;return Ie(n)+o}var sx=oa(function(n,o){return n+o},0),ux=bu("ceil"),lx=oa(function(n,o){return n/o},1),fx=bu("floor");function cx(n){return n&&n.length?Jo(n,kt,ou):r}function dx(n,o){return n&&n.length?Jo(n,te(o,2),ou):r}function px(n){return Ac(n,kt)}function hx(n,o){return Ac(n,te(o,2))}function vx(n){return n&&n.length?Jo(n,kt,lu):r}function mx(n,o){return n&&n.length?Jo(n,te(o,2),lu):r}var gx=oa(function(n,o){return n*o},1),yx=bu("round"),wx=oa(function(n,o){return n-o},0);function bx(n){return n&&n.length?Gs(n,kt):0}function Sx(n,o){return n&&n.length?Gs(n,te(o,2)):0}return g.after=Bb,g.ary=Xd,g.assign=RS,g.assignIn=cp,g.assignInWith=ya,g.assignWith=IS,g.at=MS,g.before=Jd,g.bind=Mu,g.bindAll=kE,g.bindKey=Qd,g.castArray=tS,g.chain=Kd,g.chunk=fw,g.compact=cw,g.concat=dw,g.cond=NE,g.conforms=jE,g.constant=ju,g.countBy=bb,g.create=FS,g.curry=ep,g.curryRight=tp,g.debounce=rp,g.defaults=LS,g.defaultsDeep=$S,g.defer=Hb,g.delay=qb,g.difference=pw,g.differenceBy=hw,g.differenceWith=vw,g.drop=mw,g.dropRight=gw,g.dropRightWhile=yw,g.dropWhile=ww,g.fill=bw,g.filter=Eb,g.flatMap=Ob,g.flatMapDeep=Ab,g.flatMapDepth=Tb,g.flatten=Hd,g.flattenDeep=Sw,g.flattenDepth=Ew,g.flip=Zb,g.flow=zE,g.flowRight=UE,g.fromPairs=xw,g.functions=US,g.functionsIn=BS,g.groupBy=Cb,g.initial=Ow,g.intersection=Aw,g.intersectionBy=Tw,g.intersectionWith=Cw,g.invert=qS,g.invertBy=ZS,g.invokeMap=Rb,g.iteratee=Wu,g.keyBy=Ib,g.keys=ut,g.keysIn=Dt,g.map=da,g.mapKeys=KS,g.mapValues=YS,g.matches=BE,g.matchesProperty=HE,g.memoize=ha,g.merge=VS,g.mergeWith=dp,g.method=qE,g.methodOf=ZE,g.mixin=zu,g.negate=va,g.nthArg=KE,g.omit=XS,g.omitBy=JS,g.once=Gb,g.orderBy=Mb,g.over=YE,g.overArgs=Kb,g.overEvery=VE,g.overSome=XE,g.partial=Fu,g.partialRight=np,g.partition=Fb,g.pick=QS,g.pickBy=pp,g.property=bp,g.propertyOf=JE,g.pull=Mw,g.pullAll=Zd,g.pullAllBy=Fw,g.pullAllWith=Lw,g.pullAt=$w,g.range=QE,g.rangeRight=ex,g.rearg=Yb,g.reject=Db,g.remove=Dw,g.rest=Vb,g.reverse=Ru,g.sampleSize=Nb,g.set=tE,g.setWith=rE,g.shuffle=jb,g.slice=kw,g.sortBy=Ub,g.sortedUniq=Hw,g.sortedUniqBy=qw,g.split=OE,g.spread=Xb,g.tail=Zw,g.take=Gw,g.takeRight=Kw,g.takeRightWhile=Yw,g.takeWhile=Vw,g.tap=cb,g.throttle=Jb,g.thru=ca,g.toArray=up,g.toPairs=hp,g.toPairsIn=vp,g.toPath=ox,g.toPlainObject=fp,g.transform=nE,g.unary=Qb,g.union=Xw,g.unionBy=Jw,g.unionWith=Qw,g.uniq=eb,g.uniqBy=tb,g.uniqWith=rb,g.unset=iE,g.unzip=Iu,g.unzipWith=Gd,g.update=oE,g.updateWith=aE,g.values=ci,g.valuesIn=sE,g.without=nb,g.words=yp,g.wrap=eS,g.xor=ib,g.xorBy=ob,g.xorWith=ab,g.zip=sb,g.zipObject=ub,g.zipObjectDeep=lb,g.zipWith=fb,g.entries=hp,g.entriesIn=vp,g.extend=cp,g.extendWith=ya,zu(g,g),g.add=sx,g.attempt=wp,g.camelCase=cE,g.capitalize=mp,g.ceil=ux,g.clamp=uE,g.clone=rS,g.cloneDeep=iS,g.cloneDeepWith=oS,g.cloneWith=nS,g.conformsTo=aS,g.deburr=gp,g.defaultTo=WE,g.divide=lx,g.endsWith=dE,g.eq=hr,g.escape=pE,g.escapeRegExp=hE,g.every=Sb,g.find=xb,g.findIndex=Ud,g.findKey=DS,g.findLast=_b,g.findLastIndex=Bd,g.findLastKey=kS,g.floor=fx,g.forEach=Yd,g.forEachRight=Vd,g.forIn=NS,g.forInRight=jS,g.forOwn=WS,g.forOwnRight=zS,g.get=Du,g.gt=sS,g.gte=uS,g.has=HS,g.hasIn=ku,g.head=qd,g.identity=kt,g.includes=Pb,g.indexOf=_w,g.inRange=lE,g.invoke=GS,g.isArguments=Fn,g.isArray=de,g.isArrayBuffer=lS,g.isArrayLike=$t,g.isArrayLikeObject=Ve,g.isBoolean=fS,g.isBuffer=ln,g.isDate=cS,g.isElement=dS,g.isEmpty=pS,g.isEqual=hS,g.isEqualWith=vS,g.isError=Lu,g.isFinite=mS,g.isFunction=zr,g.isInteger=ip,g.isLength=ma,g.isMap=op,g.isMatch=gS,g.isMatchWith=yS,g.isNaN=wS,g.isNative=bS,g.isNil=ES,g.isNull=SS,g.isNumber=ap,g.isObject=qe,g.isObjectLike=Ke,g.isPlainObject=Ui,g.isRegExp=$u,g.isSafeInteger=xS,g.isSet=sp,g.isString=ga,g.isSymbol=qt,g.isTypedArray=fi,g.isUndefined=_S,g.isWeakMap=OS,g.isWeakSet=AS,g.join=Pw,g.kebabCase=vE,g.last=ir,g.lastIndexOf=Rw,g.lowerCase=mE,g.lowerFirst=gE,g.lt=TS,g.lte=CS,g.max=cx,g.maxBy=dx,g.mean=px,g.meanBy=hx,g.min=vx,g.minBy=mx,g.stubArray=Bu,g.stubFalse=Hu,g.stubObject=tx,g.stubString=rx,g.stubTrue=nx,g.multiply=gx,g.nth=Iw,g.noConflict=GE,g.noop=Uu,g.now=pa,g.pad=yE,g.padEnd=wE,g.padStart=bE,g.parseInt=SE,g.random=fE,g.reduce=Lb,g.reduceRight=$b,g.repeat=EE,g.replace=xE,g.result=eE,g.round=yx,g.runInContext=R,g.sample=kb,g.size=Wb,g.snakeCase=_E,g.some=zb,g.sortedIndex=Nw,g.sortedIndexBy=jw,g.sortedIndexOf=Ww,g.sortedLastIndex=zw,g.sortedLastIndexBy=Uw,g.sortedLastIndexOf=Bw,g.startCase=AE,g.startsWith=TE,g.subtract=wx,g.sum=bx,g.sumBy=Sx,g.template=CE,g.times=ix,g.toFinite=Ur,g.toInteger=he,g.toLength=lp,g.toLower=PE,g.toNumber=or,g.toSafeInteger=PS,g.toString=Ie,g.toUpper=RE,g.trim=IE,g.trimEnd=ME,g.trimStart=FE,g.truncate=LE,g.unescape=$E,g.uniqueId=ax,g.upperCase=DE,g.upperFirst=Nu,g.each=Yd,g.eachRight=Vd,g.first=qd,zu(g,function(){var n={};return Sr(g,function(o,u){Le.call(g.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),g.VERSION=i,Qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){g[n].placeholder=g}),Qt(["drop","take"],function(n,o){_e.prototype[n]=function(u){u=u===r?1:nt(he(u),0);var c=this.__filtered__&&!o?new _e(this):this.clone();return c.__filtered__?c.__takeCount__=wt(u,c.__takeCount__):c.__views__.push({size:wt(u,G),type:n+(c.__dir__<0?"Right":"")}),c},_e.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Qt(["filter","map","takeWhile"],function(n,o){var u=o+1,c=u==Ae||u==ve;_e.prototype[n]=function(m){var S=this.clone();return S.__iteratees__.push({iteratee:te(m,3),type:u}),S.__filtered__=S.__filtered__||c,S}}),Qt(["head","last"],function(n,o){var u="take"+(o?"Right":"");_e.prototype[n]=function(){return this[u](1).value()[0]}}),Qt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");_e.prototype[n]=function(){return this.__filtered__?new _e(this):this[u](1)}}),_e.prototype.compact=function(){return this.filter(kt)},_e.prototype.find=function(n){return this.filter(n).head()},_e.prototype.findLast=function(n){return this.reverse().find(n)},_e.prototype.invokeMap=ye(function(n,o){return typeof n=="function"?new _e(this):this.map(function(u){return Di(u,n,o)})}),_e.prototype.reject=function(n){return this.filter(va(te(n)))},_e.prototype.slice=function(n,o){n=he(n);var u=this;return u.__filtered__&&(n>0||o<0)?new _e(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=he(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},_e.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},_e.prototype.toArray=function(){return this.take(G)},Sr(_e.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),c=/^(?:head|last)$/.test(o),m=g[c?"take"+(o=="last"?"Right":""):o],S=c||/^find/.test(o);m&&(g.prototype[o]=function(){var _=this.__wrapped__,T=c?[1]:arguments,M=_ instanceof _e,j=T[0],W=M||de(_),B=function(Ee){var Oe=m.apply(g,tn([Ee],T));return c&&Y?Oe[0]:Oe};W&&u&&typeof j=="function"&&j.length!=1&&(M=W=!1);var Y=this.__chain__,J=!!this.__actions__.length,ne=S&&!Y,me=M&&!J;if(!S&&W){_=me?_:new _e(this);var ie=n.apply(_,T);return ie.__actions__.push({func:ca,args:[B],thisArg:r}),new tr(ie,Y)}return ne&&me?n.apply(this,T):(ie=this.thru(B),ne?c?ie.value()[0]:ie.value():ie)})}),Qt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ko[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",c=/^(?:pop|shift)$/.test(n);g.prototype[n]=function(){var m=arguments;if(c&&!this.__chain__){var S=this.value();return o.apply(de(S)?S:[],m)}return this[u](function(_){return o.apply(de(_)?_:[],m)})}}),Sr(_e.prototype,function(n,o){var u=g[o];if(u){var c=u.name+"";Le.call(oi,c)||(oi[c]=[]),oi[c].push({name:o,func:u})}}),oi[ia(r,A).name]=[{name:"wrapper",func:r}],_e.prototype.clone=$0,_e.prototype.reverse=D0,_e.prototype.value=k0,g.prototype.at=db,g.prototype.chain=pb,g.prototype.commit=hb,g.prototype.next=vb,g.prototype.plant=gb,g.prototype.reverse=yb,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=wb,g.prototype.first=g.prototype.head,Pi&&(g.prototype[Pi]=mb),g},ri=h0();On?((On.exports=ri)._=ri,Ws._=ri):dt._=ri}).call(kn)})(ts,ts.exports);var tt=ts.exports;const Jl={FdSave:mt.FdSave,FdWarningDanger:mt.FdWarningDanger,FdInfoCircle:mt.FdInfoCircle,FdInfoBold:mt.FdInfoBold};var Rf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Rf||{}),Hn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Hn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const Pm={[Hn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Hn.DANGER]:{icon:"red-500",button:"primary-dark"},[Hn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},_l=({color:e=Hn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=Pm[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-white hover:text-${s}`;return $.jsx("button",{autoFocus:i,className:ft("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},mR=({name:e,color:t=Hn.PRIMARY,className:r="w-8 h-8"})=>{const i=Jl[e]||Jl.FdInfoCircle,a=`text-${Pm[t].icon}`;return $.jsx(i,{className:ft(r,a)})},gR=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:f,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:b})=>{const v=y=>{h({id:e,reason:y})};D.useEffect(()=>{function y(x){x.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const w=tt.merge(tt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),E=(y,x)=>{var I;if(!(f!=null&&f.toggles))return;const A=tt.cloneDeep(f);(I=A.toggles)!=null&&I[y]&&(A.toggles[y].value=x),b({id:e,views:A})};return ho.createPortal($.jsx(es,{appear:!0,show:!0,as:D.Fragment,children:$.jsx("div",{className:ft("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>v(vi.CANCELED),children:$.jsx(es.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(mR,{name:i,color:s})}):null,$.jsx(yR,{condition:t,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),$.jsx("div",{className:"text-xs text-white",children:tt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(Tm,{size:"xs",value:y.value,onChange:x=>E(y.key,x)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(wR,{warnings:w}),$.jsx("div",{className:"flex items-center gap-4",children:a===Rf.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(_l,{autoFocus:!0,color:s,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),$.jsx(_l,{color:s,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):$.jsx(_l,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),document.querySelector("body"))},yR=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,wR=e=>e.warnings?$.jsx(es,{appear:!0,show:!!e.warnings.length,as:D.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>$.jsx(es.Child,{as:D.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(mt.FdWarningDanger,{className:ft({"h-3 w-3":!0,"text-orange-400":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function bR(e,t){const r=D.useRef(!1);D.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Ol=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Al(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Zi(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Rm(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 Im(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 SR(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 uo={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,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,"-":Ol?173:189,"=":Ol?61:187,";":Ol?59:186,"'":222,"[":219,"]":221,"\\":220},Mr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ba={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},vt={16:!1,18:!1,17:!1,91:!1},Ze={};for(let e=1;e<20;e++)uo["f".concat(e)]=111+e;let Be=[],to=null,Mm="all";const qr=new Map,Ao=e=>uo[e.toLowerCase()]||Mr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ER=e=>Object.keys(uo).find(t=>uo[t]===e),xR=e=>Object.keys(Mr).find(t=>Mr[t]===e);function Fm(e){Mm=e||"all"}function lo(){return Mm||"all"}function _R(){return Be.slice(0)}function OR(){return Be.map(e=>ER(e)||xR(e)||String.fromCharCode(e))}function AR(){const e=[];return Object.keys(Ze).forEach(t=>{Ze[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(f=>Ao(f))})})}),e}function TR(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 CR(e){return typeof e=="string"&&(e=Ao(e)),Be.indexOf(e)!==-1}function PR(e,t){let r,i;e||(e=lo());for(const a in Ze)if(Object.prototype.hasOwnProperty.call(Ze,a))for(r=Ze[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:f}=l;return If(f)}):i++;lo()===e&&Fm(t||"all")}function RR(e){let t=e.keyCode||e.which||e.charCode;const r=Be.indexOf(t);if(r>=0&&Be.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Be.splice(0,Be.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in Mr)Mr[i]===t&&(wr[i]=!1)}}function Lm(e){if(typeof e>"u")Object.keys(Ze).forEach(a=>{Array.isArray(Ze[a])&&Ze[a].forEach(s=>$a(s)),delete Ze[a]}),If(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&$a(a)});else if(typeof e=="object")e.key&&$a(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=""),$a({key:e,scope:a,method:s,splitKey:"+"})}}const $a=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Im(t).forEach(l=>{const f=l.split(a),d=f.length,p=f[d-1],h=p==="*"?"*":Ao(p);if(!Ze[h])return;r||(r=lo());const b=d>1?Rm(Mr,f):[],v=[];Ze[h]=Ze[h].filter(w=>{const y=(i?w.method===i:!0)&&w.scope===r&&SR(w.mods,b);return y&&v.push(w.element),!y}),v.forEach(w=>If(w))})};function kh(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 vt)Object.prototype.hasOwnProperty.call(vt,s)&&(!vt[s]&&t.mods.indexOf(+s)>-1||vt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Be),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Nh(e,t){const r=Ze["*"];let i=e.keyCode||e.which||e.charCode;if(!wr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Be.indexOf(i)===-1&&i!==229&&Be.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(f=>{const d=Ba[f];e[f]&&Be.indexOf(d)===-1?Be.push(d):!e[f]&&Be.indexOf(d)>-1?Be.splice(Be.indexOf(d),1):f==="metaKey"&&e[f]&&(Be=Be.filter(p=>p in Ba||p===i))}),i in vt){vt[i]=!0;for(const f in Mr)Mr[f]===i&&(wr[f]=!0);if(!r)return}for(const f in vt)Object.prototype.hasOwnProperty.call(vt,f)&&(vt[f]=e[Ba[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Be.indexOf(17)===-1&&Be.push(17),Be.indexOf(18)===-1&&Be.push(18),vt[17]=!0,vt[18]=!0);const a=lo();if(r)for(let f=0;f<r.length;f++)r[f].scope===a&&(e.type==="keydown"&&r[f].keydown||e.type==="keyup"&&r[f].keyup)&&kh(e,r[f],a,t);if(!(i in Ze))return;const s=Ze[i],l=s.length;for(let f=0;f<l;f++)if((e.type==="keydown"&&s[f].keydown||e.type==="keyup"&&s[f].keyup)&&s[f].key){const d=s[f],{splitKey:p}=d,h=d.key.split(p),b=[];for(let v=0;v<h.length;v++)b.push(Ao(h[v]));b.sort().join("")===Be.sort().join("")&&kh(e,d,a,t)}}function wr(e,t,r){Be=[];const i=Im(e);let a=[],s="all",l=document,f=0,d=!1,p=!0,h="+",b=!1,v=!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&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(b=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey),t.single===!0&&(v=!0)),typeof t=="string"&&(s=t),v&&Lm(e,s);f<i.length;f++)e=i[f].split(h),a=[],e.length>1&&(a=Rm(Mr,e)),e=e[e.length-1],e=e==="*"?"*":Ao(e),e in Ze||(Ze[e]=[]),Ze[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[f],method:r,key:i[f],splitKey:h,element:l});if(typeof l<"u"&&window){if(!qr.has(l)){const w=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Nh(y,l)},E=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Nh(y,l),RR(y)};qr.set(l,{keydownListener:w,keyupListenr:E,capture:b}),Al(l,"keydown",w,b),Al(l,"keyup",E,b)}if(!to){const w=()=>{Be=[]};to={listener:w,capture:b},Al(window,"focus",w,b)}}}function IR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ze).forEach(r=>{Ze[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function If(e){const t=Object.values(Ze).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=qr.get(e)||{};i&&a&&(Zi(e,"keyup",a,s),Zi(e,"keydown",i,s),qr.delete(e))}if((t.length<=0||qr.size<=0)&&(Object.keys(qr).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:f}=qr.get(a)||{};s&&l&&(Zi(a,"keyup",l,f),Zi(a,"keydown",s,f),qr.delete(a))}),qr.clear(),Object.keys(Ze).forEach(a=>delete Ze[a]),to)){const{listener:a,capture:s}=to;Zi(window,"focus",a,s),to=null}}const Tl={getPressedKeyString:OR,setScope:Fm,getScope:lo,deleteScope:PR,getPressedKeyCodes:_R,getAllKeyCodes:AR,isPressed:CR,filter:TR,trigger:IR,unbind:Lm,keyMap:uo,modifier:Mr,modifierMap:Ba};for(const e in Tl)Object.prototype.hasOwnProperty.call(Tl,e)&&(wr[e]=Tl[e]);if(typeof window<"u"){const e=window.hotkeys;wr.noConflict=t=>(t&&window.hotkeys===wr&&(window.hotkeys=e),wr),window.hotkeys=wr}wr.filter=()=>!0;function MR(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=D.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>t(f,d))},i),l=()=>{wr.unbind(e,s)};D.useEffect(()=>(wr(e,r,s),l),[e,r,s])}const FR=e=>{const t=D.useRef(null);return D.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 LR(e){const t=D.useRef();return D.useEffect(()=>{t.current=e},[e]),t.current}function $R(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e},[e]),t}function DR(e){const t=D.useRef(null);return D.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function kR(e){const[t,r]=D.useState(e),i=(s,l)=>{r(f=>({...f,features:{...f.features,[s]:{enabled:l}}}))},a=D.useCallback((...s)=>s.every(l=>{var f;return(f=t.features[l])==null?void 0:f.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const $m=D.createContext(""),NR=e=>$.jsx($m.Provider,{value:e.value,children:e.children}),jR=()=>{const e=D.useContext($m);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function WR(e){const[t,r]=D.useState(e),i=D.useMemo(()=>zR(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function zR(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${tt.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const UR=(e,t,r={})=>{r={timeout:200,...r};const i=D.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return D.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 Yr(e){return typeof e=="function"}function Dm(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 Cl=Dm(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
151
151
  `+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
152
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Ql(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ys=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 f=Nl(l),d=f.next();!d.done;d=f.next()){var p=d.value;p.remove(this)}}catch(y){t={error:y}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(Yr(h))try{h()}catch(y){s=y instanceof Cl?y.errors:[y]}var S=this._finalizers;if(S){this._finalizers=null;try{for(var v=Nl(S),w=v.next();!w.done;w=v.next()){var x=w.value;try{jh(x)}catch(y){s=s??[],y instanceof Cl?s=Wl(Wl([],jl(s)),jl(y.errors)):s.push(y)}}}catch(y){i={error:y}}finally{try{w&&!w.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}if(s)throw new Cl(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)jh(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)&&Ql(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ql(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),km=ys.EMPTY;function Nm(e){return e instanceof ys||e&&"closed"in e&&Yr(e.remove)&&Yr(e.add)&&Yr(e.unsubscribe)}function jh(e){Yr(e)?e():e.unsubscribe()}var UR={Promise:void 0},BR={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Wl([e,t],jl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function HR(e){BR.setTimeout(function(){throw e})}function Wh(){}function Ha(e){e()}var jm=function(e){ls(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Nm(r)&&r.add(i)):i.destination=GR,i}return t.create=function(r,i,a){return new ef(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}(ys),qR=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){Da(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Da(i)}else Da(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Da(r)}},e}(),ef=function(e){ls(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Yr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new qR(l),s}return t}(jm);function Da(e){HR(e)}function ZR(e){throw e}var GR={closed:!0,next:Wh,error:ZR,complete:Wh},KR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function YR(e){return e}function VR(e){return e.length===0?YR:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var zh=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=JR(t)?t:new ef(t,r,i);return Ha(function(){var l=a,f=l.operator,d=l.source;s.add(f?f.call(s,d):d?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=Uh(r),new r(function(a,s){var l=new ef({next:function(f){try{t(f)}catch(d){s(d),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[KR]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return VR(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Uh(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 Uh(e){var t;return(t=e??UR.Promise)!==null&&t!==void 0?t:Promise}function XR(e){return e&&Yr(e.next)&&Yr(e.error)&&Yr(e.complete)}function JR(e){return e&&e instanceof jm||XR(e)&&Nm(e)}var QR=Dm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vn=function(e){ls(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 Bh(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new QR},t.prototype.next=function(r){var i=this;Ha(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=Nl(i.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(r)}}catch(p){a={error:p}}finally{try{f&&!f.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Ha(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;Ha(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,f=a.observers;return s||l?km:(this.currentObservers=null,f.push(r),new ys(function(){i.currentObservers=null,Ql(f,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 zh;return r.source=this,r},t.create=function(r,i){return new Bh(r,i)},t}(zh),Bh=function(e){ls(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:km},t}(Vn),Wm=(e=>(e.RELOAD="reload",e))(Wm||{}),zm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(zm||{});const eI=new Vn,tI=new Vn,Um=new Vn;var Bm=(e=>(e.SAVE_ALL="save-all",e))(Bm||{});const rI=new Vn;var Hm=(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))(Hm||{});const nI=new Vn;var qm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(qm||{});const iI=new Vn,Mf=31;var Ff=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Mf} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Ff||{});function Zm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Mf)throw new Error(Ff.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))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(e))throw new Error("Invalid name");return!0}function oI(e){if(!e)return null;if(typeof e=="string")try{Zm(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)||!tt.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!tt.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 ws(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const wn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ur=(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.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ur||{}),Xn=(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))(Xn||{}),$f=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))($f||{});const Gm="roles.json",Km="qodlyApp.json",sI="model.4DModel",Ym="HTTPHandlers.json";function Vm(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ur.MODEL;case r==="WebForm":return ur.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===wn.METHODS):return ur.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wn.CLASSES):return ur.CLASS;case e===Gm:return ur.ROLES;case e===Ym:return ur.HTTP_HANDLERS;case e===Km:return ur.SETTINGS;default:return ur.TEXT}}function uI(e,t=!1){switch(e){case wn.REPORTS:case"report":return"QoDoc";case wn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wn.CLASSES:case wn.METHODS:return t?"4qs":"4dm";default:return""}}function lI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Xm{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 Jm(){const e=new Xm;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Qm=tt.curry((e,t,r)=>e&&tt.get(r,e)===t),fI=tt.curry((e,t,r)=>tt.get(r,e)!==t),cI=tt.curry((e,t)=>tt.get(t,"id")!==e),dI=tt.curry((e,t)=>tt.get(t,"id")===e),pI=tt.curry((e,t)=>tt.get(t,"path")===e);function hI(e="id",t,r){return r.findIndex(Qm(e,t))!==-1}function vI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function eg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function mI(e){return e.type==="object"}function tg(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function rg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!eg(e)}function gI(e){return tg(e)||rg(e)}function yI(e){return e.applyTo==="dataStore"}function wI(e){return e.applyTo==="dataClass"}function bI(e){return e.applyTo==="entity"}function SI(e){return e.applyTo==="entityCollection"}function EI(e){return e.type==="entity"}function xI(e){return e.type==="entitysel"}function ng(e){return e.dataType==="array"}function ig(e){return e.dataType==="object"}function og(e){return e.type==="scalar"}function _I(e){return ng(e)||ig(e)||og(e)}const OI=e=>e!=null&&e.type==="entity",AI=e=>e.type==="entitysel",TI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",CI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",PI=e=>e.type==="scalar"&&e.dataType==="date";function RI(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}var fo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(fo||{}),ag=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(ag||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const II={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function MI(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:fo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Df.table}},...i}}function sg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[fo.capable,fo.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 FI(e,t,r=!1){const i=tt.isString(t)?t:sg(t);if(!r&&ug(e))return e;const a=lg(e);return`//%attributes = ${i}\r
153
- ${a}`}function ug(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function lg(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const LI=()=>gf.uuid().replaceAll("-","").toUpperCase(),at="/rest/$designer",To="/rest/$designer-ext";function $I(...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 tf 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 De(e,t){const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const s=await r.json();a=new tf(e,r,s)}catch{a=new tf(e,r)}throw a.log(),a}return await r.json()}var Ye={},rf=Ye.ValidationError=function(t,r,i,a,s,l){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(d,p){return d+fg(p)},"instance")):a!==void 0&&(this.property=a),t&&(this.message=t),i){var f=i.$id||i.id;this.schema=f||i}r!==void 0&&(this.instance=r),this.name=s,this.argument=l,this.stack=this.toString()};rf.prototype.toString=function(){return this.property+" "+this.message};var bs=Ye.ValidatorResult=function(t,r,i,a){this.instance=t,this.schema=r,this.options=i,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=i&&i.throwError,this.throwFirst=i&&i.throwFirst,this.throwAll=i&&i.throwAll,this.disableFormat=i&&i.disableFormat===!0};bs.prototype.addError=function(t){var r;if(typeof t=="string")r=new rf(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");r=new rf(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(r),this.throwFirst)throw new Zn(this);if(this.throwError)throw r;return r};bs.prototype.importErrors=function(t){typeof t=="string"||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))};function DI(e,t){return t+": "+e.toString()+`
154
- `}bs.prototype.toString=function(t){return this.errors.map(DI).join("")};Object.defineProperty(bs.prototype,"valid",{get:function(){return!this.errors.length}});Ye.ValidatorResultError=Zn;function Zn(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Zn),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}Zn.prototype=new Error;Zn.prototype.constructor=Zn;Zn.prototype.name="Validation Error";var Hh=Ye.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};Hh.prototype=Object.create(Error.prototype,{constructor:{value:Hh,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var nf=Ye.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,f){return l+fg(f)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};nf.prototype.resolve=function(t){return cg(this.base,t)};nf.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=cg(this.base,a||"");var l=new nf(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var yr=Ye.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(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},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]+$/};yr.regexp=yr.regex;yr.pattern=yr.regex;yr.ipv4=yr["ip-address"];Ye.isFormat=function(t,r,i){if(typeof t=="string"&&yr[r]!==void 0){if(yr[r]instanceof RegExp)return yr[r].test(t);if(typeof yr[r]=="function")return yr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var fg=Ye.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};Ye.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function kI(e,t,r,i){typeof r=="object"?t[i]=kf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function NI(e,t,r){t[r]=e[r]}function jI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=kf(e[i],t[i]):r[i]=t[i]}function kf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(kI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(NI.bind(null,e,i)),Object.keys(t).forEach(jI.bind(null,e,t,i))),i}Ye.deepMerge=kf;Ye.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function WI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}Ye.encodePath=function(t){return t.map(WI).join("")};Ye.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};Ye.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var cg=Ye.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},Yt=Ye,Ce=Yt.ValidatorResult,En=Yt.SchemaError,Nf={};Nf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var Pe=Nf.validators={};Pe.type=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var f=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:f,message:"is not of a type(s) "+f})}return s};function jf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var f=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!f.valid&&i instanceof Function&&i(f),f.valid}Pe.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a);if(!Array.isArray(r.anyOf))throw new En("anyOf must be an array");if(!r.anyOf.some(jf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var f=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:f,message:"is not any of "+f.join(",")})}return s};Pe.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new En("allOf must be an array");var s=new Ce(t,r,i,a),l=this;return r.allOf.forEach(function(f,d){var p=l.validateSchema(t,f,i,a);if(!p.valid){var h=f.$id||f.id,S=h||f.title&&JSON.stringify(f.title)||f.$ref&&"<"+f.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:S,length:p.errors.length,valid:p},message:"does not match allOf schema "+S+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};Pe.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new En("oneOf must be an array");var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a),f=r.oneOf.filter(jf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var S=p.$id||p.id;return S||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return f!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};Pe.if=function(t,r,i,a){if(t===void 0)return null;if(!Yt.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=jf.call(this,t,i,a,null,r.if),l=new Ce(t,r,i,a),f;if(s){if(r.then===void 0)return;if(!Yt.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');f=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(f)}else{if(r.else===void 0)return;if(!Yt.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');f=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(f)}return l};function Wf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}Pe.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!Yt.isSchema(l))throw new En('Expected "propertyNames" to be a schema (object or boolean)');for(var f in t)if(Wf(t,f)!==void 0){var d=this.validateSchema(f,l,i,a.makeChild(l));s.importErrors(d)}return s}};Pe.properties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.properties||{};for(var f in l){var d=l[f];if(d!==void 0){if(d===null)throw new En('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,d,i,a);var p=Wf(t,f),h=this.validateSchema(p,d,i,a.makeChild(d,f));h.instance!==s.instance[f]&&(s.instance[f]=h.instance),s.importErrors(h)}}return s}};function dg(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var f=this.validateSchema(e[a],l,r,i.makeChild(l,a));f.instance!==s.instance[a]&&(s.instance[a]=f.instance),s.importErrors(f)}}Pe.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.patternProperties||{};for(var f in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new En('Unexpected null, expected schema in "patternProperties"');try{var S=new RegExp(p,"u")}catch{S=new RegExp(p)}if(S.test(f)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,h,i,a);var v=this.validateSchema(t[f],h,i,a.makeChild(h,f));v.instance!==s.instance[f]&&(s.instance[f]=v.instance),s.importErrors(v)}}}d&&dg.call(this,t,r,i,a,f,s)}return s}};Pe.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new Ce(t,r,i,a);for(var l in t)dg.call(this,t,r,i,a,l,s);return s}};Pe.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};Pe.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};Pe.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new Ce(t,r,i,a);return t.every(function(f,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(f,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};Pe.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!Yt.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new Ce(t,r,i,a),f=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return f===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};Pe.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};Pe.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};Pe.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};Pe.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var pg=function(t,r,i,a,s,l){if(this.types.number(t)){var f=r[s];if(f==0)throw new En(s+" cannot be zero");var d=new Ce(t,r,i,a),p=Yt.getDecimalPlaces(t),h=Yt.getDecimalPlaces(f),S=Math.max(p,h),v=Math.pow(10,S);return Math.round(t*v)%Math.round(f*v)!==0&&d.addError({name:s,argument:f,message:l+JSON.stringify(f)}),d}};Pe.multipleOf=function(t,r,i,a){return pg.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};Pe.divisibleBy=function(t,r,i,a){return pg.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};Pe.required=function(t,r,i,a){var s=new Ce(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){Wf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};Pe.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=r.pattern;try{var f=new RegExp(l,"u")}catch{f=new RegExp(l)}return t.match(f)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};Pe.format=function(t,r,i,a){if(t!==void 0){var s=new Ce(t,r,i,a);return!s.disableFormat&&!Yt.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};Pe.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};Pe.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};Pe.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};Pe.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function zI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(Yt.deepCompareStrict(e,r[i]))return!1;return!0}Pe.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new Ce(t,r,i,a);return t.every(zI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};Pe.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var f=r.dependencies[l],d=a.makeChild(f,l);if(typeof f=="string"&&(f=[f]),Array.isArray(f))f.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,f,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};Pe.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new En("enum expects an array",r);var s=new Ce(t,r,i,a);return r.enum.some(Yt.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};Pe.const=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a);return Yt.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};Pe.not=Pe.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new Ce(t,r,i,a),f=r.not||r.disallow;return f?(Array.isArray(f)||(f=[f]),f.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var UI=Nf,zf={},Pl=Ye;zf.SchemaScanResult=hg;function hg(e,t){this.id=e,this.ref=t}zf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let w=Pl.resolveUrl(d,p.$ref);f[w]=f[w]?f[w]+1:0;return}var h=p.$id||p.id;let S=Pl.resolveUrl(d,h);var v=h?S:d;if(v){if(v.indexOf("#")<0&&(v+="#"),l[v]){if(!Pl.deepCompareStrict(l[v],p))throw new Error("Schema <"+v+"> already exists with different definition");return l[v]}l[v]=p,v[v.length-1]=="#"&&(l[v.substring(0,v.length-1)]=p)}a(v+"/items",Array.isArray(p.items)?p.items:[p.items]),a(v+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(v+"/additionalItems",p.additionalItems),s(v+"/properties",p.properties),i(v+"/additionalProperties",p.additionalProperties),s(v+"/definitions",p.definitions),s(v+"/patternProperties",p.patternProperties),s(v+"/dependencies",p.dependencies),a(v+"/disallow",p.disallow),a(v+"/allOf",p.allOf),a(v+"/anyOf",p.anyOf),a(v+"/oneOf",p.oneOf),i(v+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},f={};return i(t,r),new hg(l,f)};var vg=UI,xn=Ye,mg=zf.scan,gg=xn.ValidatorResult,BI=xn.ValidatorResultError,co=xn.SchemaError,yg=xn.SchemaContext,HI="/",ft=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(Fr),this.attributes=Object.create(vg.validators)};ft.prototype.customFormats={};ft.prototype.schemas=null;ft.prototype.types=null;ft.prototype.attributes=null;ft.prototype.unresolvedRefs=null;ft.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=mg(r||HI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(f){return typeof i.schemas[f]>"u"}),this.schemas[s]};ft.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};ft.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};ft.prototype.setSchemas=function(t){this.schemas=t};ft.prototype.getSchema=function(t){return this.schemas[t]};ft.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new co("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=xn.resolveUrl(i.base,s||"");if(!a){a=new yg(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var f=mg(l,r);for(var d in f.id){var p=f.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new gg(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new BI(h)}else throw new Error("Result undefined");return h};function wg(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}ft.prototype.validateSchema=function(t,r,i,a){var s=new gg(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=xn.deepMerge(r,this.superResolve(r.extends,a));var f=wg(r);if(f){var d=this.resolve(r,f,a),p=new yg(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var S in r)if(!vg.ignoreProperties[S]&&h.indexOf(S)<0){var v=null,w=this.attributes[S];if(w)v=w.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new co("Unsupported attribute: "+S,r);v&&s.importErrors(v)}if(typeof i.rewrite=="function"){var x=i.rewrite.call(this,t,r,i,a);s.instance=x}return s};ft.prototype.schemaTraverser=function(t,r){t.schema=xn.deepMerge(t.schema,this.superResolve(r,t.ctx))};ft.prototype.superResolve=function(t,r){var i=wg(t);return i?this.resolve(t,i,r).subschema:t};ft.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new co("no such schema <"+r+">",t);var f=xn.objectGetPath(i.schemas[l],s.substr(1));if(f===void 0)throw new co("no such schema "+s+" located in <"+l+">",t);return{subschema:f,switchSchema:r}};ft.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new co('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var Fr=ft.prototype.types={};Fr.string=function(t){return typeof t=="string"};Fr.number=function(t){return typeof t=="number"&&isFinite(t)};Fr.integer=function(t){return typeof t=="number"&&t%1===0};Fr.boolean=function(t){return typeof t=="boolean"};Fr.array=function(t){return Array.isArray(t)};Fr.null=function(t){return t===null};Fr.date=function(t){return t instanceof Date};Fr.any=function(t){return!0};Fr.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var qI=ft,bg;bg=qI;Ye.ValidatorResult;Ye.ValidatorResultError;Ye.ValidationError;Ye.SchemaError;var ZI=Sg;function Sg(e,t,r){e instanceof RegExp&&(e=qh(e,r)),t instanceof RegExp&&(t=qh(t,r));var i=Eg(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function qh(e,t){var r=t.match(e);return r?r[0]:null}Sg.range=Eg;function Eg(e,t,r){var i,a,s,l,f,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!f;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?f=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(f=[s,l])}return f}var xg=ZI,GI=VI,_g="\0SLASH"+Math.random()+"\0",Og="\0OPEN"+Math.random()+"\0",Uf="\0CLOSE"+Math.random()+"\0",Ag="\0COMMA"+Math.random()+"\0",Tg="\0PERIOD"+Math.random()+"\0";function Rl(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function KI(e){return e.split("\\\\").join(_g).split("\\{").join(Og).split("\\}").join(Uf).split("\\,").join(Ag).split("\\.").join(Tg)}function YI(e){return e.split(_g).join("\\").split(Og).join("{").split(Uf).join("}").split(Ag).join(",").split(Tg).join(".")}function Cg(e){if(!e)return[""];var t=[],r=xg("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var f=Cg(s);return s.length&&(l[l.length-1]+=f.shift(),l.push.apply(l,f)),t.push.apply(t,l),t}function VI(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Yi(KI(e),!0).map(YI)):[]}function XI(e){return"{"+e+"}"}function JI(e){return/^-?0\d/.test(e)}function QI(e,t){return e<=t}function e2(e,t){return e>=t}function Yi(e,t){var r=[],i=xg("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?Yi(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var f=a+"{"+i.body+"}"+s[l];r.push(f)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,S=i.body.indexOf(",")>=0;if(!h&&!S)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+Uf+i.post,Yi(e)):[e];var v;if(h)v=i.body.split(/\.\./);else if(v=Cg(i.body),v.length===1&&(v=Yi(v[0],!1).map(XI),v.length===1))return s.map(function(V){return i.pre+v[0]+V});var w;if(h){var x=Rl(v[0]),y=Rl(v[1]),E=Math.max(v[0].length,v[1].length),P=v.length==3?Math.abs(Rl(v[2])):1,C=QI,I=y<x;I&&(P*=-1,C=e2);var F=v.some(JI);w=[];for(var O=x;C(O,y);O+=P){var L;if(p)L=String.fromCharCode(O),L==="\\"&&(L="");else if(L=String(O),F){var U=E-L.length;if(U>0){var z=new Array(U+1).join("0");O<0?L="-"+z+L.slice(1):L=z+L}}w.push(L)}}else{w=[];for(var q=0;q<v.length;q++)w.push.apply(w,Yi(v[q],!1))}for(var q=0;q<w.length;q++)for(var l=0;l<s.length;l++){var f=a+w[q]+s[l];(!t||h||f)&&r.push(f)}}return r}const t2=pf(GI),r2=1024*64,rs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>r2)throw new TypeError("pattern is too long")},n2={"[: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]},Gi=e=>e.replace(/[[\]\\-]/g,"\\$&"),i2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zh=e=>e.join(""),o2=(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,f=!1,d=!1,p=!1,h=r,S="";e:for(;s<e.length;){const y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){p=!0,s++;continue}if(y==="]"&&l&&!d){h=s+1;break}if(l=!0,y==="\\"&&!d){d=!0,s++;continue}if(y==="["&&!d){for(const[E,[P,C,I]]of Object.entries(n2))if(e.startsWith(E,s)){if(S)return["$.",!1,e.length-r,!0];s+=E.length,I?a.push(P):i.push(P),f=f||C;continue e}}if(d=!1,S){y>S?i.push(Gi(S)+"-"+Gi(y)):y===S&&i.push(Gi(y)),S="",s++;continue}if(e.startsWith("-]",s+1)){i.push(Gi(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){S=y,s+=2;continue}i.push(Gi(y)),s++}if(h<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])&&!p){const y=i[0].length===2?i[0].slice(-1):i[0];return[i2(y),!1,h-r,!1]}const v="["+(p?"^":"")+Zh(i)+"]",w="["+(p?"":"^")+Zh(a)+"]";return[i.length&&a.length?"("+v+"|"+w+")":i.length?v:w,f,h-r,!0]},Vi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),a2=new Set(["!","?","+","*","@"]),Gh=e=>a2.has(e),s2="(?!(?:^|/)\\.\\.?(?:$|/))",Il="(?!\\.)",u2=new Set(["[","."]),l2=new Set(["..","."]),f2=new Set("().*{}+?[]^$\\!"),c2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bf="[^/]",Kh=Bf+"*?",Yh=Bf+"+?";var ot,lt,Kr,Ue,et,vn,Wn,mn,_r,zn,po,Gn,Pg,bn,qa,of,Rg;const Ft=class Ft{constructor(t,r,i={}){Nt(this,Gn);it(this,"type");Nt(this,ot);Nt(this,lt);Nt(this,Kr,!1);Nt(this,Ue,[]);Nt(this,et);Nt(this,vn);Nt(this,Wn);Nt(this,mn,!1);Nt(this,_r);Nt(this,zn);Nt(this,po,!1);this.type=t,t&&Je(this,lt,!0),Je(this,et,r),Je(this,ot,Z(this,et)?Z(Z(this,et),ot):this),Je(this,_r,Z(this,ot)===this?i:Z(Z(this,ot),_r)),Je(this,Wn,Z(this,ot)===this?[]:Z(Z(this,ot),Wn)),t==="!"&&!Z(Z(this,ot),mn)&&Z(this,Wn).push(this),Je(this,vn,Z(this,et)?Z(Z(this,et),Ue).length:0)}get hasMagic(){if(Z(this,lt)!==void 0)return Z(this,lt);for(const t of Z(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Je(this,lt,!0);return Z(this,lt)}toString(){return Z(this,zn)!==void 0?Z(this,zn):this.type?Je(this,zn,this.type+"("+Z(this,Ue).map(t=>String(t)).join("|")+")"):Je(this,zn,Z(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Ft&&Z(r,et)===this))throw new Error("invalid part: "+r);Z(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?Z(this,Ue).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Z(this,Ue).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Z(this,ot)||Z(Z(this,ot),mn)&&((r=Z(this,et))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Z(this,ot)===this)return!0;if(!((r=Z(this,et))!=null&&r.isStart()))return!1;if(Z(this,vn)===0)return!0;const t=Z(this,et);for(let i=0;i<Z(this,vn);i++){const a=Z(t,Ue)[i];if(!(a instanceof Ft&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(Z(this,ot)===this||((r=Z(this,et))==null?void 0:r.type)==="!")return!0;if(!((i=Z(this,et))!=null&&i.isEnd()))return!1;if(!this.type)return(a=Z(this,et))==null?void 0:a.isEnd();const t=Z(this,et)?Z(Z(this,et),Ue).length:0;return Z(this,vn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Ft(this.type,t);for(const i of Z(this,Ue))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Ft(null,void 0,r);return fn(a=Ft,bn,qa).call(a,t,i,0,r),i}toMMPattern(){if(this!==Z(this,ot))return Z(this,ot).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||Z(this,lt)||Z(this,_r).nocase&&!Z(this,_r).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const f=(Z(this,_r).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,f),{_src:r,_glob:t})}get options(){return Z(this,_r)}toRegExpSource(t){var d;const r=t??!!Z(this,_r).dot;if(Z(this,ot)===this&&fn(this,Gn,Pg).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=Z(this,Ue).map(x=>{var I;const[y,E,P,C]=typeof x=="string"?fn(I=Ft,bn,Rg).call(I,x,Z(this,lt),p):x.toRegExpSource(t);return Je(this,lt,Z(this,lt)||P),Je(this,Kr,Z(this,Kr)||C),y}).join("");let S="";if(this.isStart()&&typeof Z(this,Ue)[0]=="string"&&!(Z(this,Ue).length===1&&l2.has(Z(this,Ue)[0]))){const y=u2,E=r&&y.has(h.charAt(0))||h.startsWith("\\.")&&y.has(h.charAt(2))||h.startsWith("\\.\\.")&&y.has(h.charAt(4)),P=!r&&!t&&y.has(h.charAt(0));S=E?s2:P?Il:""}let v="";return this.isEnd()&&Z(Z(this,ot),mn)&&((d=Z(this,et))==null?void 0:d.type)==="!"&&(v="(?:$|\\/)"),[S+h+v,Vi(h),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=fn(this,Gn,of).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return Je(this,Ue,[p]),this.type=null,Je(this,lt,void 0),[p,Vi(this.toString()),!1,!1]}let l=!i||t||r?"":fn(this,Gn,of).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let f="";if(this.type==="!"&&Z(this,po))f=(this.isStart()&&!r?Il:"")+Yh;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Il:"")+Kh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;f=a+s+p}return[f,Vi(s),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}};ot=new WeakMap,lt=new WeakMap,Kr=new WeakMap,Ue=new WeakMap,et=new WeakMap,vn=new WeakMap,Wn=new WeakMap,mn=new WeakMap,_r=new WeakMap,zn=new WeakMap,po=new WeakMap,Gn=new WeakSet,Pg=function(){if(this!==Z(this,ot))throw new Error("should only call on root");if(Z(this,mn))return this;this.toString(),Je(this,mn,!0);let t;for(;t=Z(this,Wn).pop();){if(t.type!=="!")continue;let r=t,i=Z(r,et);for(;i;){for(let a=Z(r,vn)+1;!i.type&&a<Z(i,Ue).length;a++)for(const s of Z(t,Ue)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(Z(i,Ue)[a])}r=i,i=Z(r,et)}}return this},bn=new WeakSet,qa=function(t,r,i,a){var w,x;let s=!1,l=!1,f=-1,d=!1;if(r.type===null){let y=i,E="";for(;y<t.length;){const P=t.charAt(y++);if(s||P==="\\"){s=!s,E+=P;continue}if(l){y===f+1?(P==="^"||P==="!")&&(d=!0):P==="]"&&!(y===f+2&&d)&&(l=!1),E+=P;continue}else if(P==="["){l=!0,f=y,d=!1,E+=P;continue}if(!a.noext&&Gh(P)&&t.charAt(y)==="("){r.push(E),E="";const C=new Ft(P,r);y=fn(w=Ft,bn,qa).call(w,t,C,y,a),r.push(C);continue}E+=P}return r.push(E),y}let p=i+1,h=new Ft(null,r);const S=[];let v="";for(;p<t.length;){const y=t.charAt(p++);if(s||y==="\\"){s=!s,v+=y;continue}if(l){p===f+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(p===f+2&&d)&&(l=!1),v+=y;continue}else if(y==="["){l=!0,f=p,d=!1,v+=y;continue}if(Gh(y)&&t.charAt(p)==="("){h.push(v),v="";const E=new Ft(y,h);h.push(E),p=fn(x=Ft,bn,qa).call(x,t,E,p,a);continue}if(y==="|"){h.push(v),v="",S.push(h),h=new Ft(null,r);continue}if(y===")")return v===""&&Z(r,Ue).length===0&&Je(r,po,!0),h.push(v),v="",r.push(...S,h),p;v+=y}return r.type=null,Je(r,lt,void 0),Je(r,Ue,[t.substring(i-1)]),p},of=function(t){return Z(this,Ue).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return Je(this,Kr,Z(this,Kr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Rg=function(t,r,i=!1){let a=!1,s="",l=!1;for(let f=0;f<t.length;f++){const d=t.charAt(f);if(a){a=!1,s+=(f2.has(d)?"\\":"")+d;continue}if(d==="\\"){f===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,S,v]=o2(t,f);if(S){s+=p,l=l||h,f+=S-1,r=r||v;continue}}if(d==="*"){i&&t==="*"?s+=Yh:s+=Kh,r=!0;continue}if(d==="?"){s+=Bf,r=!0;continue}s+=c2(d)}return[s,Vi(t),!!r,l]},Nt(Ft,bn);let ns=Ft;const d2=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Tt=(e,t,r={})=>(rs(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ss(t,r).match(e)),p2=/^\*+([^+@!?\*\[\(]*)$/,h2=e=>t=>!t.startsWith(".")&&t.endsWith(e),v2=e=>t=>t.endsWith(e),m2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),g2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),y2=/^\*+\.\*+$/,w2=e=>!e.startsWith(".")&&e.includes("."),b2=e=>e!=="."&&e!==".."&&e.includes("."),S2=/^\.\*+$/,E2=e=>e!=="."&&e!==".."&&e.startsWith("."),x2=/^\*+$/,_2=e=>e.length!==0&&!e.startsWith("."),O2=e=>e.length!==0&&e!=="."&&e!=="..",A2=/^\?+([^+@!?\*\[\(]*)?$/,T2=([e,t=""])=>{const r=Ig([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},C2=([e,t=""])=>{const r=Mg([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},P2=([e,t=""])=>{const r=Mg([e]);return t?i=>r(i)&&i.endsWith(t):r},R2=([e,t=""])=>{const r=Ig([e]);return t?i=>r(i)&&i.endsWith(t):r},Ig=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},Mg=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Fg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Vh={win32:{sep:"\\"},posix:{sep:"/"}},I2=Fg==="win32"?Vh.win32.sep:Vh.posix.sep;Tt.sep=I2;const sr=Symbol("globstar **");Tt.GLOBSTAR=sr;const M2="[^/]",F2=M2+"*?",L2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",$2="(?:(?!(?:\\/|^)\\.).)*?",D2=(e,t={})=>r=>Tt(r,e,t);Tt.filter=D2;const ar=(e,t={})=>Object.assign({},e,t),k2=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Tt;const t=Tt;return Object.assign((i,a,s={})=>t(i,a,ar(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,ar(e,s))}static defaults(a){return t.defaults(ar(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,ar(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,ar(e,s))}},unescape:(i,a={})=>t.unescape(i,ar(e,a)),escape:(i,a={})=>t.escape(i,ar(e,a)),filter:(i,a={})=>t.filter(i,ar(e,a)),defaults:i=>t.defaults(ar(e,i)),makeRe:(i,a={})=>t.makeRe(i,ar(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,ar(e,a)),match:(i,a,s={})=>t.match(i,a,ar(e,s)),sep:t.sep,GLOBSTAR:sr})};Tt.defaults=k2;const Lg=(e,t={})=>(rs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:t2(e));Tt.braceExpand=Lg;const N2=(e,t={})=>new Ss(e,t).makeRe();Tt.makeRe=N2;const j2=(e,t,r={})=>{const i=new Ss(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Tt.match=j2;const Xh=/[?*]|[+@!]\(.*?\)|\[|\]/,W2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Ss{constructor(t,r={}){it(this,"options");it(this,"set");it(this,"pattern");it(this,"windowsPathsNoEscape");it(this,"nonegate");it(this,"negate");it(this,"comment");it(this,"empty");it(this,"preserveMultipleSlashes");it(this,"partial");it(this,"globSet");it(this,"globParts");it(this,"nocase");it(this,"isWindows");it(this,"platform");it(this,"windowsNoMagicRoot");it(this,"regexp");rs(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Fg,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,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Xh.test(s[2]))&&!Xh.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});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 f=i[a+1];const d=i[a+2],p=i[a+3];if(f!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const f=i[l];l===1&&f===""&&i[0]===""||(f==="."||f==="")&&(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 d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),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=[],f="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(f==="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(f==="b")return!1;f="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(f==="a")return!1;f="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 y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),E=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),P=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),C=!P&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),I=E?3:y?0:void 0,F=C?3:P?0:void 0;if(typeof I=="number"&&typeof F=="number"){const[O,L]=[t[I],r[F]];O.toLowerCase()===L.toLowerCase()&&(r[F]=O,F>I?r=r.slice(F):I>F&&(t=t.slice(I)))}}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,f=0,d=t.length,p=r.length;l<d&&f<p;l++,f++){this.debug("matchOne loop");var h=r[f],S=t[l];if(this.debug(r,h,S),h===!1)return!1;if(h===sr){this.debug("GLOBSTAR",[r,h,S]);var v=l,w=f+1;if(w===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;v<d;){var x=t[v];if(this.debug(`
155
- globstar while`,t,v,r,w,x),this.matchOne(t.slice(v),r.slice(w),i))return this.debug("globstar found match!",v,d,x),!0;if(x==="."||x===".."||!a.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,v,r,w);break}this.debug("globstar swallow a segment, and continue"),v++}return!!(i&&(this.debug(`
156
- >>> no match, partial?`,t,v,r,w),v===d))}let y;if(typeof h=="string"?(y=S===h,this.debug("string match",h,S,y)):(y=h.test(S),this.debug("pattern match",h,S,y)),!y)return!1}if(l===d&&f===p)return!0;if(l===d)return i;if(f===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return Lg(this.pattern,this.options)}parse(t){rs(t);const r=this.options;if(t==="**")return sr;if(t==="")return"";let i,a=null;(i=t.match(x2))?a=r.dot?O2:_2:(i=t.match(p2))?a=(r.nocase?r.dot?g2:m2:r.dot?v2:h2)(i[1]):(i=t.match(A2))?a=(r.nocase?r.dot?C2:T2:r.dot?P2:R2)(i):(i=t.match(y2))?a=r.dot?b2:w2:(i=t.match(S2))&&(a=E2);const s=ns.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?F2:r.dot?L2:$2,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const S of h.flags.split(""))a.add(S);return typeof h=="string"?W2(h):h===sr?sr:h._src});return p.forEach((h,S)=>{const v=p[S+1],w=p[S-1];h!==sr||w===sr||(w===void 0?v!==void 0&&v!==sr?p[S+1]="(?:\\/|"+i+"\\/)?"+v:p[S]=i:v===void 0?p[S-1]=w+"(?:\\/|"+i+")?":v!==sr&&(p[S-1]=w+"(?:\\/|\\/"+i+"\\/)"+v,p[S+1]=sr))}),p.filter(h=>h!==sr).join("/")}).join("|");const[l,f]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+f+"$",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 f=a.length-2;!l&&f>=0;f--)l=a[f];for(let f=0;f<s.length;f++){const d=s[f];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Tt.defaults(t).Minimatch}}Tt.AST=ns;Tt.Minimatch=Ss;Tt.escape=d2;Tt.unescape=Vi;const Hf="/$shared",z2={"**/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"]}},"**/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"}},"**/*.json":{parser:"json",content:{}}};function $g(e){const t=Object.entries(z2).find(([r])=>Tt(e,r));return t==null?void 0:t[1]}function qf(e){var i;const t=(i=$g(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Hf}/`,"Shared/");Zf({name:r,content:t,asText:typeof t=="string"})}function Es({path:e,createIfNotExists:t=!1}){const r=`${Hf}/${e}`;return De(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=$g(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 bg().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(U2(i)&&t){const a=B2(i,e);Um.next({message:a,kind:"warning"}),qf(r)}throw i})}function U2(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 B2(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 H2(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function q2(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Dg=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:$f.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function Z2(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?f:l:a.webServerHTTPPort?l:f})();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),Dg()}}async function kg(e){return await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function G2(...e){return(await Promise.all(e.map(i=>kg({root:i,verb:Xn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function K2(e,t={}){const{sanitize:r=!0}=t;return De(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:tt.entries(i.components).map(([s,l])=>{const f=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=gf.generate();a.set(s,p),s=p}return[s,l,f]}).reduce((s,[l,f,d])=>{var p;return f.nodes&&(f.nodes=f.nodes.map(h=>a.get(h)||h)),f.linkedNodes&&(f.linkedNodes=tt.entries(f.linkedNodes).reduce((h,[S,v])=>({...h,[S]:a.get(v)||v}),{})),(p=f.props)!=null&&p.events&&(f.props.events=f.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...f,props:{...f.props,__originalID:d}}}},{})}})}function Y2(e){return De(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ur.METHOD,ur.CLASS].includes(t.type)?ws(t.content):t.content}))}function V2(e){return e.type==="folder"?De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function X2(e){return e.type==="folder"?(await De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function J2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Q2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function eM(e){return(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function tM(...e){return await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function rM(e){const t=await De("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function nM(){return await De("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function iM({name:e,path:t="",root:r="root",asText:i=!1}){return De(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function oM(e={}){try{return await Es({path:"shared_datasources.json",...e})}catch{return{}}}async function aM(e={}){try{return await Es({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function sM(e={}){try{return await Es({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function uM(){try{return await De("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function lM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const fM=Jm(),cM=async e=>{const t={verb:Xn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return fM(async()=>(await De(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Zf=async e=>{const t=await De(at,{method:"POST",body:JSON.stringify({...e,verb:Xn.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Vm(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},dM=async e=>await Zf({name:"crafted_components.json",path:wn.WEBFORMS,content:e});function pM(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function hM(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function vM(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function mM(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?ws(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&&qf(e.path),t})}function gM(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function yM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function wM(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 bM(e){const t=yM(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=wM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function SM(e,t){const i=e.split(".").pop();try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=ws(a.content);const{params:s,result:l}=bM(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var Ng=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Ng||{});function EM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function xM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var jg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(jg||{}),Wg=(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))(Wg||{}),zg=(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))(zg||{});const _M={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},OM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=hR;exports.ControlledSwitch=Tm;exports.DATASOURCE_THEMES=_M;exports.DatasourcesActions=zm;exports.DebuggerActions=qm;exports.DesignerRequestVerb=Xn;exports.Dialog=N_;exports.DialogBody=cv;exports.EActivity=Ng;exports.EDITOR=OM;exports.EIDENTIFIERS=Wg;exports.ERROR_CODES=zg;exports.EWebFormStyleClassScope=jg;exports.EXT_API_PREFIX=To;exports.FileFolderType=ur;exports.FolderRootPath=wn;exports.FolderRootType=Lf;exports.HTTPError=tf;exports.HTTP_HANDLERS_PATH=Ym;exports.IPreemptive=fo;exports.IPublished=ag;exports.IPublishedRestScope=Df;exports.IdentityProvider=kR;exports.Incase=SA;exports.IndentLines=Dv;exports.LogoSVG=Cm;exports.LspActions=Hm;exports.MAX_FILE_NAME_LENGTH=Mf;exports.MODEL_TAB_PATH=sI;exports.Modal=mR;exports.ModalCloseReason=vi;exports.ModalColor=Hn;exports.ModalIcons=Jl;exports.ModalType=Rf;exports.Mutex=Xm;exports.NameError=Ff;exports.Overlay=fv;exports.Portal=Qh;exports.PublishOptions=II;exports.ROLES_TAB_PATH=Gm;exports.RemoteDebuggerMode=$f;exports.SETTINGS_TAB_PATH=Km;exports.SHARED_API_PREFIX=Hf;exports.Switcher=kv;exports.TabEventsActions=Bm;exports.Tip=mP;exports.TipsProvider=hP;exports.Toast=BO;exports.Tooltip=dR;exports.Tree=bA;exports.TreeIcon=Iv;exports.TreeNode=yf;exports.WebformActions=Wm;exports._isArrayDatasource=TI;exports._isObjectDatasource=CI;exports.addAttributesToContent=FI;exports.addFolder=J2;exports.by=Qm;exports.byId=dI;exports.byPath=pI;exports.checkUpdates=H2;exports.createFolder=pM;exports.datasourcesSubject=eI;exports.debuggerSubject=iI;exports.dropFile=X2;exports.dropFolder=eM;exports.exists=hI;exports.extractWebformName=lI;exports.generateUUID=LI;exports.getAppSettings=Z2;exports.getCatalog=nM;exports.getDatasourceId=vI;exports.getDefaultAppSettings=Dg;exports.getFile=Y2;exports.getFileContent=iM;exports.getFileExtentionFromType=uI;exports.getFilesInfo=tM;exports.getFolder=kg;exports.getFolders=G2;exports.getFunctionContent=SM;exports.getMonacoTheme=lM;exports.getNodeInfo=mM;exports.getSavedConditions=sM;exports.getSharedCSS=aM;exports.getSharedDatasources=oM;exports.getSharedResource=Es;exports.getTypeFromExtension=Vm;exports.getUserPrivileges=uM;exports.getWebForm=K2;exports.hasAttributesString=ug;exports.http=De;exports.installUpdates=q2;exports.isArrayDatasource=ng;exports.isDataClassMethod=wI;exports.isDataStoreMethod=yI;exports.isDateDatasource=PI;exports.isEntity=OI;exports.isEntityDatasource=EI;exports.isEntityMethod=bI;exports.isEntitySelection=AI;exports.isEntitySelectionDatasource=xI;exports.isEntitySelectionMethod=SI;exports.isObjectAttribute=mI;exports.isObjectDatasource=ig;exports.isRelatedAttribute=gI;exports.isRelatedEntitiesAttribute=tg;exports.isRelatedEntityAttribute=rg;exports.isScalarDatasource=og;exports.isSimpleAttribute=eg;exports.isSimpleDatasource=_I;exports.loadDS=RI;exports.log=EM;exports.login=rM;exports.lspSubject=nI;exports.moveItem=vM;exports.outBy=fI;exports.outById=cI;exports.parseAttributes=MI;exports.queue=Jm;exports.removeAttributesString=lg;exports.removeItem=hM;exports.renameFile=V2;exports.renameFolder=Q2;exports.sanitizeContent=ws;exports.saveContent=gM;exports.setCraftedComponents=dM;exports.setFileContent=Zf;exports.setSharedSources=cM;exports.stringifyAttributes=sg;exports.tabEventsSubject=rI;exports.toastSubject=Um;exports.trackEvent=xM;exports.transformDates=$I;exports.tryCreateSharedResource=qf;exports.useDidMountEffect=wR;exports.useDoubleClick=zR;exports.useFeatureFlags=DR;exports.useForwardedRef=$R;exports.useHotkeys=IR;exports.useIdentity=NR;exports.useOutsideClick=MR;exports.usePrevious=FR;exports.useStateObject=jR;exports.useStateRef=LR;exports.useTip=vm;exports.validateName=Zm;exports.validateServerSide=oI;exports.validateValue=aI;exports.webformSubject=tI;
152
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Ql(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ys=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 f=Nl(l),d=f.next();!d.done;d=f.next()){var p=d.value;p.remove(this)}}catch(y){t={error:y}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(Yr(h))try{h()}catch(y){s=y instanceof Cl?y.errors:[y]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var v=Nl(b),w=v.next();!w.done;w=v.next()){var E=w.value;try{jh(E)}catch(y){s=s??[],y instanceof Cl?s=Wl(Wl([],jl(s)),jl(y.errors)):s.push(y)}}}catch(y){i={error:y}}finally{try{w&&!w.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}if(s)throw new Cl(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)jh(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)&&Ql(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ql(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),km=ys.EMPTY;function Nm(e){return e instanceof ys||e&&"closed"in e&&Yr(e.remove)&&Yr(e.add)&&Yr(e.unsubscribe)}function jh(e){Yr(e)?e():e.unsubscribe()}var BR={Promise:void 0},HR={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Wl([e,t],jl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function qR(e){HR.setTimeout(function(){throw e})}function Wh(){}function Ha(e){e()}var jm=function(e){ls(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Nm(r)&&r.add(i)):i.destination=KR,i}return t.create=function(r,i,a){return new ef(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}(ys),ZR=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){Da(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Da(i)}else Da(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Da(r)}},e}(),ef=function(e){ls(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Yr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new ZR(l),s}return t}(jm);function Da(e){qR(e)}function GR(e){throw e}var KR={closed:!0,next:Wh,error:GR,complete:Wh},YR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function VR(e){return e}function XR(e){return e.length===0?VR:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var zh=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=QR(t)?t:new ef(t,r,i);return Ha(function(){var l=a,f=l.operator,d=l.source;s.add(f?f.call(s,d):d?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=Uh(r),new r(function(a,s){var l=new ef({next:function(f){try{t(f)}catch(d){s(d),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[YR]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return XR(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Uh(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 Uh(e){var t;return(t=e??BR.Promise)!==null&&t!==void 0?t:Promise}function JR(e){return e&&Yr(e.next)&&Yr(e.error)&&Yr(e.complete)}function QR(e){return e&&e instanceof jm||JR(e)&&Nm(e)}var eI=Dm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vn=function(e){ls(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 Bh(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new eI},t.prototype.next=function(r){var i=this;Ha(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=Nl(i.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(r)}}catch(p){a={error:p}}finally{try{f&&!f.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Ha(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;Ha(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,f=a.observers;return s||l?km:(this.currentObservers=null,f.push(r),new ys(function(){i.currentObservers=null,Ql(f,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 zh;return r.source=this,r},t.create=function(r,i){return new Bh(r,i)},t}(zh),Bh=function(e){ls(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:km},t}(Vn),Wm=(e=>(e.RELOAD="reload",e))(Wm||{}),zm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(zm||{});const tI=new Vn,rI=new Vn,Um=new Vn;var Bm=(e=>(e.SAVE_ALL="save-all",e))(Bm||{});const nI=new Vn;var Hm=(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))(Hm||{});const iI=new Vn;var qm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(qm||{});const oI=new Vn,Mf=31;var Ff=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Mf} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Ff||{});function Zm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Mf)throw new Error(Ff.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))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(e))throw new Error("Invalid name");return!0}function aI(e){if(!e)return null;if(typeof e=="string")try{Zm(e)}catch(t){return t.message}}function sI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!tt.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!tt.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 ws(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const wn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ur=(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.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ur||{}),Xn=(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))(Xn||{}),$f=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))($f||{});const Gm="roles.json",Km="qodlyApp.json",uI="model.4DModel",Ym="HTTPHandlers.json";function Vm(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ur.MODEL;case r==="WebForm":return ur.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===wn.METHODS):return ur.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wn.CLASSES):return ur.CLASS;case e===Gm:return ur.ROLES;case e===Ym:return ur.HTTP_HANDLERS;case e===Km:return ur.SETTINGS;default:return ur.TEXT}}function lI(e,t=!1){switch(e){case wn.REPORTS:case"report":return"QoDoc";case wn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wn.CLASSES:case wn.METHODS:return t?"4qs":"4dm";default:return""}}function fI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Xm{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 Jm(){const e=new Xm;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Qm=tt.curry((e,t,r)=>e&&tt.get(r,e)===t),cI=tt.curry((e,t,r)=>tt.get(r,e)!==t),dI=tt.curry((e,t)=>tt.get(t,"id")!==e),pI=tt.curry((e,t)=>tt.get(t,"id")===e),hI=tt.curry((e,t)=>tt.get(t,"path")===e);function vI(e="id",t,r){return r.findIndex(Qm(e,t))!==-1}function mI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function eg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function gI(e){return e.type==="object"}function tg(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function rg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!eg(e)}function yI(e){return tg(e)||rg(e)}function wI(e){return e.applyTo==="dataStore"}function bI(e){return e.applyTo==="dataClass"}function SI(e){return e.applyTo==="entity"}function EI(e){return e.applyTo==="entityCollection"}function xI(e){return e.type==="entity"}function _I(e){return e.type==="entitysel"}function ng(e){return e.dataType==="array"}function ig(e){return e.dataType==="object"}function og(e){return e.type==="scalar"}function OI(e){return ng(e)||ig(e)||og(e)}const AI=e=>e!=null&&e.type==="entity",TI=e=>e.type==="entitysel",CI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",PI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",RI=e=>e.type==="scalar"&&e.dataType==="date";function II(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}var fo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(fo||{}),ag=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(ag||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const MI={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function FI(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:fo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Df.table}},...i}}function sg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[fo.capable,fo.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 LI(e,t,r=!1){const i=tt.isString(t)?t:sg(t);if(!r&&ug(e))return e;const a=lg(e);return`//%attributes = ${i}\r
153
+ ${a}`}function ug(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function lg(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const $I=()=>gf.uuid().replaceAll("-","").toUpperCase(),at="/rest/$designer",To="/rest/$designer-ext";function DI(...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 tf 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 De(e,t){const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const s=await r.json();a=new tf(e,r,s)}catch{a=new tf(e,r)}throw a.log(),a}return await r.json()}var Ye={},rf=Ye.ValidationError=function(t,r,i,a,s,l){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(d,p){return d+fg(p)},"instance")):a!==void 0&&(this.property=a),t&&(this.message=t),i){var f=i.$id||i.id;this.schema=f||i}r!==void 0&&(this.instance=r),this.name=s,this.argument=l,this.stack=this.toString()};rf.prototype.toString=function(){return this.property+" "+this.message};var bs=Ye.ValidatorResult=function(t,r,i,a){this.instance=t,this.schema=r,this.options=i,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=i&&i.throwError,this.throwFirst=i&&i.throwFirst,this.throwAll=i&&i.throwAll,this.disableFormat=i&&i.disableFormat===!0};bs.prototype.addError=function(t){var r;if(typeof t=="string")r=new rf(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");r=new rf(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(r),this.throwFirst)throw new Zn(this);if(this.throwError)throw r;return r};bs.prototype.importErrors=function(t){typeof t=="string"||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))};function kI(e,t){return t+": "+e.toString()+`
154
+ `}bs.prototype.toString=function(t){return this.errors.map(kI).join("")};Object.defineProperty(bs.prototype,"valid",{get:function(){return!this.errors.length}});Ye.ValidatorResultError=Zn;function Zn(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Zn),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}Zn.prototype=new Error;Zn.prototype.constructor=Zn;Zn.prototype.name="Validation Error";var Hh=Ye.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};Hh.prototype=Object.create(Error.prototype,{constructor:{value:Hh,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var nf=Ye.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,f){return l+fg(f)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};nf.prototype.resolve=function(t){return cg(this.base,t)};nf.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=cg(this.base,a||"");var l=new nf(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var yr=Ye.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(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},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]+$/};yr.regexp=yr.regex;yr.pattern=yr.regex;yr.ipv4=yr["ip-address"];Ye.isFormat=function(t,r,i){if(typeof t=="string"&&yr[r]!==void 0){if(yr[r]instanceof RegExp)return yr[r].test(t);if(typeof yr[r]=="function")return yr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var fg=Ye.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};Ye.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function NI(e,t,r,i){typeof r=="object"?t[i]=kf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function jI(e,t,r){t[r]=e[r]}function WI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=kf(e[i],t[i]):r[i]=t[i]}function kf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(NI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(jI.bind(null,e,i)),Object.keys(t).forEach(WI.bind(null,e,t,i))),i}Ye.deepMerge=kf;Ye.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function zI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}Ye.encodePath=function(t){return t.map(zI).join("")};Ye.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};Ye.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var cg=Ye.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},Yt=Ye,Ce=Yt.ValidatorResult,En=Yt.SchemaError,Nf={};Nf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var Pe=Nf.validators={};Pe.type=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var f=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:f,message:"is not of a type(s) "+f})}return s};function jf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var f=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!f.valid&&i instanceof Function&&i(f),f.valid}Pe.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a);if(!Array.isArray(r.anyOf))throw new En("anyOf must be an array");if(!r.anyOf.some(jf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var f=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:f,message:"is not any of "+f.join(",")})}return s};Pe.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new En("allOf must be an array");var s=new Ce(t,r,i,a),l=this;return r.allOf.forEach(function(f,d){var p=l.validateSchema(t,f,i,a);if(!p.valid){var h=f.$id||f.id,b=h||f.title&&JSON.stringify(f.title)||f.$ref&&"<"+f.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:b,length:p.errors.length,valid:p},message:"does not match allOf schema "+b+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};Pe.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new En("oneOf must be an array");var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a),f=r.oneOf.filter(jf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var b=p.$id||p.id;return b||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return f!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};Pe.if=function(t,r,i,a){if(t===void 0)return null;if(!Yt.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=jf.call(this,t,i,a,null,r.if),l=new Ce(t,r,i,a),f;if(s){if(r.then===void 0)return;if(!Yt.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');f=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(f)}else{if(r.else===void 0)return;if(!Yt.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');f=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(f)}return l};function Wf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}Pe.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!Yt.isSchema(l))throw new En('Expected "propertyNames" to be a schema (object or boolean)');for(var f in t)if(Wf(t,f)!==void 0){var d=this.validateSchema(f,l,i,a.makeChild(l));s.importErrors(d)}return s}};Pe.properties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.properties||{};for(var f in l){var d=l[f];if(d!==void 0){if(d===null)throw new En('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,d,i,a);var p=Wf(t,f),h=this.validateSchema(p,d,i,a.makeChild(d,f));h.instance!==s.instance[f]&&(s.instance[f]=h.instance),s.importErrors(h)}}return s}};function dg(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var f=this.validateSchema(e[a],l,r,i.makeChild(l,a));f.instance!==s.instance[a]&&(s.instance[a]=f.instance),s.importErrors(f)}}Pe.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.patternProperties||{};for(var f in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new En('Unexpected null, expected schema in "patternProperties"');try{var b=new RegExp(p,"u")}catch{b=new RegExp(p)}if(b.test(f)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,h,i,a);var v=this.validateSchema(t[f],h,i,a.makeChild(h,f));v.instance!==s.instance[f]&&(s.instance[f]=v.instance),s.importErrors(v)}}}d&&dg.call(this,t,r,i,a,f,s)}return s}};Pe.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new Ce(t,r,i,a);for(var l in t)dg.call(this,t,r,i,a,l,s);return s}};Pe.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};Pe.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};Pe.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new Ce(t,r,i,a);return t.every(function(f,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(f,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};Pe.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!Yt.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new Ce(t,r,i,a),f=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return f===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};Pe.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};Pe.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};Pe.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};Pe.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var pg=function(t,r,i,a,s,l){if(this.types.number(t)){var f=r[s];if(f==0)throw new En(s+" cannot be zero");var d=new Ce(t,r,i,a),p=Yt.getDecimalPlaces(t),h=Yt.getDecimalPlaces(f),b=Math.max(p,h),v=Math.pow(10,b);return Math.round(t*v)%Math.round(f*v)!==0&&d.addError({name:s,argument:f,message:l+JSON.stringify(f)}),d}};Pe.multipleOf=function(t,r,i,a){return pg.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};Pe.divisibleBy=function(t,r,i,a){return pg.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};Pe.required=function(t,r,i,a){var s=new Ce(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){Wf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};Pe.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=r.pattern;try{var f=new RegExp(l,"u")}catch{f=new RegExp(l)}return t.match(f)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};Pe.format=function(t,r,i,a){if(t!==void 0){var s=new Ce(t,r,i,a);return!s.disableFormat&&!Yt.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};Pe.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};Pe.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};Pe.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};Pe.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function UI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(Yt.deepCompareStrict(e,r[i]))return!1;return!0}Pe.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new Ce(t,r,i,a);return t.every(UI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};Pe.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var f=r.dependencies[l],d=a.makeChild(f,l);if(typeof f=="string"&&(f=[f]),Array.isArray(f))f.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,f,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};Pe.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new En("enum expects an array",r);var s=new Ce(t,r,i,a);return r.enum.some(Yt.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};Pe.const=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a);return Yt.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};Pe.not=Pe.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new Ce(t,r,i,a),f=r.not||r.disallow;return f?(Array.isArray(f)||(f=[f]),f.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var BI=Nf,zf={},Pl=Ye;zf.SchemaScanResult=hg;function hg(e,t){this.id=e,this.ref=t}zf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let w=Pl.resolveUrl(d,p.$ref);f[w]=f[w]?f[w]+1:0;return}var h=p.$id||p.id;let b=Pl.resolveUrl(d,h);var v=h?b:d;if(v){if(v.indexOf("#")<0&&(v+="#"),l[v]){if(!Pl.deepCompareStrict(l[v],p))throw new Error("Schema <"+v+"> already exists with different definition");return l[v]}l[v]=p,v[v.length-1]=="#"&&(l[v.substring(0,v.length-1)]=p)}a(v+"/items",Array.isArray(p.items)?p.items:[p.items]),a(v+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(v+"/additionalItems",p.additionalItems),s(v+"/properties",p.properties),i(v+"/additionalProperties",p.additionalProperties),s(v+"/definitions",p.definitions),s(v+"/patternProperties",p.patternProperties),s(v+"/dependencies",p.dependencies),a(v+"/disallow",p.disallow),a(v+"/allOf",p.allOf),a(v+"/anyOf",p.anyOf),a(v+"/oneOf",p.oneOf),i(v+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},f={};return i(t,r),new hg(l,f)};var vg=BI,xn=Ye,mg=zf.scan,gg=xn.ValidatorResult,HI=xn.ValidatorResultError,co=xn.SchemaError,yg=xn.SchemaContext,qI="/",ct=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(Fr),this.attributes=Object.create(vg.validators)};ct.prototype.customFormats={};ct.prototype.schemas=null;ct.prototype.types=null;ct.prototype.attributes=null;ct.prototype.unresolvedRefs=null;ct.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=mg(r||qI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(f){return typeof i.schemas[f]>"u"}),this.schemas[s]};ct.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};ct.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};ct.prototype.setSchemas=function(t){this.schemas=t};ct.prototype.getSchema=function(t){return this.schemas[t]};ct.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new co("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=xn.resolveUrl(i.base,s||"");if(!a){a=new yg(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var f=mg(l,r);for(var d in f.id){var p=f.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new gg(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new HI(h)}else throw new Error("Result undefined");return h};function wg(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}ct.prototype.validateSchema=function(t,r,i,a){var s=new gg(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=xn.deepMerge(r,this.superResolve(r.extends,a));var f=wg(r);if(f){var d=this.resolve(r,f,a),p=new yg(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var b in r)if(!vg.ignoreProperties[b]&&h.indexOf(b)<0){var v=null,w=this.attributes[b];if(w)v=w.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new co("Unsupported attribute: "+b,r);v&&s.importErrors(v)}if(typeof i.rewrite=="function"){var E=i.rewrite.call(this,t,r,i,a);s.instance=E}return s};ct.prototype.schemaTraverser=function(t,r){t.schema=xn.deepMerge(t.schema,this.superResolve(r,t.ctx))};ct.prototype.superResolve=function(t,r){var i=wg(t);return i?this.resolve(t,i,r).subschema:t};ct.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new co("no such schema <"+r+">",t);var f=xn.objectGetPath(i.schemas[l],s.substr(1));if(f===void 0)throw new co("no such schema "+s+" located in <"+l+">",t);return{subschema:f,switchSchema:r}};ct.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new co('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var Fr=ct.prototype.types={};Fr.string=function(t){return typeof t=="string"};Fr.number=function(t){return typeof t=="number"&&isFinite(t)};Fr.integer=function(t){return typeof t=="number"&&t%1===0};Fr.boolean=function(t){return typeof t=="boolean"};Fr.array=function(t){return Array.isArray(t)};Fr.null=function(t){return t===null};Fr.date=function(t){return t instanceof Date};Fr.any=function(t){return!0};Fr.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var ZI=ct,bg;bg=ZI;Ye.ValidatorResult;Ye.ValidatorResultError;Ye.ValidationError;Ye.SchemaError;var GI=Sg;function Sg(e,t,r){e instanceof RegExp&&(e=qh(e,r)),t instanceof RegExp&&(t=qh(t,r));var i=Eg(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function qh(e,t){var r=t.match(e);return r?r[0]:null}Sg.range=Eg;function Eg(e,t,r){var i,a,s,l,f,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!f;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?f=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(f=[s,l])}return f}var xg=GI,KI=XI,_g="\0SLASH"+Math.random()+"\0",Og="\0OPEN"+Math.random()+"\0",Uf="\0CLOSE"+Math.random()+"\0",Ag="\0COMMA"+Math.random()+"\0",Tg="\0PERIOD"+Math.random()+"\0";function Rl(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function YI(e){return e.split("\\\\").join(_g).split("\\{").join(Og).split("\\}").join(Uf).split("\\,").join(Ag).split("\\.").join(Tg)}function VI(e){return e.split(_g).join("\\").split(Og).join("{").split(Uf).join("}").split(Ag).join(",").split(Tg).join(".")}function Cg(e){if(!e)return[""];var t=[],r=xg("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var f=Cg(s);return s.length&&(l[l.length-1]+=f.shift(),l.push.apply(l,f)),t.push.apply(t,l),t}function XI(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Yi(YI(e),!0).map(VI)):[]}function JI(e){return"{"+e+"}"}function QI(e){return/^-?0\d/.test(e)}function eM(e,t){return e<=t}function tM(e,t){return e>=t}function Yi(e,t){var r=[],i=xg("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?Yi(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var f=a+"{"+i.body+"}"+s[l];r.push(f)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,b=i.body.indexOf(",")>=0;if(!h&&!b)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+Uf+i.post,Yi(e)):[e];var v;if(h)v=i.body.split(/\.\./);else if(v=Cg(i.body),v.length===1&&(v=Yi(v[0],!1).map(JI),v.length===1))return s.map(function(V){return i.pre+v[0]+V});var w;if(h){var E=Rl(v[0]),y=Rl(v[1]),x=Math.max(v[0].length,v[1].length),A=v.length==3?Math.abs(Rl(v[2])):1,I=eM,P=y<E;P&&(A*=-1,I=tM);var F=v.some(QI);w=[];for(var O=E;I(O,y);O+=A){var L;if(p)L=String.fromCharCode(O),L==="\\"&&(L="");else if(L=String(O),F){var U=x-L.length;if(U>0){var z=new Array(U+1).join("0");O<0?L="-"+z+L.slice(1):L=z+L}}w.push(L)}}else{w=[];for(var q=0;q<v.length;q++)w.push.apply(w,Yi(v[q],!1))}for(var q=0;q<w.length;q++)for(var l=0;l<s.length;l++){var f=a+w[q]+s[l];(!t||h||f)&&r.push(f)}}return r}const rM=pf(KI),nM=1024*64,rs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>nM)throw new TypeError("pattern is too long")},iM={"[: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]},Gi=e=>e.replace(/[[\]\\-]/g,"\\$&"),oM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zh=e=>e.join(""),aM=(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,f=!1,d=!1,p=!1,h=r,b="";e:for(;s<e.length;){const y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){p=!0,s++;continue}if(y==="]"&&l&&!d){h=s+1;break}if(l=!0,y==="\\"&&!d){d=!0,s++;continue}if(y==="["&&!d){for(const[x,[A,I,P]]of Object.entries(iM))if(e.startsWith(x,s)){if(b)return["$.",!1,e.length-r,!0];s+=x.length,P?a.push(A):i.push(A),f=f||I;continue e}}if(d=!1,b){y>b?i.push(Gi(b)+"-"+Gi(y)):y===b&&i.push(Gi(y)),b="",s++;continue}if(e.startsWith("-]",s+1)){i.push(Gi(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){b=y,s+=2;continue}i.push(Gi(y)),s++}if(h<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])&&!p){const y=i[0].length===2?i[0].slice(-1):i[0];return[oM(y),!1,h-r,!1]}const v="["+(p?"^":"")+Zh(i)+"]",w="["+(p?"":"^")+Zh(a)+"]";return[i.length&&a.length?"("+v+"|"+w+")":i.length?v:w,f,h-r,!0]},Vi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),sM=new Set(["!","?","+","*","@"]),Gh=e=>sM.has(e),uM="(?!(?:^|/)\\.\\.?(?:$|/))",Il="(?!\\.)",lM=new Set(["[","."]),fM=new Set(["..","."]),cM=new Set("().*{}+?[]^$\\!"),dM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bf="[^/]",Kh=Bf+"*?",Yh=Bf+"+?";var ot,lt,Kr,Ue,et,vn,Wn,mn,_r,zn,po,Gn,Pg,bn,qa,of,Rg;const Ft=class Ft{constructor(t,r,i={}){Nt(this,Gn);it(this,"type");Nt(this,ot);Nt(this,lt);Nt(this,Kr,!1);Nt(this,Ue,[]);Nt(this,et);Nt(this,vn);Nt(this,Wn);Nt(this,mn,!1);Nt(this,_r);Nt(this,zn);Nt(this,po,!1);this.type=t,t&&Je(this,lt,!0),Je(this,et,r),Je(this,ot,Z(this,et)?Z(Z(this,et),ot):this),Je(this,_r,Z(this,ot)===this?i:Z(Z(this,ot),_r)),Je(this,Wn,Z(this,ot)===this?[]:Z(Z(this,ot),Wn)),t==="!"&&!Z(Z(this,ot),mn)&&Z(this,Wn).push(this),Je(this,vn,Z(this,et)?Z(Z(this,et),Ue).length:0)}get hasMagic(){if(Z(this,lt)!==void 0)return Z(this,lt);for(const t of Z(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Je(this,lt,!0);return Z(this,lt)}toString(){return Z(this,zn)!==void 0?Z(this,zn):this.type?Je(this,zn,this.type+"("+Z(this,Ue).map(t=>String(t)).join("|")+")"):Je(this,zn,Z(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Ft&&Z(r,et)===this))throw new Error("invalid part: "+r);Z(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?Z(this,Ue).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Z(this,Ue).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Z(this,ot)||Z(Z(this,ot),mn)&&((r=Z(this,et))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Z(this,ot)===this)return!0;if(!((r=Z(this,et))!=null&&r.isStart()))return!1;if(Z(this,vn)===0)return!0;const t=Z(this,et);for(let i=0;i<Z(this,vn);i++){const a=Z(t,Ue)[i];if(!(a instanceof Ft&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(Z(this,ot)===this||((r=Z(this,et))==null?void 0:r.type)==="!")return!0;if(!((i=Z(this,et))!=null&&i.isEnd()))return!1;if(!this.type)return(a=Z(this,et))==null?void 0:a.isEnd();const t=Z(this,et)?Z(Z(this,et),Ue).length:0;return Z(this,vn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Ft(this.type,t);for(const i of Z(this,Ue))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Ft(null,void 0,r);return fn(a=Ft,bn,qa).call(a,t,i,0,r),i}toMMPattern(){if(this!==Z(this,ot))return Z(this,ot).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||Z(this,lt)||Z(this,_r).nocase&&!Z(this,_r).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const f=(Z(this,_r).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,f),{_src:r,_glob:t})}get options(){return Z(this,_r)}toRegExpSource(t){var d;const r=t??!!Z(this,_r).dot;if(Z(this,ot)===this&&fn(this,Gn,Pg).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=Z(this,Ue).map(E=>{var P;const[y,x,A,I]=typeof E=="string"?fn(P=Ft,bn,Rg).call(P,E,Z(this,lt),p):E.toRegExpSource(t);return Je(this,lt,Z(this,lt)||A),Je(this,Kr,Z(this,Kr)||I),y}).join("");let b="";if(this.isStart()&&typeof Z(this,Ue)[0]=="string"&&!(Z(this,Ue).length===1&&fM.has(Z(this,Ue)[0]))){const y=lM,x=r&&y.has(h.charAt(0))||h.startsWith("\\.")&&y.has(h.charAt(2))||h.startsWith("\\.\\.")&&y.has(h.charAt(4)),A=!r&&!t&&y.has(h.charAt(0));b=x?uM:A?Il:""}let v="";return this.isEnd()&&Z(Z(this,ot),mn)&&((d=Z(this,et))==null?void 0:d.type)==="!"&&(v="(?:$|\\/)"),[b+h+v,Vi(h),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=fn(this,Gn,of).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return Je(this,Ue,[p]),this.type=null,Je(this,lt,void 0),[p,Vi(this.toString()),!1,!1]}let l=!i||t||r?"":fn(this,Gn,of).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let f="";if(this.type==="!"&&Z(this,po))f=(this.isStart()&&!r?Il:"")+Yh;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Il:"")+Kh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;f=a+s+p}return[f,Vi(s),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}};ot=new WeakMap,lt=new WeakMap,Kr=new WeakMap,Ue=new WeakMap,et=new WeakMap,vn=new WeakMap,Wn=new WeakMap,mn=new WeakMap,_r=new WeakMap,zn=new WeakMap,po=new WeakMap,Gn=new WeakSet,Pg=function(){if(this!==Z(this,ot))throw new Error("should only call on root");if(Z(this,mn))return this;this.toString(),Je(this,mn,!0);let t;for(;t=Z(this,Wn).pop();){if(t.type!=="!")continue;let r=t,i=Z(r,et);for(;i;){for(let a=Z(r,vn)+1;!i.type&&a<Z(i,Ue).length;a++)for(const s of Z(t,Ue)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(Z(i,Ue)[a])}r=i,i=Z(r,et)}}return this},bn=new WeakSet,qa=function(t,r,i,a){var w,E;let s=!1,l=!1,f=-1,d=!1;if(r.type===null){let y=i,x="";for(;y<t.length;){const A=t.charAt(y++);if(s||A==="\\"){s=!s,x+=A;continue}if(l){y===f+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(y===f+2&&d)&&(l=!1),x+=A;continue}else if(A==="["){l=!0,f=y,d=!1,x+=A;continue}if(!a.noext&&Gh(A)&&t.charAt(y)==="("){r.push(x),x="";const I=new Ft(A,r);y=fn(w=Ft,bn,qa).call(w,t,I,y,a),r.push(I);continue}x+=A}return r.push(x),y}let p=i+1,h=new Ft(null,r);const b=[];let v="";for(;p<t.length;){const y=t.charAt(p++);if(s||y==="\\"){s=!s,v+=y;continue}if(l){p===f+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(p===f+2&&d)&&(l=!1),v+=y;continue}else if(y==="["){l=!0,f=p,d=!1,v+=y;continue}if(Gh(y)&&t.charAt(p)==="("){h.push(v),v="";const x=new Ft(y,h);h.push(x),p=fn(E=Ft,bn,qa).call(E,t,x,p,a);continue}if(y==="|"){h.push(v),v="",b.push(h),h=new Ft(null,r);continue}if(y===")")return v===""&&Z(r,Ue).length===0&&Je(r,po,!0),h.push(v),v="",r.push(...b,h),p;v+=y}return r.type=null,Je(r,lt,void 0),Je(r,Ue,[t.substring(i-1)]),p},of=function(t){return Z(this,Ue).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return Je(this,Kr,Z(this,Kr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Rg=function(t,r,i=!1){let a=!1,s="",l=!1;for(let f=0;f<t.length;f++){const d=t.charAt(f);if(a){a=!1,s+=(cM.has(d)?"\\":"")+d;continue}if(d==="\\"){f===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,b,v]=aM(t,f);if(b){s+=p,l=l||h,f+=b-1,r=r||v;continue}}if(d==="*"){i&&t==="*"?s+=Yh:s+=Kh,r=!0;continue}if(d==="?"){s+=Bf,r=!0;continue}s+=dM(d)}return[s,Vi(t),!!r,l]},Nt(Ft,bn);let ns=Ft;const pM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Tt=(e,t,r={})=>(rs(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ss(t,r).match(e)),hM=/^\*+([^+@!?\*\[\(]*)$/,vM=e=>t=>!t.startsWith(".")&&t.endsWith(e),mM=e=>t=>t.endsWith(e),gM=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),yM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),wM=/^\*+\.\*+$/,bM=e=>!e.startsWith(".")&&e.includes("."),SM=e=>e!=="."&&e!==".."&&e.includes("."),EM=/^\.\*+$/,xM=e=>e!=="."&&e!==".."&&e.startsWith("."),_M=/^\*+$/,OM=e=>e.length!==0&&!e.startsWith("."),AM=e=>e.length!==0&&e!=="."&&e!=="..",TM=/^\?+([^+@!?\*\[\(]*)?$/,CM=([e,t=""])=>{const r=Ig([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},PM=([e,t=""])=>{const r=Mg([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},RM=([e,t=""])=>{const r=Mg([e]);return t?i=>r(i)&&i.endsWith(t):r},IM=([e,t=""])=>{const r=Ig([e]);return t?i=>r(i)&&i.endsWith(t):r},Ig=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},Mg=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Fg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Vh={win32:{sep:"\\"},posix:{sep:"/"}},MM=Fg==="win32"?Vh.win32.sep:Vh.posix.sep;Tt.sep=MM;const sr=Symbol("globstar **");Tt.GLOBSTAR=sr;const FM="[^/]",LM=FM+"*?",$M="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",DM="(?:(?!(?:\\/|^)\\.).)*?",kM=(e,t={})=>r=>Tt(r,e,t);Tt.filter=kM;const ar=(e,t={})=>Object.assign({},e,t),NM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Tt;const t=Tt;return Object.assign((i,a,s={})=>t(i,a,ar(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,ar(e,s))}static defaults(a){return t.defaults(ar(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,ar(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,ar(e,s))}},unescape:(i,a={})=>t.unescape(i,ar(e,a)),escape:(i,a={})=>t.escape(i,ar(e,a)),filter:(i,a={})=>t.filter(i,ar(e,a)),defaults:i=>t.defaults(ar(e,i)),makeRe:(i,a={})=>t.makeRe(i,ar(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,ar(e,a)),match:(i,a,s={})=>t.match(i,a,ar(e,s)),sep:t.sep,GLOBSTAR:sr})};Tt.defaults=NM;const Lg=(e,t={})=>(rs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:rM(e));Tt.braceExpand=Lg;const jM=(e,t={})=>new Ss(e,t).makeRe();Tt.makeRe=jM;const WM=(e,t,r={})=>{const i=new Ss(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Tt.match=WM;const Xh=/[?*]|[+@!]\(.*?\)|\[|\]/,zM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Ss{constructor(t,r={}){it(this,"options");it(this,"set");it(this,"pattern");it(this,"windowsPathsNoEscape");it(this,"nonegate");it(this,"negate");it(this,"comment");it(this,"empty");it(this,"preserveMultipleSlashes");it(this,"partial");it(this,"globSet");it(this,"globParts");it(this,"nocase");it(this,"isWindows");it(this,"platform");it(this,"windowsNoMagicRoot");it(this,"regexp");rs(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Fg,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,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Xh.test(s[2]))&&!Xh.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});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 f=i[a+1];const d=i[a+2],p=i[a+3];if(f!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const f=i[l];l===1&&f===""&&i[0]===""||(f==="."||f==="")&&(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 d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),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=[],f="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(f==="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(f==="b")return!1;f="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(f==="a")return!1;f="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 y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),A=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),I=!A&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),P=x?3:y?0:void 0,F=I?3:A?0:void 0;if(typeof P=="number"&&typeof F=="number"){const[O,L]=[t[P],r[F]];O.toLowerCase()===L.toLowerCase()&&(r[F]=O,F>P?r=r.slice(F):P>F&&(t=t.slice(P)))}}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,f=0,d=t.length,p=r.length;l<d&&f<p;l++,f++){this.debug("matchOne loop");var h=r[f],b=t[l];if(this.debug(r,h,b),h===!1)return!1;if(h===sr){this.debug("GLOBSTAR",[r,h,b]);var v=l,w=f+1;if(w===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;v<d;){var E=t[v];if(this.debug(`
155
+ globstar while`,t,v,r,w,E),this.matchOne(t.slice(v),r.slice(w),i))return this.debug("globstar found match!",v,d,E),!0;if(E==="."||E===".."||!a.dot&&E.charAt(0)==="."){this.debug("dot detected!",t,v,r,w);break}this.debug("globstar swallow a segment, and continue"),v++}return!!(i&&(this.debug(`
156
+ >>> no match, partial?`,t,v,r,w),v===d))}let y;if(typeof h=="string"?(y=b===h,this.debug("string match",h,b,y)):(y=h.test(b),this.debug("pattern match",h,b,y)),!y)return!1}if(l===d&&f===p)return!0;if(l===d)return i;if(f===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return Lg(this.pattern,this.options)}parse(t){rs(t);const r=this.options;if(t==="**")return sr;if(t==="")return"";let i,a=null;(i=t.match(_M))?a=r.dot?AM:OM:(i=t.match(hM))?a=(r.nocase?r.dot?yM:gM:r.dot?mM:vM)(i[1]):(i=t.match(TM))?a=(r.nocase?r.dot?PM:CM:r.dot?RM:IM)(i):(i=t.match(wM))?a=r.dot?SM:bM:(i=t.match(EM))&&(a=xM);const s=ns.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?LM:r.dot?$M:DM,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const b of h.flags.split(""))a.add(b);return typeof h=="string"?zM(h):h===sr?sr:h._src});return p.forEach((h,b)=>{const v=p[b+1],w=p[b-1];h!==sr||w===sr||(w===void 0?v!==void 0&&v!==sr?p[b+1]="(?:\\/|"+i+"\\/)?"+v:p[b]=i:v===void 0?p[b-1]=w+"(?:\\/|"+i+")?":v!==sr&&(p[b-1]=w+"(?:\\/|\\/"+i+"\\/)"+v,p[b+1]=sr))}),p.filter(h=>h!==sr).join("/")}).join("|");const[l,f]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+f+"$",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 f=a.length-2;!l&&f>=0;f--)l=a[f];for(let f=0;f<s.length;f++){const d=s[f];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Tt.defaults(t).Minimatch}}Tt.AST=ns;Tt.Minimatch=Ss;Tt.escape=pM;Tt.unescape=Vi;const Hf="/$shared",UM={"**/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"]}},"**/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"}},"**/*.json":{parser:"json",content:{}}};function $g(e){const t=Object.entries(UM).find(([r])=>Tt(e,r));return t==null?void 0:t[1]}function qf(e){var i;const t=(i=$g(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Hf}/`,"Shared/");Zf({name:r,content:t,asText:typeof t=="string"})}function Es({path:e,createIfNotExists:t=!1}){const r=`${Hf}/${e}`;return De(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=$g(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 bg().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(BM(i)&&t){const a=HM(i,e);Um.next({message:a,kind:"warning"}),qf(r)}throw i})}function BM(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 HM(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 qM(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZM(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Dg=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:$f.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function GM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?f:l:a.webServerHTTPPort?l:f})();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),Dg()}}async function kg(e){return await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function KM(...e){return(await Promise.all(e.map(i=>kg({root:i,verb:Xn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function YM(e,t={}){const{sanitize:r=!0}=t;return De(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:tt.entries(i.components).map(([s,l])=>{const f=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=gf.generate();a.set(s,p),s=p}return[s,l,f]}).reduce((s,[l,f,d])=>{var p;return f.nodes&&(f.nodes=f.nodes.map(h=>a.get(h)||h)),f.linkedNodes&&(f.linkedNodes=tt.entries(f.linkedNodes).reduce((h,[b,v])=>({...h,[b]:a.get(v)||v}),{})),(p=f.props)!=null&&p.events&&(f.props.events=f.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...f,props:{...f.props,__originalID:d}}}},{})}})}function VM(e){return De(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ur.METHOD,ur.CLASS].includes(t.type)?ws(t.content):t.content}))}function XM(e){return e.type==="folder"?De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function JM(e){return e.type==="folder"?(await De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function QM(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function e2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function t2(e){return(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function r2(...e){return await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function n2(e){const t=await De("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function i2(){return await De("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function o2({name:e,path:t="",root:r="root",asText:i=!1}){return De(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function a2(e={}){try{return await Es({path:"shared_datasources.json",...e})}catch{return{}}}async function s2(e={}){try{return await Es({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function u2(e={}){try{return await Es({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function l2(){try{return await De("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function f2(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const c2=Jm(),d2=async e=>{const t={verb:Xn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return c2(async()=>(await De(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Zf=async e=>{const t=await De(at,{method:"POST",body:JSON.stringify({...e,verb:Xn.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Vm(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},p2=async e=>await Zf({name:"crafted_components.json",path:wn.WEBFORMS,content:e});function h2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function v2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function m2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function g2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?ws(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&&qf(e.path),t})}function y2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function w2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function b2(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 S2(e){const t=w2(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=b2(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function E2(e,t){const i=e.split(".").pop();try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=ws(a.content);const{params:s,result:l}=S2(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var Ng=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Ng||{});function x2(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function _2(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var jg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(jg||{}),Wg=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(Wg||{}),zg=(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))(zg||{}),Ug=(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))(Ug||{});const O2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},A2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=vR;exports.ControlledSwitch=Tm;exports.DATASOURCE_THEMES=O2;exports.DatasourcesActions=zm;exports.DebuggerActions=qm;exports.DesignerRequestVerb=Xn;exports.Dialog=j_;exports.DialogBody=cv;exports.EActivity=Ng;exports.EDITOR=A2;exports.EIDENTIFIERS=zg;exports.ERROR_CODES=Ug;exports.EWebFormStyleClassScope=jg;exports.EXT_API_PREFIX=To;exports.FileFolderType=ur;exports.FolderRootPath=wn;exports.FolderRootType=Lf;exports.HTTPError=tf;exports.HTTP_HANDLERS_PATH=Ym;exports.IPreemptive=fo;exports.IPublished=ag;exports.IPublishedRestScope=Df;exports.IdentityProvider=NR;exports.Incase=EA;exports.IndentLines=Dv;exports.LogoSVG=Cm;exports.LspActions=Hm;exports.MAX_FILE_NAME_LENGTH=Mf;exports.MODEL_TAB_PATH=uI;exports.Modal=gR;exports.ModalCloseReason=vi;exports.ModalColor=Hn;exports.ModalIcons=Jl;exports.ModalType=Rf;exports.Mutex=Xm;exports.NameError=Ff;exports.Overlay=fv;exports.Portal=Qh;exports.PublishOptions=MI;exports.ROLES_TAB_PATH=Gm;exports.RemoteDebuggerMode=$f;exports.SETTINGS_TAB_PATH=Km;exports.SHARED_API_PREFIX=Hf;exports.SourceCodeDescriptor=Wg;exports.Switcher=kv;exports.TabEventsActions=Bm;exports.Tip=gP;exports.TipsProvider=vP;exports.Toast=HO;exports.Tooltip=pR;exports.Tree=SA;exports.TreeIcon=Iv;exports.TreeNode=yf;exports.WebformActions=Wm;exports._isArrayDatasource=CI;exports._isObjectDatasource=PI;exports.addAttributesToContent=LI;exports.addFolder=QM;exports.by=Qm;exports.byId=pI;exports.byPath=hI;exports.checkUpdates=qM;exports.createFolder=h2;exports.datasourcesSubject=tI;exports.debuggerSubject=oI;exports.dropFile=JM;exports.dropFolder=t2;exports.exists=vI;exports.extractWebformName=fI;exports.generateUUID=$I;exports.getAppSettings=GM;exports.getCatalog=i2;exports.getDatasourceId=mI;exports.getDefaultAppSettings=Dg;exports.getFile=VM;exports.getFileContent=o2;exports.getFileExtentionFromType=lI;exports.getFilesInfo=r2;exports.getFolder=kg;exports.getFolders=KM;exports.getFunctionContent=E2;exports.getMonacoTheme=f2;exports.getNodeInfo=g2;exports.getSavedConditions=u2;exports.getSharedCSS=s2;exports.getSharedDatasources=a2;exports.getSharedResource=Es;exports.getTypeFromExtension=Vm;exports.getUserPrivileges=l2;exports.getWebForm=YM;exports.hasAttributesString=ug;exports.http=De;exports.installUpdates=ZM;exports.isArrayDatasource=ng;exports.isDataClassMethod=bI;exports.isDataStoreMethod=wI;exports.isDateDatasource=RI;exports.isEntity=AI;exports.isEntityDatasource=xI;exports.isEntityMethod=SI;exports.isEntitySelection=TI;exports.isEntitySelectionDatasource=_I;exports.isEntitySelectionMethod=EI;exports.isObjectAttribute=gI;exports.isObjectDatasource=ig;exports.isRelatedAttribute=yI;exports.isRelatedEntitiesAttribute=tg;exports.isRelatedEntityAttribute=rg;exports.isScalarDatasource=og;exports.isSimpleAttribute=eg;exports.isSimpleDatasource=OI;exports.loadDS=II;exports.log=x2;exports.login=n2;exports.lspSubject=iI;exports.moveItem=m2;exports.outBy=cI;exports.outById=dI;exports.parseAttributes=FI;exports.queue=Jm;exports.removeAttributesString=lg;exports.removeItem=v2;exports.renameFile=XM;exports.renameFolder=e2;exports.sanitizeContent=ws;exports.saveContent=y2;exports.setCraftedComponents=p2;exports.setFileContent=Zf;exports.setSharedSources=d2;exports.stringifyAttributes=sg;exports.tabEventsSubject=nI;exports.toastSubject=Um;exports.trackEvent=_2;exports.transformDates=DI;exports.tryCreateSharedResource=qf;exports.useDidMountEffect=bR;exports.useDoubleClick=UR;exports.useFeatureFlags=kR;exports.useForwardedRef=DR;exports.useHotkeys=MR;exports.useIdentity=jR;exports.useOutsideClick=FR;exports.usePrevious=LR;exports.useStateObject=WR;exports.useStateRef=$R;exports.useTip=vm;exports.validateName=Zm;exports.validateServerSide=aI;exports.validateValue=sI;exports.webformSubject=rI;
157
157
  //# sourceMappingURL=index.cjs.js.map