@ws-ui/shared 1.10.4-rc2 → 1.11.0
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/declarations/datasources/datasource.d.ts +390 -390
- package/dist/declarations/datasources/methods.d.ts +96 -96
- package/dist/declarations/index.d.ts +11 -11
- package/dist/declarations/webform/webform.d.ts +289 -289
- package/dist/index.cjs.js +115 -163
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9660 -17879
- package/dist/index.es.js.map +1 -1
- package/dist/shared.css +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/modal.d.ts +0 -7
- package/dist/utils/index.d.ts +0 -1
- package/package.json +3 -2
- package/dist/types/roles.d.ts +0 -105
- package/dist/utils/roles.d.ts +0 -54
package/dist/index.cjs.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
"use strict";var wR=Object.defineProperty;var sv=e=>{throw TypeError(e)};var xR=(e,t,r)=>t in e?wR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ke=(e,t,r)=>xR(e,typeof t!="symbol"?t+"":t,r),Fc=(e,t,r)=>t.has(e)||sv("Cannot "+r);var fe=(e,t,r)=>(Fc(e,t,"read from private field"),r?r.call(e):t.get(e)),$t=(e,t,r)=>t.has(e)?sv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ft=(e,t,r,n)=>(Fc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Fe=(e,t,r)=>(Fc(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),j=require("react"),lo=require("react-dom"),vt=require("@ws-ui/icons"),Vf=require("@emotion/react");function j0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const L=j0(j),SR=j0(lo),F0=({children:e,container:t=document.body})=>lo.createPortal(e,t);var lv=function(t){return t.reduce(function(r,n){var o=n[0],a=n[1];return r[o]=a,r},{})},uv=typeof window<"u"&&window.document&&window.document.createElement?L.useLayoutEffect:L.useEffect,Yt="top",Er="bottom",kr="right",Xt="left",Ed="auto",Ia=[Yt,Er,kr,Xt],eo="start",ya="end",_R="clippingParents",H0="viewport",Po="popper",ER="reference",cv=Ia.reduce(function(e,t){return e.concat([t+"-"+eo,t+"-"+ya])},[]),W0=[].concat(Ia,[Ed]).reduce(function(e,t){return e.concat([t,t+"-"+eo,t+"-"+ya])},[]),kR="beforeRead",OR="read",AR="afterRead",TR="beforeMain",RR="main",CR="afterMain",PR="beforeWrite",IR="write",NR="afterWrite",MR=[kR,OR,AR,TR,RR,CR,PR,IR,NR];function Yr(e){return e?(e.nodeName||"").toLowerCase():null}function lr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bi(e){var t=lr(e).Element;return e instanceof t||e instanceof Element}function _r(e){var t=lr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function kd(e){if(typeof ShadowRoot>"u")return!1;var t=lr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function DR(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!_r(a)||!Yr(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var u=o[l];u===!1?a.removeAttribute(l):a.setAttribute(l,u===!0?"":u)}))})}function $R(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=l.reduce(function(c,d){return c[d]="",c},{});!_r(o)||!Yr(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const LR={name:"applyStyles",enabled:!0,phase:"write",fn:DR,effect:$R,requires:["computeStyles"]};function Zr(e){return e.split("-")[0]}var vi=Math.max,Al=Math.min,to=Math.round;function qf(){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 B0(){return!/^((?!chrome|android).)*safari/i.test(qf())}function ro(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&_r(e)&&(o=e.offsetWidth>0&&to(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&to(n.height)/e.offsetHeight||1);var l=bi(e)?lr(e):window,u=l.visualViewport,c=!B0()&&r,d=(n.left+(c&&u?u.offsetLeft:0))/o,p=(n.top+(c&&u?u.offsetTop:0))/a,h=n.width/o,g=n.height/a;return{width:h,height:g,top:p,right:d+h,bottom:p+g,left:d,x:d,y:p}}function Od(e){var t=ro(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function U0(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&kd(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yn(e){return lr(e).getComputedStyle(e)}function zR(e){return["table","td","th"].indexOf(Yr(e))>=0}function qn(e){return((bi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zl(e){return Yr(e)==="html"?e:e.assignedSlot||e.parentNode||(kd(e)?e.host:null)||qn(e)}function fv(e){return!_r(e)||yn(e).position==="fixed"?null:e.offsetParent}function jR(e){var t=/firefox/i.test(qf()),r=/Trident/i.test(qf());if(r&&_r(e)){var n=yn(e);if(n.position==="fixed")return null}var o=Zl(e);for(kd(o)&&(o=o.host);_r(o)&&["html","body"].indexOf(Yr(o))<0;){var a=yn(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Na(e){for(var t=lr(e),r=fv(e);r&&zR(r)&&yn(r).position==="static";)r=fv(r);return r&&(Yr(r)==="html"||Yr(r)==="body"&&yn(r).position==="static")?t:r||jR(e)||t}function Ad(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pa(e,t,r){return vi(e,Al(t,r))}function FR(e,t,r){var n=pa(e,t,r);return n>r?r:n}function V0(){return{top:0,right:0,bottom:0,left:0}}function q0(e){return Object.assign({},V0(),e)}function G0(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var HR=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,q0(typeof t!="number"?t:G0(t,Ia))};function WR(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,u=Zr(r.placement),c=Ad(u),d=[Xt,kr].indexOf(u)>=0,p=d?"height":"width";if(!(!a||!l)){var h=HR(o.padding,r),g=Od(a),y=c==="y"?Yt:Xt,S=c==="y"?Er:kr,v=r.rects.reference[p]+r.rects.reference[c]-l[c]-r.rects.popper[p],b=l[c]-r.rects.reference[c],m=Na(a),w=m?c==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-b/2,k=h[y],E=w-g[p]-h[S],R=w/2-g[p]/2+x,F=pa(k,R,E),A=c;r.modifiersData[n]=(t={},t[A]=F,t.centerOffset=F-R,t)}}function BR(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||U0(t.elements.popper,o)&&(t.elements.arrow=o))}const UR={name:"arrow",enabled:!0,phase:"main",fn:WR,effect:BR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(e){return e.split("-")[1]}var VR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qR(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:to(r*o)/o||0,y:to(n*o)/o||0}}function dv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=l.x,y=g===void 0?0:g,S=l.y,v=S===void 0?0:S,b=typeof p=="function"?p({x:y,y:v}):{x:y,y:v};y=b.x,v=b.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=Xt,k=Yt,E=window;if(d){var R=Na(r),F="clientHeight",A="clientWidth";if(R===lr(r)&&(R=qn(r),yn(R).position!=="static"&&u==="absolute"&&(F="scrollHeight",A="scrollWidth")),R=R,o===Yt||(o===Xt||o===kr)&&a===ya){k=Er;var P=h&&R===E&&E.visualViewport?E.visualViewport.height:R[F];v-=P-n.height,v*=c?1:-1}if(o===Xt||(o===Yt||o===Er)&&a===ya){x=kr;var B=h&&R===E&&E.visualViewport?E.visualViewport.width:R[A];y-=B-n.width,y*=c?1:-1}}var $=Object.assign({position:u},d&&VR),M=p===!0?qR({x:y,y:v},lr(r)):{x:y,y:v};if(y=M.x,v=M.y,c){var U;return Object.assign({},$,(U={},U[k]=w?"0":"",U[x]=m?"0":"",U.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+v+"px)":"translate3d("+y+"px, "+v+"px, 0)",U))}return Object.assign({},$,(t={},t[k]=w?v+"px":"",t[x]=m?y+"px":"",t.transform="",t))}function GR(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,u=r.roundOffsets,c=u===void 0?!0:u,d={placement:Zr(t.placement),variation:no(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,dv(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,dv(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ZR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GR,data:{}};var Is={passive:!0};function KR(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,u=l===void 0?!0:l,c=lr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",r.update,Is)}),u&&c.addEventListener("resize",r.update,Is),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",r.update,Is)}),u&&c.removeEventListener("resize",r.update,Is)}}const YR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KR,data:{}};var XR={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return XR[t]})}var JR={start:"end",end:"start"};function pv(e){return e.replace(/start|end/g,function(t){return JR[t]})}function Td(e){var t=lr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Rd(e){return ro(qn(e)).left+Td(e).scrollLeft}function QR(e,t){var r=lr(e),n=qn(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,c=0;if(o){a=o.width,l=o.height;var d=B0();(d||!d&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:l,x:u+Rd(e),y:c}}function eC(e){var t,r=qn(e),n=Td(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=vi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=vi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+Rd(e),c=-n.scrollTop;return yn(o||r).direction==="rtl"&&(u+=vi(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:u,y:c}}function Cd(e){var t=yn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Z0(e){return["html","body","#document"].indexOf(Yr(e))>=0?e.ownerDocument.body:_r(e)&&Cd(e)?e:Z0(Zl(e))}function ha(e,t){var r;t===void 0&&(t=[]);var n=Z0(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=lr(n),l=o?[a].concat(a.visualViewport||[],Cd(n)?n:[]):n,u=t.concat(l);return o?u:u.concat(ha(Zl(l)))}function Gf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tC(e,t){var r=ro(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 hv(e,t,r){return t===H0?Gf(QR(e,r)):bi(t)?tC(t,r):Gf(eC(qn(e)))}function rC(e){var t=ha(Zl(e)),r=["absolute","fixed"].indexOf(yn(e).position)>=0,n=r&&_r(e)?Na(e):e;return bi(n)?t.filter(function(o){return bi(o)&&U0(o,n)&&Yr(o)!=="body"}):[]}function nC(e,t,r,n){var o=t==="clippingParents"?rC(e):[].concat(t),a=[].concat(o,[r]),l=a[0],u=a.reduce(function(c,d){var p=hv(e,d,n);return c.top=vi(p.top,c.top),c.right=Al(p.right,c.right),c.bottom=Al(p.bottom,c.bottom),c.left=vi(p.left,c.left),c},hv(e,l,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function K0(e){var t=e.reference,r=e.element,n=e.placement,o=n?Zr(n):null,a=n?no(n):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(o){case Yt:c={x:l,y:t.y-r.height};break;case Er:c={x:l,y:t.y+t.height};break;case kr:c={x:t.x+t.width,y:u};break;case Xt:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var d=o?Ad(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case eo:c[d]=c[d]-(t[p]/2-r[p]/2);break;case ya:c[d]=c[d]+(t[p]/2-r[p]/2);break}}return c}function wa(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,u=r.boundary,c=u===void 0?_R:u,d=r.rootBoundary,p=d===void 0?H0:d,h=r.elementContext,g=h===void 0?Po:h,y=r.altBoundary,S=y===void 0?!1:y,v=r.padding,b=v===void 0?0:v,m=q0(typeof b!="number"?b:G0(b,Ia)),w=g===Po?ER:Po,x=e.rects.popper,k=e.elements[S?w:g],E=nC(bi(k)?k:k.contextElement||qn(e.elements.popper),c,p,l),R=ro(e.elements.reference),F=K0({reference:R,element:x,placement:o}),A=Gf(Object.assign({},x,F)),P=g===Po?A:R,B={top:E.top-P.top+m.top,bottom:P.bottom-E.bottom+m.bottom,left:E.left-P.left+m.left,right:P.right-E.right+m.right},$=e.modifiersData.offset;if(g===Po&&$){var M=$[o];Object.keys(B).forEach(function(U){var H=[kr,Er].indexOf(U)>=0?1:-1,I=[Yt,Er].indexOf(U)>=0?"y":"x";B[U]+=M[I]*H})}return B}function iC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,d=c===void 0?W0:c,p=no(n),h=p?u?cv:cv.filter(function(S){return no(S)===p}):Ia,g=h.filter(function(S){return d.indexOf(S)>=0});g.length===0&&(g=h);var y=g.reduce(function(S,v){return S[v]=wa(e,{placement:v,boundary:o,rootBoundary:a,padding:l})[Zr(v)],S},{});return Object.keys(y).sort(function(S,v){return y[S]-y[v]})}function oC(e){if(Zr(e)===Ed)return[];var t=dl(e);return[pv(e),t,pv(t)]}function aC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,u=l===void 0?!0:l,c=r.fallbackPlacements,d=r.padding,p=r.boundary,h=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,v=r.allowedAutoPlacements,b=t.options.placement,m=Zr(b),w=m===b,x=c||(w||!S?[dl(b)]:oC(b)),k=[b].concat(x).reduce(function(J,se){return J.concat(Zr(se)===Ed?iC(t,{placement:se,boundary:p,rootBoundary:h,padding:d,flipVariations:S,allowedAutoPlacements:v}):se)},[]),E=t.rects.reference,R=t.rects.popper,F=new Map,A=!0,P=k[0],B=0;B<k.length;B++){var $=k[B],M=Zr($),U=no($)===eo,H=[Yt,Er].indexOf(M)>=0,I=H?"width":"height",K=wa(t,{placement:$,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),X=H?U?kr:Xt:U?Er:Yt;E[I]>R[I]&&(X=dl(X));var Z=dl(X),ve=[];if(a&&ve.push(K[M]<=0),u&&ve.push(K[X]<=0,K[Z]<=0),ve.every(function(J){return J})){P=$,A=!1;break}F.set($,ve)}if(A)for(var z=S?3:1,q=function(se){var ae=k.find(function(oe){var ce=F.get(oe);if(ce)return ce.slice(0,se).every(function(pe){return pe})});if(ae)return P=ae,"break"},re=z;re>0;re--){var ee=q(re);if(ee==="break")break}t.placement!==P&&(t.modifiersData[n]._skip=!0,t.placement=P,t.reset=!0)}}const sC={name:"flip",enabled:!0,phase:"main",fn:aC,requiresIfExists:["offset"],data:{_skip:!1}};function gv(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 vv(e){return[Yt,kr,Er,Xt].some(function(t){return e[t]>=0})}function lC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=wa(t,{elementContext:"reference"}),u=wa(t,{altBoundary:!0}),c=gv(l,n),d=gv(u,o,a),p=vv(c),h=vv(d);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const uC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lC};function cC(e,t,r){var n=Zr(e),o=[Xt,Yt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],u=a[1];return l=l||0,u=(u||0)*o,[Xt,kr].indexOf(n)>=0?{x:u,y:l}:{x:l,y:u}}function fC(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,l=W0.reduce(function(p,h){return p[h]=cC(h,t.rects,a),p},{}),u=l[t.placement],c=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=l}const dC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fC};function pC(e){var t=e.state,r=e.name;t.modifiersData[r]=K0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hC={name:"popperOffsets",enabled:!0,phase:"read",fn:pC,data:{}};function gC(e){return e==="x"?"y":"x"}function vC(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,u=l===void 0?!1:l,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.padding,g=r.tether,y=g===void 0?!0:g,S=r.tetherOffset,v=S===void 0?0:S,b=wa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),m=Zr(t.placement),w=no(t.placement),x=!w,k=Ad(m),E=gC(k),R=t.modifiersData.popperOffsets,F=t.rects.reference,A=t.rects.popper,P=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,B=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(a){var U,H=k==="y"?Yt:Xt,I=k==="y"?Er:kr,K=k==="y"?"height":"width",X=R[k],Z=X+b[H],ve=X-b[I],z=y?-A[K]/2:0,q=w===eo?F[K]:A[K],re=w===eo?-A[K]:-F[K],ee=t.elements.arrow,J=y&&ee?Od(ee):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V0(),ae=se[H],oe=se[I],ce=pa(0,F[K],J[K]),pe=x?F[K]/2-z-ce-ae-B.mainAxis:q-ce-ae-B.mainAxis,de=x?-F[K]/2+z+ce+oe+B.mainAxis:re+ce+oe+B.mainAxis,xe=t.elements.arrow&&Na(t.elements.arrow),Y=xe?k==="y"?xe.clientTop||0:xe.clientLeft||0:0,ze=(U=$==null?void 0:$[k])!=null?U:0,ge=X+pe-ze-Y,At=X+de-ze,Qr=pa(y?Al(Z,ge):Z,X,y?vi(ve,At):ve);R[k]=Qr,M[k]=Qr-X}if(u){var jt,Wa=k==="x"?Yt:Xt,bu=k==="x"?Er:kr,Jt=R[E],Nt=E==="y"?"height":"width",xn=Jt+b[Wa],Yn=Jt-b[bu],go=[Yt,Xt].indexOf(m)!==-1,Sn=(jt=$==null?void 0:$[E])!=null?jt:0,Ba=go?xn:Jt-F[Nt]-A[Nt]-Sn+B.altAxis,_n=go?Jt+F[Nt]+A[Nt]-Sn-B.altAxis:Yn,en=y&&go?FR(Ba,Jt,_n):pa(y?Ba:xn,Jt,y?_n:Yn);R[E]=en,M[E]=en-Jt}t.modifiersData[n]=M}}const mC={name:"preventOverflow",enabled:!0,phase:"main",fn:vC,requiresIfExists:["offset"]};function bC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yC(e){return e===lr(e)||!_r(e)?Td(e):bC(e)}function wC(e){var t=e.getBoundingClientRect(),r=to(t.width)/e.offsetWidth||1,n=to(t.height)/e.offsetHeight||1;return r!==1||n!==1}function xC(e,t,r){r===void 0&&(r=!1);var n=_r(t),o=_r(t)&&wC(t),a=qn(t),l=ro(e,o,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Yr(t)!=="body"||Cd(a))&&(u=yC(t)),_r(t)?(c=ro(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Rd(a))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function SC(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function _C(e){var t=SC(e);return MR.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function EC(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function kC(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var mv={placement:"bottom",modifiers:[],strategy:"absolute"};function bv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function OC(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?mv:o;return function(u,c,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},mv,a),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(m){var w=typeof m=="function"?m(p.options):m;v(),p.options=Object.assign({},a,p.options,w),p.scrollParents={reference:bi(u)?ha(u):u.contextElement?ha(u.contextElement):[],popper:ha(c)};var x=_C(kC([].concat(n,p.options.modifiers)));return p.orderedModifiers=x.filter(function(k){return k.enabled}),S(),y.update()},forceUpdate:function(){if(!g){var m=p.elements,w=m.reference,x=m.popper;if(bv(w,x)){p.rects={reference:xC(w,Na(x),p.options.strategy==="fixed"),popper:Od(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(B){return p.modifiersData[B.name]=Object.assign({},B.data)});for(var k=0;k<p.orderedModifiers.length;k++){if(p.reset===!0){p.reset=!1,k=-1;continue}var E=p.orderedModifiers[k],R=E.fn,F=E.options,A=F===void 0?{}:F,P=E.name;typeof R=="function"&&(p=R({state:p,options:A,name:P,instance:y})||p)}}}},update:EC(function(){return new Promise(function(b){y.forceUpdate(),b(p)})}),destroy:function(){v(),g=!0}};if(!bv(u,c))return y;y.setOptions(d).then(function(b){!g&&d.onFirstUpdate&&d.onFirstUpdate(b)});function S(){p.orderedModifiers.forEach(function(b){var m=b.name,w=b.options,x=w===void 0?{}:w,k=b.effect;if(typeof k=="function"){var E=k({state:p,name:m,instance:y,options:x}),R=function(){};h.push(E||R)}})}function v(){h.forEach(function(b){return b()}),h=[]}return y}}var AC=[YR,hC,ZR,LR,dC,sC,mC,UR,uC],TC=OC({defaultModifiers:AC}),Ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hc,yv;function RC(){if(yv)return Hc;yv=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var u,c,d;if(Array.isArray(a)){if(u=a.length,u!=l.length)return!1;for(c=u;c--!==0;)if(!o(a[c],l[c]))return!1;return!0}var p;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(p=a.entries();!(c=p.next()).done;)if(!l.has(c.value[0]))return!1;for(p=a.entries();!(c=p.next()).done;)if(!o(c.value[1],l.get(c.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(p=a.entries();!(c=p.next()).done;)if(!l.has(c.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(u=a.length,u!=l.length)return!1;for(c=u;c--!==0;)if(a[c]!==l[c])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(d=Object.keys(a),u=d.length,u!==Object.keys(l).length)return!1;for(c=u;c--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[c]))return!1;if(e&&a instanceof Element)return!1;for(c=u;c--!==0;)if(!((d[c]==="_owner"||d[c]==="__v"||d[c]==="__o")&&a.$$typeof)&&!o(a[d[c]],l[d[c]]))return!1;return!0}return a!==a&&l!==l}return Hc=function(l,u){try{return o(l,u)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},Hc}var CC=RC();const PC=Y0(CC);var IC=[],X0=function(t,r,n){n===void 0&&(n={});var o=L.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||IC},l=L.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=l[0],c=l[1],d=L.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var S=y.state,v=Object.keys(S.elements);SR.flushSync(function(){c({styles:lv(v.map(function(b){return[b,S.styles[b]||{}]})),attributes:lv(v.map(function(b){return[b,S.attributes[b]]}))})})},requires:["computeStyles"]}},[]),p=L.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[d,{name:"applyStyles",enabled:!1}])};return PC(o.current,g)?o.current||g:(o.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,d]),h=L.useRef();return uv(function(){h.current&&h.current.setOptions(p)},[p]),uv(function(){if(!(t==null||r==null)){var g=n.createPopper||TC,y=g(t,r,p);return h.current=y,function(){y.destroy(),h.current=null}}},[t,r,n.createPopper]),{state:h.current?h.current.state:null,styles:u.styles,attributes:u.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const J0=e=>N.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Q0=j.forwardRef(({children:e,style:t,attributes:r},n)=>N.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),NC=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:o})=>{const[a,l]=j.useState(null),{styles:u,attributes:c}=X0(e,a,{placement:t||"bottom-start"}),d=j.useCallback(()=>{o&&o()},[o]);return r?N.jsxs(F0,{children:[N.jsx(J0,{onClick:()=>d()}),N.jsx(Q0,{ref:l,style:u.popper,attributes:c.popper,children:n})]}):null};var Wc={exports:{}};/*!
|
|
1
|
+
"use strict";var pO=Object.defineProperty;var sh=e=>{throw TypeError(e)};var hO=(e,t,r)=>t in e?pO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var me=(e,t,r)=>hO(e,typeof t!="symbol"?t+"":t,r),gl=(e,t,r)=>t.has(e)||sh("Cannot "+r);var re=(e,t,r)=>(gl(e,t,"read from private field"),r?r.call(e):t.get(e)),xt=(e,t,r)=>t.has(e)?sh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ye=(e,t,r,i)=>(gl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(gl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),W=require("react"),Fo=require("react-dom"),tt=require("@ws-ui/icons"),sc=require("@emotion/react"),gO=require("re-resizable");function zv(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 $=zv(W),vO=zv(Fo),Wv=({children:e,container:t=document.body})=>Fo.createPortal(e,t);var ah=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},uh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,It="top",or="bottom",sr="right",Lt="left",Ic="auto",Do=[It,or,sr,Lt],mi="start",Oo="end",mO="clippingParents",Bv="viewport",Bi="popper",yO="reference",lh=Do.reduce(function(e,t){return e.concat([t+"-"+mi,t+"-"+Oo])},[]),Uv=[].concat(Do,[Ic]).reduce(function(e,t){return e.concat([t,t+"-"+mi,t+"-"+Oo])},[]),bO="beforeRead",wO="read",xO="afterRead",SO="beforeMain",EO="main",_O="afterMain",OO="beforeWrite",AO="write",TO="afterWrite",RO=[bO,wO,xO,SO,EO,_O,OO,AO,TO];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function Ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wn(e){var t=Ht(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lc(e){if(typeof ShadowRoot>"u")return!1;var t=Ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function PO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!ir(a)||!Pr(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(l){var c=s[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function CO(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],a=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(f,m){return f[m]="",f},{});!ir(s)||!Pr(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const kO={name:"applyStyles",enabled:!0,phase:"write",fn:PO,effect:CO,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var jn=Math.max,ha=Math.min,yi=Math.round;function ac(){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 Hv(){return!/^((?!chrome|android).)*safari/i.test(ac())}function bi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&ir(e)&&(s=e.offsetWidth>0&&yi(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&yi(i.height)/e.offsetHeight||1);var l=Wn(e)?Ht(e):window,c=l.visualViewport,f=!Hv()&&r,m=(i.left+(f&&c?c.offsetLeft:0))/s,v=(i.top+(f&&c?c.offsetTop:0))/a,g=i.width/s,p=i.height/a;return{width:g,height:p,top:v,right:m+g,bottom:v+p,left:m,x:m,y:v}}function Mc(e){var t=bi(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function qv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Lc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Gr(e){return Ht(e).getComputedStyle(e)}function $O(e){return["table","td","th"].indexOf(Pr(e))>=0}function vn(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pa(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(Lc(e)?e.host:null)||vn(e)}function ch(e){return!ir(e)||Gr(e).position==="fixed"?null:e.offsetParent}function IO(e){var t=/firefox/i.test(ac()),r=/Trident/i.test(ac());if(r&&ir(e)){var i=Gr(e);if(i.position==="fixed")return null}var s=Pa(e);for(Lc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf(Pr(s))<0;){var a=Gr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function No(e){for(var t=Ht(e),r=ch(e);r&&$O(r)&&Gr(r).position==="static";)r=ch(r);return r&&(Pr(r)==="html"||Pr(r)==="body"&&Gr(r).position==="static")?t:r||IO(e)||t}function Fc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wo(e,t,r){return jn(e,ha(t,r))}function LO(e,t,r){var i=wo(e,t,r);return i>r?r:i}function Zv(){return{top:0,right:0,bottom:0,left:0}}function Gv(e){return Object.assign({},Zv(),e)}function Kv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var MO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Gv(typeof t!="number"?t:Kv(t,Do))};function FO(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Tr(r.placement),f=Fc(c),m=[Lt,sr].indexOf(c)>=0,v=m?"height":"width";if(!(!a||!l)){var g=MO(s.padding,r),p=Mc(a),b=f==="y"?It:Lt,x=f==="y"?or:sr,d=r.rects.reference[v]+r.rects.reference[f]-l[f]-r.rects.popper[v],w=l[f]-r.rects.reference[f],h=No(a),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=g[b],O=S-p[v]-g[x],k=S/2-p[v]/2+E,B=wo(R,k,O),M=f;r.modifiersData[i]=(t={},t[M]=B,t.centerOffset=B-k,t)}}function DO(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||qv(t.elements.popper,s)&&(t.elements.arrow=s))}const NO={name:"arrow",enabled:!0,phase:"main",fn:FO,effect:DO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wi(e){return e.split("-")[1]}var jO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zO(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:yi(r*s)/s||0,y:yi(i*s)/s||0}}function fh(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,c=e.position,f=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,g=e.isFixed,p=l.x,b=p===void 0?0:p,x=l.y,d=x===void 0?0:x,w=typeof v=="function"?v({x:b,y:d}):{x:b,y:d};b=w.x,d=w.y;var h=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=Lt,R=It,O=window;if(m){var k=No(r),B="clientHeight",M="clientWidth";if(k===Ht(r)&&(k=vn(r),Gr(k).position!=="static"&&c==="absolute"&&(B="scrollHeight",M="scrollWidth")),k=k,s===It||(s===Lt||s===sr)&&a===Oo){R=or;var F=g&&k===O&&O.visualViewport?O.visualViewport.height:k[B];d-=F-i.height,d*=f?1:-1}if(s===Lt||(s===It||s===or)&&a===Oo){E=sr;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[M];b-=G-i.width,b*=f?1:-1}}var j=Object.assign({position:c},m&&jO),L=v===!0?zO({x:b,y:d},Ht(r)):{x:b,y:d};if(b=L.x,d=L.y,f){var U;return Object.assign({},j,(U={},U[R]=S?"0":"",U[E]=h?"0":"",U.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+d+"px)":"translate3d("+b+"px, "+d+"px, 0)",U))}return Object.assign({},j,(t={},t[R]=S?d+"px":"",t[E]=h?b+"px":"",t.transform="",t))}function WO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,m={placement:Tr(t.placement),variation:wi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,fh(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,fh(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const BO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:WO,data:{}};var Fs={passive:!0};function UO(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,l=i.resize,c=l===void 0?!0:l,f=Ht(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(v){v.addEventListener("scroll",r.update,Fs)}),c&&f.addEventListener("resize",r.update,Fs),function(){a&&m.forEach(function(v){v.removeEventListener("scroll",r.update,Fs)}),c&&f.removeEventListener("resize",r.update,Fs)}}const HO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UO,data:{}};var qO={left:"right",right:"left",bottom:"top",top:"bottom"};function ia(e){return e.replace(/left|right|bottom|top/g,function(t){return qO[t]})}var ZO={start:"end",end:"start"};function dh(e){return e.replace(/start|end/g,function(t){return ZO[t]})}function Dc(e){var t=Ht(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Nc(e){return bi(vn(e)).left+Dc(e).scrollLeft}function GO(e,t){var r=Ht(e),i=vn(e),s=r.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,f=0;if(s){a=s.width,l=s.height;var m=Hv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:l,x:c+Nc(e),y:f}}function KO(e){var t,r=vn(e),i=Dc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=jn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=jn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Nc(e),f=-i.scrollTop;return Gr(s||r).direction==="rtl"&&(c+=jn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:c,y:f}}function jc(e){var t=Gr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function Vv(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:ir(e)&&jc(e)?e:Vv(Pa(e))}function xo(e,t){var r;t===void 0&&(t=[]);var i=Vv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Ht(i),l=s?[a].concat(a.visualViewport||[],jc(i)?i:[]):i,c=t.concat(l);return s?c:c.concat(xo(Pa(l)))}function uc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VO(e,t){var r=bi(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ph(e,t,r){return t===Bv?uc(GO(e,r)):Wn(t)?VO(t,r):uc(KO(vn(e)))}function XO(e){var t=xo(Pa(e)),r=["absolute","fixed"].indexOf(Gr(e).position)>=0,i=r&&ir(e)?No(e):e;return Wn(i)?t.filter(function(s){return Wn(s)&&qv(s,i)&&Pr(s)!=="body"}):[]}function YO(e,t,r,i){var s=t==="clippingParents"?XO(e):[].concat(t),a=[].concat(s,[r]),l=a[0],c=a.reduce(function(f,m){var v=ph(e,m,i);return f.top=jn(v.top,f.top),f.right=ha(v.right,f.right),f.bottom=ha(v.bottom,f.bottom),f.left=jn(v.left,f.left),f},ph(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Xv(e){var t=e.reference,r=e.element,i=e.placement,s=i?Tr(i):null,a=i?wi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case It:f={x:l,y:t.y-r.height};break;case or:f={x:l,y:t.y+t.height};break;case sr:f={x:t.x+t.width,y:c};break;case Lt:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var m=s?Fc(s):null;if(m!=null){var v=m==="y"?"height":"width";switch(a){case mi:f[m]=f[m]-(t[v]/2-r[v]/2);break;case Oo:f[m]=f[m]+(t[v]/2-r[v]/2);break}}return f}function Ao(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?mO:c,m=r.rootBoundary,v=m===void 0?Bv:m,g=r.elementContext,p=g===void 0?Bi:g,b=r.altBoundary,x=b===void 0?!1:b,d=r.padding,w=d===void 0?0:d,h=Gv(typeof w!="number"?w:Kv(w,Do)),S=p===Bi?yO:Bi,E=e.rects.popper,R=e.elements[x?S:p],O=YO(Wn(R)?R:R.contextElement||vn(e.elements.popper),f,v,l),k=bi(e.elements.reference),B=Xv({reference:k,element:E,placement:s}),M=uc(Object.assign({},E,B)),F=p===Bi?M:k,G={top:O.top-F.top+h.top,bottom:F.bottom-O.bottom+h.bottom,left:O.left-F.left+h.left,right:F.right-O.right+h.right},j=e.modifiersData.offset;if(p===Bi&&j){var L=j[s];Object.keys(G).forEach(function(U){var q=[sr,or].indexOf(U)>=0?1:-1,C=[It,or].indexOf(U)>=0?"y":"x";G[U]+=L[C]*q})}return G}function JO(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?Uv:f,v=wi(i),g=v?c?lh:lh.filter(function(x){return wi(x)===v}):Do,p=g.filter(function(x){return m.indexOf(x)>=0});p.length===0&&(p=g);var b=p.reduce(function(x,d){return x[d]=Ao(e,{placement:d,boundary:s,rootBoundary:a,padding:l})[Tr(d)],x},{});return Object.keys(b).sort(function(x,d){return b[x]-b[d]})}function QO(e){if(Tr(e)===Ic)return[];var t=ia(e);return[dh(e),t,dh(t)]}function eA(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!0:l,f=r.fallbackPlacements,m=r.padding,v=r.boundary,g=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,d=r.allowedAutoPlacements,w=t.options.placement,h=Tr(w),S=h===w,E=f||(S||!x?[ia(w)]:QO(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Tr(ce)===Ic?JO(t,{placement:ce,boundary:v,rootBoundary:g,padding:m,flipVariations:x,allowedAutoPlacements:d}):ce)},[]),O=t.rects.reference,k=t.rects.popper,B=new Map,M=!0,F=R[0],G=0;G<R.length;G++){var j=R[G],L=Tr(j),U=wi(j)===mi,q=[It,or].indexOf(L)>=0,C=q?"width":"height",J=Ao(t,{placement:j,boundary:v,rootBoundary:g,altBoundary:p,padding:m}),X=q?U?sr:Lt:U?or:It;O[C]>k[C]&&(X=ia(X));var te=ia(X),de=[];if(a&&de.push(J[L]<=0),c&&de.push(J[X]<=0,J[te]<=0),de.every(function(ne){return ne})){F=j,M=!1;break}B.set(j,de)}if(M)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var ve=B.get(ye);if(ve)return ve.slice(0,ce).every(function(Ee){return Ee})});if(fe)return F=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const tA={name:"flip",enabled:!0,phase:"main",fn:eA,requiresIfExists:["offset"],data:{_skip:!1}};function hh(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 gh(e){return[It,sr,or,Lt].some(function(t){return e[t]>=0})}function rA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=Ao(t,{elementContext:"reference"}),c=Ao(t,{altBoundary:!0}),f=hh(l,i),m=hh(c,s,a),v=gh(f),g=gh(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:v,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}const nA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rA};function iA(e,t,r){var i=Tr(e),s=[Lt,It].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*s,[Lt,sr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function oA(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=Uv.reduce(function(v,g){return v[g]=iA(g,t.rects,a),v},{}),c=l[t.placement],f=c.x,m=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=l}const sA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oA};function aA(e){var t=e.state,r=e.name;t.modifiersData[r]=Xv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const uA={name:"popperOffsets",enabled:!0,phase:"read",fn:aA,data:{}};function lA(e){return e==="x"?"y":"x"}function cA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!1:l,f=r.boundary,m=r.rootBoundary,v=r.altBoundary,g=r.padding,p=r.tether,b=p===void 0?!0:p,x=r.tetherOffset,d=x===void 0?0:x,w=Ao(t,{boundary:f,rootBoundary:m,padding:g,altBoundary:v}),h=Tr(t.placement),S=wi(t.placement),E=!S,R=Fc(h),O=lA(R),k=t.modifiersData.popperOffsets,B=t.rects.reference,M=t.rects.popper,F=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(a){var U,q=R==="y"?It:Lt,C=R==="y"?or:sr,J=R==="y"?"height":"width",X=k[R],te=X+w[q],de=X-w[C],Z=b?-M[J]/2:0,Q=S===mi?B[J]:M[J],se=S===mi?-M[J]:-B[J],ue=t.elements.arrow,ne=b&&ue?Mc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zv(),fe=ce[q],ye=ce[C],ve=wo(0,B[J],ne[J]),Ee=E?B[J]/2-Z-ve-fe-G.mainAxis:Q-ve-fe-G.mainAxis,Ae=E?-B[J]/2+Z+ve+ye+G.mainAxis:se+ve+ye+G.mainAxis,Ze=t.elements.arrow&&No(t.elements.arrow),ie=Ze?R==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,mt=(U=j==null?void 0:j[R])!=null?U:0,ut=X+Ee-mt-ie,vr=X+Ae-mt,qo=wo(b?ha(te,ut):te,X,b?jn(de,vr):de);k[R]=qo,L[R]=qo-X}if(c){var Gt,Zo=R==="x"?It:Lt,Ga=R==="x"?or:sr,Mt=k[O],yt=O==="y"?"height":"width",Kr=Mt+w[Zo],wn=Mt-w[Ga],Ai=[It,Lt].indexOf(h)!==-1,Vr=(Gt=j==null?void 0:j[O])!=null?Gt:0,Go=Ai?Kr:Mt-B[yt]-M[yt]-Vr+G.altAxis,Xr=Ai?Mt+B[yt]+M[yt]-Vr-G.altAxis:wn,$r=b&&Ai?LO(Go,Mt,Xr):wo(b?Go:Kr,Mt,b?Xr:wn);k[O]=$r,L[O]=$r-Mt}t.modifiersData[i]=L}}const fA={name:"preventOverflow",enabled:!0,phase:"main",fn:cA,requiresIfExists:["offset"]};function dA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pA(e){return e===Ht(e)||!ir(e)?Dc(e):dA(e)}function hA(e){var t=e.getBoundingClientRect(),r=yi(t.width)/e.offsetWidth||1,i=yi(t.height)/e.offsetHeight||1;return r!==1||i!==1}function gA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&hA(t),a=vn(t),l=bi(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Pr(t)!=="body"||jc(a))&&(c=pA(t)),ir(t)?(f=bi(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Nc(a))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function vA(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function mA(e){var t=vA(e);return RO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function yA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function bA(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var vh={placement:"bottom",modifiers:[],strategy:"absolute"};function mh(){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 wA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?vh:s;return function(c,f,m){m===void 0&&(m=a);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},vh,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},g=[],p=!1,b={state:v,setOptions:function(h){var S=typeof h=="function"?h(v.options):h;d(),v.options=Object.assign({},a,v.options,S),v.scrollParents={reference:Wn(c)?xo(c):c.contextElement?xo(c.contextElement):[],popper:xo(f)};var E=mA(bA([].concat(i,v.options.modifiers)));return v.orderedModifiers=E.filter(function(R){return R.enabled}),x(),b.update()},forceUpdate:function(){if(!p){var h=v.elements,S=h.reference,E=h.popper;if(mh(S,E)){v.rects={reference:gA(S,No(E),v.options.strategy==="fixed"),popper:Mc(E)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(G){return v.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<v.orderedModifiers.length;R++){if(v.reset===!0){v.reset=!1,R=-1;continue}var O=v.orderedModifiers[R],k=O.fn,B=O.options,M=B===void 0?{}:B,F=O.name;typeof k=="function"&&(v=k({state:v,options:M,name:F,instance:b})||v)}}}},update:yA(function(){return new Promise(function(w){b.forceUpdate(),w(v)})}),destroy:function(){d(),p=!0}};if(!mh(c,f))return b;b.setOptions(m).then(function(w){!p&&m.onFirstUpdate&&m.onFirstUpdate(w)});function x(){v.orderedModifiers.forEach(function(w){var h=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var O=R({state:v,name:h,instance:b,options:E}),k=function(){};g.push(O||k)}})}function d(){g.forEach(function(w){return w()}),g=[]}return b}}var xA=[HO,uA,BO,kO,sA,tA,fA,NO,nA],SA=wA({defaultModifiers:xA}),Ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vl,yh;function EA(){if(yh)return vl;yh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,f,m;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!s(a[f],l[f]))return!1;return!0}var v;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(v=a.entries();!(f=v.next()).done;)if(!l.has(f.value[0]))return!1;for(v=a.entries();!(f=v.next()).done;)if(!s(f.value[1],l.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(v=a.entries();!(f=v.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(a[f]!==l[f])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(m=Object.keys(a),c=m.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,m[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((m[f]==="_owner"||m[f]==="__v"||m[f]==="__o")&&a.$$typeof)&&!s(a[m[f]],l[m[f]]))return!1;return!0}return a!==a&&l!==l}return vl=function(l,c){try{return s(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},vl}var _A=EA();const OA=Yv(_A);var AA=[],Jv=function(t,r,i){i===void 0&&(i={});var s=$.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||AA},l=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],f=l[1],m=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var x=b.state,d=Object.keys(x.elements);vO.flushSync(function(){f({styles:ah(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:ah(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),v=$.useMemo(function(){var p={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[m,{name:"applyStyles",enabled:!1}])};return OA(s.current,p)?s.current||p:(s.current=p,p)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),g=$.useRef();return uh(function(){g.current&&g.current.setOptions(v)},[v]),uh(function(){if(!(t==null||r==null)){var p=i.createPopper||SA,b=p(t,r,v);return g.current=b,function(){b.destroy(),g.current=null}}},[t,r,i.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};const Qv=e=>D.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),em=W.forwardRef(({children:e,style:t,attributes:r},i)=>D.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),TA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,l]=W.useState(null),{styles:c,attributes:f}=Jv(e,a,{placement:t||"bottom-start"}),m=W.useCallback(()=>{s&&s()},[s]);return r?D.jsxs(Wv,{children:[D.jsx(Qv,{onClick:()=>m()}),D.jsx(em,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var ml={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var
|
|
6
|
-
`).match(
|
|
5
|
+
*/var bh;function tm(){return bh||(bh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=s(a,i(c)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=s(l,c));return l}function s(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ml)),ml.exports}var RA=tm();const We=Yv(RA);function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Mn.apply(this,arguments)}const PA=["children","options"],wh=["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"}),xh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},CA=["style","script","pre"],kA=["src","href","data","formAction","srcDoc","action"],$A=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,IA=/\n{2,}$/,Sh=/^(\s*>[\s\S]*?)(?=\n\n|$)/,LA=/^ *> ?/gm,MA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,FA=/^ {2,}\n/,DA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Eh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,_h=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,NA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,jA=/^(?:\n *)*\n/,zA=/\r\n?/g,WA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,BA=/^\[\^([^\]]+)]/,UA=/\f/g,HA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,qA=/^\s*?\[(x|\s)\]/,Oh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ah=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Th=/^([^\n]+)\n *(=|-)\2{2,} *\n/,yl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,ZA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Rh=/^<!--[\s\S]*?(?:-->)/,GA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,KA=/^\{.*\}$/,VA=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,XA=/^<([^ >]+[:@\/][^ >]+)>/,YA=/-([a-z])?/gi,Ph=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,JA=/^[^\n]+(?: \n|\n{2,})/,QA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,eT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,tT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,rT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,nT=/\t/g,iT=/(^ *\||\| *$)/g,oT=/^ *:-+: *$/,sT=/^ *:-+ *$/,aT=/^ *-+: *$/,Ca=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,ka="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",uT=RegExp(`^([*_])\\1${Ca(1)}${ka}\\1\\1(?!\\1)`),lT=RegExp(`^([*_])${Ca(0)}${ka}\\1(?!\\1)`),cT=RegExp(`^(==)${Ca(0)}${ka}\\1`),fT=RegExp(`^(~~)${Ca(0)}${ka}\\1`),dT=/^(:[a-zA-Z0-9-_]+:)/,pT=/^\\([^0-9A-Za-z\s])/,hT=/\\([^0-9A-Za-z\s])/g,gT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,vT=/^\n+/,mT=/^([ \t]*)/,yT=/(?:^|\n)( *)$/,zc="(?:\\d+\\.)",Wc="(?:[*+-])";function rm(e){return"( *)("+(e===1?zc:Wc)+") +"}const nm=rm(1),im=rm(2);function om(e){return RegExp("^"+(e===1?nm:im))}const bT=om(1),wT=om(2);function sm(e){return RegExp("^"+(e===1?nm:im)+"[^\\n]*(?:\\n(?!\\1"+(e===1?zc:Wc)+" )[^\\n]*)*(\\n|$)","gm")}const xT=sm(1),ST=sm(2);function am(e){const t=e===1?zc:Wc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const um=am(1),lm=am(2);function Ch(e,t){const r=t===1,i=r?um:lm,s=r?xT:ST,a=r?bT:wT;return{t:l=>a.test(l),o:xi(function(l,c){const f=yT.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(l=f[1]+l):null}),i:1,u(l,c,f){const m=r?+l[2]:void 0,v=l[0].replace(IA,`
|
|
6
|
+
`).match(s);let g=!1;return{items:v.map(function(p,b){const x=a.exec(p)[0].length,d=RegExp("^ {1,"+x+"}","gm"),w=p.replace(d,"").replace(a,""),h=b===v.length-1,S=w.indexOf(`
|
|
7
7
|
|
|
8
|
-
`)!==-1||
|
|
8
|
+
`)!==-1||h&&g;g=S;const E=f.inline,R=f.list;let O;f.list=!0,S?(f.inline=!1,O=So(w)+`
|
|
9
9
|
|
|
10
|
-
`):(
|
|
11
|
-
`).map(function(
|
|
10
|
+
`):(f.inline=!0,O=So(w));const k=c(O,f);return f.inline=E,f.list=R,k}),ordered:r,start:m}},l:(l,c,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type==="20"?l.start:void 0},l.items.map(function(m,v){return e("li",{key:v},c(m,f))}))}}const ET=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),_T=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function kh(e){return typeof e=="string"}function So(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function oa(e,t){return e.startsWith(t)}function OT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(oa(e,r[i]))return!0;return!1}return r(e,t)}function Ui(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 AT(e){return aT.test(e)?"right":oT.test(e)?"center":sT.test(e)?"left":null}function $h(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],l="";function c(){if(!l)return;const f=a[a.length-1];f.push.apply(f,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,m,v)=>{f.trim()==="|"&&(c(),i)?m!==0&&m!==v.length-1&&a.push([]):l+=f}),c(),r.inTable=s,a}function TT(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(iT,"").split("|").map(AT):[],s=e[3]?(function(l,c,f){return l.trim().split(`
|
|
11
|
+
`).map(function(m){return $h(m,c,f,!0)})})(e[3],t,r):[],a=$h(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:i,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function Ih(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function xi(e){return e.inline=1,e}function Cn(e){return xi(function(t,r){return r.inline?e.exec(t):null})}function an(e){return xi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Br(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Ns(e){return xi(function(t){return e.exec(t)})}const RT=/(javascript|vbscript|data(?!:image)):/i;function PT(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(RT.test(t))return null}catch{return null}return e}function wr(e){return e&&e.replace(hT,"$1")}function sa(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function CT(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function kT(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const wl=(e,t,r)=>({children:sa(t,e[2],r)});function xl(){return{}}function Sl(){return null}function $T(...e){return e.filter(Boolean).join(" ")}function El(e,t,r){let i=e;const s=t.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||r}function IT(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Mn({},xh,t.namedCodesToUnicode):xh;const r=t.slugify||Ui,i=t.sanitizer||PT,s=t.createElement||$.createElement,a=[Sh,Eh,_h,t.enforceAtxHeadings?Ah:Oh,Th,Ph,um,lm],l=[...a,JA,yl,Rh,bl];function c(h,S){for(let E=0;E<h.length;E++)if(h[E].test(S))return!0;return!1}function f(h,S,...E){const R=El(t.overrides,h+".props",{});return s((function(O,k){const B=El(k,O);return B?typeof B=="function"||typeof B=="object"&&"render"in B?B:El(k,O+".component",O):O})(h,t.overrides),Mn({},S,R,{className:$T(S==null?void 0:S.className,R.className)||void 0}),...E)}function m(h){h=h.replace(HA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=rT.test(h)===!1);const E=d(x(S?h:So(h).replace(vT,"")+`
|
|
12
12
|
|
|
13
|
-
`,{inline:
|
|
14
|
-
`);return
|
|
15
|
-
`],o:
|
|
16
|
-
`},21:{o:
|
|
13
|
+
`,{inline:S}));for(;kh(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?f("span",{key:"outer"},O):O;O=null}return s(R,{key:"outer"},O)}function v(h,S){if(!S||!S.trim())return null;const E=S.match($A);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const B=(function(j){return j.indexOf("-")!==-1&&j.match(GA)===null&&(j=j.replace(YA,function(L,U){return U.toUpperCase()})),j})(O.slice(0,k)).trim(),M=(function(j){const L=j[0];return(L==='"'||L==="'")&&j.length>=2&&j[j.length-1]===L?j.slice(1,-1):j})(O.slice(k+1).trim()),F=wh[B]||B;if(F==="ref")return R;const G=R[F]=(function(j,L,U,q){return L==="style"?(function(C){const J=[];let X="",te=!1,de=!1,Z="";if(!C)return J;for(let se=0;se<C.length;se++){const ue=C[se];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&X.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)X+=ue;else{const ne=X.trim();if(ne){const ce=ne.indexOf(":");if(ce>0){const fe=ne.slice(0,ce).trim(),ye=ne.slice(ce+1).trim();J.push([fe,ye])}}X=""}}const Q=X.trim();if(Q){const se=Q.indexOf(":");if(se>0){const ue=Q.slice(0,se).trim(),ne=Q.slice(se+1).trim();J.push([ue,ne])}}return J})(U).reduce(function(C,[J,X]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(X,j,J),C},{}):kA.indexOf(L)!==-1?q(wr(U),j,L):(U.match(KA)&&(U=wr(U.slice(1,U.length-1))),U==="true"||U!=="false"&&U)})(h,B,M,i);typeof G=="string"&&(yl.test(G)||bl.test(G))&&(R[F]=m(G.trim()))}else O!=="style"&&(R[wh[O]||O]=!0);return R},{}):null}const g=[],p={},b={0:{t:[">"],o:Br(Sh),i:1,u(h,S,E){const[,R,O]=h[0].replace(LA,"").match(MA);return{alert:R,children:S(O,E)}},l(h,S,E){const R={key:E.key};return h.alert&&(R.className="markdown-alert-"+r(h.alert.toLowerCase(),Ui),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(h.children,E))}},1:{t:[" "],o:Ns(FA),i:1,u:xl,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Br(DA),i:1,u:xl,l:(h,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:Br(_h),i:0,u:h=>({lang:void 0,text:wr(So(h[0].replace(/^ {4}/gm,"")))}),l:(h,S,E)=>f("pre",{key:E.key},f("code",Mn({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:Br(Eh),i:0,u:h=>({attrs:v("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:an(NA),i:3,u:h=>({text:wr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:Br(WA),i:0,u:h=>(g.push({footnote:h[2],identifier:h[1]}),{}),l:Sl},7:{t:["[^"],o:Cn(BA),i:1,u:h=>({target:"#"+r(h[1],Ui),text:h[1]}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href")},f("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:Cn(qA),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,S,E)=>f("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Br(t.enforceAtxHeadings?Ah:Oh),i:1,u:(h,S,E)=>({children:sa(S,h[2],E),id:r(h[2],Ui),level:h[1].length}),l:(h,S,E)=>f("h"+h.level,{id:h.id,key:E.key},S(h.children,E))},10:{t:h=>{const S=h.indexOf(`
|
|
14
|
+
`);return S>0&&S<h.length-1&&(h[S+1]==="="||h[S+1]==="-")},o:Br(Th),i:0,u:(h,S,E)=>({children:sa(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Ns(yl),i:1,u(h,S,E){const[,R]=h[3].match(mT),O=RegExp("^"+R,"gm"),k=h[3].replace(O,""),B=c(l,k)?kT:sa,M=h[1].toLowerCase(),F=CA.indexOf(M)!==-1,G=(F?M:h[1]).trim(),j={attrs:v(G,h[2]),noInnerParse:F,tag:G};if(E.inAnchor=E.inAnchor||M==="a",F)j.text=h[3];else{const L=E.inHTML;E.inHTML=!0,j.children=B(S,k,E),E.inHTML=L}return E.inAnchor=!1,j},l:(h,S,E)=>f(h.tag,Mn({key:E.key},h.attrs),h.text||(h.children?S(h.children,E):""))},13:{t:["<"],o:Ns(bl),i:1,u(h){const S=h[1].trim();return{attrs:v(S,h[2]||""),tag:S}},l:(h,S,E)=>f(h.tag,Mn({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:Ns(Rh),i:1,u:()=>({}),l:Sl},14:{t:["!["],o:an(_T),i:1,u:h=>({alt:wr(h[1]),target:wr(h[2]),title:wr(h[3])}),l:(h,S,E)=>f("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:i(h.target,"img","src")})},15:{t:["["],o:Cn(ET),i:3,u:(h,S,E)=>({children:CT(S,h[1],E),target:wr(h[2]),title:wr(h[3])}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href"),title:h.title},S(h.children,E))},16:{t:["<"],o:Cn(XA),i:0,u(h){let S=h[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(h,S)=>!S.inAnchor&&!t.disableAutoLink&&(oa(h,"http://")||oa(h,"https://")),o:Cn(VA),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:Ch(f,1),33:Ch(f,2),19:{t:[`
|
|
15
|
+
`],o:Br(jA),i:3,u:xl,l:()=>`
|
|
16
|
+
`},21:{o:xi(function(h,S){if(S.inline||S.simple||S.inHTML&&h.indexOf(`
|
|
17
17
|
|
|
18
|
-
`)===-1&&
|
|
18
|
+
`)===-1&&S.prevCapture.indexOf(`
|
|
19
19
|
|
|
20
|
-
`)===-1)return null;let
|
|
21
|
-
`,
|
|
22
|
-
`).replace(KC,"").replace(uP," ")})(k),E)}})(y),v=(function(m,w){return function x(k,E={}){if(Array.isArray(k)){const R=E.key,F=[];let A=!1;for(let P=0;P<k.length;P++){E.key=P;const B=x(k[P],E),$=Iv(B);$&&A?F[F.length-1]+=B:B!==null&&F.push(B),A=$}return E.key=R,F}return(function(R,F,A){const P=m[R.type].l;return w?w(()=>P(R,F,A),R,F,A):P(R,F,A)})(k,x,E)}})(y,t.renderRule),b=d(e);return h.length?c("div",null,b,c("footer",{key:"footer"},h.map(function(m){return c("div",{id:r(m.identifier,Io),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):b}const Tl=e=>{let{children:t="",options:r}=e,n=(function(o,a){if(o==null)return{};var l,u,c={},d=Object.keys(o);for(u=0;u<d.length;u++)a.indexOf(l=d[u])>=0||(c[l]=o[l]);return c})(e,DC);return L.cloneElement(jP(t,r),n)},Dv=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return N.jsx(t,{className:tt("flex-none size-6",r)});switch(e){case"error":case"danger":return N.jsx(vt.FdSanityCheckInfo,{className:tt("flex-none size-6",r)});case"info":return N.jsx(N.Fragment,{children:N.jsx(vt.FdInfoBold,{className:tt("flex-none size-6",r)})});case"warning":return N.jsx(N.Fragment,{children:N.jsx(vt.FdWarningDanger,{className:tt("flex-none size-6",r)})});case"message":return N.jsx(N.Fragment,{children:N.jsx(vt.FdInfoBold,{className:tt("flex-none size-6",r)})});default:return null}},FP=({id:e,onClose:t,kind:r,message:n,markdown:o,customIcon:a})=>{const l=({className:u}={})=>N.jsx("button",{onClick:t,className:tt("flex justify-center p-1",u),children:N.jsx(vt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return N.jsx("div",{className:tt("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?N.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[N.jsx("div",{className:"pt-1",children:N.jsx(Dv,{kind:r,customIcon:a})}),N.jsx("div",{className:"flex items-center gap-1 prose",children:o?N.jsx(Tl,{children:n}):N.jsx(N.Fragment,{children:n})}),l()]}):N.jsxs("div",{className:"flex items-start",children:[N.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(u=>u.messages.length>0).map(u=>N.jsxs(N.Fragment,{children:[u.title&&N.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[N.jsx(Dv,{kind:r,customIcon:a}),N.jsxs("span",{children:[u.title," :"]})]}),N.jsx("ul",{className:tt("list-disc",{"px-12":u.title,"px-6":!u.title}),children:u.messages.map(c=>N.jsx("li",{children:o?N.jsx(Tl,{children:c}):N.jsx(N.Fragment,{children:c})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},uy=({children:e,size:t,className:r,...n})=>N.jsx("div",{style:{"--width":`${t||24}px`},className:tt("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var Kc={},No={},Ds={},$v;function cy(){if($v)return Ds;$v=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Ds}var Hi={},Mo={},Do={},Lv;function HP(){if(Lv)return Do;Lv=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Do.default=e,Do}var zv;function Xl(){if(zv)return Mo;zv=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;var e=t(HP());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){return typeof o=="string"&&e.default.test(o)}var n=r;return Mo.default=n,Mo}var jv;function Jl(){if(jv)return Hi;jv=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0,Hi.unsafeStringify=n;var e=t(Xl());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function n(l,u=0){return r[l[u+0]]+r[l[u+1]]+r[l[u+2]]+r[l[u+3]]+"-"+r[l[u+4]]+r[l[u+5]]+"-"+r[l[u+6]]+r[l[u+7]]+"-"+r[l[u+8]]+r[l[u+9]]+"-"+r[l[u+10]]+r[l[u+11]]+r[l[u+12]]+r[l[u+13]]+r[l[u+14]]+r[l[u+15]]}function o(l,u=0){const c=n(l,u);if(!(0,e.default)(c))throw TypeError("Stringified UUID is invalid");return c}var a=o;return Hi.default=a,Hi}var Fv;function WP(){if(Fv)return No;Fv=1,Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var e=r(cy()),t=Jl();function r(d){return d&&d.__esModule?d:{default:d}}let n,o,a=0,l=0;function u(d,p,h){let g=p&&h||0;const y=p||new Array(16);d=d||{};let S=d.node||n,v=d.clockseq!==void 0?d.clockseq:o;if(S==null||v==null){const E=d.random||(d.rng||e.default)();S==null&&(S=n=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),v==null&&(v=o=(E[6]<<8|E[7])&16383)}let b=d.msecs!==void 0?d.msecs:Date.now(),m=d.nsecs!==void 0?d.nsecs:l+1;const w=b-a+(m-l)/1e4;if(w<0&&d.clockseq===void 0&&(v=v+1&16383),(w<0||b>a)&&d.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=b,l=m,o=v,b+=122192928e5;const x=((b&268435455)*1e4+m)%4294967296;y[g++]=x>>>24&255,y[g++]=x>>>16&255,y[g++]=x>>>8&255,y[g++]=x&255;const k=b/4294967296*1e4&268435455;y[g++]=k>>>8&255,y[g++]=k&255,y[g++]=k>>>24&15|16,y[g++]=k>>>16&255,y[g++]=v>>>8|128,y[g++]=v&255;for(let E=0;E<6;++E)y[g+E]=S[E];return p||(0,t.unsafeStringify)(y)}var c=u;return No.default=c,No}var $o={},Mn={},Lo={},Hv;function fy(){if(Hv)return Lo;Hv=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var e=t(Xl());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(o.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(o.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(o.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(o.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(o.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var n=r;return Lo.default=n,Lo}var Wv;function dy(){if(Wv)return Mn;Wv=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.URL=Mn.DNS=void 0,Mn.default=l;var e=Jl(),t=r(fy());function r(u){return u&&u.__esModule?u:{default:u}}function n(u){u=unescape(encodeURIComponent(u));const c=[];for(let d=0;d<u.length;++d)c.push(u.charCodeAt(d));return c}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Mn.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Mn.URL=a;function l(u,c,d){function p(h,g,y,S){var v;if(typeof h=="string"&&(h=n(h)),typeof g=="string"&&(g=(0,t.default)(g)),((v=g)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+h.length);if(b.set(g),b.set(h,g.length),b=d(b),b[6]=b[6]&15|c,b[8]=b[8]&63|128,y){S=S||0;for(let m=0;m<16;++m)y[S+m]=b[m];return y}return(0,e.unsafeStringify)(b)}try{p.name=u}catch{}return p.DNS=o,p.URL=a,p}return Mn}var zo={},Bv;function BP(){if(Bv)return zo;Bv=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.default=void 0;function e(y){if(typeof y=="string"){const S=unescape(encodeURIComponent(y));y=new Uint8Array(S.length);for(let v=0;v<S.length;++v)y[v]=S.charCodeAt(v)}return t(n(o(y),y.length*8))}function t(y){const S=[],v=y.length*32,b="0123456789abcdef";for(let m=0;m<v;m+=8){const w=y[m>>5]>>>m%32&255,x=parseInt(b.charAt(w>>>4&15)+b.charAt(w&15),16);S.push(x)}return S}function r(y){return(y+64>>>9<<4)+14+1}function n(y,S){y[S>>5]|=128<<S%32,y[r(S)-1]=S;let v=1732584193,b=-271733879,m=-1732584194,w=271733878;for(let x=0;x<y.length;x+=16){const k=v,E=b,R=m,F=w;v=c(v,b,m,w,y[x],7,-680876936),w=c(w,v,b,m,y[x+1],12,-389564586),m=c(m,w,v,b,y[x+2],17,606105819),b=c(b,m,w,v,y[x+3],22,-1044525330),v=c(v,b,m,w,y[x+4],7,-176418897),w=c(w,v,b,m,y[x+5],12,1200080426),m=c(m,w,v,b,y[x+6],17,-1473231341),b=c(b,m,w,v,y[x+7],22,-45705983),v=c(v,b,m,w,y[x+8],7,1770035416),w=c(w,v,b,m,y[x+9],12,-1958414417),m=c(m,w,v,b,y[x+10],17,-42063),b=c(b,m,w,v,y[x+11],22,-1990404162),v=c(v,b,m,w,y[x+12],7,1804603682),w=c(w,v,b,m,y[x+13],12,-40341101),m=c(m,w,v,b,y[x+14],17,-1502002290),b=c(b,m,w,v,y[x+15],22,1236535329),v=d(v,b,m,w,y[x+1],5,-165796510),w=d(w,v,b,m,y[x+6],9,-1069501632),m=d(m,w,v,b,y[x+11],14,643717713),b=d(b,m,w,v,y[x],20,-373897302),v=d(v,b,m,w,y[x+5],5,-701558691),w=d(w,v,b,m,y[x+10],9,38016083),m=d(m,w,v,b,y[x+15],14,-660478335),b=d(b,m,w,v,y[x+4],20,-405537848),v=d(v,b,m,w,y[x+9],5,568446438),w=d(w,v,b,m,y[x+14],9,-1019803690),m=d(m,w,v,b,y[x+3],14,-187363961),b=d(b,m,w,v,y[x+8],20,1163531501),v=d(v,b,m,w,y[x+13],5,-1444681467),w=d(w,v,b,m,y[x+2],9,-51403784),m=d(m,w,v,b,y[x+7],14,1735328473),b=d(b,m,w,v,y[x+12],20,-1926607734),v=p(v,b,m,w,y[x+5],4,-378558),w=p(w,v,b,m,y[x+8],11,-2022574463),m=p(m,w,v,b,y[x+11],16,1839030562),b=p(b,m,w,v,y[x+14],23,-35309556),v=p(v,b,m,w,y[x+1],4,-1530992060),w=p(w,v,b,m,y[x+4],11,1272893353),m=p(m,w,v,b,y[x+7],16,-155497632),b=p(b,m,w,v,y[x+10],23,-1094730640),v=p(v,b,m,w,y[x+13],4,681279174),w=p(w,v,b,m,y[x],11,-358537222),m=p(m,w,v,b,y[x+3],16,-722521979),b=p(b,m,w,v,y[x+6],23,76029189),v=p(v,b,m,w,y[x+9],4,-640364487),w=p(w,v,b,m,y[x+12],11,-421815835),m=p(m,w,v,b,y[x+15],16,530742520),b=p(b,m,w,v,y[x+2],23,-995338651),v=h(v,b,m,w,y[x],6,-198630844),w=h(w,v,b,m,y[x+7],10,1126891415),m=h(m,w,v,b,y[x+14],15,-1416354905),b=h(b,m,w,v,y[x+5],21,-57434055),v=h(v,b,m,w,y[x+12],6,1700485571),w=h(w,v,b,m,y[x+3],10,-1894986606),m=h(m,w,v,b,y[x+10],15,-1051523),b=h(b,m,w,v,y[x+1],21,-2054922799),v=h(v,b,m,w,y[x+8],6,1873313359),w=h(w,v,b,m,y[x+15],10,-30611744),m=h(m,w,v,b,y[x+6],15,-1560198380),b=h(b,m,w,v,y[x+13],21,1309151649),v=h(v,b,m,w,y[x+4],6,-145523070),w=h(w,v,b,m,y[x+11],10,-1120210379),m=h(m,w,v,b,y[x+2],15,718787259),b=h(b,m,w,v,y[x+9],21,-343485551),v=a(v,k),b=a(b,E),m=a(m,R),w=a(w,F)}return[v,b,m,w]}function o(y){if(y.length===0)return[];const S=y.length*8,v=new Uint32Array(r(S));for(let b=0;b<S;b+=8)v[b>>5]|=(y[b/8]&255)<<b%32;return v}function a(y,S){const v=(y&65535)+(S&65535);return(y>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(y,S){return y<<S|y>>>32-S}function u(y,S,v,b,m,w){return a(l(a(a(S,y),a(b,w)),m),v)}function c(y,S,v,b,m,w,x){return u(S&v|~S&b,y,S,m,w,x)}function d(y,S,v,b,m,w,x){return u(S&b|v&~b,y,S,m,w,x)}function p(y,S,v,b,m,w,x){return u(S^v^b,y,S,m,w,x)}function h(y,S,v,b,m,w,x){return u(v^(S|~b),y,S,m,w,x)}var g=e;return zo.default=g,zo}var Uv;function UP(){if(Uv)return $o;Uv=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var e=r(dy()),t=r(BP());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v3",48,t.default);return $o.default=o,$o}var jo={},Fo={},Vv;function VP(){if(Vv)return Fo;Vv=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Fo.default=t,Fo}var qv;function qP(){if(qv)return jo;qv=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;var e=n(VP()),t=n(cy()),r=Jl();function n(l){return l&&l.__esModule?l:{default:l}}function o(l,u,c){if(e.default.randomUUID&&!u&&!l)return e.default.randomUUID();l=l||{};const d=l.random||(l.rng||t.default)();if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,u){c=c||0;for(let p=0;p<16;++p)u[c+p]=d[p];return u}return(0,r.unsafeStringify)(d)}var a=o;return jo.default=a,jo}var Ho={},Wo={},Gv;function GP(){if(Gv)return Wo;Gv=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.default=void 0;function e(o,a,l,u){switch(o){case 0:return a&l^~a&u;case 1:return a^l^u;case 2:return a&l^a&u^l&u;case 3:return a^l^u}}function t(o,a){return o<<a|o>>>32-a}function r(o){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof o=="string"){const p=unescape(encodeURIComponent(o));o=[];for(let h=0;h<p.length;++h)o.push(p.charCodeAt(h))}else Array.isArray(o)||(o=Array.prototype.slice.call(o));o.push(128);const u=o.length/4+2,c=Math.ceil(u/16),d=new Array(c);for(let p=0;p<c;++p){const h=new Uint32Array(16);for(let g=0;g<16;++g)h[g]=o[p*64+g*4]<<24|o[p*64+g*4+1]<<16|o[p*64+g*4+2]<<8|o[p*64+g*4+3];d[p]=h}d[c-1][14]=(o.length-1)*8/Math.pow(2,32),d[c-1][14]=Math.floor(d[c-1][14]),d[c-1][15]=(o.length-1)*8&4294967295;for(let p=0;p<c;++p){const h=new Uint32Array(80);for(let m=0;m<16;++m)h[m]=d[p][m];for(let m=16;m<80;++m)h[m]=t(h[m-3]^h[m-8]^h[m-14]^h[m-16],1);let g=l[0],y=l[1],S=l[2],v=l[3],b=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(g,5)+e(w,y,S,v)+b+a[w]+h[m]>>>0;b=v,v=S,S=t(y,30)>>>0,y=g,g=x}l[0]=l[0]+g>>>0,l[1]=l[1]+y>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+b>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var n=r;return Wo.default=n,Wo}var Zv;function ZP(){if(Zv)return Ho;Zv=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=void 0;var e=r(dy()),t=r(GP());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v5",80,t.default);return Ho.default=o,Ho}var Bo={},Kv;function KP(){if(Kv)return Bo;Kv=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Bo.default=e,Bo}var Uo={},Yv;function YP(){if(Yv)return Uo;Yv=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var e=t(Xl());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");return parseInt(o.slice(14,15),16)}var n=r;return Uo.default=n,Uo}var Xv;function XP(){return Xv||(Xv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=p(WP()),r=p(UP()),n=p(qP()),o=p(ZP()),a=p(KP()),l=p(YP()),u=p(Xl()),c=p(Jl()),d=p(fy());function p(h){return h&&h.__esModule?h:{default:h}}})(Kc)),Kc}var Yc,Jv;function JP(){if(Jv)return Yc;Jv=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,n,o,a={},l=this.srcAlphabet.length,u=this.dstAlphabet.length,c=t.length,d=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<c;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,o=0,r=0;r<c;r++)n=n*l+a[r],n>=u?(a[o++]=parseInt(n/u,10),n=n%u):o>0&&(a[o++]=0);c=o,d=this.dstAlphabet.slice(n,n+1).concat(d)}while(o!==0);return d},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Yc=e,Yc}var Xc,Qv;function QP(){if(Qv)return Xc;Qv=1;var e=JP();function t(r,n){var o=new e(r,n);return function(a){return o.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Xc=t,Xc}var Jc,em;function eI(){if(em)return Jc;em=1;const{v4:e,validate:t}=XP(),r=QP(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},o={consistentLength:!0};let a;const l=(d,p,h)=>{const g=p(d.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?g:g.padStart(h.shortIdLength,h.paddingChar)},u=(d,p)=>{const g=p(d).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[g[1],g[2],g[3],g[4],g[5]].join("-")},c=d=>Math.ceil(Math.log(2**128)/Math.log(d));return Jc=(()=>{const d=(p,h)=>{const g=p||n.flickrBase58,y={...o,...h};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=c(g.length),v={shortIdLength:S,consistentLength:y.consistentLength,paddingChar:g[0]},b=r(r.HEX,g),m=r(g,r.HEX),w=()=>l(e(),b,v),k={alphabet:g,fromUUID:E=>l(E,b,v),maxLength:S,generate:w,new:w,toUUID:E=>u(E,m),uuid:e,validate:(E,R=!1)=>{if(!E||typeof E!="string")return!1;const F=y.consistentLength?E.length===S:E.length<=S,A=E.split("").every(P=>g.includes(P));return R===!1?F&&A:F&&A&&t(u(E,m))}};return Object.freeze(k),k};return d.constants=n,d.uuid=e,d.generate=()=>(a||(a=d(n.flickrBase58).generate),a()),d})(),Jc}var yi=eI();const py=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:o="rgb(241, 245, 249)"})=>{const a=`indent_line_${yi.generate()}`;return N.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[N.jsx("defs",{children:N.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:N.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:o})})}),n?N.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):N.jsx("rect",{fill:n?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},hy=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?N.jsx("div",{className:"flex h-6 w-5 items-center",onClick:o=>r&&r(o),children:(()=>{switch(n){case"arrow":return N.jsx(vt.FdDown,{className:tt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?N.jsx(vt.FdDown,{}):N.jsx(vt.FdRight,{});default:return N.jsx(vt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):N.jsx("div",{className:"flex h-6 w-3 items-center"}),Nd=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:o,searchQuery:a,renderNode:l,onNodeClick:u})=>{var y;const{key:c,children:d}=e,p=j.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),h=l&&typeof l=="function"?l(e,t,p,o,a):nI(e,t,p,u);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"flex items-center space-x-2",children:h},c),rI(d||[],t,a,r,n,p.expanded,o,u,l)]}):null},tI=function(e,t){var l;const{title:r,icon:n,subtitle:o}=e;let a=null;return n&&(a=N.jsx(uy,{children:n})),N.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,N.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),o&&N.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:o})]})},rI=function(e,t,r,n,o,a,l,u,c){return e.length&&a?e.map(d=>N.jsx(Nd,{actions:l,node:d,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:o,onNodeClick:u,renderNode:c},d.key)):null},nI=function(e,t,r,n){return N.jsxs(N.Fragment,{children:[N.jsx(py,{showLines:!0,depth:t}),N.jsx(hy,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),tI(e,n)]})},$s=e=>t=>e===t,iI=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:o,searchQuery:a,expandedKeys:l,expandCondition:u="always",encapsulated:c,className:d}){const[p,h]=j.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));j.useEffect(()=>{u==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const g=j.useCallback(m=>{if(!m)return;const w=p.expandedKeys.findIndex($s(m.key));let x=[];w===-1?(x=[...p.expandedKeys,m.key],h(()=>({...p,expandedKeys:x})),o&&o(x)):(x=p.expandedKeys.filter(k=>k!==m.key),h(()=>({...p,expandedKeys:x})),o&&o(x))},[p]),y=j.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;p.selectedKeys.findIndex($s(m.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,m.key]})},[p]),S=j.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;p.selectedKeys.findIndex($s(m.key))===-1&&h({...p,selectedKeys:[m.key]})},[p]),v=j.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex($s(m.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(k=>k!==m.key)})},[p]),b=j.useMemo(()=>({expand:g,select:y,selectSingle:S,deselect:v}),[v,g,y,S]);return N.jsx("div",{className:tt("fd-tree",d,{"pl-2 mb-1 rounded border bg-grey-900 p-1":c}),children:t.map(m=>N.jsx(Nd,{node:m,searchQuery:a||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:b,renderNode:r,onNodeClick:n},m.key))})};function gl(e){return e.of&&e.children?N.jsx(N.Fragment,{children:e.children}):null}function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ut.apply(null,arguments)}function oI(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aI={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 gy(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var sI=/[A-Z]|^ms/g,lI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vy=function(t){return t.charCodeAt(1)===45},tm=function(t){return t!=null&&typeof t!="boolean"},Qc=gy(function(e){return vy(e)?e:e.replace(sI,"-$&").toLowerCase()}),rm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(lI,function(n,o,a){return Vr={name:o,styles:a,next:Vr},o})}return aI[t]!==1&&!vy(t)&&typeof r=="number"&&r!==0?r+"px":r};function xa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Vr={name:o.name,styles:o.styles,next:Vr},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Vr={name:l.name,styles:l.styles,next:Vr},l=l.next;var u=a.styles+";";return u}return uI(e,t,r)}case"function":{if(e!==void 0){var c=Vr,d=r(e);return Vr=c,xa(e,t,d)}break}}var p=r;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function uI(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=xa(e,t,r[o])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?n+=a+"{"+t[u]+"}":tm(u)&&(n+=Qc(a)+":"+rm(a,u)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)tm(l[c])&&(n+=Qc(a)+":"+rm(a,l[c])+";");else{var d=xa(e,t,l);switch(a){case"animation":case"animationName":{n+=Qc(a)+":"+d+";";break}default:n+=a+"{"+d+"}"}}}return n}var nm=/label:\s*([^\s;{]+)\s*(;|$)/g,Vr;function cI(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Vr=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=xa(r,t,a);else{var l=a;o+=l[0]}for(var u=1;u<e.length;u++)if(o+=xa(r,t,e[u]),n){var c=a;o+=c[u]}nm.lastIndex=0;for(var d="",p;(p=nm.exec(o))!==null;)d+="-"+p[1];var h=oI(o)+d;return{name:h,styles:o,next:Vr}}var fI=function(t){return t()},dI=L.useInsertionEffect?L.useInsertionEffect:!1,pI=dI||fI,hI=!0;function gI(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var my=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||hI===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},vI=function(t,r,n){my(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},mI=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,bI=gy(function(e){return mI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),yI=bI,wI=function(t){return t!=="theme"},im=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yI:wI},om=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},xI=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return my(r,n,o),pI(function(){return vI(r,n,o)}),null},SI=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var u=om(t,r,n),c=u||im(o),d=!c("as");return function(){var p=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var g=p[0];h.push(g[0]);for(var y=p.length,S=1;S<y;S++)h.push(p[S],g[S])}var v=Vf.withEmotionCache(function(b,m,w){var x=d&&b.as||o,k="",E=[],R=b;if(b.theme==null){R={};for(var F in b)R[F]=b[F];R.theme=L.useContext(Vf.ThemeContext)}typeof b.className=="string"?k=gI(m.registered,E,b.className):b.className!=null&&(k=b.className+" ");var A=cI(h.concat(E),m.registered,R);k+=m.key+"-"+A.name,l!==void 0&&(k+=" "+l);var P=d&&u===void 0?im(x):c,B={};for(var $ in b)d&&$==="as"||P($)&&(B[$]=b[$]);return B.className=k,w&&(B.ref=w),L.createElement(L.Fragment,null,L.createElement(xI,{cache:m,serialized:A,isStringTag:typeof x=="string"}),L.createElement(x,B))});return v.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=h,v.__emotion_forwardProp=u,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(b,m){var w=e(b,ut({},r,m,{shouldForwardProp:om(v,m,!0)}));return w.apply(void 0,h)},v}},_I=["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"],Rl=SI.bind(null);_I.forEach(function(e){Rl[e]=Rl(e)});var EI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wi=new WeakMap,Ls=new WeakMap,zs={},ef=0,by=function(e){return e&&(e.host||by(e.parentNode))},kI=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=by(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},OI=function(e,t,r,n){var o=kI(t,Array.isArray(e)?e:[e]);zs[r]||(zs[r]=new WeakMap);var a=zs[r],l=[],u=new Set,c=new Set(o),d=function(h){!h||u.has(h)||(u.add(h),d(h.parentNode))};o.forEach(d);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(g){if(u.has(g))p(g);else try{var y=g.getAttribute(n),S=y!==null&&y!=="false",v=(Wi.get(g)||0)+1,b=(a.get(g)||0)+1;Wi.set(g,v),a.set(g,b),l.push(g),v===1&&S&&Ls.set(g,!0),b===1&&g.setAttribute(r,"true"),S||g.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",g,m)}})};return p(t),u.clear(),ef++,function(){l.forEach(function(h){var g=Wi.get(h)-1,y=a.get(h)-1;Wi.set(h,g),a.set(h,y),g||(Ls.has(h)||h.removeAttribute(n),Ls.delete(h)),y||h.removeAttribute(r)}),ef--,ef||(Wi=new WeakMap,Wi=new WeakMap,Ls=new WeakMap,zs={})}},AI=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=EI(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),OI(n,o,r,"aria-hidden")):function(){return null}},Zf=function(e,t){return Zf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Zf(e,t)};function Ql(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qr=function(){return qr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qr.apply(this,arguments)};function yy(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Kf(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],l;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){l={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return a}function Cl(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var vl="right-scroll-bar-position",ml="width-before-scroll-bar",TI="with-scroll-bars-hidden",RI="--removed-body-scroll-bar-size";function tf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CI(e,t){var r=j.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var PI=typeof window<"u"?L.useLayoutEffect:L.useEffect,am=new WeakMap;function II(e,t){var r=CI(null,function(n){return e.forEach(function(o){return tf(o,n)})});return PI(function(){var n=am.get(r);if(n){var o=new Set(n),a=new Set(e),l=r.current;o.forEach(function(u){a.has(u)||tf(u,null)}),a.forEach(function(u){o.has(u)||tf(u,l)})}am.set(r,e)},[e]),r}function NI(e){return e}function MI(e,t){t===void 0&&(t=NI);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,n);return r.push(l),function(){r=r.filter(function(u){return u!==l})}},assignSyncMedium:function(a){for(n=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(u){return a(u)},filter:function(){return r}}},assignMedium:function(a){n=!0;var l=[];if(r.length){var u=r;r=[],u.forEach(a),l=r}var c=function(){var p=l;l=[],p.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(p){l.push(p),d()},filter:function(p){return l=l.filter(p),r}}}};return o}function DI(e){e===void 0&&(e={});var t=MI(null);return t.options=qr({async:!0,ssr:!1},e),t}var wy=function(e){var t=e.sideCar,r=yy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return L.createElement(n,qr({},r))};wy.isSideCarExport=!0;function $I(e,t){return e.useMedium(t),wy}var xy=DI(),rf=function(){},eu=L.forwardRef(function(e,t){var r=L.useRef(null),n=L.useState({onScrollCapture:rf,onWheelCapture:rf,onTouchMoveCapture:rf}),o=n[0],a=n[1],l=e.forwardProps,u=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,y=e.noRelative,S=e.noIsolation,v=e.inert,b=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,k=yy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,R=II([r,t]),F=qr(qr({},k),o);return L.createElement(L.Fragment,null,p&&L.createElement(E,{sideCar:xy,removeScrollBar:d,shards:h,noRelative:y,noIsolation:S,inert:v,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:x}),l?L.cloneElement(L.Children.only(u),qr(qr({},F),{ref:R})):L.createElement(w,qr({},F,{className:c,ref:R}),u))});eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eu.classNames={fullWidth:ml,zeroRight:vl};var LI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LI();return t&&e.setAttribute("nonce",t),e}function jI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function FI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var HI=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zI())&&(jI(t,r),FI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WI=function(){var e=HI();return function(t,r){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Sy=function(){var e=WI(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},BI={left:0,top:0,right:0,gap:0},nf=function(e){return parseInt(e||"",10)||0},UI=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[nf(r),nf(n),nf(o)]},VI=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BI;var t=UI(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},qI=Sy(),Xi="data-scroll-locked",GI=function(e,t,r,n){var o=e.left,a=e.top,l=e.right,u=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
-
.`.concat(
|
|
24
|
-
overflow: hidden `).concat(
|
|
25
|
-
padding-right: `).concat(
|
|
20
|
+
`)===-1)return null;let E="",R=0;for(;;){const k=h.indexOf(`
|
|
21
|
+
`,R),B=h.slice(R,k===-1?void 0:k+1);if(c(a,B)||(E+=B,k===-1||!B.trim()))break;R=k+1}const O=So(E);return O===""?null:[E,,O]}),i:3,u:wl,l:(h,S,E)=>f("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Cn(QA),i:0,u:h=>(p[h[1]]={target:h[2],title:h[4]},{}),l:Sl},23:{t:["!["],o:an(eT),i:0,u:h=>({alt:h[1]?wr(h[1]):void 0,ref:h[2]}),l:(h,S,E)=>p[h.ref]?f("img",{key:E.key,alt:h.alt,src:i(p[h.ref].target,"img","src"),title:p[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:Cn(tT),i:0,u:(h,S,E)=>({children:S(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,S,E)=>p[h.ref]?f("a",{key:E.key,href:i(p[h.ref].target,"a","href"),title:p[h.ref].title},S(h.children,E)):f("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:Br(Ph),i:1,u:TT,l(h,S,E){const R=h;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(O,k){return f("th",{key:k,style:Ih(R,k)},S(O,E))}))),f("tbody",null,R.cells.map(function(O,k){return f("tr",{key:k},O.map(function(B,M){return f("td",{key:M,style:Ih(R,M)},S(B,E))}))})))}},27:{o:xi(function(h,S){let E;return oa(h,":")&&(E=dT.exec(h)),E||gT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(ZA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:an(uT),i:2,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("strong",{key:E.key},S(h.children,E))},29:{t:h=>{const S=h[0];return(S==="*"||S==="_")&&h[1]!==S},o:an(lT),i:3,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("em",{key:E.key},S(h.children,E))},30:{t:["\\"],o:an(pT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:an(cT),i:3,u:wl,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:an(fT),i:3,u:wl,l:(h,S,E)=>f("del",{key:E.key},S(h.children,E))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const x=(function(h){var S=Object.keys(h);function E(R,O){var k=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var B=0;B<S.length;){var M=S[B],F=h[M];if(!F.t||OT(R,O,F.t)){var G=F.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var j=F.u(G,E,O);O.prevCapture+=G[0],j.type||(j.type=M),k.push(j);break}B++}else B++}return O.prevCapture="",k}return S.sort(function(R,O){return h[R].i-h[O].i||(R<O?-1:1)}),function(R,O){return E((function(k){return k.replace(zA,`
|
|
22
|
+
`).replace(UA,"").replace(nT," ")})(R),O)}})(b),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,B=[];let M=!1;for(let F=0;F<R.length;F++){O.key=F;const G=E(R[F],O),j=kh(G);j&&M?B[B.length-1]+=G:G!==null&&B.push(G),M=j}return O.key=k,B}return(function(k,B,M){const F=h[k.type].l;return S?S(()=>F(k,B,M),k,B,M):F(k,B,M)})(R,E,O)}})(b,t.renderRule),w=m(e);return g.length?f("div",null,w,f("footer",{key:"footer"},g.map(function(h){return f("div",{id:r(h.identifier,Ui),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const ga=e=>{let{children:t="",options:r}=e,i=(function(s,a){if(s==null)return{};var l,c,f={},m=Object.keys(s);for(c=0;c<m.length;c++)a.indexOf(l=m[c])>=0||(f[l]=s[l]);return f})(e,PA);return $.cloneElement(IT(t,r),i)},Lh=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return D.jsx(t,{className:We("flex-none size-6",r)});switch(e){case"error":case"danger":return D.jsx(tt.FdSanityCheckInfo,{className:We("flex-none size-6",r)});case"info":return D.jsx(D.Fragment,{children:D.jsx(tt.FdInfoBold,{className:We("flex-none size-6",r)})});case"warning":return D.jsx(D.Fragment,{children:D.jsx(tt.FdWarningDanger,{className:We("flex-none size-6",r)})});case"message":return D.jsx(D.Fragment,{children:D.jsx(tt.FdInfoBold,{className:We("flex-none size-6",r)})});default:return null}},LT=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const l=({className:c}={})=>D.jsx("button",{onClick:t,className:We("flex justify-center p-1",c),children:D.jsx(tt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return D.jsx("div",{className:We("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?D.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[D.jsx("div",{className:"pt-1",children:D.jsx(Lh,{kind:r,customIcon:a})}),D.jsx("div",{className:"flex items-center gap-1 prose",children:s?D.jsx(ga,{children:i}):D.jsx(D.Fragment,{children:i})}),l()]}):D.jsxs("div",{className:"flex items-start",children:[D.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>D.jsxs(D.Fragment,{children:[c.title&&D.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[D.jsx(Lh,{kind:r,customIcon:a}),D.jsxs("span",{children:[c.title," :"]})]}),D.jsx("ul",{className:We("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>D.jsx("li",{children:s?D.jsx(ga,{children:f}):D.jsx(D.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},cm=({children:e,size:t,className:r,...i})=>D.jsx("div",{style:{"--width":`${t||24}px`},className:We("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var _l={},Hi={},js={},Mh;function fm(){if(Mh)return js;Mh=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return js}var li={},qi={},Zi={},Fh;function MT(){if(Fh)return Zi;Fh=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Zi.default=e,Zi}var Dh;function $a(){if(Dh)return qi;Dh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(MT());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var i=r;return qi.default=i,qi}var Nh;function Ia(){if(Nh)return li;Nh=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0,li.unsafeStringify=i;var e=t($a());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function i(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function s(l,c=0){const f=i(l,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return li.default=a,li}var jh;function FT(){if(jh)return Hi;jh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=r(fm()),t=Ia();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,l=0;function c(m,v,g){let p=v&&g||0;const b=v||new Array(16);m=m||{};let x=m.node||i,d=m.clockseq!==void 0?m.clockseq:s;if(x==null||d==null){const O=m.random||(m.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),d==null&&(d=s=(O[6]<<8|O[7])&16383)}let w=m.msecs!==void 0?m.msecs:Date.now(),h=m.nsecs!==void 0?m.nsecs:l+1;const S=w-a+(h-l)/1e4;if(S<0&&m.clockseq===void 0&&(d=d+1&16383),(S<0||w>a)&&m.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,l=h,s=d,w+=122192928e5;const E=((w&268435455)*1e4+h)%4294967296;b[p++]=E>>>24&255,b[p++]=E>>>16&255,b[p++]=E>>>8&255,b[p++]=E&255;const R=w/4294967296*1e4&268435455;b[p++]=R>>>8&255,b[p++]=R&255,b[p++]=R>>>24&15|16,b[p++]=R>>>16&255,b[p++]=d>>>8|128,b[p++]=d&255;for(let O=0;O<6;++O)b[p+O]=x[O];return v||(0,t.unsafeStringify)(b)}var f=c;return Hi.default=f,Hi}var Gi={},un={},Ki={},zh;function dm(){if(zh)return Ki;zh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=t($a());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(s.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(s.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(s.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(s.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var i=r;return Ki.default=i,Ki}var Wh;function pm(){if(Wh)return un;Wh=1,Object.defineProperty(un,"__esModule",{value:!0}),un.URL=un.DNS=void 0,un.default=l;var e=Ia(),t=r(dm());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let m=0;m<c.length;++m)f.push(c.charCodeAt(m));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";un.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";un.URL=a;function l(c,f,m){function v(g,p,b,x){var d;if(typeof g=="string"&&(g=i(g)),typeof p=="string"&&(p=(0,t.default)(p)),((d=p)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+g.length);if(w.set(p),w.set(g,p.length),w=m(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,b){x=x||0;for(let h=0;h<16;++h)b[x+h]=w[h];return b}return(0,e.unsafeStringify)(w)}try{v.name=c}catch{}return v.DNS=s,v.URL=a,v}return un}var Vi={},Bh;function DT(){if(Bh)return Vi;Bh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;function e(b){if(typeof b=="string"){const x=unescape(encodeURIComponent(b));b=new Uint8Array(x.length);for(let d=0;d<x.length;++d)b[d]=x.charCodeAt(d)}return t(i(s(b),b.length*8))}function t(b){const x=[],d=b.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=b[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(b){return(b+64>>>9<<4)+14+1}function i(b,x){b[x>>5]|=128<<x%32,b[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<b.length;E+=16){const R=d,O=w,k=h,B=S;d=f(d,w,h,S,b[E],7,-680876936),S=f(S,d,w,h,b[E+1],12,-389564586),h=f(h,S,d,w,b[E+2],17,606105819),w=f(w,h,S,d,b[E+3],22,-1044525330),d=f(d,w,h,S,b[E+4],7,-176418897),S=f(S,d,w,h,b[E+5],12,1200080426),h=f(h,S,d,w,b[E+6],17,-1473231341),w=f(w,h,S,d,b[E+7],22,-45705983),d=f(d,w,h,S,b[E+8],7,1770035416),S=f(S,d,w,h,b[E+9],12,-1958414417),h=f(h,S,d,w,b[E+10],17,-42063),w=f(w,h,S,d,b[E+11],22,-1990404162),d=f(d,w,h,S,b[E+12],7,1804603682),S=f(S,d,w,h,b[E+13],12,-40341101),h=f(h,S,d,w,b[E+14],17,-1502002290),w=f(w,h,S,d,b[E+15],22,1236535329),d=m(d,w,h,S,b[E+1],5,-165796510),S=m(S,d,w,h,b[E+6],9,-1069501632),h=m(h,S,d,w,b[E+11],14,643717713),w=m(w,h,S,d,b[E],20,-373897302),d=m(d,w,h,S,b[E+5],5,-701558691),S=m(S,d,w,h,b[E+10],9,38016083),h=m(h,S,d,w,b[E+15],14,-660478335),w=m(w,h,S,d,b[E+4],20,-405537848),d=m(d,w,h,S,b[E+9],5,568446438),S=m(S,d,w,h,b[E+14],9,-1019803690),h=m(h,S,d,w,b[E+3],14,-187363961),w=m(w,h,S,d,b[E+8],20,1163531501),d=m(d,w,h,S,b[E+13],5,-1444681467),S=m(S,d,w,h,b[E+2],9,-51403784),h=m(h,S,d,w,b[E+7],14,1735328473),w=m(w,h,S,d,b[E+12],20,-1926607734),d=v(d,w,h,S,b[E+5],4,-378558),S=v(S,d,w,h,b[E+8],11,-2022574463),h=v(h,S,d,w,b[E+11],16,1839030562),w=v(w,h,S,d,b[E+14],23,-35309556),d=v(d,w,h,S,b[E+1],4,-1530992060),S=v(S,d,w,h,b[E+4],11,1272893353),h=v(h,S,d,w,b[E+7],16,-155497632),w=v(w,h,S,d,b[E+10],23,-1094730640),d=v(d,w,h,S,b[E+13],4,681279174),S=v(S,d,w,h,b[E],11,-358537222),h=v(h,S,d,w,b[E+3],16,-722521979),w=v(w,h,S,d,b[E+6],23,76029189),d=v(d,w,h,S,b[E+9],4,-640364487),S=v(S,d,w,h,b[E+12],11,-421815835),h=v(h,S,d,w,b[E+15],16,530742520),w=v(w,h,S,d,b[E+2],23,-995338651),d=g(d,w,h,S,b[E],6,-198630844),S=g(S,d,w,h,b[E+7],10,1126891415),h=g(h,S,d,w,b[E+14],15,-1416354905),w=g(w,h,S,d,b[E+5],21,-57434055),d=g(d,w,h,S,b[E+12],6,1700485571),S=g(S,d,w,h,b[E+3],10,-1894986606),h=g(h,S,d,w,b[E+10],15,-1051523),w=g(w,h,S,d,b[E+1],21,-2054922799),d=g(d,w,h,S,b[E+8],6,1873313359),S=g(S,d,w,h,b[E+15],10,-30611744),h=g(h,S,d,w,b[E+6],15,-1560198380),w=g(w,h,S,d,b[E+13],21,1309151649),d=g(d,w,h,S,b[E+4],6,-145523070),S=g(S,d,w,h,b[E+11],10,-1120210379),h=g(h,S,d,w,b[E+2],15,718787259),w=g(w,h,S,d,b[E+9],21,-343485551),d=a(d,R),w=a(w,O),h=a(h,k),S=a(S,B)}return[d,w,h,S]}function s(b){if(b.length===0)return[];const x=b.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(b[w/8]&255)<<w%32;return d}function a(b,x){const d=(b&65535)+(x&65535);return(b>>16)+(x>>16)+(d>>16)<<16|d&65535}function l(b,x){return b<<x|b>>>32-x}function c(b,x,d,w,h,S){return a(l(a(a(x,b),a(w,S)),h),d)}function f(b,x,d,w,h,S,E){return c(x&d|~x&w,b,x,h,S,E)}function m(b,x,d,w,h,S,E){return c(x&w|d&~w,b,x,h,S,E)}function v(b,x,d,w,h,S,E){return c(x^d^w,b,x,h,S,E)}function g(b,x,d,w,h,S,E){return c(d^(x|~w),b,x,h,S,E)}var p=e;return Vi.default=p,Vi}var Uh;function NT(){if(Uh)return Gi;Uh=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=r(pm()),t=r(DT());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Gi.default=s,Gi}var Xi={},Yi={},Hh;function jT(){if(Hh)return Yi;Hh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Yi.default=t,Yi}var qh;function zT(){if(qh)return Xi;qh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=i(jT()),t=i(fm()),r=Ia();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c,f){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const m=l.random||(l.rng||t.default)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,c){f=f||0;for(let v=0;v<16;++v)c[f+v]=m[v];return c}return(0,r.unsafeStringify)(m)}var a=s;return Xi.default=a,Xi}var Ji={},Qi={},Zh;function WT(){if(Zh)return Qi;Zh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(s,a,l,c){switch(s){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const v=unescape(encodeURIComponent(s));s=[];for(let g=0;g<v.length;++g)s.push(v.charCodeAt(g))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),m=new Array(f);for(let v=0;v<f;++v){const g=new Uint32Array(16);for(let p=0;p<16;++p)g[p]=s[v*64+p*4]<<24|s[v*64+p*4+1]<<16|s[v*64+p*4+2]<<8|s[v*64+p*4+3];m[v]=g}m[f-1][14]=(s.length-1)*8/Math.pow(2,32),m[f-1][14]=Math.floor(m[f-1][14]),m[f-1][15]=(s.length-1)*8&4294967295;for(let v=0;v<f;++v){const g=new Uint32Array(80);for(let h=0;h<16;++h)g[h]=m[v][h];for(let h=16;h<80;++h)g[h]=t(g[h-3]^g[h-8]^g[h-14]^g[h-16],1);let p=l[0],b=l[1],x=l[2],d=l[3],w=l[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(p,5)+e(S,b,x,d)+w+a[S]+g[h]>>>0;w=d,d=x,x=t(b,30)>>>0,b=p,p=E}l[0]=l[0]+p>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+d>>>0,l[4]=l[4]+w>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var i=r;return Qi.default=i,Qi}var Gh;function BT(){if(Gh)return Ji;Gh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=r(pm()),t=r(WT());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return Ji.default=s,Ji}var eo={},Kh;function UT(){if(Kh)return eo;Kh=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return eo.default=e,eo}var to={},Vh;function HT(){if(Vh)return to;Vh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=t($a());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=r;return to.default=i,to}var Xh;function qT(){return Xh||(Xh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=v(FT()),r=v(NT()),i=v(zT()),s=v(BT()),a=v(UT()),l=v(HT()),c=v($a()),f=v(Ia()),m=v(dm());function v(g){return g&&g.__esModule?g:{default:g}}})(_l)),_l}var Ol,Yh;function ZT(){if(Yh)return Ol;Yh=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,i,s,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,m=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*l+a[r],i>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,m=this.dstAlphabet.slice(i,i+1).concat(m)}while(s!==0);return m},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Ol=e,Ol}var Al,Jh;function GT(){if(Jh)return Al;Jh=1;var e=ZT();function t(r,i){var s=new e(r,i);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Al=t,Al}var Tl,Qh;function KT(){if(Qh)return Tl;Qh=1;const{v4:e,validate:t}=qT(),r=GT(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const l=(m,v,g)=>{const p=v(m.toLowerCase().replace(/-/g,""));return!g||!g.consistentLength?p:p.padStart(g.shortIdLength,g.paddingChar)},c=(m,v)=>{const p=v(m).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[p[1],p[2],p[3],p[4],p[5]].join("-")},f=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Tl=(()=>{const m=(v,g)=>{const p=v||i.flickrBase58,b={...s,...g};if([...new Set(Array.from(p))].length!==p.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(p.length),d={shortIdLength:x,consistentLength:b.consistentLength,paddingChar:p[0]},w=r(r.HEX,p),h=r(p,r.HEX),S=()=>l(e(),w,d),R={alphabet:p,fromUUID:O=>l(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const B=b.consistentLength?O.length===x:O.length<=x,M=O.split("").every(F=>p.includes(F));return k===!1?B&&M:B&&M&&t(c(O,h))}};return Object.freeze(R),R};return m.constants=i,m.uuid=e,m.generate=()=>(a||(a=m(i.flickrBase58).generate),a()),m})(),Tl}var Bc=KT();const hm=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Bc.generate()}`;return D.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[D.jsx("defs",{children:D.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:D.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?D.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):D.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},gm=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?D.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return D.jsx(tt.FdDown,{className:We(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?D.jsx(tt.FdDown,{}):D.jsx(tt.FdRight,{});default:return D.jsx(tt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):D.jsx("div",{className:"flex h-6 w-3 items-center"}),Uc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:l,onNodeClick:c})=>{var b;const{key:f,children:m}=e,v=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),g=l&&typeof l=="function"?l(e,t,v,s,a):YT(e,t,v,c);return!((b=e.options)!=null&&b.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"flex items-center space-x-2",children:g},f),XT(m||[],t,a,r,i,v.expanded,s,c,l)]}):null},VT=function(e,t){var l;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=D.jsx(cm,{children:i})),D.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,D.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&D.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},XT=function(e,t,r,i,s,a,l,c,f){return e.length&&a?e.map(m=>D.jsx(Uc,{actions:l,node:m,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},m.key)):null},YT=function(e,t,r,i){return D.jsxs(D.Fragment,{children:[D.jsx(hm,{showLines:!0,depth:t}),D.jsx(gm,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),VT(e,i)]})},zs=e=>t=>e===t,JT=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:f,className:m}){const[v,g]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&v.expandedKeys.length>0||g({...v,expandedKeys:l||v.expandedKeys})},[l]);const p=W.useCallback(h=>{if(!h)return;const S=v.expandedKeys.findIndex(zs(h.key));let E=[];S===-1?(E=[...v.expandedKeys,h.key],g(()=>({...v,expandedKeys:E})),s&&s(E)):(E=v.expandedKeys.filter(R=>R!==h.key),g(()=>({...v,expandedKeys:E})),s&&s(E))},[v]),b=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(zs(h.key))===-1&&g({...v,selectedKeys:[...v.selectedKeys,h.key]})},[v]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(zs(h.key))===-1&&g({...v,selectedKeys:[h.key]})},[v]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){g({...v,selectedKeys:[]});return}v.selectedKeys.findIndex(zs(h.key))!==-1&&g({...v,selectedKeys:v.selectedKeys.filter(R=>R!==h.key)})},[v]),w=W.useMemo(()=>({expand:p,select:b,selectSingle:x,deselect:d}),[d,p,b,x]);return D.jsx("div",{className:We("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>D.jsx(Uc,{node:h,searchQuery:a||"",depth:0,expandedKeys:v.expandedKeys,selectedKeys:v.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function aa(e){return e.of&&e.children?D.jsx(D.Fragment,{children:e.children}):null}function Ve(){return Ve=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},Ve.apply(null,arguments)}function QT(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eR={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 vm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var tR=/[A-Z]|^ms/g,rR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mm=function(t){return t.charCodeAt(1)===45},eg=function(t){return t!=null&&typeof t!="boolean"},Rl=vm(function(e){return mm(e)?e:e.replace(tR,"-$&").toLowerCase()}),tg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(rR,function(i,s,a){return _r={name:s,styles:a,next:_r},s})}return eR[t]!==1&&!mm(t)&&typeof r=="number"&&r!==0?r+"px":r};function To(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return _r={name:s.name,styles:s.styles,next:_r},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=a.styles+";";return c}return nR(e,t,r)}case"function":{if(e!==void 0){var f=_r,m=r(e);return _r=f,To(e,t,m)}break}}var v=r;if(t==null)return v;var g=t[v];return g!==void 0?g:v}function nR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=To(e,t,r[s])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":eg(c)&&(i+=Rl(a)+":"+tg(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var f=0;f<l.length;f++)eg(l[f])&&(i+=Rl(a)+":"+tg(a,l[f])+";");else{var m=To(e,t,l);switch(a){case"animation":case"animationName":{i+=Rl(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var rg=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function iR(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";_r=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=To(r,t,a);else{var l=a;s+=l[0]}for(var c=1;c<e.length;c++)if(s+=To(r,t,e[c]),i){var f=a;s+=f[c]}rg.lastIndex=0;for(var m="",v;(v=rg.exec(s))!==null;)m+="-"+v[1];var g=QT(s)+m;return{name:g,styles:s,next:_r}}var oR=function(t){return t()},sR=$.useInsertionEffect?$.useInsertionEffect:!1,aR=sR||oR,uR=!0;function lR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var ym=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||uR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},cR=function(t,r,i){ym(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},fR=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dR=vm(function(e){return fR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),pR=dR,hR=function(t){return t!=="theme"},ng=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pR:hR},ig=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},gR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return ym(r,i,s),aR(function(){return cR(r,i,s)}),null},vR=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=ig(t,r,i),f=c||ng(s),m=!f("as");return function(){var v=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),v[0]==null||v[0].raw===void 0)g.push.apply(g,v);else{var p=v[0];g.push(p[0]);for(var b=v.length,x=1;x<b;x++)g.push(v[x],p[x])}var d=sc.withEmotionCache(function(w,h,S){var E=m&&w.as||s,R="",O=[],k=w;if(w.theme==null){k={};for(var B in w)k[B]=w[B];k.theme=$.useContext(sc.ThemeContext)}typeof w.className=="string"?R=lR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=iR(g.concat(O),h.registered,k);R+=h.key+"-"+M.name,l!==void 0&&(R+=" "+l);var F=m&&c===void 0?ng(E):f,G={};for(var j in w)m&&j==="as"||F(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(gR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,G))});return d.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=s,d.__emotion_styles=g,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+l}}),d.withComponent=function(w,h){var S=e(w,Ve({},r,h,{shouldForwardProp:ig(d,h,!0)}));return S.apply(void 0,g)},d}},mR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],va=vR.bind(null);mR.forEach(function(e){va[e]=va(e)});var yR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Ws=new WeakMap,Bs={},Pl=0,bm=function(e){return e&&(e.host||bm(e.parentNode))},bR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=bm(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})},wR=function(e,t,r,i){var s=bR(t,Array.isArray(e)?e:[e]);Bs[r]||(Bs[r]=new WeakMap);var a=Bs[r],l=[],c=new Set,f=new Set(s),m=function(g){!g||c.has(g)||(c.add(g),m(g.parentNode))};s.forEach(m);var v=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(p){if(c.has(p))v(p);else try{var b=p.getAttribute(i),x=b!==null&&b!=="false",d=(ci.get(p)||0)+1,w=(a.get(p)||0)+1;ci.set(p,d),a.set(p,w),l.push(p),d===1&&x&&Ws.set(p,!0),w===1&&p.setAttribute(r,"true"),x||p.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return v(t),c.clear(),Pl++,function(){l.forEach(function(g){var p=ci.get(g)-1,b=a.get(g)-1;ci.set(g,p),a.set(g,b),p||(Ws.has(g)||g.removeAttribute(i),Ws.delete(g)),b||g.removeAttribute(r)}),Pl--,Pl||(ci=new WeakMap,ci=new WeakMap,Ws=new WeakMap,Bs={})}},xR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=yR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),wR(i,s,r,"aria-hidden")):function(){return null}},lc=function(e,t){return lc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},lc(e,t)};function La(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Or=function(){return Or=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Or.apply(this,arguments)};function wm(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function cc(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 fc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],l;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return a}function ma(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var ua="right-scroll-bar-position",la="width-before-scroll-bar",SR="with-scroll-bars-hidden",ER="--removed-body-scroll-bar-size";function Cl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _R(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}var OR=typeof window<"u"?$.useLayoutEffect:$.useEffect,og=new WeakMap;function AR(e,t){var r=_R(null,function(i){return e.forEach(function(s){return Cl(s,i)})});return OR(function(){var i=og.get(r);if(i){var s=new Set(i),a=new Set(e),l=r.current;s.forEach(function(c){a.has(c)||Cl(c,null)}),a.forEach(function(c){s.has(c)||Cl(c,l)})}og.set(r,e)},[e]),r}function TR(e){return e}function RR(e,t){t===void 0&&(t=TR);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(i=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var f=function(){var v=l;l=[],v.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(v){l.push(v),m()},filter:function(v){return l=l.filter(v),r}}}};return s}function PR(e){e===void 0&&(e={});var t=RR(null);return t.options=Or({async:!0,ssr:!1},e),t}var xm=function(e){var t=e.sideCar,r=wm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return $.createElement(i,Or({},r))};xm.isSideCarExport=!0;function CR(e,t){return e.useMedium(t),xm}var Sm=PR(),kl=function(){},Ma=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:kl,onWheelCapture:kl,onTouchMoveCapture:kl}),s=i[0],a=i[1],l=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,v=e.enabled,g=e.shards,p=e.sideCar,b=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=wm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=AR([r,t]),B=Or(Or({},R),s);return $.createElement($.Fragment,null,v&&$.createElement(O,{sideCar:Sm,removeScrollBar:m,shards:g,noRelative:b,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),l?$.cloneElement($.Children.only(c),Or(Or({},B),{ref:k})):$.createElement(S,Or({},B,{className:f,ref:k}),c))});Ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ma.classNames={fullWidth:la,zeroRight:ua};var kR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $R(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kR();return t&&e.setAttribute("nonce",t),e}function IR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function LR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var MR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$R())&&(IR(t,r),LR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},FR=function(){var e=MR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Em=function(){var e=FR(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},DR={left:0,top:0,right:0,gap:0},$l=function(e){return parseInt(e||"",10)||0},NR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[$l(r),$l(i),$l(s)]},jR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DR;var t=NR(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},zR=Em(),hi="data-scroll-locked",WR=function(e,t,r,i){var s=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
+
.`.concat(SR,` {
|
|
24
|
+
overflow: hidden `).concat(i,`;
|
|
25
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
26
26
|
}
|
|
27
|
-
body[`).concat(
|
|
28
|
-
overflow: hidden `).concat(
|
|
27
|
+
body[`).concat(hi,`] {
|
|
28
|
+
overflow: hidden `).concat(i,`;
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
|
-
`).concat([t&&"position: relative ".concat(
|
|
31
|
-
padding-left: `.concat(
|
|
30
|
+
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
31
|
+
padding-left: `.concat(s,`px;
|
|
32
32
|
padding-top: `).concat(a,`px;
|
|
33
33
|
padding-right: `).concat(l,`px;
|
|
34
34
|
margin-left:0;
|
|
35
35
|
margin-top:0;
|
|
36
|
-
margin-right: `).concat(
|
|
37
|
-
`),r==="padding"&&"padding-right: ".concat(
|
|
36
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
37
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
41
|
-
right: `).concat(
|
|
40
|
+
.`).concat(ua,` {
|
|
41
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
45
|
-
margin-right: `).concat(
|
|
44
|
+
.`).concat(la,` {
|
|
45
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
49
|
-
right: 0 `).concat(
|
|
48
|
+
.`).concat(ua," .").concat(ua,` {
|
|
49
|
+
right: 0 `).concat(i,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
53
|
-
margin-right: 0 `).concat(
|
|
52
|
+
.`).concat(la," .").concat(la,` {
|
|
53
|
+
margin-right: 0 `).concat(i,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
body[`).concat(
|
|
57
|
-
`).concat(
|
|
56
|
+
body[`).concat(hi,`] {
|
|
57
|
+
`).concat(ER,": ").concat(c,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},
|
|
59
|
+
`)},sg=function(){var e=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(e)?e:0},BR=function(){$.useEffect(function(){return document.body.setAttribute(hi,(sg()+1).toString()),function(){var e=sg()-1;e<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,e.toString())}},[])},UR=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;BR();var a=$.useMemo(function(){return jR(s)},[s]);return $.createElement(zR,{styles:WR(a,!t,s,r?"":"!important")})},dc=!1;if(typeof window<"u")try{var Us=Object.defineProperty({},"passive",{get:function(){return dc=!0,!0}});window.addEventListener("test",Us,Us),window.removeEventListener("test",Us,Us)}catch{dc=!1}var fi=dc?{passive:!1}:!1,HR=function(e){return e.tagName==="TEXTAREA"},_m=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!HR(e)&&r[t]==="visible")},qR=function(e){return _m(e,"overflowY")},ZR=function(e){return _m(e,"overflowX")},ag=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=Om(e,i);if(s){var a=Am(e,i),l=a[1],c=a[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},GR=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},KR=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Om=function(e,t){return e==="v"?qR(t):ZR(t)},Am=function(e,t){return e==="v"?GR(t):KR(t)},VR=function(e,t){return e==="h"&&t==="rtl"?-1:1},XR=function(e,t,r,i,s){var a=VR(e,window.getComputedStyle(t).direction),l=a*i,c=r.target,f=t.contains(c),m=!1,v=l>0,g=0,p=0;do{if(!c)break;var b=Am(e,c),x=b[0],d=b[1],w=b[2],h=d-w-a*x;(x||h)&&Om(e,c)&&(g+=h,p+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(v&&Math.abs(g)<1||!v&&Math.abs(p)<1)&&(m=!0),m},Hs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ug=function(e){return[e.deltaX,e.deltaY]},lg=function(e){return e&&"current"in e?e.current:e},YR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},JR=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},oN=0,Ui=[];function aN(e){var t=L.useRef([]),r=L.useRef([0,0]),n=L.useRef(),o=L.useState(oN++)[0],a=L.useState(Sy)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Cl([e.lockRef.current],(e.shards||[]).map(cm),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=L.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=Fs(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],k="deltaY"in v?v.deltaY:w[1]-m[1],E,R=v.target,F=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&F==="h"&&R.type==="range")return!1;var A=lm(F,R);if(!A)return!0;if(A?E=F:(E=F==="v"?"h":"v",A=lm(F,R)),!A)return!1;if(!n.current&&"changedTouches"in v&&(x||k)&&(n.current=E),!E)return!0;var P=n.current||E;return rN(P,b,v,P==="h"?x:k)},[]),c=L.useCallback(function(v){var b=v;if(!(!Ui.length||Ui[Ui.length-1]!==a)){var m="deltaY"in b?um(b):Fs(b),w=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&nN(E.delta,m)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(cm).filter(Boolean).filter(function(E){return E.contains(b.target)}),k=x.length>0?u(b,x[0]):!l.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),d=L.useCallback(function(v,b,m,w){var x={name:v,delta:b,target:m,should:w,shadowParent:sN(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),p=L.useCallback(function(v){r.current=Fs(v),n.current=void 0},[]),h=L.useCallback(function(v){d(v.type,um(v),v.target,u(v,e.lockRef.current))},[]),g=L.useCallback(function(v){d(v.type,Fs(v),v.target,u(v,e.lockRef.current))},[]);L.useEffect(function(){return Ui.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Bi),document.addEventListener("touchmove",c,Bi),document.addEventListener("touchstart",p,Bi),function(){Ui=Ui.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,Bi),document.removeEventListener("touchmove",c,Bi),document.removeEventListener("touchstart",p,Bi)}},[]);var y=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(a,{styles:iN(o)}):null,y?L.createElement(KI,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lN=$I(xy,aN);var Oy=L.forwardRef(function(e,t){return L.createElement(eu,qr({},e,{ref:t,sideCar:lN}))});Oy.classNames=eu.classNames;const uN=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},cN=L.useId||(()=>{});let fN=0;function Ay(e){const[t,r]=L.useState(cN());return uN((()=>{r((n=>n??String(fN++)))}),[e]),e||(t?`radix-${t}`:"")}function Ty(...e){return t=>e.forEach((r=>(function(n,o){typeof n=="function"?n(o):n!=null&&(n.current=o)})(r,t)))}function Gn(...e){return L.useCallback(Ty(...e),e)}const Ry=L.forwardRef(((e,t)=>{const{children:r,...n}=e;return L.Children.toArray(r).some(fm)?L.createElement(L.Fragment,null,L.Children.map(r,(o=>fm(o)?L.createElement(Jf,ut({},n,{ref:t}),o.props.children):o))):L.createElement(Jf,ut({},n,{ref:t}),r)}));Ry.displayName="Slot";const Jf=L.forwardRef(((e,t)=>{const{children:r,...n}=e;return L.isValidElement(r)?L.cloneElement(r,{...dN(n,r.props),ref:Ty(t,r.ref)}):L.Children.count(r)>1?L.Children.only(null):null}));Jf.displayName="SlotClone";const Cy=({children:e})=>L.createElement(L.Fragment,null,e);function fm(e){return L.isValidElement(e)&&e.type===Cy}function dN(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{a==null||a(...l),o==null||o(...l)}:n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const Zn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:L.forwardRef(((r,n)=>{const{asChild:o,...a}=r,l=o?Ry:t;return L.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),L.createElement(l,ut({},a,{ref:n}))}))})),{}),dm=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},Md=e=>{const{present:t,children:r}=e,n=(function(l){const[u,c]=L.useState(),d=L.useRef({}),p=L.useRef(l),h=L.useRef("none"),g=l?"mounted":"unmounted",[y,S]=(function(v,b){return L.useReducer(((m,w)=>{const x=b[m][w];return x??m}),v)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect((()=>{const v=Hs(d.current);h.current=y==="mounted"?v:"none"}),[y]),dm((()=>{const v=d.current,b=p.current;if(b!==l){const m=h.current,w=Hs(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(b&&m!==w?"ANIMATION_OUT":"UNMOUNT"),p.current=l}}),[l,S]),dm((()=>{if(u){const v=m=>{const w=Hs(d.current).includes(m.animationName);m.target===u&&w&&S("ANIMATION_END")},b=m=>{m.target===u&&(h.current=Hs(d.current))};return u.addEventListener("animationstart",b),u.addEventListener("animationcancel",v),u.addEventListener("animationend",v),()=>{u.removeEventListener("animationstart",b),u.removeEventListener("animationcancel",v),u.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[u,S]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:L.useCallback((v=>{v&&(d.current=getComputedStyle(v)),c(v)}),[])}})(t),o=typeof r=="function"?r({present:n.isPresent}):L.Children.only(r),a=Gn(n.ref,o.ref);return typeof r=="function"||n.isPresent?L.cloneElement(o,{ref:a}):null};function Hs(e){return(e==null?void 0:e.animationName)||"none"}Md.displayName="Presence";let of=0;function pN(){L.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:pm()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:pm()),of++,()=>{of===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),of--}}),[])}function pm(){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 hN=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},Dd=L.forwardRef(((e,t)=>{var r,n;const{containerRef:o,style:a,...l}=e,u=(r=o==null?void 0:o.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,c]=L.useState({});return hN((()=>{c({})}),[]),u?lo.createPortal(L.createElement(Zn.div,ut({"data-radix-portal":""},l,{ref:t,style:u===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),u):null}));function wi(e){const t=L.useRef(e);return L.useEffect((()=>{t.current=e})),L.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const hm={bubbles:!1,cancelable:!0},gN=L.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[u,c]=L.useState(null),d=wi(o),p=wi(a),h=L.useRef(null),g=Gn(t,(v=>c(v))),y=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect((()=>{if(n){let v=function(m){if(y.paused||!u)return;const w=m.target;u.contains(w)?h.current=w:si(h.current,{select:!0})},b=function(m){!y.paused&&u&&(u.contains(m.relatedTarget)||si(h.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b)}}}),[n,u,y.paused]),L.useEffect((()=>{if(u){mm.add(y);const b=document.activeElement;if(!u.contains(b)){const m=new Event("focusScope.autoFocusOnMount",hm);u.addEventListener("focusScope.autoFocusOnMount",d),u.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const k=document.activeElement;for(const E of w)if(si(E,{select:x}),document.activeElement!==k)return})((v=gm(u),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===b&&si(u))}return()=>{u.removeEventListener("focusScope.autoFocusOnMount",d),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",hm);u.addEventListener("focusScope.autoFocusOnUnmount",p),u.dispatchEvent(m),m.defaultPrevented||si(b??document.body,{select:!0}),u.removeEventListener("focusScope.autoFocusOnUnmount",p),mm.remove(y)}),0)}}var v}),[u,d,p,y]);const S=L.useCallback((v=>{if(!r&&!n||y.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(b&&m){const w=v.currentTarget,[x,k]=(function(E){const R=gm(E),F=vm(R,E),A=vm(R.reverse(),E);return[F,A]})(w);x&&k?v.shiftKey||m!==k?v.shiftKey&&m===x&&(v.preventDefault(),r&&si(k,{select:!0})):(v.preventDefault(),r&&si(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,y.paused]);return L.createElement(Zn.div,ut({tabIndex:-1},l,{ref:g,onKeyDown:S}))}));function gm(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function vm(e,t){for(const r of e)if(!vN(r,{upTo:t}))return r}function vN(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 si(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(n){return n instanceof HTMLInputElement&&"select"in n})(e)&&t&&e.select()}}const mm=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=bm(e,t),e.unshift(t)},remove(t){var r;e=bm(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function bm(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Py(e){const t=wi(e);L.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const mN=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{};let ym,Ws=0;function bN({disabled:e}){const t=L.useRef(!1);mN((()=>{if(e){let r=function(){Ws--,Ws===0&&(document.body.style.pointerEvents=ym)},n=function(o){t.current=o.pointerType!=="mouse"};return Ws===0&&(ym=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ws++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function sr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}const yN=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wN=L.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...c}=e,d=L.useContext(yN),[p,h]=L.useState(null),[,g]=L.useState({}),y=Gn(t,(R=>h(R))),S=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=S.indexOf(v),m=p?S.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,x=m>=b,k=(function(R){const F=wi(R),A=L.useRef(!1);return L.useEffect((()=>{const P=$=>{$.target&&!A.current&&xm("dismissableLayer.pointerDownOutside",F,{originalEvent:$}),A.current=!1},B=window.setTimeout((()=>{document.addEventListener("pointerdown",P)}),0);return()=>{window.clearTimeout(B),document.removeEventListener("pointerdown",P)}}),[F]),{onPointerDownCapture:()=>A.current=!0}})((R=>{const F=R.target,A=[...d.branches].some((P=>P.contains(F)));x&&!A&&(o==null||o(R),l==null||l(R),R.defaultPrevented||u==null||u())})),E=(function(R){const F=wi(R),A=L.useRef(!1);return L.useEffect((()=>{const P=B=>{B.target&&!A.current&&xm("dismissableLayer.focusOutside",F,{originalEvent:B})};return document.addEventListener("focusin",P),()=>document.removeEventListener("focusin",P)}),[F]),{onFocusCapture:()=>A.current=!0,onBlurCapture:()=>A.current=!1}})((R=>{const F=R.target;[...d.branches].some((A=>A.contains(F)))||(a==null||a(R),l==null||l(R),R.defaultPrevented||u==null||u())}));return Py((R=>{m===d.layers.size-1&&(n==null||n(R),R.defaultPrevented||u==null||u())})),bN({disabled:r}),L.useEffect((()=>{p&&(r&&d.layersWithOutsidePointerEventsDisabled.add(p),d.layers.add(p),wm())}),[p,r,d]),L.useEffect((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),wm())}),[p,d]),L.useEffect((()=>{const R=()=>g({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),L.createElement(Zn.div,ut({},c,{ref:y,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:sr(e.onFocusCapture,E.onFocusCapture),onBlurCapture:sr(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:sr(e.onPointerDownCapture,k.onPointerDownCapture)}))}));function wm(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function xm(e,t,r){const n=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(o)}function Sm(e){const[t,r]=L.useState(void 0);return L.useEffect((()=>{if(e){const n=new ResizeObserver((o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,u;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;l=d.inlineSize,u=d.blockSize}else{const c=e.getBoundingClientRect();l=c.width,u=c.height}r({width:l,height:u})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)}),[e]),t}function xN(e,t){const r=ui.get(e);return r===void 0?(ui.set(e,{rect:{},callbacks:[t]}),ui.size===1&&(Qf=requestAnimationFrame(Iy))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=ui.get(e);if(n===void 0)return;const o=n.callbacks.indexOf(t);o>-1&&n.callbacks.splice(o,1),n.callbacks.length===0&&(ui.delete(e),ui.size===0&&cancelAnimationFrame(Qf))}}let Qf;const ui=new Map;function Iy(){const e=[];ui.forEach(((t,r)=>{const n=r.getBoundingClientRect();var o,a;o=t.rect,a=n,(o.width!==a.width||o.height!==a.height||o.top!==a.top||o.right!==a.right||o.bottom!==a.bottom||o.left!==a.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Qf=requestAnimationFrame(Iy)}function Ny(e){const[t,r]=L.useState();return L.useEffect((()=>{if(e){const n=xN(e,r);return()=>{r(void 0),n()}}}),[e]),t}function $d(e,t=[]){let r=[];const n=()=>{const o=r.map((a=>L.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||o;return L.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return n.scopeName=e,[function(o,a){const l=L.createContext(a),u=r.length;function c(d){const{scope:p,children:h,...g}=d,y=(p==null?void 0:p[e][u])||l,S=L.useMemo((()=>g),Object.values(g));return L.createElement(y.Provider,{value:S},h)}return r=[...r,a],c.displayName=o+"Provider",[c,function(d,p){const h=(p==null?void 0:p[e][u])||l,g=L.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}]},SN(n,...t)]}function SN(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((o=>({useScope:o(),scopeName:o.scopeName})));return function(o){const a=n.reduce(((l,{useScope:u,scopeName:c})=>({...l,...u(o)[`__scope${c}`]})),{});return L.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function _N({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:o,sideOffset:a=0,align:l,alignOffset:u=0,shouldAvoidCollisions:c=!0,collisionBoundariesRect:d,collisionTolerance:p=0}){if(!e||!t||!d)return{popperStyles:EN,arrowStyles:af};const h=(function(F,A,P=0,B=0,$){const M=$?$.height:0,U=_m(A,F,"x"),H=_m(A,F,"y"),I=H.before-P-M,K=H.after+P+M,X=U.before-P-M,Z=U.after+P+M;return{top:{start:{x:U.start+B,y:I},center:{x:U.center,y:I},end:{x:U.end-B,y:I}},right:{start:{x:Z,y:H.start+B},center:{x:Z,y:H.center},end:{x:Z,y:H.end-B}},bottom:{start:{x:U.start+B,y:K},center:{x:U.center,y:K},end:{x:U.end-B,y:K}},left:{start:{x:X,y:H.start+B},center:{x:X,y:H.center},end:{x:X,y:H.end-B}}}})(t,e,a,u,r),g=h[o][l];if(c===!1){const F=Em(g);let A=af;return r&&(A=Om({popperSize:t,arrowSize:r,arrowOffset:n,side:o,align:l})),{popperStyles:{...F,"--radix-popper-transform-origin":km(t,o,l,n,r)},arrowStyles:A,placedSide:o,placedAlign:l}}const y=DOMRect.fromRect({...t,...g}),S=(v=d,b=p,DOMRect.fromRect({width:v.width-2*b,height:v.height-2*b,x:v.left+b,y:v.top+b}));var v,b;const m=Tm(y,S),w=h[Am(o)][l],x=(function(F,A,P){const B=Am(F);return A[F]&&!P[B]?B:F})(o,m,Tm(DOMRect.fromRect({...t,...w}),S)),k=(function(F,A,P,B,$){const M=P==="top"||P==="bottom",U=M?"left":"top",H=M?"right":"bottom",I=M?"width":"height",K=A[I]>F[I];return(B==="start"||B==="center")&&($[U]&&K||$[H]&&!K)?"end":(B==="end"||B==="center")&&($[H]&&K||$[U]&&!K)?"start":B})(t,e,o,l,m),E=Em(h[x][k]);let R=af;return r&&(R=Om({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:k})),{popperStyles:{...E,"--radix-popper-transform-origin":km(t,x,k,n,r)},arrowStyles:R,placedSide:x,placedAlign:k}}function _m(e,t,r){const n=e[r==="x"?"left":"top"],o=r==="x"?"width":"height",a=e[o],l=t[o];return{before:n-l,start:n,center:n+(a-l)/2,end:n+a-l,after:n+a}}function Em(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 km(e,t,r,n,o){const a=t==="top"||t==="bottom",l=o?o.width:0,u=o?o.height:0,c=l/2+n;let d="",p="";return a?(d={start:`${c}px`,center:"center",end:e.width-c+"px"}[r],p=t==="top"?`${e.height+u}px`:-u+"px"):(d=t==="left"?`${e.width+u}px`:-u+"px",p={start:`${c}px`,center:"center",end:e.height-c+"px"}[r]),`${d} ${p}`}const EN={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},af={position:"absolute",opacity:0};function Om({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:o}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,u={top:0,right:90,bottom:180,left:-90}[n],c=Math.max(t.width,t.height),d={width:`${c}px`,height:`${c}px`,transform:`rotate(${u}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:kN(n,o)};return n!=="top"&&n!=="bottom"||(o==="start"&&(d.left=`${r}px`),o==="center"&&(d.left=`${a}px`),o==="end"&&(d.right=`${r}px`)),n!=="left"&&n!=="right"||(o==="start"&&(d.top=`${r}px`),o==="center"&&(d.top=`${l}px`),o==="end"&&(d.bottom=`${r}px`)),d}function kN(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Am(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Tm(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[My,tu]=$d("Popper"),[ON,Dy]=My("Popper"),AN=e=>{const{__scopePopper:t,children:r}=e,[n,o]=L.useState(null);return L.createElement(ON,{scope:t,anchor:n,onAnchorChange:o},r)},TN=L.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Dy("PopperAnchor",r),l=L.useRef(null),u=Gn(t,l);return L.useEffect((()=>{a.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:L.createElement(Zn.div,ut({},o,{ref:u}))})),[RN,CF]=My("PopperContent"),CN=L.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o,align:a="center",alignOffset:l,collisionTolerance:u,avoidCollisions:c=!0,...d}=e,p=Dy("PopperContent",r),[h,g]=L.useState(),y=Ny(p.anchor),[S,v]=L.useState(null),b=Sm(S),[m,w]=L.useState(null),x=Sm(m),k=Gn(t,(M=>v(M))),E=(function(){const[M,U]=L.useState(void 0);return L.useEffect((()=>{let H;function I(){U({width:window.innerWidth,height:window.innerHeight})}function K(){window.clearTimeout(H),H=window.setTimeout(I,100)}return I(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}),[]),M})(),R=E?DOMRect.fromRect({...E,x:0,y:0}):void 0,{popperStyles:F,arrowStyles:A,placedSide:P,placedAlign:B}=_N({anchorRect:y,popperSize:b,arrowSize:x,arrowOffset:h,side:n,sideOffset:o,align:a,alignOffset:l,shouldAvoidCollisions:c,collisionBoundariesRect:R,collisionTolerance:u}),$=P!==void 0;return L.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},L.createElement(RN,{scope:r,arrowStyles:A,onArrowChange:w,onArrowOffsetChange:g},L.createElement(Zn.div,ut({"data-side":P,"data-align":B},d,{style:{...d.style,animation:$?void 0:"none"},ref:k}))))})),$y=AN,Ly=TN,zy=CN;function jy({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,o]=(function({defaultProp:c,onChange:d}){const p=L.useState(c),[h]=p,g=L.useRef(h),y=wi(d);return L.useEffect((()=>{g.current!==h&&(y(h),g.current=h)}),[h,g,y]),p})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:n,u=wi(r);return[l,L.useCallback((c=>{if(a){const d=c,p=typeof c=="function"?d(e):c;p!==e&&u(p)}else o(c)}),[a,e,o,u])]}const[PN]=$d("Popover",[tu]),Ld=tu(),[IN,Ma]=PN("Popover"),NN=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:l=!1}=e,u=Ld(t),c=L.useRef(null),[d,p]=L.useState(!1),[h=!1,g]=jy({prop:n,defaultProp:o,onChange:a});return L.createElement($y,u,L.createElement(IN,{scope:t,contentId:Ay(),triggerRef:c,open:h,onOpenChange:g,onOpenToggle:L.useCallback((()=>g((y=>!y))),[g]),hasCustomAnchor:d,onCustomAnchorAdd:L.useCallback((()=>p(!0)),[]),onCustomAnchorRemove:L.useCallback((()=>p(!1)),[]),modal:l},r))},MN=L.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=Ma("PopoverTrigger",r),a=Ld(r),l=Gn(t,o.triggerRef),u=L.createElement(Zn.button,ut({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hy(o.open)},n,{ref:l,onClick:sr(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?u:L.createElement(Ly,ut({asChild:!0},a),u)})),DN=L.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=Ma("PopoverContent",e.__scopePopover);return L.createElement(Md,{present:r||o.open},o.modal?L.createElement($N,ut({},n,{ref:t})):L.createElement(LN,ut({},n,{ref:t})))})),$N=L.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...o}=e,a=Ma("PopoverContent",e.__scopePopover),l=L.useRef(null),u=Gn(t,l),c=L.useRef(!1);L.useEffect((()=>{const p=l.current;if(p)return AI(p)}),[]);const d=n?Dd:L.Fragment;return L.createElement(d,null,L.createElement(Oy,{allowPinchZoom:r},L.createElement(Fy,ut({},o,{ref:u,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:sr(e.onCloseAutoFocus,(p=>{var h;p.preventDefault(),c.current||(h=a.triggerRef.current)===null||h===void 0||h.focus()})),onPointerDownOutside:sr(e.onPointerDownOutside,(p=>{const h=p.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,y=h.button===2||g;c.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:sr(e.onFocusOutside,(p=>p.preventDefault()),{checkForDefaultPrevented:!1})}))))})),LN=L.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,o=Ma("PopoverContent",e.__scopePopover),a=L.useRef(!1),l=r?Dd:L.Fragment;return L.createElement(l,null,L.createElement(Fy,ut({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,d;(c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,u),u.defaultPrevented||(a.current||(d=o.triggerRef.current)===null||d===void 0||d.focus(),u.preventDefault()),a.current=!1},onInteractOutside:u=>{var c,d;(c=e.onInteractOutside)===null||c===void 0||c.call(e,u),u.defaultPrevented||(a.current=!0);const p=u.target;!((d=o.triggerRef.current)===null||d===void 0)&&d.contains(p)&&u.preventDefault()}})))})),Fy=L.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...h}=e,g=Ma("PopoverContent",r),y=Ld(r);return pN(),L.createElement(gN,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},L.createElement(wN,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:p,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1)},L.createElement(zy,ut({"data-state":Hy(g.open),role:"dialog",id:g.contentId},y,h,{ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Hy(e){return e?"open":"closed"}const zN=NN,jN=MN,FN=DN;var bl=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(bl||{}),sf={},Vo={},Bs={},Us={},Vs={exports:{}},qs={exports:{}},He={};/** @license React v16.13.1
|
|
62
|
+
`)},QR=0,di=[];function eP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(QR++)[0],a=$.useState(Em)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=ma([e.lockRef.current],(e.shards||[]).map(lg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,w){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!l.current.allowPinchZoom;var h=Hs(d),S=r.current,E="deltaX"in d?d.deltaX:S[0]-h[0],R="deltaY"in d?d.deltaY:S[1]-h[1],O,k=d.target,B=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&B==="h"&&k.type==="range")return!1;var M=ag(B,k);if(!M)return!0;if(M?O=B:(O=B==="v"?"h":"v",M=ag(B,k)),!M)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var F=i.current||O;return XR(F,w,d,F==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!di.length||di[di.length-1]!==a)){var h="deltaY"in w?ug(w):Hs(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&YR(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(lg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),m=$.useCallback(function(d,w,h,S){var E={name:d,delta:w,target:h,should:S,shadowParent:tP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),v=$.useCallback(function(d){r.current=Hs(d),i.current=void 0},[]),g=$.useCallback(function(d){m(d.type,ug(d),d.target,c(d,e.lockRef.current))},[]),p=$.useCallback(function(d){m(d.type,Hs(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return di.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:p}),document.addEventListener("wheel",f,fi),document.addEventListener("touchmove",f,fi),document.addEventListener("touchstart",v,fi),function(){di=di.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,fi),document.removeEventListener("touchmove",f,fi),document.removeEventListener("touchstart",v,fi)}},[]);var b=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:JR(s)}):null,b?$.createElement(UR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function tP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rP=CR(Sm,eP);var Tm=$.forwardRef(function(e,t){return $.createElement(Ma,Or({},e,{ref:t,sideCar:rP}))});Tm.classNames=Ma.classNames;const nP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},iP=$.useId||(()=>{});let oP=0;function Rm(e){const[t,r]=$.useState(iP());return nP((()=>{r((i=>i??String(oP++)))}),[e]),e||(t?`radix-${t}`:"")}function Pm(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function mn(...e){return $.useCallback(Pm(...e),e)}const Cm=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(cg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>cg(s)?$.createElement(pc,Ve({},i,{ref:t}),s.props.children):s))):$.createElement(pc,Ve({},i,{ref:t}),r)}));Cm.displayName="Slot";const pc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...sP(i,r.props),ref:Pm(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));pc.displayName="SlotClone";const km=({children:e})=>$.createElement($.Fragment,null,e);function cg(e){return $.isValidElement(e)&&e.type===km}function sP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{a==null||a(...l),s==null||s(...l)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const yn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,l=s?Cm:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Ve({},a,{ref:i}))}))})),{}),fg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Hc=e=>{const{present:t,children:r}=e,i=(function(l){const[c,f]=$.useState(),m=$.useRef({}),v=$.useRef(l),g=$.useRef("none"),p=l?"mounted":"unmounted",[b,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=qs(m.current);g.current=b==="mounted"?d:"none"}),[b]),fg((()=>{const d=m.current,w=v.current;if(w!==l){const h=g.current,S=qs(d);l?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),v.current=l}}),[l,x]),fg((()=>{if(c){const d=h=>{const S=qs(m.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(g.current=qs(m.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",d),c.addEventListener("animationend",d),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",d),c.removeEventListener("animationend",d)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:$.useCallback((d=>{d&&(m.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=mn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function qs(e){return(e==null?void 0:e.animationName)||"none"}Hc.displayName="Presence";let Il=0;function aP(){$.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:dg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:dg()),Il++,()=>{Il===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Il--}}),[])}function dg(){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 uP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},qc=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...l}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return uP((()=>{f({})}),[]),c?Fo.createPortal($.createElement(yn.div,Ve({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Bn(e){const t=$.useRef(e);return $.useEffect((()=>{t.current=e})),$.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const pg={bubbles:!1,cancelable:!0},lP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,f]=$.useState(null),m=Bn(s),v=Bn(a),g=$.useRef(null),p=mn(t,(d=>f(d))),b=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(b.paused||!c)return;const S=h.target;c.contains(S)?g.current=S:kn(g.current,{select:!0})},w=function(h){!b.paused&&c&&(c.contains(h.relatedTarget)||kn(g.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,b.paused]),$.useEffect((()=>{if(c){vg.add(b);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",pg);c.addEventListener("focusScope.autoFocusOnMount",m),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(kn(O,{select:E}),document.activeElement!==R)return})((d=hg(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&kn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",pg);c.addEventListener("focusScope.autoFocusOnUnmount",v),c.dispatchEvent(h),h.defaultPrevented||kn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",v),vg.remove(b)}),0)}}var d}),[c,m,v,b]);const x=$.useCallback((d=>{if(!r&&!i||b.paused)return;const w=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=document.activeElement;if(w&&h){const S=d.currentTarget,[E,R]=(function(O){const k=hg(O),B=gg(k,O),M=gg(k.reverse(),O);return[B,M]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&kn(R,{select:!0})):(d.preventDefault(),r&&kn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,b.paused]);return $.createElement(yn.div,Ve({tabIndex:-1},l,{ref:p,onKeyDown:x}))}));function hg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function gg(e,t){for(const r of e)if(!cP(r,{upTo:t}))return r}function cP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const vg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=mg(e,t),e.unshift(t)},remove(t){var r;e=mg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function mg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function $m(e){const t=Bn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const fP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let yg,Zs=0;function dP({disabled:e}){const t=$.useRef(!1);fP((()=>{if(e){let r=function(){Zs--,Zs===0&&(document.body.style.pointerEvents=yg)},i=function(s){t.current=s.pointerType!=="mouse"};return Zs===0&&(yg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Zs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function Ut(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 pP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=e,m=$.useContext(pP),[v,g]=$.useState(null),[,p]=$.useState({}),b=mn(t,(k=>g(k))),x=Array.from(m.layers),[d]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=v?x.indexOf(v):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(k){const B=Bn(k),M=$.useRef(!1);return $.useEffect((()=>{const F=j=>{j.target&&!M.current&&wg("dismissableLayer.pointerDownOutside",B,{originalEvent:j}),M.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",F)}}),[B]),{onPointerDownCapture:()=>M.current=!0}})((k=>{const B=k.target,M=[...m.branches].some((F=>F.contains(B)));E&&!M&&(s==null||s(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const B=Bn(k),M=$.useRef(!1);return $.useEffect((()=>{const F=G=>{G.target&&!M.current&&wg("dismissableLayer.focusOutside",B,{originalEvent:G})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[B]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((k=>{const B=k.target;[...m.branches].some((M=>M.contains(B)))||(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())}));return $m((k=>{h===m.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),dP({disabled:r}),$.useEffect((()=>{v&&(r&&m.layersWithOutsidePointerEventsDisabled.add(v),m.layers.add(v),bg())}),[v,r,m]),$.useEffect((()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),bg())}),[v,m]),$.useEffect((()=>{const k=()=>p({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),$.createElement(yn.div,Ve({},f,{ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Ut(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Ut(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Ut(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function bg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function wg(e,t,r){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(s)}function xg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const f=a.borderBoxSize,m=Array.isArray(f)?f[0]:f;l=m.inlineSize,c=m.blockSize}else{const f=e.getBoundingClientRect();l=f.width,c=f.height}r({width:l,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function gP(e,t){const r=$n.get(e);return r===void 0?($n.set(e,{rect:{},callbacks:[t]}),$n.size===1&&(hc=requestAnimationFrame(Im))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=$n.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&($n.delete(e),$n.size===0&&cancelAnimationFrame(hc))}}let hc;const $n=new Map;function Im(){const e=[];$n.forEach(((t,r)=>{const i=r.getBoundingClientRect();var s,a;s=t.rect,a=i,(s.width!==a.width||s.height!==a.height||s.top!==a.top||s.right!==a.right||s.bottom!==a.bottom||s.left!==a.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),hc=requestAnimationFrame(Im)}function Lm(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=gP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function Zc(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return i.scopeName=e,[function(s,a){const l=$.createContext(a),c=r.length;function f(m){const{scope:v,children:g,...p}=m,b=(v==null?void 0:v[e][c])||l,x=$.useMemo((()=>p),Object.values(p));return $.createElement(b.Provider,{value:x},g)}return r=[...r,a],f.displayName=s+"Provider",[f,function(m,v){const g=(v==null?void 0:v[e][c])||l,p=$.useContext(g);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},vP(i,...t)]}function vP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((l,{useScope:c,scopeName:f})=>({...l,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function mP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:m,collisionTolerance:v=0}){if(!e||!t||!m)return{popperStyles:yP,arrowStyles:Ll};const g=(function(B,M,F=0,G=0,j){const L=j?j.height:0,U=Sg(M,B,"x"),q=Sg(M,B,"y"),C=q.before-F-L,J=q.after+F+L,X=U.before-F-L,te=U.after+F+L;return{top:{start:{x:U.start+G,y:C},center:{x:U.center,y:C},end:{x:U.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:U.start+G,y:J},center:{x:U.center,y:J},end:{x:U.end-G,y:J}},left:{start:{x:X,y:q.start+G},center:{x:X,y:q.center},end:{x:X,y:q.end-G}}}})(t,e,a,c,r),p=g[s][l];if(f===!1){const B=Eg(p);let M=Ll;return r&&(M=Og({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:l})),{popperStyles:{...B,"--radix-popper-transform-origin":_g(t,s,l,i,r)},arrowStyles:M,placedSide:s,placedAlign:l}}const b=DOMRect.fromRect({...t,...p}),x=(d=m,w=v,DOMRect.fromRect({width:d.width-2*w,height:d.height-2*w,x:d.left+w,y:d.top+w}));var d,w;const h=Tg(b,x),S=g[Ag(s)][l],E=(function(B,M,F){const G=Ag(B);return M[B]&&!F[G]?G:B})(s,h,Tg(DOMRect.fromRect({...t,...S}),x)),R=(function(B,M,F,G,j){const L=F==="top"||F==="bottom",U=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=M[C]>B[C];return(G==="start"||G==="center")&&(j[U]&&J||j[q]&&!J)?"end":(G==="end"||G==="center")&&(j[q]&&J||j[U]&&!J)?"start":G})(t,e,s,l,h),O=Eg(g[E][R]);let k=Ll;return r&&(k=Og({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":_g(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function Sg(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],l=t[s];return{before:i-l,start:i,center:i+(a-l)/2,end:i+a-l,after:i+a}}function Eg(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 _g(e,t,r,i,s){const a=t==="top"||t==="bottom",l=s?s.width:0,c=s?s.height:0,f=l/2+i;let m="",v="";return a?(m={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],v=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",v={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${m} ${v}`}const yP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ll={position:"absolute",opacity:0};function Og({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),m={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:bP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(m.left=`${r}px`),s==="center"&&(m.left=`${a}px`),s==="end"&&(m.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(m.top=`${r}px`),s==="center"&&(m.top=`${l}px`),s==="end"&&(m.bottom=`${r}px`)),m}function bP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Ag(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Tg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Mm,Fa]=Zc("Popper"),[wP,Fm]=Mm("Popper"),xP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(wP,{scope:t,anchor:i,onAnchorChange:s},r)},SP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Fm("PopperAnchor",r),l=$.useRef(null),c=mn(t,l);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(yn.div,Ve({},s,{ref:c}))})),[EP,QL]=Mm("PopperContent"),_P=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,v=Fm("PopperContent",r),[g,p]=$.useState(),b=Lm(v.anchor),[x,d]=$.useState(null),w=xg(x),[h,S]=$.useState(null),E=xg(h),R=mn(t,(L=>d(L))),O=(function(){const[L,U]=$.useState(void 0);return $.useEffect((()=>{let q;function C(){U({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),L})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:B,arrowStyles:M,placedSide:F,placedAlign:G}=mP({anchorRect:b,popperSize:w,arrowSize:E,arrowOffset:g,side:i,sideOffset:s,align:a,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=F!==void 0;return $.createElement("div",{style:B,"data-radix-popper-content-wrapper":""},$.createElement(EP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:p},$.createElement(yn.div,Ve({"data-side":F,"data-align":G},m,{style:{...m.style,animation:j?void 0:"none"},ref:R}))))})),Dm=xP,Nm=SP,jm=_P;function zm({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:m}){const v=$.useState(f),[g]=v,p=$.useRef(g),b=Bn(m);return $.useEffect((()=>{p.current!==g&&(b(g),p.current=g)}),[g,p,b]),v})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:i,c=Bn(r);return[l,$.useCallback((f=>{if(a){const m=f,v=typeof f=="function"?m(e):f;v!==e&&c(v)}else s(f)}),[a,e,s,c])]}const[OP]=Zc("Popover",[Fa]),Gc=Fa(),[AP,jo]=OP("Popover"),TP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=Gc(t),f=$.useRef(null),[m,v]=$.useState(!1),[g=!1,p]=zm({prop:i,defaultProp:s,onChange:a});return $.createElement(Dm,c,$.createElement(AP,{scope:t,contentId:Rm(),triggerRef:f,open:g,onOpenChange:p,onOpenToggle:$.useCallback((()=>p((b=>!b))),[p]),hasCustomAnchor:m,onCustomAnchorAdd:$.useCallback((()=>v(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>v(!1)),[]),modal:l},r))},RP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=jo("PopoverTrigger",r),a=Gc(r),l=mn(t,s.triggerRef),c=$.createElement(yn.button,Ve({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Bm(s.open)},i,{ref:l,onClick:Ut(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(Nm,Ve({asChild:!0},a),c)})),PP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=jo("PopoverContent",e.__scopePopover);return $.createElement(Hc,{present:r||s.open},s.modal?$.createElement(CP,Ve({},i,{ref:t})):$.createElement(kP,Ve({},i,{ref:t})))})),CP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=jo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=mn(t,l),f=$.useRef(!1);$.useEffect((()=>{const v=l.current;if(v)return xR(v)}),[]);const m=i?qc:$.Fragment;return $.createElement(m,null,$.createElement(Tm,{allowPinchZoom:r},$.createElement(Wm,Ve({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ut(e.onCloseAutoFocus,(v=>{var g;v.preventDefault(),f.current||(g=a.triggerRef.current)===null||g===void 0||g.focus()})),onPointerDownOutside:Ut(e.onPointerDownOutside,(v=>{const g=v.detail.originalEvent,p=g.button===0&&g.ctrlKey===!0,b=g.button===2||p;f.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Ut(e.onFocusOutside,(v=>v.preventDefault()),{checkForDefaultPrevented:!1})}))))})),kP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=jo("PopoverContent",e.__scopePopover),a=$.useRef(!1),l=r?qc:$.Fragment;return $.createElement(l,null,$.createElement(Wm,Ve({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,m;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(m=s.triggerRef.current)===null||m===void 0||m.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,m;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const v=c.target;!((m=s.triggerRef.current)===null||m===void 0)&&m.contains(v)&&c.preventDefault()}})))})),Wm=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:v,...g}=e,p=jo("PopoverContent",r),b=Gc(r);return aP(),$.createElement(lP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(hP,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:v,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>p.onOpenChange(!1)},$.createElement(jm,Ve({"data-state":Bm(p.open),role:"dialog",id:p.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Bm(e){return e?"open":"closed"}const $P=TP,IP=RP,LP=PP;var ca=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ca||{}),Ml={},ro={},Gs={},Ks={},Vs={exports:{}},Xs={exports:{}},Ie={};/** @license React v16.13.1
|
|
63
63
|
* react-is.production.min.js
|
|
64
64
|
*
|
|
65
65
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var
|
|
69
|
+
*/var Rg;function MP(){if(Rg)return Ie;Rg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case t:switch(O=O.type,O){case f:case m:case i:case a:case s:case g:return O;default:switch(O=O&&O.$$typeof,O){case c:case v:case x:case b:case l:return O;default:return k}}case r:return k}}}function R(O){return E(O)===m}return Ie.AsyncMode=f,Ie.ConcurrentMode=m,Ie.ContextConsumer=c,Ie.ContextProvider=l,Ie.Element=t,Ie.ForwardRef=v,Ie.Fragment=i,Ie.Lazy=x,Ie.Memo=b,Ie.Portal=r,Ie.Profiler=a,Ie.StrictMode=s,Ie.Suspense=g,Ie.isAsyncMode=function(O){return R(O)||E(O)===f},Ie.isConcurrentMode=R,Ie.isContextConsumer=function(O){return E(O)===c},Ie.isContextProvider=function(O){return E(O)===l},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ie.isForwardRef=function(O){return E(O)===v},Ie.isFragment=function(O){return E(O)===i},Ie.isLazy=function(O){return E(O)===x},Ie.isMemo=function(O){return E(O)===b},Ie.isPortal=function(O){return E(O)===r},Ie.isProfiler=function(O){return E(O)===a},Ie.isStrictMode=function(O){return E(O)===s},Ie.isSuspense=function(O){return E(O)===g},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===m||O===a||O===s||O===g||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===b||O.$$typeof===l||O.$$typeof===c||O.$$typeof===v||O.$$typeof===w||O.$$typeof===h||O.$$typeof===S||O.$$typeof===d)},Ie.typeOf=E,Ie}var Le={};/** @license React v16.13.1
|
|
70
70
|
* react-is.development.js
|
|
71
71
|
*
|
|
72
72
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
76
|
+
*/var Pg;function FP(){return Pg||(Pg=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===i||ie===m||ie===a||ie===s||ie===g||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===b||ie.$$typeof===l||ie.$$typeof===c||ie.$$typeof===v||ie.$$typeof===w||ie.$$typeof===h||ie.$$typeof===S||ie.$$typeof===d)}function R(ie){if(typeof ie=="object"&&ie!==null){var mt=ie.$$typeof;switch(mt){case t:var ut=ie.type;switch(ut){case f:case m:case i:case a:case s:case g:return ut;default:var vr=ut&&ut.$$typeof;switch(vr){case c:case v:case x:case b:case l:return vr;default:return mt}}case r:return mt}}}var O=f,k=m,B=c,M=l,F=t,G=v,j=i,L=x,U=b,q=r,C=a,J=s,X=g,te=!1;function de(ie){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ie)||R(ie)===f}function Z(ie){return R(ie)===m}function Q(ie){return R(ie)===c}function se(ie){return R(ie)===l}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===v}function ce(ie){return R(ie)===i}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===b}function ve(ie){return R(ie)===r}function Ee(ie){return R(ie)===a}function Ae(ie){return R(ie)===s}function Ze(ie){return R(ie)===g}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=B,Le.ContextProvider=M,Le.Element=F,Le.ForwardRef=G,Le.Fragment=j,Le.Lazy=L,Le.Memo=U,Le.Portal=q,Le.Profiler=C,Le.StrictMode=J,Le.Suspense=X,Le.isAsyncMode=de,Le.isConcurrentMode=Z,Le.isContextConsumer=Q,Le.isContextProvider=se,Le.isElement=ue,Le.isForwardRef=ne,Le.isFragment=ce,Le.isLazy=fe,Le.isMemo=ye,Le.isPortal=ve,Le.isProfiler=Ee,Le.isStrictMode=Ae,Le.isSuspense=Ze,Le.isValidElementType=E,Le.typeOf=R})()),Le}var Cg;function Um(){return Cg||(Cg=1,process.env.NODE_ENV==="production"?Xs.exports=MP():Xs.exports=FP()),Xs.exports}/*
|
|
77
77
|
object-assign
|
|
78
78
|
(c) Sindre Sorhus
|
|
79
79
|
@license MIT
|
|
80
|
-
*/var
|
|
81
|
-
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Y=xe(oe,de,J,se,ae+"."+de,r);if(Y)return Y}return null}return b(q)}function H(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(H);if(z===null||u(z))return!0;var q=h(z);if(q){var re=q.call(z),ee;if(q!==z.entries){for(;!(ee=re.next()).done;)if(!H(ee.value))return!1}else for(;!(ee=re.next()).done;){var J=ee.value;if(J&&!H(J[1]))return!1}}else return!1;return!0;default:return!1}}function I(z,q){return z==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function K(z){var q=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":I(q,z)?"symbol":q}function X(z){if(typeof z>"u"||z===null)return""+z;var q=K(z);if(q==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return q}function Z(z){var q=X(z);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function ve(z){return!z.constructor||!z.constructor.name?g:z.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},df}var pf,Lm;function qN(){if(Lm)return pf;Lm=1;var e=zd();function t(){}function r(){}return r.resetWarningCache=t,pf=function(){function n(l,u,c,d,p,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},pf}var zm;function GN(){if(zm)return Vs.exports;if(zm=1,process.env.NODE_ENV!=="production"){var e=Wy(),t=!0;Vs.exports=VN()(e.isElement,t)}else Vs.exports=qN()();return Vs.exports}var jm;function ZN(){return jm||(jm=1,(function(e){(function(t,r){r(e,j,GN())})(Us,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var o=l(r),a=l(n);function l(w){return w&&w.__esModule?w:{default:w}}var u=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var k=arguments[x];for(var E in k)Object.prototype.hasOwnProperty.call(k,E)&&(w[E]=k[E])}return w};function c(w,x){var k={};for(var E in w)x.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(w,E)&&(k[E]=w[E]);return k}function d(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var p=(function(){function w(x,k){for(var E=0;E<k.length;E++){var R=k[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,k,E){return k&&w(x.prototype,k),E&&w(x,E),x}})();function h(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function g(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var y=!1;function S(w){y=w}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?w:w.capture}function b(w){if("touches"in w){var x=w.touches[0],k=x.pageX,E=x.pageY;return{x:k,y:E}}var R=w.screenX,F=w.screenY;return{x:R,y:F}}var m=(function(w){g(x,w);function x(){var k;d(this,x);for(var E=arguments.length,R=Array(E),F=0;F<E;F++)R[F]=arguments[F];var A=h(this,(k=x.__proto__||Object.getPrototypeOf(x)).call.apply(k,[this].concat(R)));return A._handleSwipeStart=A._handleSwipeStart.bind(A),A._handleSwipeMove=A._handleSwipeMove.bind(A),A._handleSwipeEnd=A._handleSwipeEnd.bind(A),A._onMouseDown=A._onMouseDown.bind(A),A._onMouseMove=A._onMouseMove.bind(A),A._onMouseUp=A._onMouseUp.bind(A),A._setSwiperRef=A._setSwiperRef.bind(A),A}return p(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(E){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(E))}},{key:"_onMouseMove",value:function(E){this.mouseDown&&this._handleSwipeMove(E)}},{key:"_onMouseUp",value:function(E){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(E)}},{key:"_handleSwipeStart",value:function(E){var R=b(E),F=R.x,A=R.y;this.moveStart={x:F,y:A},this.props.onSwipeStart(E)}},{key:"_handleSwipeMove",value:function(E){if(this.moveStart){var R=b(E),F=R.x,A=R.y,P=F-this.moveStart.x,B=A-this.moveStart.y;this.moving=!0;var $=this.props.onSwipeMove({x:P,y:B},E);$&&E.cancelable&&E.preventDefault(),this.movePosition={deltaX:P,deltaY:B}}}},{key:"_handleSwipeEnd",value:function(E){this.props.onSwipeEnd(E);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,E):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,E),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,E):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,E)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(E){this.swiper=E,this.props.innerRef(E)}},{key:"render",value:function(){var E=this.props;E.tagName;var R=E.className,F=E.style,A=E.children;E.allowMouseEvents,E.onSwipeUp,E.onSwipeDown,E.onSwipeLeft,E.onSwipeRight,E.onSwipeStart,E.onSwipeMove,E.onSwipeEnd,E.innerRef,E.tolerance;var P=c(E,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return o.default.createElement(this.props.tagName,u({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:F},P),A)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},m.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=m})})(Us)),Us}var Fm;function Uy(){return Fm||(Fm=1,(function(e){(function(t,r){r(e,ZN())})(Bs,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r);function o(a){return a&&a.__esModule?a:{default:a}}t.default=n.default})})(Bs)),Bs}var qo={},Hm;function Vy(){if(Hm)return qo;Hm=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var e=t(ey());function t(o){return o&&o.__esModule?o:{default:o}}function r(o,a,l){return a in o?Object.defineProperty(o,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[a]=l,o}var n={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,u){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:u})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return qo.default=n,qo}var Go={},Zo={},Wm;function KN(){if(Wm)return Zo;Wm=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};return Zo.outerWidth=e,Zo}var Ko={},Bm;function jd(){if(Bm)return Ko;Bm=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.default=void 0;var e=function(r,n,o){var a=r===0?r:r+n,l=o==="horizontal"?[a,0,0]:[0,a,0],u="translate3d",c="("+l.join(",")+")";return u+c};return Ko.default=e,Ko}var Yo={},Um;function qy(){if(Um)return Yo;Um=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=void 0;var e=function(){return window};return Yo.default=e,Yo}var Vm;function Gy(){if(Vm)return Go;Vm=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var e=c(j),t=l(Vy()),r=KN(),n=l(jd()),o=l(Uy()),a=l(qy());function l(A){return A&&A.__esModule?A:{default:A}}function u(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return u=function(){return A},A}function c(A){if(A&&A.__esModule)return A;if(A===null||d(A)!=="object"&&typeof A!="function")return{default:A};var P=u();if(P&&P.has(A))return P.get(A);var B={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in A)if(Object.prototype.hasOwnProperty.call(A,M)){var U=$?Object.getOwnPropertyDescriptor(A,M):null;U&&(U.get||U.set)?Object.defineProperty(B,M,U):B[M]=A[M]}return B.default=A,P&&P.set(A,B),B}function d(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(B){return typeof B}:d=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},d(A)}function p(){return p=Object.assign||function(A){for(var P=1;P<arguments.length;P++){var B=arguments[P];for(var $ in B)Object.prototype.hasOwnProperty.call(B,$)&&(A[$]=B[$])}return A},p.apply(this,arguments)}function h(A,P){if(!(A instanceof P))throw new TypeError("Cannot call a class as a function")}function g(A,P){for(var B=0;B<P.length;B++){var $=P[B];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(A,$.key,$)}}function y(A,P,B){return P&&g(A.prototype,P),A}function S(A,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(P&&P.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),P&&v(A,P)}function v(A,P){return v=Object.setPrototypeOf||function($,M){return $.__proto__=M,$},v(A,P)}function b(A){var P=x();return function(){var $=k(A),M;if(P){var U=k(this).constructor;M=Reflect.construct($,arguments,U)}else M=$.apply(this,arguments);return m(this,M)}}function m(A,P){return P&&(d(P)==="object"||typeof P=="function")?P:w(A)}function w(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function k(A){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},k(A)}function E(A,P,B){return P in A?Object.defineProperty(A,P,{value:B,enumerable:!0,configurable:!0,writable:!0}):A[P]=B,A}var R=function(P){return P.hasOwnProperty("key")},F=(function(A){S(B,A);var P=b(B);function B($){var M;return h(this,B),M=P.call(this,$),E(w(M),"itemsWrapperRef",void 0),E(w(M),"itemsListRef",void 0),E(w(M),"thumbsRef",void 0),E(w(M),"setItemsWrapperRef",function(U){M.itemsWrapperRef=U}),E(w(M),"setItemsListRef",function(U){M.itemsListRef=U}),E(w(M),"setThumbsRef",function(U,H){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[H]=U}),E(w(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var U=e.Children.count(M.props.children),H=M.itemsWrapperRef.clientWidth,I=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),K=Math.floor(H/I),X=K<U,Z=X?U-K:0;M.setState(function(ve,z){return{itemSize:I,visibleItems:K,firstItem:X?M.getFirstItem(z.selectedItem):0,lastPosition:Z,showArrows:X}})}}),E(w(M),"handleClickItem",function(U,H,I){if(!R(I)||I.key==="Enter"){var K=M.props.onSelectItem;typeof K=="function"&&K(U,H)}}),E(w(M),"onSwipeStart",function(){M.setState({swiping:!0})}),E(w(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),E(w(M),"onSwipeMove",function(U){var H=U.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var I=0,K=e.Children.count(M.props.children),X=-(M.state.firstItem*100)/M.state.visibleItems,Z=Math.max(K-M.state.visibleItems,0),ve=-Z*100/M.state.visibleItems;X===I&&H>0&&(H=0),X===ve&&H<0&&(H=0);var z=M.itemsWrapperRef.clientWidth,q=X+100/(z/H);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(re){M.itemsListRef.style[re]=(0,n.default)(q,"%",M.props.axis)}),!0}),E(w(M),"slideRight",function(U){M.moveTo(M.state.firstItem-(typeof U=="number"?U:1))}),E(w(M),"slideLeft",function(U){M.moveTo(M.state.firstItem+(typeof U=="number"?U:1))}),E(w(M),"moveTo",function(U){U=U<0?0:U,U=U>=M.state.lastPosition?M.state.lastPosition:U,M.setState({firstItem:U})}),M.state={selectedItem:$.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return y(B,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var U=M;return M>=this.state.lastPosition&&(U=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(U=this.state.firstItem),M<this.state.firstItem&&(U=M),U}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(U,H){var I=t.default.ITEM(!1,H===M.state.selectedItem),K={key:H,ref:function(Z){return M.setThumbsRef(Z,H)},className:I,onClick:M.handleClickItem.bind(M,H,M.props.children[H]),onKeyDown:M.handleClickItem.bind(M,H,M.props.children[H]),"aria-label":"".concat(M.props.labels.item," ").concat(H+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",p({},K,{role:"button",tabIndex:0}),U)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var U=e.Children.count(this.props.children)>1,H=this.state.showArrows&&this.state.firstItem>0,I=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,K={},X=-this.state.firstItem*(this.state.itemSize||0),Z=(0,n.default)(X,"px",this.props.axis),ve=this.props.transitionTime+"ms";return K={WebkitTransform:Z,MozTransform:Z,MsTransform:Z,OTransform:Z,transform:Z,msTransform:Z,WebkitTransitionDuration:ve,MozTransitionDuration:ve,MsTransitionDuration:ve,OTransitionDuration:ve,transitionDuration:ve,msTransitionDuration:ve},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!H),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),U?e.default.createElement(o.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:K,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(q){return M.setItemsListRef(q)},style:K},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!I),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),B})(e.Component);return Go.default=F,E(F,"displayName","Thumbs"),E(F,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),Go}var Xo={},qm;function YN(){if(qm)return Xo;qm=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=void 0;var e=function(){return document};return Xo.default=e,Xo}var or={},Gm;function Zy(){if(Gm)return or;Gm=1,Object.defineProperty(or,"__esModule",{value:!0}),or.setPosition=or.getPosition=or.isKeyboardEvent=or.defaultStatusFormatter=or.noop=void 0;var e=j,t=r(jd());function r(c){return c&&c.__esModule?c:{default:c}}var n=function(){};or.noop=n;var o=function(d,p){return"".concat(d," of ").concat(p)};or.defaultStatusFormatter=o;var a=function(d){return d?d.hasOwnProperty("key"):!1};or.isKeyboardEvent=a;var l=function(d,p){if(p.infiniteLoop&&++d,d===0)return 0;var h=e.Children.count(p.children);if(p.centerMode&&p.axis==="horizontal"){var g=-d*p.centerSlidePercentage,y=h-1;return d&&(d!==y||p.infiniteLoop)?g+=(100-p.centerSlidePercentage)/2:d===y&&(g+=100-p.centerSlidePercentage),g}return-d*100};or.getPosition=l;var u=function(d,p){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){h[g]=(0,t.default)(d,"%",p)}),h};return or.setPosition=u,or}var Pr={},Zm;function XN(){if(Zm)return Pr;Zm=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.fadeAnimationHandler=Pr.slideStopSwipingHandler=Pr.slideSwipeAnimationHandler=Pr.slideAnimationHandler=void 0;var e=j,t=n(jd()),r=Zy();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,g){var y=Object.keys(h);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(h);g&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),y.push.apply(y,S)}return y}function a(h){for(var g=1;g<arguments.length;g++){var y=arguments[g]!=null?arguments[g]:{};g%2?o(Object(y),!0).forEach(function(S){l(h,S,y[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):o(Object(y)).forEach(function(S){Object.defineProperty(h,S,Object.getOwnPropertyDescriptor(y,S))})}return h}function l(h,g,y){return g in h?Object.defineProperty(h,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[g]=y,h}var u=function(g,y){var S={},v=y.selectedItem,b=v,m=e.Children.count(g.children)-1,w=g.infiniteLoop&&(v<0||v>m);if(w)return b<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,g.axis):b>m&&(S.itemListStyle=(0,r.setPosition)(0,g.axis)),S;var x=(0,r.getPosition)(v,g),k=(0,t.default)(x,"%",g.axis),E=g.transitionTime+"ms";return S.itemListStyle={WebkitTransform:k,msTransform:k,OTransform:k,transform:k},y.swiping||(S.itemListStyle=a(a({},S.itemListStyle),{},{WebkitTransitionDuration:E,MozTransitionDuration:E,OTransitionDuration:E,transitionDuration:E,msTransitionDuration:E})),S};Pr.slideAnimationHandler=u;var c=function(g,y,S,v){var b={},m=y.axis==="horizontal",w=e.Children.count(y.children),x=0,k=(0,r.getPosition)(S.selectedItem,y),E=y.infiniteLoop?(0,r.getPosition)(w-1,y)-100:(0,r.getPosition)(w-1,y),R=m?g.x:g.y,F=R;k===x&&R>0&&(F=0),k===E&&R<0&&(F=0);var A=k+100/(S.itemSize/F),P=Math.abs(R)>y.swipeScrollTolerance;return y.infiniteLoop&&P&&(S.selectedItem===0&&A>-100?A-=w*100:S.selectedItem===w-1&&A<-w*100&&(A+=w*100)),(!y.preventMovementUntilSwipeScrollTolerance||P||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),b.itemListStyle=(0,r.setPosition)(A,y.axis)),P&&!S.cancelClick&&v({cancelClick:!0}),b};Pr.slideSwipeAnimationHandler=c;var d=function(g,y){var S=(0,r.getPosition)(y.selectedItem,g),v=(0,r.setPosition)(S,g.axis);return{itemListStyle:v}};Pr.slideStopSwipingHandler=d;var p=function(g,y){var S=g.transitionTime+"ms",v="ease-in-out",b={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:v,msTransitionTimingFunction:v,MozTransitionTimingFunction:v,WebkitTransitionTimingFunction:v,OTransitionTimingFunction:v};return y.swiping||(b=a(a({},b),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:b,selectedStyle:a(a({},b),{},{opacity:1,position:"relative"}),prevStyle:a({},b)}};return Pr.fadeAnimationHandler=p,Pr}var Km;function JN(){if(Km)return Vo;Km=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;var e=p(j),t=c(Uy()),r=c(Vy()),n=c(Gy()),o=c(YN()),a=c(qy()),l=Zy(),u=XN();function c($){return $&&$.__esModule?$:{default:$}}function d(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return d=function(){return $},$}function p($){if($&&$.__esModule)return $;if($===null||h($)!=="object"&&typeof $!="function")return{default:$};var M=d();if(M&&M.has($))return M.get($);var U={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in $)if(Object.prototype.hasOwnProperty.call($,I)){var K=H?Object.getOwnPropertyDescriptor($,I):null;K&&(K.get||K.set)?Object.defineProperty(U,I,K):U[I]=$[I]}return U.default=$,M&&M.set($,U),U}function h($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(U){return typeof U}:h=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},h($)}function g(){return g=Object.assign||function($){for(var M=1;M<arguments.length;M++){var U=arguments[M];for(var H in U)Object.prototype.hasOwnProperty.call(U,H)&&($[H]=U[H])}return $},g.apply(this,arguments)}function y($,M){var U=Object.keys($);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols($);M&&(H=H.filter(function(I){return Object.getOwnPropertyDescriptor($,I).enumerable})),U.push.apply(U,H)}return U}function S($){for(var M=1;M<arguments.length;M++){var U=arguments[M]!=null?arguments[M]:{};M%2?y(Object(U),!0).forEach(function(H){P($,H,U[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(U)):y(Object(U)).forEach(function(H){Object.defineProperty($,H,Object.getOwnPropertyDescriptor(U,H))})}return $}function v($,M){if(!($ instanceof M))throw new TypeError("Cannot call a class as a function")}function b($,M){for(var U=0;U<M.length;U++){var H=M[U];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty($,H.key,H)}}function m($,M,U){return M&&b($.prototype,M),$}function w($,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(M&&M.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),M&&x($,M)}function x($,M){return x=Object.setPrototypeOf||function(H,I){return H.__proto__=I,H},x($,M)}function k($){var M=F();return function(){var H=A($),I;if(M){var K=A(this).constructor;I=Reflect.construct(H,arguments,K)}else I=H.apply(this,arguments);return E(this,I)}}function E($,M){return M&&(h(M)==="object"||typeof M=="function")?M:R($)}function R($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function F(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A($){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},A($)}function P($,M,U){return M in $?Object.defineProperty($,M,{value:U,enumerable:!0,configurable:!0,writable:!0}):$[M]=U,$}var B=(function($){w(U,$);var M=k(U);function U(H){var I;v(this,U),I=M.call(this,H),P(R(I),"thumbsRef",void 0),P(R(I),"carouselWrapperRef",void 0),P(R(I),"listRef",void 0),P(R(I),"itemsRef",void 0),P(R(I),"timer",void 0),P(R(I),"animationHandler",void 0),P(R(I),"setThumbsRef",function(X){I.thumbsRef=X}),P(R(I),"setCarouselWrapperRef",function(X){I.carouselWrapperRef=X}),P(R(I),"setListRef",function(X){I.listRef=X}),P(R(I),"setItemsRef",function(X,Z){I.itemsRef||(I.itemsRef=[]),I.itemsRef[Z]=X}),P(R(I),"autoPlay",function(){e.Children.count(I.props.children)<=1||(I.clearAutoPlay(),I.props.autoPlay&&(I.timer=setTimeout(function(){I.increment()},I.props.interval)))}),P(R(I),"clearAutoPlay",function(){I.timer&&clearTimeout(I.timer)}),P(R(I),"resetAutoPlay",function(){I.clearAutoPlay(),I.autoPlay()}),P(R(I),"stopOnHover",function(){I.setState({isMouseEntered:!0},I.clearAutoPlay)}),P(R(I),"startOnLeave",function(){I.setState({isMouseEntered:!1},I.autoPlay)}),P(R(I),"isFocusWithinTheCarousel",function(){return I.carouselWrapperRef?!!((0,o.default)().activeElement===I.carouselWrapperRef||I.carouselWrapperRef.contains((0,o.default)().activeElement)):!1}),P(R(I),"navigateWithKeyboard",function(X){if(I.isFocusWithinTheCarousel()){var Z=I.props.axis,ve=Z==="horizontal",z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},q=ve?z.ArrowRight:z.ArrowDown,re=ve?z.ArrowLeft:z.ArrowUp;q===X.keyCode?I.increment():re===X.keyCode&&I.decrement()}}),P(R(I),"updateSizes",function(){if(!(!I.state.initialized||!I.itemsRef||I.itemsRef.length===0)){var X=I.props.axis==="horizontal",Z=I.itemsRef[0];if(Z){var ve=X?Z.clientWidth:Z.clientHeight;I.setState({itemSize:ve}),I.thumbsRef&&I.thumbsRef.updateSizes()}}}),P(R(I),"setMountState",function(){I.setState({hasMount:!0}),I.updateSizes()}),P(R(I),"handleClickItem",function(X,Z){if(e.Children.count(I.props.children)!==0){if(I.state.cancelClick){I.setState({cancelClick:!1});return}I.props.onClickItem(X,Z),X!==I.state.selectedItem&&I.setState({selectedItem:X})}}),P(R(I),"handleOnChange",function(X,Z){e.Children.count(I.props.children)<=1||I.props.onChange(X,Z)}),P(R(I),"handleClickThumb",function(X,Z){I.props.onClickThumb(X,Z),I.moveTo(X)}),P(R(I),"onSwipeStart",function(X){I.setState({swiping:!0}),I.props.onSwipeStart(X)}),P(R(I),"onSwipeEnd",function(X){I.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),I.props.onSwipeEnd(X),I.clearAutoPlay(),I.state.autoPlay&&I.autoPlay()}),P(R(I),"onSwipeMove",function(X,Z){I.props.onSwipeMove(Z);var ve=I.props.swipeAnimationHandler(X,I.props,I.state,I.setState.bind(R(I)));return I.setState(S({},ve)),!!Object.keys(ve).length}),P(R(I),"decrement",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem-(typeof X=="number"?X:1))}),P(R(I),"increment",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem+(typeof X=="number"?X:1))}),P(R(I),"moveTo",function(X){if(typeof X=="number"){var Z=e.Children.count(I.props.children)-1;X<0&&(X=I.props.infiniteLoop?Z:0),X>Z&&(X=I.props.infiniteLoop?0:Z),I.selectItem({selectedItem:X}),I.state.autoPlay&&I.state.isMouseEntered===!1&&I.resetAutoPlay()}}),P(R(I),"onClickNext",function(){I.increment(1)}),P(R(I),"onClickPrev",function(){I.decrement(1)}),P(R(I),"onSwipeForward",function(){I.increment(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),P(R(I),"onSwipeBackwards",function(){I.decrement(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),P(R(I),"changeItem",function(X){return function(Z){(!(0,l.isKeyboardEvent)(Z)||Z.key==="Enter")&&I.moveTo(X)}}),P(R(I),"selectItem",function(X){I.setState(S({previousItem:I.state.selectedItem},X),function(){I.setState(I.animationHandler(I.props,I.state))}),I.handleOnChange(X.selectedItem,e.Children.toArray(I.props.children)[X.selectedItem])}),P(R(I),"getInitialImage",function(){var X=I.props.selectedItem,Z=I.itemsRef&&I.itemsRef[X],ve=Z&&Z.getElementsByTagName("img")||[];return ve[0]}),P(R(I),"getVariableItemHeight",function(X){var Z=I.itemsRef&&I.itemsRef[X];if(I.state.hasMount&&Z&&Z.children.length){var ve=Z.children[0].getElementsByTagName("img")||[];if(ve.length>0){var z=ve[0];if(!z.complete){var q=function J(){I.forceUpdate(),z.removeEventListener("load",J)};z.addEventListener("load",q)}}var re=ve[0]||Z.children[0],ee=re.clientHeight;return ee>0?ee:null}return null});var K={initialized:!1,previousItem:H.selectedItem,selectedItem:H.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:H.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return I.animationHandler=typeof H.animationHandler=="function"&&H.animationHandler||H.animationHandler==="fade"&&u.fadeAnimationHandler||u.slideAnimationHandler,I.state=S(S({},K),I.animationHandler(H,K)),I}return m(U,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(I,K){!I.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!I.autoFocus&&this.props.autoFocus&&this.forceFocus(),K.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(I.selectedItem!==this.props.selectedItem||I.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),I.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var I=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var K=I.getInitialImage();K&&!K.complete?K.addEventListener("load",I.setMountState):I.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.addEventListener("mouseenter",this.stopOnHover),I.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.removeEventListener("mouseenter",this.stopOnHover),I.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,o.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var I=this.getInitialImage();I&&I.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,o.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var I;(I=this.carouselWrapperRef)===null||I===void 0||I.focus()}},{key:"renderItems",value:function(I){var K=this;return this.props.children?e.Children.map(this.props.children,function(X,Z){var ve=Z===K.state.selectedItem,z=Z===K.state.previousItem,q=ve&&K.state.selectedStyle||z&&K.state.prevStyle||K.state.slideStyle||{};K.props.centerMode&&K.props.axis==="horizontal"&&(q=S(S({},q),{},{minWidth:K.props.centerSlidePercentage+"%"})),K.state.swiping&&K.state.swipeMovementStarted&&(q=S(S({},q),{},{pointerEvents:"none"}));var re={ref:function(J){return K.setItemsRef(J,Z)},key:"itemKey"+Z+(I?"clone":""),className:r.default.ITEM(!0,Z===K.state.selectedItem,Z===K.state.previousItem),onClick:K.handleClickItem.bind(K,Z,X),style:q};return e.default.createElement("li",re,K.props.renderItem(X,{isSelected:Z===K.state.selectedItem,isPrevious:Z===K.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var I=this,K=this.props,X=K.showIndicators,Z=K.labels,ve=K.renderIndicator,z=K.children;return X?e.default.createElement("ul",{className:"control-dots"},e.Children.map(z,function(q,re){return ve&&ve(I.changeItem(re),re===I.state.selectedItem,re,Z.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(n.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var I=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var K=this.props.swipeable&&e.Children.count(this.props.children)>1,X=this.props.axis==="horizontal",Z=this.props.showArrows&&e.Children.count(this.props.children)>1,ve=Z&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,z=Z&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,q=this.renderItems(!0),re=q.shift(),ee=q.pop(),J={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},se={};if(X){if(J.onSwipeLeft=this.onSwipeForward,J.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ae=this.getVariableItemHeight(this.state.selectedItem);se.height=ae||"auto"}}else J.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,J.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,J.style=S(S({},J.style),{},{height:this.state.itemSize}),se.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,ve,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:se},K?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},J,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ee,this.renderItems(),this.props.infiniteLoop&&re):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(ce){return I.setListRef(ce)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ee,this.renderItems(),this.props.infiniteLoop&&re)),this.props.renderArrowNext(this.onClickNext,z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),U})(e.default.Component);return Vo.default=B,P(B,"displayName","Carousel"),P(B,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(M,U,H){return e.default.createElement("button",{type:"button","aria-label":H,className:r.default.ARROW_PREV(!U),onClick:M})},renderArrowNext:function(M,U,H){return e.default.createElement("button",{type:"button","aria-label":H,className:r.default.ARROW_NEXT(!U),onClick:M})},renderIndicator:function(M,U,H,I){return e.default.createElement("li",{className:r.default.DOT(U),onClick:M,onKeyDown:M,value:H,key:H,role:"button",tabIndex:0,"aria-label":"".concat(I," ").concat(H+1)})},renderItem:function(M){return M},renderThumbs:function(M){var U=e.Children.map(M,function(H){var I=H;if(H.type!=="img"&&(I=e.Children.toArray(H.props.children).find(function(K){return K.type==="img"})),!!I)return I});return U.filter(function(H){return H}).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"),[]):U},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:u.slideSwipeAnimationHandler,stopSwipingHandler:u.slideStopSwipingHandler}),Vo}var Ym={},Xm;function QN(){return Xm||(Xm=1),Ym}var Jm;function e2(){return Jm||(Jm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return n.default}});var t=o(JN()),r=QN(),n=o(Gy());function o(a){return a&&a.__esModule?a:{default:a}}})(sf)),sf}var t2=e2();const r2=({tip:e})=>N.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Ky(e,!0)}),n2=({pages:e})=>N.jsx("div",{className:"min-h-[10rem] w-96",children:N.jsx(t2.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>N.jsx(r2,{tip:t},t.key))})}),i2=({body:e,isInsideCarousel:t})=>N.jsx("article",{className:tt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:N.jsx(Tl,{children:e,options:{overrides:{a:{component:({children:r,...n})=>N.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,N.jsx(vt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),o2=({video:e,body:t,title:r,isInsideCarousel:n})=>N.jsxs("div",{className:tt([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[N.jsx("div",{className:tt([{"mr-1":!n,"mb-1":n}]),children:N.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),N.jsx("article",{className:tt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:N.jsx(Tl,{children:t||"",options:{overrides:{a:{component:({children:o,...a})=>N.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[o,N.jsx(vt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Ky=(e,t)=>{switch(e.type){case bl.TEXT:return N.jsx(i2,{body:e.body,isInsideCarousel:t});case bl.VIDEO:return N.jsx(o2,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case bl.CAROUSEL:return N.jsx(n2,{pages:e.pages})}},Yy=j.createContext(void 0);function Qm(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const a2=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:o},a]=j.useState({tips:{},show:!0});j.useEffect(()=>{const u=new AbortController;try{fetch(`${r}/tips.json`,{signal:u.signal}).then(c=>c.json()).then(c=>{const d=c.reduce((p,h)=>Qm(c,h.key).length>1?{...p,[h.key]:{type:"carousel",pages:Qm(c,h.key)}}:{...p,[h.key]:h},{});a(p=>({...p,tips:d}))})}catch{}return()=>{u.abort()}},[]);const l=()=>{a(u=>({...u,show:!o}))};return N.jsx(Yy.Provider,{value:{tips:n,toggleTips:l,show:o,enabled:t},children:e})},Xy=e=>{const t=j.useContext(Yy);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}},s2=Rl(jN)`
|
|
80
|
+
*/var Fl,kg;function DP(){if(kg)return Fl;kg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(l).map(function(v){return l[v]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Fl=s()?Object.assign:function(a,l){for(var c,f=i(a),m,v=1;v<arguments.length;v++){c=Object(arguments[v]);for(var g in c)t.call(c,g)&&(f[g]=c[g]);if(e){m=e(c);for(var p=0;p<m.length;p++)r.call(c,m[p])&&(f[m[p]]=c[m[p]])}}return f},Fl}var Dl,$g;function Kc(){if($g)return Dl;$g=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dl=e,Dl}var Nl,Ig;function Hm(){return Ig||(Ig=1,Nl=Function.call.bind(Object.prototype.hasOwnProperty)),Nl}var jl,Lg;function NP(){if(Lg)return jl;Lg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Kc(),r={},i=Hm();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(a,l,c,f,m){if(process.env.NODE_ENV!=="production"){for(var v in a)if(i(a,v)){var g;try{if(typeof a[v]!="function"){var p=Error((f||"React class")+": "+c+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=a[v](l,v,f,c,null,t)}catch(x){g=x}if(g&&!(g instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var b=m?m():"";e("Failed "+c+" type: "+g.message+(b??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},jl=s,jl}var zl,Mg;function jP(){if(Mg)return zl;Mg=1;var e=Um(),t=DP(),r=Kc(),i=Hm(),s=NP(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function l(){return null}return zl=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function g(Z){var Q=Z&&(m&&Z[m]||Z[v]);if(typeof Q=="function")return Q}var p="<<anonymous>>",b={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:k,node:G(),objectOf:M,oneOf:B,oneOfType:F,shape:L,exact:U};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function d(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}d.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var Q={},se=0;function ue(ce,fe,ye,ve,Ee,Ae,Ze){if(ve=ve||p,Ae=Ae||ye,Ze!==r){if(f){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var mt=ve+":"+ye;!Q[mt]&&se<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[mt]=!0,se++)}}return fe[ye]==null?ce?fe[ye]===null?new d("The "+Ee+" `"+Ae+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new d("The "+Ee+" `"+Ae+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:Z(fe,ye,ve,Ee,Ae)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function h(Z){function Q(se,ue,ne,ce,fe,ye){var ve=se[ue],Ee=J(ve);if(Ee!==Z){var Ae=X(ve);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+Ae+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(Q)}function S(){return w(l)}function E(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=se[ue];if(!Array.isArray(ye)){var ve=J(ye);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Ae=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Ae instanceof Error)return Ae}return null}return w(Q)}function R(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!c(fe)){var ye=J(fe);return new d("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function O(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!e.isValidElementType(fe)){var ye=J(fe);return new d("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(Z)}function k(Z){function Q(se,ue,ne,ce,fe){if(!(se[ue]instanceof Z)){var ye=Z.name||p,ve=de(se[ue]);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return w(Q)}function B(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function Q(se,ue,ne,ce,fe){for(var ye=se[ue],ve=0;ve<Z.length;ve++)if(x(ye,Z[ve]))return null;var Ee=JSON.stringify(Z,function(Ze,ie){var mt=X(ie);return mt==="symbol"?String(ie):ie});return new d("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return w(Q)}function M(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=se[ue],ve=J(ye);if(ve!=="object")return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(i(ye,Ee)){var Ae=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ae instanceof Error)return Ae}return null}return w(Q)}function F(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Q=0;Q<Z.length;Q++){var se=Z[Q];if(typeof se!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(se)+" at index "+Q+"."),l}function ue(ne,ce,fe,ye,ve){for(var Ee=[],Ae=0;Ae<Z.length;Ae++){var Ze=Z[Ae],ie=Ze(ne,ce,fe,ye,ve,r);if(ie==null)return null;ie.data&&i(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var mt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new d("Invalid "+ye+" `"+ve+"` supplied to "+("`"+fe+"`"+mt+"."))}return w(ue)}function G(){function Z(Q,se,ue,ne,ce){return q(Q[se])?null:new d("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,Q,se,ue,ne){return new d((Z||"React class")+": "+Q+" type `"+se+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function L(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],ve=J(ye);if(ve!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+ve+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Ae=Z[Ee];if(typeof Ae!="function")return j(ne,ce,fe,Ee,X(Ae));var Ze=Ae(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ze)return Ze}return null}return w(Q)}function U(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],ve=J(ye);if(ve!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+ve+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},se[ue],Z);for(var Ae in Ee){var Ze=Z[Ae];if(i(Z,Ae)&&typeof Ze!="function")return j(ne,ce,fe,Ae,X(Ze));if(!Ze)return new d("Invalid "+ce+" `"+fe+"` key `"+Ae+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(se[ue],null," ")+`
|
|
81
|
+
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=Ze(ye,Ae,ne,ce,fe+"."+Ae,r);if(ie)return ie}return null}return w(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=g(Z);if(Q){var se=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=se.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=se.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function X(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=X(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?p:Z.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},zl}var Wl,Fg;function zP(){if(Fg)return Wl;Fg=1;var e=Kc();function t(){}function r(){}return r.resetWarningCache=t,Wl=function(){function i(l,c,f,m,v,g){if(g!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Wl}var Dg;function WP(){if(Dg)return Vs.exports;if(Dg=1,process.env.NODE_ENV!=="production"){var e=Um(),t=!0;Vs.exports=jP()(e.isElement,t)}else Vs.exports=zP()();return Vs.exports}var Ng;function BP(){return Ng||(Ng=1,(function(e){(function(t,r){r(e,W,WP())})(Ks,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=l(r),a=l(i);function l(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var v=(function(){function S(E,R){for(var O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function g(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function p(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var b=!1;function x(S){b=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function d(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return b?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var k=S.screenX,B=S.screenY;return{x:k,y:B}}var h=(function(S){p(E,S);function E(){var R;m(this,E);for(var O=arguments.length,k=Array(O),B=0;B<O;B++)k[B]=arguments[B];var M=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}return v(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var k=w(O),B=k.x,M=k.y;this.moveStart={x:B,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=w(O),B=k.x,M=k.y,F=B-this.moveStart.x,G=M-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:F,y:G},O);j&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:F,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var k=O.className,B=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var F=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:B},F),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},h.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=h})})(Ks)),Ks}var jg;function qm(){return jg||(jg=1,(function(e){(function(t,r){r(e,BP())})(Gs,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(Gs)),Gs}var no={},zg;function Zm(){if(zg)return no;zg=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e=t(tm());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,l){return a in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,s}var i={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return no.default=i,no}var io={},oo={},Wg;function UP(){if(Wg)return oo;Wg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return oo.outerWidth=e,oo}var so={},Bg;function Vc(){if(Bg)return so;Bg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,l=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+l.join(",")+")";return c+f};return so.default=e,so}var ao={},Ug;function Gm(){if(Ug)return ao;Ug=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=function(){return window};return ao.default=e,ao}var Hg;function Km(){if(Hg)return io;Hg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=f(W),t=l(Zm()),r=UP(),i=l(Vc()),s=l(qm()),a=l(Gm());function l(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||m(M)!=="object"&&typeof M!="function")return{default:M};var F=c();if(F&&F.has(M))return F.get(M);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var U=j?Object.getOwnPropertyDescriptor(M,L):null;U&&(U.get||U.set)?Object.defineProperty(G,L,U):G[L]=M[L]}return G.default=M,F&&F.set(M,G),G}function m(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(M)}function v(){return v=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(M[j]=G[j])}return M},v.apply(this,arguments)}function g(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var G=0;G<F.length;G++){var j=F[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}function b(M,F,G){return F&&p(M.prototype,F),M}function x(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),F&&d(M,F)}function d(M,F){return d=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},d(M,F)}function w(M){var F=E();return function(){var j=R(M),L;if(F){var U=R(this).constructor;L=Reflect.construct(j,arguments,U)}else L=j.apply(this,arguments);return h(this,L)}}function h(M,F){return F&&(m(F)==="object"||typeof F=="function")?F:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(M)}function O(M,F,G){return F in M?Object.defineProperty(M,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):M[F]=G,M}var k=function(F){return F.hasOwnProperty("key")},B=(function(M){x(G,M);var F=w(G);function G(j){var L;return g(this,G),L=F.call(this,j),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(U){L.itemsWrapperRef=U}),O(S(L),"setItemsListRef",function(U){L.itemsListRef=U}),O(S(L),"setThumbsRef",function(U,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=U}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var U=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,C=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/C),X=J<U,te=X?U-J:0;L.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:X?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:X}})}}),O(S(L),"handleClickItem",function(U,q,C){if(!k(C)||C.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(U,q)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(U){var q=U.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var C=0,J=e.Children.count(L.props.children),X=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),de=-te*100/L.state.visibleItems;X===C&&q>0&&(q=0),X===de&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,Q=X+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){L.itemsListRef.style[se]=(0,i.default)(Q,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(U){L.moveTo(L.state.firstItem-(typeof U=="number"?U:1))}),O(S(L),"slideLeft",function(U){L.moveTo(L.state.firstItem+(typeof U=="number"?U:1))}),O(S(L),"moveTo",function(U){U=U<0?0:U,U=U>=L.state.lastPosition?L.state.lastPosition:U,L.setState({firstItem:U})}),L.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return b(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(L){var U=L;return L>=this.state.lastPosition&&(U=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(U=this.state.firstItem),L<this.state.firstItem&&(U=L),U}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(U,q){var C=t.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:C,onClick:L.handleClickItem.bind(L,q,L.props.children[q]),onKeyDown:L.handleClickItem.bind(L,q,L.props.children[q]),"aria-label":"".concat(L.props.labels.item," ").concat(q+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",v({},J,{role:"button",tabIndex:0}),U)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var U=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},X=-this.state.firstItem*(this.state.itemSize||0),te=(0,i.default)(X,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!q),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),U?e.default.createElement(s.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return L.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return io.default=B,O(B,"displayName","Thumbs"),O(B,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),io}var uo={},qg;function HP(){if(qg)return uo;qg=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=function(){return document};return uo.default=e,uo}var Bt={},Zg;function Vm(){if(Zg)return Bt;Zg=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.setPosition=Bt.getPosition=Bt.isKeyboardEvent=Bt.defaultStatusFormatter=Bt.noop=void 0;var e=W,t=r(Vc());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Bt.noop=i;var s=function(m,v){return"".concat(m," of ").concat(v)};Bt.defaultStatusFormatter=s;var a=function(m){return m?m.hasOwnProperty("key"):!1};Bt.isKeyboardEvent=a;var l=function(m,v){if(v.infiniteLoop&&++m,m===0)return 0;var g=e.Children.count(v.children);if(v.centerMode&&v.axis==="horizontal"){var p=-m*v.centerSlidePercentage,b=g-1;return m&&(m!==b||v.infiniteLoop)?p+=(100-v.centerSlidePercentage)/2:m===b&&(p+=100-v.centerSlidePercentage),p}return-m*100};Bt.getPosition=l;var c=function(m,v){var g={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(p){g[p]=(0,t.default)(m,"%",v)}),g};return Bt.setPosition=c,Bt}var fr={},Gg;function qP(){if(Gg)return fr;Gg=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.fadeAnimationHandler=fr.slideStopSwipingHandler=fr.slideSwipeAnimationHandler=fr.slideAnimationHandler=void 0;var e=W,t=i(Vc()),r=Vm();function i(g){return g&&g.__esModule?g:{default:g}}function s(g,p){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);p&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(g,d).enumerable})),b.push.apply(b,x)}return b}function a(g){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{};p%2?s(Object(b),!0).forEach(function(x){l(g,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):s(Object(b)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(b,x))})}return g}function l(g,p,b){return p in g?Object.defineProperty(g,p,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[p]=b,g}var c=function(p,b){var x={},d=b.selectedItem,w=d,h=e.Children.count(p.children)-1,S=p.infiniteLoop&&(d<0||d>h);if(S)return w<0?p.centerMode&&p.centerSlidePercentage&&p.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*p.centerSlidePercentage-(100-p.centerSlidePercentage)/2,p.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,p.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,p.axis)),x;var E=(0,r.getPosition)(d,p),R=(0,t.default)(E,"%",p.axis),O=p.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},b.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};fr.slideAnimationHandler=c;var f=function(p,b,x,d){var w={},h=b.axis==="horizontal",S=e.Children.count(b.children),E=0,R=(0,r.getPosition)(x.selectedItem,b),O=b.infiniteLoop?(0,r.getPosition)(S-1,b)-100:(0,r.getPosition)(S-1,b),k=h?p.x:p.y,B=k;R===E&&k>0&&(B=0),R===O&&k<0&&(B=0);var M=R+100/(x.itemSize/B),F=Math.abs(k)>b.swipeScrollTolerance;return b.infiniteLoop&&F&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!b.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,b.axis)),F&&!x.cancelClick&&d({cancelClick:!0}),w};fr.slideSwipeAnimationHandler=f;var m=function(p,b){var x=(0,r.getPosition)(b.selectedItem,p),d=(0,r.setPosition)(x,p.axis);return{itemListStyle:d}};fr.slideStopSwipingHandler=m;var v=function(p,b){var x=p.transitionTime+"ms",d="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:d,msTransitionTimingFunction:d,MozTransitionTimingFunction:d,WebkitTransitionTimingFunction:d,OTransitionTimingFunction:d};return b.swiping||(w=a(a({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:a(a({},w),{},{opacity:1,position:"relative"}),prevStyle:a({},w)}};return fr.fadeAnimationHandler=v,fr}var Kg;function ZP(){if(Kg)return ro;Kg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=v(W),t=f(qm()),r=f(Zm()),i=f(Km()),s=f(HP()),a=f(Gm()),l=Vm(),c=qP();function f(j){return j&&j.__esModule?j:{default:j}}function m(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return m=function(){return j},j}function v(j){if(j&&j.__esModule)return j;if(j===null||g(j)!=="object"&&typeof j!="function")return{default:j};var L=m();if(L&&L.has(j))return L.get(j);var U={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in j)if(Object.prototype.hasOwnProperty.call(j,C)){var J=q?Object.getOwnPropertyDescriptor(j,C):null;J&&(J.get||J.set)?Object.defineProperty(U,C,J):U[C]=j[C]}return U.default=j,L&&L.set(j,U),U}function g(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(U){return typeof U}:g=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},g(j)}function p(){return p=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var U=arguments[L];for(var q in U)Object.prototype.hasOwnProperty.call(U,q)&&(j[q]=U[q])}return j},p.apply(this,arguments)}function b(j,L){var U=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);L&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(j,C).enumerable})),U.push.apply(U,q)}return U}function x(j){for(var L=1;L<arguments.length;L++){var U=arguments[L]!=null?arguments[L]:{};L%2?b(Object(U),!0).forEach(function(q){F(j,q,U[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(U)):b(Object(U)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(U,q))})}return j}function d(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function w(j,L){for(var U=0;U<L.length;U++){var q=L[U];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function h(j,L,U){return L&&w(j.prototype,L),j}function S(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),L&&E(j,L)}function E(j,L){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(j,L)}function R(j){var L=B();return function(){var q=M(j),C;if(L){var J=M(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(j,L){return L&&(g(L)==="object"||typeof L=="function")?L:k(j)}function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(j){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},M(j)}function F(j,L,U){return L in j?Object.defineProperty(j,L,{value:U,enumerable:!0,configurable:!0,writable:!0}):j[L]=U,j}var G=(function(j){S(U,j);var L=R(U);function U(q){var C;d(this,U),C=L.call(this,q),F(k(C),"thumbsRef",void 0),F(k(C),"carouselWrapperRef",void 0),F(k(C),"listRef",void 0),F(k(C),"itemsRef",void 0),F(k(C),"timer",void 0),F(k(C),"animationHandler",void 0),F(k(C),"setThumbsRef",function(X){C.thumbsRef=X}),F(k(C),"setCarouselWrapperRef",function(X){C.carouselWrapperRef=X}),F(k(C),"setListRef",function(X){C.listRef=X}),F(k(C),"setItemsRef",function(X,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=X}),F(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),F(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),F(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),F(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),F(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),F(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),F(k(C),"navigateWithKeyboard",function(X){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,se=de?Z.ArrowLeft:Z.ArrowUp;Q===X.keyCode?C.increment():se===X.keyCode&&C.decrement()}}),F(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var X=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=X?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),F(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),F(k(C),"handleClickItem",function(X,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(X,te),X!==C.state.selectedItem&&C.setState({selectedItem:X})}}),F(k(C),"handleOnChange",function(X,te){e.Children.count(C.props.children)<=1||C.props.onChange(X,te)}),F(k(C),"handleClickThumb",function(X,te){C.props.onClickThumb(X,te),C.moveTo(X)}),F(k(C),"onSwipeStart",function(X){C.setState({swiping:!0}),C.props.onSwipeStart(X)}),F(k(C),"onSwipeEnd",function(X){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(X),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),F(k(C),"onSwipeMove",function(X,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(X,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),F(k(C),"decrement",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof X=="number"?X:1))}),F(k(C),"increment",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof X=="number"?X:1))}),F(k(C),"moveTo",function(X){if(typeof X=="number"){var te=e.Children.count(C.props.children)-1;X<0&&(X=C.props.infiniteLoop?te:0),X>te&&(X=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:X}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),F(k(C),"onClickNext",function(){C.increment(1)}),F(k(C),"onClickPrev",function(){C.decrement(1)}),F(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"changeItem",function(X){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(X)}}),F(k(C),"selectItem",function(X){C.setState(x({previousItem:C.state.selectedItem},X),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(X.selectedItem,e.Children.toArray(C.props.children)[X.selectedItem])}),F(k(C),"getInitialImage",function(){var X=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[X],de=te&&te.getElementsByTagName("img")||[];return de[0]}),F(k(C),"getVariableItemHeight",function(X){var te=C.itemsRef&&C.itemsRef[X];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var se=de[0]||te.children[0],ue=se.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return h(U,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(X,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var se={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,X),style:Q};return e.default.createElement("li",se,J.props.renderItem(X,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,X=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return X?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,se){return de&&de(C.changeItem(se),se===C.state.selectedItem,se,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(i.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,X=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),se=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(X){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,p({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(ve){return C.setListRef(ve)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),U})(e.default.Component);return ro.default=G,F(G,"displayName","Carousel"),F(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!U),onClick:L})},renderArrowNext:function(L,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!U),onClick:L})},renderIndicator:function(L,U,q,C){return e.default.createElement("li",{className:r.default.DOT(U),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var U=e.Children.map(L,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return U.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):U},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),ro}var Vg={},Xg;function GP(){return Xg||(Xg=1),Vg}var Yg;function KP(){return Yg||(Yg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=s(ZP()),r=GP(),i=s(Km());function s(a){return a&&a.__esModule?a:{default:a}}})(Ml)),Ml}var VP=KP();const XP=({tip:e})=>D.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Xm(e,!0)}),YP=({pages:e})=>D.jsx("div",{className:"min-h-[10rem] w-96",children:D.jsx(VP.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>D.jsx(XP,{tip:t},t.key))})}),JP=({body:e,isInsideCarousel:t})=>D.jsx("article",{className:We(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:D.jsx(ga,{children:e,options:{overrides:{a:{component:({children:r,...i})=>D.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,D.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),QP=({video:e,body:t,title:r,isInsideCarousel:i})=>D.jsxs("div",{className:We([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[D.jsx("div",{className:We([{"mr-1":!i,"mb-1":i}]),children:D.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),D.jsx("article",{className:We(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:D.jsx(ga,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>D.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,D.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Xm=(e,t)=>{switch(e.type){case ca.TEXT:return D.jsx(JP,{body:e.body,isInsideCarousel:t});case ca.VIDEO:return D.jsx(QP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ca.CAROUSEL:return D.jsx(YP,{pages:e.pages})}},Ym=W.createContext(void 0);function Jg(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const eC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const m=f.reduce((v,g)=>Jg(f,g.key).length>1?{...v,[g.key]:{type:"carousel",pages:Jg(f,g.key)}}:{...v,[g.key]:g},{});a(v=>({...v,tips:m}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!s}))};return D.jsx(Ym.Provider,{value:{tips:i,toggleTips:l,show:s,enabled:t},children:e})},Jm=e=>{const t=W.useContext(Ym);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}},tC=va(IP)`
|
|
82
82
|
&[data-state='open'] > * {
|
|
83
83
|
display: block !important;
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
86
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(
|
|
85
|
+
`,Qm=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=Jm(e),[l,c]=W.useState(!1),f=W.useRef(null);return W.useEffect(()=>{if(f.current){const m=new IntersectionObserver(v=>{v[0].isIntersecting||c(!1)});return m.observe(f.current),()=>{f.current&&m.unobserve(f.current)}}},[]),s&&a?D.jsxs($P,{open:l,onOpenChange:c,children:[D.jsx(tC,{ref:f,className:We("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:m=>m.stopPropagation(),children:D.jsx("span",{className:We("group-hover:block",{hidden:!r}),children:D.jsx(tt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),D.jsx(LP,{side:t,sideOffset:5,onClick:m=>m.stopPropagation(),children:D.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Xm(s)})})]}):null};var rC=Object.defineProperty,nC=(e,t,r)=>t in e?rC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bl=(e,t,r)=>(nC(e,typeof t!="symbol"?t+"":t,r),r);let iC=class{constructor(){Bl(this,"current",this.detect()),Bl(this,"handoffState","pending"),Bl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},gi=new iC,Cr=(e,t)=>{gi.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function vi(e){let t=W.useRef(e);return Cr(()=>{t.current=e},[e]),t}let St=function(e){let t=vi(e);return W.useCallback((...r)=>t.current(...r),[t])};function oC(e,t,r){let[i,s]=W.useState(r),a=e!==void 0,l=W.useRef(a),c=W.useRef(!1),f=W.useRef(!1);return a&&!l.current&&!c.current?(c.current=!0,l.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&l.current&&!f.current&&(f.current=!0,l.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:i,St(m=>(a||s(m),t==null?void 0:t(m)))]}function sC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function zo(){let e=[],t={addEventListener(r,i,s,a){return r.addEventListener(i,s,a),t.add(()=>r.removeEventListener(i,s,a))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return sC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,s){let a=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:s}),this.add(()=>{Object.assign(r.style,{[i]:a})})},group(r){let i=zo();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function Xc(){let[e]=W.useState(zo);return W.useEffect(()=>()=>e.dispose(),[e]),e}function aC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Yc(){let e=aC(),[t,r]=$.useState(gi.isHandoffComplete);return t&&gi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>gi.handoff(),[]),e?!1:t}var Qg;let Jc=(Qg=W.useId)!=null?Qg:function(){let e=Yc(),[t,r]=W.useState(e?()=>gi.nextId():null);return Cr(()=>{t===null&&r(gi.nextId())},[t]),t!=null?""+t:void 0};function Ar(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Ar),i}function ev(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 uC(e,t){let[r,i]=W.useState(()=>ev(e));return Cr(()=>{i(ev(e))},[e.type,e.as]),Cr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let lC=Symbol();function Wo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=St(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[lC]))?void 0:r}function ya(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ey=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ey||{}),pn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pn||{});function Zn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:l,mergeRefs:c}){c=c??cC;let f=ty(t,e);if(a)return Ys(f,r,i,l,c);let m=s??0;if(m&2){let{static:v=!1,...g}=f;if(v)return Ys(g,r,i,l,c)}if(m&1){let{unmount:v=!0,...g}=f;return Ar(v?0:1,{0(){return null},1(){return Ys({...g,hidden:!0,style:{display:"none"}},r,i,l,c)}})}return Ys(f,r,i,l,c)}function Ys(e,t={},r,i,s){let{as:a=r,children:l,refName:c="ref",...f}=Ul(e,["unmount","static"]),m=e.ref!==void 0?{[c]:e.ref}:{},v=typeof l=="function"?l(t):l;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let g={};if(t){let p=!1,b=[];for(let[x,d]of Object.entries(t))typeof d=="boolean"&&(p=!0),d===!0&&b.push(x);p&&(g["data-headlessui-state"]=b.join(" "))}if(a===W.Fragment&&Object.keys(gc(f)).length>0){if(!W.isValidElement(v)||Array.isArray(v)&&v.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(d=>` - ${d}`).join(`
|
|
86
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
|
87
87
|
`)].join(`
|
|
88
|
-
`));let g=p.props,y=typeof(g==null?void 0:g.className)=="function"?(...v)=>Pl(g==null?void 0:g.className(...v),c.className):Pl(g==null?void 0:g.className,c.className),S=y?{className:y}:{};return j.cloneElement(p,Object.assign({},ew(p.props,ed(gf(c,["ref"]))),h,d,{ref:o(p.ref,d.ref)},S))}return j.createElement(a,Object.assign({},gf(c,["ref"]),a!==j.Fragment&&d,a!==j.Fragment&&h),p)}function v2(...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 ew(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...a){let l=r[n];for(let u of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;u(o,...a)}}});return t}function ki(e){var t;return Object.assign(j.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ed(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function gf(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let m2="div";var tw=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(tw||{});function b2(e,t){var r;let{features:n=1,...o}=e,a={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&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",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Ei({ourProps:a,theirProps:o,slot:{},defaultTag:m2,name:"Hidden"})}let y2=ki(b2),Bd=j.createContext(null);Bd.displayName="OpenClosedContext";var gn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(gn||{});function rw(){return j.useContext(Bd)}function w2({value:e,children:t}){return j.createElement(Bd.Provider,{value:e},t)}function x2(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&S2(r)?!1:n}function S2(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function _2(e){var t,r;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let o of n.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(r=n.requestSubmit)==null||r.call(n)}}var td=(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))(td||{});function Ud(){let e=j.useRef(!1);return Xr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nw=j.createContext(null);function iw(){let e=j.useContext(nw);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,iw),t}return e}function E2(){let[e,t]=j.useState([]);return[e.length>0?e.join(" "):void 0,j.useMemo(()=>function(r){let n=Lt(a=>(t(l=>[...l,a]),()=>t(l=>{let u=l.slice(),c=u.indexOf(a);return c!==-1&&u.splice(c,1),u}))),o=j.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props}),[n,r.slot,r.name,r.props]);return j.createElement(nw.Provider,{value:o},r.children)},[t])]}let k2="p";function O2(e,t){let r=Wd(),{id:n=`headlessui-description-${r}`,...o}=e,a=iw(),l=$a(t);Xr(()=>a.register(n),[n,a.register]);let u={ref:l,...a.props,id:n};return Ei({ourProps:u,theirProps:o,slot:a.slot||{},defaultTag:k2,name:a.name||"Description"})}let A2=ki(O2),T2=Object.assign(A2,{}),ow=j.createContext(null);function aw(){let e=j.useContext(ow);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,aw),t}return e}function R2(){let[e,t]=j.useState([]);return[e.length>0?e.join(" "):void 0,j.useMemo(()=>function(r){let n=Lt(a=>(t(l=>[...l,a]),()=>t(l=>{let u=l.slice(),c=u.indexOf(a);return c!==-1&&u.splice(c,1),u}))),o=j.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props}),[n,r.slot,r.name,r.props]);return j.createElement(ow.Provider,{value:o},r.children)},[t])]}let C2="label";function P2(e,t){let r=Wd(),{id:n=`headlessui-label-${r}`,passive:o=!1,...a}=e,l=aw(),u=$a(t);Xr(()=>l.register(n),[n,l.register]);let c={ref:u,...l.props,id:n};return o&&("onClick"in c&&(delete c.htmlFor,delete c.onClick),"onClick"in a&&delete a.onClick),Ei({ourProps:c,theirProps:a,slot:l.slot||{},defaultTag:C2,name:l.name||"Label"})}let I2=ki(P2),N2=Object.assign(I2,{});function M2(e=0){let[t,r]=j.useState(e),n=Ud(),o=j.useCallback(c=>{n.current&&r(d=>d|c)},[t,n]),a=j.useCallback(c=>!!(t&c),[t]),l=j.useCallback(c=>{n.current&&r(d=>d&~c)},[r,n]),u=j.useCallback(c=>{n.current&&r(d=>d^c)},[r]);return{flags:t,addFlag:o,hasFlag:a,removeFlag:l,toggleFlag:u}}let Vd=j.createContext(null);Vd.displayName="GroupContext";let D2=j.Fragment;function $2(e){var t;let[r,n]=j.useState(null),[o,a]=R2(),[l,u]=E2(),c=j.useMemo(()=>({switch:r,setSwitch:n,labelledby:o,describedby:l}),[r,n,o,l]),d={},p=e;return j.createElement(u,{name:"Switch.Description"},j.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=c.switch)==null?void 0:t.id,onClick(h){r&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},j.createElement(Vd.Provider,{value:c},Ei({ourProps:d,theirProps:p,defaultTag:D2,name:"Switch.Group"}))))}let L2="button";function z2(e,t){var r;let n=Wd(),{id:o=`headlessui-switch-${n}`,checked:a,defaultChecked:l=!1,onChange:u,disabled:c=!1,name:d,value:p,form:h,...g}=e,y=j.useContext(Vd),S=j.useRef(null),v=$a(S,t,y===null?null:y.setSwitch),[b,m]=f2(a,u,l),w=Lt(()=>m==null?void 0:m(!b)),x=Lt(P=>{if(x2(P.currentTarget))return P.preventDefault();P.preventDefault(),w()}),k=Lt(P=>{P.key===td.Space?(P.preventDefault(),w()):P.key===td.Enter&&_2(P.currentTarget)}),E=Lt(P=>P.preventDefault()),R=j.useMemo(()=>({checked:b}),[b]),F={id:o,ref:v,role:"switch",type:h2(e,S),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":b,"aria-labelledby":y==null?void 0:y.labelledby,"aria-describedby":y==null?void 0:y.describedby,disabled:c,onClick:x,onKeyUp:k,onKeyPress:E},A=Fd();return j.useEffect(()=>{var P;let B=(P=S.current)==null?void 0:P.closest("form");B&&l!==void 0&&A.addEventListener(B,"reset",()=>{m(l)})},[S,m]),j.createElement(j.Fragment,null,d!=null&&b&&j.createElement(y2,{features:tw.Hidden,...ed({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:c,form:h,checked:b,name:d,value:p})}),Ei({ourProps:F,theirProps:g,slot:R,defaultTag:L2,name:"Switch"}))}let j2=ki(z2),F2=$2,H2=Object.assign(j2,{Group:F2,Label:N2,Description:T2});function W2(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function vf(e,...t){e&&t.length>0&&e.classList.add(...t)}function mf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function B2(e,t){let r=Da();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[a,l]=[n,o].map(c=>{let[d=0]=c.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,h)=>h-p);return d}),u=a+l;if(u!==0){r.group(d=>{d.setTimeout(()=>{t(),d.dispose()},u),d.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&d.dispose()})});let c=r.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function U2(e,t,r,n){let o=r?"enter":"leave",a=Da(),l=n!==void 0?W2(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=Gr(o,{enter:()=>t.enter,leave:()=>t.leave}),c=Gr(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=Gr(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return mf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),vf(e,...t.base,...u,...d),a.nextFrame(()=>{mf(e,...t.base,...u,...d),vf(e,...t.base,...u,...c),B2(e,()=>(mf(e,...t.base,...u),vf(e,...t.base,...t.entered),l()))}),a.dispose}function V2({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:a}){let l=Ud(),u=Fd(),c=Qi(r);Xr(()=>{e&&(c.current="enter")},[e]),Xr(()=>{let d=Da();u.add(d.dispose);let p=t.current;if(p&&c.current!=="idle"&&l.current)return d.dispose(),o.current(c.current),d.add(U2(p,n.current,c.current==="enter",()=>{d.dispose(),a.current(c.current)})),d.dispose},[r])}function Dn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ru=j.createContext(null);ru.displayName="TransitionContext";var q2=(e=>(e.Visible="visible",e.Hidden="hidden",e))(q2||{});function G2(){let e=j.useContext(ru);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Z2(){let e=j.useContext(nu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let nu=j.createContext(null);nu.displayName="NestingContext";function iu(e){return"children"in e?iu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function sw(e,t){let r=Qi(e),n=j.useRef([]),o=Ud(),a=Fd(),l=Lt((y,S=Bn.Hidden)=>{let v=n.current.findIndex(({el:b})=>b===y);v!==-1&&(Gr(S,{[Bn.Unmount](){n.current.splice(v,1)},[Bn.Hidden](){n.current[v].state="hidden"}}),a.microTask(()=>{var b;!iu(n)&&o.current&&((b=r.current)==null||b.call(r))}))}),u=Lt(y=>{let S=n.current.find(({el:v})=>v===y);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:y,state:"visible"}),()=>l(y,Bn.Unmount)}),c=j.useRef([]),d=j.useRef(Promise.resolve()),p=j.useRef({enter:[],leave:[],idle:[]}),h=Lt((y,S,v)=>{c.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([b])=>b!==y)),t==null||t.chains.current[S].push([y,new Promise(b=>{c.current.push(b)})]),t==null||t.chains.current[S].push([y,new Promise(b=>{Promise.all(p.current[S].map(([m,w])=>w)).then(()=>b())})]),S==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),g=Lt((y,S,v)=>{Promise.all(p.current[S].splice(0).map(([b,m])=>m)).then(()=>{var b;(b=c.current.shift())==null||b()}).then(()=>v(S))});return j.useMemo(()=>({children:n,register:u,unregister:l,onStart:h,onStop:g,wait:d,chains:p}),[u,l,n,h,g,p,d])}function K2(){}let Y2=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function rb(e){var t;let r={};for(let n of Y2)r[n]=(t=e[n])!=null?t:K2;return r}function X2(e){let t=j.useRef(rb(e));return j.useEffect(()=>{t.current=rb(e)},[e]),t}let J2="div",lw=Qy.RenderStrategy;function Q2(e,t){var r,n;let{beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:u,enter:c,enterFrom:d,enterTo:p,entered:h,leave:g,leaveFrom:y,leaveTo:S,...v}=e,b=j.useRef(null),m=$a(b,t),w=(r=v.unmount)==null||r?Bn.Unmount:Bn.Hidden,{show:x,appear:k,initial:E}=G2(),[R,F]=j.useState(x?"visible":"hidden"),A=Z2(),{register:P,unregister:B}=A;j.useEffect(()=>P(b),[P,b]),j.useEffect(()=>{if(w===Bn.Hidden&&b.current){if(x&&R!=="visible"){F("visible");return}return Gr(R,{hidden:()=>B(b),visible:()=>P(b)})}},[R,b,P,B,x,w]);let $=Qi({base:Dn(v.className),enter:Dn(c),enterFrom:Dn(d),enterTo:Dn(p),entered:Dn(h),leave:Dn(g),leaveFrom:Dn(y),leaveTo:Dn(S)}),M=X2({beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:u}),U=Hd();j.useEffect(()=>{if(U&&R==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,R,U]);let H=E&&!k,I=k&&x&&E,K=!U||H?"idle":x?"enter":"leave",X=M2(0),Z=Lt(J=>Gr(J,{enter:()=>{X.addFlag(gn.Opening),M.current.beforeEnter()},leave:()=>{X.addFlag(gn.Closing),M.current.beforeLeave()},idle:()=>{}})),ve=Lt(J=>Gr(J,{enter:()=>{X.removeFlag(gn.Opening),M.current.afterEnter()},leave:()=>{X.removeFlag(gn.Closing),M.current.afterLeave()},idle:()=>{}})),z=sw(()=>{F("hidden"),B(b)},A),q=j.useRef(!1);V2({immediate:I,container:b,classes:$,direction:K,onStart:Qi(J=>{q.current=!0,z.onStart(b,J,Z)}),onStop:Qi(J=>{q.current=!1,z.onStop(b,J,ve),J==="leave"&&!iu(z)&&(F("hidden"),B(b))})});let re=v,ee={ref:m};return I?re={...re,className:Pl(v.className,...$.current.enter,...$.current.enterFrom)}:q.current&&(re.className=Pl(v.className,(n=b.current)==null?void 0:n.className),re.className===""&&delete re.className),j.createElement(nu.Provider,{value:z},j.createElement(w2,{value:Gr(R,{visible:gn.Open,hidden:gn.Closed})|X.flags},Ei({ourProps:ee,theirProps:re,defaultTag:J2,features:lw,visible:R==="visible",name:"Transition.Child"})))}function eM(e,t){let{show:r,appear:n=!1,unmount:o=!0,...a}=e,l=j.useRef(null),u=$a(l,t);Hd();let c=rw();if(r===void 0&&c!==null&&(r=(c&gn.Open)===gn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=j.useState(r?"visible":"hidden"),h=sw(()=>{p("hidden")}),[g,y]=j.useState(!0),S=j.useRef([r]);Xr(()=>{g!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),y(!1))},[S,r]);let v=j.useMemo(()=>({show:r,appear:n,initial:g}),[r,n,g]);j.useEffect(()=>{if(r)p("visible");else if(!iu(h))p("hidden");else{let x=l.current;if(!x)return;let k=x.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&p("hidden")}},[r,h]);let b={unmount:o},m=Lt(()=>{var x;g&&y(!1),(x=e.beforeEnter)==null||x.call(e)}),w=Lt(()=>{var x;g&&y(!1),(x=e.beforeLeave)==null||x.call(e)});return j.createElement(nu.Provider,{value:h},j.createElement(ru.Provider,{value:v},Ei({ourProps:{...b,as:j.Fragment,children:j.createElement(uw,{ref:u,...b,...a,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:j.Fragment,features:lw,visible:d==="visible",name:"Transition"})))}function tM(e,t){let r=j.useContext(ru)!==null,n=rw()!==null;return j.createElement(j.Fragment,null,!r&&n?j.createElement(rd,{ref:t,...e}):j.createElement(uw,{ref:t,...e}))}let rd=ki(eM),uw=ki(Q2),rM=ki(tM),Il=Object.assign(rd,{Child:rM,Root:rd});const bf={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"}},cw=j.forwardRef(({onChange:e,value:t,size:r="md",className:n="ml-auto"},o)=>{const a=l=>{e(l)};return N.jsx("div",{className:tt("flex items-center",n),children:N.jsx(H2,{as:"span",ref:o,checked:t,onChange:a,onKeyDown:l=>{l.key==="Enter"&&a(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
-
relative inline-flex shrink-0 ${
|
|
90
|
-
pointer-events-none inline-block ${
|
|
91
|
-
]`).replace("lheading",
|
|
92
|
-
`).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[
|
|
93
|
-
`)}var
|
|
94
|
-
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let
|
|
95
|
-
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let
|
|
88
|
+
`));let p=v.props,b=typeof(p==null?void 0:p.className)=="function"?(...d)=>ya(p==null?void 0:p.className(...d),f.className):ya(p==null?void 0:p.className,f.className),x=b?{className:b}:{};return W.cloneElement(v,Object.assign({},ty(v.props,gc(Ul(f,["ref"]))),g,m,{ref:s(v.ref,m.ref)},x))}return W.createElement(a,Object.assign({},Ul(f,["ref"]),a!==W.Fragment&&m,a!==W.Fragment&&g),v)}function cC(...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 ty(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](s,...a){let l=r[i];for(let c of l){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Gn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function gc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Ul(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let fC="div";var ry=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ry||{});function dC(e,t){var r;let{features:i=1,...s}=e,a={ref:t,"aria-hidden":(i&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Zn({ourProps:a,theirProps:s,slot:{},defaultTag:fC,name:"Hidden"})}let pC=Gn(dC),Qc=W.createContext(null);Qc.displayName="OpenClosedContext";var Hr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Hr||{});function ny(){return W.useContext(Qc)}function hC({value:e,children:t}){return W.createElement(Qc.Provider,{value:e},t)}function gC(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&&vC(r)?!1:i}function vC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function mC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let s of i.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(r=i.requestSubmit)==null||r.call(i)}}var vc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(vc||{});function ef(){let e=W.useRef(!1);return Cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let iy=W.createContext(null);function oy(){let e=W.useContext(iy);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,oy),t}return e}function yC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(iy.Provider,{value:s},r.children)},[t])]}let bC="p";function wC(e,t){let r=Jc(),{id:i=`headlessui-description-${r}`,...s}=e,a=oy(),l=Wo(t);Cr(()=>a.register(i),[i,a.register]);let c={ref:l,...a.props,id:i};return Zn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:bC,name:a.name||"Description"})}let xC=Gn(wC),SC=Object.assign(xC,{}),sy=W.createContext(null);function ay(){let e=W.useContext(sy);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,ay),t}return e}function EC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(sy.Provider,{value:s},r.children)},[t])]}let _C="label";function OC(e,t){let r=Jc(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,l=ay(),c=Wo(t);Cr(()=>l.register(i),[i,l.register]);let f={ref:c,...l.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Zn({ourProps:f,theirProps:a,slot:l.slot||{},defaultTag:_C,name:l.name||"Label"})}let AC=Gn(OC),TC=Object.assign(AC,{});function RC(e=0){let[t,r]=W.useState(e),i=ef(),s=W.useCallback(f=>{i.current&&r(m=>m|f)},[t,i]),a=W.useCallback(f=>!!(t&f),[t]),l=W.useCallback(f=>{i.current&&r(m=>m&~f)},[r,i]),c=W.useCallback(f=>{i.current&&r(m=>m^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:l,toggleFlag:c}}let tf=W.createContext(null);tf.displayName="GroupContext";let PC=W.Fragment;function CC(e){var t;let[r,i]=W.useState(null),[s,a]=EC(),[l,c]=yC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:l}),[r,i,s,l]),m={},v=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(g){r&&(g.currentTarget.tagName==="LABEL"&&g.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(tf.Provider,{value:f},Zn({ourProps:m,theirProps:v,defaultTag:PC,name:"Switch.Group"}))))}let kC="button";function $C(e,t){var r;let i=Jc(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:l=!1,onChange:c,disabled:f=!1,name:m,value:v,form:g,...p}=e,b=W.useContext(tf),x=W.useRef(null),d=Wo(x,t,b===null?null:b.setSwitch),[w,h]=oC(a,c,l),S=St(()=>h==null?void 0:h(!w)),E=St(F=>{if(gC(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=St(F=>{F.key===vc.Space?(F.preventDefault(),S()):F.key===vc.Enter&&mC(F.currentTarget)}),O=St(F=>F.preventDefault()),k=W.useMemo(()=>({checked:w}),[w]),B={id:s,ref:d,role:"switch",type:uC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":b==null?void 0:b.labelledby,"aria-describedby":b==null?void 0:b.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=Xc();return W.useEffect(()=>{var F;let G=(F=x.current)==null?void 0:F.closest("form");G&&l!==void 0&&M.addEventListener(G,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,m!=null&&w&&W.createElement(pC,{features:ry.Hidden,...gc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:g,checked:w,name:m,value:v})}),Zn({ourProps:B,theirProps:p,slot:k,defaultTag:kC,name:"Switch"}))}let IC=Gn($C),LC=CC,MC=Object.assign(IC,{Group:LC,Label:TC,Description:SC});function FC(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Hl(e,...t){e&&t.length>0&&e.classList.add(...t)}function ql(e,...t){e&&t.length>0&&e.classList.remove(...t)}function DC(e,t){let r=zo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,l]=[i,s].map(f=>{let[m=0]=f.split(",").filter(Boolean).map(v=>v.includes("ms")?parseFloat(v):parseFloat(v)*1e3).sort((v,g)=>g-v);return m}),c=a+l;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",v=>{v.target===v.currentTarget&&m.dispose()})});let f=r.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function NC(e,t,r,i){let s=r?"enter":"leave",a=zo(),l=i!==void 0?FC(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ar(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Ar(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Ar(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ql(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Hl(e,...t.base,...c,...m),a.nextFrame(()=>{ql(e,...t.base,...c,...m),Hl(e,...t.base,...c,...f),DC(e,()=>(ql(e,...t.base,...c),Hl(e,...t.base,...t.entered),l()))}),a.dispose}function jC({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let l=ef(),c=Xc(),f=vi(r);Cr(()=>{e&&(f.current="enter")},[e]),Cr(()=>{let m=zo();c.add(m.dispose);let v=t.current;if(v&&f.current!=="idle"&&l.current)return m.dispose(),s.current(f.current),m.add(NC(v,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function ln(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Da=W.createContext(null);Da.displayName="TransitionContext";var zC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zC||{});function WC(){let e=W.useContext(Da);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function BC(){let e=W.useContext(Na);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Na=W.createContext(null);Na.displayName="NestingContext";function ja(e){return"children"in e?ja(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function uy(e,t){let r=vi(e),i=W.useRef([]),s=ef(),a=Xc(),l=St((b,x=pn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===b);d!==-1&&(Ar(x,{[pn.Unmount](){i.current.splice(d,1)},[pn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!ja(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=St(b=>{let x=i.current.find(({el:d})=>d===b);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:b,state:"visible"}),()=>l(b,pn.Unmount)}),f=W.useRef([]),m=W.useRef(Promise.resolve()),v=W.useRef({enter:[],leave:[],idle:[]}),g=St((b,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==b)),t==null||t.chains.current[x].push([b,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([b,new Promise(w=>{Promise.all(v.current[x].map(([h,S])=>S)).then(()=>w())})]),x==="enter"?m.current=m.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),p=St((b,x,d)=>{Promise.all(v.current[x].splice(0).map(([w,h])=>h)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>d(x))});return W.useMemo(()=>({children:i,register:c,unregister:l,onStart:g,onStop:p,wait:m,chains:v}),[c,l,i,g,p,v,m])}function UC(){}let HC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function tv(e){var t;let r={};for(let i of HC)r[i]=(t=e[i])!=null?t:UC;return r}function qC(e){let t=W.useRef(tv(e));return W.useEffect(()=>{t.current=tv(e)},[e]),t}let ZC="div",ly=ey.RenderStrategy;function GC(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:f,enterFrom:m,enterTo:v,entered:g,leave:p,leaveFrom:b,leaveTo:x,...d}=e,w=W.useRef(null),h=Wo(w,t),S=(r=d.unmount)==null||r?pn.Unmount:pn.Hidden,{show:E,appear:R,initial:O}=WC(),[k,B]=W.useState(E?"visible":"hidden"),M=BC(),{register:F,unregister:G}=M;W.useEffect(()=>F(w),[F,w]),W.useEffect(()=>{if(S===pn.Hidden&&w.current){if(E&&k!=="visible"){B("visible");return}return Ar(k,{hidden:()=>G(w),visible:()=>F(w)})}},[k,w,F,G,E,S]);let j=vi({base:ln(d.className),enter:ln(f),enterFrom:ln(m),enterTo:ln(v),entered:ln(g),leave:ln(p),leaveFrom:ln(b),leaveTo:ln(x)}),L=qC({beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c}),U=Yc();W.useEffect(()=>{if(U&&k==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,k,U]);let q=O&&!R,C=R&&E&&O,J=!U||q?"idle":E?"enter":"leave",X=RC(0),te=St(ne=>Ar(ne,{enter:()=>{X.addFlag(Hr.Opening),L.current.beforeEnter()},leave:()=>{X.addFlag(Hr.Closing),L.current.beforeLeave()},idle:()=>{}})),de=St(ne=>Ar(ne,{enter:()=>{X.removeFlag(Hr.Opening),L.current.afterEnter()},leave:()=>{X.removeFlag(Hr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=uy(()=>{B("hidden"),G(w)},M),Q=W.useRef(!1);jC({immediate:C,container:w,classes:j,direction:J,onStart:vi(ne=>{Q.current=!0,Z.onStart(w,ne,te)}),onStop:vi(ne=>{Q.current=!1,Z.onStop(w,ne,de),ne==="leave"&&!ja(Z)&&(B("hidden"),G(w))})});let se=d,ue={ref:h};return C?se={...se,className:ya(d.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(se.className=ya(d.className,(i=w.current)==null?void 0:i.className),se.className===""&&delete se.className),W.createElement(Na.Provider,{value:Z},W.createElement(hC,{value:Ar(k,{visible:Hr.Open,hidden:Hr.Closed})|X.flags},Zn({ourProps:ue,theirProps:se,defaultTag:ZC,features:ly,visible:k==="visible",name:"Transition.Child"})))}function KC(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,l=W.useRef(null),c=Wo(l,t);Yc();let f=ny();if(r===void 0&&f!==null&&(r=(f&Hr.Open)===Hr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,v]=W.useState(r?"visible":"hidden"),g=uy(()=>{v("hidden")}),[p,b]=W.useState(!0),x=W.useRef([r]);Cr(()=>{p!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),b(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:p}),[r,i,p]);W.useEffect(()=>{if(r)v("visible");else if(!ja(g))v("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&v("hidden")}},[r,g]);let w={unmount:s},h=St(()=>{var E;p&&b(!1),(E=e.beforeEnter)==null||E.call(e)}),S=St(()=>{var E;p&&b(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(Na.Provider,{value:g},W.createElement(Da.Provider,{value:d},Zn({ourProps:{...w,as:W.Fragment,children:W.createElement(cy,{ref:c,...w,...a,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:ly,visible:m==="visible",name:"Transition"})))}function VC(e,t){let r=W.useContext(Da)!==null,i=ny()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(mc,{ref:t,...e}):W.createElement(cy,{ref:t,...e}))}let mc=Gn(KC),cy=Gn(GC),XC=Gn(VC),ba=Object.assign(mc,{Child:XC,Root:mc});const Zl={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"}},fy=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},s)=>{const a=l=>{e(l)};return D.jsx("div",{className:We("flex items-center",i),children:D.jsx(MC,{as:"span",ref:s,checked:t,onChange:a,onKeyDown:l=>{l.key==="Enter"&&a(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
+
relative inline-flex shrink-0 ${Zl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:D.jsx("span",{"aria-hidden":"true",className:`${t?Zl[r].translate:"translate-x-0"}
|
|
90
|
+
pointer-events-none inline-block ${Zl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function rf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Kn=rf();function dy(e){Kn=e}var Eo={exec:()=>null};function Ce(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Rt.caret,"$1"),r=r.replace(s,l),i},getRegex:()=>new RegExp(r,t)};return i}var Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},YC=/^(?:[ \t]*(?:\n|$))+/,JC=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,QC=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ek=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nf=/(?:[*+-]|\d{1,9}[.)])/,py=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hy=Ce(py).replace(/bull/g,nf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),tk=Ce(py).replace(/bull/g,nf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),of=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rk=/^[^\n]+/,sf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nk=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",sf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ik=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nf).getRegex(),za="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",af=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ok=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",af).replace("tag",za).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gy=Ce(of).replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",za).getRegex(),sk=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",gy).getRegex(),uf={blockquote:sk,code:JC,def:nk,fences:QC,heading:ek,hr:Bo,html:ok,lheading:hy,list:ik,newline:YC,paragraph:gy,table:Eo,text:rk},rv=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",za).getRegex(),ak={...uf,lheading:tk,table:rv,paragraph:Ce(of).replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rv).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",za).getRegex()},uk={...uf,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",af).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Eo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(of).replace("hr",Bo).replace("heading",` *#{1,6} *[^
|
|
91
|
+
]`).replace("lheading",hy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ck=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vy=/^( {2,}|\\)\n(?!\s*$)/,fk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wa=/[\p{P}\p{S}]/u,lf=/[\s\p{P}\p{S}]/u,my=/[^\s\p{P}\p{S}]/u,dk=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,lf).getRegex(),yy=/(?!~)[\p{P}\p{S}]/u,pk=/(?!~)[\s\p{P}\p{S}]/u,hk=/(?:[^\s\p{P}\p{S}]|~)/u,gk=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,by=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,vk=Ce(by,"u").replace(/punct/g,Wa).getRegex(),mk=Ce(by,"u").replace(/punct/g,yy).getRegex(),wy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",yk=Ce(wy,"gu").replace(/notPunctSpace/g,my).replace(/punctSpace/g,lf).replace(/punct/g,Wa).getRegex(),bk=Ce(wy,"gu").replace(/notPunctSpace/g,hk).replace(/punctSpace/g,pk).replace(/punct/g,yy).getRegex(),wk=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,my).replace(/punctSpace/g,lf).replace(/punct/g,Wa).getRegex(),xk=Ce(/\\(punct)/,"gu").replace(/punct/g,Wa).getRegex(),Sk=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ek=Ce(af).replace("(?:-->|$)","-->").getRegex(),_k=Ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ek).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ok=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",wa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xy=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",wa).replace("ref",sf).getRegex(),Sy=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",sf).getRegex(),Ak=Ce("reflink|nolink(?!\\()","g").replace("reflink",xy).replace("nolink",Sy).getRegex(),nv=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cf={_backpedal:Eo,anyPunctuation:xk,autolink:Sk,blockSkip:gk,br:vy,code:ck,del:Eo,emStrongLDelim:vk,emStrongRDelimAst:yk,emStrongRDelimUnd:wk,escape:lk,link:Ok,nolink:Sy,punctuation:dk,reflink:xy,reflinkSearch:Ak,tag:_k,text:fk,url:Eo},Tk={...cf,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",wa).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wa).getRegex()},yc={...cf,emStrongRDelimAst:bk,emStrongLDelim:mk,url:Ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",nv).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",nv).getRegex()},Rk={...yc,br:Ce(vy).replace("{2,}","*").getRegex(),text:Ce(yc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Js={normal:uf,gfm:ak,pedantic:uk},lo={normal:cf,gfm:yc,breaks:Rk,pedantic:Tk},Pk={"&":"&","<":"<",">":">",'"':""","'":"'"},iv=e=>Pk[e];function Sr(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,iv)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,iv);return e}function ov(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function sv(e,t){var a;let r=e.replace(Rt.findPipe,(l,c,f)=>{let m=!1,v=c;for(;--v>=0&&f[v]==="\\";)m=!m;return m?"|":" |"}),i=r.split(Rt.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(Rt.slashPipe,"|");return i}function co(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function Ck(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function av(e,t,r,i,s){let a=t.href,l=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:l,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function kk(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
|
|
92
|
+
`).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=s.length?a.slice(s.length):a}).join(`
|
|
93
|
+
`)}var xa=class{constructor(t){me(this,"options");me(this,"rules");me(this,"lexer");this.options=t||Kn}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:co(i,`
|
|
94
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=kk(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=co(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:co(r[0],`
|
|
95
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=co(r[0],`
|
|
96
96
|
`).split(`
|
|
97
|
-
`),
|
|
98
|
-
`),
|
|
99
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
100
|
-
${
|
|
101
|
-
${
|
|
102
|
-
`+
|
|
103
|
-
`),
|
|
104
|
-
`+
|
|
105
|
-
`),
|
|
106
|
-
`);continue}}return{type:"blockquote",raw:
|
|
107
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
108
|
-
`,1)[0],
|
|
109
|
-
`,t=t.substring(
|
|
110
|
-
`,1)[0],
|
|
111
|
-
`+
|
|
112
|
-
`+
|
|
113
|
-
`,t=t.substring(
|
|
114
|
-
`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(
|
|
115
|
-
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:
|
|
116
|
-
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let
|
|
117
|
-
`:r.push(
|
|
97
|
+
`),s="",a="",l=[];for(;i.length>0;){let c=!1,f=[],m;for(m=0;m<i.length;m++)if(this.rules.other.blockquoteStart.test(i[m]))f.push(i[m]),c=!0;else if(!c)f.push(i[m]);else break;i=i.slice(m);let v=f.join(`
|
|
98
|
+
`),g=v.replace(this.rules.other.blockquoteSetextReplace,`
|
|
99
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
100
|
+
${v}`:v,a=a?`${a}
|
|
101
|
+
${g}`:g;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,l,!0),this.lexer.state.top=p,i.length===0)break;let b=l.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){let x=b,d=x.raw+`
|
|
102
|
+
`+i.join(`
|
|
103
|
+
`),w=this.blockquote(d);l[l.length-1]=w,s=s.substring(0,s.length-x.raw.length)+w.raw,a=a.substring(0,a.length-x.text.length)+w.text;break}else if((b==null?void 0:b.type)==="list"){let x=b,d=x.raw+`
|
|
104
|
+
`+i.join(`
|
|
105
|
+
`),w=this.list(d);l[l.length-1]=w,s=s.substring(0,s.length-b.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=d.substring(l.at(-1).raw.length).split(`
|
|
106
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:l,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let l=this.rules.other.listItemRegex(i),c=!1;for(;t;){let m=!1,v="",g="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;v=r[0],t=t.substring(v.length);let p=r[2].split(`
|
|
107
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),b=t.split(`
|
|
108
|
+
`,1)[0],x=!p.trim(),d=0;if(this.options.pedantic?(d=2,g=p.trimStart()):x?d=r[1].length+1:(d=r[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,g=p.slice(d),d+=r[1].length),x&&this.rules.other.blankLine.test(b)&&(v+=b+`
|
|
109
|
+
`,t=t.substring(b.length+1),m=!0),!m){let S=this.rules.other.nextBulletRegex(d),E=this.rules.other.hrRegex(d),R=this.rules.other.fencesBeginRegex(d),O=this.rules.other.headingBeginRegex(d),k=this.rules.other.htmlBeginRegex(d);for(;t;){let B=t.split(`
|
|
110
|
+
`,1)[0],M;if(b=B,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),M=b):M=b.replace(this.rules.other.tabCharGlobal," "),R.test(b)||O.test(b)||k.test(b)||S.test(b)||E.test(b))break;if(M.search(this.rules.other.nonSpaceChar)>=d||!b.trim())g+=`
|
|
111
|
+
`+M.slice(d);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(p)||O.test(p)||E.test(p))break;g+=`
|
|
112
|
+
`+b}!x&&!b.trim()&&(x=!0),v+=B+`
|
|
113
|
+
`,t=t.substring(B.length+1),p=M.slice(d)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(v)&&(c=!0));let w=null,h;this.options.gfm&&(w=this.rules.other.listIsTask.exec(g),w&&(h=w[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:v,task:!!w,checked:h,loose:!1,text:g,tokens:[]}),a.raw+=v}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let m=0;m<a.items.length;m++)if(this.lexer.state.top=!1,a.items[m].tokens=this.lexer.blockTokens(a.items[m].text,[]),!a.loose){let v=a.items[m].tokens.filter(p=>p.type==="space"),g=v.length>0&&v.some(p=>this.rules.other.anyLine.test(p.raw));a.loose=g}if(a.loose)for(let m=0;m<a.items.length;m++)a.items[m].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=sv(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
114
|
+
`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?l.align.push("right"):this.rules.other.tableAlignCenter.test(f)?l.align.push("center"):this.rules.other.tableAlignLeft.test(f)?l.align.push("left"):l.align.push(null);for(let f=0;f<i.length;f++)l.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:l.align[f]});for(let f of a)l.rows.push(sv(f,l.header.length).map((m,v)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:l.align[v]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
115
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=co(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=Ck(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],a=l[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),av(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return av(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,l,c,f=a,m=0,v=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,r=r.slice(-1*t.length+a);(s=v.exec(r))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(c=[...l].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){m+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+m);let g=[...s[0]][0].length,p=t.slice(0,a+s.index+g+c);if(Math.min(a,c)%2){let x=p.slice(1,-1);return{type:"em",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}let b=p.slice(2,-2);return{type:"strong",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let l;do l=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(l!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},dr=class bc{constructor(t){me(this,"tokens");me(this,"options");me(this,"state");me(this,"tokenizer");me(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Kn,this.options.tokenizer=this.options.tokenizer||new xa,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rt,block:Js.normal,inline:lo.normal};this.options.pedantic?(r.block=Js.pedantic,r.inline=lo.pedantic):this.options.gfm&&(r.block=Js.gfm,this.options.breaks?r.inline=lo.breaks:r.inline=lo.gfm),this.tokenizer.rules=r}static get rules(){return{block:Js,inline:lo}}static lex(t,r){return new bc(r).lex(t)}static lexInline(t,r){return new bc(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
|
|
116
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,l;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(m=>(c=m.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
|
|
117
|
+
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
118
118
|
`)?"":`
|
|
119
|
-
`)+
|
|
120
|
-
`+
|
|
119
|
+
`)+c.raw,m.text+=`
|
|
120
|
+
`+c.text,this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
121
121
|
`)?"":`
|
|
122
|
-
`)+
|
|
123
|
-
`+
|
|
122
|
+
`)+c.raw,m.text+=`
|
|
123
|
+
`+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((l=this.options.extensions)!=null&&l.startBlock){let m=1/0,v=t.slice(1),g;this.options.extensions.startBlock.forEach(p=>{g=p.call({lexer:this},v),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let m=r.at(-1);i&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
|
|
124
124
|
`)?"":`
|
|
125
|
-
`)+
|
|
126
|
-
`+
|
|
125
|
+
`)+c.raw,m.text+=`
|
|
126
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c),i=f.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
127
127
|
`)?"":`
|
|
128
|
-
`)+
|
|
129
|
-
`+
|
|
130
|
-
`;return
|
|
131
|
-
`:"<pre><code>"+(
|
|
128
|
+
`)+c.raw,m.text+=`
|
|
129
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,f,m,v,g;let i=t,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)p.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((f=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:f.call({lexer:this},i))??i;let a=!1,l="";for(;t;){a||(l=""),a=!1;let p;if((v=(m=this.options.extensions)==null?void 0:m.inline)!=null&&v.some(x=>(p=x.call({lexer:this},t,r))?(t=t.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=r.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(p=this.tokenizer.emStrong(t,i,l)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),r.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),r.push(p);continue}let b=t;if((g=this.options.extensions)!=null&&g.startInline){let x=1/0,d=t.slice(1),w;this.options.extensions.startInline.forEach(h=>{w=h.call({lexer:this},d),typeof w=="number"&&w>=0&&(x=Math.min(x,w))}),x<1/0&&x>=0&&(b=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(b)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),a=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},Sa=class{constructor(t){me(this,"options");me(this,"parser");this.options=t||Kn}space(t){return""}code({text:t,lang:r,escaped:i}){var l;let s=(l=(r||"").match(Rt.notSpaceStart))==null?void 0:l[0],a=t.replace(Rt.endingNewline,"")+`
|
|
130
|
+
`;return s?'<pre><code class="language-'+Sr(s)+'">'+(i?a:Sr(a,!0))+`</code></pre>
|
|
131
|
+
`:"<pre><code>"+(i?a:Sr(a,!0))+`</code></pre>
|
|
132
132
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
133
133
|
${this.parser.parse(t)}</blockquote>
|
|
134
134
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
135
135
|
`}hr(t){return`<hr>
|
|
136
|
-
`}list(t){let r=t.ordered,
|
|
137
|
-
`+
|
|
138
|
-
`}listitem(t){var
|
|
136
|
+
`}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];s+=this.listitem(f)}let a=r?"ol":"ul",l=r&&i!==1?' start="'+i+'"':"";return"<"+a+l+`>
|
|
137
|
+
`+s+"</"+a+`>
|
|
138
|
+
`}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+Sr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
139
139
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
140
|
-
`}table(t){let r="",
|
|
140
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let l=t.rows[a];i="";for(let c=0;c<l.length;c++)i+=this.tablecell(l[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
141
141
|
<thead>
|
|
142
142
|
`+r+`</thead>
|
|
143
|
-
`+
|
|
143
|
+
`+s+`</table>
|
|
144
144
|
`}tablerow({text:t}){return`<tr>
|
|
145
145
|
${t}</tr>
|
|
146
|
-
`}tablecell(t){let r=this.parser.parseInline(t.tokens),
|
|
147
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
148
|
-
`+this.renderer.text(
|
|
149
|
-
Please report this to https://github.com/markedjs/marked.`,t){let
|
|
146
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
147
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Sr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),a=ov(t);if(a===null)return s;t=a;let l='<a href="'+t+'"';return r&&(l+=' title="'+Sr(r)+'"'),l+=">"+s+"</a>",l}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=ov(t);if(a===null)return Sr(i);t=a;let l=`<img src="${t}" alt="${i}"`;return r&&(l+=` title="${Sr(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Sr(t.text)}},ff=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},pr=class wc{constructor(t){me(this,"options");me(this,"renderer");me(this,"textRenderer");this.options=t||Kn,this.options.renderer=this.options.renderer||new Sa,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ff}static parse(t,r){return new wc(r).parse(t)}static parseInline(t,r){return new wc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=c,v=this.options.extensions.renderers[m.type].call({parser:this},m);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){i+=v||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let m=f,v=this.renderer.text(m);for(;l+1<t.length&&t[l+1].type==="text";)m=t[++l],v+=`
|
|
148
|
+
`+this.renderer.text(m);r?i+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):i+=v;continue}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=m||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}},na,ho=(na=class{constructor(t){me(this,"options");me(this,"block");this.options=t||Kn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?dr.lex:dr.lexInline}provideParser(){return this.block?pr.parse:pr.parseInline}},me(na,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),me(na,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),na),Ey=class{constructor(...t){me(this,"defaults",rf());me(this,"options",this.setOptions);me(this,"parse",this.parseMarkdown(!0));me(this,"parseInline",this.parseMarkdown(!1));me(this,"Parser",pr);me(this,"Renderer",Sa);me(this,"TextRenderer",ff);me(this,"Lexer",dr);me(this,"Tokenizer",xa);me(this,"Hooks",ho);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let l of t)switch(i=i.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let m of f)i=i.concat(this.walkTokens(m.tokens,r));break}case"list":{let c=l;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=l;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let m=c[f].flat(1/0);i=i.concat(this.walkTokens(m,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let l=r.renderers[a.name];l?r.renderers[a.name]=function(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=l.apply(this,c)),f}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[a.level];l?l.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Sa(this.defaults);for(let l in i.renderer){if(!(l in a))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,f=i.renderer[c],m=a[c];a[c]=(...v)=>{let g=f.apply(a,v);return g===!1&&(g=m.apply(a,v)),g||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new xa(this.defaults);for(let l in i.tokenizer){if(!(l in a))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,f=i.tokenizer[c],m=a[c];a[c]=(...v)=>{let g=f.apply(a,v);return g===!1&&(g=m.apply(a,v)),g}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new ho;for(let l in i.hooks){if(!(l in a))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,f=i.hooks[c],m=a[c];ho.passThroughHooks.has(l)?a[c]=v=>{if(this.defaults.async&&ho.passThroughHooksRespectAsync.has(l))return(async()=>{let p=await f.call(a,v);return m.call(a,p)})();let g=f.call(a,v);return m.call(a,g)}:a[c]=(...v)=>{if(this.defaults.async)return(async()=>{let p=await f.apply(a,v);return p===!1&&(p=await m.apply(a,v)),p})();let g=f.apply(a,v);return g===!1&&(g=m.apply(a,v)),g}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,l=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(l.call(this,c)),a&&(f=f.concat(a.call(this,c))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return dr.lex(t,r??this.defaults)}parser(t,r){return pr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},l=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?dr.lex:dr.lexInline)(c,a),m=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(m,a.walkTokens));let v=await(a.hooks?await a.hooks.provideParser():t?pr.parse:pr.parseInline)(m,a);return a.hooks?await a.hooks.postprocess(v):v})().catch(l);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?dr.lex:dr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?pr.parse:pr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return l(c)}}}onError(t,r){return i=>{if(i.message+=`
|
|
149
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Sr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Un=new Ey;function De(e,t){return Un.parse(e,t)}De.options=De.setOptions=function(e){return Un.setOptions(e),De.defaults=Un.defaults,dy(De.defaults),De};De.getDefaults=rf;De.defaults=Kn;De.use=function(...e){return Un.use(...e),De.defaults=Un.defaults,dy(De.defaults),De};De.walkTokens=function(e,t){return Un.walkTokens(e,t)};De.parseInline=Un.parseInline;De.Parser=pr;De.parser=pr.parse;De.Renderer=Sa;De.TextRenderer=ff;De.Lexer=dr;De.lexer=dr.lex;De.Tokenizer=xa;De.Hooks=ho;De.parse=De;De.options;De.setOptions;De.use;De.walkTokens;De.parseInline;pr.parse;dr.lex;const $k={"&":"&","<":"<",">":">",""":'"',"'":"'"},_y=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,Ik=RegExp(_y.source),uv=(e="")=>Ik.test(e)?e.replace(_y,t=>$k[t]||"'"):e,lv=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var Lk=class{constructor(e){me(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const l=[];return a.task&&l.push(this.renderer.checkbox(a.checked??!1)),l.push(this.parse(a.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(s,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const s=i.header.map((m,v)=>this.renderer.tableCell(this.parseInline(m.tokens),{header:!0,align:r.align[v]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),l=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(m=>{this.renderer.elIdList.push(0);const v=m.map((g,p)=>this.renderer.tableCell(this.parseInline(g.tokens),{header:!1,align:r.align[p]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(v)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([l,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(uv(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(uv(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},Mk=Lk,cn,ze,et,xc,jv,Fk=(jv=class{constructor(e={}){xt(this,ze);me(this,"elIdList",[]);xt(this,cn);const{renderer:t}=e;Ye(this,cn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const s=r,a=i;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...l){return $e(this,ze,xc).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,ze,et).call(this,`h${t}`,e)}paragraph(e){return $e(this,ze,et).call(this,"p",e)}link(e,t){const r=lv(e,re(this,cn).baseURL),i=re(this,cn).openLinksInNewTab?"_blank":null;return $e(this,ze,et).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=lv(e,re(this,cn).baseURL);return $e(this,ze,et).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,cn).langPrefix}${t}`:null;return $e(this,ze,et).call(this,"code",e,{className:r})}code(e,t){return $e(this,ze,et).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,ze,et).call(this,"blockquote",e)}list(e,t,r){return $e(this,ze,et).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,ze,et).call(this,"li",e)}checkbox(e){return $e(this,ze,et).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,ze,et).call(this,"table",e)}tableHeader(e){return $e(this,ze,et).call(this,"thead",e)}tableBody(e){return $e(this,ze,et).call(this,"tbody",e)}tableRow(e){return $e(this,ze,et).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,ze,et).call(this,r,e,{align:t.align})}strong(e){return $e(this,ze,et).call(this,"strong",e)}em(e){return $e(this,ze,et).call(this,"em",e)}del(e){return $e(this,ze,et).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,ze,et).call(this,"hr")}br(){return $e(this,ze,et).call(this,"br")}},cn=new WeakMap,ze=new WeakSet,et=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,ze,xc).call(this),W.createElement(e,{...r,...i},t)},xc=function(){this.elIdList[this.elIdList.length-1]+=1},jv),Dk=Fk;const Nk=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},jk={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},zk=new Ey,Wk=e=>{Nk(e);const t={...jk,...e},r=t.instance??zk,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,i):r.lexer(s,i),l={renderer:new Dk({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new Mk(l),f=t.isInline?c.parseInline(a):c.parse(a);return W.createElement(W.Fragment,null,f)};var Bk=Wk,Uk=Bk;const Hk=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[l,c]=W.useState(null),f=W.useRef(null),[m,v]=W.useState(null),[g,p]=W.useState(!1),{styles:b,attributes:x}=Jv(l,m,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),d=W.Children.map(e,w=>W.isValidElement(w)?W.cloneElement(w,{ref:c,onMouseEnter:()=>p(!0),onMouseLeave:()=>{f.current=setTimeout(()=>p(!1),50)}}):w);return s?D.jsx(D.Fragment,{children:d}):D.jsxs(D.Fragment,{children:[d,g&&t&&Fo.createPortal(D.jsx("div",{ref:v,style:b.popper,...x.popper,className:We("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),p(!0)},onMouseLeave:()=>p(!1),children:D.jsx(Uk,{openLinksInNewTab:!0,children:t})}),a||document.body)]})},qk=sc.keyframes`
|
|
150
150
|
to {
|
|
151
151
|
fill: url(#d);
|
|
152
152
|
stroke-dashoffset: 0;
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,Oy=va.svg`
|
|
155
155
|
& .e {
|
|
156
156
|
fill: url(#d);
|
|
157
157
|
}
|
|
@@ -162,7 +162,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error
|
|
|
162
162
|
fill: transparent;
|
|
163
163
|
stroke-dasharray: 700;
|
|
164
164
|
stroke-dashoffset: 700;
|
|
165
|
-
animation: ${
|
|
165
|
+
animation: ${qk} 1.5s ease-in-out infinite alternate-reverse;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
& #circle {
|
|
@@ -172,85 +172,37 @@ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error
|
|
|
172
172
|
stroke-dasharray: 700;
|
|
173
173
|
stroke-dashoffset: 700;
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,Zk=({message:e,version:t})=>D.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:D.jsxs("div",{className:"flex flex-col text-center",children:[D.jsx("div",{className:"relative mr-4 self-center",children:D.jsx("div",{className:"flex items-center justify-center rounded",children:D.jsxs(Oy,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[D.jsx("defs",{children:D.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[D.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:D.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),D.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:D.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),D.jsx("g",{id:"a"}),D.jsx("g",{id:"b",children:D.jsx("g",{id:"c",children:D.jsxs("g",{children:[D.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),D.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),D.jsxs("div",{children:[D.jsx("span",{className:"text-xs text-grey-200",children:t}),D.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var go={exports:{}};/**
|
|
176
176
|
* @license
|
|
177
177
|
* Lodash <https://lodash.com/>
|
|
178
178
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
179
179
|
* Released under MIT license <https://lodash.com/license>
|
|
180
180
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
181
181
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
182
|
-
*/var QM=sa.exports,fb;function eD(){return fb||(fb=1,(function(e,t){(function(){var r,n="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,S=1,v=2,b=1,m=2,w=4,x=8,k=16,E=32,R=64,F=128,A=256,P=512,B=30,$="...",M=800,U=16,H=1,I=2,K=3,X=1/0,Z=9007199254740991,ve=17976931348623157e292,z=NaN,q=4294967295,re=q-1,ee=q>>>1,J=[["ary",F],["bind",b],["bindKey",m],["curry",x],["curryRight",k],["flip",P],["partial",E],["partialRight",R],["rearg",A]],se="[object Arguments]",ae="[object Array]",oe="[object AsyncFunction]",ce="[object Boolean]",pe="[object Date]",de="[object DOMException]",xe="[object Error]",Y="[object Function]",ze="[object GeneratorFunction]",ge="[object Map]",At="[object Number]",Qr="[object Null]",jt="[object Object]",Wa="[object Promise]",bu="[object Proxy]",Jt="[object RegExp]",Nt="[object Set]",xn="[object String]",Yn="[object Symbol]",go="[object Undefined]",Sn="[object WeakMap]",Ba="[object WeakSet]",_n="[object ArrayBuffer]",en="[object DataView]",yu="[object Float32Array]",wu="[object Float64Array]",xu="[object Int8Array]",Su="[object Int16Array]",_u="[object Int32Array]",Eu="[object Uint8Array]",ku="[object Uint8ClampedArray]",Ou="[object Uint16Array]",Au="[object Uint32Array]",H1=/\b__p \+= '';/g,W1=/\b(__p \+=) '' \+/g,B1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ip=/&(?:amp|lt|gt|quot|#39);/g,Np=/[&<>"']/g,U1=RegExp(Ip.source),V1=RegExp(Np.source),q1=/<%-([\s\S]+?)%>/g,G1=/<%([\s\S]+?)%>/g,Mp=/<%=([\s\S]+?)%>/g,Z1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K1=/^\w*$/,Y1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tu=/[\\^$.*+?()[\]{}|]/g,X1=RegExp(Tu.source),Ru=/^\s+/,J1=/\s/,Q1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eS=/\{\n\/\* \[wrapped with (.+)\] \*/,tS=/,? & /,rS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nS=/[()=,{}\[\]\/\s]/,iS=/\\(\\)?/g,oS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dp=/\w*$/,aS=/^[-+]0x[0-9a-f]+$/i,sS=/^0b[01]+$/i,lS=/^\[object .+?Constructor\]$/,uS=/^0o[0-7]+$/i,cS=/^(?:0|[1-9]\d*)$/,fS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ua=/($^)/,dS=/['\n\r\u2028\u2029\\]/g,Va="\\ud800-\\udfff",pS="\\u0300-\\u036f",hS="\\ufe20-\\ufe2f",gS="\\u20d0-\\u20ff",$p=pS+hS+gS,Lp="\\u2700-\\u27bf",zp="a-z\\xdf-\\xf6\\xf8-\\xff",vS="\\xac\\xb1\\xd7\\xf7",mS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bS="\\u2000-\\u206f",yS=" \\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",jp="A-Z\\xc0-\\xd6\\xd8-\\xde",Fp="\\ufe0e\\ufe0f",Hp=vS+mS+bS+yS,Cu="['’]",wS="["+Va+"]",Wp="["+Hp+"]",qa="["+$p+"]",Bp="\\d+",xS="["+Lp+"]",Up="["+zp+"]",Vp="[^"+Va+Hp+Bp+Lp+zp+jp+"]",Pu="\\ud83c[\\udffb-\\udfff]",SS="(?:"+qa+"|"+Pu+")",qp="[^"+Va+"]",Iu="(?:\\ud83c[\\udde6-\\uddff]){2}",Nu="[\\ud800-\\udbff][\\udc00-\\udfff]",Ai="["+jp+"]",Gp="\\u200d",Zp="(?:"+Up+"|"+Vp+")",_S="(?:"+Ai+"|"+Vp+")",Kp="(?:"+Cu+"(?:d|ll|m|re|s|t|ve))?",Yp="(?:"+Cu+"(?:D|LL|M|RE|S|T|VE))?",Xp=SS+"?",Jp="["+Fp+"]?",ES="(?:"+Gp+"(?:"+[qp,Iu,Nu].join("|")+")"+Jp+Xp+")*",kS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qp=Jp+Xp+ES,AS="(?:"+[xS,Iu,Nu].join("|")+")"+Qp,TS="(?:"+[qp+qa+"?",qa,Iu,Nu,wS].join("|")+")",RS=RegExp(Cu,"g"),CS=RegExp(qa,"g"),Mu=RegExp(Pu+"(?="+Pu+")|"+TS+Qp,"g"),PS=RegExp([Ai+"?"+Up+"+"+Kp+"(?="+[Wp,Ai,"$"].join("|")+")",_S+"+"+Yp+"(?="+[Wp,Ai+Zp,"$"].join("|")+")",Ai+"?"+Zp+"+"+Kp,Ai+"+"+Yp,OS,kS,Bp,AS].join("|"),"g"),IS=RegExp("["+Gp+Va+$p+Fp+"]"),NS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,MS=["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"],DS=-1,rt={};rt[yu]=rt[wu]=rt[xu]=rt[Su]=rt[_u]=rt[Eu]=rt[ku]=rt[Ou]=rt[Au]=!0,rt[se]=rt[ae]=rt[_n]=rt[ce]=rt[en]=rt[pe]=rt[xe]=rt[Y]=rt[ge]=rt[At]=rt[jt]=rt[Jt]=rt[Nt]=rt[xn]=rt[Sn]=!1;var Qe={};Qe[se]=Qe[ae]=Qe[_n]=Qe[en]=Qe[ce]=Qe[pe]=Qe[yu]=Qe[wu]=Qe[xu]=Qe[Su]=Qe[_u]=Qe[ge]=Qe[At]=Qe[jt]=Qe[Jt]=Qe[Nt]=Qe[xn]=Qe[Yn]=Qe[Eu]=Qe[ku]=Qe[Ou]=Qe[Au]=!0,Qe[xe]=Qe[Y]=Qe[Sn]=!1;var $S={À:"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"},LS={"&":"&","<":"<",">":">",'"':""","'":"'"},zS={"&":"&","<":"<",">":">",""":'"',"'":"'"},jS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},FS=parseFloat,HS=parseInt,eh=typeof Ns=="object"&&Ns&&Ns.Object===Object&&Ns,WS=typeof self=="object"&&self&&self.Object===Object&&self,Tt=eh||WS||Function("return this")(),Du=t&&!t.nodeType&&t,Xn=Du&&!0&&e&&!e.nodeType&&e,th=Xn&&Xn.exports===Du,$u=th&&eh.process,fr=(function(){try{var V=Xn&&Xn.require&&Xn.require("util").types;return V||$u&&$u.binding&&$u.binding("util")}catch{}})(),rh=fr&&fr.isArrayBuffer,nh=fr&&fr.isDate,ih=fr&&fr.isMap,oh=fr&&fr.isRegExp,ah=fr&&fr.isSet,sh=fr&&fr.isTypedArray;function Qt(V,te,Q){switch(Q.length){case 0:return V.call(te);case 1:return V.call(te,Q[0]);case 2:return V.call(te,Q[0],Q[1]);case 3:return V.call(te,Q[0],Q[1],Q[2])}return V.apply(te,Q)}function BS(V,te,Q,me){for(var Oe=-1,$e=V==null?0:V.length;++Oe<$e;){var wt=V[Oe];te(me,wt,Q(wt),V)}return me}function dr(V,te){for(var Q=-1,me=V==null?0:V.length;++Q<me&&te(V[Q],Q,V)!==!1;);return V}function US(V,te){for(var Q=V==null?0:V.length;Q--&&te(V[Q],Q,V)!==!1;);return V}function lh(V,te){for(var Q=-1,me=V==null?0:V.length;++Q<me;)if(!te(V[Q],Q,V))return!1;return!0}function En(V,te){for(var Q=-1,me=V==null?0:V.length,Oe=0,$e=[];++Q<me;){var wt=V[Q];te(wt,Q,V)&&($e[Oe++]=wt)}return $e}function Ga(V,te){var Q=V==null?0:V.length;return!!Q&&Ti(V,te,0)>-1}function Lu(V,te,Q){for(var me=-1,Oe=V==null?0:V.length;++me<Oe;)if(Q(te,V[me]))return!0;return!1}function it(V,te){for(var Q=-1,me=V==null?0:V.length,Oe=Array(me);++Q<me;)Oe[Q]=te(V[Q],Q,V);return Oe}function kn(V,te){for(var Q=-1,me=te.length,Oe=V.length;++Q<me;)V[Oe+Q]=te[Q];return V}function zu(V,te,Q,me){var Oe=-1,$e=V==null?0:V.length;for(me&&$e&&(Q=V[++Oe]);++Oe<$e;)Q=te(Q,V[Oe],Oe,V);return Q}function VS(V,te,Q,me){var Oe=V==null?0:V.length;for(me&&Oe&&(Q=V[--Oe]);Oe--;)Q=te(Q,V[Oe],Oe,V);return Q}function ju(V,te){for(var Q=-1,me=V==null?0:V.length;++Q<me;)if(te(V[Q],Q,V))return!0;return!1}var qS=Fu("length");function GS(V){return V.split("")}function ZS(V){return V.match(rS)||[]}function uh(V,te,Q){var me;return Q(V,function(Oe,$e,wt){if(te(Oe,$e,wt))return me=$e,!1}),me}function Za(V,te,Q,me){for(var Oe=V.length,$e=Q+(me?1:-1);me?$e--:++$e<Oe;)if(te(V[$e],$e,V))return $e;return-1}function Ti(V,te,Q){return te===te?a_(V,te,Q):Za(V,ch,Q)}function KS(V,te,Q,me){for(var Oe=Q-1,$e=V.length;++Oe<$e;)if(me(V[Oe],te))return Oe;return-1}function ch(V){return V!==V}function fh(V,te){var Q=V==null?0:V.length;return Q?Wu(V,te)/Q:z}function Fu(V){return function(te){return te==null?r:te[V]}}function Hu(V){return function(te){return V==null?r:V[te]}}function dh(V,te,Q,me,Oe){return Oe(V,function($e,wt,Je){Q=me?(me=!1,$e):te(Q,$e,wt,Je)}),Q}function YS(V,te){var Q=V.length;for(V.sort(te);Q--;)V[Q]=V[Q].value;return V}function Wu(V,te){for(var Q,me=-1,Oe=V.length;++me<Oe;){var $e=te(V[me]);$e!==r&&(Q=Q===r?$e:Q+$e)}return Q}function Bu(V,te){for(var Q=-1,me=Array(V);++Q<V;)me[Q]=te(Q);return me}function XS(V,te){return it(te,function(Q){return[Q,V[Q]]})}function ph(V){return V&&V.slice(0,mh(V)+1).replace(Ru,"")}function er(V){return function(te){return V(te)}}function Uu(V,te){return it(te,function(Q){return V[Q]})}function vo(V,te){return V.has(te)}function hh(V,te){for(var Q=-1,me=V.length;++Q<me&&Ti(te,V[Q],0)>-1;);return Q}function gh(V,te){for(var Q=V.length;Q--&&Ti(te,V[Q],0)>-1;);return Q}function JS(V,te){for(var Q=V.length,me=0;Q--;)V[Q]===te&&++me;return me}var QS=Hu($S),e_=Hu(LS);function t_(V){return"\\"+jS[V]}function r_(V,te){return V==null?r:V[te]}function Ri(V){return IS.test(V)}function n_(V){return NS.test(V)}function i_(V){for(var te,Q=[];!(te=V.next()).done;)Q.push(te.value);return Q}function Vu(V){var te=-1,Q=Array(V.size);return V.forEach(function(me,Oe){Q[++te]=[Oe,me]}),Q}function vh(V,te){return function(Q){return V(te(Q))}}function On(V,te){for(var Q=-1,me=V.length,Oe=0,$e=[];++Q<me;){var wt=V[Q];(wt===te||wt===p)&&(V[Q]=p,$e[Oe++]=Q)}return $e}function Ka(V){var te=-1,Q=Array(V.size);return V.forEach(function(me){Q[++te]=me}),Q}function o_(V){var te=-1,Q=Array(V.size);return V.forEach(function(me){Q[++te]=[me,me]}),Q}function a_(V,te,Q){for(var me=Q-1,Oe=V.length;++me<Oe;)if(V[me]===te)return me;return-1}function s_(V,te,Q){for(var me=Q+1;me--;)if(V[me]===te)return me;return me}function Ci(V){return Ri(V)?u_(V):qS(V)}function Ar(V){return Ri(V)?c_(V):GS(V)}function mh(V){for(var te=V.length;te--&&J1.test(V.charAt(te)););return te}var l_=Hu(zS);function u_(V){for(var te=Mu.lastIndex=0;Mu.test(V);)++te;return te}function c_(V){return V.match(Mu)||[]}function f_(V){return V.match(PS)||[]}var d_=(function V(te){te=te==null?Tt:Pi.defaults(Tt.Object(),te,Pi.pick(Tt,MS));var Q=te.Array,me=te.Date,Oe=te.Error,$e=te.Function,wt=te.Math,Je=te.Object,qu=te.RegExp,p_=te.String,pr=te.TypeError,Ya=Q.prototype,h_=$e.prototype,Ii=Je.prototype,Xa=te["__core-js_shared__"],Ja=h_.toString,Ge=Ii.hasOwnProperty,g_=0,bh=(function(){var i=/[^.]+$/.exec(Xa&&Xa.keys&&Xa.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),Qa=Ii.toString,v_=Ja.call(Je),m_=Tt._,b_=qu("^"+Ja.call(Ge).replace(Tu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),es=th?te.Buffer:r,An=te.Symbol,ts=te.Uint8Array,yh=es?es.allocUnsafe:r,rs=vh(Je.getPrototypeOf,Je),wh=Je.create,xh=Ii.propertyIsEnumerable,ns=Ya.splice,Sh=An?An.isConcatSpreadable:r,mo=An?An.iterator:r,Jn=An?An.toStringTag:r,is=(function(){try{var i=ni(Je,"defineProperty");return i({},"",{}),i}catch{}})(),y_=te.clearTimeout!==Tt.clearTimeout&&te.clearTimeout,w_=me&&me.now!==Tt.Date.now&&me.now,x_=te.setTimeout!==Tt.setTimeout&&te.setTimeout,os=wt.ceil,as=wt.floor,Gu=Je.getOwnPropertySymbols,S_=es?es.isBuffer:r,_h=te.isFinite,__=Ya.join,E_=vh(Je.keys,Je),xt=wt.max,Mt=wt.min,k_=me.now,O_=te.parseInt,Eh=wt.random,A_=Ya.reverse,Zu=ni(te,"DataView"),bo=ni(te,"Map"),Ku=ni(te,"Promise"),Ni=ni(te,"Set"),yo=ni(te,"WeakMap"),wo=ni(Je,"create"),ss=yo&&new yo,Mi={},T_=ii(Zu),R_=ii(bo),C_=ii(Ku),P_=ii(Ni),I_=ii(yo),ls=An?An.prototype:r,xo=ls?ls.valueOf:r,kh=ls?ls.toString:r;function T(i){if(ct(i)&&!Ae(i)&&!(i instanceof Me)){if(i instanceof hr)return i;if(Ge.call(i,"__wrapped__"))return Og(i)}return new hr(i)}var Di=(function(){function i(){}return function(s){if(!st(s))return{};if(wh)return wh(s);i.prototype=s;var f=new i;return i.prototype=r,f}})();function us(){}function hr(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=r}T.templateSettings={escape:q1,evaluate:G1,interpolate:Mp,variable:"",imports:{_:T}},T.prototype=us.prototype,T.prototype.constructor=T,hr.prototype=Di(us.prototype),hr.prototype.constructor=hr;function Me(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function N_(){var i=new Me(this.__wrapped__);return i.__actions__=Vt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Vt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Vt(this.__views__),i}function M_(){if(this.__filtered__){var i=new Me(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function D_(){var i=this.__wrapped__.value(),s=this.__dir__,f=Ae(i),_=s<0,O=f?i.length:0,C=GE(0,O,this.__views__),D=C.start,W=C.end,G=W-D,ne=_?W:D-1,ie=this.__iteratees__,le=ie.length,he=0,we=Mt(G,this.__takeCount__);if(!f||!_&&O==G&&we==G)return Kh(i,this.__actions__);var _e=[];e:for(;G--&&he<we;){ne+=s;for(var Ce=-1,Ee=i[ne];++Ce<le;){var Ne=ie[Ce],De=Ne.iteratee,nr=Ne.type,Wt=De(Ee);if(nr==I)Ee=Wt;else if(!Wt){if(nr==H)continue e;break e}}_e[he++]=Ee}return _e}Me.prototype=Di(us.prototype),Me.prototype.constructor=Me;function Qn(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function $_(){this.__data__=wo?wo(null):{},this.size=0}function L_(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function z_(i){var s=this.__data__;if(wo){var f=s[i];return f===c?r:f}return Ge.call(s,i)?s[i]:r}function j_(i){var s=this.__data__;return wo?s[i]!==r:Ge.call(s,i)}function F_(i,s){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=wo&&s===r?c:s,this}Qn.prototype.clear=$_,Qn.prototype.delete=L_,Qn.prototype.get=z_,Qn.prototype.has=j_,Qn.prototype.set=F_;function tn(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function H_(){this.__data__=[],this.size=0}function W_(i){var s=this.__data__,f=cs(s,i);if(f<0)return!1;var _=s.length-1;return f==_?s.pop():ns.call(s,f,1),--this.size,!0}function B_(i){var s=this.__data__,f=cs(s,i);return f<0?r:s[f][1]}function U_(i){return cs(this.__data__,i)>-1}function V_(i,s){var f=this.__data__,_=cs(f,i);return _<0?(++this.size,f.push([i,s])):f[_][1]=s,this}tn.prototype.clear=H_,tn.prototype.delete=W_,tn.prototype.get=B_,tn.prototype.has=U_,tn.prototype.set=V_;function rn(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function q_(){this.size=0,this.__data__={hash:new Qn,map:new(bo||tn),string:new Qn}}function G_(i){var s=Ss(this,i).delete(i);return this.size-=s?1:0,s}function Z_(i){return Ss(this,i).get(i)}function K_(i){return Ss(this,i).has(i)}function Y_(i,s){var f=Ss(this,i),_=f.size;return f.set(i,s),this.size+=f.size==_?0:1,this}rn.prototype.clear=q_,rn.prototype.delete=G_,rn.prototype.get=Z_,rn.prototype.has=K_,rn.prototype.set=Y_;function ei(i){var s=-1,f=i==null?0:i.length;for(this.__data__=new rn;++s<f;)this.add(i[s])}function X_(i){return this.__data__.set(i,c),this}function J_(i){return this.__data__.has(i)}ei.prototype.add=ei.prototype.push=X_,ei.prototype.has=J_;function Tr(i){var s=this.__data__=new tn(i);this.size=s.size}function Q_(){this.__data__=new tn,this.size=0}function eE(i){var s=this.__data__,f=s.delete(i);return this.size=s.size,f}function tE(i){return this.__data__.get(i)}function rE(i){return this.__data__.has(i)}function nE(i,s){var f=this.__data__;if(f instanceof tn){var _=f.__data__;if(!bo||_.length<o-1)return _.push([i,s]),this.size=++f.size,this;f=this.__data__=new rn(_)}return f.set(i,s),this.size=f.size,this}Tr.prototype.clear=Q_,Tr.prototype.delete=eE,Tr.prototype.get=tE,Tr.prototype.has=rE,Tr.prototype.set=nE;function Oh(i,s){var f=Ae(i),_=!f&&oi(i),O=!f&&!_&&In(i),C=!f&&!_&&!O&&ji(i),D=f||_||O||C,W=D?Bu(i.length,p_):[],G=W.length;for(var ne in i)(s||Ge.call(i,ne))&&!(D&&(ne=="length"||O&&(ne=="offset"||ne=="parent")||C&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||sn(ne,G)))&&W.push(ne);return W}function Ah(i){var s=i.length;return s?i[ac(0,s-1)]:r}function iE(i,s){return _s(Vt(i),ti(s,0,i.length))}function oE(i){return _s(Vt(i))}function Yu(i,s,f){(f!==r&&!Rr(i[s],f)||f===r&&!(s in i))&&nn(i,s,f)}function So(i,s,f){var _=i[s];(!(Ge.call(i,s)&&Rr(_,f))||f===r&&!(s in i))&&nn(i,s,f)}function cs(i,s){for(var f=i.length;f--;)if(Rr(i[f][0],s))return f;return-1}function aE(i,s,f,_){return Tn(i,function(O,C,D){s(_,O,f(O),D)}),_}function Th(i,s){return i&&Lr(s,Et(s),i)}function sE(i,s){return i&&Lr(s,Gt(s),i)}function nn(i,s,f){s=="__proto__"&&is?is(i,s,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[s]=f}function Xu(i,s){for(var f=-1,_=s.length,O=Q(_),C=i==null;++f<_;)O[f]=C?r:Pc(i,s[f]);return O}function ti(i,s,f){return i===i&&(f!==r&&(i=i<=f?i:f),s!==r&&(i=i>=s?i:s)),i}function gr(i,s,f,_,O,C){var D,W=s&h,G=s&g,ne=s&y;if(f&&(D=O?f(i,_,O,C):f(i)),D!==r)return D;if(!st(i))return i;var ie=Ae(i);if(ie){if(D=KE(i),!W)return Vt(i,D)}else{var le=Dt(i),he=le==Y||le==ze;if(In(i))return Jh(i,W);if(le==jt||le==se||he&&!O){if(D=G||he?{}:mg(i),!W)return G?zE(i,sE(D,i)):LE(i,Th(D,i))}else{if(!Qe[le])return O?i:{};D=YE(i,le,W)}}C||(C=new Tr);var we=C.get(i);if(we)return we;C.set(i,D),qg(i)?i.forEach(function(Ee){D.add(gr(Ee,s,f,Ee,i,C))}):Ug(i)&&i.forEach(function(Ee,Ne){D.set(Ne,gr(Ee,s,f,Ne,i,C))});var _e=ne?G?mc:vc:G?Gt:Et,Ce=ie?r:_e(i);return dr(Ce||i,function(Ee,Ne){Ce&&(Ne=Ee,Ee=i[Ne]),So(D,Ne,gr(Ee,s,f,Ne,i,C))}),D}function lE(i){var s=Et(i);return function(f){return Rh(f,i,s)}}function Rh(i,s,f){var _=f.length;if(i==null)return!_;for(i=Je(i);_--;){var O=f[_],C=s[O],D=i[O];if(D===r&&!(O in i)||!C(D))return!1}return!0}function Ch(i,s,f){if(typeof i!="function")throw new pr(l);return Ro(function(){i.apply(r,f)},s)}function _o(i,s,f,_){var O=-1,C=Ga,D=!0,W=i.length,G=[],ne=s.length;if(!W)return G;f&&(s=it(s,er(f))),_?(C=Lu,D=!1):s.length>=o&&(C=vo,D=!1,s=new ei(s));e:for(;++O<W;){var ie=i[O],le=f==null?ie:f(ie);if(ie=_||ie!==0?ie:0,D&&le===le){for(var he=ne;he--;)if(s[he]===le)continue e;G.push(ie)}else C(s,le,_)||G.push(ie)}return G}var Tn=ng($r),Ph=ng(Qu,!0);function uE(i,s){var f=!0;return Tn(i,function(_,O,C){return f=!!s(_,O,C),f}),f}function fs(i,s,f){for(var _=-1,O=i.length;++_<O;){var C=i[_],D=s(C);if(D!=null&&(W===r?D===D&&!rr(D):f(D,W)))var W=D,G=C}return G}function cE(i,s,f,_){var O=i.length;for(f=Re(f),f<0&&(f=-f>O?0:O+f),_=_===r||_>O?O:Re(_),_<0&&(_+=O),_=f>_?0:Zg(_);f<_;)i[f++]=s;return i}function Ih(i,s){var f=[];return Tn(i,function(_,O,C){s(_,O,C)&&f.push(_)}),f}function Rt(i,s,f,_,O){var C=-1,D=i.length;for(f||(f=JE),O||(O=[]);++C<D;){var W=i[C];s>0&&f(W)?s>1?Rt(W,s-1,f,_,O):kn(O,W):_||(O[O.length]=W)}return O}var Ju=ig(),Nh=ig(!0);function $r(i,s){return i&&Ju(i,s,Et)}function Qu(i,s){return i&&Nh(i,s,Et)}function ds(i,s){return En(s,function(f){return ln(i[f])})}function ri(i,s){s=Cn(s,i);for(var f=0,_=s.length;i!=null&&f<_;)i=i[zr(s[f++])];return f&&f==_?i:r}function Mh(i,s,f){var _=s(i);return Ae(i)?_:kn(_,f(i))}function Ft(i){return i==null?i===r?go:Qr:Jn&&Jn in Je(i)?qE(i):ok(i)}function ec(i,s){return i>s}function fE(i,s){return i!=null&&Ge.call(i,s)}function dE(i,s){return i!=null&&s in Je(i)}function pE(i,s,f){return i>=Mt(s,f)&&i<xt(s,f)}function tc(i,s,f){for(var _=f?Lu:Ga,O=i[0].length,C=i.length,D=C,W=Q(C),G=1/0,ne=[];D--;){var ie=i[D];D&&s&&(ie=it(ie,er(s))),G=Mt(ie.length,G),W[D]=!f&&(s||O>=120&&ie.length>=120)?new ei(D&&ie):r}ie=i[0];var le=-1,he=W[0];e:for(;++le<O&&ne.length<G;){var we=ie[le],_e=s?s(we):we;if(we=f||we!==0?we:0,!(he?vo(he,_e):_(ne,_e,f))){for(D=C;--D;){var Ce=W[D];if(!(Ce?vo(Ce,_e):_(i[D],_e,f)))continue e}he&&he.push(_e),ne.push(we)}}return ne}function hE(i,s,f,_){return $r(i,function(O,C,D){s(_,f(O),C,D)}),_}function Eo(i,s,f){s=Cn(s,i),i=xg(i,s);var _=i==null?i:i[zr(mr(s))];return _==null?r:Qt(_,i,f)}function Dh(i){return ct(i)&&Ft(i)==se}function gE(i){return ct(i)&&Ft(i)==_n}function vE(i){return ct(i)&&Ft(i)==pe}function ko(i,s,f,_,O){return i===s?!0:i==null||s==null||!ct(i)&&!ct(s)?i!==i&&s!==s:mE(i,s,f,_,ko,O)}function mE(i,s,f,_,O,C){var D=Ae(i),W=Ae(s),G=D?ae:Dt(i),ne=W?ae:Dt(s);G=G==se?jt:G,ne=ne==se?jt:ne;var ie=G==jt,le=ne==jt,he=G==ne;if(he&&In(i)){if(!In(s))return!1;D=!0,ie=!1}if(he&&!ie)return C||(C=new Tr),D||ji(i)?hg(i,s,f,_,O,C):UE(i,s,G,f,_,O,C);if(!(f&S)){var we=ie&&Ge.call(i,"__wrapped__"),_e=le&&Ge.call(s,"__wrapped__");if(we||_e){var Ce=we?i.value():i,Ee=_e?s.value():s;return C||(C=new Tr),O(Ce,Ee,f,_,C)}}return he?(C||(C=new Tr),VE(i,s,f,_,O,C)):!1}function bE(i){return ct(i)&&Dt(i)==ge}function rc(i,s,f,_){var O=f.length,C=O,D=!_;if(i==null)return!C;for(i=Je(i);O--;){var W=f[O];if(D&&W[2]?W[1]!==i[W[0]]:!(W[0]in i))return!1}for(;++O<C;){W=f[O];var G=W[0],ne=i[G],ie=W[1];if(D&&W[2]){if(ne===r&&!(G in i))return!1}else{var le=new Tr;if(_)var he=_(ne,ie,G,i,s,le);if(!(he===r?ko(ie,ne,S|v,_,le):he))return!1}}return!0}function $h(i){if(!st(i)||ek(i))return!1;var s=ln(i)?b_:lS;return s.test(ii(i))}function yE(i){return ct(i)&&Ft(i)==Jt}function wE(i){return ct(i)&&Dt(i)==Nt}function xE(i){return ct(i)&&Rs(i.length)&&!!rt[Ft(i)]}function Lh(i){return typeof i=="function"?i:i==null?Zt:typeof i=="object"?Ae(i)?Fh(i[0],i[1]):jh(i):ov(i)}function nc(i){if(!To(i))return E_(i);var s=[];for(var f in Je(i))Ge.call(i,f)&&f!="constructor"&&s.push(f);return s}function SE(i){if(!st(i))return ik(i);var s=To(i),f=[];for(var _ in i)_=="constructor"&&(s||!Ge.call(i,_))||f.push(_);return f}function ic(i,s){return i<s}function zh(i,s){var f=-1,_=qt(i)?Q(i.length):[];return Tn(i,function(O,C,D){_[++f]=s(O,C,D)}),_}function jh(i){var s=yc(i);return s.length==1&&s[0][2]?yg(s[0][0],s[0][1]):function(f){return f===i||rc(f,i,s)}}function Fh(i,s){return xc(i)&&bg(s)?yg(zr(i),s):function(f){var _=Pc(f,i);return _===r&&_===s?Ic(f,i):ko(s,_,S|v)}}function ps(i,s,f,_,O){i!==s&&Ju(s,function(C,D){if(O||(O=new Tr),st(C))_E(i,s,D,f,ps,_,O);else{var W=_?_(_c(i,D),C,D+"",i,s,O):r;W===r&&(W=C),Yu(i,D,W)}},Gt)}function _E(i,s,f,_,O,C,D){var W=_c(i,f),G=_c(s,f),ne=D.get(G);if(ne){Yu(i,f,ne);return}var ie=C?C(W,G,f+"",i,s,D):r,le=ie===r;if(le){var he=Ae(G),we=!he&&In(G),_e=!he&&!we&&ji(G);ie=G,he||we||_e?Ae(W)?ie=W:dt(W)?ie=Vt(W):we?(le=!1,ie=Jh(G,!0)):_e?(le=!1,ie=Qh(G,!0)):ie=[]:Co(G)||oi(G)?(ie=W,oi(W)?ie=Kg(W):(!st(W)||ln(W))&&(ie=mg(G))):le=!1}le&&(D.set(G,ie),O(ie,G,_,C,D),D.delete(G)),Yu(i,f,ie)}function Hh(i,s){var f=i.length;if(f)return s+=s<0?f:0,sn(s,f)?i[s]:r}function Wh(i,s,f){s.length?s=it(s,function(C){return Ae(C)?function(D){return ri(D,C.length===1?C[0]:C)}:C}):s=[Zt];var _=-1;s=it(s,er(Se()));var O=zh(i,function(C,D,W){var G=it(s,function(ne){return ne(C)});return{criteria:G,index:++_,value:C}});return YS(O,function(C,D){return $E(C,D,f)})}function EE(i,s){return Bh(i,s,function(f,_){return Ic(i,_)})}function Bh(i,s,f){for(var _=-1,O=s.length,C={};++_<O;){var D=s[_],W=ri(i,D);f(W,D)&&Oo(C,Cn(D,i),W)}return C}function kE(i){return function(s){return ri(s,i)}}function oc(i,s,f,_){var O=_?KS:Ti,C=-1,D=s.length,W=i;for(i===s&&(s=Vt(s)),f&&(W=it(i,er(f)));++C<D;)for(var G=0,ne=s[C],ie=f?f(ne):ne;(G=O(W,ie,G,_))>-1;)W!==i&&ns.call(W,G,1),ns.call(i,G,1);return i}function Uh(i,s){for(var f=i?s.length:0,_=f-1;f--;){var O=s[f];if(f==_||O!==C){var C=O;sn(O)?ns.call(i,O,1):uc(i,O)}}return i}function ac(i,s){return i+as(Eh()*(s-i+1))}function OE(i,s,f,_){for(var O=-1,C=xt(os((s-i)/(f||1)),0),D=Q(C);C--;)D[_?C:++O]=i,i+=f;return D}function sc(i,s){var f="";if(!i||s<1||s>Z)return f;do s%2&&(f+=i),s=as(s/2),s&&(i+=i);while(s);return f}function Pe(i,s){return Ec(wg(i,s,Zt),i+"")}function AE(i){return Ah(Fi(i))}function TE(i,s){var f=Fi(i);return _s(f,ti(s,0,f.length))}function Oo(i,s,f,_){if(!st(i))return i;s=Cn(s,i);for(var O=-1,C=s.length,D=C-1,W=i;W!=null&&++O<C;){var G=zr(s[O]),ne=f;if(G==="__proto__"||G==="constructor"||G==="prototype")return i;if(O!=D){var ie=W[G];ne=_?_(ie,G,W):r,ne===r&&(ne=st(ie)?ie:sn(s[O+1])?[]:{})}So(W,G,ne),W=W[G]}return i}var Vh=ss?function(i,s){return ss.set(i,s),i}:Zt,RE=is?function(i,s){return is(i,"toString",{configurable:!0,enumerable:!1,value:Mc(s),writable:!0})}:Zt;function CE(i){return _s(Fi(i))}function vr(i,s,f){var _=-1,O=i.length;s<0&&(s=-s>O?0:O+s),f=f>O?O:f,f<0&&(f+=O),O=s>f?0:f-s>>>0,s>>>=0;for(var C=Q(O);++_<O;)C[_]=i[_+s];return C}function PE(i,s){var f;return Tn(i,function(_,O,C){return f=s(_,O,C),!f}),!!f}function hs(i,s,f){var _=0,O=i==null?_:i.length;if(typeof s=="number"&&s===s&&O<=ee){for(;_<O;){var C=_+O>>>1,D=i[C];D!==null&&!rr(D)&&(f?D<=s:D<s)?_=C+1:O=C}return O}return lc(i,s,Zt,f)}function lc(i,s,f,_){var O=0,C=i==null?0:i.length;if(C===0)return 0;s=f(s);for(var D=s!==s,W=s===null,G=rr(s),ne=s===r;O<C;){var ie=as((O+C)/2),le=f(i[ie]),he=le!==r,we=le===null,_e=le===le,Ce=rr(le);if(D)var Ee=_||_e;else ne?Ee=_e&&(_||he):W?Ee=_e&&he&&(_||!we):G?Ee=_e&&he&&!we&&(_||!Ce):we||Ce?Ee=!1:Ee=_?le<=s:le<s;Ee?O=ie+1:C=ie}return Mt(C,re)}function qh(i,s){for(var f=-1,_=i.length,O=0,C=[];++f<_;){var D=i[f],W=s?s(D):D;if(!f||!Rr(W,G)){var G=W;C[O++]=D===0?0:D}}return C}function Gh(i){return typeof i=="number"?i:rr(i)?z:+i}function tr(i){if(typeof i=="string")return i;if(Ae(i))return it(i,tr)+"";if(rr(i))return kh?kh.call(i):"";var s=i+"";return s=="0"&&1/i==-X?"-0":s}function Rn(i,s,f){var _=-1,O=Ga,C=i.length,D=!0,W=[],G=W;if(f)D=!1,O=Lu;else if(C>=o){var ne=s?null:WE(i);if(ne)return Ka(ne);D=!1,O=vo,G=new ei}else G=s?[]:W;e:for(;++_<C;){var ie=i[_],le=s?s(ie):ie;if(ie=f||ie!==0?ie:0,D&&le===le){for(var he=G.length;he--;)if(G[he]===le)continue e;s&&G.push(le),W.push(ie)}else O(G,le,f)||(G!==W&&G.push(le),W.push(ie))}return W}function uc(i,s){return s=Cn(s,i),i=xg(i,s),i==null||delete i[zr(mr(s))]}function Zh(i,s,f,_){return Oo(i,s,f(ri(i,s)),_)}function gs(i,s,f,_){for(var O=i.length,C=_?O:-1;(_?C--:++C<O)&&s(i[C],C,i););return f?vr(i,_?0:C,_?C+1:O):vr(i,_?C+1:0,_?O:C)}function Kh(i,s){var f=i;return f instanceof Me&&(f=f.value()),zu(s,function(_,O){return O.func.apply(O.thisArg,kn([_],O.args))},f)}function cc(i,s,f){var _=i.length;if(_<2)return _?Rn(i[0]):[];for(var O=-1,C=Q(_);++O<_;)for(var D=i[O],W=-1;++W<_;)W!=O&&(C[O]=_o(C[O]||D,i[W],s,f));return Rn(Rt(C,1),s,f)}function Yh(i,s,f){for(var _=-1,O=i.length,C=s.length,D={};++_<O;){var W=_<C?s[_]:r;f(D,i[_],W)}return D}function fc(i){return dt(i)?i:[]}function dc(i){return typeof i=="function"?i:Zt}function Cn(i,s){return Ae(i)?i:xc(i,s)?[i]:kg(je(i))}var IE=Pe;function Pn(i,s,f){var _=i.length;return f=f===r?_:f,!s&&f>=_?i:vr(i,s,f)}var Xh=y_||function(i){return Tt.clearTimeout(i)};function Jh(i,s){if(s)return i.slice();var f=i.length,_=yh?yh(f):new i.constructor(f);return i.copy(_),_}function pc(i){var s=new i.constructor(i.byteLength);return new ts(s).set(new ts(i)),s}function NE(i,s){var f=s?pc(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function ME(i){var s=new i.constructor(i.source,Dp.exec(i));return s.lastIndex=i.lastIndex,s}function DE(i){return xo?Je(xo.call(i)):{}}function Qh(i,s){var f=s?pc(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function eg(i,s){if(i!==s){var f=i!==r,_=i===null,O=i===i,C=rr(i),D=s!==r,W=s===null,G=s===s,ne=rr(s);if(!W&&!ne&&!C&&i>s||C&&D&&G&&!W&&!ne||_&&D&&G||!f&&G||!O)return 1;if(!_&&!C&&!ne&&i<s||ne&&f&&O&&!_&&!C||W&&f&&O||!D&&O||!G)return-1}return 0}function $E(i,s,f){for(var _=-1,O=i.criteria,C=s.criteria,D=O.length,W=f.length;++_<D;){var G=eg(O[_],C[_]);if(G){if(_>=W)return G;var ne=f[_];return G*(ne=="desc"?-1:1)}}return i.index-s.index}function tg(i,s,f,_){for(var O=-1,C=i.length,D=f.length,W=-1,G=s.length,ne=xt(C-D,0),ie=Q(G+ne),le=!_;++W<G;)ie[W]=s[W];for(;++O<D;)(le||O<C)&&(ie[f[O]]=i[O]);for(;ne--;)ie[W++]=i[O++];return ie}function rg(i,s,f,_){for(var O=-1,C=i.length,D=-1,W=f.length,G=-1,ne=s.length,ie=xt(C-W,0),le=Q(ie+ne),he=!_;++O<ie;)le[O]=i[O];for(var we=O;++G<ne;)le[we+G]=s[G];for(;++D<W;)(he||O<C)&&(le[we+f[D]]=i[O++]);return le}function Vt(i,s){var f=-1,_=i.length;for(s||(s=Q(_));++f<_;)s[f]=i[f];return s}function Lr(i,s,f,_){var O=!f;f||(f={});for(var C=-1,D=s.length;++C<D;){var W=s[C],G=_?_(f[W],i[W],W,f,i):r;G===r&&(G=i[W]),O?nn(f,W,G):So(f,W,G)}return f}function LE(i,s){return Lr(i,wc(i),s)}function zE(i,s){return Lr(i,gg(i),s)}function vs(i,s){return function(f,_){var O=Ae(f)?BS:aE,C=s?s():{};return O(f,i,Se(_,2),C)}}function $i(i){return Pe(function(s,f){var _=-1,O=f.length,C=O>1?f[O-1]:r,D=O>2?f[2]:r;for(C=i.length>3&&typeof C=="function"?(O--,C):r,D&&Ht(f[0],f[1],D)&&(C=O<3?r:C,O=1),s=Je(s);++_<O;){var W=f[_];W&&i(s,W,_,C)}return s})}function ng(i,s){return function(f,_){if(f==null)return f;if(!qt(f))return i(f,_);for(var O=f.length,C=s?O:-1,D=Je(f);(s?C--:++C<O)&&_(D[C],C,D)!==!1;);return f}}function ig(i){return function(s,f,_){for(var O=-1,C=Je(s),D=_(s),W=D.length;W--;){var G=D[i?W:++O];if(f(C[G],G,C)===!1)break}return s}}function jE(i,s,f){var _=s&b,O=Ao(i);function C(){var D=this&&this!==Tt&&this instanceof C?O:i;return D.apply(_?f:this,arguments)}return C}function og(i){return function(s){s=je(s);var f=Ri(s)?Ar(s):r,_=f?f[0]:s.charAt(0),O=f?Pn(f,1).join(""):s.slice(1);return _[i]()+O}}function Li(i){return function(s){return zu(nv(rv(s).replace(RS,"")),i,"")}}function Ao(i){return function(){var s=arguments;switch(s.length){case 0:return new i;case 1:return new i(s[0]);case 2:return new i(s[0],s[1]);case 3:return new i(s[0],s[1],s[2]);case 4:return new i(s[0],s[1],s[2],s[3]);case 5:return new i(s[0],s[1],s[2],s[3],s[4]);case 6:return new i(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new i(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var f=Di(i.prototype),_=i.apply(f,s);return st(_)?_:f}}function FE(i,s,f){var _=Ao(i);function O(){for(var C=arguments.length,D=Q(C),W=C,G=zi(O);W--;)D[W]=arguments[W];var ne=C<3&&D[0]!==G&&D[C-1]!==G?[]:On(D,G);if(C-=ne.length,C<f)return cg(i,s,ms,O.placeholder,r,D,ne,r,r,f-C);var ie=this&&this!==Tt&&this instanceof O?_:i;return Qt(ie,this,D)}return O}function ag(i){return function(s,f,_){var O=Je(s);if(!qt(s)){var C=Se(f,3);s=Et(s),f=function(W){return C(O[W],W,O)}}var D=i(s,f,_);return D>-1?O[C?s[D]:D]:r}}function sg(i){return an(function(s){var f=s.length,_=f,O=hr.prototype.thru;for(i&&s.reverse();_--;){var C=s[_];if(typeof C!="function")throw new pr(l);if(O&&!D&&xs(C)=="wrapper")var D=new hr([],!0)}for(_=D?_:f;++_<f;){C=s[_];var W=xs(C),G=W=="wrapper"?bc(C):r;G&&Sc(G[0])&&G[1]==(F|x|E|A)&&!G[4].length&&G[9]==1?D=D[xs(G[0])].apply(D,G[3]):D=C.length==1&&Sc(C)?D[W]():D.thru(C)}return function(){var ne=arguments,ie=ne[0];if(D&&ne.length==1&&Ae(ie))return D.plant(ie).value();for(var le=0,he=f?s[le].apply(this,ne):ie;++le<f;)he=s[le].call(this,he);return he}})}function ms(i,s,f,_,O,C,D,W,G,ne){var ie=s&F,le=s&b,he=s&m,we=s&(x|k),_e=s&P,Ce=he?r:Ao(i);function Ee(){for(var Ne=arguments.length,De=Q(Ne),nr=Ne;nr--;)De[nr]=arguments[nr];if(we)var Wt=zi(Ee),ir=JS(De,Wt);if(_&&(De=tg(De,_,O,we)),C&&(De=rg(De,C,D,we)),Ne-=ir,we&&Ne<ne){var pt=On(De,Wt);return cg(i,s,ms,Ee.placeholder,f,De,pt,W,G,ne-Ne)}var Cr=le?f:this,cn=he?Cr[i]:i;return Ne=De.length,W?De=ak(De,W):_e&&Ne>1&&De.reverse(),ie&&G<Ne&&(De.length=G),this&&this!==Tt&&this instanceof Ee&&(cn=Ce||Ao(cn)),cn.apply(Cr,De)}return Ee}function lg(i,s){return function(f,_){return hE(f,i,s(_),{})}}function bs(i,s){return function(f,_){var O;if(f===r&&_===r)return s;if(f!==r&&(O=f),_!==r){if(O===r)return _;typeof f=="string"||typeof _=="string"?(f=tr(f),_=tr(_)):(f=Gh(f),_=Gh(_)),O=i(f,_)}return O}}function hc(i){return an(function(s){return s=it(s,er(Se())),Pe(function(f){var _=this;return i(s,function(O){return Qt(O,_,f)})})})}function ys(i,s){s=s===r?" ":tr(s);var f=s.length;if(f<2)return f?sc(s,i):s;var _=sc(s,os(i/Ci(s)));return Ri(s)?Pn(Ar(_),0,i).join(""):_.slice(0,i)}function HE(i,s,f,_){var O=s&b,C=Ao(i);function D(){for(var W=-1,G=arguments.length,ne=-1,ie=_.length,le=Q(ie+G),he=this&&this!==Tt&&this instanceof D?C:i;++ne<ie;)le[ne]=_[ne];for(;G--;)le[ne++]=arguments[++W];return Qt(he,O?f:this,le)}return D}function ug(i){return function(s,f,_){return _&&typeof _!="number"&&Ht(s,f,_)&&(f=_=r),s=un(s),f===r?(f=s,s=0):f=un(f),_=_===r?s<f?1:-1:un(_),OE(s,f,_,i)}}function ws(i){return function(s,f){return typeof s=="string"&&typeof f=="string"||(s=br(s),f=br(f)),i(s,f)}}function cg(i,s,f,_,O,C,D,W,G,ne){var ie=s&x,le=ie?D:r,he=ie?r:D,we=ie?C:r,_e=ie?r:C;s|=ie?E:R,s&=~(ie?R:E),s&w||(s&=-4);var Ce=[i,s,O,we,le,_e,he,W,G,ne],Ee=f.apply(r,Ce);return Sc(i)&&Sg(Ee,Ce),Ee.placeholder=_,_g(Ee,i,s)}function gc(i){var s=wt[i];return function(f,_){if(f=br(f),_=_==null?0:Mt(Re(_),292),_&&_h(f)){var O=(je(f)+"e").split("e"),C=s(O[0]+"e"+(+O[1]+_));return O=(je(C)+"e").split("e"),+(O[0]+"e"+(+O[1]-_))}return s(f)}}var WE=Ni&&1/Ka(new Ni([,-0]))[1]==X?function(i){return new Ni(i)}:Lc;function fg(i){return function(s){var f=Dt(s);return f==ge?Vu(s):f==Nt?o_(s):XS(s,i(s))}}function on(i,s,f,_,O,C,D,W){var G=s&m;if(!G&&typeof i!="function")throw new pr(l);var ne=_?_.length:0;if(ne||(s&=-97,_=O=r),D=D===r?D:xt(Re(D),0),W=W===r?W:Re(W),ne-=O?O.length:0,s&R){var ie=_,le=O;_=O=r}var he=G?r:bc(i),we=[i,s,f,_,O,ie,le,C,D,W];if(he&&nk(we,he),i=we[0],s=we[1],f=we[2],_=we[3],O=we[4],W=we[9]=we[9]===r?G?0:i.length:xt(we[9]-ne,0),!W&&s&(x|k)&&(s&=-25),!s||s==b)var _e=jE(i,s,f);else s==x||s==k?_e=FE(i,s,W):(s==E||s==(b|E))&&!O.length?_e=HE(i,s,f,_):_e=ms.apply(r,we);var Ce=he?Vh:Sg;return _g(Ce(_e,we),i,s)}function dg(i,s,f,_){return i===r||Rr(i,Ii[f])&&!Ge.call(_,f)?s:i}function pg(i,s,f,_,O,C){return st(i)&&st(s)&&(C.set(s,i),ps(i,s,r,pg,C),C.delete(s)),i}function BE(i){return Co(i)?r:i}function hg(i,s,f,_,O,C){var D=f&S,W=i.length,G=s.length;if(W!=G&&!(D&&G>W))return!1;var ne=C.get(i),ie=C.get(s);if(ne&&ie)return ne==s&&ie==i;var le=-1,he=!0,we=f&v?new ei:r;for(C.set(i,s),C.set(s,i);++le<W;){var _e=i[le],Ce=s[le];if(_)var Ee=D?_(Ce,_e,le,s,i,C):_(_e,Ce,le,i,s,C);if(Ee!==r){if(Ee)continue;he=!1;break}if(we){if(!ju(s,function(Ne,De){if(!vo(we,De)&&(_e===Ne||O(_e,Ne,f,_,C)))return we.push(De)})){he=!1;break}}else if(!(_e===Ce||O(_e,Ce,f,_,C))){he=!1;break}}return C.delete(i),C.delete(s),he}function UE(i,s,f,_,O,C,D){switch(f){case en:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case _n:return!(i.byteLength!=s.byteLength||!C(new ts(i),new ts(s)));case ce:case pe:case At:return Rr(+i,+s);case xe:return i.name==s.name&&i.message==s.message;case Jt:case xn:return i==s+"";case ge:var W=Vu;case Nt:var G=_&S;if(W||(W=Ka),i.size!=s.size&&!G)return!1;var ne=D.get(i);if(ne)return ne==s;_|=v,D.set(i,s);var ie=hg(W(i),W(s),_,O,C,D);return D.delete(i),ie;case Yn:if(xo)return xo.call(i)==xo.call(s)}return!1}function VE(i,s,f,_,O,C){var D=f&S,W=vc(i),G=W.length,ne=vc(s),ie=ne.length;if(G!=ie&&!D)return!1;for(var le=G;le--;){var he=W[le];if(!(D?he in s:Ge.call(s,he)))return!1}var we=C.get(i),_e=C.get(s);if(we&&_e)return we==s&&_e==i;var Ce=!0;C.set(i,s),C.set(s,i);for(var Ee=D;++le<G;){he=W[le];var Ne=i[he],De=s[he];if(_)var nr=D?_(De,Ne,he,s,i,C):_(Ne,De,he,i,s,C);if(!(nr===r?Ne===De||O(Ne,De,f,_,C):nr)){Ce=!1;break}Ee||(Ee=he=="constructor")}if(Ce&&!Ee){var Wt=i.constructor,ir=s.constructor;Wt!=ir&&"constructor"in i&&"constructor"in s&&!(typeof Wt=="function"&&Wt instanceof Wt&&typeof ir=="function"&&ir instanceof ir)&&(Ce=!1)}return C.delete(i),C.delete(s),Ce}function an(i){return Ec(wg(i,r,Rg),i+"")}function vc(i){return Mh(i,Et,wc)}function mc(i){return Mh(i,Gt,gg)}var bc=ss?function(i){return ss.get(i)}:Lc;function xs(i){for(var s=i.name+"",f=Mi[s],_=Ge.call(Mi,s)?f.length:0;_--;){var O=f[_],C=O.func;if(C==null||C==i)return O.name}return s}function zi(i){var s=Ge.call(T,"placeholder")?T:i;return s.placeholder}function Se(){var i=T.iteratee||Dc;return i=i===Dc?Lh:i,arguments.length?i(arguments[0],arguments[1]):i}function Ss(i,s){var f=i.__data__;return QE(s)?f[typeof s=="string"?"string":"hash"]:f.map}function yc(i){for(var s=Et(i),f=s.length;f--;){var _=s[f],O=i[_];s[f]=[_,O,bg(O)]}return s}function ni(i,s){var f=r_(i,s);return $h(f)?f:r}function qE(i){var s=Ge.call(i,Jn),f=i[Jn];try{i[Jn]=r;var _=!0}catch{}var O=Qa.call(i);return _&&(s?i[Jn]=f:delete i[Jn]),O}var wc=Gu?function(i){return i==null?[]:(i=Je(i),En(Gu(i),function(s){return xh.call(i,s)}))}:zc,gg=Gu?function(i){for(var s=[];i;)kn(s,wc(i)),i=rs(i);return s}:zc,Dt=Ft;(Zu&&Dt(new Zu(new ArrayBuffer(1)))!=en||bo&&Dt(new bo)!=ge||Ku&&Dt(Ku.resolve())!=Wa||Ni&&Dt(new Ni)!=Nt||yo&&Dt(new yo)!=Sn)&&(Dt=function(i){var s=Ft(i),f=s==jt?i.constructor:r,_=f?ii(f):"";if(_)switch(_){case T_:return en;case R_:return ge;case C_:return Wa;case P_:return Nt;case I_:return Sn}return s});function GE(i,s,f){for(var _=-1,O=f.length;++_<O;){var C=f[_],D=C.size;switch(C.type){case"drop":i+=D;break;case"dropRight":s-=D;break;case"take":s=Mt(s,i+D);break;case"takeRight":i=xt(i,s-D);break}}return{start:i,end:s}}function ZE(i){var s=i.match(eS);return s?s[1].split(tS):[]}function vg(i,s,f){s=Cn(s,i);for(var _=-1,O=s.length,C=!1;++_<O;){var D=zr(s[_]);if(!(C=i!=null&&f(i,D)))break;i=i[D]}return C||++_!=O?C:(O=i==null?0:i.length,!!O&&Rs(O)&&sn(D,O)&&(Ae(i)||oi(i)))}function KE(i){var s=i.length,f=new i.constructor(s);return s&&typeof i[0]=="string"&&Ge.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function mg(i){return typeof i.constructor=="function"&&!To(i)?Di(rs(i)):{}}function YE(i,s,f){var _=i.constructor;switch(s){case _n:return pc(i);case ce:case pe:return new _(+i);case en:return NE(i,f);case yu:case wu:case xu:case Su:case _u:case Eu:case ku:case Ou:case Au:return Qh(i,f);case ge:return new _;case At:case xn:return new _(i);case Jt:return ME(i);case Nt:return new _;case Yn:return DE(i)}}function XE(i,s){var f=s.length;if(!f)return i;var _=f-1;return s[_]=(f>1?"& ":"")+s[_],s=s.join(f>2?", ":" "),i.replace(Q1,`{
|
|
183
|
-
/* [wrapped with `+
|
|
184
|
-
`)}function JE(i){return Ae(i)||oi(i)||!!(Sh&&i&&i[Sh])}function sn(i,s){var f=typeof i;return s=s??Z,!!s&&(f=="number"||f!="symbol"&&cS.test(i))&&i>-1&&i%1==0&&i<s}function Ht(i,s,f){if(!st(f))return!1;var _=typeof s;return(_=="number"?qt(f)&&sn(s,f.length):_=="string"&&s in f)?Rr(f[s],i):!1}function xc(i,s){if(Ae(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||rr(i)?!0:K1.test(i)||!Z1.test(i)||s!=null&&i in Je(s)}function QE(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function Sc(i){var s=xs(i),f=T[s];if(typeof f!="function"||!(s in Me.prototype))return!1;if(i===f)return!0;var _=bc(f);return!!_&&i===_[0]}function ek(i){return!!bh&&bh in i}var tk=Xa?ln:jc;function To(i){var s=i&&i.constructor,f=typeof s=="function"&&s.prototype||Ii;return i===f}function bg(i){return i===i&&!st(i)}function yg(i,s){return function(f){return f==null?!1:f[i]===s&&(s!==r||i in Je(f))}}function rk(i){var s=As(i,function(_){return f.size===d&&f.clear(),_}),f=s.cache;return s}function nk(i,s){var f=i[1],_=s[1],O=f|_,C=O<(b|m|F),D=_==F&&f==x||_==F&&f==A&&i[7].length<=s[8]||_==(F|A)&&s[7].length<=s[8]&&f==x;if(!(C||D))return i;_&b&&(i[2]=s[2],O|=f&b?0:w);var W=s[3];if(W){var G=i[3];i[3]=G?tg(G,W,s[4]):W,i[4]=G?On(i[3],p):s[4]}return W=s[5],W&&(G=i[5],i[5]=G?rg(G,W,s[6]):W,i[6]=G?On(i[5],p):s[6]),W=s[7],W&&(i[7]=W),_&F&&(i[8]=i[8]==null?s[8]:Mt(i[8],s[8])),i[9]==null&&(i[9]=s[9]),i[0]=s[0],i[1]=O,i}function ik(i){var s=[];if(i!=null)for(var f in Je(i))s.push(f);return s}function ok(i){return Qa.call(i)}function wg(i,s,f){return s=xt(s===r?i.length-1:s,0),function(){for(var _=arguments,O=-1,C=xt(_.length-s,0),D=Q(C);++O<C;)D[O]=_[s+O];O=-1;for(var W=Q(s+1);++O<s;)W[O]=_[O];return W[s]=f(D),Qt(i,this,W)}}function xg(i,s){return s.length<2?i:ri(i,vr(s,0,-1))}function ak(i,s){for(var f=i.length,_=Mt(s.length,f),O=Vt(i);_--;){var C=s[_];i[_]=sn(C,f)?O[C]:r}return i}function _c(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var Sg=Eg(Vh),Ro=x_||function(i,s){return Tt.setTimeout(i,s)},Ec=Eg(RE);function _g(i,s,f){var _=s+"";return Ec(i,XE(_,sk(ZE(_),f)))}function Eg(i){var s=0,f=0;return function(){var _=k_(),O=U-(_-f);if(f=_,O>0){if(++s>=M)return arguments[0]}else s=0;return i.apply(r,arguments)}}function _s(i,s){var f=-1,_=i.length,O=_-1;for(s=s===r?_:s;++f<s;){var C=ac(f,O),D=i[C];i[C]=i[f],i[f]=D}return i.length=s,i}var kg=rk(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(Y1,function(f,_,O,C){s.push(O?C.replace(iS,"$1"):_||f)}),s});function zr(i){if(typeof i=="string"||rr(i))return i;var s=i+"";return s=="0"&&1/i==-X?"-0":s}function ii(i){if(i!=null){try{return Ja.call(i)}catch{}try{return i+""}catch{}}return""}function sk(i,s){return dr(J,function(f){var _="_."+f[0];s&f[1]&&!Ga(i,_)&&i.push(_)}),i.sort()}function Og(i){if(i instanceof Me)return i.clone();var s=new hr(i.__wrapped__,i.__chain__);return s.__actions__=Vt(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}function lk(i,s,f){(f?Ht(i,s,f):s===r)?s=1:s=xt(Re(s),0);var _=i==null?0:i.length;if(!_||s<1)return[];for(var O=0,C=0,D=Q(os(_/s));O<_;)D[C++]=vr(i,O,O+=s);return D}function uk(i){for(var s=-1,f=i==null?0:i.length,_=0,O=[];++s<f;){var C=i[s];C&&(O[_++]=C)}return O}function ck(){var i=arguments.length;if(!i)return[];for(var s=Q(i-1),f=arguments[0],_=i;_--;)s[_-1]=arguments[_];return kn(Ae(f)?Vt(f):[f],Rt(s,1))}var fk=Pe(function(i,s){return dt(i)?_o(i,Rt(s,1,dt,!0)):[]}),dk=Pe(function(i,s){var f=mr(s);return dt(f)&&(f=r),dt(i)?_o(i,Rt(s,1,dt,!0),Se(f,2)):[]}),pk=Pe(function(i,s){var f=mr(s);return dt(f)&&(f=r),dt(i)?_o(i,Rt(s,1,dt,!0),r,f):[]});function hk(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Re(s),vr(i,s<0?0:s,_)):[]}function gk(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Re(s),s=_-s,vr(i,0,s<0?0:s)):[]}function vk(i,s){return i&&i.length?gs(i,Se(s,3),!0,!0):[]}function mk(i,s){return i&&i.length?gs(i,Se(s,3),!0):[]}function bk(i,s,f,_){var O=i==null?0:i.length;return O?(f&&typeof f!="number"&&Ht(i,s,f)&&(f=0,_=O),cE(i,s,f,_)):[]}function Ag(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=f==null?0:Re(f);return O<0&&(O=xt(_+O,0)),Za(i,Se(s,3),O)}function Tg(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=_-1;return f!==r&&(O=Re(f),O=f<0?xt(_+O,0):Mt(O,_-1)),Za(i,Se(s,3),O,!0)}function Rg(i){var s=i==null?0:i.length;return s?Rt(i,1):[]}function yk(i){var s=i==null?0:i.length;return s?Rt(i,X):[]}function wk(i,s){var f=i==null?0:i.length;return f?(s=s===r?1:Re(s),Rt(i,s)):[]}function xk(i){for(var s=-1,f=i==null?0:i.length,_={};++s<f;){var O=i[s];_[O[0]]=O[1]}return _}function Cg(i){return i&&i.length?i[0]:r}function Sk(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=f==null?0:Re(f);return O<0&&(O=xt(_+O,0)),Ti(i,s,O)}function _k(i){var s=i==null?0:i.length;return s?vr(i,0,-1):[]}var Ek=Pe(function(i){var s=it(i,fc);return s.length&&s[0]===i[0]?tc(s):[]}),kk=Pe(function(i){var s=mr(i),f=it(i,fc);return s===mr(f)?s=r:f.pop(),f.length&&f[0]===i[0]?tc(f,Se(s,2)):[]}),Ok=Pe(function(i){var s=mr(i),f=it(i,fc);return s=typeof s=="function"?s:r,s&&f.pop(),f.length&&f[0]===i[0]?tc(f,r,s):[]});function Ak(i,s){return i==null?"":__.call(i,s)}function mr(i){var s=i==null?0:i.length;return s?i[s-1]:r}function Tk(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=_;return f!==r&&(O=Re(f),O=O<0?xt(_+O,0):Mt(O,_-1)),s===s?s_(i,s,O):Za(i,ch,O,!0)}function Rk(i,s){return i&&i.length?Hh(i,Re(s)):r}var Ck=Pe(Pg);function Pg(i,s){return i&&i.length&&s&&s.length?oc(i,s):i}function Pk(i,s,f){return i&&i.length&&s&&s.length?oc(i,s,Se(f,2)):i}function Ik(i,s,f){return i&&i.length&&s&&s.length?oc(i,s,r,f):i}var Nk=an(function(i,s){var f=i==null?0:i.length,_=Xu(i,s);return Uh(i,it(s,function(O){return sn(O,f)?+O:O}).sort(eg)),_});function Mk(i,s){var f=[];if(!(i&&i.length))return f;var _=-1,O=[],C=i.length;for(s=Se(s,3);++_<C;){var D=i[_];s(D,_,i)&&(f.push(D),O.push(_))}return Uh(i,O),f}function kc(i){return i==null?i:A_.call(i)}function Dk(i,s,f){var _=i==null?0:i.length;return _?(f&&typeof f!="number"&&Ht(i,s,f)?(s=0,f=_):(s=s==null?0:Re(s),f=f===r?_:Re(f)),vr(i,s,f)):[]}function $k(i,s){return hs(i,s)}function Lk(i,s,f){return lc(i,s,Se(f,2))}function zk(i,s){var f=i==null?0:i.length;if(f){var _=hs(i,s);if(_<f&&Rr(i[_],s))return _}return-1}function jk(i,s){return hs(i,s,!0)}function Fk(i,s,f){return lc(i,s,Se(f,2),!0)}function Hk(i,s){var f=i==null?0:i.length;if(f){var _=hs(i,s,!0)-1;if(Rr(i[_],s))return _}return-1}function Wk(i){return i&&i.length?qh(i):[]}function Bk(i,s){return i&&i.length?qh(i,Se(s,2)):[]}function Uk(i){var s=i==null?0:i.length;return s?vr(i,1,s):[]}function Vk(i,s,f){return i&&i.length?(s=f||s===r?1:Re(s),vr(i,0,s<0?0:s)):[]}function qk(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Re(s),s=_-s,vr(i,s<0?0:s,_)):[]}function Gk(i,s){return i&&i.length?gs(i,Se(s,3),!1,!0):[]}function Zk(i,s){return i&&i.length?gs(i,Se(s,3)):[]}var Kk=Pe(function(i){return Rn(Rt(i,1,dt,!0))}),Yk=Pe(function(i){var s=mr(i);return dt(s)&&(s=r),Rn(Rt(i,1,dt,!0),Se(s,2))}),Xk=Pe(function(i){var s=mr(i);return s=typeof s=="function"?s:r,Rn(Rt(i,1,dt,!0),r,s)});function Jk(i){return i&&i.length?Rn(i):[]}function Qk(i,s){return i&&i.length?Rn(i,Se(s,2)):[]}function eO(i,s){return s=typeof s=="function"?s:r,i&&i.length?Rn(i,r,s):[]}function Oc(i){if(!(i&&i.length))return[];var s=0;return i=En(i,function(f){if(dt(f))return s=xt(f.length,s),!0}),Bu(s,function(f){return it(i,Fu(f))})}function Ig(i,s){if(!(i&&i.length))return[];var f=Oc(i);return s==null?f:it(f,function(_){return Qt(s,r,_)})}var tO=Pe(function(i,s){return dt(i)?_o(i,s):[]}),rO=Pe(function(i){return cc(En(i,dt))}),nO=Pe(function(i){var s=mr(i);return dt(s)&&(s=r),cc(En(i,dt),Se(s,2))}),iO=Pe(function(i){var s=mr(i);return s=typeof s=="function"?s:r,cc(En(i,dt),r,s)}),oO=Pe(Oc);function aO(i,s){return Yh(i||[],s||[],So)}function sO(i,s){return Yh(i||[],s||[],Oo)}var lO=Pe(function(i){var s=i.length,f=s>1?i[s-1]:r;return f=typeof f=="function"?(i.pop(),f):r,Ig(i,f)});function Ng(i){var s=T(i);return s.__chain__=!0,s}function uO(i,s){return s(i),i}function Es(i,s){return s(i)}var cO=an(function(i){var s=i.length,f=s?i[0]:0,_=this.__wrapped__,O=function(C){return Xu(C,i)};return s>1||this.__actions__.length||!(_ instanceof Me)||!sn(f)?this.thru(O):(_=_.slice(f,+f+(s?1:0)),_.__actions__.push({func:Es,args:[O],thisArg:r}),new hr(_,this.__chain__).thru(function(C){return s&&!C.length&&C.push(r),C}))});function fO(){return Ng(this)}function dO(){return new hr(this.value(),this.__chain__)}function pO(){this.__values__===r&&(this.__values__=Gg(this.value()));var i=this.__index__>=this.__values__.length,s=i?r:this.__values__[this.__index__++];return{done:i,value:s}}function hO(){return this}function gO(i){for(var s,f=this;f instanceof us;){var _=Og(f);_.__index__=0,_.__values__=r,s?O.__wrapped__=_:s=_;var O=_;f=f.__wrapped__}return O.__wrapped__=i,s}function vO(){var i=this.__wrapped__;if(i instanceof Me){var s=i;return this.__actions__.length&&(s=new Me(this)),s=s.reverse(),s.__actions__.push({func:Es,args:[kc],thisArg:r}),new hr(s,this.__chain__)}return this.thru(kc)}function mO(){return Kh(this.__wrapped__,this.__actions__)}var bO=vs(function(i,s,f){Ge.call(i,f)?++i[f]:nn(i,f,1)});function yO(i,s,f){var _=Ae(i)?lh:uE;return f&&Ht(i,s,f)&&(s=r),_(i,Se(s,3))}function wO(i,s){var f=Ae(i)?En:Ih;return f(i,Se(s,3))}var xO=ag(Ag),SO=ag(Tg);function _O(i,s){return Rt(ks(i,s),1)}function EO(i,s){return Rt(ks(i,s),X)}function kO(i,s,f){return f=f===r?1:Re(f),Rt(ks(i,s),f)}function Mg(i,s){var f=Ae(i)?dr:Tn;return f(i,Se(s,3))}function Dg(i,s){var f=Ae(i)?US:Ph;return f(i,Se(s,3))}var OO=vs(function(i,s,f){Ge.call(i,f)?i[f].push(s):nn(i,f,[s])});function AO(i,s,f,_){i=qt(i)?i:Fi(i),f=f&&!_?Re(f):0;var O=i.length;return f<0&&(f=xt(O+f,0)),Cs(i)?f<=O&&i.indexOf(s,f)>-1:!!O&&Ti(i,s,f)>-1}var TO=Pe(function(i,s,f){var _=-1,O=typeof s=="function",C=qt(i)?Q(i.length):[];return Tn(i,function(D){C[++_]=O?Qt(s,D,f):Eo(D,s,f)}),C}),RO=vs(function(i,s,f){nn(i,f,s)});function ks(i,s){var f=Ae(i)?it:zh;return f(i,Se(s,3))}function CO(i,s,f,_){return i==null?[]:(Ae(s)||(s=s==null?[]:[s]),f=_?r:f,Ae(f)||(f=f==null?[]:[f]),Wh(i,s,f))}var PO=vs(function(i,s,f){i[f?0:1].push(s)},function(){return[[],[]]});function IO(i,s,f){var _=Ae(i)?zu:dh,O=arguments.length<3;return _(i,Se(s,4),f,O,Tn)}function NO(i,s,f){var _=Ae(i)?VS:dh,O=arguments.length<3;return _(i,Se(s,4),f,O,Ph)}function MO(i,s){var f=Ae(i)?En:Ih;return f(i,Ts(Se(s,3)))}function DO(i){var s=Ae(i)?Ah:AE;return s(i)}function $O(i,s,f){(f?Ht(i,s,f):s===r)?s=1:s=Re(s);var _=Ae(i)?iE:TE;return _(i,s)}function LO(i){var s=Ae(i)?oE:CE;return s(i)}function zO(i){if(i==null)return 0;if(qt(i))return Cs(i)?Ci(i):i.length;var s=Dt(i);return s==ge||s==Nt?i.size:nc(i).length}function jO(i,s,f){var _=Ae(i)?ju:PE;return f&&Ht(i,s,f)&&(s=r),_(i,Se(s,3))}var FO=Pe(function(i,s){if(i==null)return[];var f=s.length;return f>1&&Ht(i,s[0],s[1])?s=[]:f>2&&Ht(s[0],s[1],s[2])&&(s=[s[0]]),Wh(i,Rt(s,1),[])}),Os=w_||function(){return Tt.Date.now()};function HO(i,s){if(typeof s!="function")throw new pr(l);return i=Re(i),function(){if(--i<1)return s.apply(this,arguments)}}function $g(i,s,f){return s=f?r:s,s=i&&s==null?i.length:s,on(i,F,r,r,r,r,s)}function Lg(i,s){var f;if(typeof s!="function")throw new pr(l);return i=Re(i),function(){return--i>0&&(f=s.apply(this,arguments)),i<=1&&(s=r),f}}var Ac=Pe(function(i,s,f){var _=b;if(f.length){var O=On(f,zi(Ac));_|=E}return on(i,_,s,f,O)}),zg=Pe(function(i,s,f){var _=b|m;if(f.length){var O=On(f,zi(zg));_|=E}return on(s,_,i,f,O)});function jg(i,s,f){s=f?r:s;var _=on(i,x,r,r,r,r,r,s);return _.placeholder=jg.placeholder,_}function Fg(i,s,f){s=f?r:s;var _=on(i,k,r,r,r,r,r,s);return _.placeholder=Fg.placeholder,_}function Hg(i,s,f){var _,O,C,D,W,G,ne=0,ie=!1,le=!1,he=!0;if(typeof i!="function")throw new pr(l);s=br(s)||0,st(f)&&(ie=!!f.leading,le="maxWait"in f,C=le?xt(br(f.maxWait)||0,s):C,he="trailing"in f?!!f.trailing:he);function we(pt){var Cr=_,cn=O;return _=O=r,ne=pt,D=i.apply(cn,Cr),D}function _e(pt){return ne=pt,W=Ro(Ne,s),ie?we(pt):D}function Ce(pt){var Cr=pt-G,cn=pt-ne,av=s-Cr;return le?Mt(av,C-cn):av}function Ee(pt){var Cr=pt-G,cn=pt-ne;return G===r||Cr>=s||Cr<0||le&&cn>=C}function Ne(){var pt=Os();if(Ee(pt))return De(pt);W=Ro(Ne,Ce(pt))}function De(pt){return W=r,he&&_?we(pt):(_=O=r,D)}function nr(){W!==r&&Xh(W),ne=0,_=G=O=W=r}function Wt(){return W===r?D:De(Os())}function ir(){var pt=Os(),Cr=Ee(pt);if(_=arguments,O=this,G=pt,Cr){if(W===r)return _e(G);if(le)return Xh(W),W=Ro(Ne,s),we(G)}return W===r&&(W=Ro(Ne,s)),D}return ir.cancel=nr,ir.flush=Wt,ir}var WO=Pe(function(i,s){return Ch(i,1,s)}),BO=Pe(function(i,s,f){return Ch(i,br(s)||0,f)});function UO(i){return on(i,P)}function As(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new pr(l);var f=function(){var _=arguments,O=s?s.apply(this,_):_[0],C=f.cache;if(C.has(O))return C.get(O);var D=i.apply(this,_);return f.cache=C.set(O,D)||C,D};return f.cache=new(As.Cache||rn),f}As.Cache=rn;function Ts(i){if(typeof i!="function")throw new pr(l);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function VO(i){return Lg(2,i)}var qO=IE(function(i,s){s=s.length==1&&Ae(s[0])?it(s[0],er(Se())):it(Rt(s,1),er(Se()));var f=s.length;return Pe(function(_){for(var O=-1,C=Mt(_.length,f);++O<C;)_[O]=s[O].call(this,_[O]);return Qt(i,this,_)})}),Tc=Pe(function(i,s){var f=On(s,zi(Tc));return on(i,E,r,s,f)}),Wg=Pe(function(i,s){var f=On(s,zi(Wg));return on(i,R,r,s,f)}),GO=an(function(i,s){return on(i,A,r,r,r,s)});function ZO(i,s){if(typeof i!="function")throw new pr(l);return s=s===r?s:Re(s),Pe(i,s)}function KO(i,s){if(typeof i!="function")throw new pr(l);return s=s==null?0:xt(Re(s),0),Pe(function(f){var _=f[s],O=Pn(f,0,s);return _&&kn(O,_),Qt(i,this,O)})}function YO(i,s,f){var _=!0,O=!0;if(typeof i!="function")throw new pr(l);return st(f)&&(_="leading"in f?!!f.leading:_,O="trailing"in f?!!f.trailing:O),Hg(i,s,{leading:_,maxWait:s,trailing:O})}function XO(i){return $g(i,1)}function JO(i,s){return Tc(dc(s),i)}function QO(){if(!arguments.length)return[];var i=arguments[0];return Ae(i)?i:[i]}function eA(i){return gr(i,y)}function tA(i,s){return s=typeof s=="function"?s:r,gr(i,y,s)}function rA(i){return gr(i,h|y)}function nA(i,s){return s=typeof s=="function"?s:r,gr(i,h|y,s)}function iA(i,s){return s==null||Rh(i,s,Et(s))}function Rr(i,s){return i===s||i!==i&&s!==s}var oA=ws(ec),aA=ws(function(i,s){return i>=s}),oi=Dh((function(){return arguments})())?Dh:function(i){return ct(i)&&Ge.call(i,"callee")&&!xh.call(i,"callee")},Ae=Q.isArray,sA=rh?er(rh):gE;function qt(i){return i!=null&&Rs(i.length)&&!ln(i)}function dt(i){return ct(i)&&qt(i)}function lA(i){return i===!0||i===!1||ct(i)&&Ft(i)==ce}var In=S_||jc,uA=nh?er(nh):vE;function cA(i){return ct(i)&&i.nodeType===1&&!Co(i)}function fA(i){if(i==null)return!0;if(qt(i)&&(Ae(i)||typeof i=="string"||typeof i.splice=="function"||In(i)||ji(i)||oi(i)))return!i.length;var s=Dt(i);if(s==ge||s==Nt)return!i.size;if(To(i))return!nc(i).length;for(var f in i)if(Ge.call(i,f))return!1;return!0}function dA(i,s){return ko(i,s)}function pA(i,s,f){f=typeof f=="function"?f:r;var _=f?f(i,s):r;return _===r?ko(i,s,r,f):!!_}function Rc(i){if(!ct(i))return!1;var s=Ft(i);return s==xe||s==de||typeof i.message=="string"&&typeof i.name=="string"&&!Co(i)}function hA(i){return typeof i=="number"&&_h(i)}function ln(i){if(!st(i))return!1;var s=Ft(i);return s==Y||s==ze||s==oe||s==bu}function Bg(i){return typeof i=="number"&&i==Re(i)}function Rs(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Z}function st(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function ct(i){return i!=null&&typeof i=="object"}var Ug=ih?er(ih):bE;function gA(i,s){return i===s||rc(i,s,yc(s))}function vA(i,s,f){return f=typeof f=="function"?f:r,rc(i,s,yc(s),f)}function mA(i){return Vg(i)&&i!=+i}function bA(i){if(tk(i))throw new Oe(a);return $h(i)}function yA(i){return i===null}function wA(i){return i==null}function Vg(i){return typeof i=="number"||ct(i)&&Ft(i)==At}function Co(i){if(!ct(i)||Ft(i)!=jt)return!1;var s=rs(i);if(s===null)return!0;var f=Ge.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&Ja.call(f)==v_}var Cc=oh?er(oh):yE;function xA(i){return Bg(i)&&i>=-Z&&i<=Z}var qg=ah?er(ah):wE;function Cs(i){return typeof i=="string"||!Ae(i)&&ct(i)&&Ft(i)==xn}function rr(i){return typeof i=="symbol"||ct(i)&&Ft(i)==Yn}var ji=sh?er(sh):xE;function SA(i){return i===r}function _A(i){return ct(i)&&Dt(i)==Sn}function EA(i){return ct(i)&&Ft(i)==Ba}var kA=ws(ic),OA=ws(function(i,s){return i<=s});function Gg(i){if(!i)return[];if(qt(i))return Cs(i)?Ar(i):Vt(i);if(mo&&i[mo])return i_(i[mo]());var s=Dt(i),f=s==ge?Vu:s==Nt?Ka:Fi;return f(i)}function un(i){if(!i)return i===0?i:0;if(i=br(i),i===X||i===-X){var s=i<0?-1:1;return s*ve}return i===i?i:0}function Re(i){var s=un(i),f=s%1;return s===s?f?s-f:s:0}function Zg(i){return i?ti(Re(i),0,q):0}function br(i){if(typeof i=="number")return i;if(rr(i))return z;if(st(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=st(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=ph(i);var f=sS.test(i);return f||uS.test(i)?HS(i.slice(2),f?2:8):aS.test(i)?z:+i}function Kg(i){return Lr(i,Gt(i))}function AA(i){return i?ti(Re(i),-Z,Z):i===0?i:0}function je(i){return i==null?"":tr(i)}var TA=$i(function(i,s){if(To(s)||qt(s)){Lr(s,Et(s),i);return}for(var f in s)Ge.call(s,f)&&So(i,f,s[f])}),Yg=$i(function(i,s){Lr(s,Gt(s),i)}),Ps=$i(function(i,s,f,_){Lr(s,Gt(s),i,_)}),RA=$i(function(i,s,f,_){Lr(s,Et(s),i,_)}),CA=an(Xu);function PA(i,s){var f=Di(i);return s==null?f:Th(f,s)}var IA=Pe(function(i,s){i=Je(i);var f=-1,_=s.length,O=_>2?s[2]:r;for(O&&Ht(s[0],s[1],O)&&(_=1);++f<_;)for(var C=s[f],D=Gt(C),W=-1,G=D.length;++W<G;){var ne=D[W],ie=i[ne];(ie===r||Rr(ie,Ii[ne])&&!Ge.call(i,ne))&&(i[ne]=C[ne])}return i}),NA=Pe(function(i){return i.push(r,pg),Qt(Xg,r,i)});function MA(i,s){return uh(i,Se(s,3),$r)}function DA(i,s){return uh(i,Se(s,3),Qu)}function $A(i,s){return i==null?i:Ju(i,Se(s,3),Gt)}function LA(i,s){return i==null?i:Nh(i,Se(s,3),Gt)}function zA(i,s){return i&&$r(i,Se(s,3))}function jA(i,s){return i&&Qu(i,Se(s,3))}function FA(i){return i==null?[]:ds(i,Et(i))}function HA(i){return i==null?[]:ds(i,Gt(i))}function Pc(i,s,f){var _=i==null?r:ri(i,s);return _===r?f:_}function WA(i,s){return i!=null&&vg(i,s,fE)}function Ic(i,s){return i!=null&&vg(i,s,dE)}var BA=lg(function(i,s,f){s!=null&&typeof s.toString!="function"&&(s=Qa.call(s)),i[s]=f},Mc(Zt)),UA=lg(function(i,s,f){s!=null&&typeof s.toString!="function"&&(s=Qa.call(s)),Ge.call(i,s)?i[s].push(f):i[s]=[f]},Se),VA=Pe(Eo);function Et(i){return qt(i)?Oh(i):nc(i)}function Gt(i){return qt(i)?Oh(i,!0):SE(i)}function qA(i,s){var f={};return s=Se(s,3),$r(i,function(_,O,C){nn(f,s(_,O,C),_)}),f}function GA(i,s){var f={};return s=Se(s,3),$r(i,function(_,O,C){nn(f,O,s(_,O,C))}),f}var ZA=$i(function(i,s,f){ps(i,s,f)}),Xg=$i(function(i,s,f,_){ps(i,s,f,_)}),KA=an(function(i,s){var f={};if(i==null)return f;var _=!1;s=it(s,function(C){return C=Cn(C,i),_||(_=C.length>1),C}),Lr(i,mc(i),f),_&&(f=gr(f,h|g|y,BE));for(var O=s.length;O--;)uc(f,s[O]);return f});function YA(i,s){return Jg(i,Ts(Se(s)))}var XA=an(function(i,s){return i==null?{}:EE(i,s)});function Jg(i,s){if(i==null)return{};var f=it(mc(i),function(_){return[_]});return s=Se(s),Bh(i,f,function(_,O){return s(_,O[0])})}function JA(i,s,f){s=Cn(s,i);var _=-1,O=s.length;for(O||(O=1,i=r);++_<O;){var C=i==null?r:i[zr(s[_])];C===r&&(_=O,C=f),i=ln(C)?C.call(i):C}return i}function QA(i,s,f){return i==null?i:Oo(i,s,f)}function eT(i,s,f,_){return _=typeof _=="function"?_:r,i==null?i:Oo(i,s,f,_)}var Qg=fg(Et),ev=fg(Gt);function tT(i,s,f){var _=Ae(i),O=_||In(i)||ji(i);if(s=Se(s,4),f==null){var C=i&&i.constructor;O?f=_?new C:[]:st(i)?f=ln(C)?Di(rs(i)):{}:f={}}return(O?dr:$r)(i,function(D,W,G){return s(f,D,W,G)}),f}function rT(i,s){return i==null?!0:uc(i,s)}function nT(i,s,f){return i==null?i:Zh(i,s,dc(f))}function iT(i,s,f,_){return _=typeof _=="function"?_:r,i==null?i:Zh(i,s,dc(f),_)}function Fi(i){return i==null?[]:Uu(i,Et(i))}function oT(i){return i==null?[]:Uu(i,Gt(i))}function aT(i,s,f){return f===r&&(f=s,s=r),f!==r&&(f=br(f),f=f===f?f:0),s!==r&&(s=br(s),s=s===s?s:0),ti(br(i),s,f)}function sT(i,s,f){return s=un(s),f===r?(f=s,s=0):f=un(f),i=br(i),pE(i,s,f)}function lT(i,s,f){if(f&&typeof f!="boolean"&&Ht(i,s,f)&&(s=f=r),f===r&&(typeof s=="boolean"?(f=s,s=r):typeof i=="boolean"&&(f=i,i=r)),i===r&&s===r?(i=0,s=1):(i=un(i),s===r?(s=i,i=0):s=un(s)),i>s){var _=i;i=s,s=_}if(f||i%1||s%1){var O=Eh();return Mt(i+O*(s-i+FS("1e-"+((O+"").length-1))),s)}return ac(i,s)}var uT=Li(function(i,s,f){return s=s.toLowerCase(),i+(f?tv(s):s)});function tv(i){return Nc(je(i).toLowerCase())}function rv(i){return i=je(i),i&&i.replace(fS,QS).replace(CS,"")}function cT(i,s,f){i=je(i),s=tr(s);var _=i.length;f=f===r?_:ti(Re(f),0,_);var O=f;return f-=s.length,f>=0&&i.slice(f,O)==s}function fT(i){return i=je(i),i&&V1.test(i)?i.replace(Np,e_):i}function dT(i){return i=je(i),i&&X1.test(i)?i.replace(Tu,"\\$&"):i}var pT=Li(function(i,s,f){return i+(f?"-":"")+s.toLowerCase()}),hT=Li(function(i,s,f){return i+(f?" ":"")+s.toLowerCase()}),gT=og("toLowerCase");function vT(i,s,f){i=je(i),s=Re(s);var _=s?Ci(i):0;if(!s||_>=s)return i;var O=(s-_)/2;return ys(as(O),f)+i+ys(os(O),f)}function mT(i,s,f){i=je(i),s=Re(s);var _=s?Ci(i):0;return s&&_<s?i+ys(s-_,f):i}function bT(i,s,f){i=je(i),s=Re(s);var _=s?Ci(i):0;return s&&_<s?ys(s-_,f)+i:i}function yT(i,s,f){return f||s==null?s=0:s&&(s=+s),O_(je(i).replace(Ru,""),s||0)}function wT(i,s,f){return(f?Ht(i,s,f):s===r)?s=1:s=Re(s),sc(je(i),s)}function xT(){var i=arguments,s=je(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var ST=Li(function(i,s,f){return i+(f?"_":"")+s.toLowerCase()});function _T(i,s,f){return f&&typeof f!="number"&&Ht(i,s,f)&&(s=f=r),f=f===r?q:f>>>0,f?(i=je(i),i&&(typeof s=="string"||s!=null&&!Cc(s))&&(s=tr(s),!s&&Ri(i))?Pn(Ar(i),0,f):i.split(s,f)):[]}var ET=Li(function(i,s,f){return i+(f?" ":"")+Nc(s)});function kT(i,s,f){return i=je(i),f=f==null?0:ti(Re(f),0,i.length),s=tr(s),i.slice(f,f+s.length)==s}function OT(i,s,f){var _=T.templateSettings;f&&Ht(i,s,f)&&(s=r),i=je(i),s=Ps({},s,_,dg);var O=Ps({},s.imports,_.imports,dg),C=Et(O),D=Uu(O,C),W,G,ne=0,ie=s.interpolate||Ua,le="__p += '",he=qu((s.escape||Ua).source+"|"+ie.source+"|"+(ie===Mp?oS:Ua).source+"|"+(s.evaluate||Ua).source+"|$","g"),we="//# sourceURL="+(Ge.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++DS+"]")+`
|
|
185
|
-
`;
|
|
186
|
-
__e(`+
|
|
187
|
-
'`),
|
|
188
|
-
`+
|
|
189
|
-
__p += '`),
|
|
190
|
-
((__t = (`+
|
|
191
|
-
'`),
|
|
192
|
-
`;var
|
|
193
|
-
`+
|
|
182
|
+
*/var Gk=go.exports,cv;function Kk(){return cv||(cv=1,(function(e,t){(function(){var r,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",m=500,v="__lodash_placeholder__",g=1,p=2,b=4,x=1,d=2,w=1,h=2,S=4,E=8,R=16,O=32,k=64,B=128,M=256,F=512,G=30,j="...",L=800,U=16,q=1,C=2,J=3,X=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,se=Q-1,ue=Q>>>1,ne=[["ary",B],["bind",w],["bindKey",h],["curry",E],["curryRight",R],["flip",F],["partial",O],["partialRight",k],["rearg",M]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",ve="[object Boolean]",Ee="[object Date]",Ae="[object DOMException]",Ze="[object Error]",ie="[object Function]",mt="[object GeneratorFunction]",ut="[object Map]",vr="[object Number]",qo="[object Null]",Gt="[object Object]",Zo="[object Promise]",Ga="[object Proxy]",Mt="[object RegExp]",yt="[object Set]",Kr="[object String]",wn="[object Symbol]",Ai="[object Undefined]",Vr="[object WeakMap]",Go="[object WeakSet]",Xr="[object ArrayBuffer]",$r="[object DataView]",Ka="[object Float32Array]",Va="[object Float64Array]",Xa="[object Int8Array]",Ya="[object Int16Array]",Ja="[object Int32Array]",Qa="[object Uint8Array]",eu="[object Uint8ClampedArray]",tu="[object Uint16Array]",ru="[object Uint32Array]",L0=/\b__p \+= '';/g,M0=/\b(__p \+=) '' \+/g,F0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kf=/&(?:amp|lt|gt|quot|#39);/g,$f=/[&<>"']/g,D0=RegExp(kf.source),N0=RegExp($f.source),j0=/<%-([\s\S]+?)%>/g,z0=/<%([\s\S]+?)%>/g,If=/<%=([\s\S]+?)%>/g,W0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,B0=/^\w*$/,U0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nu=/[\\^$.*+?()[\]{}|]/g,H0=RegExp(nu.source),iu=/^\s+/,q0=/\s/,Z0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G0=/\{\n\/\* \[wrapped with (.+)\] \*/,K0=/,? & /,V0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X0=/[()=,{}\[\]\/\s]/,Y0=/\\(\\)?/g,J0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lf=/\w*$/,Q0=/^[-+]0x[0-9a-f]+$/i,eb=/^0b[01]+$/i,tb=/^\[object .+?Constructor\]$/,rb=/^0o[0-7]+$/i,nb=/^(?:0|[1-9]\d*)$/,ib=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ko=/($^)/,ob=/['\n\r\u2028\u2029\\]/g,Vo="\\ud800-\\udfff",sb="\\u0300-\\u036f",ab="\\ufe20-\\ufe2f",ub="\\u20d0-\\u20ff",Mf=sb+ab+ub,Ff="\\u2700-\\u27bf",Df="a-z\\xdf-\\xf6\\xf8-\\xff",lb="\\xac\\xb1\\xd7\\xf7",cb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fb="\\u2000-\\u206f",db=" \\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",Nf="A-Z\\xc0-\\xd6\\xd8-\\xde",jf="\\ufe0e\\ufe0f",zf=lb+cb+fb+db,ou="['’]",pb="["+Vo+"]",Wf="["+zf+"]",Xo="["+Mf+"]",Bf="\\d+",hb="["+Ff+"]",Uf="["+Df+"]",Hf="[^"+Vo+zf+Bf+Ff+Df+Nf+"]",su="\\ud83c[\\udffb-\\udfff]",gb="(?:"+Xo+"|"+su+")",qf="[^"+Vo+"]",au="(?:\\ud83c[\\udde6-\\uddff]){2}",uu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+Nf+"]",Zf="\\u200d",Gf="(?:"+Uf+"|"+Hf+")",vb="(?:"+Vn+"|"+Hf+")",Kf="(?:"+ou+"(?:d|ll|m|re|s|t|ve))?",Vf="(?:"+ou+"(?:D|LL|M|RE|S|T|VE))?",Xf=gb+"?",Yf="["+jf+"]?",mb="(?:"+Zf+"(?:"+[qf,au,uu].join("|")+")"+Yf+Xf+")*",yb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jf=Yf+Xf+mb,wb="(?:"+[hb,au,uu].join("|")+")"+Jf,xb="(?:"+[qf+Xo+"?",Xo,au,uu,pb].join("|")+")",Sb=RegExp(ou,"g"),Eb=RegExp(Xo,"g"),lu=RegExp(su+"(?="+su+")|"+xb+Jf,"g"),_b=RegExp([Vn+"?"+Uf+"+"+Kf+"(?="+[Wf,Vn,"$"].join("|")+")",vb+"+"+Vf+"(?="+[Wf,Vn+Gf,"$"].join("|")+")",Vn+"?"+Gf+"+"+Kf,Vn+"+"+Vf,bb,yb,Bf,wb].join("|"),"g"),Ob=RegExp("["+Zf+Vo+Mf+jf+"]"),Ab=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tb=["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"],Rb=-1,Be={};Be[Ka]=Be[Va]=Be[Xa]=Be[Ya]=Be[Ja]=Be[Qa]=Be[eu]=Be[tu]=Be[ru]=!0,Be[ce]=Be[fe]=Be[Xr]=Be[ve]=Be[$r]=Be[Ee]=Be[Ze]=Be[ie]=Be[ut]=Be[vr]=Be[Gt]=Be[Mt]=Be[yt]=Be[Kr]=Be[Vr]=!1;var je={};je[ce]=je[fe]=je[Xr]=je[$r]=je[ve]=je[Ee]=je[Ka]=je[Va]=je[Xa]=je[Ya]=je[Ja]=je[ut]=je[vr]=je[Gt]=je[Mt]=je[yt]=je[Kr]=je[wn]=je[Qa]=je[eu]=je[tu]=je[ru]=!0,je[Ze]=je[ie]=je[Vr]=!1;var Pb={À:"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"},Cb={"&":"&","<":"<",">":">",'"':""","'":"'"},kb={"&":"&","<":"<",">":">",""":'"',"'":"'"},$b={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ib=parseFloat,Lb=parseInt,Qf=typeof Ds=="object"&&Ds&&Ds.Object===Object&&Ds,Mb=typeof self=="object"&&self&&self.Object===Object&&self,dt=Qf||Mb||Function("return this")(),cu=t&&!t.nodeType&&t,xn=cu&&!0&&e&&!e.nodeType&&e,ed=xn&&xn.exports===cu,fu=ed&&Qf.process,Kt=(function(){try{var N=xn&&xn.require&&xn.require("util").types;return N||fu&&fu.binding&&fu.binding("util")}catch{}})(),td=Kt&&Kt.isArrayBuffer,rd=Kt&&Kt.isDate,nd=Kt&&Kt.isMap,id=Kt&&Kt.isRegExp,od=Kt&&Kt.isSet,sd=Kt&&Kt.isTypedArray;function Ft(N,K,H){switch(H.length){case 0:return N.call(K);case 1:return N.call(K,H[0]);case 2:return N.call(K,H[0],H[1]);case 3:return N.call(K,H[0],H[1],H[2])}return N.apply(K,H)}function Fb(N,K,H,ae){for(var be=-1,Pe=N==null?0:N.length;++be<Pe;){var ot=N[be];K(ae,ot,H(ot),N)}return ae}function Vt(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae&&K(N[H],H,N)!==!1;);return N}function Db(N,K){for(var H=N==null?0:N.length;H--&&K(N[H],H,N)!==!1;);return N}function ad(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae;)if(!K(N[H],H,N))return!1;return!0}function Yr(N,K){for(var H=-1,ae=N==null?0:N.length,be=0,Pe=[];++H<ae;){var ot=N[H];K(ot,H,N)&&(Pe[be++]=ot)}return Pe}function Yo(N,K){var H=N==null?0:N.length;return!!H&&Xn(N,K,0)>-1}function du(N,K,H){for(var ae=-1,be=N==null?0:N.length;++ae<be;)if(H(K,N[ae]))return!0;return!1}function Ue(N,K){for(var H=-1,ae=N==null?0:N.length,be=Array(ae);++H<ae;)be[H]=K(N[H],H,N);return be}function Jr(N,K){for(var H=-1,ae=K.length,be=N.length;++H<ae;)N[be+H]=K[H];return N}function pu(N,K,H,ae){var be=-1,Pe=N==null?0:N.length;for(ae&&Pe&&(H=N[++be]);++be<Pe;)H=K(H,N[be],be,N);return H}function Nb(N,K,H,ae){var be=N==null?0:N.length;for(ae&&be&&(H=N[--be]);be--;)H=K(H,N[be],be,N);return H}function hu(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae;)if(K(N[H],H,N))return!0;return!1}var jb=gu("length");function zb(N){return N.split("")}function Wb(N){return N.match(V0)||[]}function ud(N,K,H){var ae;return H(N,function(be,Pe,ot){if(K(be,Pe,ot))return ae=Pe,!1}),ae}function Jo(N,K,H,ae){for(var be=N.length,Pe=H+(ae?1:-1);ae?Pe--:++Pe<be;)if(K(N[Pe],Pe,N))return Pe;return-1}function Xn(N,K,H){return K===K?Qb(N,K,H):Jo(N,ld,H)}function Bb(N,K,H,ae){for(var be=H-1,Pe=N.length;++be<Pe;)if(ae(N[be],K))return be;return-1}function ld(N){return N!==N}function cd(N,K){var H=N==null?0:N.length;return H?mu(N,K)/H:Z}function gu(N){return function(K){return K==null?r:K[N]}}function vu(N){return function(K){return N==null?r:N[K]}}function fd(N,K,H,ae,be){return be(N,function(Pe,ot,Ne){H=ae?(ae=!1,Pe):K(H,Pe,ot,Ne)}),H}function Ub(N,K){var H=N.length;for(N.sort(K);H--;)N[H]=N[H].value;return N}function mu(N,K){for(var H,ae=-1,be=N.length;++ae<be;){var Pe=K(N[ae]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function yu(N,K){for(var H=-1,ae=Array(N);++H<N;)ae[H]=K(H);return ae}function Hb(N,K){return Ue(K,function(H){return[H,N[H]]})}function dd(N){return N&&N.slice(0,vd(N)+1).replace(iu,"")}function Dt(N){return function(K){return N(K)}}function bu(N,K){return Ue(K,function(H){return N[H]})}function Ti(N,K){return N.has(K)}function pd(N,K){for(var H=-1,ae=N.length;++H<ae&&Xn(K,N[H],0)>-1;);return H}function hd(N,K){for(var H=N.length;H--&&Xn(K,N[H],0)>-1;);return H}function qb(N,K){for(var H=N.length,ae=0;H--;)N[H]===K&&++ae;return ae}var Zb=vu(Pb),Gb=vu(Cb);function Kb(N){return"\\"+$b[N]}function Vb(N,K){return N==null?r:N[K]}function Yn(N){return Ob.test(N)}function Xb(N){return Ab.test(N)}function Yb(N){for(var K,H=[];!(K=N.next()).done;)H.push(K.value);return H}function wu(N){var K=-1,H=Array(N.size);return N.forEach(function(ae,be){H[++K]=[be,ae]}),H}function gd(N,K){return function(H){return N(K(H))}}function Qr(N,K){for(var H=-1,ae=N.length,be=0,Pe=[];++H<ae;){var ot=N[H];(ot===K||ot===v)&&(N[H]=v,Pe[be++]=H)}return Pe}function Qo(N){var K=-1,H=Array(N.size);return N.forEach(function(ae){H[++K]=ae}),H}function Jb(N){var K=-1,H=Array(N.size);return N.forEach(function(ae){H[++K]=[ae,ae]}),H}function Qb(N,K,H){for(var ae=H-1,be=N.length;++ae<be;)if(N[ae]===K)return ae;return-1}function ew(N,K,H){for(var ae=H+1;ae--;)if(N[ae]===K)return ae;return ae}function Jn(N){return Yn(N)?rw(N):jb(N)}function ar(N){return Yn(N)?nw(N):zb(N)}function vd(N){for(var K=N.length;K--&&q0.test(N.charAt(K)););return K}var tw=vu(kb);function rw(N){for(var K=lu.lastIndex=0;lu.test(N);)++K;return K}function nw(N){return N.match(lu)||[]}function iw(N){return N.match(_b)||[]}var ow=(function N(K){K=K==null?dt:Qn.defaults(dt.Object(),K,Qn.pick(dt,Tb));var H=K.Array,ae=K.Date,be=K.Error,Pe=K.Function,ot=K.Math,Ne=K.Object,xu=K.RegExp,sw=K.String,Xt=K.TypeError,es=H.prototype,aw=Pe.prototype,ei=Ne.prototype,ts=K["__core-js_shared__"],rs=aw.toString,Fe=ei.hasOwnProperty,uw=0,md=(function(){var n=/[^.]+$/.exec(ts&&ts.keys&&ts.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),ns=ei.toString,lw=rs.call(Ne),cw=dt._,fw=xu("^"+rs.call(Fe).replace(nu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),is=ed?K.Buffer:r,en=K.Symbol,os=K.Uint8Array,yd=is?is.allocUnsafe:r,ss=gd(Ne.getPrototypeOf,Ne),bd=Ne.create,wd=ei.propertyIsEnumerable,as=es.splice,xd=en?en.isConcatSpreadable:r,Ri=en?en.iterator:r,Sn=en?en.toStringTag:r,us=(function(){try{var n=Tn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),dw=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,pw=ae&&ae.now!==dt.Date.now&&ae.now,hw=K.setTimeout!==dt.setTimeout&&K.setTimeout,ls=ot.ceil,cs=ot.floor,Su=Ne.getOwnPropertySymbols,gw=is?is.isBuffer:r,Sd=K.isFinite,vw=es.join,mw=gd(Ne.keys,Ne),st=ot.max,bt=ot.min,yw=ae.now,bw=K.parseInt,Ed=ot.random,ww=es.reverse,Eu=Tn(K,"DataView"),Pi=Tn(K,"Map"),_u=Tn(K,"Promise"),ti=Tn(K,"Set"),Ci=Tn(K,"WeakMap"),ki=Tn(Ne,"create"),fs=Ci&&new Ci,ri={},xw=Rn(Eu),Sw=Rn(Pi),Ew=Rn(_u),_w=Rn(ti),Ow=Rn(Ci),ds=en?en.prototype:r,$i=ds?ds.valueOf:r,_d=ds?ds.toString:r;function A(n){if(Xe(n)&&!we(n)&&!(n instanceof Te)){if(n instanceof Yt)return n;if(Fe.call(n,"__wrapped__"))return Op(n)}return new Yt(n)}var ni=(function(){function n(){}return function(o){if(!Ge(o))return{};if(bd)return bd(o);n.prototype=o;var u=new n;return n.prototype=r,u}})();function ps(){}function Yt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:j0,evaluate:z0,interpolate:If,variable:"",imports:{_:A}},A.prototype=ps.prototype,A.prototype.constructor=A,Yt.prototype=ni(ps.prototype),Yt.prototype.constructor=Yt;function Te(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Aw(){var n=new Te(this.__wrapped__);return n.__actions__=Pt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Pt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Pt(this.__views__),n}function Tw(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Rw(){var n=this.__wrapped__.value(),o=this.__dir__,u=we(n),y=o<0,_=u?n.length:0,T=z1(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=y?I:P-1,Y=this.__iteratees__,ee=Y.length,oe=0,le=bt(z,this.__takeCount__);if(!u||!y&&_==z&&le==z)return Kd(n,this.__actions__);var he=[];e:for(;z--&&oe<le;){V+=o;for(var Se=-1,ge=n[V];++Se<ee;){var Oe=Y[Se],Re=Oe.iteratee,zt=Oe.type,At=Re(ge);if(zt==C)ge=At;else if(!At){if(zt==q)continue e;break e}}he[oe++]=ge}return he}Te.prototype=ni(ps.prototype),Te.prototype.constructor=Te;function En(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Pw(){this.__data__=ki?ki(null):{},this.size=0}function Cw(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function kw(n){var o=this.__data__;if(ki){var u=o[n];return u===f?r:u}return Fe.call(o,n)?o[n]:r}function $w(n){var o=this.__data__;return ki?o[n]!==r:Fe.call(o,n)}function Iw(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ki&&o===r?f:o,this}En.prototype.clear=Pw,En.prototype.delete=Cw,En.prototype.get=kw,En.prototype.has=$w,En.prototype.set=Iw;function Ir(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Lw(){this.__data__=[],this.size=0}function Mw(n){var o=this.__data__,u=hs(o,n);if(u<0)return!1;var y=o.length-1;return u==y?o.pop():as.call(o,u,1),--this.size,!0}function Fw(n){var o=this.__data__,u=hs(o,n);return u<0?r:o[u][1]}function Dw(n){return hs(this.__data__,n)>-1}function Nw(n,o){var u=this.__data__,y=hs(u,n);return y<0?(++this.size,u.push([n,o])):u[y][1]=o,this}Ir.prototype.clear=Lw,Ir.prototype.delete=Mw,Ir.prototype.get=Fw,Ir.prototype.has=Dw,Ir.prototype.set=Nw;function Lr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function jw(){this.size=0,this.__data__={hash:new En,map:new(Pi||Ir),string:new En}}function zw(n){var o=As(this,n).delete(n);return this.size-=o?1:0,o}function Ww(n){return As(this,n).get(n)}function Bw(n){return As(this,n).has(n)}function Uw(n,o){var u=As(this,n),y=u.size;return u.set(n,o),this.size+=u.size==y?0:1,this}Lr.prototype.clear=jw,Lr.prototype.delete=zw,Lr.prototype.get=Ww,Lr.prototype.has=Bw,Lr.prototype.set=Uw;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Lr;++o<u;)this.add(n[o])}function Hw(n){return this.__data__.set(n,f),this}function qw(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Hw,_n.prototype.has=qw;function ur(n){var o=this.__data__=new Ir(n);this.size=o.size}function Zw(){this.__data__=new Ir,this.size=0}function Gw(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Kw(n){return this.__data__.get(n)}function Vw(n){return this.__data__.has(n)}function Xw(n,o){var u=this.__data__;if(u instanceof Ir){var y=u.__data__;if(!Pi||y.length<s-1)return y.push([n,o]),this.size=++u.size,this;u=this.__data__=new Lr(y)}return u.set(n,o),this.size=u.size,this}ur.prototype.clear=Zw,ur.prototype.delete=Gw,ur.prototype.get=Kw,ur.prototype.has=Vw,ur.prototype.set=Xw;function Od(n,o){var u=we(n),y=!u&&Pn(n),_=!u&&!y&&sn(n),T=!u&&!y&&!_&&ai(n),P=u||y||_||T,I=P?yu(n.length,sw):[],z=I.length;for(var V in n)(o||Fe.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Nr(V,z)))&&I.push(V);return I}function Ad(n){var o=n.length;return o?n[Mu(0,o-1)]:r}function Yw(n,o){return Ts(Pt(n),On(o,0,n.length))}function Jw(n){return Ts(Pt(n))}function Ou(n,o,u){(u!==r&&!lr(n[o],u)||u===r&&!(o in n))&&Mr(n,o,u)}function Ii(n,o,u){var y=n[o];(!(Fe.call(n,o)&&lr(y,u))||u===r&&!(o in n))&&Mr(n,o,u)}function hs(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function Qw(n,o,u,y){return tn(n,function(_,T,P){o(y,_,u(_),P)}),y}function Td(n,o){return n&&yr(o,lt(o),n)}function e1(n,o){return n&&yr(o,kt(o),n)}function Mr(n,o,u){o=="__proto__"&&us?us(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Au(n,o){for(var u=-1,y=o.length,_=H(y),T=n==null;++u<y;)_[u]=T?r:sl(n,o[u]);return _}function On(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Jt(n,o,u,y,_,T){var P,I=o&g,z=o&p,V=o&b;if(u&&(P=_?u(n,y,_,T):u(n)),P!==r)return P;if(!Ge(n))return n;var Y=we(n);if(Y){if(P=B1(n),!I)return Pt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==mt;if(sn(n))return Yd(n,I);if(ee==Gt||ee==ce||oe&&!_){if(P=z||oe?{}:vp(n),!I)return z?k1(n,e1(P,n)):C1(n,Td(P,n))}else{if(!je[ee])return _?n:{};P=U1(n,ee,I)}}T||(T=new ur);var le=T.get(n);if(le)return le;T.set(n,P),qp(n)?n.forEach(function(ge){P.add(Jt(ge,o,u,ge,n,T))}):Up(n)&&n.forEach(function(ge,Oe){P.set(Oe,Jt(ge,o,u,Oe,n,T))});var he=V?z?Zu:qu:z?kt:lt,Se=Y?r:he(n);return Vt(Se||n,function(ge,Oe){Se&&(Oe=ge,ge=n[Oe]),Ii(P,Oe,Jt(ge,o,u,Oe,n,T))}),P}function t1(n){var o=lt(n);return function(u){return Rd(u,n,o)}}function Rd(n,o,u){var y=u.length;if(n==null)return!y;for(n=Ne(n);y--;){var _=u[y],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function Pd(n,o,u){if(typeof n!="function")throw new Xt(l);return zi(function(){n.apply(r,u)},o)}function Li(n,o,u,y){var _=-1,T=Yo,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;u&&(o=Ue(o,Dt(u))),y?(T=du,P=!1):o.length>=s&&(T=Ti,P=!1,o=new _n(o));e:for(;++_<I;){var Y=n[_],ee=u==null?Y:u(Y);if(Y=y||Y!==0?Y:0,P&&ee===ee){for(var oe=V;oe--;)if(o[oe]===ee)continue e;z.push(Y)}else T(o,ee,y)||z.push(Y)}return z}var tn=rp(mr),Cd=rp(Ru,!0);function r1(n,o){var u=!0;return tn(n,function(y,_,T){return u=!!o(y,_,T),u}),u}function gs(n,o,u){for(var y=-1,_=n.length;++y<_;){var T=n[y],P=o(T);if(P!=null&&(I===r?P===P&&!jt(P):u(P,I)))var I=P,z=T}return z}function n1(n,o,u,y){var _=n.length;for(u=xe(u),u<0&&(u=-u>_?0:_+u),y=y===r||y>_?_:xe(y),y<0&&(y+=_),y=u>y?0:Gp(y);u<y;)n[u++]=o;return n}function kd(n,o){var u=[];return tn(n,function(y,_,T){o(y,_,T)&&u.push(y)}),u}function pt(n,o,u,y,_){var T=-1,P=n.length;for(u||(u=q1),_||(_=[]);++T<P;){var I=n[T];o>0&&u(I)?o>1?pt(I,o-1,u,y,_):Jr(_,I):y||(_[_.length]=I)}return _}var Tu=np(),$d=np(!0);function mr(n,o){return n&&Tu(n,o,lt)}function Ru(n,o){return n&&$d(n,o,lt)}function vs(n,o){return Yr(o,function(u){return jr(n[u])})}function An(n,o){o=nn(o,n);for(var u=0,y=o.length;n!=null&&u<y;)n=n[br(o[u++])];return u&&u==y?n:r}function Id(n,o,u){var y=o(n);return we(n)?y:Jr(y,u(n))}function _t(n){return n==null?n===r?Ai:qo:Sn&&Sn in Ne(n)?j1(n):J1(n)}function Pu(n,o){return n>o}function i1(n,o){return n!=null&&Fe.call(n,o)}function o1(n,o){return n!=null&&o in Ne(n)}function s1(n,o,u){return n>=bt(o,u)&&n<st(o,u)}function Cu(n,o,u){for(var y=u?du:Yo,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var Y=n[P];P&&o&&(Y=Ue(Y,Dt(o))),z=bt(Y.length,z),I[P]=!u&&(o||_>=120&&Y.length>=120)?new _n(P&&Y):r}Y=n[0];var ee=-1,oe=I[0];e:for(;++ee<_&&V.length<z;){var le=Y[ee],he=o?o(le):le;if(le=u||le!==0?le:0,!(oe?Ti(oe,he):y(V,he,u))){for(P=T;--P;){var Se=I[P];if(!(Se?Ti(Se,he):y(n[P],he,u)))continue e}oe&&oe.push(he),V.push(le)}}return V}function a1(n,o,u,y){return mr(n,function(_,T,P){o(y,u(_),T,P)}),y}function Mi(n,o,u){o=nn(o,n),n=wp(n,o);var y=n==null?n:n[br(er(o))];return y==null?r:Ft(y,n,u)}function Ld(n){return Xe(n)&&_t(n)==ce}function u1(n){return Xe(n)&&_t(n)==Xr}function l1(n){return Xe(n)&&_t(n)==Ee}function Fi(n,o,u,y,_){return n===o?!0:n==null||o==null||!Xe(n)&&!Xe(o)?n!==n&&o!==o:c1(n,o,u,y,Fi,_)}function c1(n,o,u,y,_,T){var P=we(n),I=we(o),z=P?fe:wt(n),V=I?fe:wt(o);z=z==ce?Gt:z,V=V==ce?Gt:V;var Y=z==Gt,ee=V==Gt,oe=z==V;if(oe&&sn(n)){if(!sn(o))return!1;P=!0,Y=!1}if(oe&&!Y)return T||(T=new ur),P||ai(n)?pp(n,o,u,y,_,T):D1(n,o,z,u,y,_,T);if(!(u&x)){var le=Y&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(o,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?o.value():o;return T||(T=new ur),_(Se,ge,u,y,T)}}return oe?(T||(T=new ur),N1(n,o,u,y,_,T)):!1}function f1(n){return Xe(n)&&wt(n)==ut}function ku(n,o,u,y){var _=u.length,T=_,P=!y;if(n==null)return!T;for(n=Ne(n);_--;){var I=u[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=u[_];var z=I[0],V=n[z],Y=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new ur;if(y)var oe=y(V,Y,z,n,o,ee);if(!(oe===r?Fi(Y,V,x|d,y,ee):oe))return!1}}return!0}function Md(n){if(!Ge(n)||G1(n))return!1;var o=jr(n)?fw:tb;return o.test(Rn(n))}function d1(n){return Xe(n)&&_t(n)==Mt}function p1(n){return Xe(n)&&wt(n)==yt}function h1(n){return Xe(n)&&Is(n.length)&&!!Be[_t(n)]}function Fd(n){return typeof n=="function"?n:n==null?$t:typeof n=="object"?we(n)?jd(n[0],n[1]):Nd(n):ih(n)}function $u(n){if(!ji(n))return mw(n);var o=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&o.push(u);return o}function g1(n){if(!Ge(n))return Y1(n);var o=ji(n),u=[];for(var y in n)y=="constructor"&&(o||!Fe.call(n,y))||u.push(y);return u}function Iu(n,o){return n<o}function Dd(n,o){var u=-1,y=Ct(n)?H(n.length):[];return tn(n,function(_,T,P){y[++u]=o(_,T,P)}),y}function Nd(n){var o=Ku(n);return o.length==1&&o[0][2]?yp(o[0][0],o[0][1]):function(u){return u===n||ku(u,n,o)}}function jd(n,o){return Xu(n)&&mp(o)?yp(br(n),o):function(u){var y=sl(u,n);return y===r&&y===o?al(u,n):Fi(o,y,x|d)}}function ms(n,o,u,y,_){n!==o&&Tu(o,function(T,P){if(_||(_=new ur),Ge(T))v1(n,o,P,u,ms,y,_);else{var I=y?y(Ju(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Ou(n,P,I)}},kt)}function v1(n,o,u,y,_,T,P){var I=Ju(n,u),z=Ju(o,u),V=P.get(z);if(V){Ou(n,u,V);return}var Y=T?T(I,z,u+"",n,o,P):r,ee=Y===r;if(ee){var oe=we(z),le=!oe&&sn(z),he=!oe&&!le&&ai(z);Y=z,oe||le||he?we(I)?Y=I:Je(I)?Y=Pt(I):le?(ee=!1,Y=Yd(z,!0)):he?(ee=!1,Y=Jd(z,!0)):Y=[]:Wi(z)||Pn(z)?(Y=I,Pn(I)?Y=Kp(I):(!Ge(I)||jr(I))&&(Y=vp(z))):ee=!1}ee&&(P.set(z,Y),_(Y,z,y,T,P),P.delete(z)),Ou(n,u,Y)}function zd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Nr(o,u)?n[o]:r}function Wd(n,o,u){o.length?o=Ue(o,function(T){return we(T)?function(P){return An(P,T.length===1?T[0]:T)}:T}):o=[$t];var y=-1;o=Ue(o,Dt(pe()));var _=Dd(n,function(T,P,I){var z=Ue(o,function(V){return V(T)});return{criteria:z,index:++y,value:T}});return Ub(_,function(T,P){return P1(T,P,u)})}function m1(n,o){return Bd(n,o,function(u,y){return al(n,y)})}function Bd(n,o,u){for(var y=-1,_=o.length,T={};++y<_;){var P=o[y],I=An(n,P);u(I,P)&&Di(T,nn(P,n),I)}return T}function y1(n){return function(o){return An(o,n)}}function Lu(n,o,u,y){var _=y?Bb:Xn,T=-1,P=o.length,I=n;for(n===o&&(o=Pt(o)),u&&(I=Ue(n,Dt(u)));++T<P;)for(var z=0,V=o[T],Y=u?u(V):V;(z=_(I,Y,z,y))>-1;)I!==n&&as.call(I,z,1),as.call(n,z,1);return n}function Ud(n,o){for(var u=n?o.length:0,y=u-1;u--;){var _=o[u];if(u==y||_!==T){var T=_;Nr(_)?as.call(n,_,1):Nu(n,_)}}return n}function Mu(n,o){return n+cs(Ed()*(o-n+1))}function b1(n,o,u,y){for(var _=-1,T=st(ls((o-n)/(u||1)),0),P=H(T);T--;)P[y?T:++_]=n,n+=u;return P}function Fu(n,o){var u="";if(!n||o<1||o>te)return u;do o%2&&(u+=n),o=cs(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Qu(bp(n,o,$t),n+"")}function w1(n){return Ad(ui(n))}function x1(n,o){var u=ui(n);return Ts(u,On(o,0,u.length))}function Di(n,o,u,y){if(!Ge(n))return n;o=nn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=br(o[_]),V=u;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var Y=I[z];V=y?y(Y,z,I):r,V===r&&(V=Ge(Y)?Y:Nr(o[_+1])?[]:{})}Ii(I,z,V),I=I[z]}return n}var Hd=fs?function(n,o){return fs.set(n,o),n}:$t,S1=us?function(n,o){return us(n,"toString",{configurable:!0,enumerable:!1,value:ll(o),writable:!0})}:$t;function E1(n){return Ts(ui(n))}function Qt(n,o,u){var y=-1,_=n.length;o<0&&(o=-o>_?0:_+o),u=u>_?_:u,u<0&&(u+=_),_=o>u?0:u-o>>>0,o>>>=0;for(var T=H(_);++y<_;)T[y]=n[y+o];return T}function _1(n,o){var u;return tn(n,function(y,_,T){return u=o(y,_,T),!u}),!!u}function ys(n,o,u){var y=0,_=n==null?y:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;y<_;){var T=y+_>>>1,P=n[T];P!==null&&!jt(P)&&(u?P<=o:P<o)?y=T+1:_=T}return _}return Du(n,o,$t,u)}function Du(n,o,u,y){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=u(o);for(var P=o!==o,I=o===null,z=jt(o),V=o===r;_<T;){var Y=cs((_+T)/2),ee=u(n[Y]),oe=ee!==r,le=ee===null,he=ee===ee,Se=jt(ee);if(P)var ge=y||he;else V?ge=he&&(y||oe):I?ge=he&&oe&&(y||!le):z?ge=he&&oe&&!le&&(y||!Se):le||Se?ge=!1:ge=y?ee<=o:ee<o;ge?_=Y+1:T=Y}return bt(T,se)}function qd(n,o){for(var u=-1,y=n.length,_=0,T=[];++u<y;){var P=n[u],I=o?o(P):P;if(!u||!lr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function Zd(n){return typeof n=="number"?n:jt(n)?Z:+n}function Nt(n){if(typeof n=="string")return n;if(we(n))return Ue(n,Nt)+"";if(jt(n))return _d?_d.call(n):"";var o=n+"";return o=="0"&&1/n==-X?"-0":o}function rn(n,o,u){var y=-1,_=Yo,T=n.length,P=!0,I=[],z=I;if(u)P=!1,_=du;else if(T>=s){var V=o?null:M1(n);if(V)return Qo(V);P=!1,_=Ti,z=new _n}else z=o?[]:I;e:for(;++y<T;){var Y=n[y],ee=o?o(Y):Y;if(Y=u||Y!==0?Y:0,P&&ee===ee){for(var oe=z.length;oe--;)if(z[oe]===ee)continue e;o&&z.push(ee),I.push(Y)}else _(z,ee,u)||(z!==I&&z.push(ee),I.push(Y))}return I}function Nu(n,o){return o=nn(o,n),n=wp(n,o),n==null||delete n[br(er(o))]}function Gd(n,o,u,y){return Di(n,o,u(An(n,o)),y)}function bs(n,o,u,y){for(var _=n.length,T=y?_:-1;(y?T--:++T<_)&&o(n[T],T,n););return u?Qt(n,y?0:T,y?T+1:_):Qt(n,y?T+1:0,y?_:T)}function Kd(n,o){var u=n;return u instanceof Te&&(u=u.value()),pu(o,function(y,_){return _.func.apply(_.thisArg,Jr([y],_.args))},u)}function ju(n,o,u){var y=n.length;if(y<2)return y?rn(n[0]):[];for(var _=-1,T=H(y);++_<y;)for(var P=n[_],I=-1;++I<y;)I!=_&&(T[_]=Li(T[_]||P,n[I],o,u));return rn(pt(T,1),o,u)}function Vd(n,o,u){for(var y=-1,_=n.length,T=o.length,P={};++y<_;){var I=y<T?o[y]:r;u(P,n[y],I)}return P}function zu(n){return Je(n)?n:[]}function Wu(n){return typeof n=="function"?n:$t}function nn(n,o){return we(n)?n:Xu(n,o)?[n]:_p(ke(n))}var O1=_e;function on(n,o,u){var y=n.length;return u=u===r?y:u,!o&&u>=y?n:Qt(n,o,u)}var Xd=dw||function(n){return dt.clearTimeout(n)};function Yd(n,o){if(o)return n.slice();var u=n.length,y=yd?yd(u):new n.constructor(u);return n.copy(y),y}function Bu(n){var o=new n.constructor(n.byteLength);return new os(o).set(new os(n)),o}function A1(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function T1(n){var o=new n.constructor(n.source,Lf.exec(n));return o.lastIndex=n.lastIndex,o}function R1(n){return $i?Ne($i.call(n)):{}}function Jd(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Qd(n,o){if(n!==o){var u=n!==r,y=n===null,_=n===n,T=jt(n),P=o!==r,I=o===null,z=o===o,V=jt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||y&&P&&z||!u&&z||!_)return 1;if(!y&&!T&&!V&&n<o||V&&u&&_&&!y&&!T||I&&u&&_||!P&&_||!z)return-1}return 0}function P1(n,o,u){for(var y=-1,_=n.criteria,T=o.criteria,P=_.length,I=u.length;++y<P;){var z=Qd(_[y],T[y]);if(z){if(y>=I)return z;var V=u[y];return z*(V=="desc"?-1:1)}}return n.index-o.index}function ep(n,o,u,y){for(var _=-1,T=n.length,P=u.length,I=-1,z=o.length,V=st(T-P,0),Y=H(z+V),ee=!y;++I<z;)Y[I]=o[I];for(;++_<P;)(ee||_<T)&&(Y[u[_]]=n[_]);for(;V--;)Y[I++]=n[_++];return Y}function tp(n,o,u,y){for(var _=-1,T=n.length,P=-1,I=u.length,z=-1,V=o.length,Y=st(T-I,0),ee=H(Y+V),oe=!y;++_<Y;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(oe||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Pt(n,o){var u=-1,y=n.length;for(o||(o=H(y));++u<y;)o[u]=n[u];return o}function yr(n,o,u,y){var _=!u;u||(u={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=y?y(u[I],n[I],I,u,n):r;z===r&&(z=n[I]),_?Mr(u,I,z):Ii(u,I,z)}return u}function C1(n,o){return yr(n,Vu(n),o)}function k1(n,o){return yr(n,hp(n),o)}function ws(n,o){return function(u,y){var _=we(u)?Fb:Qw,T=o?o():{};return _(u,n,pe(y,2),T)}}function ii(n){return _e(function(o,u){var y=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&Ot(u[0],u[1],P)&&(T=_<3?r:T,_=1),o=Ne(o);++y<_;){var I=u[y];I&&n(o,I,y,T)}return o})}function rp(n,o){return function(u,y){if(u==null)return u;if(!Ct(u))return n(u,y);for(var _=u.length,T=o?_:-1,P=Ne(u);(o?T--:++T<_)&&y(P[T],T,P)!==!1;);return u}}function np(n){return function(o,u,y){for(var _=-1,T=Ne(o),P=y(o),I=P.length;I--;){var z=P[n?I:++_];if(u(T[z],z,T)===!1)break}return o}}function $1(n,o,u){var y=o&w,_=Ni(n);function T(){var P=this&&this!==dt&&this instanceof T?_:n;return P.apply(y?u:this,arguments)}return T}function ip(n){return function(o){o=ke(o);var u=Yn(o)?ar(o):r,y=u?u[0]:o.charAt(0),_=u?on(u,1).join(""):o.slice(1);return y[n]()+_}}function oi(n){return function(o){return pu(rh(th(o).replace(Sb,"")),n,"")}}function Ni(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=ni(n.prototype),y=n.apply(u,o);return Ge(y)?y:u}}function I1(n,o,u){var y=Ni(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=si(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:Qr(P,z);if(T-=V.length,T<u)return lp(n,o,xs,_.placeholder,r,P,V,r,r,u-T);var Y=this&&this!==dt&&this instanceof _?y:n;return Ft(Y,this,P)}return _}function op(n){return function(o,u,y){var _=Ne(o);if(!Ct(o)){var T=pe(u,3);o=lt(o),u=function(I){return T(_[I],I,_)}}var P=n(o,u,y);return P>-1?_[T?o[P]:P]:r}}function sp(n){return Dr(function(o){var u=o.length,y=u,_=Yt.prototype.thru;for(n&&o.reverse();y--;){var T=o[y];if(typeof T!="function")throw new Xt(l);if(_&&!P&&Os(T)=="wrapper")var P=new Yt([],!0)}for(y=P?y:u;++y<u;){T=o[y];var I=Os(T),z=I=="wrapper"?Gu(T):r;z&&Yu(z[0])&&z[1]==(B|E|O|M)&&!z[4].length&&z[9]==1?P=P[Os(z[0])].apply(P,z[3]):P=T.length==1&&Yu(T)?P[I]():P.thru(T)}return function(){var V=arguments,Y=V[0];if(P&&V.length==1&&we(Y))return P.plant(Y).value();for(var ee=0,oe=u?o[ee].apply(this,V):Y;++ee<u;)oe=o[ee].call(this,oe);return oe}})}function xs(n,o,u,y,_,T,P,I,z,V){var Y=o&B,ee=o&w,oe=o&h,le=o&(E|R),he=o&F,Se=oe?r:Ni(n);function ge(){for(var Oe=arguments.length,Re=H(Oe),zt=Oe;zt--;)Re[zt]=arguments[zt];if(le)var At=si(ge),Wt=qb(Re,At);if(y&&(Re=ep(Re,y,_,le)),T&&(Re=tp(Re,T,P,le)),Oe-=Wt,le&&Oe<V){var Qe=Qr(Re,At);return lp(n,o,xs,ge.placeholder,u,Re,Qe,I,z,V-Oe)}var cr=ee?u:this,Wr=oe?cr[n]:n;return Oe=Re.length,I?Re=Q1(Re,I):he&&Oe>1&&Re.reverse(),Y&&z<Oe&&(Re.length=z),this&&this!==dt&&this instanceof ge&&(Wr=Se||Ni(Wr)),Wr.apply(cr,Re)}return ge}function ap(n,o){return function(u,y){return a1(u,n,o(y),{})}}function Ss(n,o){return function(u,y){var _;if(u===r&&y===r)return o;if(u!==r&&(_=u),y!==r){if(_===r)return y;typeof u=="string"||typeof y=="string"?(u=Nt(u),y=Nt(y)):(u=Zd(u),y=Zd(y)),_=n(u,y)}return _}}function Uu(n){return Dr(function(o){return o=Ue(o,Dt(pe())),_e(function(u){var y=this;return n(o,function(_){return Ft(_,y,u)})})})}function Es(n,o){o=o===r?" ":Nt(o);var u=o.length;if(u<2)return u?Fu(o,n):o;var y=Fu(o,ls(n/Jn(o)));return Yn(o)?on(ar(y),0,n).join(""):y.slice(0,n)}function L1(n,o,u,y){var _=o&w,T=Ni(n);function P(){for(var I=-1,z=arguments.length,V=-1,Y=y.length,ee=H(Y+z),oe=this&&this!==dt&&this instanceof P?T:n;++V<Y;)ee[V]=y[V];for(;z--;)ee[V++]=arguments[++I];return Ft(oe,_?u:this,ee)}return P}function up(n){return function(o,u,y){return y&&typeof y!="number"&&Ot(o,u,y)&&(u=y=r),o=zr(o),u===r?(u=o,o=0):u=zr(u),y=y===r?o<u?1:-1:zr(y),b1(o,u,y,n)}}function _s(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),n(o,u)}}function lp(n,o,u,y,_,T,P,I,z,V){var Y=o&E,ee=Y?P:r,oe=Y?r:P,le=Y?T:r,he=Y?r:T;o|=Y?O:k,o&=~(Y?k:O),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,I,z,V],ge=u.apply(r,Se);return Yu(n)&&xp(ge,Se),ge.placeholder=y,Sp(ge,n,o)}function Hu(n){var o=ot[n];return function(u,y){if(u=tr(u),y=y==null?0:bt(xe(y),292),y&&Sd(u)){var _=(ke(u)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+y));return _=(ke(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-y))}return o(u)}}var M1=ti&&1/Qo(new ti([,-0]))[1]==X?function(n){return new ti(n)}:dl;function cp(n){return function(o){var u=wt(o);return u==ut?wu(o):u==yt?Jb(o):Hb(o,n(o))}}function Fr(n,o,u,y,_,T,P,I){var z=o&h;if(!z&&typeof n!="function")throw new Xt(l);var V=y?y.length:0;if(V||(o&=-97,y=_=r),P=P===r?P:st(xe(P),0),I=I===r?I:xe(I),V-=_?_.length:0,o&k){var Y=y,ee=_;y=_=r}var oe=z?r:Gu(n),le=[n,o,u,y,_,Y,ee,T,P,I];if(oe&&X1(le,oe),n=le[0],o=le[1],u=le[2],y=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:st(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==w)var he=$1(n,o,u);else o==E||o==R?he=I1(n,o,I):(o==O||o==(w|O))&&!_.length?he=L1(n,o,u,y):he=xs.apply(r,le);var Se=oe?Hd:xp;return Sp(Se(he,le),n,o)}function fp(n,o,u,y){return n===r||lr(n,ei[u])&&!Fe.call(y,u)?o:n}function dp(n,o,u,y,_,T){return Ge(n)&&Ge(o)&&(T.set(o,n),ms(n,o,r,dp,T),T.delete(o)),n}function F1(n){return Wi(n)?r:n}function pp(n,o,u,y,_,T){var P=u&x,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),Y=T.get(o);if(V&&Y)return V==o&&Y==n;var ee=-1,oe=!0,le=u&d?new _n:r;for(T.set(n,o),T.set(o,n);++ee<I;){var he=n[ee],Se=o[ee];if(y)var ge=P?y(Se,he,ee,o,n,T):y(he,Se,ee,n,o,T);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!hu(o,function(Oe,Re){if(!Ti(le,Re)&&(he===Oe||_(he,Oe,u,y,T)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,u,y,T))){oe=!1;break}}return T.delete(n),T.delete(o),oe}function D1(n,o,u,y,_,T,P){switch(u){case $r:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Xr:return!(n.byteLength!=o.byteLength||!T(new os(n),new os(o)));case ve:case Ee:case vr:return lr(+n,+o);case Ze:return n.name==o.name&&n.message==o.message;case Mt:case Kr:return n==o+"";case ut:var I=wu;case yt:var z=y&x;if(I||(I=Qo),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;y|=d,P.set(n,o);var Y=pp(I(n),I(o),y,_,T,P);return P.delete(n),Y;case wn:if($i)return $i.call(n)==$i.call(o)}return!1}function N1(n,o,u,y,_,T){var P=u&x,I=qu(n),z=I.length,V=qu(o),Y=V.length;if(z!=Y&&!P)return!1;for(var ee=z;ee--;){var oe=I[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=T.get(n),he=T.get(o);if(le&&he)return le==o&&he==n;var Se=!0;T.set(n,o),T.set(o,n);for(var ge=P;++ee<z;){oe=I[ee];var Oe=n[oe],Re=o[oe];if(y)var zt=P?y(Re,Oe,oe,o,n,T):y(Oe,Re,oe,n,o,T);if(!(zt===r?Oe===Re||_(Oe,Re,u,y,T):zt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var At=n.constructor,Wt=o.constructor;At!=Wt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Wt=="function"&&Wt instanceof Wt)&&(Se=!1)}return T.delete(n),T.delete(o),Se}function Dr(n){return Qu(bp(n,r,Rp),n+"")}function qu(n){return Id(n,lt,Vu)}function Zu(n){return Id(n,kt,hp)}var Gu=fs?function(n){return fs.get(n)}:dl;function Os(n){for(var o=n.name+"",u=ri[o],y=Fe.call(ri,o)?u.length:0;y--;){var _=u[y],T=_.func;if(T==null||T==n)return _.name}return o}function si(n){var o=Fe.call(A,"placeholder")?A:n;return o.placeholder}function pe(){var n=A.iteratee||cl;return n=n===cl?Fd:n,arguments.length?n(arguments[0],arguments[1]):n}function As(n,o){var u=n.__data__;return Z1(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Ku(n){for(var o=lt(n),u=o.length;u--;){var y=o[u],_=n[y];o[u]=[y,_,mp(_)]}return o}function Tn(n,o){var u=Vb(n,o);return Md(u)?u:r}function j1(n){var o=Fe.call(n,Sn),u=n[Sn];try{n[Sn]=r;var y=!0}catch{}var _=ns.call(n);return y&&(o?n[Sn]=u:delete n[Sn]),_}var Vu=Su?function(n){return n==null?[]:(n=Ne(n),Yr(Su(n),function(o){return wd.call(n,o)}))}:pl,hp=Su?function(n){for(var o=[];n;)Jr(o,Vu(n)),n=ss(n);return o}:pl,wt=_t;(Eu&&wt(new Eu(new ArrayBuffer(1)))!=$r||Pi&&wt(new Pi)!=ut||_u&&wt(_u.resolve())!=Zo||ti&&wt(new ti)!=yt||Ci&&wt(new Ci)!=Vr)&&(wt=function(n){var o=_t(n),u=o==Gt?n.constructor:r,y=u?Rn(u):"";if(y)switch(y){case xw:return $r;case Sw:return ut;case Ew:return Zo;case _w:return yt;case Ow:return Vr}return o});function z1(n,o,u){for(var y=-1,_=u.length;++y<_;){var T=u[y],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=bt(o,n+P);break;case"takeRight":n=st(n,o-P);break}}return{start:n,end:o}}function W1(n){var o=n.match(G0);return o?o[1].split(K0):[]}function gp(n,o,u){o=nn(o,n);for(var y=-1,_=o.length,T=!1;++y<_;){var P=br(o[y]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++y!=_?T:(_=n==null?0:n.length,!!_&&Is(_)&&Nr(P,_)&&(we(n)||Pn(n)))}function B1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function vp(n){return typeof n.constructor=="function"&&!ji(n)?ni(ss(n)):{}}function U1(n,o,u){var y=n.constructor;switch(o){case Xr:return Bu(n);case ve:case Ee:return new y(+n);case $r:return A1(n,u);case Ka:case Va:case Xa:case Ya:case Ja:case Qa:case eu:case tu:case ru:return Jd(n,u);case ut:return new y;case vr:case Kr:return new y(n);case Mt:return T1(n);case yt:return new y;case wn:return R1(n)}}function H1(n,o){var u=o.length;if(!u)return n;var y=u-1;return o[y]=(u>1?"& ":"")+o[y],o=o.join(u>2?", ":" "),n.replace(Z0,`{
|
|
183
|
+
/* [wrapped with `+o+`] */
|
|
184
|
+
`)}function q1(n){return we(n)||Pn(n)||!!(xd&&n&&n[xd])}function Nr(n,o){var u=typeof n;return o=o??te,!!o&&(u=="number"||u!="symbol"&&nb.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Ge(u))return!1;var y=typeof o;return(y=="number"?Ct(u)&&Nr(o,u.length):y=="string"&&o in u)?lr(u[o],n):!1}function Xu(n,o){if(we(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||jt(n)?!0:B0.test(n)||!W0.test(n)||o!=null&&n in Ne(o)}function Z1(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Yu(n){var o=Os(n),u=A[o];if(typeof u!="function"||!(o in Te.prototype))return!1;if(n===u)return!0;var y=Gu(u);return!!y&&n===y[0]}function G1(n){return!!md&&md in n}var K1=ts?jr:hl;function ji(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ei;return n===u}function mp(n){return n===n&&!Ge(n)}function yp(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Ne(u))}}function V1(n){var o=ks(n,function(y){return u.size===m&&u.clear(),y}),u=o.cache;return o}function X1(n,o){var u=n[1],y=o[1],_=u|y,T=_<(w|h|B),P=y==B&&u==E||y==B&&u==M&&n[7].length<=o[8]||y==(B|M)&&o[7].length<=o[8]&&u==E;if(!(T||P))return n;y&w&&(n[2]=o[2],_|=u&w?0:S);var I=o[3];if(I){var z=n[3];n[3]=z?ep(z,I,o[4]):I,n[4]=z?Qr(n[3],v):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?tp(z,I,o[6]):I,n[6]=z?Qr(n[5],v):o[6]),I=o[7],I&&(n[7]=I),y&B&&(n[8]=n[8]==null?o[8]:bt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function Y1(n){var o=[];if(n!=null)for(var u in Ne(n))o.push(u);return o}function J1(n){return ns.call(n)}function bp(n,o,u){return o=st(o===r?n.length-1:o,0),function(){for(var y=arguments,_=-1,T=st(y.length-o,0),P=H(T);++_<T;)P[_]=y[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=y[_];return I[o]=u(P),Ft(n,this,I)}}function wp(n,o){return o.length<2?n:An(n,Qt(o,0,-1))}function Q1(n,o){for(var u=n.length,y=bt(o.length,u),_=Pt(n);y--;){var T=o[y];n[y]=Nr(T,u)?_[T]:r}return n}function Ju(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var xp=Ep(Hd),zi=hw||function(n,o){return dt.setTimeout(n,o)},Qu=Ep(S1);function Sp(n,o,u){var y=o+"";return Qu(n,H1(y,ex(W1(y),u)))}function Ep(n){var o=0,u=0;return function(){var y=yw(),_=U-(y-u);if(u=y,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Ts(n,o){var u=-1,y=n.length,_=y-1;for(o=o===r?y:o;++u<o;){var T=Mu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var _p=V1(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(U0,function(u,y,_,T){o.push(_?T.replace(Y0,"$1"):y||u)}),o});function br(n){if(typeof n=="string"||jt(n))return n;var o=n+"";return o=="0"&&1/n==-X?"-0":o}function Rn(n){if(n!=null){try{return rs.call(n)}catch{}try{return n+""}catch{}}return""}function ex(n,o){return Vt(ne,function(u){var y="_."+u[0];o&u[1]&&!Yo(n,y)&&n.push(y)}),n.sort()}function Op(n){if(n instanceof Te)return n.clone();var o=new Yt(n.__wrapped__,n.__chain__);return o.__actions__=Pt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function tx(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=st(xe(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var _=0,T=0,P=H(ls(y/o));_<y;)P[T++]=Qt(n,_,_+=o);return P}function rx(n){for(var o=-1,u=n==null?0:n.length,y=0,_=[];++o<u;){var T=n[o];T&&(_[y++]=T)}return _}function nx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),u=arguments[0],y=n;y--;)o[y-1]=arguments[y];return Jr(we(u)?Pt(u):[u],pt(o,1))}var ix=_e(function(n,o){return Je(n)?Li(n,pt(o,1,Je,!0)):[]}),ox=_e(function(n,o){var u=er(o);return Je(u)&&(u=r),Je(n)?Li(n,pt(o,1,Je,!0),pe(u,2)):[]}),sx=_e(function(n,o){var u=er(o);return Je(u)&&(u=r),Je(n)?Li(n,pt(o,1,Je,!0),r,u):[]});function ax(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),Qt(n,o<0?0:o,y)):[]}function ux(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,0,o<0?0:o)):[]}function lx(n,o){return n&&n.length?bs(n,pe(o,3),!0,!0):[]}function cx(n,o){return n&&n.length?bs(n,pe(o,3),!0):[]}function fx(n,o,u,y){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,y=_),n1(n,o,u,y)):[]}function Ap(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=st(y+_,0)),Jo(n,pe(o,3),_)}function Tp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y-1;return u!==r&&(_=xe(u),_=u<0?st(y+_,0):bt(_,y-1)),Jo(n,pe(o,3),_,!0)}function Rp(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function dx(n){var o=n==null?0:n.length;return o?pt(n,X):[]}function px(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:xe(o),pt(n,o)):[]}function hx(n){for(var o=-1,u=n==null?0:n.length,y={};++o<u;){var _=n[o];y[_[0]]=_[1]}return y}function Pp(n){return n&&n.length?n[0]:r}function gx(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=st(y+_,0)),Xn(n,o,_)}function vx(n){var o=n==null?0:n.length;return o?Qt(n,0,-1):[]}var mx=_e(function(n){var o=Ue(n,zu);return o.length&&o[0]===n[0]?Cu(o):[]}),yx=_e(function(n){var o=er(n),u=Ue(n,zu);return o===er(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Cu(u,pe(o,2)):[]}),bx=_e(function(n){var o=er(n),u=Ue(n,zu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Cu(u,r,o):[]});function wx(n,o){return n==null?"":vw.call(n,o)}function er(n){var o=n==null?0:n.length;return o?n[o-1]:r}function xx(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y;return u!==r&&(_=xe(u),_=_<0?st(y+_,0):bt(_,y-1)),o===o?ew(n,o,_):Jo(n,ld,_,!0)}function Sx(n,o){return n&&n.length?zd(n,xe(o)):r}var Ex=_e(Cp);function Cp(n,o){return n&&n.length&&o&&o.length?Lu(n,o):n}function _x(n,o,u){return n&&n.length&&o&&o.length?Lu(n,o,pe(u,2)):n}function Ox(n,o,u){return n&&n.length&&o&&o.length?Lu(n,o,r,u):n}var Ax=Dr(function(n,o){var u=n==null?0:n.length,y=Au(n,o);return Ud(n,Ue(o,function(_){return Nr(_,u)?+_:_}).sort(Qd)),y});function Tx(n,o){var u=[];if(!(n&&n.length))return u;var y=-1,_=[],T=n.length;for(o=pe(o,3);++y<T;){var P=n[y];o(P,y,n)&&(u.push(P),_.push(y))}return Ud(n,_),u}function el(n){return n==null?n:ww.call(n)}function Rx(n,o,u){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=y):(o=o==null?0:xe(o),u=u===r?y:xe(u)),Qt(n,o,u)):[]}function Px(n,o){return ys(n,o)}function Cx(n,o,u){return Du(n,o,pe(u,2))}function kx(n,o){var u=n==null?0:n.length;if(u){var y=ys(n,o);if(y<u&&lr(n[y],o))return y}return-1}function $x(n,o){return ys(n,o,!0)}function Ix(n,o,u){return Du(n,o,pe(u,2),!0)}function Lx(n,o){var u=n==null?0:n.length;if(u){var y=ys(n,o,!0)-1;if(lr(n[y],o))return y}return-1}function Mx(n){return n&&n.length?qd(n):[]}function Fx(n,o){return n&&n.length?qd(n,pe(o,2)):[]}function Dx(n){var o=n==null?0:n.length;return o?Qt(n,1,o):[]}function Nx(n,o,u){return n&&n.length?(o=u||o===r?1:xe(o),Qt(n,0,o<0?0:o)):[]}function jx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,o<0?0:o,y)):[]}function zx(n,o){return n&&n.length?bs(n,pe(o,3),!1,!0):[]}function Wx(n,o){return n&&n.length?bs(n,pe(o,3)):[]}var Bx=_e(function(n){return rn(pt(n,1,Je,!0))}),Ux=_e(function(n){var o=er(n);return Je(o)&&(o=r),rn(pt(n,1,Je,!0),pe(o,2))}),Hx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,rn(pt(n,1,Je,!0),r,o)});function qx(n){return n&&n.length?rn(n):[]}function Zx(n,o){return n&&n.length?rn(n,pe(o,2)):[]}function Gx(n,o){return o=typeof o=="function"?o:r,n&&n.length?rn(n,r,o):[]}function tl(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(Je(u))return o=st(u.length,o),!0}),yu(o,function(u){return Ue(n,gu(u))})}function kp(n,o){if(!(n&&n.length))return[];var u=tl(n);return o==null?u:Ue(u,function(y){return Ft(o,r,y)})}var Kx=_e(function(n,o){return Je(n)?Li(n,o):[]}),Vx=_e(function(n){return ju(Yr(n,Je))}),Xx=_e(function(n){var o=er(n);return Je(o)&&(o=r),ju(Yr(n,Je),pe(o,2))}),Yx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,ju(Yr(n,Je),r,o)}),Jx=_e(tl);function Qx(n,o){return Vd(n||[],o||[],Ii)}function eS(n,o){return Vd(n||[],o||[],Di)}var tS=_e(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,kp(n,u)});function $p(n){var o=A(n);return o.__chain__=!0,o}function rS(n,o){return o(n),n}function Rs(n,o){return o(n)}var nS=Dr(function(n){var o=n.length,u=o?n[0]:0,y=this.__wrapped__,_=function(T){return Au(T,n)};return o>1||this.__actions__.length||!(y instanceof Te)||!Nr(u)?this.thru(_):(y=y.slice(u,+u+(o?1:0)),y.__actions__.push({func:Rs,args:[_],thisArg:r}),new Yt(y,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function iS(){return $p(this)}function oS(){return new Yt(this.value(),this.__chain__)}function sS(){this.__values__===r&&(this.__values__=Zp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function aS(){return this}function uS(n){for(var o,u=this;u instanceof ps;){var y=Op(u);y.__index__=0,y.__values__=r,o?_.__wrapped__=y:o=y;var _=y;u=u.__wrapped__}return _.__wrapped__=n,o}function lS(){var n=this.__wrapped__;if(n instanceof Te){var o=n;return this.__actions__.length&&(o=new Te(this)),o=o.reverse(),o.__actions__.push({func:Rs,args:[el],thisArg:r}),new Yt(o,this.__chain__)}return this.thru(el)}function cS(){return Kd(this.__wrapped__,this.__actions__)}var fS=ws(function(n,o,u){Fe.call(n,u)?++n[u]:Mr(n,u,1)});function dS(n,o,u){var y=we(n)?ad:r1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}function pS(n,o){var u=we(n)?Yr:kd;return u(n,pe(o,3))}var hS=op(Ap),gS=op(Tp);function vS(n,o){return pt(Ps(n,o),1)}function mS(n,o){return pt(Ps(n,o),X)}function yS(n,o,u){return u=u===r?1:xe(u),pt(Ps(n,o),u)}function Ip(n,o){var u=we(n)?Vt:tn;return u(n,pe(o,3))}function Lp(n,o){var u=we(n)?Db:Cd;return u(n,pe(o,3))}var bS=ws(function(n,o,u){Fe.call(n,u)?n[u].push(o):Mr(n,u,[o])});function wS(n,o,u,y){n=Ct(n)?n:ui(n),u=u&&!y?xe(u):0;var _=n.length;return u<0&&(u=st(_+u,0)),Ls(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Xn(n,o,u)>-1}var xS=_e(function(n,o,u){var y=-1,_=typeof o=="function",T=Ct(n)?H(n.length):[];return tn(n,function(P){T[++y]=_?Ft(o,P,u):Mi(P,o,u)}),T}),SS=ws(function(n,o,u){Mr(n,u,o)});function Ps(n,o){var u=we(n)?Ue:Dd;return u(n,pe(o,3))}function ES(n,o,u,y){return n==null?[]:(we(o)||(o=o==null?[]:[o]),u=y?r:u,we(u)||(u=u==null?[]:[u]),Wd(n,o,u))}var _S=ws(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function OS(n,o,u){var y=we(n)?pu:fd,_=arguments.length<3;return y(n,pe(o,4),u,_,tn)}function AS(n,o,u){var y=we(n)?Nb:fd,_=arguments.length<3;return y(n,pe(o,4),u,_,Cd)}function TS(n,o){var u=we(n)?Yr:kd;return u(n,$s(pe(o,3)))}function RS(n){var o=we(n)?Ad:w1;return o(n)}function PS(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=xe(o);var y=we(n)?Yw:x1;return y(n,o)}function CS(n){var o=we(n)?Jw:E1;return o(n)}function kS(n){if(n==null)return 0;if(Ct(n))return Ls(n)?Jn(n):n.length;var o=wt(n);return o==ut||o==yt?n.size:$u(n).length}function $S(n,o,u){var y=we(n)?hu:_1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}var IS=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),Wd(n,pt(o,1),[])}),Cs=pw||function(){return dt.Date.now()};function LS(n,o){if(typeof o!="function")throw new Xt(l);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Mp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Fr(n,B,r,r,r,r,o)}function Fp(n,o){var u;if(typeof o!="function")throw new Xt(l);return n=xe(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var rl=_e(function(n,o,u){var y=w;if(u.length){var _=Qr(u,si(rl));y|=O}return Fr(n,y,o,u,_)}),Dp=_e(function(n,o,u){var y=w|h;if(u.length){var _=Qr(u,si(Dp));y|=O}return Fr(o,y,n,u,_)});function Np(n,o,u){o=u?r:o;var y=Fr(n,E,r,r,r,r,r,o);return y.placeholder=Np.placeholder,y}function jp(n,o,u){o=u?r:o;var y=Fr(n,R,r,r,r,r,r,o);return y.placeholder=jp.placeholder,y}function zp(n,o,u){var y,_,T,P,I,z,V=0,Y=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Xt(l);o=tr(o)||0,Ge(u)&&(Y=!!u.leading,ee="maxWait"in u,T=ee?st(tr(u.maxWait)||0,o):T,oe="trailing"in u?!!u.trailing:oe);function le(Qe){var cr=y,Wr=_;return y=_=r,V=Qe,P=n.apply(Wr,cr),P}function he(Qe){return V=Qe,I=zi(Oe,o),Y?le(Qe):P}function Se(Qe){var cr=Qe-z,Wr=Qe-V,oh=o-cr;return ee?bt(oh,T-Wr):oh}function ge(Qe){var cr=Qe-z,Wr=Qe-V;return z===r||cr>=o||cr<0||ee&&Wr>=T}function Oe(){var Qe=Cs();if(ge(Qe))return Re(Qe);I=zi(Oe,Se(Qe))}function Re(Qe){return I=r,oe&&y?le(Qe):(y=_=r,P)}function zt(){I!==r&&Xd(I),V=0,y=z=_=I=r}function At(){return I===r?P:Re(Cs())}function Wt(){var Qe=Cs(),cr=ge(Qe);if(y=arguments,_=this,z=Qe,cr){if(I===r)return he(z);if(ee)return Xd(I),I=zi(Oe,o),le(z)}return I===r&&(I=zi(Oe,o)),P}return Wt.cancel=zt,Wt.flush=At,Wt}var MS=_e(function(n,o){return Pd(n,1,o)}),FS=_e(function(n,o,u){return Pd(n,tr(o)||0,u)});function DS(n){return Fr(n,F)}function ks(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Xt(l);var u=function(){var y=arguments,_=o?o.apply(this,y):y[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,y);return u.cache=T.set(_,P)||T,P};return u.cache=new(ks.Cache||Lr),u}ks.Cache=Lr;function $s(n){if(typeof n!="function")throw new Xt(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 NS(n){return Fp(2,n)}var jS=O1(function(n,o){o=o.length==1&&we(o[0])?Ue(o[0],Dt(pe())):Ue(pt(o,1),Dt(pe()));var u=o.length;return _e(function(y){for(var _=-1,T=bt(y.length,u);++_<T;)y[_]=o[_].call(this,y[_]);return Ft(n,this,y)})}),nl=_e(function(n,o){var u=Qr(o,si(nl));return Fr(n,O,r,o,u)}),Wp=_e(function(n,o){var u=Qr(o,si(Wp));return Fr(n,k,r,o,u)}),zS=Dr(function(n,o){return Fr(n,M,r,r,r,o)});function WS(n,o){if(typeof n!="function")throw new Xt(l);return o=o===r?o:xe(o),_e(n,o)}function BS(n,o){if(typeof n!="function")throw new Xt(l);return o=o==null?0:st(xe(o),0),_e(function(u){var y=u[o],_=on(u,0,o);return y&&Jr(_,y),Ft(n,this,_)})}function US(n,o,u){var y=!0,_=!0;if(typeof n!="function")throw new Xt(l);return Ge(u)&&(y="leading"in u?!!u.leading:y,_="trailing"in u?!!u.trailing:_),zp(n,o,{leading:y,maxWait:o,trailing:_})}function HS(n){return Mp(n,1)}function qS(n,o){return nl(Wu(o),n)}function ZS(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function GS(n){return Jt(n,b)}function KS(n,o){return o=typeof o=="function"?o:r,Jt(n,b,o)}function VS(n){return Jt(n,g|b)}function XS(n,o){return o=typeof o=="function"?o:r,Jt(n,g|b,o)}function YS(n,o){return o==null||Rd(n,o,lt(o))}function lr(n,o){return n===o||n!==n&&o!==o}var JS=_s(Pu),QS=_s(function(n,o){return n>=o}),Pn=Ld((function(){return arguments})())?Ld:function(n){return Xe(n)&&Fe.call(n,"callee")&&!wd.call(n,"callee")},we=H.isArray,eE=td?Dt(td):u1;function Ct(n){return n!=null&&Is(n.length)&&!jr(n)}function Je(n){return Xe(n)&&Ct(n)}function tE(n){return n===!0||n===!1||Xe(n)&&_t(n)==ve}var sn=gw||hl,rE=rd?Dt(rd):l1;function nE(n){return Xe(n)&&n.nodeType===1&&!Wi(n)}function iE(n){if(n==null)return!0;if(Ct(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||sn(n)||ai(n)||Pn(n)))return!n.length;var o=wt(n);if(o==ut||o==yt)return!n.size;if(ji(n))return!$u(n).length;for(var u in n)if(Fe.call(n,u))return!1;return!0}function oE(n,o){return Fi(n,o)}function sE(n,o,u){u=typeof u=="function"?u:r;var y=u?u(n,o):r;return y===r?Fi(n,o,r,u):!!y}function il(n){if(!Xe(n))return!1;var o=_t(n);return o==Ze||o==Ae||typeof n.message=="string"&&typeof n.name=="string"&&!Wi(n)}function aE(n){return typeof n=="number"&&Sd(n)}function jr(n){if(!Ge(n))return!1;var o=_t(n);return o==ie||o==mt||o==ye||o==Ga}function Bp(n){return typeof n=="number"&&n==xe(n)}function Is(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ge(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Xe(n){return n!=null&&typeof n=="object"}var Up=nd?Dt(nd):f1;function uE(n,o){return n===o||ku(n,o,Ku(o))}function lE(n,o,u){return u=typeof u=="function"?u:r,ku(n,o,Ku(o),u)}function cE(n){return Hp(n)&&n!=+n}function fE(n){if(K1(n))throw new be(a);return Md(n)}function dE(n){return n===null}function pE(n){return n==null}function Hp(n){return typeof n=="number"||Xe(n)&&_t(n)==vr}function Wi(n){if(!Xe(n)||_t(n)!=Gt)return!1;var o=ss(n);if(o===null)return!0;var u=Fe.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&rs.call(u)==lw}var ol=id?Dt(id):d1;function hE(n){return Bp(n)&&n>=-te&&n<=te}var qp=od?Dt(od):p1;function Ls(n){return typeof n=="string"||!we(n)&&Xe(n)&&_t(n)==Kr}function jt(n){return typeof n=="symbol"||Xe(n)&&_t(n)==wn}var ai=sd?Dt(sd):h1;function gE(n){return n===r}function vE(n){return Xe(n)&&wt(n)==Vr}function mE(n){return Xe(n)&&_t(n)==Go}var yE=_s(Iu),bE=_s(function(n,o){return n<=o});function Zp(n){if(!n)return[];if(Ct(n))return Ls(n)?ar(n):Pt(n);if(Ri&&n[Ri])return Yb(n[Ri]());var o=wt(n),u=o==ut?wu:o==yt?Qo:ui;return u(n)}function zr(n){if(!n)return n===0?n:0;if(n=tr(n),n===X||n===-X){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=zr(n),u=o%1;return o===o?u?o-u:o:0}function Gp(n){return n?On(xe(n),0,Q):0}function tr(n){if(typeof n=="number")return n;if(jt(n))return Z;if(Ge(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ge(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=dd(n);var u=eb.test(n);return u||rb.test(n)?Lb(n.slice(2),u?2:8):Q0.test(n)?Z:+n}function Kp(n){return yr(n,kt(n))}function wE(n){return n?On(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Nt(n)}var xE=ii(function(n,o){if(ji(o)||Ct(o)){yr(o,lt(o),n);return}for(var u in o)Fe.call(o,u)&&Ii(n,u,o[u])}),Vp=ii(function(n,o){yr(o,kt(o),n)}),Ms=ii(function(n,o,u,y){yr(o,kt(o),n,y)}),SE=ii(function(n,o,u,y){yr(o,lt(o),n,y)}),EE=Dr(Au);function _E(n,o){var u=ni(n);return o==null?u:Td(u,o)}var OE=_e(function(n,o){n=Ne(n);var u=-1,y=o.length,_=y>2?o[2]:r;for(_&&Ot(o[0],o[1],_)&&(y=1);++u<y;)for(var T=o[u],P=kt(T),I=-1,z=P.length;++I<z;){var V=P[I],Y=n[V];(Y===r||lr(Y,ei[V])&&!Fe.call(n,V))&&(n[V]=T[V])}return n}),AE=_e(function(n){return n.push(r,dp),Ft(Xp,r,n)});function TE(n,o){return ud(n,pe(o,3),mr)}function RE(n,o){return ud(n,pe(o,3),Ru)}function PE(n,o){return n==null?n:Tu(n,pe(o,3),kt)}function CE(n,o){return n==null?n:$d(n,pe(o,3),kt)}function kE(n,o){return n&&mr(n,pe(o,3))}function $E(n,o){return n&&Ru(n,pe(o,3))}function IE(n){return n==null?[]:vs(n,lt(n))}function LE(n){return n==null?[]:vs(n,kt(n))}function sl(n,o,u){var y=n==null?r:An(n,o);return y===r?u:y}function ME(n,o){return n!=null&&gp(n,o,i1)}function al(n,o){return n!=null&&gp(n,o,o1)}var FE=ap(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ns.call(o)),n[o]=u},ll($t)),DE=ap(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ns.call(o)),Fe.call(n,o)?n[o].push(u):n[o]=[u]},pe),NE=_e(Mi);function lt(n){return Ct(n)?Od(n):$u(n)}function kt(n){return Ct(n)?Od(n,!0):g1(n)}function jE(n,o){var u={};return o=pe(o,3),mr(n,function(y,_,T){Mr(u,o(y,_,T),y)}),u}function zE(n,o){var u={};return o=pe(o,3),mr(n,function(y,_,T){Mr(u,_,o(y,_,T))}),u}var WE=ii(function(n,o,u){ms(n,o,u)}),Xp=ii(function(n,o,u,y){ms(n,o,u,y)}),BE=Dr(function(n,o){var u={};if(n==null)return u;var y=!1;o=Ue(o,function(T){return T=nn(T,n),y||(y=T.length>1),T}),yr(n,Zu(n),u),y&&(u=Jt(u,g|p|b,F1));for(var _=o.length;_--;)Nu(u,o[_]);return u});function UE(n,o){return Yp(n,$s(pe(o)))}var HE=Dr(function(n,o){return n==null?{}:m1(n,o)});function Yp(n,o){if(n==null)return{};var u=Ue(Zu(n),function(y){return[y]});return o=pe(o),Bd(n,u,function(y,_){return o(y,_[0])})}function qE(n,o,u){o=nn(o,n);var y=-1,_=o.length;for(_||(_=1,n=r);++y<_;){var T=n==null?r:n[br(o[y])];T===r&&(y=_,T=u),n=jr(T)?T.call(n):T}return n}function ZE(n,o,u){return n==null?n:Di(n,o,u)}function GE(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Di(n,o,u,y)}var Jp=cp(lt),Qp=cp(kt);function KE(n,o,u){var y=we(n),_=y||sn(n)||ai(n);if(o=pe(o,4),u==null){var T=n&&n.constructor;_?u=y?new T:[]:Ge(n)?u=jr(T)?ni(ss(n)):{}:u={}}return(_?Vt:mr)(n,function(P,I,z){return o(u,P,I,z)}),u}function VE(n,o){return n==null?!0:Nu(n,o)}function XE(n,o,u){return n==null?n:Gd(n,o,Wu(u))}function YE(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Gd(n,o,Wu(u),y)}function ui(n){return n==null?[]:bu(n,lt(n))}function JE(n){return n==null?[]:bu(n,kt(n))}function QE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=tr(u),u=u===u?u:0),o!==r&&(o=tr(o),o=o===o?o:0),On(tr(n),o,u)}function e_(n,o,u){return o=zr(o),u===r?(u=o,o=0):u=zr(u),n=tr(n),s1(n,o,u)}function t_(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=zr(n),o===r?(o=n,n=0):o=zr(o)),n>o){var y=n;n=o,o=y}if(u||n%1||o%1){var _=Ed();return bt(n+_*(o-n+Ib("1e-"+((_+"").length-1))),o)}return Mu(n,o)}var r_=oi(function(n,o,u){return o=o.toLowerCase(),n+(u?eh(o):o)});function eh(n){return ul(ke(n).toLowerCase())}function th(n){return n=ke(n),n&&n.replace(ib,Zb).replace(Eb,"")}function n_(n,o,u){n=ke(n),o=Nt(o);var y=n.length;u=u===r?y:On(xe(u),0,y);var _=u;return u-=o.length,u>=0&&n.slice(u,_)==o}function i_(n){return n=ke(n),n&&N0.test(n)?n.replace($f,Gb):n}function o_(n){return n=ke(n),n&&H0.test(n)?n.replace(nu,"\\$&"):n}var s_=oi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),a_=oi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),u_=ip("toLowerCase");function l_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;if(!o||y>=o)return n;var _=(o-y)/2;return Es(cs(_),u)+n+Es(ls(_),u)}function c_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?n+Es(o-y,u):n}function f_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?Es(o-y,u)+n:n}function d_(n,o,u){return u||o==null?o=0:o&&(o=+o),bw(ke(n).replace(iu,""),o||0)}function p_(n,o,u){return(u?Ot(n,o,u):o===r)?o=1:o=xe(o),Fu(ke(n),o)}function h_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var g_=oi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function v_(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=r),u=u===r?Q:u>>>0,u?(n=ke(n),n&&(typeof o=="string"||o!=null&&!ol(o))&&(o=Nt(o),!o&&Yn(n))?on(ar(n),0,u):n.split(o,u)):[]}var m_=oi(function(n,o,u){return n+(u?" ":"")+ul(o)});function y_(n,o,u){return n=ke(n),u=u==null?0:On(xe(u),0,n.length),o=Nt(o),n.slice(u,u+o.length)==o}function b_(n,o,u){var y=A.templateSettings;u&&Ot(n,o,u)&&(o=r),n=ke(n),o=Ms({},o,y,fp);var _=Ms({},o.imports,y.imports,fp),T=lt(_),P=bu(_,T),I,z,V=0,Y=o.interpolate||Ko,ee="__p += '",oe=xu((o.escape||Ko).source+"|"+Y.source+"|"+(Y===If?J0:Ko).source+"|"+(o.evaluate||Ko).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rb+"]")+`
|
|
185
|
+
`;n.replace(oe,function(ge,Oe,Re,zt,At,Wt){return Re||(Re=zt),ee+=n.slice(V,Wt).replace(ob,Kb),Oe&&(I=!0,ee+=`' +
|
|
186
|
+
__e(`+Oe+`) +
|
|
187
|
+
'`),At&&(z=!0,ee+=`';
|
|
188
|
+
`+At+`;
|
|
189
|
+
__p += '`),Re&&(ee+=`' +
|
|
190
|
+
((__t = (`+Re+`)) == null ? '' : __t) +
|
|
191
|
+
'`),V=Wt+ge.length,ge}),ee+=`';
|
|
192
|
+
`;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
|
|
193
|
+
`+ee+`
|
|
194
194
|
}
|
|
195
|
-
`;else if(
|
|
196
|
-
`+(
|
|
197
|
-
`)+"var __t, __p = ''"+(
|
|
195
|
+
`;else if(X0.test(he))throw new be(c);ee=(z?ee.replace(L0,""):ee).replace(M0,"$1").replace(F0,"$1;"),ee="function("+(he||"obj")+`) {
|
|
196
|
+
`+(he?"":`obj || (obj = {});
|
|
197
|
+
`)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
|
|
198
198
|
function print() { __p += __j.call(arguments, '') }
|
|
199
199
|
`:`;
|
|
200
|
-
`)+
|
|
201
|
-
}`;var Ce=iv(function(){return $e(C,we+"return "+le).apply(r,D)});if(Ce.source=le,Rc(Ce))throw Ce;return Ce}function AT(i){return je(i).toLowerCase()}function TT(i){return je(i).toUpperCase()}function RT(i,s,f){if(i=je(i),i&&(f||s===r))return ph(i);if(!i||!(s=tr(s)))return i;var _=Ar(i),O=Ar(s),C=hh(_,O),D=gh(_,O)+1;return Pn(_,C,D).join("")}function CT(i,s,f){if(i=je(i),i&&(f||s===r))return i.slice(0,mh(i)+1);if(!i||!(s=tr(s)))return i;var _=Ar(i),O=gh(_,Ar(s))+1;return Pn(_,0,O).join("")}function PT(i,s,f){if(i=je(i),i&&(f||s===r))return i.replace(Ru,"");if(!i||!(s=tr(s)))return i;var _=Ar(i),O=hh(_,Ar(s));return Pn(_,O).join("")}function IT(i,s){var f=B,_=$;if(st(s)){var O="separator"in s?s.separator:O;f="length"in s?Re(s.length):f,_="omission"in s?tr(s.omission):_}i=je(i);var C=i.length;if(Ri(i)){var D=Ar(i);C=D.length}if(f>=C)return i;var W=f-Ci(_);if(W<1)return _;var G=D?Pn(D,0,W).join(""):i.slice(0,W);if(O===r)return G+_;if(D&&(W+=G.length-W),Cc(O)){if(i.slice(W).search(O)){var ne,ie=G;for(O.global||(O=qu(O.source,je(Dp.exec(O))+"g")),O.lastIndex=0;ne=O.exec(ie);)var le=ne.index;G=G.slice(0,le===r?W:le)}}else if(i.indexOf(tr(O),W)!=W){var he=G.lastIndexOf(O);he>-1&&(G=G.slice(0,he))}return G+_}function NT(i){return i=je(i),i&&U1.test(i)?i.replace(Ip,l_):i}var MT=Li(function(i,s,f){return i+(f?" ":"")+s.toUpperCase()}),Nc=og("toUpperCase");function nv(i,s,f){return i=je(i),s=f?r:s,s===r?n_(i)?f_(i):ZS(i):i.match(s)||[]}var iv=Pe(function(i,s){try{return Qt(i,r,s)}catch(f){return Rc(f)?f:new Oe(f)}}),DT=an(function(i,s){return dr(s,function(f){f=zr(f),nn(i,f,Ac(i[f],i))}),i});function $T(i){var s=i==null?0:i.length,f=Se();return i=s?it(i,function(_){if(typeof _[1]!="function")throw new pr(l);return[f(_[0]),_[1]]}):[],Pe(function(_){for(var O=-1;++O<s;){var C=i[O];if(Qt(C[0],this,_))return Qt(C[1],this,_)}})}function LT(i){return lE(gr(i,h))}function Mc(i){return function(){return i}}function zT(i,s){return i==null||i!==i?s:i}var jT=sg(),FT=sg(!0);function Zt(i){return i}function Dc(i){return Lh(typeof i=="function"?i:gr(i,h))}function HT(i){return jh(gr(i,h))}function WT(i,s){return Fh(i,gr(s,h))}var BT=Pe(function(i,s){return function(f){return Eo(f,i,s)}}),UT=Pe(function(i,s){return function(f){return Eo(i,f,s)}});function $c(i,s,f){var _=Et(s),O=ds(s,_);f==null&&!(st(s)&&(O.length||!_.length))&&(f=s,s=i,i=this,O=ds(s,Et(s)));var C=!(st(f)&&"chain"in f)||!!f.chain,D=ln(i);return dr(O,function(W){var G=s[W];i[W]=G,D&&(i.prototype[W]=function(){var ne=this.__chain__;if(C||ne){var ie=i(this.__wrapped__),le=ie.__actions__=Vt(this.__actions__);return le.push({func:G,args:arguments,thisArg:i}),ie.__chain__=ne,ie}return G.apply(i,kn([this.value()],arguments))})}),i}function VT(){return Tt._===this&&(Tt._=m_),this}function Lc(){}function qT(i){return i=Re(i),Pe(function(s){return Hh(s,i)})}var GT=hc(it),ZT=hc(lh),KT=hc(ju);function ov(i){return xc(i)?Fu(zr(i)):kE(i)}function YT(i){return function(s){return i==null?r:ri(i,s)}}var XT=ug(),JT=ug(!0);function zc(){return[]}function jc(){return!1}function QT(){return{}}function eR(){return""}function tR(){return!0}function rR(i,s){if(i=Re(i),i<1||i>Z)return[];var f=q,_=Mt(i,q);s=Se(s),i-=q;for(var O=Bu(_,s);++f<i;)s(f);return O}function nR(i){return Ae(i)?it(i,zr):rr(i)?[i]:Vt(kg(je(i)))}function iR(i){var s=++g_;return je(i)+s}var oR=bs(function(i,s){return i+s},0),aR=gc("ceil"),sR=bs(function(i,s){return i/s},1),lR=gc("floor");function uR(i){return i&&i.length?fs(i,Zt,ec):r}function cR(i,s){return i&&i.length?fs(i,Se(s,2),ec):r}function fR(i){return fh(i,Zt)}function dR(i,s){return fh(i,Se(s,2))}function pR(i){return i&&i.length?fs(i,Zt,ic):r}function hR(i,s){return i&&i.length?fs(i,Se(s,2),ic):r}var gR=bs(function(i,s){return i*s},1),vR=gc("round"),mR=bs(function(i,s){return i-s},0);function bR(i){return i&&i.length?Wu(i,Zt):0}function yR(i,s){return i&&i.length?Wu(i,Se(s,2)):0}return T.after=HO,T.ary=$g,T.assign=TA,T.assignIn=Yg,T.assignInWith=Ps,T.assignWith=RA,T.at=CA,T.before=Lg,T.bind=Ac,T.bindAll=DT,T.bindKey=zg,T.castArray=QO,T.chain=Ng,T.chunk=lk,T.compact=uk,T.concat=ck,T.cond=$T,T.conforms=LT,T.constant=Mc,T.countBy=bO,T.create=PA,T.curry=jg,T.curryRight=Fg,T.debounce=Hg,T.defaults=IA,T.defaultsDeep=NA,T.defer=WO,T.delay=BO,T.difference=fk,T.differenceBy=dk,T.differenceWith=pk,T.drop=hk,T.dropRight=gk,T.dropRightWhile=vk,T.dropWhile=mk,T.fill=bk,T.filter=wO,T.flatMap=_O,T.flatMapDeep=EO,T.flatMapDepth=kO,T.flatten=Rg,T.flattenDeep=yk,T.flattenDepth=wk,T.flip=UO,T.flow=jT,T.flowRight=FT,T.fromPairs=xk,T.functions=FA,T.functionsIn=HA,T.groupBy=OO,T.initial=_k,T.intersection=Ek,T.intersectionBy=kk,T.intersectionWith=Ok,T.invert=BA,T.invertBy=UA,T.invokeMap=TO,T.iteratee=Dc,T.keyBy=RO,T.keys=Et,T.keysIn=Gt,T.map=ks,T.mapKeys=qA,T.mapValues=GA,T.matches=HT,T.matchesProperty=WT,T.memoize=As,T.merge=ZA,T.mergeWith=Xg,T.method=BT,T.methodOf=UT,T.mixin=$c,T.negate=Ts,T.nthArg=qT,T.omit=KA,T.omitBy=YA,T.once=VO,T.orderBy=CO,T.over=GT,T.overArgs=qO,T.overEvery=ZT,T.overSome=KT,T.partial=Tc,T.partialRight=Wg,T.partition=PO,T.pick=XA,T.pickBy=Jg,T.property=ov,T.propertyOf=YT,T.pull=Ck,T.pullAll=Pg,T.pullAllBy=Pk,T.pullAllWith=Ik,T.pullAt=Nk,T.range=XT,T.rangeRight=JT,T.rearg=GO,T.reject=MO,T.remove=Mk,T.rest=ZO,T.reverse=kc,T.sampleSize=$O,T.set=QA,T.setWith=eT,T.shuffle=LO,T.slice=Dk,T.sortBy=FO,T.sortedUniq=Wk,T.sortedUniqBy=Bk,T.split=_T,T.spread=KO,T.tail=Uk,T.take=Vk,T.takeRight=qk,T.takeRightWhile=Gk,T.takeWhile=Zk,T.tap=uO,T.throttle=YO,T.thru=Es,T.toArray=Gg,T.toPairs=Qg,T.toPairsIn=ev,T.toPath=nR,T.toPlainObject=Kg,T.transform=tT,T.unary=XO,T.union=Kk,T.unionBy=Yk,T.unionWith=Xk,T.uniq=Jk,T.uniqBy=Qk,T.uniqWith=eO,T.unset=rT,T.unzip=Oc,T.unzipWith=Ig,T.update=nT,T.updateWith=iT,T.values=Fi,T.valuesIn=oT,T.without=tO,T.words=nv,T.wrap=JO,T.xor=rO,T.xorBy=nO,T.xorWith=iO,T.zip=oO,T.zipObject=aO,T.zipObjectDeep=sO,T.zipWith=lO,T.entries=Qg,T.entriesIn=ev,T.extend=Yg,T.extendWith=Ps,$c(T,T),T.add=oR,T.attempt=iv,T.camelCase=uT,T.capitalize=tv,T.ceil=aR,T.clamp=aT,T.clone=eA,T.cloneDeep=rA,T.cloneDeepWith=nA,T.cloneWith=tA,T.conformsTo=iA,T.deburr=rv,T.defaultTo=zT,T.divide=sR,T.endsWith=cT,T.eq=Rr,T.escape=fT,T.escapeRegExp=dT,T.every=yO,T.find=xO,T.findIndex=Ag,T.findKey=MA,T.findLast=SO,T.findLastIndex=Tg,T.findLastKey=DA,T.floor=lR,T.forEach=Mg,T.forEachRight=Dg,T.forIn=$A,T.forInRight=LA,T.forOwn=zA,T.forOwnRight=jA,T.get=Pc,T.gt=oA,T.gte=aA,T.has=WA,T.hasIn=Ic,T.head=Cg,T.identity=Zt,T.includes=AO,T.indexOf=Sk,T.inRange=sT,T.invoke=VA,T.isArguments=oi,T.isArray=Ae,T.isArrayBuffer=sA,T.isArrayLike=qt,T.isArrayLikeObject=dt,T.isBoolean=lA,T.isBuffer=In,T.isDate=uA,T.isElement=cA,T.isEmpty=fA,T.isEqual=dA,T.isEqualWith=pA,T.isError=Rc,T.isFinite=hA,T.isFunction=ln,T.isInteger=Bg,T.isLength=Rs,T.isMap=Ug,T.isMatch=gA,T.isMatchWith=vA,T.isNaN=mA,T.isNative=bA,T.isNil=wA,T.isNull=yA,T.isNumber=Vg,T.isObject=st,T.isObjectLike=ct,T.isPlainObject=Co,T.isRegExp=Cc,T.isSafeInteger=xA,T.isSet=qg,T.isString=Cs,T.isSymbol=rr,T.isTypedArray=ji,T.isUndefined=SA,T.isWeakMap=_A,T.isWeakSet=EA,T.join=Ak,T.kebabCase=pT,T.last=mr,T.lastIndexOf=Tk,T.lowerCase=hT,T.lowerFirst=gT,T.lt=kA,T.lte=OA,T.max=uR,T.maxBy=cR,T.mean=fR,T.meanBy=dR,T.min=pR,T.minBy=hR,T.stubArray=zc,T.stubFalse=jc,T.stubObject=QT,T.stubString=eR,T.stubTrue=tR,T.multiply=gR,T.nth=Rk,T.noConflict=VT,T.noop=Lc,T.now=Os,T.pad=vT,T.padEnd=mT,T.padStart=bT,T.parseInt=yT,T.random=lT,T.reduce=IO,T.reduceRight=NO,T.repeat=wT,T.replace=xT,T.result=JA,T.round=vR,T.runInContext=V,T.sample=DO,T.size=zO,T.snakeCase=ST,T.some=jO,T.sortedIndex=$k,T.sortedIndexBy=Lk,T.sortedIndexOf=zk,T.sortedLastIndex=jk,T.sortedLastIndexBy=Fk,T.sortedLastIndexOf=Hk,T.startCase=ET,T.startsWith=kT,T.subtract=mR,T.sum=bR,T.sumBy=yR,T.template=OT,T.times=rR,T.toFinite=un,T.toInteger=Re,T.toLength=Zg,T.toLower=AT,T.toNumber=br,T.toSafeInteger=AA,T.toString=je,T.toUpper=TT,T.trim=RT,T.trimEnd=CT,T.trimStart=PT,T.truncate=IT,T.unescape=NT,T.uniqueId=iR,T.upperCase=MT,T.upperFirst=Nc,T.each=Mg,T.eachRight=Dg,T.first=Cg,$c(T,(function(){var i={};return $r(T,function(s,f){Ge.call(T.prototype,f)||(i[f]=s)}),i})(),{chain:!1}),T.VERSION=n,dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){T[i].placeholder=T}),dr(["drop","take"],function(i,s){Me.prototype[i]=function(f){f=f===r?1:xt(Re(f),0);var _=this.__filtered__&&!s?new Me(this):this.clone();return _.__filtered__?_.__takeCount__=Mt(f,_.__takeCount__):_.__views__.push({size:Mt(f,q),type:i+(_.__dir__<0?"Right":"")}),_},Me.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),dr(["filter","map","takeWhile"],function(i,s){var f=s+1,_=f==H||f==K;Me.prototype[i]=function(O){var C=this.clone();return C.__iteratees__.push({iteratee:Se(O,3),type:f}),C.__filtered__=C.__filtered__||_,C}}),dr(["head","last"],function(i,s){var f="take"+(s?"Right":"");Me.prototype[i]=function(){return this[f](1).value()[0]}}),dr(["initial","tail"],function(i,s){var f="drop"+(s?"":"Right");Me.prototype[i]=function(){return this.__filtered__?new Me(this):this[f](1)}}),Me.prototype.compact=function(){return this.filter(Zt)},Me.prototype.find=function(i){return this.filter(i).head()},Me.prototype.findLast=function(i){return this.reverse().find(i)},Me.prototype.invokeMap=Pe(function(i,s){return typeof i=="function"?new Me(this):this.map(function(f){return Eo(f,i,s)})}),Me.prototype.reject=function(i){return this.filter(Ts(Se(i)))},Me.prototype.slice=function(i,s){i=Re(i);var f=this;return f.__filtered__&&(i>0||s<0)?new Me(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),s!==r&&(s=Re(s),f=s<0?f.dropRight(-s):f.take(s-i)),f)},Me.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Me.prototype.toArray=function(){return this.take(q)},$r(Me.prototype,function(i,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),_=/^(?:head|last)$/.test(s),O=T[_?"take"+(s=="last"?"Right":""):s],C=_||/^find/.test(s);O&&(T.prototype[s]=function(){var D=this.__wrapped__,W=_?[1]:arguments,G=D instanceof Me,ne=W[0],ie=G||Ae(D),le=function(Ne){var De=O.apply(T,kn([Ne],W));return _&&he?De[0]:De};ie&&f&&typeof ne=="function"&&ne.length!=1&&(G=ie=!1);var he=this.__chain__,we=!!this.__actions__.length,_e=C&&!he,Ce=G&&!we;if(!C&&ie){D=Ce?D:new Me(this);var Ee=i.apply(D,W);return Ee.__actions__.push({func:Es,args:[le],thisArg:r}),new hr(Ee,he)}return _e&&Ce?i.apply(this,W):(Ee=this.thru(le),_e?_?Ee.value()[0]:Ee.value():Ee)})}),dr(["pop","push","shift","sort","splice","unshift"],function(i){var s=Ya[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",_=/^(?:pop|shift)$/.test(i);T.prototype[i]=function(){var O=arguments;if(_&&!this.__chain__){var C=this.value();return s.apply(Ae(C)?C:[],O)}return this[f](function(D){return s.apply(Ae(D)?D:[],O)})}}),$r(Me.prototype,function(i,s){var f=T[s];if(f){var _=f.name+"";Ge.call(Mi,_)||(Mi[_]=[]),Mi[_].push({name:s,func:f})}}),Mi[ms(r,m).name]=[{name:"wrapper",func:r}],Me.prototype.clone=N_,Me.prototype.reverse=M_,Me.prototype.value=D_,T.prototype.at=cO,T.prototype.chain=fO,T.prototype.commit=dO,T.prototype.next=pO,T.prototype.plant=gO,T.prototype.reverse=vO,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=mO,T.prototype.first=T.prototype.head,mo&&(T.prototype[mo]=hO),T}),Pi=d_();Xn?((Xn.exports=Pi)._=Pi,Du._=Pi):Tt._=Pi}).call(QM)})(sa,sa.exports)),sa.exports}var Ye=eD();const sd={FdSave:vt.FdSave,FdWarningDanger:vt.FdWarningDanger,FdInfoCircle:vt.FdInfoCircle,FdInfoBold:vt.FdInfoBold};var tp=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(tp||{}),mi=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(mi||{}),Zi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Zi||{});const kw={[mi.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[mi.DANGER]:{icon:"red-500",button:"primary-dark"},[mi.WARNING]:{icon:"yellow-400",button:"primary-dark"}},yf=({color:e=mi.PRIMARY,variant:t="solid",children:r,autoFocus:n,...o})=>{const a=kw[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return N.jsx("button",{autoFocus:n,className:tt("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...o,children:r})},tD=({name:e,color:t=mi.PRIMARY,className:r="w-8 h-8"})=>{const n=sd[e]||sd.FdInfoCircle,o=`text-${kw[t].icon}`;return N.jsx(n,{className:tt(r,o)})},rD=({id:e,title:t,message:r,icon:n,type:o,color:a,zIndex:l=3e3,views:u,width:c=520,hasOverlay:d=!0,container:p,onClose:h,onEdit:g})=>{const y=b=>{h({id:e,reason:b})};j.useEffect(()=>{function b(m){m.key==="Escape"&&y(Zi.CANCELED)}return window.addEventListener("keyup",b),()=>{window.removeEventListener("keyup",b)}},[]);const S=Ye.merge(Ye.values(u==null?void 0:u.toggles).flatMap(b=>b.value?b.warnings||[]:[]),u==null?void 0:u.tips),v=(b,m)=>{var x;if(!(u!=null&&u.toggles))return;const w=Ye.cloneDeep(u);(x=w.toggles)!=null&&x[b]&&(w.toggles[b].value=m),g({id:e,views:w})};return lo.createPortal(N.jsx(Il,{appear:!0,show:!0,as:j.Fragment,children:N.jsx("div",{className:tt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":d}),style:{zIndex:l},onClick:()=>y(Zi.CANCELED),children:N.jsx(Il.Child,{as:j.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:N.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:c},onClick:b=>b.stopPropagation(),children:N.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?N.jsx("div",{className:"flex items-center justify-center",children:N.jsx(tD,{name:n,color:a,className:"w-6 h-6"})}):null,N.jsx(nD,{condition:t,children:N.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),N.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),N.jsx("div",{className:"text-xs text-white",children:Ye.values(u==null?void 0:u.toggles).map(b=>N.jsx("div",{children:N.jsxs("label",{htmlFor:b.key,className:"flex items-center",children:[N.jsx(cw,{size:"xs",value:b.value,onChange:m=>v(b.key,m)}),N.jsx("span",{className:"ml-1",children:b.title})]})},b.key))}),N.jsx(iD,{warnings:S}),N.jsx("div",{className:"flex items-center gap-4",children:o===tp.CONFIRM?N.jsxs(N.Fragment,{children:[N.jsx(yf,{autoFocus:!0,color:a,onClick:()=>y(Zi.CONFIRMED),children:"Confirm"}),N.jsx(yf,{color:a,variant:"outlined",onClick:()=>y(Zi.CANCELED),children:"Cancel"})]}):N.jsx(yf,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),p||document.body)},nD=e=>e.condition?N.jsx(N.Fragment,{children:e.children}):null,iD=e=>e.warnings?N.jsx(Il,{appear:!0,show:!!e.warnings.length,as:j.Fragment,children:N.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)=>N.jsx(Il.Child,{as:j.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:N.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[N.jsx(vt.FdWarningDanger,{className:tt({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),N.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-warning-600:var(--ws-warning-600);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--color-negative-600:var(--ws-negative-600);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-grey-200);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-bg:var(--ws-select-bg);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.my-1:not(#\\#){margin-block:calc(var(--spacing)*1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-auto:not(#\\#){width:auto}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.content-center:not(#\\#){align-content:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-400:not(#\\#){border-color:var(--color-negative-400)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-500:not(#\\#){border-color:var(--color-positive-500)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-500:not(#\\#){border-color:var(--color-warning-500)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-bg:not(#\\#){background-color:var(--color-select-bg)}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.italic:not(#\\#){font-style:italic}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-600:hover:not(#\\#){background-color:var(--color-negative-600)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-600:hover:not(#\\#){background-color:var(--color-positive-600)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-600:hover:not(#\\#){background-color:var(--color-warning-600)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-gray-50:hover:not(#\\#){color:var(--color-gray-50)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-hoverBackground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-200));--ws-negative-dark:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-600));--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-panel-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editor-group-header-background,var(--ws-palette-grey-50)));--ws-palette-input-bg:#1e1e1e;--ws-palette-input-border:#3c3c3c;--ws-palette-input-text:#ccc;--ws-palette-input-placeholder:#8c8c8c;--ws-palette-input-focus-border:#007acc;--ws-input-bg:var(--vscode-input-background,var(--theia-input-background,var(--ws-palette-input-bg)));--ws-input-border:var(--vscode-input-border,var(--theia-input-border,var(--ws-palette-input-border)));--ws-input-text:var(--vscode-input-foreground,var(--theia-input-foreground,var(--ws-palette-input-text)));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder)));--ws-input-focus-border:var(--vscode-focusBorder,var(--theia-focusBorder,var(--ws-palette-primary-500)));--ws-select-bg:var(--vscode-dropdown-background,var(--theia-dropdown-background,var(--ws-input-bg)));--ws-select-border:var(--vscode-dropdown-border,var(--theia-dropdown-border,var(--ws-input-border)));--ws-select-text:var(--vscode-dropdown-foreground,var(--theia-dropdown-foreground,var(--ws-input-text)));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--theia-dropdown-listBackground,var(--ws-palette-input-bg)));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700)));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500)));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-disable-bg:var(--vscode-editorInfo-foreground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-950)));--ws-panel-1:var(--vscode-sideBar-background,var(--theia-sideBar-background,var(--ws-palette-grey-700)));--ws-panel-2:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-900)));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-200)));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300)));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900));--ws-tab-border:var(--vscode-tab-border,var(--ws-palette-grey-950));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--ws-bg-foreground));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--ws-palette-grey-200));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--ws-palette-grey-700));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--ws-palette-grey-800));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--ws-bg-foreground));--ws-panel-bg:var(--vscode-panel-background,var(--ws-bg-default));--ws-panel-border:var(--vscode-panel-border,var(--ws-palette-grey-950));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--ws-palette-primary-500));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--ws-bg-foreground));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--ws-palette-grey-100))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
202
|
-
`,document.head.appendChild(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const oD=e=>N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:N.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),Ow=e=>N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:N.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),aD=e=>N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:N.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),sD=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},lD=(e,t)=>({classGroupId:e,validator:t}),Aw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),$l="-",db=[],uD="arbitrary..",cD=e=>{const t=dD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return fD(o);const a=o.split($l),l=a[0]===""&&a.length>1?1:0;return Tw(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],u=r[o];return l?u?sD(u,l):l:u||db}return r[o]||db}}},Tw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const c=Tw(e,t+1,o);if(c)return c}const a=r.validators;if(a===null)return;const l=t===0?e.join($l):e.slice(t).join($l),u=a.length;for(let c=0;c<u;c++){const d=a[c];if(d.validator(l))return d.classGroupId}},fD=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?uD+n:void 0})(),dD=e=>{const{theme:t,classGroups:r}=e;return pD(r,t)},pD=(e,t)=>{const r=Aw();for(const n in e){const o=e[n];rp(o,r,n,t)}return r},rp=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const l=e[a];hD(l,t,r,n)}},hD=(e,t,r,n)=>{if(typeof e=="string"){gD(e,t,r);return}if(typeof e=="function"){vD(e,t,r,n);return}mD(e,t,r,n)},gD=(e,t,r)=>{const n=e===""?t:Rw(t,e);n.classGroupId=r},vD=(e,t,r,n)=>{if(bD(e)){rp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(lD(r,e))},mD=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let l=0;l<a;l++){const[u,c]=o[l];rp(c,Rw(t,u),r,n)}},Rw=(e,t)=>{let r=e;const n=t.split($l),o=n.length;for(let a=0;a<o;a++){const l=n[a];let u=r.nextPart.get(l);u||(u=Aw(),r.nextPart.set(l,u)),r=u}return r},bD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,l)=>{r[a]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let l=r[a];if(l!==void 0)return l;if((l=n[a])!==void 0)return o(a,l),l},set(a,l){a in r?r[a]=l:o(a,l)}}},ld="!",pb=":",wD=[],hb=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),xD=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let l=0,u=0,c=0,d;const p=o.length;for(let v=0;v<p;v++){const b=o[v];if(l===0&&u===0){if(b===pb){a.push(o.slice(c,v)),c=v+1;continue}if(b==="/"){d=v;continue}}b==="["?l++:b==="]"?l--:b==="("?u++:b===")"&&u--}const h=a.length===0?o:o.slice(c);let g=h,y=!1;h.endsWith(ld)?(g=h.slice(0,-1),y=!0):h.startsWith(ld)&&(g=h.slice(1),y=!0);const S=d&&d>c?d-c:void 0;return hb(a,y,g,S)};if(t){const o=t+pb,a=n;n=l=>l.startsWith(o)?a(l.slice(o.length)):hb(wD,!1,l,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},SD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const l=r[a],u=l[0]==="[",c=t.has(l);u||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(l)):o.push(l)}return o.length>0&&(o.sort(),n.push(...o)),n}},_D=e=>({cache:yD(e.cacheSize),parseClassName:xD(e),sortModifiers:SD(e),...cD(e)}),ED=/\s+/,kD=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],u=e.trim().split(ED);let c="";for(let d=u.length-1;d>=0;d-=1){const p=u[d],{isExternal:h,modifiers:g,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:v}=r(p);if(h){c=p+(c.length>0?" "+c:c);continue}let b=!!v,m=n(b?S.substring(0,v):S);if(!m){if(!b){c=p+(c.length>0?" "+c:c);continue}if(m=n(S),!m){c=p+(c.length>0?" "+c:c);continue}b=!1}const w=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=y?w+ld:w,k=x+m;if(l.indexOf(k)>-1)continue;l.push(k);const E=o(m,b);for(let R=0;R<E.length;++R){const F=E[R];l.push(x+F)}c=p+(c.length>0?" "+c:c)}return c},OD=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Cw(r))&&(o&&(o+=" "),o+=n);return o},Cw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Cw(e[n]))&&(r&&(r+=" "),r+=t);return r},gb=(e,...t)=>{let r,n,o,a;const l=c=>{const d=t.reduce((p,h)=>h(p),e());return r=_D(d),n=r.cache.get,o=r.cache.set,a=u,u(c)},u=c=>{const d=n(c);if(d)return d;const p=kD(c,r);return o(c,p),p};return a=l,(...c)=>a(OD(...c))},AD=[],St=e=>{const t=r=>r[e]||AD;return t.isThemeGetter=!0,t},Pw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Iw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TD=/^\d+\/\d+$/,RD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,PD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ID=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ND=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vi=e=>TD.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),$n=e=>!!e&&Number.isInteger(Number(e)),wf=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),dn=e=>RD.test(e),MD=()=>!0,DD=e=>CD.test(e)&&!PD.test(e),Nw=()=>!1,$D=e=>ID.test(e),LD=e=>ND.test(e),zD=e=>!be(e)&&!ye(e),jD=e=>uo(e,$w,Nw),be=e=>Pw.test(e),li=e=>uo(e,Lw,DD),xf=e=>uo(e,UD,Ie),vb=e=>uo(e,Mw,Nw),FD=e=>uo(e,Dw,LD),Ks=e=>uo(e,zw,$D),ye=e=>Iw.test(e),ea=e=>co(e,Lw),HD=e=>co(e,VD),mb=e=>co(e,Mw),WD=e=>co(e,$w),BD=e=>co(e,Dw),Ys=e=>co(e,zw,!0),uo=(e,t,r)=>{const n=Pw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},co=(e,t,r=!1)=>{const n=Iw.exec(e);return n?n[1]?t(n[1]):r:!1},Mw=e=>e==="position"||e==="percentage",Dw=e=>e==="image"||e==="url",$w=e=>e==="length"||e==="size"||e==="bg-size",Lw=e=>e==="length",UD=e=>e==="number",VD=e=>e==="family-name",zw=e=>e==="shadow",bb=()=>{const e=St("color"),t=St("font"),r=St("text"),n=St("font-weight"),o=St("tracking"),a=St("leading"),l=St("breakpoint"),u=St("container"),c=St("spacing"),d=St("radius"),p=St("shadow"),h=St("inset-shadow"),g=St("text-shadow"),y=St("drop-shadow"),S=St("blur"),v=St("perspective"),b=St("aspect"),m=St("ease"),w=St("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),ye,be],R=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],A=()=>[ye,be,c],P=()=>[Vi,"full","auto",...A()],B=()=>[$n,"none","subgrid",ye,be],$=()=>["auto",{span:["full",$n,ye,be]},$n,ye,be],M=()=>[$n,"auto",ye,be],U=()=>["auto","min","max","fr",ye,be],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...A()],X=()=>[Vi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],Z=()=>[e,ye,be],ve=()=>[...k(),mb,vb,{position:[ye,be]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",WD,jD,{size:[ye,be]}],re=()=>[wf,ea,li],ee=()=>["","none","full",d,ye,be],J=()=>["",Ie,ea,li],se=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[Ie,wf,mb,vb],ce=()=>["","none",S,ye,be],pe=()=>["none",Ie,ye,be],de=()=>["none",Ie,ye,be],xe=()=>[Ie,ye,be],Y=()=>[Vi,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dn],breakpoint:[dn],color:[MD],container:[dn],"drop-shadow":[dn],ease:["in","out","in-out"],font:[zD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dn],shadow:[dn],spacing:["px",Ie],text:[dn],"text-shadow":[dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vi,be,ye,b]}],container:["container"],columns:[{columns:[Ie,be,ye,u]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[$n,"auto",ye,be]}],basis:[{basis:[Vi,"full","auto",u,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,Vi,"auto","initial","none",be]}],grow:[{grow:["",Ie,ye,be]}],shrink:[{shrink:["",Ie,ye,be]}],order:[{order:[$n,"first","last","none",ye,be]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[u,"screen",...X()]}],"min-w":[{"min-w":[u,"screen","none",...X()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,ea,li]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ye,xf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wf,be]}],"font-family":[{font:[HD,be,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ye,be]}],"line-clamp":[{"line-clamp":[Ie,"none",ye,xf]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",ye,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",ye,li]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[Ie,"auto",ye,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$n,ye,be],radial:["",ye,be],conic:[$n,ye,be]},BD,FD]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,ye,be]}],"outline-w":[{outline:["",Ie,ea,li]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",p,Ys,Ks]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",h,Ys,Ks]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[Ie,li]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",g,Ys,Ks]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[Ie,ye,be]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[ye,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,be]}],filter:[{filter:["","none",ye,be]}],blur:[{blur:ce()}],brightness:[{brightness:[Ie,ye,be]}],contrast:[{contrast:[Ie,ye,be]}],"drop-shadow":[{"drop-shadow":["","none",y,Ys,Ks]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",Ie,ye,be]}],"hue-rotate":[{"hue-rotate":[Ie,ye,be]}],invert:[{invert:["",Ie,ye,be]}],saturate:[{saturate:[Ie,ye,be]}],sepia:[{sepia:["",Ie,ye,be]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,be]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,ye,be]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,ye,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,ye,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,ye,be]}],"backdrop-invert":[{"backdrop-invert":["",Ie,ye,be]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,ye,be]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,ye,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,ye,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",ye,be]}],ease:[{ease:["linear","initial",m,ye,be]}],delay:[{delay:[Ie,ye,be]}],animate:[{animate:["none",w,ye,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,ye,be]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[ye,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,be]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[Ie,ea,li,xf]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},qD=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(la(e,"cacheSize",t),la(e,"prefix",r),la(e,"experimentalParseClassName",n),Xs(e.theme,a.theme),Xs(e.classGroups,a.classGroups),Xs(e.conflictingClassGroups,a.conflictingClassGroups),Xs(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),la(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),Js(e.theme,o.theme),Js(e.classGroups,o.classGroups),Js(e.conflictingClassGroups,o.conflictingClassGroups),Js(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),jw(e,o,"orderSensitiveModifiers"),e),la=(e,t,r)=>{r!==void 0&&(e[t]=r)},Xs=(e,t)=>{if(t)for(const r in t)la(e,r,t[r])},Js=(e,t)=>{if(t)for(const r in t)jw(e,t,r)},jw=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},GD=(e,...t)=>typeof e=="function"?gb(bb,e,...t):gb(()=>qD(bb(),e),...t);function Fw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yb={exports:{}};/*!
|
|
203
|
-
Copyright (c) 2018 Jed Watson.
|
|
204
|
-
|
|
205
|
-
http://jedwatson.github.io/classnames
|
|
206
|
-
|
|
207
|
-
appearance-none border rounded transition-all duration-200
|
|
208
|
-
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
209
|
-
relative
|
|
210
|
-
`,JD=(e,t,r)=>{const{isChecked:n,isIndeterminate:o,isDisabled:a,isInvalid:l}=r,u=n||o;return Te(XD,za[e].checkbox,{"cursor-pointer":!a},l?{[xr.negative.checked]:u,[xr.negative.unchecked]:!u,[xr.negative.checkedHover]:!a&&u,[xr.negative.focus]:!a,"border-panel-subtle":a}:{[xr[t].checked]:u&&!a,[xr[t].unchecked]:!u&&!a,[xr[t].checkedHover]:!a&&u,[xr[t].focus]:!a,"border-panel-subtle":a,"bg-panel-subtle":a&&u})},QD=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return Te(za[e].text,o?{[xr.negative.label]:o}:{"text-muted":n,[xr[t].label]:!n,"cursor-pointer":!n})},e$=e=>Te("inline-flex items-center ws-group",za[e].spacing),t$=(e,t,r)=>Te("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",za[e].hoverSquare,{[xr.negative.hoverSquare]:r,[xr[t].hoverSquare]:!r}),r$=e=>`${za[e].icon} text-body`,n$=e=>N.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:N.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),i$=j.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:o="md",color:a="primary",onChange:l,onFocus:u,onBlur:c,value:d,defaultValue:p,name:h,id:g,...y},S)=>{const[v,b]=j.useState(p),m=d===!0||v===!0,w=d===null,x=m||w,k={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},E=JD(o,a,k),R=QD(o,a,k),F=e$(o),A=t$(o,a,r),P=r$(o);return N.jsxs("label",{"data-qui":"Checkbox",className:F,children:[N.jsxs("div",{className:E,children:[N.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:B=>{d===void 0&&b(B.target.checked),l==null||l(B)},onFocus:u,onBlur:c,name:h,id:g,...y}),x&&N.jsx("div",{className:"center-absolute",children:w?N.jsx(n$,{className:P}):N.jsx(oD,{className:P})}),!x&&!t&&N.jsx("div",{className:A})]}),e&&N.jsxs("span",{className:R,children:[e,n&&N.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});i$.displayName="Checkbox";const ja={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},Sa={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},o$=`
|
|
211
|
-
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
212
|
-
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
213
|
-
cursor-pointer peer
|
|
214
|
-
`,a$=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return fo(o$,ja[e].radio,o?Sa[t].radioInvalid:{[Sa[t].radio]:!n,"cursor-not-allowed opacity-60":n})},s$=(e,t,r)=>{const{checked:n,isDisabled:o,isInvalid:a}=r;return fo("center-absolute rounded-full transition-all duration-200 ease-in-out",ja[e].dot,a?"bg-negative":{[Sa[t].dot]:!o,"border-neutral":o,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!o})},l$=(e,t,r)=>fo("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",ja[e].hoverDot,{[Sa[t].hoverDot]:!r,"bg-negative-bg":r}),u$=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return fo("cursor-pointer select-none transition-colors duration-200",ja[e].label,o?{"text-negative":o}:{[Sa[t].label]:!n,"text-muted":n})},c$=(e,t)=>fo("inline-flex items-center group",ja[e].container,t),f$=j.createContext(null),d$=()=>{const e=j.useContext(f$);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},p$=j.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:o,isInvalid:a,isRequired:l,className:u,...c},d)=>{const p=d$(),h=r??p.size,g=n??p.color,y=o??p.isDisabled,S=a??p.isInvalid,v=l??p.isRequired,b=p.value===e,m={checked:b,isDisabled:y,isInvalid:S},w=a$(h,g,m),x=s$(h,g,m),k=l$(h,g,S),E=u$(h,g,m),R=c$(h,u),F=()=>{y||p.onChange(e)};return N.jsxs("label",{"data-qui":"RadioItem",className:R,children:[N.jsxs("div",{className:"relative",children:[N.jsx("input",{ref:d,type:"radio",value:e,checked:b,disabled:y,required:v,"aria-invalid":S,"aria-label":t?void 0:c["aria-label"],name:p.name,onChange:F,className:"sr-only",...c}),N.jsxs("div",{className:w,children:[N.jsx("div",{className:x}),!b&&!y&&N.jsx("div",{className:k})]})]}),t&&N.jsxs("span",{className:E,children:[t,v&&N.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});p$.displayName="RadioItem";const Hw={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},h$={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-black hover:text-primary-hover",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas hover:text-canvas",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:text-positive-hover",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:text-warning-hover",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:text-negative-hover",ghost:"hover:bg-negative-hover hover:text-body"}}},g$=(e,t,r,n)=>{const o=Hw[e],a=h$[r],l=Te("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},o.container);return n?Te(l,"text-inactive-text",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):Te(l,a.bg[t],a.text[t],a.hover[t],a.border[t])},v$=e=>Te("flex items-center justify-center gap-1",Hw[e].text),m$=j.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:o,disabled:a,...l},u)=>N.jsx("button",{"data-qui":"Button",ref:u,type:"button",className:Te(g$(e,t,r,a),v$(e),n),disabled:a,...l,children:o}));m$.displayName="Button";const b$=j.createContext(null),Ww=()=>{const e=j.useContext(b$);if(!e)throw new Error("Input components must be used within Input.Root");return e},Bw={sm:{group:"h-5 min-h-fit",input:"text-2.25",message:"text-2.25 p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Uw={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},y$=({size:e,color:t})=>Te("bg-transparent ring-0 w-full","focus:outline-hidden",[Bw[e].input],Uw[t].placeholder),xb=({size:e,color:t})=>Te("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Bw[e].input,Uw[t].placeholder);function Ll(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var w$=typeof global=="object"&&global&&global.Object===Object&&global,x$=typeof self=="object"&&self&&self.Object===Object&&self,Vw=w$||x$||Function("return this")(),Sf=function(){return Vw.Date.now()},S$=/\s/;function _$(e){for(var t=e.length;t--&&S$.test(e.charAt(t)););return t}var E$=/^\s+/;function k$(e){return e&&e.slice(0,_$(e)+1).replace(E$,"")}var zl=Vw.Symbol,qw=Object.prototype,O$=qw.hasOwnProperty,A$=qw.toString,ta=zl?zl.toStringTag:void 0;function T$(e){var t=O$.call(e,ta),r=e[ta];try{e[ta]=void 0;var n=!0}catch{}var o=A$.call(e);return n&&(t?e[ta]=r:delete e[ta]),o}var R$=Object.prototype,C$=R$.toString;function P$(e){return C$.call(e)}var I$="[object Null]",N$="[object Undefined]",Sb=zl?zl.toStringTag:void 0;function M$(e){return e==null?e===void 0?N$:I$:Sb&&Sb in Object(e)?T$(e):P$(e)}function D$(e){return e!=null&&typeof e=="object"}var $$="[object Symbol]";function L$(e){return typeof e=="symbol"||D$(e)&&M$(e)==$$}var _b=NaN,z$=/^[-+]0x[0-9a-f]+$/i,j$=/^0b[01]+$/i,F$=/^0o[0-7]+$/i,H$=parseInt;function Eb(e){if(typeof e=="number")return e;if(L$(e))return _b;if(Ll(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ll(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=k$(e);var r=j$.test(e);return r||F$.test(e)?H$(e.slice(2),r?2:8):z$.test(e)?_b:+e}var W$="Expected a function",B$=Math.max,U$=Math.min;function yl(e,t,r){var n,o,a,l,u,c,d=0,p=!1,h=!1,g=!0;if(typeof e!="function")throw new TypeError(W$);t=Eb(t)||0,Ll(r)&&(p=!!r.leading,h="maxWait"in r,a=h?B$(Eb(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function y(R){var F=n,A=o;return n=o=void 0,d=R,l=e.apply(A,F),l}function S(R){return d=R,u=setTimeout(m,t),p?y(R):l}function v(R){var F=R-c,A=R-d,P=t-F;return h?U$(P,a-A):P}function b(R){var F=R-c,A=R-d;return c===void 0||F>=t||F<0||h&&A>=a}function m(){var R=Sf();if(b(R))return w(R);u=setTimeout(m,v(R))}function w(R){return u=void 0,g&&n?y(R):(n=o=void 0,l)}function x(){u!==void 0&&clearTimeout(u),d=0,n=c=o=u=void 0}function k(){return u===void 0?l:w(Sf())}function E(){var R=Sf(),F=b(R);if(n=arguments,o=this,c=R,F){if(u===void 0)return S(c);if(h)return clearTimeout(u),u=setTimeout(m,t),y(c)}return u===void 0&&(u=setTimeout(m,t)),l}return E.cancel=x,E.flush=k,E}var V$="Expected a function";function q$(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(V$);return Ll(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),yl(e,t,{leading:n,maxWait:t,trailing:o})}var Ki=function(){return Ki=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ki.apply(this,arguments)};function Gw(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Zw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Kw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,o){var a=o.name.match(/data-simplebar-(.+)/);if(a){var l=a[1].replace(/\W+(.)/g,function(u,c){return c.toUpperCase()});switch(o.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=o.value}}return n},t);return r};function Yw(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Xw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Jw(e){return".".concat(e.split(" ").join("."))}var np=!!(typeof window<"u"&&window.document&&window.document.createElement),G$=Object.freeze({__proto__:null,addClasses:Yw,canUseDOM:np,classNamesToQuery:Jw,getElementDocument:Zw,getElementWindow:Gw,getOptions:Kw,removeClasses:Xw}),Gi=null,kb=null;np&&window.addEventListener("resize",function(){kb!==window.devicePixelRatio&&(kb=window.devicePixelRatio,Gi=null)});function Ob(){if(Gi===null){if(typeof document>"u")return Gi=0,Gi;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),Gi=r}return Gi}var Ln=Gw,_f=Zw,Z$=Kw,zn=Yw,jn=Xw,Kt=Jw,ra=(function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=Ln(n.el);n.scrollXTicking||(o.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(o.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,zn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){jn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(zn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){jn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(o){n.mouseX=o.clientX,n.mouseY=o.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(a||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(o,"x"):n.onTrackClick(o,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(o,"y"):n.onTrackClick(o,"y"))))}},this.drag=function(o){var a,l,u,c,d,p,h,g,y,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var b,m=n.axis[n.draggedAxis].track,w=(l=(a=m.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,k=(c=(u=n.contentWrapperEl)===null||u===void 0?void 0:u[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,E=parseInt((p=(d=n.elStyles)===null||d===void 0?void 0:d[n.axis[n.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?b=o.pageY:b=o.pageX;var R=b-((g=(h=m.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].offsetAttr])!==null&&g!==void 0?g:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(y=m.rect)===null||y===void 0?void 0:y[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var F=R/(w-x.size),A=F*(k-E);n.draggedAxis==="x"&&n.isRtl&&(A=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-A:A),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(o){n.isDragging=!1;var a=_f(n.el),l=Ln(n.el);o.preventDefault(),o.stopPropagation(),jn(n.el,n.classNames.dragging),n.onStopScrolling(),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=Ki(Ki({},e.defaultOptions),r),this.classNames=Ki(Ki({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=q$(this._onMouseMove,64),this.onWindowResize=yl(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=yl(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=yl(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var o=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:o.left!==a.left,isScrollingToNegative:a.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ob()}catch{return Ob()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=_f(t),o=Ln(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){np&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(Kt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Kt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Kt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Kt(this.classNames.offset)),this.maskEl=this.el.querySelector(Kt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Kt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Kt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Kt(this.classNames.scrollbar)))||null,this.options.autoHide||(zn(this.axis.x.scrollbar.el,this.classNames.visible),zn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=Ln(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){o&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Ln(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,u=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var c=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=o?"".concat(r||d,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&d>r,this.axis.y.isOverflowing=c>p,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=u==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>a-g,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>p-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,l=a/o,u;return u=Math.max(~~(l*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(u=Math.min(u,this.options.scrollbarMaxSize)),u},e.prototype.positionScrollbar=function(t){var r,n,o;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],u=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-d:d,t==="x"&&this.isRtl&&(d=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?d:-d);var p=d/(l-c),h=~~((u-a.size)*p);h=t==="x"&&this.isRtl?-h+(u-a.size):h,a.el.style.transform=t==="x"?"translate3d(".concat(h,"px, 0, 0)"):"translate3d(0, ".concat(h,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(zn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(jn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),zn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?zn(r.scrollbar.el,this.classNames.hover):jn(r.scrollbar.el,this.classNames.hover)):(jn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),jn(this.axis[t].track.el,this.classNames.hover),jn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y"),this.isDragging=!0;var o=_f(this.el),a=Ln(this.el),l=this.axis[r].scrollbar,u=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=u-(((n=l.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,zn(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,o,a,l,u;r===void 0&&(r="y");var c=this.axis[r];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=Ln(this.el);this.axis[r].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var p=this.axis[r].scrollbar,h=(a=(o=p.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,g=parseInt((u=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&u!==void 0?u:"0px",10),y=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-h:this.mouseX-h,v=S<0?-1:1,b=v===-1?y-g:y+g,m=40,w=function(){n.contentWrapperEl&&(v===-1?y>b&&(y-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=y,d.requestAnimationFrame(w)):y<b&&(y+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=y,d.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Ln(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return n.call(o,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Z$,e.helpers=G$,e})(),ar=function(){return ar=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ar.apply(this,arguments)};function K$(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var ip=L.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,a=K$(e,["children","scrollableNodeProps"]),l=L.useRef(),u=L.useRef(),c=L.useRef(),d={},p={};Object.keys(a).forEach(function(y){Object.prototype.hasOwnProperty.call(ra.defaultOptions,y)?d[y]=a[y]:p[y]=a[y]});var h=ar(ar({},ra.defaultOptions.classNames),d.classNames),g=ar(ar({},o),{className:"".concat(h.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:d.tabIndex||ra.defaultOptions.tabIndex,role:"region","aria-label":d.ariaLabel||ra.defaultOptions.ariaLabel});return L.useEffect(function(){var y;return u.current=g.ref?g.ref.current:u.current,l.current&&(y=new ra(l.current,ar(ar(ar({},d),u.current&&{scrollableNode:u.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(y):t&&(t.current=y)),function(){y==null||y.unMount(),y=null,typeof t=="function"&&t(null)}},[]),L.createElement("div",ar({"data-simplebar":"init",ref:l},p),L.createElement("div",{className:h.wrapper},L.createElement("div",{className:h.heightAutoObserverWrapperEl},L.createElement("div",{className:h.heightAutoObserverEl})),L.createElement("div",{className:h.mask},L.createElement("div",{className:h.offset},typeof r=="function"?r({scrollableNodeRef:u,scrollableNodeProps:ar(ar({},g),{ref:u}),contentNodeRef:c,contentNodeProps:{className:h.contentEl,ref:c}}):L.createElement("div",ar({},g),L.createElement("div",{className:h.contentEl},r)))),L.createElement("div",{className:h.placeholder})),L.createElement("div",{className:"".concat(h.track," ").concat(h.horizontal)},L.createElement("div",{className:h.scrollbar})),L.createElement("div",{className:"".concat(h.track," ").concat(h.vertical)},L.createElement("div",{className:h.scrollbar})))});ip.displayName="SimpleBar";const Y$=j.forwardRef(({className:e,...t},r)=>{const{size:n,color:o,isInvalid:a,isDisabled:l}=Ww(),{isDisabled:u,isReadOnly:c,...d}=t;return N.jsx("input",{ref:r,disabled:l||u,readOnly:c||!1,"aria-invalid":a,className:Te(y$({size:n,color:o}),e),...d})});j.forwardRef(({className:e,autoHeight:t,...r},n)=>{const{size:o,color:a,isInvalid:l,isDisabled:u,setHasArea:c}=Ww(),d=j.useRef(null),p=n||d,h=j.useRef(null);j.useEffect(()=>(c(!0),()=>{c(!1)}),[c]);const g=j.useCallback(()=>{if(d.current){const w=d.current;w.style.height="auto",w.style.height=`${w.scrollHeight}px`}},[]),y=w=>{var x;g(),(x=r.onInput)==null||x.call(r,w)};j.useEffect(()=>{g()},[g,r.value]);const S=w=>{w.preventDefault();const x=h.current;if(!x)return;const k=w.clientY,E=x.offsetHeight,R=A=>{const P=E+(A.clientY-k);P>30&&(x.style.height=P+"px")},F=()=>{document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",F)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",F)},{isDisabled:v,isReadOnly:b,...m}=r;return N.jsxs("div",{ref:h,className:"w-full relative",style:t?void 0:{height:"120px"},children:[t?N.jsx("textarea",{ref:p,rows:1,className:Te(xb({size:o,color:a}),e),disabled:u||v,onInput:y,readOnly:b||!1,"aria-invalid":l,style:{overflow:"hidden"},...m}):N.jsx(ip,{style:{height:"100%"},children:N.jsx("textarea",{ref:p,rows:1,className:Te(xb({size:o,color:a}),e),disabled:u||v,onInput:y,readOnly:b||!1,"aria-invalid":l,style:{height:"auto",overflow:"hidden",width:"100%"},...m})}),!t&&N.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:S,children:N.jsx(aD,{})})]})});Y$.displayName="InputField";const _a={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},X$=({color:e})=>Te("h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",_a[e].container,_a[e].icon),J$=({color:e})=>Te("text-xs font-medium leading-3",_a[e].text),Q$=({color:e})=>Te("p-0.5 rounded cursor-pointer",_a[e].button,_a[e].icon),eL=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:o,children:a,delay:l=2e3,trigger:u="hover"})=>{const[c,d]=j.useState(!1),[p,h]=j.useState(!1),[g,y]=j.useState({position:r,transform:""}),S=j.useRef(null),v=j.useRef(null),b=j.useRef(null),m=j.useCallback(()=>{if(!S.current||!v.current)return;const A=S.current.getBoundingClientRect(),P=v.current.getBoundingClientRect(),B=window.innerWidth,$=window.innerHeight,M=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,B),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,$),H=4;let I=r,K={position:I,transform:""};const X={up:{fits:A.top-P.height-H>=0,styles:{bottom:`calc(100% + ${H}px)`,left:"50%",transform:"translateX(-50%)"}},"up-start":{fits:A.top-P.height-H>=0&&A.left+P.width<=B,styles:{bottom:`calc(100% + ${H}px)`,left:"0",transform:"translateX(0)"}},"up-end":{fits:A.top-P.height-H>=0&&A.right-P.width>=0,styles:{bottom:`calc(100% + ${H}px)`,right:"0",transform:"translateX(0)"}},down:{fits:A.bottom+P.height+H<=$&&A.bottom+P.height+H<=U,styles:{top:`calc(100% + ${H}px)`,left:"50%",transform:"translateX(-50%)"}},"down-start":{fits:A.bottom+P.height+H<=$&&A.bottom+P.height+H<=U&&A.left+P.width<=B,styles:{top:`calc(100% + ${H}px)`,left:"0",transform:"translateX(0)"}},"down-end":{fits:A.bottom+P.height+H<=$&&A.bottom+P.height+H<=U&&A.right-P.width>=0,styles:{top:`calc(100% + ${H}px)`,right:"0",transform:"translateX(0)"}},left:{fits:A.left-P.width-H>=0,styles:{right:`calc(100% + ${H}px)`,top:"50%",transform:"translateY(-50%)"}},"left-start":{fits:A.left-P.width-H>=0&&A.top+P.height<=$,styles:{right:`calc(100% + ${H}px)`,top:"0",transform:"translateY(0)"}},"left-end":{fits:A.left-P.width-H>=0&&A.bottom-P.height>=0,styles:{right:`calc(100% + ${H}px)`,bottom:"0",transform:"translateY(0)"}},right:{fits:A.right+P.width+H<=B&&A.right+P.width+H<=M,styles:{left:`calc(100% + ${H}px)`,top:"50%",transform:"translateY(-50%)"}},"right-start":{fits:A.right+P.width+H<=B&&A.right+P.width+H<=M&&A.top+P.height<=$,styles:{left:`calc(100% + ${H}px)`,top:"0",transform:"translateY(0)"}},"right-end":{fits:A.right+P.width+H<=B&&A.right+P.width+H<=M&&A.bottom-P.height>=0,styles:{left:`calc(100% + ${H}px)`,bottom:"0",transform:"translateY(0)"}}},Z=A.left+A.width/2-P.width/2,ve=A.left+A.width/2+P.width/2;if((r==="up"||r==="down")&&(Z<0||ve>B)&&(X[r].fits=!1),X[r].fits)K={position:r,...X[r].styles};else{const z=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(q=>X[q].fits);if(z)I=z,K={position:I,...X[z].styles};else{const q={up:A.top,"up-start":A.top,"up-end":A.top,down:Math.min($-A.bottom,U-A.bottom),"down-start":Math.min($-A.bottom,U-A.bottom),"down-end":Math.min($-A.bottom,U-A.bottom),left:A.left,"left-start":A.left,"left-end":A.left,right:Math.min(B-A.right,M-A.right),"right-start":Math.min(B-A.right,M-A.right),"right-end":Math.min(B-A.right,M-A.right)},re=Object.entries(q).reduce((ee,[J,se])=>se>ee.space?{position:J,space:se}:ee,{position:"up",space:0}).position;I=re,K={position:I,...X[re].styles}}}y(K)},[r]),w=()=>{u==="click"&&(d(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{p||d(!1)},l))},x=A=>{A.stopPropagation(),d(!1),b.current&&clearTimeout(b.current)},k=()=>{h(!0),b.current&&clearTimeout(b.current)},E=()=>{h(!1),c&&(b.current=setTimeout(()=>{d(!1)},l))},R=()=>{u==="hover"&&d(!0)},F=()=>{u==="hover"&&d(!1)};return j.useEffect(()=>{if(c&&v.current){const A=requestAnimationFrame(()=>{m()});return()=>cancelAnimationFrame(A)}},[c,e,m]),j.useEffect(()=>{const A=()=>{c&&m()},P=()=>{c&&m()};return window.addEventListener("resize",A),window.addEventListener("scroll",P,!0),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",P,!0),b.current&&clearTimeout(b.current)}},[c,m]),N.jsxs("div",{"data-qui":"Tooltip",ref:S,onClick:w,onMouseEnter:R,onMouseLeave:F,className:"relative h-full flex items-center",children:[a,c&&N.jsxs("div",{ref:v,role:"tooltip",className:X$({color:t}),style:{position:"absolute",left:g.left,right:g.right,top:g.top,bottom:g.bottom,transform:g.transform,zIndex:1e3},onMouseEnter:k,onMouseLeave:E,children:[o&&N.jsx("span",{children:o}),N.jsx("p",{className:J$({color:t}),children:e}),n&&N.jsx("div",{onClick:x,className:Q$({color:t}),role:"button",children:N.jsx(Ow,{})})]})]})};var Ab;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ab||(Ab={}));const tL=Object.freeze({x:0,y:0});var Yi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Yi||(Yi={}));var Tb;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Tb||(Tb={}));var Sr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Sr||(Sr={}));Sr.Space,Sr.Enter,Sr.Esc,Sr.Space,Sr.Enter,Sr.Tab;var Rb;(function(e){e[e.RightClick=2]="RightClick"})(Rb||(Rb={}));var Cb;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Cb||(Cb={}));var Pb;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Pb||(Pb={}));Yi.Backward+"",Yi.Forward+"",Yi.Backward+"",Yi.Forward+"";var ud;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ud||(ud={}));var cd;(function(e){e.Optimized="optimized"})(cd||(cd={}));ud.WhileDragging,cd.Optimized;({...tL});var Ib;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ib||(Ib={}));Sr.Down,Sr.Right,Sr.Up,Sr.Left;const rL=(e,t)=>{const r=Te("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?Te(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?Te(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):Te(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},nL=j.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},o)=>N.jsx("div",{"data-qui":"TabNavContainer",className:rL(e,t),ref:o,...n,children:r}));nL.displayName="TabNavContainer";var bt=function(){return bt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bt.apply(this,arguments)},Nb={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Mb={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Qs={width:"20px",height:"20px",position:"absolute",zIndex:1},iL={top:bt(bt({},Nb),{top:"-5px"}),right:bt(bt({},Mb),{left:void 0,right:"-5px"}),bottom:bt(bt({},Nb),{top:void 0,bottom:"-5px"}),left:bt(bt({},Mb),{left:"-5px"}),topRight:bt(bt({},Qs),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:bt(bt({},Qs),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:bt(bt({},Qs),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:bt(bt({},Qs),{left:"-10px",top:"-10px",cursor:"nw-resize"})},oL=j.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,a=e.className,l=j.useCallback(function(d){t(d,r)},[t,r]),u=j.useCallback(function(d){t(d,r)},[t,r]),c=j.useMemo(function(){return bt(bt({position:"absolute",userSelect:"none"},iL[r]),o??{})},[o,r]);return N.jsx("div",{className:a||void 0,style:c,onMouseDown:l,onTouchStart:u,children:n})}),aL=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Br=function(){return Br=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Br.apply(this,arguments)},sL={width:"auto",height:"auto"},el=function(e,t,r){return Math.max(Math.min(e,r),t)},Db=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},qi=function(e,t){return new RegExp(e,"i").test(t)},tl=function(e){return!!(e.touches&&e.touches.length)},lL=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},$b=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(a,l,u){return Math.abs(l-e)<Math.abs(t[a]-e)?u:a},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Ef=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},rl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},uL=function(e,t,r,n,o,a,l){return n=rl(n,e.width,t,r),o=rl(o,e.height,t,r),a=rl(a,e.width,t,r),l=rl(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof l>"u"?void 0:Number(l)}},cL=function(e){return Array.isArray(e)?e:[e,e]},fL=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Lb="__resizable_base__",dL=(function(e){aL(t,e);function t(r){var n,o,a,l,u=e.call(this,r)||this;return u.ratio=1,u.resizable=null,u.parentLeft=0,u.parentTop=0,u.resizableLeft=0,u.resizableRight=0,u.resizableTop=0,u.resizableBottom=0,u.targetLeft=0,u.targetTop=0,u.delta={width:0,height:0},u.appendBase=function(){if(!u.resizable||!u.window)return null;var c=u.parentNode;if(!c)return null;var d=u.window.document.createElement("div");return d.style.width="100%",d.style.height="100%",d.style.position="absolute",d.style.transform="scale(0, 0)",d.style.left="0",d.style.flex="0 0 100%",d.classList?d.classList.add(Lb):d.className+=Lb,c.appendChild(d),d},u.removeBase=function(c){var d=u.parentNode;d&&d.removeChild(c)},u.state={isResizing:!1,width:(o=(n=u.propsSize)===null||n===void 0?void 0:n.width)!==null&&o!==void 0?o:"auto",height:(l=(a=u.propsSize)===null||a===void 0?void 0:a.height)!==null&&l!==void 0?l:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},u.onResizeStart=u.onResizeStart.bind(u),u.onMouseMove=u.onMouseMove.bind(u),u.onMouseUp=u.onMouseUp.bind(u),u}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||sL},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,a=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=l}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(u){var c;if(typeof r.state[u]>"u"||r.state[u]==="auto")return"auto";if(r.propsSize&&r.propsSize[u]&&!((c=r.propsSize[u])===null||c===void 0)&&c.toString().endsWith("%")){if(r.state[u].toString().endsWith("%"))return r.state[u].toString();var d=r.getParentSize(),p=Number(r.state[u].toString().replace("px","")),h=p/d[u]*100;return"".concat(h,"%")}return Ef(r.state[u])},a=n&&typeof n.width<"u"&&!this.state.isResizing?Ef(n.width):o("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Ef(n.height):o("height");return{width:a,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var a={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,a=this.state.direction,l=o&&qi("left",a),u=o&&qi("top",a),c,d;if(this.props.bounds==="parent"){var p=this.parentNode;p&&(c=l?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),d=u?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(c=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,d=u?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(c=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),d=u?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return c&&Number.isFinite(c)&&(r=r&&r<c?r:c),d&&Number.isFinite(d)&&(n=n&&n<d?n:d),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,a=cL(this.props.resizeRatio||1),l=a[0],u=a[1],c=this.state,d=c.direction,p=c.original,h=this.props,g=h.lockAspectRatio,y=h.lockAspectRatioExtraHeight,S=h.lockAspectRatioExtraWidth,v=p.width,b=p.height,m=y||0,w=S||0;return qi("right",d)&&(v=p.width+(r-p.x)*l/o,g&&(b=(v-w)/this.ratio+m)),qi("left",d)&&(v=p.width-(r-p.x)*l/o,g&&(b=(v-w)/this.ratio+m)),qi("bottom",d)&&(b=p.height+(n-p.y)*u/o,g&&(v=(b-m)*this.ratio+w)),qi("top",d)&&(b=p.height-(n-p.y)*u/o,g&&(v=(b-m)*this.ratio+w)),{newWidth:v,newHeight:b}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,a){var l=this.props,u=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,d=l.lockAspectRatioExtraWidth,p=typeof a.width>"u"?10:a.width,h=typeof o.width>"u"||o.width<0?r:o.width,g=typeof a.height>"u"?10:a.height,y=typeof o.height>"u"||o.height<0?n:o.height,S=c||0,v=d||0;if(u){var b=(g-S)*this.ratio+v,m=(y-S)*this.ratio+v,w=(p-v)/this.ratio+S,x=(h-v)/this.ratio+S,k=Math.max(p,b),E=Math.min(h,m),R=Math.max(g,w),F=Math.min(y,x);r=el(r,k,E),n=el(n,R,F)}else r=el(r,p,h),n=el(n,g,y);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left*r,this.parentTop=o.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*r,this.targetTop=a.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),u=l.left,c=l.top,d=l.right,p=l.bottom;this.resizableLeft=u*r,this.resizableRight=d*r,this.resizableTop=c*r,this.resizableBottom=p*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,a=0;if(r.nativeEvent&&lL(r.nativeEvent)?(o=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&tl(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,a=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(r,n,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var u,c=this.window.getComputedStyle(this.resizable);if(c.flexBasis!=="auto"){var d=this.parentNode;if(d){var p=this.window.getComputedStyle(d).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",u=c.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:o,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Br(Br({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:u};this.setState(h)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&tl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,a=o.maxWidth,l=o.maxHeight,u=o.minWidth,c=o.minHeight,d=tl(r)?r.touches[0].clientX:r.clientX,p=tl(r)?r.touches[0].clientY:r.clientY,h=this.state,g=h.direction,y=h.original,S=h.width,v=h.height,b=this.getParentSize(),m=uL(b,this.window.innerWidth,this.window.innerHeight,a,l,u,c);a=m.maxWidth,l=m.maxHeight,u=m.minWidth,c=m.minHeight;var w=this.calculateNewSizeFromDirection(d,p),x=w.newHeight,k=w.newWidth,E=this.calculateNewMaxFromBoundary(a,l);this.props.snap&&this.props.snap.x&&(k=$b(k,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=$b(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(k,x,{width:E.maxWidth,height:E.maxHeight},{width:u,height:c});if(k=R.newWidth,x=R.newHeight,this.props.grid){var F=Db(k,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),A=Db(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),P=this.props.snapGap||0,B=P===0||Math.abs(F-k)<=P?F:k,$=P===0||Math.abs(A-x)<=P?A:x;k=B,x=$}var M={width:k-y.width,height:x-y.height};if(this.delta=M,S&&typeof S=="string"){if(S.endsWith("%")){var U=k/b.width*100;k="".concat(U,"%")}else if(S.endsWith("vw")){var H=k/this.window.innerWidth*100;k="".concat(H,"vw")}else if(S.endsWith("vh")){var I=k/this.window.innerHeight*100;k="".concat(I,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var U=x/b.height*100;x="".concat(U,"%")}else if(v.endsWith("vw")){var H=x/this.window.innerWidth*100;x="".concat(H,"vw")}else if(v.endsWith("vh")){var I=x/this.window.innerHeight*100;x="".concat(I,"vh")}}var K={width:this.createSizeForCssProperty(k,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?K.flexBasis=K.width:this.flexDir==="column"&&(K.flexBasis=K.height);var X=this.state.width!==K.width,Z=this.state.height!==K.height,ve=this.state.flexBasis!==K.flexBasis,z=X||Z||ve;z&&lo.flushSync(function(){n.setState(K)}),this.props.onResize&&z&&this.props.onResize(r,g,this.resizable,M)}},t.prototype.onMouseUp=function(r){var n,o,a=this.state,l=a.isResizing,u=a.direction;a.original,!(!l||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,u,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Br(Br({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,o;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(o=r.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,a=n.handleStyles,l=n.handleClasses,u=n.handleWrapperStyle,c=n.handleWrapperClass,d=n.handleComponent;if(!o)return null;var p=Object.keys(o).map(function(h){return o[h]!==!1?N.jsx(oL,{direction:h,onResizeStart:r.onResizeStart,replaceStyles:a&&a[h],className:l&&l[h],children:d&&d[h]?d[h]:null},h):null});return N.jsx("div",{className:c,style:u,children:p})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,u){return fL.indexOf(u)!==-1||(l[u]=r.props[u]),l},{}),o=Br(Br(Br({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return N.jsxs(a,Br({style:o,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&N.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(j.PureComponent);const pL={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4"},hL={tabs:"border-tab-border",primary:"border-primary",normal:"border-panel-border"},Qw=({depth:e=0,className:t,contentType:r,disabled:n})=>Te("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?hL[r]:"border-panel-border",pL[e],t),gL=e=>{if(!e)return{};const t={},r=e.match(/min-w-\[(\d+)px\]/);r&&(t.minWidth=parseInt(r[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const o=e.match(/min-h-\[(\d+)px\]/);o&&(t.minHeight=parseInt(o[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},ex=j.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:o=10,maxWidth:a,maxHeight:l,defaultWidth:u,defaultHeight:c,defaultSize:d,size:p,grid:h,snap:g,lockAspectRatio:y=!1,enable:S,handleStyles:v={},handleClasses:b={},handleComponent:m={},style:w={},className:x,onResizeStart:k,onResize:E,onResizeStop:R,scale:F=1,bounds:A,snapGap:P,as:B="div",depth:$,disabled:M},U)=>{const H=Qw({depth:$,className:x,disabled:M}),I=gL(x),K=p?{size:p}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},X=d?{defaultSize:d}:u!==void 0||c!==void 0?{defaultSize:{width:u??"auto",height:c??"auto"}}:{},Z=j.useRef(null);return j.useImperativeHandle(U,()=>{var ve;return(ve=Z.current)==null?void 0:ve.resizable}),N.jsx(dL,{"data-qui":"Resizable",ref:Z,...K,...X,minWidth:n??I.minWidth,minHeight:o??I.minHeight,maxWidth:a??I.maxWidth,maxHeight:l??I.maxHeight,grid:h,snap:g,lockAspectRatio:y,enable:S,handleStyles:v,handleClasses:b,handleComponent:m,style:w,className:Te("relative box-border",H),onResizeStart:k,onResize:E,onResizeStop:R,scale:F,bounds:A,snapGap:P,as:B,children:e})});ex.displayName="Resizable";const tx=({isDragging:e=!1,className:t})=>N.jsx("div",{className:Te("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:N.jsx("div",{className:Te("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});tx.displayName="Handle";j.createContext(null);const rx=j.forwardRef(({depth:e=0,className:t,children:r,contentType:n,disabled:o,...a},l)=>{const u=Qw({depth:e,className:t,contentType:n,disabled:o});return N.jsx("div",{"data-qui":"Panel",ref:l,className:u,"aria-disabled":o,...a,children:r})});rx.displayName="Panel";const su={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},wl={primary:{bg:"bg-primary",text:"text-body",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-body"},positive:{bg:"bg-positive",text:"text-body",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-body",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-body",border:"border-negative",buttonHover:"hover:bg-negative-hover"}},vL=(e,t)=>Te("inline-flex items-center justify-center font-medium border",su[e].container,wl[t].bg,wl[t].text,wl[t].border),mL=(e,t,r)=>Te({[su[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-body":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),bL=e=>Te(su[e].text),nx=(e,t)=>Te("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",su[e].iconButton,wl[t].buttonHover),ix=j.createContext(null),lu=()=>{const e=j.useContext(ix);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},op=j.forwardRef(({size:e="md",color:t="primary",className:r,children:n,...o},a)=>{const l={size:e,color:t};return N.jsx(ix.Provider,{value:l,children:N.jsx("div",{"data-qui":"Pill",ref:a,className:Te(vL(e,t),r),...o,children:n})})});op.displayName="Pill.Root";const ap=j.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=lu();return N.jsx("span",{ref:n,className:Te(bL(o),e),...r,children:t})});ap.displayName="Pill.Text";const sp=j.forwardRef(({className:e,children:t,label:r,position:n,...o},a)=>{const{size:l,color:u}=lu(),c=!!r,d=N.jsx("span",{ref:a,className:Te(mL(l,u,c),e),...o,children:t});return c?N.jsx(eL,{label:r||"",position:n||"up",children:d}):d});sp.displayName="Pill.Icon";const ox=j.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a}=lu();return N.jsx("button",{ref:n,type:"button",className:Te(nx(o,a),e),...r,children:t})});ox.displayName="Pill.Button";const lp=j.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...o},a)=>{const{size:l,color:u}=lu();return N.jsx("button",{ref:a,type:"button",className:Te(nx(l,u),e),onClick:t,"aria-label":r,...o,children:n||N.jsx(Ow,{})})});lp.displayName="Pill.Close";const ax=j.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:o,closable:a=!1,className:l,...u},c)=>N.jsxs(op,{ref:c,size:e,color:t,className:l,...u,children:[n&&N.jsx(sp,{children:n}),N.jsx(ap,{children:r}),a&&N.jsx(lp,{onClose:o})]}));ax.displayName="Pill";Object.assign(ax,{Root:op,Text:ap,Icon:sp,Button:ox,Close:lp});const yL=j.createContext(null),uu=()=>{const e=j.useContext(yL);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},cu={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-2.25 h-3.5",placeholder:"text-2.25",singleValue:"text-2.25",multiValue:"h-3.5 px-0.5 gap-1 text-2",multiValueLabel:"text-2",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-2",noOptionsMessage:"px-2 py-1 text-2.25",loadingMessage:"px-2 py-1 text-2.25",message:"text-2.25 p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-xs h-4",placeholder:"text-xs",singleValue:"text-xs",multiValue:"h-4 p-1 gap-1 text-2.5",multiValueLabel:"text-2.5",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"my-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-2.5",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-s h-5",placeholder:"text-s",singleValue:"text-s",multiValue:"h-5 px-1.5 gap-1.5 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-xs",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},mn={primary:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"border-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"border-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"bg-select-list-bg border-select-border shadow-lg",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"border-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"border-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},wL=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:o,hasMessage:a})=>Te("flex items-center justify-between border border-select-border only:rounded first:rounded-t last:rounded-b",cu[e].control,o&&!n?mn[t].controlInvalid:mn[t].control,{[mn[t].controlFocused]:n&&!a,[mn[t].controlDisabled]:r,"border-0 ring-1":a,[mn[t].messageBorder]:a}),xL=({size:e,color:t})=>Te("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1",cu[e].input,mn[t].placeholder),SL=({size:e,placement:t,hasMessage:r,color:n})=>{const o={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return Te("absolute w-full z-50 rounded overflow-hidden border border-t-0",mn.primary.menu,{[mn[n].messageBorder]:r},o[t||"auto"],cu[e].menu)},_L=({size:e})=>Te("overflow-y-auto",cu[e].menuList,mn.primary.menuList);function na(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gt.apply(null,arguments)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fd(e,t)}function EL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fd(e,t)}var nl={exports:{}},kf={exports:{}},Be={};/** @license React v16.13.1
|
|
215
|
-
* react-is.production.min.js
|
|
216
|
-
*
|
|
217
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the MIT license found in the
|
|
220
|
-
* LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/var zb;function kL(){if(zb)return Be;zb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var R=E.$$typeof;switch(R){case t:switch(E=E.type,E){case c:case d:case n:case a:case o:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case p:case S:case y:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===d}return Be.AsyncMode=c,Be.ConcurrentMode=d,Be.ContextConsumer=u,Be.ContextProvider=l,Be.Element=t,Be.ForwardRef=p,Be.Fragment=n,Be.Lazy=S,Be.Memo=y,Be.Portal=r,Be.Profiler=a,Be.StrictMode=o,Be.Suspense=h,Be.isAsyncMode=function(E){return k(E)||x(E)===c},Be.isConcurrentMode=k,Be.isContextConsumer=function(E){return x(E)===u},Be.isContextProvider=function(E){return x(E)===l},Be.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Be.isForwardRef=function(E){return x(E)===p},Be.isFragment=function(E){return x(E)===n},Be.isLazy=function(E){return x(E)===S},Be.isMemo=function(E){return x(E)===y},Be.isPortal=function(E){return x(E)===r},Be.isProfiler=function(E){return x(E)===a},Be.isStrictMode=function(E){return x(E)===o},Be.isSuspense=function(E){return x(E)===h},Be.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===d||E===a||E===o||E===h||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===y||E.$$typeof===l||E.$$typeof===u||E.$$typeof===p||E.$$typeof===b||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Be.typeOf=x,Be}var Ze={};/** @license React v16.13.1
|
|
222
|
-
* react-is.development.js
|
|
223
|
-
*
|
|
224
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the MIT license found in the
|
|
227
|
-
* LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/var jb;function OL(){return jb||(jb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===d||Y===a||Y===o||Y===h||Y===g||typeof Y=="object"&&Y!==null&&(Y.$$typeof===S||Y.$$typeof===y||Y.$$typeof===l||Y.$$typeof===u||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===m||Y.$$typeof===w||Y.$$typeof===v)}function k(Y){if(typeof Y=="object"&&Y!==null){var ze=Y.$$typeof;switch(ze){case t:var ge=Y.type;switch(ge){case c:case d:case n:case a:case o:case h:return ge;default:var At=ge&&ge.$$typeof;switch(At){case u:case p:case S:case y:case l:return At;default:return ze}}case r:return ze}}}var E=c,R=d,F=u,A=l,P=t,B=p,$=n,M=S,U=y,H=r,I=a,K=o,X=h,Z=!1;function ve(Y){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(Y)||k(Y)===c}function z(Y){return k(Y)===d}function q(Y){return k(Y)===u}function re(Y){return k(Y)===l}function ee(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function J(Y){return k(Y)===p}function se(Y){return k(Y)===n}function ae(Y){return k(Y)===S}function oe(Y){return k(Y)===y}function ce(Y){return k(Y)===r}function pe(Y){return k(Y)===a}function de(Y){return k(Y)===o}function xe(Y){return k(Y)===h}Ze.AsyncMode=E,Ze.ConcurrentMode=R,Ze.ContextConsumer=F,Ze.ContextProvider=A,Ze.Element=P,Ze.ForwardRef=B,Ze.Fragment=$,Ze.Lazy=M,Ze.Memo=U,Ze.Portal=H,Ze.Profiler=I,Ze.StrictMode=K,Ze.Suspense=X,Ze.isAsyncMode=ve,Ze.isConcurrentMode=z,Ze.isContextConsumer=q,Ze.isContextProvider=re,Ze.isElement=ee,Ze.isForwardRef=J,Ze.isFragment=se,Ze.isLazy=ae,Ze.isMemo=oe,Ze.isPortal=ce,Ze.isProfiler=pe,Ze.isStrictMode=de,Ze.isSuspense=xe,Ze.isValidElementType=x,Ze.typeOf=k})()),Ze}var Fb;function sx(){return Fb||(Fb=1,process.env.NODE_ENV==="production"?kf.exports=kL():kf.exports=OL()),kf.exports}/*
|
|
229
|
-
object-assign
|
|
230
|
-
(c) Sindre Sorhus
|
|
231
|
-
@license MIT
|
|
232
|
-
*/var Of,Hb;function AL(){if(Hb)return Of;Hb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Of=o()?Object.assign:function(a,l){for(var u,c=n(a),d,p=1;p<arguments.length;p++){u=Object(arguments[p]);for(var h in u)t.call(u,h)&&(c[h]=u[h]);if(e){d=e(u);for(var g=0;g<d.length;g++)r.call(u,d[g])&&(c[d[g]]=u[d[g]])}}return c},Of}var Af,Wb;function up(){if(Wb)return Af;Wb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Af=e,Af}var Bb,Ub;function lx(){return Ub||(Ub=1,Bb=Function.call.bind(Object.prototype.hasOwnProperty)),Bb}var Tf,Vb;function TL(){if(Vb)return Tf;Vb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=up(),r={},n=lx();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,u,c,d){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function"){var g=Error((c||"React class")+": "+u+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=a[p](l,p,c,u,null,t)}catch(S){h=S}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var y=d?d():"";e("Failed "+u+" type: "+h.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Tf=o,Tf}var Rf,qb;function RL(){if(qb)return Rf;qb=1;var e=sx(),t=AL(),r=up(),n=lx(),o=TL(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return Rf=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(z){var q=z&&(d&&z[d]||z[p]);if(typeof q=="function")return q}var g="<<anonymous>>",y={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:k(),elementType:E(),instanceOf:R,node:B(),objectOf:A,oneOf:F,oneOfType:P,shape:M,exact:U};function S(z,q){return z===q?z!==0||1/z===1/q:z!==z&&q!==q}function v(z,q){this.message=z,this.data=q&&typeof q=="object"?q:{},this.stack=""}v.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var q={},re=0;function ee(se,ae,oe,ce,pe,de,xe){if(ce=ce||g,de=de||oe,xe!==r){if(c){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=ce+":"+oe;!q[ze]&&re<3&&(a("You are manually calling a React.PropTypes validation function for the `"+de+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[ze]=!0,re++)}}return ae[oe]==null?se?ae[oe]===null?new v("The "+pe+" `"+de+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+pe+" `"+de+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:z(ae,oe,ce,pe,de)}var J=ee.bind(null,!1);return J.isRequired=ee.bind(null,!0),J}function m(z){function q(re,ee,J,se,ae,oe){var ce=re[ee],pe=K(ce);if(pe!==z){var de=X(ce);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(q)}function w(){return b(l)}function x(z){function q(re,ee,J,se,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var oe=re[ee];if(!Array.isArray(oe)){var ce=K(oe);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an array."))}for(var pe=0;pe<oe.length;pe++){var de=z(oe,pe,J,se,ae+"["+pe+"]",r);if(de instanceof Error)return de}return null}return b(q)}function k(){function z(q,re,ee,J,se){var ae=q[re];if(!u(ae)){var oe=K(ae);return new v("Invalid "+J+" `"+se+"` of type "+("`"+oe+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return b(z)}function E(){function z(q,re,ee,J,se){var ae=q[re];if(!e.isValidElementType(ae)){var oe=K(ae);return new v("Invalid "+J+" `"+se+"` of type "+("`"+oe+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return b(z)}function R(z){function q(re,ee,J,se,ae){if(!(re[ee]instanceof z)){var oe=z.name||g,ce=ve(re[ee]);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected ")+("instance of `"+oe+"`."))}return null}return b(q)}function F(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function q(re,ee,J,se,ae){for(var oe=re[ee],ce=0;ce<z.length;ce++)if(S(oe,z[ce]))return null;var pe=JSON.stringify(z,function(de,xe){var Y=X(xe);return Y==="symbol"?String(xe):xe});return new v("Invalid "+se+" `"+ae+"` of value `"+String(oe)+"` "+("supplied to `"+J+"`, expected one of "+pe+"."))}return b(q)}function A(z){function q(re,ee,J,se,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var oe=re[ee],ce=K(oe);if(ce!=="object")return new v("Invalid "+se+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an object."));for(var pe in oe)if(n(oe,pe)){var de=z(oe,pe,J,se,ae+"."+pe,r);if(de instanceof Error)return de}return null}return b(q)}function P(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var q=0;q<z.length;q++){var re=z[q];if(typeof re!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(re)+" at index "+q+"."),l}function ee(J,se,ae,oe,ce){for(var pe=[],de=0;de<z.length;de++){var xe=z[de],Y=xe(J,se,ae,oe,ce,r);if(Y==null)return null;Y.data&&n(Y.data,"expectedType")&&pe.push(Y.data.expectedType)}var ze=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new v("Invalid "+oe+" `"+ce+"` supplied to "+("`"+ae+"`"+ze+"."))}return b(ee)}function B(){function z(q,re,ee,J,se){return H(q[re])?null:new v("Invalid "+J+" `"+se+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return b(z)}function $(z,q,re,ee,J){return new v((z||"React class")+": "+q+" type `"+re+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(z){function q(re,ee,J,se,ae){var oe=re[ee],ce=K(oe);if(ce!=="object")return new v("Invalid "+se+" `"+ae+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));for(var pe in z){var de=z[pe];if(typeof de!="function")return $(J,se,ae,pe,X(de));var xe=de(oe,pe,J,se,ae+"."+pe,r);if(xe)return xe}return null}return b(q)}function U(z){function q(re,ee,J,se,ae){var oe=re[ee],ce=K(oe);if(ce!=="object")return new v("Invalid "+se+" `"+ae+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));var pe=t({},re[ee],z);for(var de in pe){var xe=z[de];if(n(z,de)&&typeof xe!="function")return $(J,se,ae,de,X(xe));if(!xe)return new v("Invalid "+se+" `"+ae+"` key `"+de+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(re[ee],null," ")+`
|
|
233
|
-
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Y=xe(oe,de,J,se,ae+"."+de,r);if(Y)return Y}return null}return b(q)}function H(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(H);if(z===null||u(z))return!0;var q=h(z);if(q){var re=q.call(z),ee;if(q!==z.entries){for(;!(ee=re.next()).done;)if(!H(ee.value))return!1}else for(;!(ee=re.next()).done;){var J=ee.value;if(J&&!H(J[1]))return!1}}else return!1;return!0;default:return!1}}function I(z,q){return z==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function K(z){var q=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":I(q,z)?"symbol":q}function X(z){if(typeof z>"u"||z===null)return""+z;var q=K(z);if(q==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return q}function Z(z){var q=X(z);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function ve(z){return!z.constructor||!z.constructor.name?g:z.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},Rf}var Cf,Gb;function CL(){if(Gb)return Cf;Gb=1;var e=up();function t(){}function r(){}return r.resetWarningCache=t,Cf=function(){function n(l,u,c,d,p,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Cf}var Zb;function PL(){if(Zb)return nl.exports;if(Zb=1,process.env.NODE_ENV!=="production"){var e=sx(),t=!0;nl.exports=RL()(e.isElement,t)}else nl.exports=CL()();return nl.exports}var IL=PL();const ue=Fw(IL);var Pf={exports:{}},Ue={};/**
|
|
234
|
-
* @license React
|
|
235
|
-
* react-is.production.min.js
|
|
236
|
-
*
|
|
237
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the MIT license found in the
|
|
240
|
-
* LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/var Kb;function NL(){if(Kb)return Ue;Kb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(b){if(typeof b=="object"&&b!==null){var m=b.$$typeof;switch(m){case e:switch(b=b.type,b){case r:case o:case n:case d:case p:return b;default:switch(b=b&&b.$$typeof,b){case u:case l:case c:case g:case h:case a:return b;default:return m}}case t:return m}}}return Ue.ContextConsumer=l,Ue.ContextProvider=a,Ue.Element=e,Ue.ForwardRef=c,Ue.Fragment=r,Ue.Lazy=g,Ue.Memo=h,Ue.Portal=t,Ue.Profiler=o,Ue.StrictMode=n,Ue.Suspense=d,Ue.SuspenseList=p,Ue.isAsyncMode=function(){return!1},Ue.isConcurrentMode=function(){return!1},Ue.isContextConsumer=function(b){return v(b)===l},Ue.isContextProvider=function(b){return v(b)===a},Ue.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ue.isForwardRef=function(b){return v(b)===c},Ue.isFragment=function(b){return v(b)===r},Ue.isLazy=function(b){return v(b)===g},Ue.isMemo=function(b){return v(b)===h},Ue.isPortal=function(b){return v(b)===t},Ue.isProfiler=function(b){return v(b)===o},Ue.isStrictMode=function(b){return v(b)===n},Ue.isSuspense=function(b){return v(b)===d},Ue.isSuspenseList=function(b){return v(b)===p},Ue.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===d||b===p||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===a||b.$$typeof===l||b.$$typeof===c||b.$$typeof===S||b.getModuleId!==void 0)},Ue.typeOf=v,Ue}var Ke={};/**
|
|
242
|
-
* @license React
|
|
243
|
-
* react-is.development.js
|
|
244
|
-
*
|
|
245
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the MIT license found in the
|
|
248
|
-
* LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/var Yb;function ML(){return Yb||(Yb=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S=!1,v=!1,b=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function k(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===o||w||ge===n||ge===d||ge===p||m||ge===y||S||v||b||typeof ge=="object"&&ge!==null&&(ge.$$typeof===g||ge.$$typeof===h||ge.$$typeof===a||ge.$$typeof===l||ge.$$typeof===c||ge.$$typeof===x||ge.getModuleId!==void 0))}function E(ge){if(typeof ge=="object"&&ge!==null){var At=ge.$$typeof;switch(At){case e:var Qr=ge.type;switch(Qr){case r:case o:case n:case d:case p:return Qr;default:var jt=Qr&&Qr.$$typeof;switch(jt){case u:case l:case c:case g:case h:case a:return jt;default:return At}}case t:return At}}}var R=l,F=a,A=e,P=c,B=r,$=g,M=h,U=t,H=o,I=n,K=d,X=p,Z=!1,ve=!1;function z(ge){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(ge){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function re(ge){return E(ge)===l}function ee(ge){return E(ge)===a}function J(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function se(ge){return E(ge)===c}function ae(ge){return E(ge)===r}function oe(ge){return E(ge)===g}function ce(ge){return E(ge)===h}function pe(ge){return E(ge)===t}function de(ge){return E(ge)===o}function xe(ge){return E(ge)===n}function Y(ge){return E(ge)===d}function ze(ge){return E(ge)===p}Ke.ContextConsumer=R,Ke.ContextProvider=F,Ke.Element=A,Ke.ForwardRef=P,Ke.Fragment=B,Ke.Lazy=$,Ke.Memo=M,Ke.Portal=U,Ke.Profiler=H,Ke.StrictMode=I,Ke.Suspense=K,Ke.SuspenseList=X,Ke.isAsyncMode=z,Ke.isConcurrentMode=q,Ke.isContextConsumer=re,Ke.isContextProvider=ee,Ke.isElement=J,Ke.isForwardRef=se,Ke.isFragment=ae,Ke.isLazy=oe,Ke.isMemo=ce,Ke.isPortal=pe,Ke.isProfiler=de,Ke.isStrictMode=xe,Ke.isSuspense=Y,Ke.isSuspenseList=ze,Ke.isValidElementType=k,Ke.typeOf=E})()),Ke}var Xb;function DL(){return Xb||(Xb=1,process.env.NODE_ENV==="production"?Pf.exports=NL():Pf.exports=ML()),Pf.exports}var Jb=DL();const Qb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,e0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",il=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return e0(r.overflowY,t)||e0(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},ol=(e,t,r,n,o,a,l,u)=>a<e&&l>t||a>e&&l<t?0:a<=e&&u<=r||l>=t&&u>=r?a-e-n:l>t&&u<r||a<e&&u>r?l-t+o:0,$L=e=>e.parentElement??(e.getRootNode().host||null),LL=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:U=>U!==u;if(!Qb(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let g=e;for(;Qb(g)&&d(g);){if(g=$L(g),g===p){h.push(g);break}g!=null&&g===document.body&&il(g)&&!il(document.documentElement)||g!=null&&il(g,c)&&h.push(g)}const y=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:v,scrollY:b}=window,{height:m,width:w,top:x,right:k,bottom:E,left:R}=e.getBoundingClientRect(),{top:F,right:A,left:P}=(U=>{const H=window.getComputedStyle(U);return{top:parseFloat(H.scrollMarginTop)||0,right:parseFloat(H.scrollMarginRight)||0,bottom:parseFloat(H.scrollMarginBottom)||0,left:parseFloat(H.scrollMarginLeft)||0}})(e);let B=x-F,$=l==="center"?R+w/2-P+A:l==="end"?k+A:R-P;const M=[];for(let U=0;U<h.length;U++){const H=h[U],{height:I,width:K,top:X,right:Z,bottom:ve,left:z}=H.getBoundingClientRect();if(x>=0&&R>=0&&E<=S&&k<=y&&(H===p&&!il(H)||x>=X&&E<=ve&&R>=z&&k<=Z))return M;const q=getComputedStyle(H),re=parseInt(q.borderLeftWidth,10),ee=parseInt(q.borderTopWidth,10),J=parseInt(q.borderRightWidth,10),se=parseInt(q.borderBottomWidth,10);let ae=0,oe=0;const ce="offsetWidth"in H?H.offsetWidth-H.clientWidth-re-J:0,pe="offsetHeight"in H?H.offsetHeight-H.clientHeight-ee-se:0,de="offsetWidth"in H?H.offsetWidth===0?0:K/H.offsetWidth:0,xe="offsetHeight"in H?H.offsetHeight===0?0:I/H.offsetHeight:0;if(p===H)ae=ol(b,b+S,S,ee,se,b+B,b+B+m,m),oe=l==="start"?$:l==="center"?$-y/2:l==="end"?$-y:ol(v,v+y,y,re,J,v+$,v+$+w,w),ae=Math.max(0,ae+b),oe=Math.max(0,oe+v);else{ae=ol(X,ve,I,ee,se+pe,B,B+m,m),oe=l==="start"?$-z-re:l==="center"?$-(z+K/2)+ce/2:l==="end"?$-Z+J+ce:ol(z,Z,K,re,J+ce,$,$+w,w);const{scrollLeft:Y,scrollTop:ze}=H;ae=xe===0?0:Math.max(0,Math.min(ze+ae/xe,H.scrollHeight-I/xe+pe)),oe=de===0?0:Math.max(0,Math.min(Y+oe/de,H.scrollWidth-K/de+ce)),B+=ze-ae,$+=Y-oe}M.push({el:H,top:ae,left:oe})}return M};var oo=function(){return oo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},oo.apply(this,arguments)},zL=0;function t0(e){return typeof e=="function"?e:pn}function pn(){}function ux(e,t){if(e){var r=LL(e,{boundary:t});r.forEach(function(n){var o=n.el,a=n.top,l=n.left;o.scrollTop=a,o.scrollLeft=l})}}function r0(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function cp(e,t){var r;function n(){r&&clearTimeout(r)}function o(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return o.cancel=n,o}function Fr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];return t.some(function(u){return u&&u.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function n0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(o){typeof o=="function"?o(n):o&&(o.current=n)})}}function jL(){return String(zL++)}function FL(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function i0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function cx(e){return typeof e.type=="string"}function fx(e){return e.props}function HL(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var WL=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function al(e){e===void 0&&(e={});var t={};return WL.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function BL(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=dd(t,n)?t[n]:e[n],r},{})}function dd(e,t){return e[t]!==void 0}function o0(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function UL(e){return Object.prototype.toString.call(e)==="[object Object]"}function If(e,t,r,n,o){var a=r.length;if(a===0)return-1;var l=a-1;(typeof e!="number"||e<0||e>l)&&(e=t>0?-1:l+1);var u=e+t;u<0?u=l:u>l&&(u=0);var c=jl(u,t<0,r,n,o);return c===-1?e>=a?-1:e:c}function jl(e,t,r,n,o){o===void 0&&(o=!1);var a=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var u=e;u<a;u++)if(!n(r[u],u))return u;return o?jl(t?a-1:0,t,r,n):-1}function a0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(o){return o&&(r0(o,e,r)||n&&r0(o,r.document.activeElement,r))})}var fp=pn;process.env.NODE_ENV!=="production"&&(fp=function(e,t,r){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(o){t[o]!==void 0&&r[o]===void 0?console.error('downshift: A component has changed the controlled prop "'+o+'" to be uncontrolled. '+n):t[o]===void 0&&r[o]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+o+'" to be controlled. '+n)})});var VL=cp(function(e){dx(e).textContent=""},500);function dx(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function px(e,t){if(!(!e||!t)){var r=dx(t);r.textContent=e,VL(t)}}var hx=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,gx=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,vx=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,xl=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Sl=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,mx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,bx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,yx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,wx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,xx=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Sx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,_x=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Ex=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,pd=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,kx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Ox=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Ax=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,qL=Object.freeze({__proto__:null,blurButton:kx,blurInput:Sx,changeInput:_x,clickButton:pd,clickItem:xx,controlledPropUpdatedSelectedItem:Ox,itemMouseEnter:vx,keyDownArrowDown:Sl,keyDownArrowUp:xl,keyDownEnd:wx,keyDownEnter:bx,keyDownEscape:mx,keyDownHome:yx,keyDownSpaceButton:Ex,mouseUp:gx,touchEnd:Ax,unknown:hx}),GL=["refKey","ref"],ZL=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],KL=["onKeyDown","onBlur","onChange","onInput","onChangeText"],YL=["refKey","ref"],XL=["onMouseMove","onMouseDown","onClick","onPress","index","item"],JL=(function(){var e=(function(t){function r(o){var a;a=t.call(this,o)||this,a.id=a.props.id||"downshift-"+jL(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(w){return a.id+"-item-"+w},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(w,x){var k=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(E){return E!==k}),w()},x);a.timeoutIds.push(k)},a.setItemCount=function(w){a.itemCount=w},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(w,x){var k=a.getItemNodeFromIndex(x);return k&&k.hasAttribute("disabled")},a.setHighlightedIndex=function(w,x){w===void 0&&(w=a.props.defaultHighlightedIndex),x===void 0&&(x={}),x=al(x),a.internalSetState(gt({highlightedIndex:w},x))},a.clearSelection=function(w){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},w)},a.selectItem=function(w,x,k){x=al(x),a.internalSetState(gt({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:w,inputValue:a.props.itemToString(w)},x),k)},a.selectItemAtIndex=function(w,x,k){var E=a.items[w];E!=null&&a.selectItem(E,x,k)},a.selectHighlightedItem=function(w,x){return a.selectItemAtIndex(a.getState().highlightedIndex,w,x)},a.internalSetState=function(w,x){var k,E,R={},F=typeof w=="function";return!F&&w.hasOwnProperty("inputValue")&&a.props.onInputValueChange(w.inputValue,gt({},a.getStateAndHelpers(),w)),a.setState(function(A){var P;A=a.getState(A);var B=F?w(A):w;B=a.props.stateReducer(A,B),k=B.hasOwnProperty("selectedItem");var $={};return k&&B.selectedItem!==A.selectedItem&&(E=B.selectedItem),(P=B).type||(P.type=hx),Object.keys(B).forEach(function(M){A[M]!==B[M]&&(R[M]=B[M]),M!=="type"&&(B[M],dd(a.props,M)||($[M]=B[M]))}),F&&B.hasOwnProperty("inputValue")&&a.props.onInputValueChange(B.inputValue,gt({},a.getStateAndHelpers(),B)),$},function(){t0(x)();var A=Object.keys(R).length>1;A&&a.props.onStateChange(R,a.getStateAndHelpers()),k&&a.props.onSelect(w.selectedItem,a.getStateAndHelpers()),E!==void 0&&a.props.onChange(E,a.getStateAndHelpers()),a.props.onUserAction(R,a.getStateAndHelpers())})},a.rootRef=function(w){return a._rootNode=w},a.getRootProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,A=E.ref,P=na(E,GL),B=x===void 0?{}:x,$=B.suppressRefError,M=$===void 0?!1:$;a.getRootProps.called=!0,a.getRootProps.refKey=F,a.getRootProps.suppressRefError=M;var U=a.getState(),H=U.isOpen;return gt((k={},k[F]=n0(A,a.rootRef),k.role="combobox",k["aria-expanded"]=H,k["aria-haspopup"]="listbox",k["aria-owns"]=H?a.menuId:void 0,k["aria-labelledby"]=a.labelId,k),P)},a.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?5:1;this.moveHighlightedIndex(k,{type:Sl})}else this.internalSetState({isOpen:!0,type:Sl},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,A=If(F,1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(A,{type:Sl})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?-5:-1;this.moveHighlightedIndex(k,{type:xl})}else this.internalSetState({isOpen:!0,type:xl},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,A=If(F,-1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(A,{type:xl})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),k=x.isOpen,E=x.highlightedIndex;if(k&&E!=null){w.preventDefault();var R=this.items[E],F=this.getItemNodeFromIndex(E);if(R==null||F&&F.hasAttribute("disabled"))return;this.selectHighlightedItem({type:bx})}}},Escape:function(w){w.preventDefault(),this.reset(gt({type:mx},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=gt({},a.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:Ex})}}),a.inputKeyDownHandlers=gt({},a.keyDownHandlers,{Home:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=jl(0,!1,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:yx})}}},End:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=jl(E-1,!0,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:wx})}}}}),a.getToggleButtonProps=function(w){var x=w===void 0?{}:w,k=x.onClick;x.onPress;var E=x.onKeyDown,R=x.onKeyUp,F=x.onBlur,A=na(x,ZL),P=a.getState(),B=P.isOpen,$={onClick:Fr(k,a.buttonHandleClick),onKeyDown:Fr(E,a.buttonHandleKeyDown),onKeyUp:Fr(R,a.buttonHandleKeyUp),onBlur:Fr(F,a.buttonHandleBlur)},M=A.disabled?{}:$;return gt({type:"button",role:"button","aria-label":B?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,A)},a.buttonHandleKeyUp=function(w){w.preventDefault()},a.buttonHandleKeyDown=function(w){var x=o0(w);a.buttonKeyDownHandlers[x]&&a.buttonKeyDownHandlers[x].call(a,w)},a.buttonHandleClick=function(w){if(w.preventDefault(),a.props.environment){var x=a.props.environment.document,k=x.body,E=x.activeElement;k&&k===E&&w.target.focus()}process.env.NODE_ENV==="test"?a.toggleMenu({type:pd}):a.internalSetTimeout(function(){return a.toggleMenu({type:pd})})},a.buttonHandleBlur=function(w){var x=w.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var k=a.props.environment.document.activeElement;(k==null||k.id!==a.inputId)&&k!==x&&a.reset({type:kx})}})},a.getLabelProps=function(w){return gt({htmlFor:a.inputId,id:a.labelId},w)},a.getInputProps=function(w){var x=w===void 0?{}:w,k=x.onKeyDown,E=x.onBlur,R=x.onChange,F=x.onInput;x.onChangeText;var A=na(x,KL),P,B={};P="onChange";var $=a.getState(),M=$.inputValue,U=$.isOpen,H=$.highlightedIndex;if(!A.disabled){var I;B=(I={},I[P]=Fr(R,F,a.inputHandleChange),I.onKeyDown=Fr(k,a.inputHandleKeyDown),I.onBlur=Fr(E,a.inputHandleBlur),I)}return gt({"aria-autocomplete":"list","aria-activedescendant":U&&typeof H=="number"&&H>=0?a.getItemId(H):void 0,"aria-controls":U?a.menuId:void 0,"aria-labelledby":A&&A["aria-label"]?void 0:a.labelId,autoComplete:"off",value:M,id:a.inputId},B,A)},a.inputHandleKeyDown=function(w){var x=o0(w);x&&a.inputKeyDownHandlers[x]&&a.inputKeyDownHandlers[x].call(a,w)},a.inputHandleChange=function(w){a.internalSetState({type:_x,isOpen:!0,inputValue:w.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var w;if(!(a.isMouseDown||!a.props.environment)){var x=a.props.environment.document.activeElement,k=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&a._rootNode&&a._rootNode.contains(x);k||a.reset({type:Sx})}})},a.menuRef=function(w){a._menuNode=w},a.getMenuProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,A=E.ref,P=na(E,YL),B=x===void 0?{}:x,$=B.suppressRefError,M=$===void 0?!1:$;return a.getMenuProps.called=!0,a.getMenuProps.refKey=F,a.getMenuProps.suppressRefError=M,gt((k={},k[F]=n0(A,a.menuRef),k.role="listbox",k["aria-labelledby"]=P&&P["aria-label"]?void 0:a.labelId,k.id=a.menuId,k),P)},a.getItemProps=function(w){var x,k=w===void 0?{}:w,E=k.onMouseMove,R=k.onMouseDown,F=k.onClick;k.onPress;var A=k.index,P=k.item,B=P===void 0?process.env.NODE_ENV==="production"?void 0:HL("getItemProps","item"):P,$=na(k,XL);A===void 0?(a.items.push(B),A=a.items.indexOf(B)):a.items[A]=B;var M="onClick",U=F,H=(x={onMouseMove:Fr(E,function(){A!==a.getState().highlightedIndex&&(a.setHighlightedIndex(A,{type:vx}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:Fr(R,function(K){K.preventDefault()})},x[M]=Fr(U,function(){a.selectItemAtIndex(A,{type:xx})}),x),I=$.disabled?{onMouseDown:H.onMouseDown}:H;return gt({id:a.getItemId(A),role:"option","aria-selected":a.getState().highlightedIndex===A},I,$)},a.clearItems=function(){a.items=[]},a.reset=function(w,x){w===void 0&&(w={}),w=al(w),a.internalSetState(function(k){var E=k.selectedItem;return gt({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(E)},w)},x)},a.toggleMenu=function(w,x){w===void 0&&(w={}),w=al(w),a.internalSetState(function(k){var E=k.isOpen;return gt({isOpen:!E},E&&{highlightedIndex:a.props.defaultHighlightedIndex},w)},function(){var k=a.getState(),E=k.isOpen,R=k.highlightedIndex;E&&a.getItemCount()>0&&typeof R=="number"&&a.setHighlightedIndex(R,w),t0(x)()})},a.openMenu=function(w){a.internalSetState({isOpen:!0},w)},a.closeMenu=function(w){a.internalSetState({isOpen:!1},w)},a.updateStatus=cp(function(){var w;if((w=a.props)!=null&&(w=w.environment)!=null&&w.document){var x=a.getState(),k=a.items[x.highlightedIndex],E=a.getItemCount(),R=a.props.getA11yStatusMessage(gt({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:E,highlightedItem:k},x));a.previousResultCount=E,px(R,a.props.environment.document)}},200);var l=a.props,u=l.defaultHighlightedIndex,c=l.initialHighlightedIndex,d=c===void 0?u:c,p=l.defaultIsOpen,h=l.initialIsOpen,g=h===void 0?p:h,y=l.initialInputValue,S=y===void 0?"":y,v=l.initialSelectedItem,b=v===void 0?null:v,m=a.getState({highlightedIndex:d,isOpen:g,inputValue:S,selectedItem:b});return m.selectedItem!=null&&a.props.initialInputValue===void 0&&(m.inputValue=a.props.itemToString(m.selectedItem)),a.state=m,a}EL(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(o){clearTimeout(o)}),this.timeoutIds=[]},n.getState=function(o){return o===void 0&&(o=this.state),BL(o,this.props)},n.getItemCount=function(){var o=this.items.length;return this.itemCount!=null?o=this.itemCount:this.props.itemCount!==void 0&&(o=this.props.itemCount),o},n.getItemNodeFromIndex=function(o){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(o)):null},n.scrollHighlightedItemIntoView=function(){{var o=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(o,this._menuNode)}},n.moveHighlightedIndex=function(o,a){var l=this.getItemCount(),u=this.getState(),c=u.highlightedIndex;if(l>0){var d=If(c,o,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(d,a)}},n.getStateAndHelpers=function(){var o=this.getState(),a=o.highlightedIndex,l=o.inputValue,u=o.selectedItem,c=o.isOpen,d=this.props.itemToString,p=this.id,h=this.getRootProps,g=this.getToggleButtonProps,y=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,b=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,k=this.selectItem,E=this.selectItemAtIndex,R=this.selectHighlightedItem,F=this.setHighlightedIndex,A=this.clearSelection,P=this.clearItems,B=this.reset,$=this.setItemCount,M=this.unsetItemCount,U=this.internalSetState;return{getRootProps:h,getToggleButtonProps:g,getLabelProps:y,getMenuProps:S,getInputProps:v,getItemProps:b,reset:B,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:k,selectItemAtIndex:E,selectHighlightedItem:R,setHighlightedIndex:F,clearSelection:A,clearItems:P,setItemCount:$,unsetItemCount:M,setState:U,itemToString:d,id:p,highlightedIndex:a,inputValue:l,isOpen:c,selectedItem:u}},n.componentDidMount=function(){var o=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&s0(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){o.internalClearTimeouts()};else{var a=function(){o.isMouseDown=!0},l=function(h){o.isMouseDown=!1;var g=a0(h.target,[o._rootNode,o._menuNode],o.props.environment);!g&&o.getState().isOpen&&o.reset({type:gx},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},u=function(){o.isTouchMove=!1},c=function(){o.isTouchMove=!0},d=function(h){var g=a0(h.target,[o._rootNode,o._menuNode],o.props.environment,!1);!o.isTouchMove&&!g&&o.getState().isOpen&&o.reset({type:Ax},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},p=this.props.environment;p.addEventListener("mousedown",a),p.addEventListener("mouseup",l),p.addEventListener("touchstart",u),p.addEventListener("touchmove",c),p.addEventListener("touchend",d),this.cleanup=function(){o.internalClearTimeouts(),o.updateStatus.cancel(),p.removeEventListener("mousedown",a),p.removeEventListener("mouseup",l),p.removeEventListener("touchstart",u),p.removeEventListener("touchmove",c),p.removeEventListener("touchend",d)}}},n.shouldScroll=function(o,a){var l=this.props.highlightedIndex===void 0?this.getState():this.props,u=l.highlightedIndex,c=a.highlightedIndex===void 0?o:a,d=c.highlightedIndex,p=u&&this.getState().isOpen&&!o.isOpen,h=u!==d;return p||h},n.componentDidUpdate=function(o,a){process.env.NODE_ENV!=="production"&&(fp(this.state,o,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&s0(this._menuNode,this.getMenuProps)),dd(this.props,"selectedItem")&&this.props.selectedItemChanged(o.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Ox,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,o)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var o=i0(this.props.children,pn);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=i0(o(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&QL(a,this.getRootProps),a;if(cx(a))return j.cloneElement(a,this.getRootProps(fx(a)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(j.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:FL,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&UL(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:pn,onInputValueChange:pn,onUserAction:pn,onChange:pn,onSelect:pn,onOuterClick:pn,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:ux},e.stateChangeTypes=qL,e})();process.env.NODE_ENV!=="production"&&(JL.propTypes={children:ue.func,defaultHighlightedIndex:ue.number,defaultIsOpen:ue.bool,initialHighlightedIndex:ue.number,initialSelectedItem:ue.any,initialInputValue:ue.string,initialIsOpen:ue.bool,getA11yStatusMessage:ue.func,itemToString:ue.func,onChange:ue.func,onSelect:ue.func,onStateChange:ue.func,onInputValueChange:ue.func,onUserAction:ue.func,onOuterClick:ue.func,selectedItemChanged:ue.func,stateReducer:ue.func,itemCount:ue.number,id:ue.string,environment:ue.shape({addEventListener:ue.func.isRequired,removeEventListener:ue.func.isRequired,document:ue.shape({createElement:ue.func.isRequired,getElementById:ue.func.isRequired,activeElement:ue.any.isRequired,body:ue.any.isRequired}).isRequired,Node:ue.func.isRequired}),suppressRefError:ue.bool,scrollIntoView:ue.func,selectedItem:ue.any,isOpen:ue.bool,inputValue:ue.string,highlightedIndex:ue.number,labelId:ue.string,inputId:ue.string,menuId:ue.string,getItemId:ue.func});function s0(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function QL(e,t){var r=t.refKey,n=r!=="ref",o=!cx(e);o&&!n&&!Jb.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!o&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!Jb.isForwardRef(e)&&!fx(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function e5(e,t){return t.changes}cp(function(e,t){px(e,t)},200);var ma={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:e5,scrollIntoView:ux,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function t5(){var e=j.useRef(!0);return j.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var _l={environment:ue.shape({addEventListener:ue.func.isRequired,removeEventListener:ue.func.isRequired,document:ue.shape({createElement:ue.func.isRequired,getElementById:ue.func.isRequired,activeElement:ue.any.isRequired,body:ue.any.isRequired}).isRequired,Node:ue.func.isRequired}),itemToString:ue.func,itemToKey:ue.func,stateReducer:ue.func},Tx=gt({},_l,{getA11yStatusMessage:ue.func,highlightedIndex:ue.number,defaultHighlightedIndex:ue.number,initialHighlightedIndex:ue.number,isOpen:ue.bool,defaultIsOpen:ue.bool,initialIsOpen:ue.bool,selectedItem:ue.any,initialSelectedItem:ue.any,defaultSelectedItem:ue.any,id:ue.string,labelId:ue.string,menuId:ue.string,getItemId:ue.func,toggleButtonId:ue.string,onSelectedItemChange:ue.func,onHighlightedIndexChange:ue.func,onStateChange:ue.func,onIsOpenChange:ue.func,scrollIntoView:ue.func}),r5=oo(oo({},Tx),{items:ue.array.isRequired,isItemDisabled:ue.func});oo(oo({},ma),{isItemDisabled:function(){return!1}});process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;var n5=gt({},Tx,{items:ue.array.isRequired,isItemDisabled:ue.func,inputValue:ue.string,defaultInputValue:ue.string,initialInputValue:ue.string,inputId:ue.string,onInputValueChange:ue.func});process.env.NODE_ENV;gt({},ma,{isItemDisabled:function(){return!1}});var i5={stateReducer:_l.stateReducer,itemToKey:_l.itemToKey,environment:_l.environment,selectedItems:ue.array,initialSelectedItems:ue.array,defaultSelectedItems:ue.array,getA11yStatusMessage:ue.func,activeIndex:ue.number,initialActiveIndex:ue.number,defaultActiveIndex:ue.number,onActiveIndexChange:ue.func,onSelectedItemsChange:ue.func,keyNavigationNext:ue.string,keyNavigationPrevious:ue.string};ma.itemToKey,ma.stateReducer,ma.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const o5=j.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...o},a)=>{const{size:l,color:u,isDisabled:c,hasMessage:d,downshift:p,isInvalid:h}=uu(),g=n??c,y=r??p.isOpen;return N.jsx("div",{ref:a,className:Te(wL({size:l,color:u,isDisabled:g,isFocused:!!y,isInvalid:h&&!p.isOpen,hasMessage:d}),e),"aria-disabled":g,"aria-invalid":h,role:"combobox",tabIndex:g?-1:0,...o,children:t})}),a5=j.forwardRef(({isHidden:e,inputClassName:t,...r},n)=>{const{size:o,color:a}=uu();return e?N.jsx("input",{ref:n,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...r}):N.jsx("input",{ref:n,type:"text",className:Te(xL({size:o,color:a}),t),...r})}),s5=j.forwardRef(({className:e,children:t,placement:r,...n},o)=>{const{size:a,hasMessage:l,color:u}=uu();return N.jsx("div",{"data-qui":"SelectMenu",ref:o,className:Te(SL({size:a,placement:r,hasMessage:l,color:u}),e),...n,children:t})}),l5=j.forwardRef(({className:e,children:t,maxHeight:r=300,...n},o)=>{const{size:a}=uu();return N.jsx(ip,{scrollableNodeProps:{ref:o},className:Te(_L({size:a}),e),style:{maxHeight:r},...n,children:t})});o5.displayName="Select.Control";a5.displayName="Select.Input";s5.displayName="Select.Menu";l5.displayName="Select.MenuList";j.createContext(void 0);const u5=({active:e,disabled:t,error:r,isOpen:n,className:o})=>Te("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover text-tab-active-fg":e&&!t,"text-negative":r&&!e&&!t,"bg-primary":n&&!e&&!t,"text-tab-inactive-fg":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},o),c5=j.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:o,children:a,as:l="div",...u},c)=>{const d=u5({active:e,disabled:t,error:r,isOpen:n,className:o});return N.jsx(l,{"data-qui":"ListItem",ref:c,className:d,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:u.onClick?"button":"listitem",...u,children:a})});c5.displayName="ListItem";var Rx=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Rx||{});const f5=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:o})=>N.jsxs(rx,{className:"flex items-center rounded p-1",depth:4,children:[N.jsx(vt.FdMinusNaked,{onClick:o,className:tt("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),N.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),N.jsx(vt.FdPlusNaked,{onClick:n,className:tt("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),d5=L.forwardRef(((e,t)=>L.createElement(Zn.span,ut({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),p5=d5;function l0(e){const t=L.useRef({value:e,previous:e});return L.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Cx]=$d("Tooltip",[tu]),dp=tu(),h5=700,[LF,g5]=Cx("TooltipProvider",{isOpenDelayed:!0,delayDuration:h5,onOpen:()=>{},onClose:()=>{}}),[v5,fu]=Cx("Tooltip"),m5=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,delayDuration:l}=e,u=g5("Tooltip",t),c=dp(t),[d,p]=L.useState(null),h=Ay(),g=L.useRef(0),y=l??u.delayDuration,S=L.useRef(!1),{onOpen:v,onClose:b}=u,[m=!1,w]=jy({prop:n,defaultProp:o,onChange:R=>{R&&(document.dispatchEvent(new CustomEvent("tooltip.open")),v()),a==null||a(R)}}),x=L.useMemo((()=>m?S.current?"delayed-open":"instant-open":"closed"),[m]),k=L.useCallback((()=>{window.clearTimeout(g.current),S.current=!1,w(!0)}),[w]),E=L.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{S.current=!0,w(!0)}),y)}),[y,w]);return L.useEffect((()=>()=>window.clearTimeout(g.current)),[]),L.createElement($y,c,L.createElement(v5,{scope:t,contentId:h,open:m,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:L.useCallback((()=>{u.isOpenDelayed?E():k()}),[u.isOpenDelayed,E,k]),onOpen:L.useCallback(k,[k]),onClose:L.useCallback((()=>{window.clearTimeout(g.current),w(!1),b()}),[w,b])},r))},b5=L.forwardRef(((e,t)=>{const{__scopeTooltip:r,...n}=e,o=fu("TooltipTrigger",r),a=dp(r),l=Gn(t,o.onTriggerChange),u=L.useRef(!1),c=L.useCallback((()=>u.current=!1),[]);return L.useEffect((()=>()=>document.removeEventListener("mouseup",c)),[c]),L.createElement(Ly,ut({asChild:!0},a),L.createElement(Zn.button,ut({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onMouseEnter:sr(e.onMouseEnter,o.onTriggerEnter),onMouseLeave:sr(e.onMouseLeave,o.onClose),onMouseDown:sr(e.onMouseDown,(()=>{o.onClose(),u.current=!0,document.addEventListener("mouseup",c,{once:!0})})),onFocus:sr(e.onFocus,(()=>{u.current||o.onOpen()})),onBlur:sr(e.onBlur,o.onClose),onClick:sr(e.onClick,(d=>{d.detail===0&&o.onClose()}))})))})),y5=L.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=fu("TooltipContent",e.__scopeTooltip);return L.createElement(Md,{present:r||o.open},L.createElement(w5,ut({ref:t},n)))})),w5=L.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,portalled:a=!0,...l}=e,u=fu("TooltipContent",r),c=dp(r),d=a?Dd:L.Fragment,{onClose:p}=u;return Py((()=>p())),L.useEffect((()=>(document.addEventListener("tooltip.open",p),()=>document.removeEventListener("tooltip.open",p))),[p]),L.createElement(d,null,L.createElement(x5,{__scopeTooltip:r}),L.createElement(zy,ut({"data-state":u.stateAttribute},c,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),L.createElement(Cy,null,n),L.createElement(p5,{id:u.contentId,role:"tooltip"},o||n)))}));function x5(e){const{__scopeTooltip:t}=e,r=fu("CheckTriggerMoved",t),n=Ny(r.trigger),o=n==null?void 0:n.left,a=l0(o),l=n==null?void 0:n.top,u=l0(l),c=r.onClose;return L.useEffect((()=>{(a!==void 0&&a!==o||u!==void 0&&u!==l)&&c()}),[c,a,u,o,l]),null}const S5=m5,_5=b5,E5=y5;function k5(e){return N.jsxs(S5,{delayDuration:e.delayDuration,open:e.open,children:[N.jsx(_5,{tabIndex:-1,asChild:!0,children:N.jsx("span",{children:e.children})}),N.jsxs(E5,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&N.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const ci=30,El=500,O5=e=>{const[t,r]=j.useState(ci),[n,o]=j.useState(!1),a=j.useRef(),l=t>ci,u=j.useRef(null);return j.useEffect(()=>{e.isOpen&&!l&&r(El),!e.isOpen&&l&&r(ci)},[e.isOpen]),N.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[N.jsx(ex,{enable:{top:!0},className:"w-full select-none border-t",size:{height:t,width:"100%"},maxHeight:700,minHeight:ci,onResizeStart:()=>{o(!0),a.current&&Date.now()-a.current<200?r(l?ci:El):a.current=Date.now()},onResize:(c,d,p)=>{u.current&&cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),u.current=null})},onResizeStop:(c,d,p,h)=>{r(t+h.height),o(!1)},handleComponent:{top:N.jsx(tx,{isDragging:n})},depth:1}),N.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ye.kebabCase(e.path)}`,children:[N.jsxs("div",{className:tt("flex justify-between items-center px-3 py-0.5",{"flex-1":!l}),children:[N.jsxs("div",{className:"group flex items-center justify-start",children:[N.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),N.jsx("span",{}),e.tipKey?N.jsx(Jy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,N.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{l?(r(ci),e.onClose()):(r(El),e.onOpen())},children:l?N.jsx(vt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):N.jsx(vt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),N.jsxs(gl,{of:l,children:[N.jsx(gl,{of:e.render,children:e.render}),N.jsx(gl,{of:!e.render,children:e.children})]})]})]})};function Px({children:e,viewBox:t="0 0 24 24",...r}){return N.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Ye.omit(r,"isIndeterminate","isChecked"),children:e})}function Ix(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return N.jsx(Px,{viewBox:"0 0 24 24",...e,children:N.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function A5({isChecked:e,isIndeterminate:t,isInvalid:r,icon:n,label:o,className:a="",style:l,...u}){const c=j.useRef(null),d=n||N.jsx(Ix,{}),p=u.checked??e;j.useEffect(()=>{c.current&&(c.current.indeterminate=!!t)},[t]);const h=p||t,g=["base-checkbox-container",a].join(" ");return N.jsxs("label",{className:g,style:l,"data-invalid":r,children:[N.jsx("input",{ref:c,type:"checkbox",className:"base-checkbox-input",checked:p,...u,"aria-invalid":r||void 0}),N.jsx("span",{className:"base-checkbox-control",children:h&&d&&j.cloneElement(d,{isChecked:p,isIndeterminate:t,className:"base-checkbox-icon"})}),o&&N.jsx("span",{className:"base-checkbox-label",children:o})]})}function T5(e,t){const r=j.useRef(!1);j.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Nf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Mf(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function ia(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Nx(e,t){const r=t.slice(0,t.length-1);for(let n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function Mx(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 R5(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let o=!0;for(let a=0;a<r.length;a++)n.indexOf(r[a])===-1&&(o=!1);return o}const Ea={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Nf?173:189,"=":Nf?61:187,";":Nf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Dr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},ua={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Pt={16:!1,18:!1,17:!1,91:!1},lt={};for(let e=1;e<20;e++)Ea["f".concat(e)]=111+e;let at=[],ba=null,Dx="all";const hn=new Map,po=e=>Ea[e.toLowerCase()]||Dr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),C5=e=>Object.keys(Ea).find(t=>Ea[t]===e),P5=e=>Object.keys(Dr).find(t=>Dr[t]===e);function $x(e){Dx=e||"all"}function ka(){return Dx||"all"}function I5(){return at.slice(0)}function N5(){return at.map(e=>C5(e)||P5(e)||String.fromCharCode(e))}function M5(){const e=[];return Object.keys(lt).forEach(t=>{lt[t].forEach(r=>{let{key:n,scope:o,mods:a,shortcut:l}=r;e.push({scope:o,shortcut:l,mods:a,keys:n.split("+").map(u=>po(u))})})}),e}function D5(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const o=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function $5(e){return typeof e=="string"&&(e=po(e)),at.indexOf(e)!==-1}function L5(e,t){let r,n;e||(e=ka());for(const o in lt)if(Object.prototype.hasOwnProperty.call(lt,o))for(r=lt[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:u}=l;return pp(u)}):n++;ka()===e&&$x(t||"all")}function z5(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=po(e.key));const r=at.indexOf(t);if(r>=0&&at.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&at.splice(0,at.length),(t===93||t===224)&&(t=91),t in Pt){Pt[t]=!1;for(const n in Dr)Dr[n]===t&&(Mr[n]=!1)}}function Lx(e){if(typeof e>"u")Object.keys(lt).forEach(o=>{Array.isArray(lt[o])&<[o].forEach(a=>sl(a)),delete lt[o]}),pp(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&sl(o)});else if(typeof e=="object")e.key&&sl(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[o,a]=r;typeof o=="function"&&(a=o,o=""),sl({key:e,scope:o,method:a,splitKey:"+"})}}const sl=e=>{let{key:t,scope:r,method:n,splitKey:o="+"}=e;Mx(t).forEach(l=>{const u=l.split(o),c=u.length,d=u[c-1],p=d==="*"?"*":po(d);if(!lt[p])return;r||(r=ka());const h=c>1?Nx(Dr,u):[],g=[];lt[p]=lt[p].filter(y=>{const v=(n?y.method===n:!0)&&y.scope===r&&R5(y.mods,h);return v&&g.push(y.element),!v}),g.forEach(y=>pp(y))})};function u0(e,t,r,n){if(t.element!==n)return;let o;if(t.scope===r||t.scope==="all"){o=t.mods.length>0;for(const a in Pt)Object.prototype.hasOwnProperty.call(Pt,a)&&(!Pt[a]&&t.mods.indexOf(+a)>-1||Pt[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!Pt[16]&&!Pt[18]&&!Pt[17]&&!Pt[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(at),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function c0(e,t){const r=lt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Mr.filter.call(this,e))return;if((n===93||n===224)&&(n=91),at.indexOf(n)===-1&&n!==229&&at.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(u=>{const c=ua[u];e[u]&&at.indexOf(c)===-1?at.push(c):!e[u]&&at.indexOf(c)>-1?at.splice(at.indexOf(c),1):u==="metaKey"&&e[u]&&(at=at.filter(d=>d in ua||d===n))}),n in Pt){Pt[n]=!0;for(const u in Dr)if(Object.prototype.hasOwnProperty.call(Dr,u)){const c=ua[Dr[u]];Mr[u]=e[c]}if(!r)return}for(const u in Pt)Object.prototype.hasOwnProperty.call(Pt,u)&&(Pt[u]=e[ua[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(at.indexOf(17)===-1&&at.push(17),at.indexOf(18)===-1&&at.push(18),Pt[17]=!0,Pt[18]=!0);const o=ka();if(r)for(let u=0;u<r.length;u++)r[u].scope===o&&(e.type==="keydown"&&r[u].keydown||e.type==="keyup"&&r[u].keyup)&&u0(e,r[u],o,t);if(!(n in lt))return;const a=lt[n],l=a.length;for(let u=0;u<l;u++)if((e.type==="keydown"&&a[u].keydown||e.type==="keyup"&&a[u].keyup)&&a[u].key){const c=a[u],{splitKey:d}=c,p=c.key.split(d),h=[];for(let g=0;g<p.length;g++)h.push(po(p[g]));h.sort().join("")===at.sort().join("")&&u0(e,c,o,t)}}function Mr(e,t,r){at=[];const n=Mx(e);let o=[],a="all",l=document,u=0,c=!1,d=!0,p="+",h=!1,g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(c=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(h=t.capture),typeof t.splitKey=="string"&&(p=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Lx(e,a);u<n.length;u++)e=n[u].split(p),o=[],e.length>1&&(o=Nx(Dr,e)),e=e[e.length-1],e=e==="*"?"*":po(e),e in lt||(lt[e]=[]),lt[e].push({keyup:c,keydown:d,scope:a,mods:o,shortcut:n[u],method:r,key:n[u],splitKey:p,element:l});if(typeof l<"u"&&window){if(!hn.has(l)){const y=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return c0(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;c0(v,l),z5(v)};hn.set(l,{keydownListener:y,keyupListenr:S,capture:h}),Mf(l,"keydown",y,h),Mf(l,"keyup",S,h)}if(!ba){const y=()=>{at=[]};ba={listener:y,capture:h},Mf(window,"focus",y,h)}}}function j5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(lt).forEach(r=>{lt[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function pp(e){const t=Object.values(lt).flat();if(t.findIndex(n=>{let{element:o}=n;return o===e})<0){const{keydownListener:n,keyupListenr:o,capture:a}=hn.get(e)||{};n&&o&&(ia(e,"keyup",o,a),ia(e,"keydown",n,a),hn.delete(e))}if((t.length<=0||hn.size<=0)&&(Object.keys(hn).forEach(o=>{const{keydownListener:a,keyupListenr:l,capture:u}=hn.get(o)||{};a&&l&&(ia(o,"keyup",l,u),ia(o,"keydown",a,u),hn.delete(o))}),hn.clear(),Object.keys(lt).forEach(o=>delete lt[o]),ba)){const{listener:o,capture:a}=ba;ia(window,"focus",o,a),ba=null}}const Df={getPressedKeyString:N5,setScope:$x,getScope:ka,deleteScope:L5,getPressedKeyCodes:I5,getAllKeyCodes:M5,isPressed:$5,filter:D5,trigger:j5,unbind:Lx,keyMap:Ea,modifier:Dr,modifierMap:ua};for(const e in Df)Object.prototype.hasOwnProperty.call(Df,e)&&(Mr[e]=Df[e]);if(typeof window<"u"){const e=window.hotkeys;Mr.noConflict=t=>(t&&window.hotkeys===Mr&&(window.hotkeys=e),Mr),window.hotkeys=Mr}Mr.filter=()=>!0;function F5(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:o=!0}=r,a=j.useCallback((u,c)=>{o&&u.preventDefault(),setTimeout(()=>t(u,c))},n),l=()=>{Mr.unbind(e,a)};j.useEffect(()=>(Mr(e,r,a),l),[e,r,a])}const H5=e=>{const t=j.useRef(null);return j.useEffect(()=>{const r=n=>{t.current&&!t.current.contains(n.target)&&e(n)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function W5(e){const t=j.useRef();return j.useEffect(()=>{t.current=e},[e]),t.current}function B5(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e},[e]),t}function U5(e){const t=j.useRef(null);return j.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function V5(e){const[t,r]=j.useState(e),n=(a,l)=>{r(u=>({...u,features:{...u.features,[a]:{enabled:l}}}))},o=j.useCallback((...a)=>a.every(l=>{var u;return(u=t.features[l])==null?void 0:u.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:o}}const zx=j.createContext(""),q5=e=>N.jsx(zx.Provider,{value:e.value,children:e.children}),G5=()=>{const e=j.useContext(zx);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Z5(e){const[t,r]=j.useState(e),n=j.useMemo(()=>K5(t,r),[]);return{state:t,actions:{...n,set:o=>{r(typeof o=="function"?o:a=>({...a,...o}))}}}}function K5(e,t=()=>{}){return Object.keys(e).reduce((n,o)=>({...n,[`set${Ye.upperFirst(o)}`]:a=>t(l=>({...l,[o]:a}))}),{})}const Y5=(e,t,r={})=>{r={timeout:200,...r};const n=j.useRef(),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return j.useCallback((a,...l)=>{o(),t&&a.detail===1&&(n.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function It(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=nz[e],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ao(e){return!!e&&!!e[ur]}function Si(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===iz})(e)||Array.isArray(e)||!!e[b0]||!!(!((t=e.constructor)===null||t===void 0)&&t[b0])||hp(e)||gp(e))}function Oa(e,t,r){r===void 0&&(r=!1),ho(e)===0?(r?Object.keys:yp)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function ho(e){var t=e[ur];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:hp(e)?2:gp(e)?3:0}function hd(e,t){return ho(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function X5(e,t){return ho(e)===2?e.get(t):e[t]}function jx(e,t,r){var n=ho(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function J5(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function hp(e){return tz&&e instanceof Map}function gp(e){return rz&&e instanceof Set}function fi(e){return e.o||e.t}function vp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=oz(e);delete t[ur];for(var r=yp(t),n=0;n<r.length;n++){var o=r[n],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Aa(e,t){return t===void 0&&(t=!1),mp(e)||ao(e)||!Si(e)||(ho(e)>1&&(e.set=e.add=e.clear=e.delete=Q5),Object.freeze(e),t&&Oa(e,(function(r,n){return Aa(n,!0)}),!0)),e}function Q5(){It(2)}function mp(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Kr(e){var t=az[e];return t||It(18,e),t}function f0(){return process.env.NODE_ENV==="production"||so||It(0),so}function $f(e,t){t&&(Kr("Patches"),e.u=[],e.s=[],e.v=t)}function Fl(e){gd(e),e.p.forEach(ez),e.p=null}function gd(e){e===so&&(so=e.l)}function d0(e){return so={p:[],l:so,h:e,m:!0,_:0}}function ez(e){var t=e[ur];t.i===0||t.i===1?t.j():t.g=!0}function Lf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Kr("ES5").S(t,e,n),n?(r[ur].P&&(Fl(t),It(4)),Si(e)&&(e=Hl(t,e),t.l||Wl(t,e)),t.u&&Kr("Patches").M(r[ur].t,e,t.u,t.s)):e=Hl(t,r,[]),Fl(t),t.u&&t.v(t.u,t.s),e!==Hx?e:void 0}function Hl(e,t,r){if(mp(t))return t;var n=t[ur];if(!n)return Oa(t,(function(u,c){return p0(e,n,t,u,c,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Wl(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=vp(n.k):n.o,a=o,l=!1;n.i===3&&(a=new Set(o),o.clear(),l=!0),Oa(a,(function(u,c){return p0(e,n,o,u,c,r,l)})),Wl(e,o,!1),r&&e.u&&Kr("Patches").N(n,r,e.u,e.s)}return n.o}function p0(e,t,r,n,o,a,l){if(process.env.NODE_ENV!=="production"&&o===r&&It(5),ao(o)){var u=Hl(e,o,a&&t&&t.i!==3&&!hd(t.R,n)?a.concat(n):void 0);if(jx(r,n,u),!ao(u))return;e.m=!1}else l&&r.add(o);if(Si(o)&&!mp(o)){if(!e.h.D&&e._<1)return;Hl(e,o),t&&t.A.l||Wl(e,o)}}function Wl(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Aa(t,r)}function zf(e,t){var r=e[ur];return(r?fi(r):e)[t]}function h0(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function vd(e){e.P||(e.P=!0,e.l&&vd(e.l))}function jf(e){e.o||(e.o=vp(e.t))}function md(e,t,r){var n=hp(t)?Kr("MapSet").F(t,r):gp(t)?Kr("MapSet").T(t,r):e.O?(function(o,a){var l=Array.isArray(o),u={i:l?1:0,A:a?a.A:f0(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},c=u,d=bd;l&&(c=[u],d=ca);var p=Proxy.revocable(c,d),h=p.revoke,g=p.proxy;return u.k=g,u.j=h,g})(t,r):Kr("ES5").J(t,r);return(r?r.A:f0()).p.push(n),n}function Fx(e){return ao(e)||It(22,e),(function t(r){if(!Si(r))return r;var n,o=r[ur],a=ho(r);if(o){if(!o.P&&(o.i<4||!Kr("ES5").K(o)))return o.t;o.I=!0,n=g0(r,a),o.I=!1}else n=g0(r,a);return Oa(n,(function(l,u){o&&X5(o.t,l)===u||jx(n,l,t(u))})),a===3?new Set(n):n})(e)}function g0(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return vp(e)}var v0,so,bp=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",tz=typeof Map<"u",rz=typeof Set<"u",m0=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Hx=bp?Symbol.for("immer-nothing"):((v0={})["immer-nothing"]=!0,v0),b0=bp?Symbol.for("immer-draftable"):"__$immer_draftable",ur=bp?Symbol.for("immer-state"):"__$immer_state",nz={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},iz=""+Object.prototype.constructor,yp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,oz=Object.getOwnPropertyDescriptors||function(e){var t={};return yp(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},az={},bd={get:function(e,t){if(t===ur)return e;var r=fi(e);if(!hd(r,t))return(function(o,a,l){var u,c=h0(a,l);return c?"value"in c?c.value:(u=c.get)===null||u===void 0?void 0:u.call(o.k):void 0})(e,r,t);var n=r[t];return e.I||!Si(n)?n:n===zf(e.t,t)?(jf(e),e.o[t]=md(e.A.h,n,e)):n},has:function(e,t){return t in fi(e)},ownKeys:function(e){return Reflect.ownKeys(fi(e))},set:function(e,t,r){var n=h0(fi(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=zf(fi(e),t),a=o==null?void 0:o[ur];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(J5(r,o)&&(r!==void 0||hd(e.t,t)))return!0;jf(e),vd(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return zf(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,jf(e),vd(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=fi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){It(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){It(12)}},ca={};Oa(bd,(function(e,t){ca[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ca.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&It(13),ca.set.call(this,e,t,void 0)},ca.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&It(14),bd.set.call(this,e[0],t,r,e[0])};var sz=(function(){function e(r){var n=this;this.O=m0,this.D=!0,this.produce=function(o,a,l){if(typeof o=="function"&&typeof a!="function"){var u=a;a=o;var c=n;return function(v){var b=this;v===void 0&&(v=u);for(var m=arguments.length,w=Array(m>1?m-1:0),x=1;x<m;x++)w[x-1]=arguments[x];return c.produce(v,(function(k){var E;return(E=a).call.apply(E,[b,k].concat(w))}))}}var d;if(typeof a!="function"&&It(6),l!==void 0&&typeof l!="function"&&It(7),Si(o)){var p=d0(n),h=md(n,o,void 0),g=!0;try{d=a(h),g=!1}finally{g?Fl(p):gd(p)}return typeof Promise<"u"&&d instanceof Promise?d.then((function(v){return $f(p,l),Lf(v,p)}),(function(v){throw Fl(p),v})):($f(p,l),Lf(d,p))}if(!o||typeof o!="object"){if((d=a(o))===void 0&&(d=o),d===Hx&&(d=void 0),n.D&&Aa(d,!0),l){var y=[],S=[];Kr("Patches").M(o,d,y,S),l(y,S)}return d}It(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(d){for(var p=arguments.length,h=Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];return n.produceWithPatches(d,(function(y){return o.apply(void 0,[y].concat(h))}))};var l,u,c=n.produce(o,a,(function(d,p){l=d,u=p}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(d){return[d,l,u]})):[c,l,u]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Si(r)||It(8),ao(r)&&(r=Fx(r));var n=d0(this),o=md(this,r,void 0);return o[ur].C=!0,gd(n),o},t.finishDraft=function(r,n){var o=r&&r[ur];process.env.NODE_ENV!=="production"&&(o&&o.C||It(9),o.I&&It(10));var a=o.A;return $f(a,n),Lf(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!m0&&It(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var l=Kr("Patches").$;return ao(r)?l(r,n):this.produce(r,(function(u){return l(u,n)}))},e})(),cr=new sz,lz=cr.produce;cr.produceWithPatches.bind(cr);cr.setAutoFreeze.bind(cr);cr.setUseProxies.bind(cr);cr.applyPatches.bind(cr);cr.createDraft.bind(cr);cr.finishDraft.bind(cr);function uz(e){var t=j.useState(function(){return Aa(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],j.useCallback(function(n){r(typeof n=="function"?lz(n):Aa(n))},[])]}const cz=process.env.NODE_ENV==="development",Ff=cz&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,fz=(e,t,r)=>{const[n,o]=uz(e),a=j.useRef(null);j.useEffect(()=>{var c;return r&&(a.current=Ff==null?void 0:Ff.connect({name:r,trace:!0}),(c=a.current)==null||c.init(e)),()=>{var d,p;(p=(d=a.current)==null?void 0:d.disconnect)==null||p.call(d)}},[]);const l=t&&typeof t=="object"?t:{},u=j.useMemo(()=>Object.keys(l).reduce((c,d)=>({...c,[d]:p=>(o(h=>{var g;l[d](h,p),(g=a.current)==null||g.send({type:l[d].name},Fx(h))}),u)}),{}),[o]);return{state:n,dispatch:u}};function bn(e){return typeof e=="function"}function Wx(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Hf=Wx(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
250
|
-
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
251
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function yd(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var du=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=Kf(l),c=u.next();!c.done;c=u.next()){var d=c.value;d.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else l.remove(this);var p=this.initialTeardown;if(bn(p))try{p()}catch(v){a=v instanceof Hf?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=Kf(h),y=g.next();!y.done;y=g.next()){var S=y.value;try{y0(S)}catch(v){a=a??[],v instanceof Hf?a=Cl(Cl([],Yf(a)),Yf(v.errors)):a.push(v)}}}catch(v){n={error:v}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}}if(a)throw new Hf(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)y0(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)&&yd(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&yd(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Bx=du.EMPTY;function Ux(e){return e instanceof du||e&&"closed"in e&&bn(e.remove)&&bn(e.add)&&bn(e.unsubscribe)}function y0(e){bn(e)?e():e.unsubscribe()}var dz={Promise:void 0},pz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Cl([e,t],Yf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hz(e){pz.setTimeout(function(){throw e})}function w0(){}function kl(e){e()}var Vx=(function(e){Ql(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ux(r)&&r.add(n)):n.destination=mz,n}return t.create=function(r,n,o){return new wd(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(du),gz=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){ll(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){ll(n)}else ll(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ll(r)}},e})(),wd=(function(e){Ql(t,e);function t(r,n,o){var a=e.call(this)||this,l;return bn(r)||!r?l={next:r??void 0,error:n??void 0,complete:o??void 0}:l=r,a.destination=new gz(l),a}return t})(Vx);function ll(e){hz(e)}function vz(e){throw e}var mz={closed:!0,next:w0,error:vz,complete:w0},bz=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function yz(e){return e}function wz(e){return e.length===0?yz:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var x0=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,a=Sz(t)?t:new wd(t,r,n);return kl(function(){var l=o,u=l.operator,c=l.source;a.add(u?u.call(a,c):c?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=S0(r),new r(function(o,a){var l=new wd({next:function(u){try{t(u)}catch(c){a(c),l.unsubscribe()}},error:a,complete:o});n.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[bz]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return wz(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=S0(t),new t(function(n,o){var a;r.subscribe(function(l){return a=l},function(l){return o(l)},function(){return n(a)})})},e.create=function(t){return new e(t)},e})();function S0(e){var t;return(t=e??dz.Promise)!==null&&t!==void 0?t:Promise}function xz(e){return e&&bn(e.next)&&bn(e.error)&&bn(e.complete)}function Sz(e){return e&&e instanceof Vx||xz(e)&&Ux(e)}var _z=Wx(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Jr=(function(e){Ql(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new _0(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new _z},t.prototype.next=function(r){var n=this;kl(function(){var o,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Kf(n.currentObservers),u=l.next();!u.done;u=l.next()){var c=u.value;c.next(r)}}catch(d){o={error:d}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;kl(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;kl(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,a=o.hasError,l=o.isStopped,u=o.observers;return a||l?Bx:(this.currentObservers=null,u.push(r),new du(function(){n.currentObservers=null,yd(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,a=n.thrownError,l=n.isStopped;o?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new x0;return r.source=this,r},t.create=function(r,n){return new _0(r,n)},t})(x0),_0=(function(e){Ql(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Bx},t})(Jr),qx=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(qx||{}),Gx=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Gx||{});const Ez=new Jr,kz=new Jr,Zx=new Jr;var Kx=(e=>(e.SAVE_ALL="save-all",e))(Kx||{});const Oz=new Jr;var Yx=(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))(Yx||{});const Az=new Jr;var Xx=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Xx||{});const Tz=new Jr,Rz=new Jr;var Ta=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Ta||{});const Bl=new Jr,Cz=new Jr,wp=31;var xp=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${wp} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(xp||{});function pu(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>wp)throw new Error(xp.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 Pz(e){if(!e)return null;if(typeof e=="string")try{pu(e)}catch(t){return t.message}}function Iz(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!Ye.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ye.isObject(n)||Array.isArray(n))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function Nz(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function hu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=Nz();let n=r;const o=[],a="@!",l=p=>(o.push(p),`${t}${n++}${a}`);let u=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);u=u.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(p,h,g)=>h+l(g)),u=u.replace(/:\d{2}:\d{2}/g,l);const c=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let d=u.replace(c,"");for(let p=0;p<o.length;p++){const g=`${t}${p}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(g,"g");d=d.replace(y,o[p])}return d}var Sp=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Sp||{});const Un={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Ot=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Ot||{}),Kn=(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))(Kn||{}),_p=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(_p||{});const Jx="roles.json",Qx="qodlyApp.json",Mz="model.4DModel",e1="HTTPHandlers.json",t1="Shared/i18n.json";function Dz(e){const t=Ep(e);switch(t){case Ot.SETTINGS:return{filename:"Settings",type:t};case Ot.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Ot.ROLES:return{filename:"Roles & Privileges",type:t};case Ot.LOCALIZATION:return{filename:"Localization",type:t};case Ot.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function Ep(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Ot.MODEL;case r==="WebForm":return Ot.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Un.METHODS):return Ot.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Un.CLASSES):return Ot.CLASS;case e===Jx:return Ot.ROLES;case e===e1:return Ot.HTTP_HANDLERS;case e===Qx:return Ot.SETTINGS;case e===t1:return Ot.LOCALIZATION;default:return Ot.TEXT}}function $z(e,t=!1){switch(e){case Un.REPORTS:case"report":return"QoDoc";case Un.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Un.CLASSES:case Un.METHODS:return t?"4qs":"4dm";default:return""}}function Lz(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class r1{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(o=>{t=o}),n=this.current.then(()=>t);return this.current=r,n}}function kp(){const e=new r1;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const n1=Ye.curry((e,t,r)=>e&&Ye.get(r,e)===t),zz=Ye.curry((e,t,r)=>Ye.get(r,e)!==t),jz=Ye.curry((e,t)=>Ye.get(t,"id")!==e),Fz=Ye.curry((e,t)=>Ye.get(t,"id")===e),Hz=Ye.curry((e,t)=>Ye.get(t,"path")===e);function Wz(e="id",t,r){return r.findIndex(n1(e,t))!==-1}function Bz(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function i1(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function Uz(e){return e.type==="object"}function o1(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function a1(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!i1(e)}function Vz(e){return o1(e)||a1(e)}function qz(e){return e.applyTo==="dataStore"}function Gz(e){return e.applyTo==="dataClass"}function Zz(e){return e.applyTo==="entity"}function Kz(e){return e.applyTo==="entityCollection"}function Yz(e){return e.type==="entity"}function Xz(e){return e.type==="entitysel"}function s1(e){return e.dataType==="array"}function l1(e){return e.dataType==="object"}function u1(e){return e.type==="scalar"}function Jz(e){return s1(e)||l1(e)||u1(e)}const Qz=e=>e!=null&&e.type==="entity",e3=e=>e.type==="entitysel",t3=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",r3=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",n3=e=>e.type==="scalar"&&e.dataType==="date";function i3(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function o3(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var Ra=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Ra||{}),c1=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(c1||{}),Op=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Op||{});const a3={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function s3(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Ra.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Op.table}},...n}}function f1(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Ra.capable,Ra.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 l3(e,t,r=!1){const n=Ye.isString(t)?t:f1(t);if(!r&&d1(e))return e;const o=p1(e);return`//%attributes = ${n}\r
|
|
252
|
-
${o}`}function d1(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function p1(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const u3=()=>yi.uuid().replaceAll("-","").toUpperCase(),c3=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Ve=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Ve||{}),nt=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(nt||{});const f3=[Ve.DATASTORE,Ve.DATACLASS,Ve.ATTRIBUTE,Ve.SINGLETON_METHOD,Ve.SINGLETON,Ve.METHOD,nt.DS_METHOD,nt.DATACLASS_METHOD,nt.ENTITY_METHOD,nt.ENTITY_SEL_METHOD],E0=e=>[nt.DS_METHOD,nt.ENTITY_METHOD,nt.DATACLASS_METHOD].includes(e)?Ve.METHOD:e,Ul="guest",Ap=[{key:"read",label:"Read",canApplyTo:[Ve.DATASTORE,Ve.DATACLASS,Ve.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ve.DATASTORE,Ve.DATACLASS,Ve.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ve.DATASTORE,Ve.DATACLASS,Ve.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ve.DATASTORE,Ve.DATACLASS,Ve.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Ve.DATASTORE,Ve.DATACLASS,Ve.METHOD,nt.DS_METHOD,nt.DATACLASS_METHOD,nt.ENTITY_METHOD,nt.ENTITY_SEL_METHOD,Ve.SINGLETON,Ve.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ve.METHOD,nt.DS_METHOD,nt.DATACLASS_METHOD,nt.ENTITY_METHOD,nt.ENTITY_SEL_METHOD,Ve.SINGLETON_METHOD]}];function Or(e,...t){return Array.from(new Set([...e,...t]))}function h1(e){const t={},r=new Map;e.forEach(c=>{const d=c.id||yi.generate();t[d]={...c,id:d,parents:[],includes:Or(c.includes||[]),resources:[]},r.set(c.privilege,d)}),Object.entries(t).forEach(([c,d])=>{const p=d.includes.map(h=>{const g=r.get(h);return g?(t[g].parents=Or(t[g].parents,g),g):""}).filter(Boolean);t[c]={...d,includes:p}});const n=g1(t),o=new Set;function a(c){o.add(c.id),c.includes=c.includes.filter(d=>!o.has(d))}if(n.forEach(a),n.forEach(c=>c.parents=[]),n.forEach(c=>{c.includes.forEach(d=>t[d].parents.push(c.id))}),Object.values(t).find(({privilege:c})=>c===Ul))return t;const u=yi.generate();return{[u]:{id:u,privilege:Ul,includes:[],parents:[],resources:[]},...t}}function g1(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function gu(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(o=>{n=Or(n,...gu(o,t),o)}),n}function Vl(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(o=>{n=Or(n,...Vl(o,t),o)}),n}function d3(e,t){const r=t[e];if(!r)return[];const n=[e,...gu(e,t),...r.includes];return Object.keys(t).filter(o=>!n.includes(o))}function p3(e,t){return t[e]?Object.keys(t).reduce((n,o)=>o===e?n:{...n,[o]:{...t[o],parents:t[o].parents.filter(a=>a!==e),includes:t[o].includes.filter(a=>a!==e)}},{}):t}function h3(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:Or(n.includes,t)},[t]:{...r[t],parents:Or(o.parents,e)}}}function g3(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(a=>a!==t)},[t]:{...r[t],parents:r[t].parents.filter(a=>a!==e)}}}function v3(e,t){pu(e),Object.entries(t).forEach(([,{privilege:n}])=>{if(e.toLowerCase()===n.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=yi.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function m3(e,t,r){if(!e)throw new Error("Please enter a name");if(!r[t])throw new Error("Invalid privilege");return Object.entries(r).forEach(([,{privilege:n,id:o}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==o)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function b3(e,t){return e.map(r=>wn(r,t))}function wn(e,t){return t[e]?t[e]:null}function v1({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[o,a])=>{const l=Ye.find(Ap,["key",o]);return!l||!l.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(c=>{n[c]=Or(n[c]||[],o)}),n},{})}const k0=(e,t=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${t?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${t?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${t?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Tp(e){return{permissions:Ap.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Ve.DATASTORE:return{...n,info:k0(r,!0)};case Ve.DATACLASS:return{...n,info:k0(r)};default:return n}}),resource:e.applyTo,type:e.type}}function m1(e,t){const r=b1(t),n={};return e.filter(({type:o})=>f3.includes(o)).forEach(o=>{const a=v1(o);Object.entries(a).forEach(([l,u])=>{var p;const c=(p=r[l])==null?void 0:p.id;if(!c)return;n[c]=n[c]||{...t[c]};let d=Ye.find(n[c].resources,{resource:o.applyTo,type:o.type});d||(d=Tp(o),n[c].resources.push(d)),d.permissions=d.permissions.map(h=>({...h,checked:h.checked||u.includes(h.name)}))})}),{...t,...n}}function b1(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function y3(e){var r;if(!e)throw new Error("Invalid roles data");const t=h1(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:m1(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=yi.generate(),role:o,privileges:a=[]})=>({id:n,role:o,privileges:Or(a).map(l=>{var u;return(u=Object.values(t).find(({privilege:c})=>c===l))==null?void 0:u.id}).filter(Boolean)})).reduce((n,o)=>({...n,[o.id]:{...o}}),{})}}function w3(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>gu(n,e.privileges).reverse())].flat().filter((n,o,a)=>a.indexOf(n)===o).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,o)=>(o.resources.forEach(({permissions:a,resource:l,type:u})=>{let c=Ye.find(n,{applyTo:l,type:E0(u)});c||(c={applyTo:l,type:E0(u)},n.push(c)),a.forEach(({name:d,checked:p})=>{p&&c&&(c[d]=c[d]||[],c[d].push(o.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==Ul).map(({id:n,includes:o,privilege:a})=>({id:n,privilege:a,includes:o.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(o=>{var a;return(a=e.privileges[o])==null?void 0:a.privilege}).filter(Boolean)}))}}function x3(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function o(u,c,d=[]){const p=u.reduce((h,g)=>[...h,...t[g][c]],[]);return p.length===0?d:(d.push(p),o(p,c,d))}function a(u){const c=[],d=[];for(let p=u.length-1;p>=0;p-=1){const h=u[p].filter(g=>c.includes(g)?!1:(c.push(g),!0));h.length>0&&d.unshift(Or(h))}return d}function l(u,c){const d=[];return u.reduce((p,h)=>(h.forEach(g=>{t[g][c==="parents"?"includes":"parents"].forEach(S=>{d.includes(S)&&p.push(c==="parents"?{source:g,target:S}:{source:S,target:g})}),d.push(g)}),p),[])}return n.children=o([e],"includes"),n.children=a(n.children),n.parents=o([e],"parents"),n.parents=a(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function S3(e,t,r){const n=wn(e,r);if(!n||Ye.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const o={...n,resources:[...n.resources,Tp(t)]};return{...r,[e]:o}}function _3(e,t,r){const n=wn(e,r);if(!n)return r;const o={...n,resources:n.resources.filter(({resource:a,type:l})=>a!==t.applyTo||l!==t.type)};return{...r,[e]:o}}function E3(e,t){const r=Object.entries(e).map(([n,o])=>{const a=wn(n,t);if(!a)return{[n]:t[n]};const l={...a,resources:a.resources.filter(({resource:u,type:c})=>!o.some(d=>d.applyTo===u&&d.type===c))};return{[n]:l}}).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}function k3(e,t){const r=wn(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(o=>o.permissions.some(a=>a.from.length)).map(o=>({...o,permissions:o.permissions.map(a=>({...a,checked:!1}))}))};return{...t,[e]:n}}function O3(e,t,r,n){const o=wn(e,n);if(!o)return n;const l=Ye.find(o.resources,{type:t.type,resource:t.resource})?{...o,resources:o.resources.map(u=>u.type===t.type&&u.resource===t.resource?{...u,permissions:t.permissions.map(c=>c.name===r.name?{...c,checked:!c.checked,from:[]}:c)}:u)}:{...o,resources:[...o.resources,{...t,permissions:t.permissions.map(u=>({...u,checked:r.name===u.name,from:[]}))}]};return{...n,[e]:l}}function A3(e,t){var c;const r=y1(e,t)||[],n=((c=wn(e,t))==null?void 0:c.resources)||[],l=([...r,...n].filter(({type:d})=>[nt.DS_METHOD,nt.DATACLASS_METHOD,nt.ENTITY_METHOD,nt.ENTITY_SEL_METHOD].includes(d))||[]).map(({resource:d})=>d);return Object.entries(t).reduce((d,[p,{resources:h}])=>(h.filter(({resource:g,type:y})=>[nt.DS_METHOD,nt.DATACLASS_METHOD,nt.ENTITY_METHOD,nt.ENTITY_SEL_METHOD].includes(y)&&l.includes(g)).forEach(({permissions:g,resource:y})=>{var v;((v=g.find(({name:b})=>b==="promote"))==null?void 0:v.checked)&&(d[y]=Or(d[y]||[],p))}),d),{})}function y1(e,t){var l;const r=wn(e,t);if(!r)return[];const n=(l=Object.values(t).find(u=>u.privilege===Ul))==null?void 0:l.id;return(n&&n!==e?Or(Vl(e,t),n):Vl(e,t)).reduce((u,c)=>(t[c].resources.forEach(p=>{if(p.permissions.filter(({checked:y,name:S})=>y&&S!=="promote").length===0)return;const g=Ye.find(u,{type:p.type,resource:p.resource});if(!g){u.push({...p,permissions:p.permissions.map(y=>({...y,from:y.checked?[c]:[],checked:!1}))});return}g.permissions=g.permissions.map((y,S)=>{let{from:v=[]}=y;return p.permissions[S].checked&&!v.includes(c)&&(v=[...v,c]),{...y,from:v,checked:y.checked}})}),u),Ye.clone(r.resources.map(u=>({...u,permissions:u.permissions.map(({checked:c,...d})=>({...d,checked:!!c}))}))))}const T3=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},R3=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,C3=(e,t)=>{if(pu(e.role),Object.values(t).find(n=>n.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((n,o)=>e.id===o.id?{...n,[e.id]:e}:{...n,[o.id]:o},{})},yt="/rest/$designer",Fa="/rest/$designer-ext";function P3(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(n=>{typeof r[n]=="string"&&(r[n]=new Date(r[n]))}),r}}class xd extends Error{constructor(t,r,n){super(),this.url=t,this.response=r,this.data=n}log(){console.error("Error while sending the request",this)}}async function qe(e,t){var o;Bl.next({action:Ta.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const l=await r.json();((o=l==null?void 0:l.__ERROR)==null?void 0:o.some(c=>c.errCode===1651))&&Bl.next({action:Ta.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new xd(e,r,l)}catch{a=new xd(e,r)}throw a.log(),a}return await r.json()}function I3(e){return Bl.next({action:Ta.REQUEST_SENT}),e}var Hr={},Ct={},O0;function pi(){if(O0)return Ct;O0=1;var e=Ct.ValidationError=function(v,b,m,w,x,k){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,F){return R+u(F)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var E=m.$id||m.id;this.schema=E||m}b!==void 0&&(this.instance=b),this.name=x,this.argument=k,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Ct.ValidatorResult=function(v,b,m,w){this.instance=v,this.schema=b,this.options=m,this.path=w.path,this.propertyPath=w.propertyPath,this.errors=[],this.throwError=m&&m.throwError,this.throwFirst=m&&m.throwFirst,this.throwAll=m&&m.throwAll,this.disableFormat=m&&m.disableFormat===!0};t.prototype.addError=function(v){var b;if(typeof v=="string")b=new e(v,this.instance,this.schema,this.path);else{if(!v)throw new Error("Missing error detail");if(!v.message)throw new Error("Missing error message");if(!v.name)throw new Error("Missing validator type");b=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(b),this.throwFirst)throw new n(this);if(this.throwError)throw b;return b},t.prototype.importErrors=function(v){typeof v=="string"||v&&v.validatorType?this.addError(v):v&&v.errors&&(this.errors=this.errors.concat(v.errors))};function r(S,v){return v+": "+S.toString()+`
|
|
253
|
-
`}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Ct.ValidatorResultError=n;function n(S){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=S.instance,this.schema=S.schema,this.options=S.options,this.errors=S.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var o=Ct.SchemaError=function S(v,b){this.message=v,this.schema=b,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};o.prototype=Object.create(Error.prototype,{constructor:{value:o,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=Ct.SchemaContext=function(v,b,m,w,x){this.schema=v,this.options=b,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(k,E){return k+u(E)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};a.prototype.resolve=function(v){return y(this.base,v)},a.prototype.makeChild=function(v,b){var m=b===void 0?this.path:this.path.concat([b]),w=v.$id||v.id;let x=y(this.base,w||"");var k=new a(v,this.options,m,x,Object.create(this.schemas));return w&&!k.schemas[x]&&(k.schemas[x]=v),k};var l=Ct.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(S){return typeof S=="string"&&parseFloat(S)===parseInt(S,10)&&!isNaN(S)},regex:function(S){var v=!0;try{new RegExp(S)}catch{v=!1}return v},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],Ct.isFormat=function(v,b,m){if(typeof v=="string"&&l[b]!==void 0){if(l[b]instanceof RegExp)return l[b].test(v);if(typeof l[b]=="function")return l[b](v)}else if(m&&m.customFormats&&typeof m.customFormats[b]=="function")return m.customFormats[b](v);return!0};var u=Ct.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Ct.deepCompareStrict=function S(v,b){if(typeof v!=typeof b)return!1;if(Array.isArray(v))return!Array.isArray(b)||v.length!==b.length?!1:v.every(function(x,k){return S(v[k],b[k])});if(typeof v=="object"){if(!v||!b)return v===b;var m=Object.keys(v),w=Object.keys(b);return m.length!==w.length?!1:m.every(function(x){return S(v[x],b[x])})}return v===b};function c(S,v,b,m){typeof b=="object"?v[m]=h(S[m],b):S.indexOf(b)===-1&&v.push(b)}function d(S,v,b){v[b]=S[b]}function p(S,v,b,m){typeof v[m]!="object"||!v[m]?b[m]=v[m]:S[m]?b[m]=h(S[m],v[m]):b[m]=v[m]}function h(S,v){var b=Array.isArray(v),m=b&&[]||{};return b?(S=S||[],m=m.concat(S),v.forEach(c.bind(null,S,m))):(S&&typeof S=="object"&&Object.keys(S).forEach(d.bind(null,S,m)),Object.keys(v).forEach(p.bind(null,S,v,m))),m}Ct.deepMerge=h,Ct.objectGetPath=function(v,b){for(var m=b.split("/").slice(1),w;typeof(w=m.shift())=="string";){var x=decodeURIComponent(w.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in v))return;v=v[x]}return v};function g(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Ct.encodePath=function(v){return v.map(g).join("")},Ct.getDecimalPlaces=function(v){var b=0;if(isNaN(v))return b;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return b;b=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(b+=w[1].length),b},Ct.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var y=Ct.resolveUrl=function(v,b){const m=new URL(b,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:k}=m;return w+x+k}return m.toString()};return Ct}var Wf,A0;function N3(){if(A0)return Wf;A0=1;var e=pi(),t=e.ValidatorResult,r=e.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var o=n.validators={};o.type=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S),b=Array.isArray(g.type)?g.type:[g.type];if(!b.some(this.testType.bind(this,h,g,y,S))){var m=b.map(function(w){if(w){var x=w.$id||w.id;return x?"<"+x+">":w+""}});v.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return v};function a(p,h,g,y,S){var v=h.throwError,b=h.throwAll;h.throwError=!1,h.throwAll=!1;var m=this.validateSchema(p,S,h,g);return h.throwError=v,h.throwAll=b,!m.valid&&y instanceof Function&&y(m),m.valid}o.anyOf=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S),b=new t(h,g,y,S);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,h,y,S,function(w){b.importErrors(w)}))){var m=g.anyOf.map(function(w,x){var k=w.$id||w.id;return k?"<"+k+">":w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+x+"]"});y.nestedErrors&&v.importErrors(b),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},o.allOf=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var v=new t(h,g,y,S),b=this;return g.allOf.forEach(function(m,w){var x=b.validateSchema(h,m,y,S);if(!x.valid){var k=m.$id||m.id,E=k||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:E,length:x.errors.length,valid:x},message:"does not match allOf schema "+E+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},o.oneOf=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var v=new t(h,g,y,S),b=new t(h,g,y,S),m=g.oneOf.filter(a.bind(this,h,y,S,function(x){b.importErrors(x)})).length,w=g.oneOf.map(function(x,k){var E=x.$id||x.id;return E||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+k+"]"});return m!==1&&(y.nestedErrors&&v.importErrors(b),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},o.if=function(h,g,y,S){if(h===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var v=a.call(this,h,y,S,null,g.if),b=new t(h,g,y,S),m;if(v){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(h,g.then,y,S.makeChild(g.then)),b.importErrors(m)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(h,g.else,y,S.makeChild(g.else)),b.importErrors(m)}return b};function l(p,h){if(Object.hasOwnProperty.call(p,h))return p[h];if(h in p){for(;p=Object.getPrototypeOf(p);)if(Object.propertyIsEnumerable.call(p,h))return p[h]}}o.propertyNames=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(b))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in h)if(l(h,m)!==void 0){var w=this.validateSchema(m,b,y,S.makeChild(b));v.importErrors(w)}return v}},o.properties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.properties||{};for(var m in b){var w=b[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,m,w,y,S);var x=l(h,m),k=this.validateSchema(x,w,y,S.makeChild(w,m));k.instance!==v.instance[m]&&(v.instance[m]=k.instance),v.importErrors(k)}}return v}};function u(p,h,g,y,S,v){if(this.types.object(p)&&!(h.properties&&h.properties[S]!==void 0))if(h.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var b=h.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(p,S,b,g,y);var m=this.validateSchema(p[S],b,g,y.makeChild(b,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}o.patternProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.patternProperties||{};for(var m in h){var w=!0;for(var x in b){var k=b[x];if(k!==void 0){if(k===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var E=new RegExp(x,"u")}catch{E=new RegExp(x)}if(E.test(m)){w=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,m,k,y,S);var R=this.validateSchema(h[m],k,y,S.makeChild(k,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&u.call(this,h,g,y,S,m,v)}return v}},o.additionalProperties=function(h,g,y,S){if(this.types.object(h)){if(g.patternProperties)return null;var v=new t(h,g,y,S);for(var b in h)u.call(this,h,g,y,S,b,v);return v}},o.minProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=Object.keys(h);return b.length>=g.minProperties||v.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),v}},o.maxProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=Object.keys(h);return b.length<=g.maxProperties||v.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),v}},o.items=function(h,g,y,S){var v=this;if(this.types.array(h)&&g.items!==void 0){var b=new t(h,g,y,S);return h.every(function(m,w){if(Array.isArray(g.items))var x=g.items[w]===void 0?g.additionalItems:g.items[w];else var x=g.items;if(x===void 0)return!0;if(x===!1)return b.addError({name:"items",message:"additionalItems not permitted"}),!1;var k=v.validateSchema(m,x,y,S.makeChild(x,w));return k.instance!==b.instance[w]&&(b.instance[w]=k.instance),b.importErrors(k),!0}),b}},o.contains=function(h,g,y,S){var v=this;if(this.types.array(h)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var b=new t(h,g,y,S),m=h.some(function(w,x){var k=v.validateSchema(w,g.contains,y,S.makeChild(g.contains,x));return k.errors.length===0});return m===!1&&b.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),b}},o.minimum=function(h,g,y,S){if(this.types.number(h)){var v=new t(h,g,y,S);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?h>g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):h>=g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),v}},o.maximum=function(h,g,y,S){if(this.types.number(h)){var v=new t(h,g,y,S);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?h<g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):h<=g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),v}},o.exclusiveMinimum=function(h,g,y,S){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(h)){var v=new t(h,g,y,S),b=h>g.exclusiveMinimum;return b||v.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),v}},o.exclusiveMaximum=function(h,g,y,S){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(h)){var v=new t(h,g,y,S),b=h<g.exclusiveMaximum;return b||v.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),v}};var c=function(h,g,y,S,v,b){if(this.types.number(h)){var m=g[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(h,g,y,S),x=e.getDecimalPlaces(h),k=e.getDecimalPlaces(m),E=Math.max(x,k),R=Math.pow(10,E);return Math.round(h*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:b+JSON.stringify(m)}),w}};o.multipleOf=function(h,g,y,S){return c.call(this,h,g,y,S,"multipleOf","is not a multiple of (divisible by) ")},o.divisibleBy=function(h,g,y,S){return c.call(this,h,g,y,S,"divisibleBy","is not divisible by (multiple of) ")},o.required=function(h,g,y,S){var v=new t(h,g,y,S);return h===void 0&&g.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(g.required)&&g.required.forEach(function(b){l(h,b)===void 0&&v.addError({name:"required",argument:b,message:"requires property "+JSON.stringify(b)})}),v},o.pattern=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=g.pattern;try{var m=new RegExp(b,"u")}catch{m=new RegExp(b)}return h.match(m)||v.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),v}},o.format=function(h,g,y,S){if(h!==void 0){var v=new t(h,g,y,S);return!v.disableFormat&&!e.isFormat(h,g.format,this)&&v.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),v}},o.minLength=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=h.match(/[\uDC00-\uDFFF]/g),m=h.length-(b?b.length:0);return m>=g.minLength||v.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),v}},o.maxLength=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=h.match(/[\uDC00-\uDFFF]/g),m=h.length-(b?b.length:0);return m<=g.maxLength||v.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),v}},o.minItems=function(h,g,y,S){if(this.types.array(h)){var v=new t(h,g,y,S);return h.length>=g.minItems||v.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),v}},o.maxItems=function(h,g,y,S){if(this.types.array(h)){var v=new t(h,g,y,S);return h.length<=g.maxItems||v.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),v}};function d(p,h,g){var y,S=g.length;for(y=h+1,S;y<S;y++)if(e.deepCompareStrict(p,g[y]))return!1;return!0}return o.uniqueItems=function(h,g,y,S){if(g.uniqueItems===!0&&this.types.array(h)){var v=new t(h,g,y,S);return h.every(d)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},o.dependencies=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S);for(var b in g.dependencies)if(h[b]!==void 0){var m=g.dependencies[b],w=S.makeChild(m,b);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(k){h[k]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+k+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(h,m,y,w);v.instance!==x.instance&&(v.instance=x.instance),x&&x.errors.length&&(v.addError({name:"dependencies",argument:w.propertyPath,message:"does not meet dependency required by "+w.propertyPath}),v.importErrors(x))}}return v}},o.enum=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var v=new t(h,g,y,S);return g.enum.some(e.deepCompareStrict.bind(null,h))||v.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),v},o.const=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S);return e.deepCompareStrict(g.const,h)||v.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),v},o.not=o.disallow=function(h,g,y,S){var v=this;if(h===void 0)return null;var b=new t(h,g,y,S),m=g.not||g.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(h,g,y,S,w)){var x=w&&(w.$id||w.id),k=x||w;b.addError({name:"not",argument:k,message:"is of prohibited type "+k})}}),b):null},Wf=n,Wf}var ul={},T0;function Sd(){if(T0)return ul;T0=1;var e=pi();ul.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return ul.scan=function(n,o){function a(p,h){if(!h||typeof h!="object")return;if(h.$ref){let v=e.resolveUrl(p,h.$ref);d[v]=d[v]?d[v]+1:0;return}var g=h.$id||h.id;let y=e.resolveUrl(p,g);var S=g?y:p;if(S){if(S.indexOf("#")<0&&(S+="#"),c[S]){if(!e.deepCompareStrict(c[S],h))throw new Error("Schema <"+S+"> already exists with different definition");return c[S]}c[S]=h,S[S.length-1]=="#"&&(c[S.substring(0,S.length-1)]=h)}l(S+"/items",Array.isArray(h.items)?h.items:[h.items]),l(S+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),a(S+"/additionalItems",h.additionalItems),u(S+"/properties",h.properties),a(S+"/additionalProperties",h.additionalProperties),u(S+"/definitions",h.definitions),u(S+"/patternProperties",h.patternProperties),u(S+"/dependencies",h.dependencies),l(S+"/disallow",h.disallow),l(S+"/allOf",h.allOf),l(S+"/anyOf",h.anyOf),l(S+"/oneOf",h.oneOf),a(S+"/not",h.not)}function l(p,h){if(Array.isArray(h))for(var g=0;g<h.length;g++)a(p+"/"+g,h[g])}function u(p,h){if(!(!h||typeof h!="object"))for(var g in h)a(p+"/"+g,h[g])}var c={},d={};return a(n,o),new t(c,d)},ul}var Bf,R0;function M3(){if(R0)return Bf;R0=1;var e=N3(),t=pi(),r=Sd().scan,n=t.ValidatorResult,o=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,u="/",c=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(p),this.attributes=Object.create(e.validators)};c.prototype.customFormats={},c.prototype.schemas=null,c.prototype.types=null,c.prototype.attributes=null,c.prototype.unresolvedRefs=null,c.prototype.addSchema=function(g,y){var S=this;if(!g)return null;var v=r(y||u,g),b=y||g.$id||g.id;for(var m in v.id)this.schemas[m]=v.id[m];for(var m in v.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(w){return typeof S.schemas[w]>"u"}),this.schemas[b]},c.prototype.addSubSchemaArray=function(g,y){if(Array.isArray(y))for(var S=0;S<y.length;S++)this.addSubSchema(g,y[S])},c.prototype.addSubSchemaObject=function(g,y){if(!(!y||typeof y!="object"))for(var S in y)this.addSubSchema(g,y[S])},c.prototype.setSchemas=function(g){this.schemas=g},c.prototype.getSchema=function(g){return this.schemas[g]},c.prototype.validate=function(g,y,S,v){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new a("Expected `schema` to be an object or boolean");S||(S={});var b=y.$id||y.id;let m=t.resolveUrl(S.base,b||"");if(!v){v=new l(y,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=y);var w=r(m,y);for(var x in w.id){var k=w.id[x];v.schemas[x]=k}}if(S.required&&g===void 0){var E=new n(g,y,S,v);return E.addError("is required, but is undefined"),E}var E=this.validateSchema(g,y,S,v);if(E){if(S.throwAll&&E.errors.length)throw new o(E)}else throw new Error("Result undefined");return E};function d(h){var g=typeof h=="string"?h:h.$ref;return typeof g=="string"?g:!1}c.prototype.validateSchema=function(g,y,S,v){var b=new n(g,y,S,v);if(typeof y=="boolean")y===!0?y={}:y===!1&&(y={type:[]});else if(!y)throw new Error("schema is undefined");if(y.extends)if(Array.isArray(y.extends)){var m={schema:y,ctx:v};y.extends.forEach(this.schemaTraverser.bind(this,m)),y=m.schema,m.schema=null,m.ctx=null,m=null}else y=t.deepMerge(y,this.superResolve(y.extends,v));var w=d(y);if(w){var x=this.resolve(y,w,v),k=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(g,x.subschema,S,k)}var E=S&&S.skipAttributes||[];for(var R in y)if(!e.ignoreProperties[R]&&E.indexOf(R)<0){var F=null,A=this.attributes[R];if(A)F=A.call(this,g,y,S,v);else if(S.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+R,y);F&&b.importErrors(F)}if(typeof S.rewrite=="function"){var P=S.rewrite.call(this,g,y,S,v);b.instance=P}return b},c.prototype.schemaTraverser=function(g,y){g.schema=t.deepMerge(g.schema,this.superResolve(y,g.ctx))},c.prototype.superResolve=function(g,y){var S=d(g);return S?this.resolve(g,S,y).subschema:g},c.prototype.resolve=function(g,y,S){if(y=S.resolve(y),S.schemas[y])return{subschema:S.schemas[y],switchSchema:y};let b=new URL(y,"thismessage::/").hash;var m=b&&b.length&&y.substr(0,y.length-b.length);if(!m||!S.schemas[m])throw new a("no such schema <"+y+">",g);var w=t.objectGetPath(S.schemas[m],b.substr(1));if(w===void 0)throw new a("no such schema "+b+" located in <"+m+">",g);return{subschema:w,switchSchema:y}},c.prototype.testType=function(g,y,S,v,b){if(b!==void 0){if(b===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[b]=="function")return this.types[b].call(this,g);if(b&&typeof b=="object"){var m=this.validateSchema(g,b,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var p=c.prototype.types={};return p.string=function(g){return typeof g=="string"},p.number=function(g){return typeof g=="number"&&isFinite(g)},p.integer=function(g){return typeof g=="number"&&g%1===0},p.boolean=function(g){return typeof g=="boolean"},p.array=function(g){return Array.isArray(g)},p.null=function(g){return g===null},p.date=function(g){return g instanceof Date},p.any=function(g){return!0},p.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},Bf=c,Bf}var C0;function D3(){if(C0)return Hr;C0=1;var e=Hr.Validator=M3();return Hr.ValidatorResult=pi().ValidatorResult,Hr.ValidatorResultError=pi().ValidatorResultError,Hr.ValidationError=pi().ValidationError,Hr.SchemaError=pi().SchemaError,Hr.SchemaScanResult=Sd().SchemaScanResult,Hr.scan=Sd().scan,Hr.validate=function(t,r,n){var o=new e;return o.validate(t,r,n)},Hr}var $3=D3();const w1=(e,t,r)=>{const n=e instanceof RegExp?P0(e,r):e,o=t instanceof RegExp?P0(t,r):t,a=n!==null&&o!=null&&L3(n,o,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+n.length,a[1]),post:r.slice(a[1]+o.length)}},P0=(e,t)=>{const r=t.match(e);return r?r[0]:null},L3=(e,t,r)=>{let n,o,a,l,u,c=r.indexOf(e),d=r.indexOf(t,c+1),p=c;if(c>=0&&d>0){if(e===t)return[c,d];for(n=[],a=r.length;p>=0&&!u;){if(p===c)n.push(p),c=r.indexOf(e,p+1);else if(n.length===1){const h=n.pop();h!==void 0&&(u=[h,d])}else o=n.pop(),o!==void 0&&o<a&&(a=o,l=d),d=r.indexOf(t,p+1);p=c<d&&c>=0?c:d}n.length&&l!==void 0&&(u=[a,l])}return u},x1="\0SLASH"+Math.random()+"\0",S1="\0OPEN"+Math.random()+"\0",Rp="\0CLOSE"+Math.random()+"\0",_1="\0COMMA"+Math.random()+"\0",E1="\0PERIOD"+Math.random()+"\0",z3=new RegExp(x1,"g"),j3=new RegExp(S1,"g"),F3=new RegExp(Rp,"g"),H3=new RegExp(_1,"g"),W3=new RegExp(E1,"g"),B3=/\\\\/g,U3=/\\{/g,V3=/\\}/g,q3=/\\,/g,G3=/\\./g;function Uf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Z3(e){return e.replace(B3,x1).replace(U3,S1).replace(V3,Rp).replace(q3,_1).replace(G3,E1)}function K3(e){return e.replace(z3,"\\").replace(j3,"{").replace(F3,"}").replace(H3,",").replace(W3,".")}function k1(e){if(!e)return[""];const t=[],r=w1("{","}",e);if(!r)return e.split(",");const{pre:n,body:o,post:a}=r,l=n.split(",");l[l.length-1]+="{"+o+"}";const u=k1(a);return a.length&&(l[l.length-1]+=u.shift(),l.push.apply(l,u)),t.push.apply(t,l),t}function Y3(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),fa(Z3(e),!0).map(K3)):[]}function X3(e){return"{"+e+"}"}function J3(e){return/^-?0\d/.test(e)}function Q3(e,t){return e<=t}function ej(e,t){return e>=t}function fa(e,t){const r=[],n=w1("{","}",e);if(!n)return[e];const o=n.pre,a=n.post.length?fa(n.post,!1):[""];if(/\$$/.test(n.pre))for(let l=0;l<a.length;l++){const u=o+"{"+n.body+"}"+a[l];r.push(u)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=l||u,d=n.body.indexOf(",")>=0;if(!c&&!d)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Rp+n.post,fa(e)):[e];let p;if(c)p=n.body.split(/\.\./);else if(p=k1(n.body),p.length===1&&p[0]!==void 0&&(p=fa(p[0],!1).map(X3),p.length===1))return a.map(g=>n.pre+p[0]+g);let h;if(c&&p[0]!==void 0&&p[1]!==void 0){const g=Uf(p[0]),y=Uf(p[1]),S=Math.max(p[0].length,p[1].length);let v=p.length===3&&p[2]!==void 0?Math.abs(Uf(p[2])):1,b=Q3;y<g&&(v*=-1,b=ej);const w=p.some(J3);h=[];for(let x=g;b(x,y);x+=v){let k;if(u)k=String.fromCharCode(x),k==="\\"&&(k="");else if(k=String(x),w){const E=S-k.length;if(E>0){const R=new Array(E+1).join("0");x<0?k="-"+R+k.slice(1):k=R+k}}h.push(k)}}else{h=[];for(let g=0;g<p.length;g++)h.push.apply(h,fa(p[g],!1))}for(let g=0;g<h.length;g++)for(let y=0;y<a.length;y++){const S=o+h[g]+a[y];(!t||c||S)&&r.push(S)}}return r}const tj=1024*64,ql=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>tj)throw new TypeError("pattern is too long")},rj={"[: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]},oa=e=>e.replace(/[[\]\\-]/g,"\\$&"),nj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),I0=e=>e.join(""),ij=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let a=r+1,l=!1,u=!1,c=!1,d=!1,p=r,h="";e:for(;a<e.length;){const v=e.charAt(a);if((v==="!"||v==="^")&&a===r+1){d=!0,a++;continue}if(v==="]"&&l&&!c){p=a+1;break}if(l=!0,v==="\\"&&!c){c=!0,a++;continue}if(v==="["&&!c){for(const[b,[m,w,x]]of Object.entries(rj))if(e.startsWith(b,a)){if(h)return["$.",!1,e.length-r,!0];a+=b.length,x?o.push(m):n.push(m),u=u||w;continue e}}if(c=!1,h){v>h?n.push(oa(h)+"-"+oa(v)):v===h&&n.push(oa(v)),h="",a++;continue}if(e.startsWith("-]",a+1)){n.push(oa(v+"-")),a+=2;continue}if(e.startsWith("-",a+1)){h=v,a+=2;continue}n.push(oa(v)),a++}if(p<a)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!d){const v=n[0].length===2?n[0].slice(-1):n[0];return[nj(v),!1,p-r,!1]}const g="["+(d?"^":"")+I0(n)+"]",y="["+(d?"":"^")+I0(o)+"]";return[n.length&&o.length?"("+g+"|"+y+")":n.length?g:y,u,p-r,!0]},da=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),oj=new Set(["!","?","+","*","@"]),N0=e=>oj.has(e),aj="(?!(?:^|/)\\.\\.?(?:$|/))",cl="(?!\\.)",sj=new Set(["[","."]),lj=new Set(["..","."]),uj=new Set("().*{}+?[]^$\\!"),cj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Cp="[^/]",M0=Cp+"*?",D0=Cp+"+?";var _t,kt,vn,ot,mt,Hn,hi,Wn,Ur,gi,Pa,_i,O1,Vn,Ol,_d,A1;const Bt=class Bt{constructor(t,r,n={}){$t(this,_i);ke(this,"type");$t(this,_t);$t(this,kt);$t(this,vn,!1);$t(this,ot,[]);$t(this,mt);$t(this,Hn);$t(this,hi);$t(this,Wn,!1);$t(this,Ur);$t(this,gi);$t(this,Pa,!1);this.type=t,t&&ft(this,kt,!0),ft(this,mt,r),ft(this,_t,fe(this,mt)?fe(fe(this,mt),_t):this),ft(this,Ur,fe(this,_t)===this?n:fe(fe(this,_t),Ur)),ft(this,hi,fe(this,_t)===this?[]:fe(fe(this,_t),hi)),t==="!"&&!fe(fe(this,_t),Wn)&&fe(this,hi).push(this),ft(this,Hn,fe(this,mt)?fe(fe(this,mt),ot).length:0)}get hasMagic(){if(fe(this,kt)!==void 0)return fe(this,kt);for(const t of fe(this,ot))if(typeof t!="string"&&(t.type||t.hasMagic))return ft(this,kt,!0);return fe(this,kt)}toString(){return fe(this,gi)!==void 0?fe(this,gi):this.type?ft(this,gi,this.type+"("+fe(this,ot).map(t=>String(t)).join("|")+")"):ft(this,gi,fe(this,ot).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Bt&&fe(r,mt)===this))throw new Error("invalid part: "+r);fe(this,ot).push(r)}}toJSON(){var r;const t=this.type===null?fe(this,ot).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...fe(this,ot).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===fe(this,_t)||fe(fe(this,_t),Wn)&&((r=fe(this,mt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(fe(this,_t)===this)return!0;if(!((r=fe(this,mt))!=null&&r.isStart()))return!1;if(fe(this,Hn)===0)return!0;const t=fe(this,mt);for(let n=0;n<fe(this,Hn);n++){const o=fe(t,ot)[n];if(!(o instanceof Bt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(fe(this,_t)===this||((r=fe(this,mt))==null?void 0:r.type)==="!")return!0;if(!((n=fe(this,mt))!=null&&n.isEnd()))return!1;if(!this.type)return(o=fe(this,mt))==null?void 0:o.isEnd();const t=fe(this,mt)?fe(fe(this,mt),ot).length:0;return fe(this,Hn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Bt(this.type,t);for(const n of fe(this,ot))r.copyIn(n);return r}static fromGlob(t,r={}){var o;const n=new Bt(null,void 0,r);return Fe(o=Bt,Vn,Ol).call(o,t,n,0,r),n}toMMPattern(){if(this!==fe(this,_t))return fe(this,_t).toMMPattern();const t=this.toString(),[r,n,o,a]=this.toRegExpSource();if(!(o||fe(this,kt)||fe(this,Ur).nocase&&!fe(this,Ur).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const u=(fe(this,Ur).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,u),{_src:r,_glob:t})}get options(){return fe(this,Ur)}toRegExpSource(t){var c;const r=t??!!fe(this,Ur).dot;if(fe(this,_t)===this&&Fe(this,_i,O1).call(this),!this.type){const d=this.isStart()&&this.isEnd(),p=fe(this,ot).map(S=>{var x;const[v,b,m,w]=typeof S=="string"?Fe(x=Bt,Vn,A1).call(x,S,fe(this,kt),d):S.toRegExpSource(t);return ft(this,kt,fe(this,kt)||m),ft(this,vn,fe(this,vn)||w),v}).join("");let h="";if(this.isStart()&&typeof fe(this,ot)[0]=="string"&&!(fe(this,ot).length===1&&lj.has(fe(this,ot)[0]))){const v=sj,b=r&&v.has(p.charAt(0))||p.startsWith("\\.")&&v.has(p.charAt(2))||p.startsWith("\\.\\.")&&v.has(p.charAt(4)),m=!r&&!t&&v.has(p.charAt(0));h=b?aj:m?cl:""}let g="";return this.isEnd()&&fe(fe(this,_t),Wn)&&((c=fe(this,mt))==null?void 0:c.type)==="!"&&(g="(?:$|\\/)"),[h+p+g,da(p),ft(this,kt,!!fe(this,kt)),fe(this,vn)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let a=Fe(this,_i,_d).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const d=this.toString();return ft(this,ot,[d]),this.type=null,ft(this,kt,void 0),[d,da(this.toString()),!1,!1]}let l=!n||t||r||!cl?"":Fe(this,_i,_d).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let u="";if(this.type==="!"&&fe(this,Pa))u=(this.isStart()&&!r?cl:"")+D0;else{const d=this.type==="!"?"))"+(this.isStart()&&!r&&!t?cl:"")+M0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;u=o+a+d}return[u,da(a),ft(this,kt,!!fe(this,kt)),fe(this,vn)]}};_t=new WeakMap,kt=new WeakMap,vn=new WeakMap,ot=new WeakMap,mt=new WeakMap,Hn=new WeakMap,hi=new WeakMap,Wn=new WeakMap,Ur=new WeakMap,gi=new WeakMap,Pa=new WeakMap,_i=new WeakSet,O1=function(){if(this!==fe(this,_t))throw new Error("should only call on root");if(fe(this,Wn))return this;this.toString(),ft(this,Wn,!0);let t;for(;t=fe(this,hi).pop();){if(t.type!=="!")continue;let r=t,n=fe(r,mt);for(;n;){for(let o=fe(r,Hn)+1;!n.type&&o<fe(n,ot).length;o++)for(const a of fe(t,ot)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(fe(n,ot)[o])}r=n,n=fe(r,mt)}}return this},Vn=new WeakSet,Ol=function(t,r,n,o){var y,S;let a=!1,l=!1,u=-1,c=!1;if(r.type===null){let v=n,b="";for(;v<t.length;){const m=t.charAt(v++);if(a||m==="\\"){a=!a,b+=m;continue}if(l){v===u+1?(m==="^"||m==="!")&&(c=!0):m==="]"&&!(v===u+2&&c)&&(l=!1),b+=m;continue}else if(m==="["){l=!0,u=v,c=!1,b+=m;continue}if(!o.noext&&N0(m)&&t.charAt(v)==="("){r.push(b),b="";const w=new Bt(m,r);v=Fe(y=Bt,Vn,Ol).call(y,t,w,v,o),r.push(w);continue}b+=m}return r.push(b),v}let d=n+1,p=new Bt(null,r);const h=[];let g="";for(;d<t.length;){const v=t.charAt(d++);if(a||v==="\\"){a=!a,g+=v;continue}if(l){d===u+1?(v==="^"||v==="!")&&(c=!0):v==="]"&&!(d===u+2&&c)&&(l=!1),g+=v;continue}else if(v==="["){l=!0,u=d,c=!1,g+=v;continue}if(N0(v)&&t.charAt(d)==="("){p.push(g),g="";const b=new Bt(v,p);p.push(b),d=Fe(S=Bt,Vn,Ol).call(S,t,b,d,o);continue}if(v==="|"){p.push(g),g="",h.push(p),p=new Bt(null,r);continue}if(v===")")return g===""&&fe(r,ot).length===0&&ft(r,Pa,!0),p.push(g),g="",r.push(...h,p),d;g+=v}return r.type=null,ft(r,kt,void 0),ft(r,ot,[t.substring(n-1)]),d},_d=function(t){return fe(this,ot).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,a,l]=r.toRegExpSource(t);return ft(this,vn,fe(this,vn)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},A1=function(t,r,n=!1){let o=!1,a="",l=!1;for(let u=0;u<t.length;u++){const c=t.charAt(u);if(o){o=!1,a+=(uj.has(c)?"\\":"")+c;continue}if(c==="\\"){u===t.length-1?a+="\\\\":o=!0;continue}if(c==="["){const[d,p,h,g]=ij(t,u);if(h){a+=d,l=l||p,u+=h-1,r=r||g;continue}}if(c==="*"){n&&t==="*"?a+=D0:a+=M0,r=!0;continue}if(c==="?"){a+=Cp,r=!0;continue}a+=cj(c)}return[a,da(t),!!r,l]},$t(Bt,Vn);let Gl=Bt;const fj=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),zt=(e,t,r={})=>(ql(t),!r.nocomment&&t.charAt(0)==="#"?!1:new vu(t,r).match(e)),dj=/^\*+([^+@!?\*\[\(]*)$/,pj=e=>t=>!t.startsWith(".")&&t.endsWith(e),hj=e=>t=>t.endsWith(e),gj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),vj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),mj=/^\*+\.\*+$/,bj=e=>!e.startsWith(".")&&e.includes("."),yj=e=>e!=="."&&e!==".."&&e.includes("."),wj=/^\.\*+$/,xj=e=>e!=="."&&e!==".."&&e.startsWith("."),Sj=/^\*+$/,_j=e=>e.length!==0&&!e.startsWith("."),Ej=e=>e.length!==0&&e!=="."&&e!=="..",kj=/^\?+([^+@!?\*\[\(]*)?$/,Oj=([e,t=""])=>{const r=T1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Aj=([e,t=""])=>{const r=R1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Tj=([e,t=""])=>{const r=R1([e]);return t?n=>r(n)&&n.endsWith(t):r},Rj=([e,t=""])=>{const r=T1([e]);return t?n=>r(n)&&n.endsWith(t):r},T1=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},R1=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},C1=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$0={win32:{sep:"\\"},posix:{sep:"/"}},Cj=C1==="win32"?$0.win32.sep:$0.posix.sep;zt.sep=Cj;const wr=Symbol("globstar **");zt.GLOBSTAR=wr;const Pj="[^/]",Ij=Pj+"*?",Nj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Mj="(?:(?!(?:\\/|^)\\.).)*?",Dj=(e,t={})=>r=>zt(r,e,t);zt.filter=Dj;const yr=(e,t={})=>Object.assign({},e,t),$j=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return zt;const t=zt;return Object.assign((n,o,a={})=>t(n,o,yr(e,a)),{Minimatch:class extends t.Minimatch{constructor(o,a={}){super(o,yr(e,a))}static defaults(o){return t.defaults(yr(e,o)).Minimatch}},AST:class extends t.AST{constructor(o,a,l={}){super(o,a,yr(e,l))}static fromGlob(o,a={}){return t.AST.fromGlob(o,yr(e,a))}},unescape:(n,o={})=>t.unescape(n,yr(e,o)),escape:(n,o={})=>t.escape(n,yr(e,o)),filter:(n,o={})=>t.filter(n,yr(e,o)),defaults:n=>t.defaults(yr(e,n)),makeRe:(n,o={})=>t.makeRe(n,yr(e,o)),braceExpand:(n,o={})=>t.braceExpand(n,yr(e,o)),match:(n,o,a={})=>t.match(n,o,yr(e,a)),sep:t.sep,GLOBSTAR:wr})};zt.defaults=$j;const P1=(e,t={})=>(ql(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Y3(e));zt.braceExpand=P1;const Lj=(e,t={})=>new vu(e,t).makeRe();zt.makeRe=Lj;const zj=(e,t,r={})=>{const n=new vu(t,r);return e=e.filter(o=>n.match(o)),n.options.nonull&&!e.length&&e.push(t),e};zt.match=zj;const L0=/[?*]|[+@!]\(.*?\)|\[|\]/,jj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class vu{constructor(t,r={}){ke(this,"options");ke(this,"set");ke(this,"pattern");ke(this,"windowsPathsNoEscape");ke(this,"nonegate");ke(this,"negate");ke(this,"comment");ke(this,"empty");ke(this,"preserveMultipleSlashes");ke(this,"partial");ke(this,"globSet");ke(this,"globParts");ke(this,"nocase");ke(this,"isWindows");ke(this,"platform");ke(this,"windowsNoMagicRoot");ke(this,"regexp");ql(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||C1,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((a,l,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const c=a[0]===""&&a[1]===""&&(a[2]==="?"||!L0.test(a[2]))&&!L0.test(a[3]),d=/^[a-z]:/i.test(a[0]);if(c)return[...a.slice(0,4),...a.slice(4).map(p=>this.parse(p))];if(d)return[a[0],...a.slice(1).map(p=>this.parse(p))]}return a.map(c=>this.parse(c))});if(this.debug(this.pattern,o),this.set=o.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,o)=>{const a=n[n.length-1];return o==="**"&&a==="**"?n:o===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(n.pop(),n):(n.push(o),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const a=t[o];o===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(o,1),o--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let l=o;for(;n[l+1]==="**";)l++;l>o&&n.splice(o+1,l-o);let u=n[o+1];const c=n[o+2],d=n[o+3];if(u!==".."||!c||c==="."||c===".."||!d||d==="."||d==="..")continue;r=!0,n.splice(o,1);const p=n.slice(0);p[o]="**",t.push(p),o--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){const u=n[l];l===1&&u===""&&n[0]===""||(u==="."||u==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let a=0;for(;(a=n.indexOf("..",a+1))!==-1;){const l=n[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const c=a===1&&n[a+1]==="**"?["."]:[];n.splice(a-1,2,...c),n.length===0&&n.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let o=0,a=0,l=[],u="";for(;o<t.length&&a<r.length;)if(t[o]===r[a])l.push(u==="b"?r[a]:t[o]),o++,a++;else if(n&&t[o]==="**"&&r[a]===t[o+1])l.push(t[o]),o++;else if(n&&r[a]==="**"&&t[o]===r[a+1])l.push(r[a]),a++;else if(t[o]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(u==="b")return!1;u="a",l.push(t[o]),o++,a++}else if(r[a]==="*"&&t[o]&&(this.options.dot||!t[o].startsWith("."))&&t[o]!=="**"){if(u==="a")return!1;u="b",l.push(r[a]),o++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){const o=this.options;if(this.isWindows){const v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),w=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),x=b?3:v?0:void 0,k=w?3:m?0:void 0;if(typeof x=="number"&&typeof k=="number"){const[E,R]=[t[x],r[k]];E.toLowerCase()===R.toLowerCase()&&(r[k]=E,k>x?r=r.slice(k):x>k&&(t=t.slice(x)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,u=0,c=t.length,d=r.length;l<c&&u<d;l++,u++){this.debug("matchOne loop");var p=r[u],h=t[l];if(this.debug(r,p,h),p===!1)return!1;if(p===wr){this.debug("GLOBSTAR",[r,p,h]);var g=l,y=u+1;if(y===d){for(this.debug("** at the end");l<c;l++)if(t[l]==="."||t[l]===".."||!o.dot&&t[l].charAt(0)===".")return!1;return!0}for(;g<c;){var S=t[g];if(this.debug(`
|
|
254
|
-
globstar while`,t,g,r,y,S),this.matchOne(t.slice(g),r.slice(y),n))return this.debug("globstar found match!",g,c,S),!0;if(S==="."||S===".."||!o.dot&&S.charAt(0)==="."){this.debug("dot detected!",t,g,r,y);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(n&&(this.debug(`
|
|
255
|
-
>>> no match, partial?`,t,g,r,y),g===c))}let v;if(typeof p=="string"?(v=h===p,this.debug("string match",p,h,v)):(v=p.test(h),this.debug("pattern match",p,h,v)),!v)return!1}if(l===c&&u===d)return!0;if(l===c)return n;if(u===d)return l===c-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return P1(this.pattern,this.options)}parse(t){ql(t);const r=this.options;if(t==="**")return wr;if(t==="")return"";let n,o=null;(n=t.match(Sj))?o=r.dot?Ej:_j:(n=t.match(dj))?o=(r.nocase?r.dot?vj:gj:r.dot?hj:pj)(n[1]):(n=t.match(kj))?o=(r.nocase?r.dot?Aj:Oj:r.dot?Tj:Rj)(n):(n=t.match(mj))?o=r.dot?yj:bj:(n=t.match(wj))&&(o=xj);const a=Gl.fromGlob(t,this.options).toMMPattern();return o&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:o}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?Ij:r.dot?Nj:Mj,o=new Set(r.nocase?["i"]:[]);let a=t.map(c=>{const d=c.map(p=>{if(p instanceof RegExp)for(const h of p.flags.split(""))o.add(h);return typeof p=="string"?jj(p):p===wr?wr:p._src});return d.forEach((p,h)=>{const g=d[h+1],y=d[h-1];p!==wr||y===wr||(y===void 0?g!==void 0&&g!==wr?d[h+1]="(?:\\/|"+n+"\\/)?"+g:d[h]=n:g===void 0?d[h-1]=y+"(?:\\/|"+n+")?":g!==wr&&(d[h-1]=y+"(?:\\/|\\/"+n+"\\/)"+g,d[h+1]=wr))}),d.filter(p=>p!==wr).join("/")}).join("|");const[l,u]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+u+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const a=this.set;this.debug(this.pattern,"set",a);let l=o[o.length-1];if(!l)for(let u=o.length-2;!l&&u>=0;u--)l=o[u];for(let u=0;u<a.length;u++){const c=a[u];let d=o;if(n.matchBase&&c.length===1&&(d=[l]),this.matchOne(d,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return zt.defaults(t).Minimatch}}zt.AST=Gl;zt.Minimatch=vu;zt.escape=fj;zt.unescape=da;const Ca="/$shared",Fj={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function I1(e){const t=Object.entries(Fj).find(([r])=>zt(e,r));return t==null?void 0:t[1]}function mu(e){var n;const t=(n=I1(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${Ca}/`,"Shared/");Pp({name:r,content:t,asText:typeof t=="string"})}async function Hj(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await qe(`${Ca}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){N1(r)&&mu(`${Ca}/${t}`)}}function Ha({path:e,createIfNotExists:t=!1}){const r=`${Ca}/${e}`;return qe(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const o=I1(e);let a=n;if(!o)return a;if(typeof a=="string")try{switch(o.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(o.schema&&!new $3.Validator().validate(a,o.schema).valid)throw new Error("Invalid Schema");return a}).catch(n=>{if(N1(n)&&t){const o=Wj(n,e);Zx.next({message:o,kind:"warning"}),mu(r)}throw n})}function N1(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 Wj(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 Bj(e){return qe(Fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Uj(e){return qe(Fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const M1=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:_p.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function Vj(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const o=await qe(yt,{method:"POST",body:JSON.stringify({verb:Kn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(o.rendererPath)return o.rendererPath;const l=`http://${e}:${o.webServerHTTPPort}`,u=`https://${e}:${o.webServerHTTPSPort}`;return o.webServerHTTPPort&&o.webServerHTTPSPort?n?u:l:o.webServerHTTPPort?l:u})();return{projectOpened:o.webServerHTTPSPort>0||o.webServerHTTPPort>0,remoteDebuggerMode:o.remoteDebuggerMode,baseUrl:a,qodly:typeof o.qodly>"u"?!0:o.qodly,urls:{renderer:o.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:o.isRESTActive}}catch(o){return console.error(o),M1()}}async function D1(e){return await qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function qj(...e){return(await Promise.all(e.map(n=>D1({root:n,verb:Kn.GET_FOLDER})))).map(({children:n})=>n.map(({name:o,date:a,type:l})=>({name:o,type:l,date:a,path:`${l}/${o}`}))).flat()}function Gj(e,t={}){const{sanitize:r=!0}=t;return qe(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const o=new Map;return{...n,components:Ye.entries(n.components).map(([a,l])=>{const u=a,{resolvedName:c}=l.type;if(c==="WebformLoader"){const d=yi.generate();o.set(a,d),a=d}return[a,l,u]}).reduce((a,[l,u,c])=>{var d;return u.nodes&&(u.nodes=u.nodes.map(p=>o.get(p)||p)),u.linkedNodes&&(u.linkedNodes=Ye.entries(u.linkedNodes).reduce((p,[h,g])=>({...p,[h]:o.get(g)||g}),{})),(d=u.props)!=null&&d.events&&(u.props.events=u.props.events.map(p=>(p.type==="navigation"&&p.loader&&(p.loader=o.get(p.loader)||p.loader),p))),{...a,[l]:{...u,props:{...u.props,__originalID:c}}}},{})}})}function Zj(e){return qe(yt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Ot.METHOD,Ot.CLASS].includes(t.type)?hu(t.content):t.content}))}function Kj(e){return e.type==="folder"?qe(Fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function Yj(e){return e.type==="folder"?(await qe(Fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function Xj(e){return qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Jj(e){return qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function Qj(e){return(await qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function eF(...e){return await qe(yt,{method:"POST",body:JSON.stringify({verb:Kn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function tF(e){const t=await qe("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function rF(){return await qe("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function nF(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,n=await(await fetch(t)).text(),{supported:o}=JSON.parse(n);return o}catch{return[]}}async function iF({name:e,path:t="",root:r="root",asText:n=!1}){return qe(yt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function oF(e={}){try{return await Ha({path:"shared_datasources.json",...e})}catch{return{}}}async function aF(e={}){try{return await Ha({path:"shared_app_events.json",...e})}catch{return[]}}async function sF(e={}){try{return await Ha({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function lF(e={}){try{return await Ha({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function uF(){try{return await qe("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function cF(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const fF=kp(),dF=async e=>{const t={verb:Kn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return fF(async()=>(await qe(yt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},pF=kp(),hF=async e=>{const t={verb:Kn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return pF(async()=>(await qe(yt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Pp=async e=>{const t=await qe(yt,{method:"POST",body:JSON.stringify({...e,verb:Kn.SET_FILE_CONTENT,root:Sp.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Ep(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},gF=async e=>await Pp({name:"crafted_components.json",path:Un.WEBFORMS,content:e});function vF(e){return qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function mF(e){return qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function bF(e){return qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function yF(e){return qe(yt,{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)?hu(t.content):t.content}).catch(t=>{var r,n;throw((n=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:n.errCode)===1839&&mu(e.path),t})}function wF(e){return qe(yt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function xF(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function SF(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 _F(e){const t=xF(e).split(/[;,]/g).filter(Boolean).map(o=>{const a=o.split(":")[0].trim(),l=o.split(":")[1].trim();return{name:a,type:l}}),r=SF(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function EF(e,t){const n=e.split(".").pop();try{const o=await qe(yt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});o.content=hu(o.content);const{params:a,result:l}=_F(o.parameters);return{...o,params:a,returns:l}}catch(o){return console.error(o),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var $1=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))($1||{});function kF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function OF(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var L1=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(L1||{}),z1=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(z1||{}),j1=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(j1||{}),F1=(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))(F1||{});const AF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},TF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=yt;exports.AppLoader=JM;exports.BaseCheckboxIcon=Px;exports.Checkbox=A5;exports.ControlledSwitch=cw;exports.DATASOURCE_THEMES=AF;exports.DatasourcesActions=Gx;exports.DebuggerActions=Xx;exports.DefaultCheckboxIcon=Ix;exports.DesignerRequestVerb=Kn;exports.Dialog=NC;exports.DialogBody=Q0;exports.EActivity=$1;exports.EDITOR=TF;exports.EIDENTIFIERS=j1;exports.EPermissionType=Ve;exports.ERROR_CODES=F1;exports.ESubPermissionType=nt;exports.EWebFormStyleClassScope=L1;exports.EXT_API_PREFIX=Fa;exports.FileFolderType=Ot;exports.FloatingTooltip=k5;exports.FolderRootPath=Un;exports.FolderRootType=Sp;exports.HTTPError=xd;exports.HTTP_HANDLERS_TAB_PATH=e1;exports.IPreemptive=Ra;exports.IPublished=c1;exports.IPublishedRestScope=Op;exports.IdentityProvider=q5;exports.Incase=gl;exports.IndentLines=py;exports.LOCALIZATION_TAB_PATH=t1;exports.LogoSVG=Ew;exports.LspActions=Yx;exports.MAX_FILE_NAME_LENGTH=wp;exports.MODEL_TAB_PATH=Mz;exports.Modal=rD;exports.ModalCloseReason=Zi;exports.ModalColor=mi;exports.ModalIcons=sd;exports.ModalType=tp;exports.Mutex=r1;exports.NameError=xp;exports.Overlay=J0;exports.PANEL_EXPANDED_HEIGHT=El;exports.PANEL_INITIAL_HEIGHT=ci;exports.PERMISSIONS=Ap;exports.Panel=O5;exports.Portal=F0;exports.PublishOptions=a3;exports.ROLES_TAB_PATH=Jx;exports.RemoteDebuggerMode=_p;exports.SETTINGS_TAB_PATH=Qx;exports.SHARED_API_PREFIX=Ca;exports.SourceCodeDescriptor=z1;exports.Switcher=hy;exports.TabEventsActions=Kx;exports.Tip=Jy;exports.TipsProvider=a2;exports.Toast=FP;exports.Tooltip=YM;exports.Tree=iI;exports.TreeIcon=uy;exports.TreeNode=Nd;exports.WebformActions=qx;exports.WebformEventsActions=Ta;exports.ZoomComponent=f5;exports.ZoomLevel=Rx;exports._isArrayDatasource=t3;exports._isObjectDatasource=r3;exports.actionsToPrivs=v1;exports.addAttributesToContent=l3;exports.addFolder=Xj;exports.addPermission=S3;exports.addPrivilegeIn=h3;exports.allowed=d3;exports.by=n1;exports.byId=Fz;exports.byPath=Hz;exports.callServerSideParser=I3;exports.checkUpdates=Bj;exports.children=Vl;exports.createFolder=vF;exports.createPrivilege=v3;exports.createRole=T3;exports.datasourcesSubject=Ez;exports.debuggerSubject=Tz;exports.dropFile=Yj;exports.dropFolder=Qj;exports.exists=Wz;exports.extractWebformName=Lz;exports.generateUUID=u3;exports.getAppSettings=Vj;exports.getCatalog=rF;exports.getDatasourceId=Bz;exports.getDefaultAppSettings=M1;exports.getDictByName=b1;exports.getFile=Zj;exports.getFileContent=iF;exports.getFileExtentionFromType=$z;exports.getFilenameAndTypeFromPath=Dz;exports.getFilesInfo=eF;exports.getFolder=D1;exports.getFolders=qj;exports.getFunctionContent=EF;exports.getGraphData=x3;exports.getInheritedResources=y1;exports.getMonacoTheme=cF;exports.getNodeInfo=yF;exports.getPrivilegeById=wn;exports.getPromotions=A3;exports.getResourceFromType=Tp;exports.getSavedConditions=lF;exports.getSharedAppEvents=aF;exports.getSharedCSS=sF;exports.getSharedDatasources=oF;exports.getSharedResource=Ha;exports.getSupportedLanguages=nF;exports.getTypeFromExtension=Ep;exports.getUserPrivileges=uF;exports.getWebForm=Gj;exports.hasAttributesString=d1;exports.http=qe;exports.i18nSubject=Cz;exports.initializeDefaultProjectFiles=Hj;exports.installUpdates=Uj;exports.isArrayDatasource=s1;exports.isDataClassMethod=Gz;exports.isDataStoreMethod=qz;exports.isDateDatasource=n3;exports.isEntity=Qz;exports.isEntityDatasource=Yz;exports.isEntityMethod=Zz;exports.isEntitySelection=e3;exports.isEntitySelectionDatasource=Xz;exports.isEntitySelectionMethod=Kz;exports.isObjectAttribute=Uz;exports.isObjectDatasource=l1;exports.isRelatedAttribute=Vz;exports.isRelatedEntitiesAttribute=o1;exports.isRelatedEntityAttribute=a1;exports.isScalarDatasource=u1;exports.isSimpleAttribute=i1;exports.isSimpleDatasource=Jz;exports.loadDS=i3;exports.loadI18n=o3;exports.log=kF;exports.login=tF;exports.lspSubject=Az;exports.moveItem=bF;exports.outBy=zz;exports.outById=jz;exports.parents=gu;exports.parseAttributes=s3;exports.populateShallow=b3;exports.queue=kp;exports.removeAttributesString=p1;exports.removeItem=mF;exports.removeMultiplePermissions=E3;exports.removePermission=_3;exports.removePrivilege=p3;exports.removePrivilegeFrom=g3;exports.removeRole=R3;exports.renameFile=Kj;exports.renameFolder=Jj;exports.renamePrivilege=m3;exports.resetResources=k3;exports.rolesToAPI=w3;exports.sanitizeContent=hu;exports.sanitizeNameCY=c3;exports.sanitizePermissions=m1;exports.sanitizePrivileges=h1;exports.sanitizeRoles=y3;exports.saveContent=wF;exports.saveRole=C3;exports.setCraftedComponents=gF;exports.setFileContent=Pp;exports.setSharedAppEvents=hF;exports.setSharedSources=dF;exports.sortPrivileges=g1;exports.stringifyAttributes=f1;exports.tabEventsSubject=Oz;exports.tasksManagerSubject=Rz;exports.toastSubject=Zx;exports.togglePermission=O3;exports.trackEvent=OF;exports.transformDates=P3;exports.tryCreateSharedResource=mu;exports.uniquePush=Or;exports.useDidMountEffect=T5;exports.useDoubleClick=Y5;exports.useEnhancedState=fz;exports.useFeatureFlags=V5;exports.useForwardedRef=U5;exports.useHotkeys=F5;exports.useIdentity=G5;exports.useOutsideClick=H5;exports.usePrevious=W5;exports.useStateObject=Z5;exports.useStateRef=B5;exports.useTip=Xy;exports.validateName=pu;exports.validateServerSide=Pz;exports.validateValue=Iz;exports.webformEventsSubject=Bl;exports.webformSubject=kz;
|
|
200
|
+
`)+ee+`return __p
|
|
201
|
+
}`;var Se=nh(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,il(Se))throw Se;return Se}function w_(n){return ke(n).toLowerCase()}function x_(n){return ke(n).toUpperCase()}function S_(n,o,u){if(n=ke(n),n&&(u||o===r))return dd(n);if(!n||!(o=Nt(o)))return n;var y=ar(n),_=ar(o),T=pd(y,_),P=hd(y,_)+1;return on(y,T,P).join("")}function E_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.slice(0,vd(n)+1);if(!n||!(o=Nt(o)))return n;var y=ar(n),_=hd(y,ar(o))+1;return on(y,0,_).join("")}function __(n,o,u){if(n=ke(n),n&&(u||o===r))return n.replace(iu,"");if(!n||!(o=Nt(o)))return n;var y=ar(n),_=pd(y,ar(o));return on(y,_).join("")}function O_(n,o){var u=G,y=j;if(Ge(o)){var _="separator"in o?o.separator:_;u="length"in o?xe(o.length):u,y="omission"in o?Nt(o.omission):y}n=ke(n);var T=n.length;if(Yn(n)){var P=ar(n);T=P.length}if(u>=T)return n;var I=u-Jn(y);if(I<1)return y;var z=P?on(P,0,I).join(""):n.slice(0,I);if(_===r)return z+y;if(P&&(I+=z.length-I),ol(_)){if(n.slice(I).search(_)){var V,Y=z;for(_.global||(_=xu(_.source,ke(Lf.exec(_))+"g")),_.lastIndex=0;V=_.exec(Y);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(Nt(_),I)!=I){var oe=z.lastIndexOf(_);oe>-1&&(z=z.slice(0,oe))}return z+y}function A_(n){return n=ke(n),n&&D0.test(n)?n.replace(kf,tw):n}var T_=oi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ul=ip("toUpperCase");function rh(n,o,u){return n=ke(n),o=u?r:o,o===r?Xb(n)?iw(n):Wb(n):n.match(o)||[]}var nh=_e(function(n,o){try{return Ft(n,r,o)}catch(u){return il(u)?u:new be(u)}}),R_=Dr(function(n,o){return Vt(o,function(u){u=br(u),Mr(n,u,rl(n[u],n))}),n});function P_(n){var o=n==null?0:n.length,u=pe();return n=o?Ue(n,function(y){if(typeof y[1]!="function")throw new Xt(l);return[u(y[0]),y[1]]}):[],_e(function(y){for(var _=-1;++_<o;){var T=n[_];if(Ft(T[0],this,y))return Ft(T[1],this,y)}})}function C_(n){return t1(Jt(n,g))}function ll(n){return function(){return n}}function k_(n,o){return n==null||n!==n?o:n}var $_=sp(),I_=sp(!0);function $t(n){return n}function cl(n){return Fd(typeof n=="function"?n:Jt(n,g))}function L_(n){return Nd(Jt(n,g))}function M_(n,o){return jd(n,Jt(o,g))}var F_=_e(function(n,o){return function(u){return Mi(u,n,o)}}),D_=_e(function(n,o){return function(u){return Mi(n,u,o)}});function fl(n,o,u){var y=lt(o),_=vs(o,y);u==null&&!(Ge(o)&&(_.length||!y.length))&&(u=o,o=n,n=this,_=vs(o,lt(o)));var T=!(Ge(u)&&"chain"in u)||!!u.chain,P=jr(n);return Vt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var Y=n(this.__wrapped__),ee=Y.__actions__=Pt(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),Y.__chain__=V,Y}return z.apply(n,Jr([this.value()],arguments))})}),n}function N_(){return dt._===this&&(dt._=cw),this}function dl(){}function j_(n){return n=xe(n),_e(function(o){return zd(o,n)})}var z_=Uu(Ue),W_=Uu(ad),B_=Uu(hu);function ih(n){return Xu(n)?gu(br(n)):y1(n)}function U_(n){return function(o){return n==null?r:An(n,o)}}var H_=up(),q_=up(!0);function pl(){return[]}function hl(){return!1}function Z_(){return{}}function G_(){return""}function K_(){return!0}function V_(n,o){if(n=xe(n),n<1||n>te)return[];var u=Q,y=bt(n,Q);o=pe(o),n-=Q;for(var _=yu(y,o);++u<n;)o(u);return _}function X_(n){return we(n)?Ue(n,br):jt(n)?[n]:Pt(_p(ke(n)))}function Y_(n){var o=++uw;return ke(n)+o}var J_=Ss(function(n,o){return n+o},0),Q_=Hu("ceil"),eO=Ss(function(n,o){return n/o},1),tO=Hu("floor");function rO(n){return n&&n.length?gs(n,$t,Pu):r}function nO(n,o){return n&&n.length?gs(n,pe(o,2),Pu):r}function iO(n){return cd(n,$t)}function oO(n,o){return cd(n,pe(o,2))}function sO(n){return n&&n.length?gs(n,$t,Iu):r}function aO(n,o){return n&&n.length?gs(n,pe(o,2),Iu):r}var uO=Ss(function(n,o){return n*o},1),lO=Hu("round"),cO=Ss(function(n,o){return n-o},0);function fO(n){return n&&n.length?mu(n,$t):0}function dO(n,o){return n&&n.length?mu(n,pe(o,2)):0}return A.after=LS,A.ary=Mp,A.assign=xE,A.assignIn=Vp,A.assignInWith=Ms,A.assignWith=SE,A.at=EE,A.before=Fp,A.bind=rl,A.bindAll=R_,A.bindKey=Dp,A.castArray=ZS,A.chain=$p,A.chunk=tx,A.compact=rx,A.concat=nx,A.cond=P_,A.conforms=C_,A.constant=ll,A.countBy=fS,A.create=_E,A.curry=Np,A.curryRight=jp,A.debounce=zp,A.defaults=OE,A.defaultsDeep=AE,A.defer=MS,A.delay=FS,A.difference=ix,A.differenceBy=ox,A.differenceWith=sx,A.drop=ax,A.dropRight=ux,A.dropRightWhile=lx,A.dropWhile=cx,A.fill=fx,A.filter=pS,A.flatMap=vS,A.flatMapDeep=mS,A.flatMapDepth=yS,A.flatten=Rp,A.flattenDeep=dx,A.flattenDepth=px,A.flip=DS,A.flow=$_,A.flowRight=I_,A.fromPairs=hx,A.functions=IE,A.functionsIn=LE,A.groupBy=bS,A.initial=vx,A.intersection=mx,A.intersectionBy=yx,A.intersectionWith=bx,A.invert=FE,A.invertBy=DE,A.invokeMap=xS,A.iteratee=cl,A.keyBy=SS,A.keys=lt,A.keysIn=kt,A.map=Ps,A.mapKeys=jE,A.mapValues=zE,A.matches=L_,A.matchesProperty=M_,A.memoize=ks,A.merge=WE,A.mergeWith=Xp,A.method=F_,A.methodOf=D_,A.mixin=fl,A.negate=$s,A.nthArg=j_,A.omit=BE,A.omitBy=UE,A.once=NS,A.orderBy=ES,A.over=z_,A.overArgs=jS,A.overEvery=W_,A.overSome=B_,A.partial=nl,A.partialRight=Wp,A.partition=_S,A.pick=HE,A.pickBy=Yp,A.property=ih,A.propertyOf=U_,A.pull=Ex,A.pullAll=Cp,A.pullAllBy=_x,A.pullAllWith=Ox,A.pullAt=Ax,A.range=H_,A.rangeRight=q_,A.rearg=zS,A.reject=TS,A.remove=Tx,A.rest=WS,A.reverse=el,A.sampleSize=PS,A.set=ZE,A.setWith=GE,A.shuffle=CS,A.slice=Rx,A.sortBy=IS,A.sortedUniq=Mx,A.sortedUniqBy=Fx,A.split=v_,A.spread=BS,A.tail=Dx,A.take=Nx,A.takeRight=jx,A.takeRightWhile=zx,A.takeWhile=Wx,A.tap=rS,A.throttle=US,A.thru=Rs,A.toArray=Zp,A.toPairs=Jp,A.toPairsIn=Qp,A.toPath=X_,A.toPlainObject=Kp,A.transform=KE,A.unary=HS,A.union=Bx,A.unionBy=Ux,A.unionWith=Hx,A.uniq=qx,A.uniqBy=Zx,A.uniqWith=Gx,A.unset=VE,A.unzip=tl,A.unzipWith=kp,A.update=XE,A.updateWith=YE,A.values=ui,A.valuesIn=JE,A.without=Kx,A.words=rh,A.wrap=qS,A.xor=Vx,A.xorBy=Xx,A.xorWith=Yx,A.zip=Jx,A.zipObject=Qx,A.zipObjectDeep=eS,A.zipWith=tS,A.entries=Jp,A.entriesIn=Qp,A.extend=Vp,A.extendWith=Ms,fl(A,A),A.add=J_,A.attempt=nh,A.camelCase=r_,A.capitalize=eh,A.ceil=Q_,A.clamp=QE,A.clone=GS,A.cloneDeep=VS,A.cloneDeepWith=XS,A.cloneWith=KS,A.conformsTo=YS,A.deburr=th,A.defaultTo=k_,A.divide=eO,A.endsWith=n_,A.eq=lr,A.escape=i_,A.escapeRegExp=o_,A.every=dS,A.find=hS,A.findIndex=Ap,A.findKey=TE,A.findLast=gS,A.findLastIndex=Tp,A.findLastKey=RE,A.floor=tO,A.forEach=Ip,A.forEachRight=Lp,A.forIn=PE,A.forInRight=CE,A.forOwn=kE,A.forOwnRight=$E,A.get=sl,A.gt=JS,A.gte=QS,A.has=ME,A.hasIn=al,A.head=Pp,A.identity=$t,A.includes=wS,A.indexOf=gx,A.inRange=e_,A.invoke=NE,A.isArguments=Pn,A.isArray=we,A.isArrayBuffer=eE,A.isArrayLike=Ct,A.isArrayLikeObject=Je,A.isBoolean=tE,A.isBuffer=sn,A.isDate=rE,A.isElement=nE,A.isEmpty=iE,A.isEqual=oE,A.isEqualWith=sE,A.isError=il,A.isFinite=aE,A.isFunction=jr,A.isInteger=Bp,A.isLength=Is,A.isMap=Up,A.isMatch=uE,A.isMatchWith=lE,A.isNaN=cE,A.isNative=fE,A.isNil=pE,A.isNull=dE,A.isNumber=Hp,A.isObject=Ge,A.isObjectLike=Xe,A.isPlainObject=Wi,A.isRegExp=ol,A.isSafeInteger=hE,A.isSet=qp,A.isString=Ls,A.isSymbol=jt,A.isTypedArray=ai,A.isUndefined=gE,A.isWeakMap=vE,A.isWeakSet=mE,A.join=wx,A.kebabCase=s_,A.last=er,A.lastIndexOf=xx,A.lowerCase=a_,A.lowerFirst=u_,A.lt=yE,A.lte=bE,A.max=rO,A.maxBy=nO,A.mean=iO,A.meanBy=oO,A.min=sO,A.minBy=aO,A.stubArray=pl,A.stubFalse=hl,A.stubObject=Z_,A.stubString=G_,A.stubTrue=K_,A.multiply=uO,A.nth=Sx,A.noConflict=N_,A.noop=dl,A.now=Cs,A.pad=l_,A.padEnd=c_,A.padStart=f_,A.parseInt=d_,A.random=t_,A.reduce=OS,A.reduceRight=AS,A.repeat=p_,A.replace=h_,A.result=qE,A.round=lO,A.runInContext=N,A.sample=RS,A.size=kS,A.snakeCase=g_,A.some=$S,A.sortedIndex=Px,A.sortedIndexBy=Cx,A.sortedIndexOf=kx,A.sortedLastIndex=$x,A.sortedLastIndexBy=Ix,A.sortedLastIndexOf=Lx,A.startCase=m_,A.startsWith=y_,A.subtract=cO,A.sum=fO,A.sumBy=dO,A.template=b_,A.times=V_,A.toFinite=zr,A.toInteger=xe,A.toLength=Gp,A.toLower=w_,A.toNumber=tr,A.toSafeInteger=wE,A.toString=ke,A.toUpper=x_,A.trim=S_,A.trimEnd=E_,A.trimStart=__,A.truncate=O_,A.unescape=A_,A.uniqueId=Y_,A.upperCase=T_,A.upperFirst=ul,A.each=Ip,A.eachRight=Lp,A.first=Pp,fl(A,(function(){var n={};return mr(A,function(o,u){Fe.call(A.prototype,u)||(n[u]=o)}),n})(),{chain:!1}),A.VERSION=i,Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Vt(["drop","take"],function(n,o){Te.prototype[n]=function(u){u=u===r?1:st(xe(u),0);var y=this.__filtered__&&!o?new Te(this):this.clone();return y.__filtered__?y.__takeCount__=bt(u,y.__takeCount__):y.__views__.push({size:bt(u,Q),type:n+(y.__dir__<0?"Right":"")}),y},Te.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Vt(["filter","map","takeWhile"],function(n,o){var u=o+1,y=u==q||u==J;Te.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:pe(_,3),type:u}),T.__filtered__=T.__filtered__||y,T}}),Vt(["head","last"],function(n,o){var u="take"+(o?"Right":"");Te.prototype[n]=function(){return this[u](1).value()[0]}}),Vt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[u](1)}}),Te.prototype.compact=function(){return this.filter($t)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Te(this):this.map(function(u){return Mi(u,n,o)})}),Te.prototype.reject=function(n){return this.filter($s(pe(n)))},Te.prototype.slice=function(n,o){n=xe(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Te(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=xe(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(Q)},mr(Te.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),_=A[y?"take"+(o=="last"?"Right":""):o],T=y||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=y?[1]:arguments,z=P instanceof Te,V=I[0],Y=z||we(P),ee=function(Oe){var Re=_.apply(A,Jr([Oe],I));return y&&oe?Re[0]:Re};Y&&u&&typeof V=="function"&&V.length!=1&&(z=Y=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=z&&!le;if(!T&&Y){P=Se?P:new Te(this);var ge=n.apply(P,I);return ge.__actions__.push({func:Rs,args:[ee],thisArg:r}),new Yt(ge,oe)}return he&&Se?n.apply(this,I):(ge=this.thru(ee),he?y?ge.value()[0]:ge.value():ge)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(n){var o=es[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",y=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(y&&!this.__chain__){var T=this.value();return o.apply(we(T)?T:[],_)}return this[u](function(P){return o.apply(we(P)?P:[],_)})}}),mr(Te.prototype,function(n,o){var u=A[o];if(u){var y=u.name+"";Fe.call(ri,y)||(ri[y]=[]),ri[y].push({name:o,func:u})}}),ri[xs(r,h).name]=[{name:"wrapper",func:r}],Te.prototype.clone=Aw,Te.prototype.reverse=Tw,Te.prototype.value=Rw,A.prototype.at=nS,A.prototype.chain=iS,A.prototype.commit=oS,A.prototype.next=sS,A.prototype.plant=uS,A.prototype.reverse=lS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=cS,A.prototype.first=A.prototype.head,Ri&&(A.prototype[Ri]=aS),A}),Qn=ow();xn?((xn.exports=Qn)._=Qn,cu._=Qn):dt._=Qn}).call(Gk)})(go,go.exports)),go.exports}var rt=Kk();const Sc={FdSave:tt.FdSave,FdWarningDanger:tt.FdWarningDanger,FdInfoCircle:tt.FdInfoCircle,FdInfoBold:tt.FdInfoBold};var df=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(df||{}),zn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(zn||{}),pi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(pi||{});const Ay={[zn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[zn.DANGER]:{icon:"red-500",button:"primary-dark"},[zn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Gl=({color:e=zn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=Ay[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return D.jsx("button",{autoFocus:i,className:We("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...s,children:r})},Vk=({name:e,color:t=zn.PRIMARY,className:r="w-8 h-8"})=>{const i=Sc[e]||Sc.FdInfoCircle,s=`text-${Ay[t].icon}`;return D.jsx(i,{className:We(r,s)})},Xk=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:l=3e3,views:c,width:f=520,hasOverlay:m=!0,container:v,onClose:g,onEdit:p})=>{const b=w=>{g({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&b(pi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=rt.merge(rt.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),d=(w,h)=>{var E;if(!(c!=null&&c.toggles))return;const S=rt.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),p({id:e,views:S})};return Fo.createPortal(D.jsx(ba,{appear:!0,show:!0,as:W.Fragment,children:D.jsx("div",{className:We("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>b(pi.CANCELED),children:D.jsx(ba.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:D.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:f},onClick:w=>w.stopPropagation(),children:D.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?D.jsx("div",{className:"flex items-center justify-center",children:D.jsx(Vk,{name:i,color:a,className:"w-6 h-6"})}):null,D.jsx(Yk,{condition:t,children:D.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),D.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),D.jsx("div",{className:"text-xs text-white",children:rt.values(c==null?void 0:c.toggles).map(w=>D.jsx("div",{children:D.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[D.jsx(fy,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),D.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),D.jsx(Jk,{warnings:x}),D.jsx("div",{className:"flex items-center gap-4",children:s===df.CONFIRM?D.jsxs(D.Fragment,{children:[D.jsx(Gl,{autoFocus:!0,color:a,onClick:()=>b(pi.CONFIRMED),children:"Confirm"}),D.jsx(Gl,{color:a,variant:"outlined",onClick:()=>b(pi.CANCELED),children:"Cancel"})]}):D.jsx(Gl,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),v||document.body)},Yk=e=>e.condition?D.jsx(D.Fragment,{children:e.children}):null,Jk=e=>e.warnings?D.jsx(ba,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:D.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>D.jsx(ba.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:D.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[D.jsx(tt.FdWarningDanger,{className:We({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),D.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Ty=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Ty||{});const Qk=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>D.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[D.jsx(tt.FdMinusNaked,{onClick:s,className:We("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),D.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),D.jsx(tt.FdPlusNaked,{onClick:i,className:We("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),e$=$.forwardRef(((e,t)=>$.createElement(yn.span,Ve({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),t$=e$;function fv(e){const t=$.useRef({value:e,previous:e});return $.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Ry]=Zc("Tooltip",[Fa]),pf=Fa(),r$=700,[oM,n$]=Ry("TooltipProvider",{isOpenDelayed:!0,delayDuration:r$,onOpen:()=>{},onClose:()=>{}}),[i$,Ba]=Ry("Tooltip"),o$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:l}=e,c=n$("Tooltip",t),f=pf(t),[m,v]=$.useState(null),g=Rm(),p=$.useRef(0),b=l??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=zm({prop:i,defaultProp:s,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(k)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(p.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{x.current=!0,S(!0)}),b)}),[b,S]);return $.useEffect((()=>()=>window.clearTimeout(p.current)),[]),$.createElement(Dm,f,$.createElement(i$,{scope:t,contentId:g,open:h,stateAttribute:E,trigger:m,onTriggerChange:v,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(p.current),S(!1),w()}),[S,w])},r))},s$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ba("TooltipTrigger",r),a=pf(r),l=mn(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(Nm,Ve({asChild:!0},a),$.createElement(yn.button,Ve({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:l,onMouseEnter:Ut(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:Ut(e.onMouseLeave,s.onClose),onMouseDown:Ut(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Ut(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:Ut(e.onBlur,s.onClose),onClick:Ut(e.onClick,(m=>{m.detail===0&&s.onClose()}))})))})),a$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ba("TooltipContent",e.__scopeTooltip);return $.createElement(Hc,{present:r||s.open},$.createElement(u$,Ve({ref:t},i)))})),u$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...l}=e,c=Ba("TooltipContent",r),f=pf(r),m=a?qc:$.Fragment,{onClose:v}=c;return $m((()=>v())),$.useEffect((()=>(document.addEventListener("tooltip.open",v),()=>document.removeEventListener("tooltip.open",v))),[v]),$.createElement(m,null,$.createElement(l$,{__scopeTooltip:r}),$.createElement(jm,Ve({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(km,null,i),$.createElement(t$,{id:c.contentId,role:"tooltip"},s||i)))}));function l$(e){const{__scopeTooltip:t}=e,r=Ba("CheckTriggerMoved",t),i=Lm(r.trigger),s=i==null?void 0:i.left,a=fv(s),l=i==null?void 0:i.top,c=fv(l),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==l)&&f()}),[f,a,c,s,l]),null}const c$=o$,f$=s$,d$=a$;function p$(e){return D.jsxs(c$,{delayDuration:e.delayDuration,open:e.open,children:[D.jsx(f$,{tabIndex:-1,asChild:!0,children:D.jsx("span",{children:e.children})}),D.jsxs(d$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&D.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const In=30,fa=500,h$=()=>D.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),g$=e=>{const[t,r]=W.useState(In),i=W.useRef(),s=t>In,a=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!s&&r(fa),!e.isOpen&&s&&r(In)},[e.isOpen]),D.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[D.jsx(gO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:In,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?In:fa):i.current=Date.now()},onResize:(l,c,f)=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{var m;(m=e.onResize)==null||m.call(e),a.current=null})},onResizeStop:(l,c,f,m)=>{r(t+m.height)},handleComponent:{top:D.jsx(h$,{})}}),D.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${rt.kebabCase(e.path)}`,children:[D.jsxs("div",{className:We("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[D.jsxs("div",{className:"group flex items-center justify-start",children:[D.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),D.jsx("span",{}),e.tipKey?D.jsx(Qm,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,D.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{s?(r(In),e.onClose()):(r(fa),e.onOpen())},children:s?D.jsx(tt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):D.jsx(tt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),D.jsxs(aa,{of:s,children:[D.jsx(aa,{of:e.render,children:e.render}),D.jsx(aa,{of:!e.render,children:e.children})]})]})]})};function Py({children:e,viewBox:t="0 0 24 24",...r}){return D.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function Cy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return D.jsx(Py,{viewBox:"0 0 24 24",...e,children:D.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function v$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:l,...c}){const f=W.useRef(null),m=i||D.jsx(Cy,{}),v=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const g=v||t,p=["base-checkbox-container",a].join(" ");return D.jsxs("label",{className:p,style:l,"data-invalid":r,children:[D.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:v,...c,"aria-invalid":r||void 0}),D.jsx("span",{className:"base-checkbox-control",children:g&&m&&W.cloneElement(m,{isChecked:v,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&D.jsx("span",{className:"base-checkbox-label",children:s})]})}function m$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Kl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Vl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function fo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function ky(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 $y(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 y$(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)i.indexOf(r[a])===-1&&(s=!1);return s}const Ro={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Kl?173:189,"=":Kl?61:187,";":Kl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},gr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},vo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},gt={16:!1,18:!1,17:!1,91:!1},Ke={};for(let e=1;e<20;e++)Ro["f".concat(e)]=111+e;let qe=[],_o=null,Iy="all";const Ur=new Map,_i=e=>Ro[e.toLowerCase()]||gr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),b$=e=>Object.keys(Ro).find(t=>Ro[t]===e),w$=e=>Object.keys(gr).find(t=>gr[t]===e);function Ly(e){Iy=e||"all"}function Po(){return Iy||"all"}function x$(){return qe.slice(0)}function S$(){return qe.map(e=>b$(e)||w$(e)||String.fromCharCode(e))}function E$(){const e=[];return Object.keys(Ke).forEach(t=>{Ke[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:l}=r;e.push({scope:s,shortcut:l,mods:a,keys:i.split("+").map(c=>_i(c))})})}),e}function _$(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const s=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(s||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function O$(e){return typeof e=="string"&&(e=_i(e)),qe.indexOf(e)!==-1}function A$(e,t){let r,i;e||(e=Po());for(const s in Ke)if(Object.prototype.hasOwnProperty.call(Ke,s))for(r=Ke[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return hf(c)}):i++;Po()===e&&Ly(t||"all")}function T$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=_i(e.key));const r=qe.indexOf(t);if(r>=0&&qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(const i in gr)gr[i]===t&&(hr[i]=!1)}}function My(e){if(typeof e>"u")Object.keys(Ke).forEach(s=>{Array.isArray(Ke[s])&&Ke[s].forEach(a=>Qs(a)),delete Ke[s]}),hf(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&Qs(s)});else if(typeof e=="object")e.key&&Qs(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[s,a]=r;typeof s=="function"&&(a=s,s=""),Qs({key:e,scope:s,method:a,splitKey:"+"})}}const Qs=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;$y(t).forEach(l=>{const c=l.split(s),f=c.length,m=c[f-1],v=m==="*"?"*":_i(m);if(!Ke[v])return;r||(r=Po());const g=f>1?ky(gr,c):[],p=[];Ke[v]=Ke[v].filter(b=>{const d=(i?b.method===i:!0)&&b.scope===r&&y$(b.mods,g);return d&&p.push(b.element),!d}),p.forEach(b=>hf(b))})};function dv(e,t,r,i){if(t.element!==i)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in gt)Object.prototype.hasOwnProperty.call(gt,a)&&(!gt[a]&&t.mods.indexOf(+a)>-1||gt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function pv(e,t){const r=Ke["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!hr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),qe.indexOf(i)===-1&&i!==229&&qe.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=vo[c];e[c]&&qe.indexOf(f)===-1?qe.push(f):!e[c]&&qe.indexOf(f)>-1?qe.splice(qe.indexOf(f),1):c==="metaKey"&&e[c]&&(qe=qe.filter(m=>m in vo||m===i))}),i in gt){gt[i]=!0;for(const c in gr)if(Object.prototype.hasOwnProperty.call(gr,c)){const f=vo[gr[c]];hr[c]=e[f]}if(!r)return}for(const c in gt)Object.prototype.hasOwnProperty.call(gt,c)&&(gt[c]=e[vo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),gt[17]=!0,gt[18]=!0);const s=Po();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&dv(e,r[c],s,t);if(!(i in Ke))return;const a=Ke[i],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const f=a[c],{splitKey:m}=f,v=f.key.split(m),g=[];for(let p=0;p<v.length;p++)g.push(_i(v[p]));g.sort().join("")===qe.sort().join("")&&dv(e,f,s,t)}}function hr(e,t,r){qe=[];const i=$y(e);let s=[],a="all",l=document,c=0,f=!1,m=!0,v="+",g=!1,p=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(p=!0)),typeof t=="string"&&(a=t),p&&My(e,a);c<i.length;c++)e=i[c].split(v),s=[],e.length>1&&(s=ky(gr,e)),e=e[e.length-1],e=e==="*"?"*":_i(e),e in Ke||(Ke[e]=[]),Ke[e].push({keyup:f,keydown:m,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:v,element:l});if(typeof l<"u"&&window){if(!Ur.has(l)){const b=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return pv(d,l)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;pv(d,l),T$(d)};Ur.set(l,{keydownListener:b,keyupListenr:x,capture:g}),Vl(l,"keydown",b,g),Vl(l,"keyup",x,g)}if(!_o){const b=()=>{qe=[]};_o={listener:b,capture:g},Vl(window,"focus",b,g)}}}function R$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ke).forEach(r=>{Ke[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function hf(e){const t=Object.values(Ke).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Ur.get(e)||{};i&&s&&(fo(e,"keyup",s,a),fo(e,"keydown",i,a),Ur.delete(e))}if((t.length<=0||Ur.size<=0)&&(Object.keys(Ur).forEach(s=>{const{keydownListener:a,keyupListenr:l,capture:c}=Ur.get(s)||{};a&&l&&(fo(s,"keyup",l,c),fo(s,"keydown",a,c),Ur.delete(s))}),Ur.clear(),Object.keys(Ke).forEach(s=>delete Ke[s]),_o)){const{listener:s,capture:a}=_o;fo(window,"focus",s,a),_o=null}}const Xl={getPressedKeyString:S$,setScope:Ly,getScope:Po,deleteScope:A$,getPressedKeyCodes:x$,getAllKeyCodes:E$,isPressed:O$,filter:_$,trigger:R$,unbind:My,keyMap:Ro,modifier:gr,modifierMap:vo};for(const e in Xl)Object.prototype.hasOwnProperty.call(Xl,e)&&(hr[e]=Xl[e]);if(typeof window<"u"){const e=window.hotkeys;hr.noConflict=t=>(t&&window.hotkeys===hr&&(window.hotkeys=e),hr),window.hotkeys=hr}hr.filter=()=>!0;function P$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),l=()=>{hr.unbind(e,a)};W.useEffect(()=>(hr(e,r,a),l),[e,r,a])}const C$=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function k$(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function $$(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function I$(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function L$(e){const[t,r]=W.useState(e),i=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},s=W.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Fy=W.createContext(""),M$=e=>D.jsx(Fy.Provider,{value:e.value,children:e.children}),F$=()=>{const e=W.useContext(Fy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function D$(e){const[t,r]=W.useState(e),i=W.useMemo(()=>N$(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function N$(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${rt.upperFirst(s)}`]:a=>t(l=>({...l,[s]:a}))}),{})}const j$=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((a,...l)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function vt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var s=Z$[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Si(e){return!!e&&!!e[qt]}function Hn(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===G$})(e)||Array.isArray(e)||!!e[xv]||!!(!((t=e.constructor)===null||t===void 0)&&t[xv])||gf(e)||vf(e))}function Co(e,t,r){r===void 0&&(r=!1),Oi(e)===0?(r?Object.keys:wf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Oi(e){var t=e[qt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:gf(e)?2:vf(e)?3:0}function Ec(e,t){return Oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function z$(e,t){return Oi(e)===2?e.get(t):e[t]}function Dy(e,t,r){var i=Oi(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function W$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function gf(e){return H$&&e instanceof Map}function vf(e){return q$&&e instanceof Set}function Ln(e){return e.o||e.t}function mf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K$(e);delete t[qt];for(var r=wf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function ko(e,t){return t===void 0&&(t=!1),yf(e)||Si(e)||!Hn(e)||(Oi(e)>1&&(e.set=e.add=e.clear=e.delete=B$),Object.freeze(e),t&&Co(e,(function(r,i){return ko(i,!0)}),!0)),e}function B$(){vt(2)}function yf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var t=V$[e];return t||vt(18,e),t}function hv(){return process.env.NODE_ENV==="production"||Ei||vt(0),Ei}function Yl(e,t){t&&(Rr("Patches"),e.u=[],e.s=[],e.v=t)}function Ea(e){_c(e),e.p.forEach(U$),e.p=null}function _c(e){e===Ei&&(Ei=e.l)}function gv(e){return Ei={p:[],l:Ei,h:e,m:!0,_:0}}function U$(e){var t=e[qt];t.i===0||t.i===1?t.j():t.g=!0}function Jl(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||Rr("ES5").S(t,e,i),i?(r[qt].P&&(Ea(t),vt(4)),Hn(e)&&(e=_a(t,e),t.l||Oa(t,e)),t.u&&Rr("Patches").M(r[qt].t,e,t.u,t.s)):e=_a(t,r,[]),Ea(t),t.u&&t.v(t.u,t.s),e!==jy?e:void 0}function _a(e,t,r){if(yf(t))return t;var i=t[qt];if(!i)return Co(t,(function(c,f){return vv(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Oa(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=mf(i.k):i.o,a=s,l=!1;i.i===3&&(a=new Set(s),s.clear(),l=!0),Co(a,(function(c,f){return vv(e,i,s,c,f,r,l)})),Oa(e,s,!1),r&&e.u&&Rr("Patches").N(i,r,e.u,e.s)}return i.o}function vv(e,t,r,i,s,a,l){if(process.env.NODE_ENV!=="production"&&s===r&&vt(5),Si(s)){var c=_a(e,s,a&&t&&t.i!==3&&!Ec(t.R,i)?a.concat(i):void 0);if(Dy(r,i,c),!Si(c))return;e.m=!1}else l&&r.add(s);if(Hn(s)&&!yf(s)){if(!e.h.D&&e._<1)return;_a(e,s),t&&t.A.l||Oa(e,s)}}function Oa(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ko(t,r)}function Ql(e,t){var r=e[qt];return(r?Ln(r):e)[t]}function mv(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Oc(e){e.P||(e.P=!0,e.l&&Oc(e.l))}function ec(e){e.o||(e.o=mf(e.t))}function Ac(e,t,r){var i=gf(t)?Rr("MapSet").F(t,r):vf(t)?Rr("MapSet").T(t,r):e.O?(function(s,a){var l=Array.isArray(s),c={i:l?1:0,A:a?a.A:hv(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,m=Tc;l&&(f=[c],m=mo);var v=Proxy.revocable(f,m),g=v.revoke,p=v.proxy;return c.k=p,c.j=g,p})(t,r):Rr("ES5").J(t,r);return(r?r.A:hv()).p.push(i),i}function Ny(e){return Si(e)||vt(22,e),(function t(r){if(!Hn(r))return r;var i,s=r[qt],a=Oi(r);if(s){if(!s.P&&(s.i<4||!Rr("ES5").K(s)))return s.t;s.I=!0,i=yv(r,a),s.I=!1}else i=yv(r,a);return Co(i,(function(l,c){s&&z$(s.t,l)===c||Dy(i,l,t(c))})),a===3?new Set(i):i})(e)}function yv(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return mf(e)}var bv,Ei,bf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",H$=typeof Map<"u",q$=typeof Set<"u",wv=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",jy=bf?Symbol.for("immer-nothing"):((bv={})["immer-nothing"]=!0,bv),xv=bf?Symbol.for("immer-draftable"):"__$immer_draftable",qt=bf?Symbol.for("immer-state"):"__$immer_state",Z$={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},G$=""+Object.prototype.constructor,wf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K$=Object.getOwnPropertyDescriptors||function(e){var t={};return wf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},V$={},Tc={get:function(e,t){if(t===qt)return e;var r=Ln(e);if(!Ec(r,t))return(function(s,a,l){var c,f=mv(a,l);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Hn(i)?i:i===Ql(e.t,t)?(ec(e),e.o[t]=Ac(e.A.h,i,e)):i},has:function(e,t){return t in Ln(e)},ownKeys:function(e){return Reflect.ownKeys(Ln(e))},set:function(e,t,r){var i=mv(Ln(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=Ql(Ln(e),t),a=s==null?void 0:s[qt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(W$(r,s)&&(r!==void 0||Ec(e.t,t)))return!0;ec(e),Oc(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ql(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ec(e),Oc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ln(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){vt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){vt(12)}},mo={};Co(Tc,(function(e,t){mo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),mo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&vt(13),mo.set.call(this,e,t,void 0)},mo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&vt(14),Tc.set.call(this,e[0],t,r,e[0])};var X$=(function(){function e(r){var i=this;this.O=wv,this.D=!0,this.produce=function(s,a,l){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(d){var w=this;d===void 0&&(d=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=a).call.apply(O,[w,R].concat(S))}))}}var m;if(typeof a!="function"&&vt(6),l!==void 0&&typeof l!="function"&&vt(7),Hn(s)){var v=gv(i),g=Ac(i,s,void 0),p=!0;try{m=a(g),p=!1}finally{p?Ea(v):_c(v)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(d){return Yl(v,l),Jl(d,v)}),(function(d){throw Ea(v),d})):(Yl(v,l),Jl(m,v))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===jy&&(m=void 0),i.D&&ko(m,!0),l){var b=[],x=[];Rr("Patches").M(s,m,b,x),l(b,x)}return m}vt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(m){for(var v=arguments.length,g=Array(v>1?v-1:0),p=1;p<v;p++)g[p-1]=arguments[p];return i.produceWithPatches(m,(function(b){return s.apply(void 0,[b].concat(g))}))};var l,c,f=i.produce(s,a,(function(m,v){l=m,c=v}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(m){return[m,l,c]})):[f,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Hn(r)||vt(8),Si(r)&&(r=Ny(r));var i=gv(this),s=Ac(this,r,void 0);return s[qt].C=!0,_c(i),s},t.finishDraft=function(r,i){var s=r&&r[qt];process.env.NODE_ENV!=="production"&&(s&&s.C||vt(9),s.I&&vt(10));var a=s.A;return Yl(a,i),Jl(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!wv&&vt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var l=Rr("Patches").$;return Si(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Zt=new X$,Y$=Zt.produce;Zt.produceWithPatches.bind(Zt);Zt.setAutoFreeze.bind(Zt);Zt.setUseProxies.bind(Zt);Zt.applyPatches.bind(Zt);Zt.createDraft.bind(Zt);Zt.finishDraft.bind(Zt);function J$(e){var t=W.useState(function(){return ko(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?Y$(i):ko(i))},[])]}const Q$=process.env.NODE_ENV==="development",tc=Q$&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,eI=(e,t,r)=>{const[i,s]=J$(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=tc==null?void 0:tc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var m,v;(v=(m=a.current)==null?void 0:m.disconnect)==null||v.call(m)}},[]);const l=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(l).reduce((f,m)=>({...f,[m]:v=>(s(g=>{var p;l[m](g,v),(p=a.current)==null||p.send({type:l[m].name},Ny(g))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Zr(e){return typeof e=="function"}function zy(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 rc=zy(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
202
|
+
`+r.map(function(i,s){return s+1+") "+i.toString()}).join(`
|
|
203
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Rc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ua=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,s,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=cc(l),f=c.next();!f.done;f=c.next()){var m=f.value;m.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var v=this.initialTeardown;if(Zr(v))try{v()}catch(d){a=d instanceof rc?d.errors:[d]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=cc(g),b=p.next();!b.done;b=p.next()){var x=b.value;try{Sv(x)}catch(d){a=a??[],d instanceof rc?a=ma(ma([],fc(a)),fc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{b&&!b.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}if(a)throw new rc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Sv(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)&&Rc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Rc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Wy=Ua.EMPTY;function By(e){return e instanceof Ua||e&&"closed"in e&&Zr(e.remove)&&Zr(e.add)&&Zr(e.unsubscribe)}function Sv(e){Zr(e)?e():e.unsubscribe()}var tI={Promise:void 0},rI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ma([e,t],fc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function nI(e){rI.setTimeout(function(){throw e})}function Ev(){}function da(e){e()}var Uy=(function(e){La(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,By(r)&&r.add(i)):i.destination=sI,i}return t.create=function(r,i,s){return new Pc(r,i,s)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ua),iI=(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){ea(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ea(i)}else ea(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ea(r)}},e})(),Pc=(function(e){La(t,e);function t(r,i,s){var a=e.call(this)||this,l;return Zr(r)||!r?l={next:r??void 0,error:i??void 0,complete:s??void 0}:l=r,a.destination=new iI(l),a}return t})(Uy);function ea(e){nI(e)}function oI(e){throw e}var sI={closed:!0,next:Ev,error:oI,complete:Ev},aI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function uI(e){return e}function lI(e){return e.length===0?uI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var _v=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var s=this,a=fI(t)?t:new Pc(t,r,i);return da(function(){var l=s,c=l.operator,f=l.source;a.add(c?c.call(a,f):f?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Ov(r),new r(function(s,a){var l=new Pc({next:function(c){try{t(c)}catch(f){a(f),l.unsubscribe()}},error:a,complete:s});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[aI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return lI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ov(t),new t(function(i,s){var a;r.subscribe(function(l){return a=l},function(l){return s(l)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Ov(e){var t;return(t=e??tI.Promise)!==null&&t!==void 0?t:Promise}function cI(e){return e&&Zr(e.next)&&Zr(e.error)&&Zr(e.complete)}function fI(e){return e&&e instanceof Uy||cI(e)&&By(e)}var dI=zy(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kr=(function(e){La(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 Av(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new dI},t.prototype.next=function(r){var i=this;da(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=cc(i.currentObservers),c=l.next();!c.done;c=l.next()){var f=c.value;f.next(r)}}catch(m){s={error:m}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;da(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var s=i.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;da(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,s=this,a=s.hasError,l=s.isStopped,c=s.observers;return a||l?Wy:(this.currentObservers=null,c.push(r),new Ua(function(){i.currentObservers=null,Rc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,l=i.isStopped;s?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new _v;return r.source=this,r},t.create=function(r,i){return new Av(r,i)},t})(_v),Av=(function(e){La(t,e);function t(r,i){var s=e.call(this)||this;return s.destination=r,s.source=i,s}return t.prototype.next=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,r)},t.prototype.error=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&s!==void 0?s:Wy},t})(kr),Hy=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Hy||{}),qy=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(qy||{});const pI=new kr,hI=new kr,Zy=new kr;var Gy=(e=>(e.SAVE_ALL="save-all",e))(Gy||{});const gI=new kr;var Ky=(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))(Ky||{});const vI=new kr;var Vy=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Vy||{});const mI=new kr,yI=new kr;var $o=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))($o||{});const Aa=new kr,bI=new kr,xf=31;var Sf=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${xf} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Sf||{});function Xy(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>xf)throw new Error(Sf.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 wI(e){if(!e)return null;if(typeof e=="string")try{Xy(e)}catch(t){return t.message}}function xI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!rt.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!rt.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 SI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Ha(e){const{PLACEHOLDER_PREFIX:t,counter:r}=SI();let i=r;const s=[],a="@!",l=v=>(s.push(v),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(v,g,p)=>g+l(p)),c=c.replace(/:\d{2}:\d{2}/g,l);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let m=c.replace(f,"");for(let v=0;v<s.length;v++){const p=`${t}${v}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(p,"g");m=m.replace(b,s[v])}return m}var Ef=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Ef||{});const hn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ft=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ft||{}),bn=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(bn||{}),_f=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(_f||{});const Yy="roles.json",Jy="qodlyApp.json",EI="model.4DModel",Qy="HTTPHandlers.json",e0="Shared/i18n.json";function _I(e){const t=Of(e);switch(t){case ft.SETTINGS:return{filename:"Settings",type:t};case ft.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case ft.ROLES:return{filename:"Roles & Privileges",type:t};case ft.LOCALIZATION:return{filename:"Localization",type:t};case ft.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Of(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ft.MODEL;case r==="WebForm":return ft.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===hn.METHODS):return ft.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===hn.CLASSES):return ft.CLASS;case e===Yy:return ft.ROLES;case e===Qy:return ft.HTTP_HANDLERS;case e===Jy:return ft.SETTINGS;case e===e0:return ft.LOCALIZATION;default:return ft.TEXT}}function OI(e,t=!1){switch(e){case hn.REPORTS:case"report":return"QoDoc";case hn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case hn.CLASSES:case hn.METHODS:return t?"4qs":"4dm";default:return""}}function AI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class t0{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),i=this.current.then(()=>t);return this.current=r,i}}function Af(){const e=new t0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const r0=rt.curry((e,t,r)=>e&&rt.get(r,e)===t),TI=rt.curry((e,t,r)=>rt.get(r,e)!==t),RI=rt.curry((e,t)=>rt.get(t,"id")!==e),PI=rt.curry((e,t)=>rt.get(t,"id")===e),CI=rt.curry((e,t)=>rt.get(t,"path")===e);function kI(e="id",t,r){return r.findIndex(r0(e,t))!==-1}function $I(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function n0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function II(e){return e.type==="object"}function i0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function o0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!n0(e)}function LI(e){return i0(e)||o0(e)}function MI(e){return e.applyTo==="dataStore"}function FI(e){return e.applyTo==="dataClass"}function DI(e){return e.applyTo==="entity"}function NI(e){return e.applyTo==="entityCollection"}function jI(e){return e.type==="entity"}function zI(e){return e.type==="entitysel"}function s0(e){return e.dataType==="array"}function a0(e){return e.dataType==="object"}function u0(e){return e.type==="scalar"}function WI(e){return s0(e)||a0(e)||u0(e)}const BI=e=>e!=null&&e.type==="entity",UI=e=>e.type==="entitysel",HI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",qI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",ZI=e=>e.type==="scalar"&&e.dataType==="date";function GI(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function KI(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var Io=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Io||{}),l0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(l0||{}),Tf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Tf||{});const VI={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function XI(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Io.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Tf.table}},...i}}function c0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Io.capable,Io.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 YI(e,t,r=!1){const i=rt.isString(t)?t:c0(t);if(!r&&f0(e))return e;const s=d0(e);return`//%attributes = ${i}\r
|
|
204
|
+
${s}`}function f0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function d0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const JI=()=>Bc.uuid().replaceAll("-","").toUpperCase(),QI=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,""),it="/rest/$designer",Uo="/rest/$designer-ext";function e2(...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 Cc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Me(e,t){var s;Aa.next({action:$o.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const l=await r.json();((s=l==null?void 0:l.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&Aa.next({action:$o.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Cc(e,r,l)}catch{a=new Cc(e,r)}throw a.log(),a}return await r.json()}function t2(e){return Aa.next({action:$o.REQUEST_SENT}),e}var xr={},ht={},Tv;function Fn(){if(Tv)return ht;Tv=1;var e=ht.ValidationError=function(d,w,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,B){return k+c(B)},"instance")):S!==void 0&&(this.property=S),d&&(this.message=d),h){var O=h.$id||h.id;this.schema=O||h}w!==void 0&&(this.instance=w),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=ht.ValidatorResult=function(d,w,h,S){this.instance=d,this.schema=w,this.options=h,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=h&&h.throwError,this.throwFirst=h&&h.throwFirst,this.throwAll=h&&h.throwAll,this.disableFormat=h&&h.disableFormat===!0};t.prototype.addError=function(d){var w;if(typeof d=="string")w=new e(d,this.instance,this.schema,this.path);else{if(!d)throw new Error("Missing error detail");if(!d.message)throw new Error("Missing error message");if(!d.name)throw new Error("Missing validator type");w=new e(d.message,this.instance,this.schema,this.path,d.name,d.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(d){typeof d=="string"||d&&d.validatorType?this.addError(d):d&&d.errors&&(this.errors=this.errors.concat(d.errors))};function r(x,d){return d+": "+x.toString()+`
|
|
205
|
+
`}t.prototype.toString=function(d){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),ht.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var s=ht.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=ht.SchemaContext=function(d,w,h,S,E){this.schema=d,this.options=w,Array.isArray(h)?(this.path=h,this.propertyPath=h.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=h,this.base=S,this.schemas=E};a.prototype.resolve=function(d){return b(this.base,d)},a.prototype.makeChild=function(d,w){var h=w===void 0?this.path:this.path.concat([w]),S=d.$id||d.id;let E=b(this.base,S||"");var R=new a(d,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var l=ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],ht.isFormat=function(d,w,h){if(typeof d=="string"&&l[w]!==void 0){if(l[w]instanceof RegExp)return l[w].test(d);if(typeof l[w]=="function")return l[w](d)}else if(h&&h.customFormats&&typeof h.customFormats[w]=="function")return h.customFormats[w](d);return!0};var c=ht.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};ht.deepCompareStrict=function x(d,w){if(typeof d!=typeof w)return!1;if(Array.isArray(d))return!Array.isArray(w)||d.length!==w.length?!1:d.every(function(E,R){return x(d[R],w[R])});if(typeof d=="object"){if(!d||!w)return d===w;var h=Object.keys(d),S=Object.keys(w);return h.length!==S.length?!1:h.every(function(E){return x(d[E],w[E])})}return d===w};function f(x,d,w,h){typeof w=="object"?d[h]=g(x[h],w):x.indexOf(w)===-1&&d.push(w)}function m(x,d,w){d[w]=x[w]}function v(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=g(x[h],d[h]):w[h]=d[h]}function g(x,d){var w=Array.isArray(d),h=w&&[]||{};return w?(x=x||[],h=h.concat(x),d.forEach(f.bind(null,x,h))):(x&&typeof x=="object"&&Object.keys(x).forEach(m.bind(null,x,h)),Object.keys(d).forEach(v.bind(null,x,d,h))),h}ht.deepMerge=g,ht.objectGetPath=function(d,w){for(var h=w.split("/").slice(1),S;typeof(S=h.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in d))return;d=d[E]}return d};function p(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}ht.encodePath=function(d){return d.map(p).join("")},ht.getDecimalPlaces=function(d){var w=0;if(isNaN(d))return w;typeof d!="number"&&(d=Number(d));var h=d.toString().split("e");if(h.length===2){if(h[1][0]!=="-")return w;w=Number(h[1].slice(1))}var S=h[0].split(".");return S.length===2&&(w+=S[1].length),w},ht.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var b=ht.resolveUrl=function(d,w){const h=new URL(w,new URL(d,"resolve://"));if(h.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=h;return S+E+R}return h.toString()};return ht}var nc,Rv;function r2(){if(Rv)return nc;Rv=1;var e=Fn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=i.validators={};s.type=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=Array.isArray(p.type)?p.type:[p.type];if(!w.some(this.testType.bind(this,g,p,b,x))){var h=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});d.addError({name:"type",argument:h,message:"is not of a type(s) "+h})}return d};function a(v,g,p,b,x){var d=g.throwError,w=g.throwAll;g.throwError=!1,g.throwAll=!1;var h=this.validateSchema(v,x,g,p);return g.throwError=d,g.throwAll=w,!h.valid&&b instanceof Function&&b(h),h.valid}s.anyOf=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=new t(g,p,b,x);if(!Array.isArray(p.anyOf))throw new r("anyOf must be an array");if(!p.anyOf.some(a.bind(this,g,b,x,function(S){w.importErrors(S)}))){var h=p.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});b.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},s.allOf=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.allOf))throw new r("allOf must be an array");var d=new t(g,p,b,x),w=this;return p.allOf.forEach(function(h,S){var E=w.validateSchema(g,h,b,x);if(!E.valid){var R=h.$id||h.id,O=R||h.title&&JSON.stringify(h.title)||h.$ref&&"<"+h.$ref+">"||"[subschema "+S+"]";d.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),d.importErrors(E)}}),d},s.oneOf=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.oneOf))throw new r("oneOf must be an array");var d=new t(g,p,b,x),w=new t(g,p,b,x),h=p.oneOf.filter(a.bind(this,g,b,x,function(E){w.importErrors(E)})).length,S=p.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return h!==1&&(b.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(g,p,b,x){if(g===void 0)return null;if(!e.isSchema(p.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,g,b,x,null,p.if),w=new t(g,p,b,x),h;if(d){if(p.then===void 0)return;if(!e.isSchema(p.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(g,p.then,b,x.makeChild(p.then)),w.importErrors(h)}else{if(p.else===void 0)return;if(!e.isSchema(p.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(g,p.else,b,x.makeChild(p.else)),w.importErrors(h)}return w};function l(v,g){if(Object.hasOwnProperty.call(v,g))return v[g];if(g in v){for(;v=Object.getPrototypeOf(v);)if(Object.propertyIsEnumerable.call(v,g))return v[g]}}s.propertyNames=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.propertyNames!==void 0?p.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in g)if(l(g,h)!==void 0){var S=this.validateSchema(h,w,b,x.makeChild(w));d.importErrors(S)}return d}},s.properties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.properties||{};for(var h in w){var S=w[h];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(g,h,S,b,x);var E=l(g,h),R=this.validateSchema(E,S,b,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(v,g,p,b,x,d){if(this.types.object(v)&&!(g.properties&&g.properties[x]!==void 0))if(g.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=g.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(v,x,w,p,b);var h=this.validateSchema(v[x],w,p,b.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}s.patternProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.patternProperties||{};for(var h in g){var S=!0;for(var E in w){var R=w[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(h)){S=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(g,h,R,b,x);var k=this.validateSchema(g[h],R,b,x.makeChild(R,h));k.instance!==d.instance[h]&&(d.instance[h]=k.instance),d.importErrors(k)}}}S&&c.call(this,g,p,b,x,h,d)}return d}},s.additionalProperties=function(g,p,b,x){if(this.types.object(g)){if(p.patternProperties)return null;var d=new t(g,p,b,x);for(var w in g)c.call(this,g,p,b,x,w,d);return d}},s.minProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length>=p.minProperties||d.addError({name:"minProperties",argument:p.minProperties,message:"does not meet minimum property length of "+p.minProperties}),d}},s.maxProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length<=p.maxProperties||d.addError({name:"maxProperties",argument:p.maxProperties,message:"does not meet maximum property length of "+p.maxProperties}),d}},s.items=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.items!==void 0){var w=new t(g,p,b,x);return g.every(function(h,S){if(Array.isArray(p.items))var E=p.items[S]===void 0?p.additionalItems:p.items[S];else var E=p.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=d.validateSchema(h,E,b,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.contains!==void 0){if(!e.isSchema(p.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(g,p,b,x),h=g.some(function(S,E){var R=d.validateSchema(S,p.contains,b,x.makeChild(p.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:p.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMinimum&&p.exclusiveMinimum===!0?g>p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than "+p.minimum}):g>=p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than or equal to "+p.minimum}),d}},s.maximum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMaximum&&p.exclusiveMaximum===!0?g<p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than "+p.maximum}):g<=p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than or equal to "+p.maximum}),d}},s.exclusiveMinimum=function(g,p,b,x){if(typeof p.exclusiveMinimum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g>p.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:p.exclusiveMinimum,message:"must be strictly greater than "+p.exclusiveMinimum}),d}},s.exclusiveMaximum=function(g,p,b,x){if(typeof p.exclusiveMaximum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g<p.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:p.exclusiveMaximum,message:"must be strictly less than "+p.exclusiveMaximum}),d}};var f=function(g,p,b,x,d,w){if(this.types.number(g)){var h=p[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(g,p,b,x),E=e.getDecimalPlaces(g),R=e.getDecimalPlaces(h),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(g*k)%Math.round(h*k)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};s.multipleOf=function(g,p,b,x){return f.call(this,g,p,b,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(g,p,b,x){return f.call(this,g,p,b,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(g,p,b,x){var d=new t(g,p,b,x);return g===void 0&&p.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(g)&&Array.isArray(p.required)&&p.required.forEach(function(w){l(g,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},s.pattern=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=p.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return g.match(h)||d.addError({name:"pattern",argument:p.pattern,message:"does not match pattern "+JSON.stringify(p.pattern.toString())}),d}},s.format=function(g,p,b,x){if(g!==void 0){var d=new t(g,p,b,x);return!d.disableFormat&&!e.isFormat(g,p.format,this)&&d.addError({name:"format",argument:p.format,message:"does not conform to the "+JSON.stringify(p.format)+" format"}),d}},s.minLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h>=p.minLength||d.addError({name:"minLength",argument:p.minLength,message:"does not meet minimum length of "+p.minLength}),d}},s.maxLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h<=p.maxLength||d.addError({name:"maxLength",argument:p.maxLength,message:"does not meet maximum length of "+p.maxLength}),d}},s.minItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length>=p.minItems||d.addError({name:"minItems",argument:p.minItems,message:"does not meet minimum length of "+p.minItems}),d}},s.maxItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length<=p.maxItems||d.addError({name:"maxItems",argument:p.maxItems,message:"does not meet maximum length of "+p.maxItems}),d}};function m(v,g,p){var b,x=p.length;for(b=g+1,x;b<x;b++)if(e.deepCompareStrict(v,p[b]))return!1;return!0}return s.uniqueItems=function(g,p,b,x){if(p.uniqueItems===!0&&this.types.array(g)){var d=new t(g,p,b,x);return g.every(m)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x);for(var w in p.dependencies)if(g[w]!==void 0){var h=p.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){g[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(g,h,b,S);d.instance!==E.instance&&(d.instance=E.instance),E&&E.errors.length&&(d.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),d.importErrors(E))}}return d}},s.enum=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.enum))throw new r("enum expects an array",p);var d=new t(g,p,b,x);return p.enum.some(e.deepCompareStrict.bind(null,g))||d.addError({name:"enum",argument:p.enum,message:"is not one of enum values: "+p.enum.map(String).join(",")}),d},s.const=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x);return e.deepCompareStrict(p.const,g)||d.addError({name:"const",argument:p.const,message:"does not exactly match expected constant: "+p.const}),d},s.not=s.disallow=function(g,p,b,x){var d=this;if(g===void 0)return null;var w=new t(g,p,b,x),h=p.not||p.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(g,p,b,x,S)){var E=S&&(S.$id||S.id),R=E||S;w.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),w):null},nc=i,nc}var ta={},Pv;function kc(){if(Pv)return ta;Pv=1;var e=Fn();ta.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return ta.scan=function(i,s){function a(v,g){if(!g||typeof g!="object")return;if(g.$ref){let d=e.resolveUrl(v,g.$ref);m[d]=m[d]?m[d]+1:0;return}var p=g.$id||g.id;let b=e.resolveUrl(v,p);var x=p?b:v;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],g))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=g,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=g)}l(x+"/items",Array.isArray(g.items)?g.items:[g.items]),l(x+"/extends",Array.isArray(g.extends)?g.extends:[g.extends]),a(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),a(x+"/additionalProperties",g.additionalProperties),c(x+"/definitions",g.definitions),c(x+"/patternProperties",g.patternProperties),c(x+"/dependencies",g.dependencies),l(x+"/disallow",g.disallow),l(x+"/allOf",g.allOf),l(x+"/anyOf",g.anyOf),l(x+"/oneOf",g.oneOf),a(x+"/not",g.not)}function l(v,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)a(v+"/"+p,g[p])}function c(v,g){if(!(!g||typeof g!="object"))for(var p in g)a(v+"/"+p,g[p])}var f={},m={};return a(i,s),new t(f,m)},ta}var ic,Cv;function n2(){if(Cv)return ic;Cv=1;var e=r2(),t=Fn(),r=kc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",f=function g(){this.customFormats=Object.create(g.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(v),this.attributes=Object.create(e.validators)};f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(p,b){var x=this;if(!p)return null;var d=r(b||c,p),w=b||p.$id||p.id;for(var h in d.id)this.schemas[h]=d.id[h];for(var h in d.ref)this.unresolvedRefs.push(h);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(p,b){if(Array.isArray(b))for(var x=0;x<b.length;x++)this.addSubSchema(p,b[x])},f.prototype.addSubSchemaObject=function(p,b){if(!(!b||typeof b!="object"))for(var x in b)this.addSubSchema(p,b[x])},f.prototype.setSchemas=function(p){this.schemas=p},f.prototype.getSchema=function(p){return this.schemas[p]},f.prototype.validate=function(p,b,x,d){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=b.$id||b.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new l(b,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=b);var S=r(h,b);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&p===void 0){var O=new i(p,b,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(p,b,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function m(g){var p=typeof g=="string"?g:g.$ref;return typeof p=="string"?p:!1}f.prototype.validateSchema=function(p,b,x,d){var w=new i(p,b,x,d);if(typeof b=="boolean")b===!0?b={}:b===!1&&(b={type:[]});else if(!b)throw new Error("schema is undefined");if(b.extends)if(Array.isArray(b.extends)){var h={schema:b,ctx:d};b.extends.forEach(this.schemaTraverser.bind(this,h)),b=h.schema,h.schema=null,h.ctx=null,h=null}else b=t.deepMerge(b,this.superResolve(b.extends,d));var S=m(b);if(S){var E=this.resolve(b,S,d),R=new l(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(p,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in b)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var B=null,M=this.attributes[k];if(M)B=M.call(this,p,b,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,b);B&&w.importErrors(B)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,p,b,x,d);w.instance=F}return w},f.prototype.schemaTraverser=function(p,b){p.schema=t.deepMerge(p.schema,this.superResolve(b,p.ctx))},f.prototype.superResolve=function(p,b){var x=m(p);return x?this.resolve(p,x,b).subschema:p},f.prototype.resolve=function(p,b,x){if(b=x.resolve(b),x.schemas[b])return{subschema:x.schemas[b],switchSchema:b};let w=new URL(b,"thismessage::/").hash;var h=w&&w.length&&b.substr(0,b.length-w.length);if(!h||!x.schemas[h])throw new a("no such schema <"+b+">",p);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+h+">",p);return{subschema:S,switchSchema:b}},f.prototype.testType=function(p,b,x,d,w){if(w!==void 0){if(w===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,p);if(w&&typeof w=="object"){var h=this.validateSchema(p,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var v=f.prototype.types={};return v.string=function(p){return typeof p=="string"},v.number=function(p){return typeof p=="number"&&isFinite(p)},v.integer=function(p){return typeof p=="number"&&p%1===0},v.boolean=function(p){return typeof p=="boolean"},v.array=function(p){return Array.isArray(p)},v.null=function(p){return p===null},v.date=function(p){return p instanceof Date},v.any=function(p){return!0},v.object=function(p){return p&&typeof p=="object"&&!Array.isArray(p)&&!(p instanceof Date)},ic=f,ic}var kv;function i2(){if(kv)return xr;kv=1;var e=xr.Validator=n2();return xr.ValidatorResult=Fn().ValidatorResult,xr.ValidatorResultError=Fn().ValidatorResultError,xr.ValidationError=Fn().ValidationError,xr.SchemaError=Fn().SchemaError,xr.SchemaScanResult=kc().SchemaScanResult,xr.scan=kc().scan,xr.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},xr}var o2=i2();const p0=(e,t,r)=>{const i=e instanceof RegExp?$v(e,r):e,s=t instanceof RegExp?$v(t,r):t,a=i!==null&&s!=null&&s2(i,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+s.length)}},$v=(e,t)=>{const r=t.match(e);return r?r[0]:null},s2=(e,t,r)=>{let i,s,a,l,c,f=r.indexOf(e),m=r.indexOf(t,f+1),v=f;if(f>=0&&m>0){if(e===t)return[f,m];for(i=[],a=r.length;v>=0&&!c;){if(v===f)i.push(v),f=r.indexOf(e,v+1);else if(i.length===1){const g=i.pop();g!==void 0&&(c=[g,m])}else s=i.pop(),s!==void 0&&s<a&&(a=s,l=m),m=r.indexOf(t,v+1);v=f<m&&f>=0?f:m}i.length&&l!==void 0&&(c=[a,l])}return c},h0="\0SLASH"+Math.random()+"\0",g0="\0OPEN"+Math.random()+"\0",Rf="\0CLOSE"+Math.random()+"\0",v0="\0COMMA"+Math.random()+"\0",m0="\0PERIOD"+Math.random()+"\0",a2=new RegExp(h0,"g"),u2=new RegExp(g0,"g"),l2=new RegExp(Rf,"g"),c2=new RegExp(v0,"g"),f2=new RegExp(m0,"g"),d2=/\\\\/g,p2=/\\{/g,h2=/\\}/g,g2=/\\,/g,v2=/\\./g;function oc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function m2(e){return e.replace(d2,h0).replace(p2,g0).replace(h2,Rf).replace(g2,v0).replace(v2,m0)}function y2(e){return e.replace(a2,"\\").replace(u2,"{").replace(l2,"}").replace(c2,",").replace(f2,".")}function y0(e){if(!e)return[""];const t=[],r=p0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,l=i.split(",");l[l.length-1]+="{"+s+"}";const c=y0(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function b2(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),yo(m2(e),!0).map(y2)):[]}function w2(e){return"{"+e+"}"}function x2(e){return/^-?0\d/.test(e)}function S2(e,t){return e<=t}function E2(e,t){return e>=t}function yo(e,t){const r=[],i=p0("{","}",e);if(!i)return[e];const s=i.pre,a=i.post.length?yo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let l=0;l<a.length;l++){const c=s+"{"+i.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||c,m=i.body.indexOf(",")>=0;if(!f&&!m)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Rf+i.post,yo(e)):[e];let v;if(f)v=i.body.split(/\.\./);else if(v=y0(i.body),v.length===1&&v[0]!==void 0&&(v=yo(v[0],!1).map(w2),v.length===1))return a.map(p=>i.pre+v[0]+p);let g;if(f&&v[0]!==void 0&&v[1]!==void 0){const p=oc(v[0]),b=oc(v[1]),x=Math.max(v[0].length,v[1].length);let d=v.length===3&&v[2]!==void 0?Math.abs(oc(v[2])):1,w=S2;b<p&&(d*=-1,w=E2);const S=v.some(x2);g=[];for(let E=p;w(E,b);E+=d){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}g.push(R)}}else{g=[];for(let p=0;p<v.length;p++)g.push.apply(g,yo(v[p],!1))}for(let p=0;p<g.length;p++)for(let b=0;b<a.length;b++){const x=s+g[p]+a[b];(!t||f||x)&&r.push(x)}}return r}const _2=1024*64,Ta=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>_2)throw new TypeError("pattern is too long")},O2={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},po=e=>e.replace(/[[\]\\-]/g,"\\$&"),A2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Iv=e=>e.join(""),T2=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,l=!1,c=!1,f=!1,m=!1,v=r,g="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){m=!0,a++;continue}if(d==="]"&&l&&!f){v=a+1;break}if(l=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(O2))if(e.startsWith(w,a)){if(g)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(h):i.push(h),c=c||S;continue e}}if(f=!1,g){d>g?i.push(po(g)+"-"+po(d)):d===g&&i.push(po(d)),g="",a++;continue}if(e.startsWith("-]",a+1)){i.push(po(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){g=d,a+=2;continue}i.push(po(d)),a++}if(v<a)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!m){const d=i[0].length===2?i[0].slice(-1):i[0];return[A2(d),!1,v-r,!1]}const p="["+(m?"^":"")+Iv(i)+"]",b="["+(m?"":"^")+Iv(s)+"]";return[i.length&&s.length?"("+p+"|"+b+")":i.length?p:b,c,v-r,!0]},bo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),R2=new Set(["!","?","+","*","@"]),Lv=e=>R2.has(e),P2="(?!(?:^|/)\\.\\.?(?:$|/))",ra="(?!\\.)",C2=new Set(["[","."]),k2=new Set(["..","."]),$2=new Set("().*{}+?[]^$\\!"),I2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Pf="[^/]",Mv=Pf+"*?",Fv=Pf+"+?";var at,ct,qr,He,nt,fn,Dn,dn,Er,Nn,Mo,qn,b0,gn,pa,$c,w0;const Tt=class Tt{constructor(t,r,i={}){xt(this,qn);me(this,"type");xt(this,at);xt(this,ct);xt(this,qr,!1);xt(this,He,[]);xt(this,nt);xt(this,fn);xt(this,Dn);xt(this,dn,!1);xt(this,Er);xt(this,Nn);xt(this,Mo,!1);this.type=t,t&&Ye(this,ct,!0),Ye(this,nt,r),Ye(this,at,re(this,nt)?re(re(this,nt),at):this),Ye(this,Er,re(this,at)===this?i:re(re(this,at),Er)),Ye(this,Dn,re(this,at)===this?[]:re(re(this,at),Dn)),t==="!"&&!re(re(this,at),dn)&&re(this,Dn).push(this),Ye(this,fn,re(this,nt)?re(re(this,nt),He).length:0)}get hasMagic(){if(re(this,ct)!==void 0)return re(this,ct);for(const t of re(this,He))if(typeof t!="string"&&(t.type||t.hasMagic))return Ye(this,ct,!0);return re(this,ct)}toString(){return re(this,Nn)!==void 0?re(this,Nn):this.type?Ye(this,Nn,this.type+"("+re(this,He).map(t=>String(t)).join("|")+")"):Ye(this,Nn,re(this,He).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Tt&&re(r,nt)===this))throw new Error("invalid part: "+r);re(this,He).push(r)}}toJSON(){var r;const t=this.type===null?re(this,He).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,He).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,at)||re(re(this,at),dn)&&((r=re(this,nt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,at)===this)return!0;if(!((r=re(this,nt))!=null&&r.isStart()))return!1;if(re(this,fn)===0)return!0;const t=re(this,nt);for(let i=0;i<re(this,fn);i++){const s=re(t,He)[i];if(!(s instanceof Tt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(re(this,at)===this||((r=re(this,nt))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,nt))!=null&&i.isEnd()))return!1;if(!this.type)return(s=re(this,nt))==null?void 0:s.isEnd();const t=re(this,nt)?re(re(this,nt),He).length:0;return re(this,fn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Tt(this.type,t);for(const i of re(this,He))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Tt(null,void 0,r);return $e(s=Tt,gn,pa).call(s,t,i,0,r),i}toMMPattern(){if(this!==re(this,at))return re(this,at).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||re(this,ct)||re(this,Er).nocase&&!re(this,Er).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Er).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Er)}toRegExpSource(t){var f;const r=t??!!re(this,Er).dot;if(re(this,at)===this&&$e(this,qn,b0).call(this),!this.type){const m=this.isStart()&&this.isEnd(),v=re(this,He).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?$e(E=Tt,gn,w0).call(E,x,re(this,ct),m):x.toRegExpSource(t);return Ye(this,ct,re(this,ct)||h),Ye(this,qr,re(this,qr)||S),d}).join("");let g="";if(this.isStart()&&typeof re(this,He)[0]=="string"&&!(re(this,He).length===1&&k2.has(re(this,He)[0]))){const d=C2,w=r&&d.has(v.charAt(0))||v.startsWith("\\.")&&d.has(v.charAt(2))||v.startsWith("\\.\\.")&&d.has(v.charAt(4)),h=!r&&!t&&d.has(v.charAt(0));g=w?P2:h?ra:""}let p="";return this.isEnd()&&re(re(this,at),dn)&&((f=re(this,nt))==null?void 0:f.type)==="!"&&(p="(?:$|\\/)"),[g+v+p,bo(v),Ye(this,ct,!!re(this,ct)),re(this,qr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,qn,$c).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const m=this.toString();return Ye(this,He,[m]),this.type=null,Ye(this,ct,void 0),[m,bo(this.toString()),!1,!1]}let l=!i||t||r||!ra?"":$e(this,qn,$c).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,Mo))c=(this.isStart()&&!r?ra:"")+Fv;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ra:"")+Mv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+m}return[c,bo(a),Ye(this,ct,!!re(this,ct)),re(this,qr)]}};at=new WeakMap,ct=new WeakMap,qr=new WeakMap,He=new WeakMap,nt=new WeakMap,fn=new WeakMap,Dn=new WeakMap,dn=new WeakMap,Er=new WeakMap,Nn=new WeakMap,Mo=new WeakMap,qn=new WeakSet,b0=function(){if(this!==re(this,at))throw new Error("should only call on root");if(re(this,dn))return this;this.toString(),Ye(this,dn,!0);let t;for(;t=re(this,Dn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,nt);for(;i;){for(let s=re(r,fn)+1;!i.type&&s<re(i,He).length;s++)for(const a of re(t,He)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(i,He)[s])}r=i,i=re(r,nt)}}return this},gn=new WeakSet,pa=function(t,r,i,s){var b,x;let a=!1,l=!1,c=-1,f=!1;if(r.type===null){let d=i,w="";for(;d<t.length;){const h=t.charAt(d++);if(a||h==="\\"){a=!a,w+=h;continue}if(l){d===c+1?(h==="^"||h==="!")&&(f=!0):h==="]"&&!(d===c+2&&f)&&(l=!1),w+=h;continue}else if(h==="["){l=!0,c=d,f=!1,w+=h;continue}if(!s.noext&&Lv(h)&&t.charAt(d)==="("){r.push(w),w="";const S=new Tt(h,r);d=$e(b=Tt,gn,pa).call(b,t,S,d,s),r.push(S);continue}w+=h}return r.push(w),d}let m=i+1,v=new Tt(null,r);const g=[];let p="";for(;m<t.length;){const d=t.charAt(m++);if(a||d==="\\"){a=!a,p+=d;continue}if(l){m===c+1?(d==="^"||d==="!")&&(f=!0):d==="]"&&!(m===c+2&&f)&&(l=!1),p+=d;continue}else if(d==="["){l=!0,c=m,f=!1,p+=d;continue}if(Lv(d)&&t.charAt(m)==="("){v.push(p),p="";const w=new Tt(d,v);v.push(w),m=$e(x=Tt,gn,pa).call(x,t,w,m,s);continue}if(d==="|"){v.push(p),p="",g.push(v),v=new Tt(null,r);continue}if(d===")")return p===""&&re(r,He).length===0&&Ye(r,Mo,!0),v.push(p),p="",r.push(...g,v),m;p+=d}return r.type=null,Ye(r,ct,void 0),Ye(r,He,[t.substring(i-1)]),m},$c=function(t){return re(this,He).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,l]=r.toRegExpSource(t);return Ye(this,qr,re(this,qr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},w0=function(t,r,i=!1){let s=!1,a="",l=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(s){s=!1,a+=($2.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(f==="["){const[m,v,g,p]=T2(t,c);if(g){a+=m,l=l||v,c+=g-1,r=r||p;continue}}if(f==="*"){i&&t==="*"?a+=Fv:a+=Mv,r=!0;continue}if(f==="?"){a+=Pf,r=!0;continue}a+=I2(f)}return[a,bo(t),!!r,l]},xt(Tt,gn);let Ra=Tt;const L2=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Et=(e,t,r={})=>(Ta(t),!r.nocomment&&t.charAt(0)==="#"?!1:new qa(t,r).match(e)),M2=/^\*+([^+@!?\*\[\(]*)$/,F2=e=>t=>!t.startsWith(".")&&t.endsWith(e),D2=e=>t=>t.endsWith(e),N2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),j2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),z2=/^\*+\.\*+$/,W2=e=>!e.startsWith(".")&&e.includes("."),B2=e=>e!=="."&&e!==".."&&e.includes("."),U2=/^\.\*+$/,H2=e=>e!=="."&&e!==".."&&e.startsWith("."),q2=/^\*+$/,Z2=e=>e.length!==0&&!e.startsWith("."),G2=e=>e.length!==0&&e!=="."&&e!=="..",K2=/^\?+([^+@!?\*\[\(]*)?$/,V2=([e,t=""])=>{const r=x0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},X2=([e,t=""])=>{const r=S0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},Y2=([e,t=""])=>{const r=S0([e]);return t?i=>r(i)&&i.endsWith(t):r},J2=([e,t=""])=>{const r=x0([e]);return t?i=>r(i)&&i.endsWith(t):r},x0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},S0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},E0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Dv={win32:{sep:"\\"},posix:{sep:"/"}},Q2=E0==="win32"?Dv.win32.sep:Dv.posix.sep;Et.sep=Q2;const nr=Symbol("globstar **");Et.GLOBSTAR=nr;const eL="[^/]",tL=eL+"*?",rL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",nL="(?:(?!(?:\\/|^)\\.).)*?",iL=(e,t={})=>r=>Et(r,e,t);Et.filter=iL;const rr=(e,t={})=>Object.assign({},e,t),oL=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Et;const t=Et;return Object.assign((i,s,a={})=>t(i,s,rr(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,rr(e,a))}static defaults(s){return t.defaults(rr(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,l={}){super(s,a,rr(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,rr(e,a))}},unescape:(i,s={})=>t.unescape(i,rr(e,s)),escape:(i,s={})=>t.escape(i,rr(e,s)),filter:(i,s={})=>t.filter(i,rr(e,s)),defaults:i=>t.defaults(rr(e,i)),makeRe:(i,s={})=>t.makeRe(i,rr(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,rr(e,s)),match:(i,s,a={})=>t.match(i,s,rr(e,a)),sep:t.sep,GLOBSTAR:nr})};Et.defaults=oL;const _0=(e,t={})=>(Ta(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:b2(e));Et.braceExpand=_0;const sL=(e,t={})=>new qa(e,t).makeRe();Et.makeRe=sL;const aL=(e,t,r={})=>{const i=new qa(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};Et.match=aL;const Nv=/[?*]|[+@!]\(.*?\)|\[|\]/,uL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class qa{constructor(t,r={}){me(this,"options");me(this,"set");me(this,"pattern");me(this,"windowsPathsNoEscape");me(this,"nonegate");me(this,"negate");me(this,"comment");me(this,"empty");me(this,"preserveMultipleSlashes");me(this,"partial");me(this,"globSet");me(this,"globParts");me(this,"nocase");me(this,"isWindows");me(this,"platform");me(this,"windowsNoMagicRoot");me(this,"regexp");Ta(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||E0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!Nv.test(a[2]))&&!Nv.test(a[3]),m=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(v=>this.parse(v))];if(m)return[a[0],...a.slice(1).map(v=>this.parse(v))]}return a.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let s=0;s<t[i].length;s++)t[i][s]==="**"&&(t[i][s]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let s=i;for(;r[s+1]==="**";)s++;s!==i&&r.splice(i,s-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,s)=>{const a=i[i.length-1];return s==="**"&&a==="**"?i:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(s),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const s=t[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let l=s;for(;i[l+1]==="**";)l++;l>s&&i.splice(s+1,l-s);let c=i[s+1];const f=i[s+2],m=i[s+3];if(c!==".."||!f||f==="."||f===".."||!m||m==="."||m==="..")continue;r=!0,i.splice(s,1);const v=i.slice(0);v[s]="**",t.push(v),s--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const l=i[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,l=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])l.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])l.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])l.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),s++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const s=this.options;if(this.isWindows){const d=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!d&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),h=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!h&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=w?3:d?0:void 0,R=S?3:h?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,f=t.length,m=r.length;l<f&&c<m;l++,c++){this.debug("matchOne loop");var v=r[c],g=t[l];if(this.debug(r,v,g),v===!1)return!1;if(v===nr){this.debug("GLOBSTAR",[r,v,g]);var p=l,b=c+1;if(b===m){for(this.debug("** at the end");l<f;l++)if(t[l]==="."||t[l]===".."||!s.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<f;){var x=t[p];if(this.debug(`
|
|
206
|
+
globstar while`,t,p,r,b,x),this.matchOne(t.slice(p),r.slice(b),i))return this.debug("globstar found match!",p,f,x),!0;if(x==="."||x===".."||!s.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,p,r,b);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(i&&(this.debug(`
|
|
207
|
+
>>> no match, partial?`,t,p,r,b),p===f))}let d;if(typeof v=="string"?(d=g===v,this.debug("string match",v,g,d)):(d=v.test(g),this.debug("pattern match",v,g,d)),!d)return!1}if(l===f&&c===m)return!0;if(l===f)return i;if(c===m)return l===f-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return _0(this.pattern,this.options)}parse(t){Ta(t);const r=this.options;if(t==="**")return nr;if(t==="")return"";let i,s=null;(i=t.match(q2))?s=r.dot?G2:Z2:(i=t.match(M2))?s=(r.nocase?r.dot?j2:N2:r.dot?D2:F2)(i[1]):(i=t.match(K2))?s=(r.nocase?r.dot?X2:V2:r.dot?Y2:J2)(i):(i=t.match(z2))?s=r.dot?B2:W2:(i=t.match(U2))&&(s=H2);const a=Ra.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?tL:r.dot?rL:nL,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const m=f.map(v=>{if(v instanceof RegExp)for(const g of v.flags.split(""))s.add(g);return typeof v=="string"?uL(v):v===nr?nr:v._src});return m.forEach((v,g)=>{const p=m[g+1],b=m[g-1];v!==nr||b===nr||(b===void 0?p!==void 0&&p!==nr?m[g+1]="(?:\\/|"+i+"\\/)?"+p:m[g]=i:p===void 0?m[g-1]=b+"(?:\\/|"+i+")?":p!==nr&&(m[g-1]=b+"(?:\\/|\\/"+i+"\\/)"+p,m[g+1]=nr))}),m.filter(v=>v!==nr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let l=s[s.length-1];if(!l)for(let c=s.length-2;!l&&c>=0;c--)l=s[c];for(let c=0;c<a.length;c++){const f=a[c];let m=s;if(i.matchBase&&f.length===1&&(m=[l]),this.matchOne(m,f,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Et.defaults(t).Minimatch}}Et.AST=Ra;Et.Minimatch=qa;Et.escape=L2;Et.unescape=bo;const Lo="/$shared",lL={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function O0(e){const t=Object.entries(lL).find(([r])=>Et(e,r));return t==null?void 0:t[1]}function Za(e){var i;const t=(i=O0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Lo}/`,"Shared/");Cf({name:r,content:t,asText:typeof t=="string"})}async function cL(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Me(`${Lo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){A0(r)&&Za(`${Lo}/${t}`)}}function Ho({path:e,createIfNotExists:t=!1}){const r=`${Lo}/${e}`;return Me(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=O0(e);let a=i;if(!s)return a;if(typeof a=="string")try{switch(s.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(s.schema&&!new o2.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(A0(i)&&t){const s=fL(i,e);Zy.next({message:s,kind:"warning"}),Za(r)}throw i})}function A0(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 fL(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 dL(e){return Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function pL(e){return Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const T0=()=>{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 hL(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Me(it,{method:"POST",body:JSON.stringify({verb:bn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const l=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:l:s.webServerHTTPPort?l:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),T0()}}async function R0(e){return await Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function gL(...e){return(await Promise.all(e.map(i=>R0({root:i,verb:bn.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:l})=>({name:s,type:l,date:a,path:`${l}/${s}`}))).flat()}function vL(e,t={}){const{sanitize:r=!0}=t;return Me(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:rt.entries(i.components).map(([a,l])=>{const c=a,{resolvedName:f}=l.type;if(f==="WebformLoader"){const m=Bc.generate();s.set(a,m),a=m}return[a,l,c]}).reduce((a,[l,c,f])=>{var m;return c.nodes&&(c.nodes=c.nodes.map(v=>s.get(v)||v)),c.linkedNodes&&(c.linkedNodes=rt.entries(c.linkedNodes).reduce((v,[g,p])=>({...v,[g]:s.get(p)||p}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=s.get(v.loader)||v.loader),v))),{...a,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function mL(e){return Me(it,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ft.METHOD,ft.CLASS].includes(t.type)?Ha(t.content):t.content}))}function yL(e){return e.type==="folder"?Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function bL(e){return e.type==="folder"?(await Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function wL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function xL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function SL(e){return(await Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function EL(...e){return await Me(it,{method:"POST",body:JSON.stringify({verb:bn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function _L(e){const t=await Me("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function OL(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function AL(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,i=await(await fetch(t)).text(),{supported:s}=JSON.parse(i);return s}catch{return[]}}async function TL({name:e,path:t="",root:r="root",asText:i=!1}){return Me(it,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function RL(e={}){try{return await Ho({path:"shared_datasources.json",...e})}catch{return{}}}async function PL(e={}){try{return await Ho({path:"shared_app_events.json",...e})}catch{return[]}}async function CL(e={}){try{return await Ho({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function kL(e={}){try{return await Ho({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function $L(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function IL(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const LL=Af(),ML=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return LL(async()=>(await Me(it,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},FL=Af(),DL=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return FL(async()=>(await Me(it,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Cf=async e=>{const t=await Me(it,{method:"POST",body:JSON.stringify({...e,verb:bn.SET_FILE_CONTENT,root:Ef.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Of(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},NL=async e=>await Cf({name:"crafted_components.json",path:hn.WEBFORMS,content:e});function jL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function zL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function WL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function BL(e){return Me(it,{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)?Ha(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&&Za(e.path),t})}function UL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function HL(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function qL(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 ZL(e){const t=HL(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),l=s.split(":")[1].trim();return{name:a,type:l}}),r=qL(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function GL(e,t){const i=e.split(".").pop();try{const s=await Me(it,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Ha(s.content);const{params:a,result:l}=ZL(s.parameters);return{...s,params:a,returns:l}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var P0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(P0||{});function KL(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function VL(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var C0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(C0||{}),k0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(k0||{}),$0=(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))($0||{}),I0=(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))(I0||{});const XL={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},YL={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=it;exports.AppLoader=Zk;exports.BaseCheckboxIcon=Py;exports.Checkbox=v$;exports.ControlledSwitch=fy;exports.DATASOURCE_THEMES=XL;exports.DatasourcesActions=qy;exports.DebuggerActions=Vy;exports.DefaultCheckboxIcon=Cy;exports.DesignerRequestVerb=bn;exports.Dialog=TA;exports.DialogBody=em;exports.EActivity=P0;exports.EDITOR=YL;exports.EIDENTIFIERS=$0;exports.ERROR_CODES=I0;exports.EWebFormStyleClassScope=C0;exports.EXT_API_PREFIX=Uo;exports.FileFolderType=ft;exports.FloatingTooltip=p$;exports.FolderRootPath=hn;exports.FolderRootType=Ef;exports.HTTPError=Cc;exports.HTTP_HANDLERS_TAB_PATH=Qy;exports.IPreemptive=Io;exports.IPublished=l0;exports.IPublishedRestScope=Tf;exports.IdentityProvider=M$;exports.Incase=aa;exports.IndentLines=hm;exports.LOCALIZATION_TAB_PATH=e0;exports.LogoSVG=Oy;exports.LspActions=Ky;exports.MAX_FILE_NAME_LENGTH=xf;exports.MODEL_TAB_PATH=EI;exports.Modal=Xk;exports.ModalCloseReason=pi;exports.ModalColor=zn;exports.ModalIcons=Sc;exports.ModalType=df;exports.Mutex=t0;exports.NameError=Sf;exports.Overlay=Qv;exports.PANEL_EXPANDED_HEIGHT=fa;exports.PANEL_INITIAL_HEIGHT=In;exports.Panel=g$;exports.Portal=Wv;exports.PublishOptions=VI;exports.ROLES_TAB_PATH=Yy;exports.RemoteDebuggerMode=_f;exports.SETTINGS_TAB_PATH=Jy;exports.SHARED_API_PREFIX=Lo;exports.SourceCodeDescriptor=k0;exports.Switcher=gm;exports.TabEventsActions=Gy;exports.Tip=Qm;exports.TipsProvider=eC;exports.Toast=LT;exports.Tooltip=Hk;exports.Tree=JT;exports.TreeIcon=cm;exports.TreeNode=Uc;exports.WebformActions=Hy;exports.WebformEventsActions=$o;exports.ZoomComponent=Qk;exports.ZoomLevel=Ty;exports._isArrayDatasource=HI;exports._isObjectDatasource=qI;exports.addAttributesToContent=YI;exports.addFolder=wL;exports.by=r0;exports.byId=PI;exports.byPath=CI;exports.callServerSideParser=t2;exports.checkUpdates=dL;exports.createFolder=jL;exports.datasourcesSubject=pI;exports.debuggerSubject=mI;exports.dropFile=bL;exports.dropFolder=SL;exports.exists=kI;exports.extractWebformName=AI;exports.generateUUID=JI;exports.getAppSettings=hL;exports.getCatalog=OL;exports.getDatasourceId=$I;exports.getDefaultAppSettings=T0;exports.getFile=mL;exports.getFileContent=TL;exports.getFileExtentionFromType=OI;exports.getFilenameAndTypeFromPath=_I;exports.getFilesInfo=EL;exports.getFolder=R0;exports.getFolders=gL;exports.getFunctionContent=GL;exports.getMonacoTheme=IL;exports.getNodeInfo=BL;exports.getSavedConditions=kL;exports.getSharedAppEvents=PL;exports.getSharedCSS=CL;exports.getSharedDatasources=RL;exports.getSharedResource=Ho;exports.getSupportedLanguages=AL;exports.getTypeFromExtension=Of;exports.getUserPrivileges=$L;exports.getWebForm=vL;exports.hasAttributesString=f0;exports.http=Me;exports.i18nSubject=bI;exports.initializeDefaultProjectFiles=cL;exports.installUpdates=pL;exports.isArrayDatasource=s0;exports.isDataClassMethod=FI;exports.isDataStoreMethod=MI;exports.isDateDatasource=ZI;exports.isEntity=BI;exports.isEntityDatasource=jI;exports.isEntityMethod=DI;exports.isEntitySelection=UI;exports.isEntitySelectionDatasource=zI;exports.isEntitySelectionMethod=NI;exports.isObjectAttribute=II;exports.isObjectDatasource=a0;exports.isRelatedAttribute=LI;exports.isRelatedEntitiesAttribute=i0;exports.isRelatedEntityAttribute=o0;exports.isScalarDatasource=u0;exports.isSimpleAttribute=n0;exports.isSimpleDatasource=WI;exports.loadDS=GI;exports.loadI18n=KI;exports.log=KL;exports.login=_L;exports.lspSubject=vI;exports.moveItem=WL;exports.outBy=TI;exports.outById=RI;exports.parseAttributes=XI;exports.queue=Af;exports.removeAttributesString=d0;exports.removeItem=zL;exports.renameFile=yL;exports.renameFolder=xL;exports.sanitizeContent=Ha;exports.sanitizeNameCY=QI;exports.saveContent=UL;exports.setCraftedComponents=NL;exports.setFileContent=Cf;exports.setSharedAppEvents=DL;exports.setSharedSources=ML;exports.stringifyAttributes=c0;exports.tabEventsSubject=gI;exports.tasksManagerSubject=yI;exports.toastSubject=Zy;exports.trackEvent=VL;exports.transformDates=e2;exports.tryCreateSharedResource=Za;exports.useDidMountEffect=m$;exports.useDoubleClick=j$;exports.useEnhancedState=eI;exports.useFeatureFlags=L$;exports.useForwardedRef=I$;exports.useHotkeys=P$;exports.useIdentity=F$;exports.useOutsideClick=C$;exports.usePrevious=k$;exports.useStateObject=D$;exports.useStateRef=$$;exports.useTip=Jm;exports.validateName=Xy;exports.validateServerSide=wI;exports.validateValue=xI;exports.webformEventsSubject=Aa;exports.webformSubject=hI;
|
|
256
208
|
//# sourceMappingURL=index.cjs.js.map
|