@ws-ui/shared 1.12.4 → 1.13.0-rc1
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/components/Grid.d.ts +26 -0
- package/dist/components/Image.d.ts +5 -0
- package/dist/components/Panel.d.ts +3 -2
- package/dist/components/SearchInput.d.ts +12 -0
- package/dist/components/ToolbarIcon/index.d.ts +2 -0
- package/dist/components/ToolbarIcon/interfaces.d.ts +21 -0
- package/dist/components/Tooltip.d.ts +7 -3
- package/dist/components/index.d.ts +4 -3
- package/dist/declarations/datasources/datasource.d.ts +393 -393
- package/dist/declarations/datasources/interfaces/catalog.d.ts +114 -114
- package/dist/declarations/datasources/methods.d.ts +110 -110
- package/dist/declarations/index.d.ts +11 -11
- package/dist/declarations/webform/webform.d.ts +304 -304
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/use-boolean.d.ts +5 -0
- package/dist/hooks/use-callback-ref.d.ts +1 -0
- package/dist/hooks/use-controllable-state.d.ts +7 -0
- package/dist/hooks/use-ds-change-renderer.d.ts +10 -0
- package/dist/hooks/use-ds-renderer.d.ts +7 -0
- package/dist/hooks/use-form-control-props.d.ts +15 -0
- package/dist/hooks/use-safe-layout-effect.d.ts +2 -0
- package/dist/hooks/use-update-effect.d.ts +2 -0
- package/dist/index.cjs.js +166 -115
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +25432 -14316
- package/dist/index.es.js.map +1 -1
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/studio-context.d.ts +7 -0
- package/dist/providers/toast-provider.d.ts +18 -0
- package/dist/shared.css +1 -1
- package/dist/types/adapter.d.ts +12 -0
- package/dist/types/explorer.d.ts +31 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/modal.d.ts +11 -4
- package/dist/types/roles.d.ts +111 -0
- package/dist/types/settings.d.ts +28 -0
- package/dist/types/webform-editor.d.ts +132 -1
- package/dist/types/welcome-tour.d.ts +3 -0
- package/dist/utils/catalog.d.ts +1 -0
- package/dist/utils/chakra-utils.d.ts +21 -0
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/explorer.d.ts +4 -1
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/roles.d.ts +54 -0
- package/dist/utils/webform-editor.d.ts +91 -0
- package/package.json +6 -6
- package/dist/components/Checkbox/index.d.ts +0 -16
- package/dist/components/ControlledSwitch.d.ts +0 -10
- package/dist/components/FloatingTooltip/index.d.ts +0 -11
- package/dist/components/Modal/Button.d.ts +0 -10
package/dist/index.cjs.js
CHANGED
|
@@ -1,157 +1,204 @@
|
|
|
1
|
-
"use strict";var DO=Object.defineProperty;var bh=e=>{throw TypeError(e)};var NO=(e,t,r)=>t in e?DO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ye=(e,t,r)=>NO(e,typeof t!="symbol"?t+"":t,r),Sl=(e,t,r)=>t.has(e)||bh("Cannot "+r);var Y=(e,t,r)=>(Sl(e,t,"read from private field"),r?r.call(e):t.get(e)),gt=(e,t,r)=>t.has(e)?bh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),je=(e,t,r,i)=>(Sl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(Sl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),W=require("react"),zo=require("react-dom"),tt=require("@ws-ui/icons"),pc=require("@emotion/react"),jO=require("re-resizable");function ev(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 $=ev(W),zO=ev(zo),tv=({children:e,container:t=document.body})=>zo.createPortal(e,t);var wh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},xh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Mt="top",or="bottom",sr="right",Ft="left",Hc="auto",Wo=[Mt,or,sr,Ft],Si="start",Co="end",WO="clippingParents",rv="viewport",Zi="popper",UO="reference",Sh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Co])},[]),nv=[].concat(Wo,[Hc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Co])},[]),BO="beforeRead",HO="read",qO="afterRead",ZO="beforeMain",GO="main",KO="afterMain",VO="beforeWrite",XO="write",YO="afterWrite",JO=[BO,HO,qO,ZO,GO,KO,VO,XO,YO];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hn(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QO(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)||!$r(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 eA(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)||!$r(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const tA={name:"applyStyles",enabled:!0,phase:"write",fn:QO,effect:eA,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var Un=Math.max,wa=Math.min,Ei=Math.round;function hc(){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 iv(){return!/^((?!chrome|android).)*safari/i.test(hc())}function _i(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&&Ei(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ei(i.height)/e.offsetHeight||1);var l=Hn(e)?Gt(e):window,c=l.visualViewport,f=!iv()&&r,m=(i.left+(f&&c?c.offsetLeft:0))/s,y=(i.top+(f&&c?c.offsetTop:0))/a,p=i.width/s,g=i.height/a;return{width:p,height:g,top:y,right:m+p,bottom:y+g,left:m,x:m,y}}function Zc(e){var t=_i(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function ov(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Xr(e){return Gt(e).getComputedStyle(e)}function rA(e){return["table","td","th"].indexOf($r(e))>=0}function xn(e){return((Hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ma(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||xn(e)}function Eh(e){return!ir(e)||Xr(e).position==="fixed"?null:e.offsetParent}function nA(e){var t=/firefox/i.test(hc()),r=/Trident/i.test(hc());if(r&&ir(e)){var i=Xr(e);if(i.position==="fixed")return null}var s=Ma(e);for(qc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf($r(s))<0;){var a=Xr(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 Uo(e){for(var t=Gt(e),r=Eh(e);r&&rA(r)&&Xr(r).position==="static";)r=Eh(r);return r&&($r(r)==="html"||$r(r)==="body"&&Xr(r).position==="static")?t:r||nA(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e,t,r){return Un(e,wa(t,r))}function iA(e,t,r){var i=Oo(e,t,r);return i>r?r:i}function sv(){return{top:0,right:0,bottom:0,left:0}}function av(e){return Object.assign({},sv(),e)}function uv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var oA=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,av(typeof t!="number"?t:uv(t,Wo))};function sA(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Cr(r.placement),f=Gc(c),m=[Ft,sr].indexOf(c)>=0,y=m?"height":"width";if(!(!a||!l)){var p=oA(s.padding,r),g=Zc(a),v=f==="y"?Mt:Ft,x=f==="y"?or:sr,d=r.rects.reference[y]+r.rects.reference[f]-l[f]-r.rects.popper[y],w=l[f]-r.rects.reference[f],h=Uo(a),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=p[v],O=S-g[y]-p[x],C=S/2-g[y]/2+E,U=Oo(R,C,O),M=f;r.modifiersData[i]=(t={},t[M]=U,t.centerOffset=U-C,t)}}function aA(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)||ov(t.elements.popper,s)&&(t.elements.arrow=s))}const uA={name:"arrow",enabled:!0,phase:"main",fn:sA,effect:aA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var lA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cA(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ei(r*s)/s||0,y:Ei(i*s)/s||0}}function _h(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,y=e.roundOffsets,p=e.isFixed,g=l.x,v=g===void 0?0:g,x=l.y,d=x===void 0?0:x,w=typeof y=="function"?y({x:v,y:d}):{x:v,y:d};v=w.x,d=w.y;var h=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=Ft,R=Mt,O=window;if(m){var C=Uo(r),U="clientHeight",M="clientWidth";if(C===Gt(r)&&(C=xn(r),Xr(C).position!=="static"&&c==="absolute"&&(U="scrollHeight",M="scrollWidth")),C=C,s===Mt||(s===Ft||s===sr)&&a===Co){R=or;var D=p&&C===O&&O.visualViewport?O.visualViewport.height:C[U];d-=D-i.height,d*=f?1:-1}if(s===Ft||(s===Mt||s===or)&&a===Co){E=sr;var q=p&&C===O&&O.visualViewport?O.visualViewport.width:C[M];v-=q-i.width,v*=f?1:-1}}var N=Object.assign({position:c},m&&lA),L=y===!0?cA({x:v,y:d},Gt(r)):{x:v,y:d};if(v=L.x,d=L.y,f){var B;return Object.assign({},N,(B={},B[R]=S?"0":"",B[E]=h?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+d+"px)":"translate3d("+v+"px, "+d+"px, 0)",B))}return Object.assign({},N,(t={},t[R]=S?d+"px":"",t[E]=h?v+"px":"",t.transform="",t))}function fA(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:Cr(t.placement),variation:Oi(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,_h(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,_h(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 dA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fA,data:{}};var zs={passive:!0};function pA(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=Gt(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(y){y.addEventListener("scroll",r.update,zs)}),c&&f.addEventListener("resize",r.update,zs),function(){a&&m.forEach(function(y){y.removeEventListener("scroll",r.update,zs)}),c&&f.removeEventListener("resize",r.update,zs)}}const hA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pA,data:{}};var gA={left:"right",right:"left",bottom:"top",top:"bottom"};function ua(e){return e.replace(/left|right|bottom|top/g,function(t){return gA[t]})}var mA={start:"end",end:"start"};function Oh(e){return e.replace(/start|end/g,function(t){return mA[t]})}function Kc(e){var t=Gt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Vc(e){return _i(xn(e)).left+Kc(e).scrollLeft}function vA(e,t){var r=Gt(e),i=xn(e),s=r.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,f=0;if(s){a=s.width,l=s.height;var m=iv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:l,x:c+Vc(e),y:f}}function yA(e){var t,r=xn(e),i=Kc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Un(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Un(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Vc(e),f=-i.scrollTop;return Xr(s||r).direction==="rtl"&&(c+=Un(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:c,y:f}}function Xc(e){var t=Xr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function lv(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:ir(e)&&Xc(e)?e:lv(Ma(e))}function Ao(e,t){var r;t===void 0&&(t=[]);var i=lv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gt(i),l=s?[a].concat(a.visualViewport||[],Xc(i)?i:[]):i,c=t.concat(l);return s?c:c.concat(Ao(Ma(l)))}function gc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bA(e,t){var r=_i(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ah(e,t,r){return t===rv?gc(vA(e,r)):Hn(t)?bA(t,r):gc(yA(xn(e)))}function wA(e){var t=Ao(Ma(e)),r=["absolute","fixed"].indexOf(Xr(e).position)>=0,i=r&&ir(e)?Uo(e):e;return Hn(i)?t.filter(function(s){return Hn(s)&&ov(s,i)&&$r(s)!=="body"}):[]}function xA(e,t,r,i){var s=t==="clippingParents"?wA(e):[].concat(t),a=[].concat(s,[r]),l=a[0],c=a.reduce(function(f,m){var y=Ah(e,m,i);return f.top=Un(y.top,f.top),f.right=wa(y.right,f.right),f.bottom=wa(y.bottom,f.bottom),f.left=Un(y.left,f.left),f},Ah(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 cv(e){var t=e.reference,r=e.element,i=e.placement,s=i?Cr(i):null,a=i?Oi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case Mt: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 Ft:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var m=s?Gc(s):null;if(m!=null){var y=m==="y"?"height":"width";switch(a){case Si:f[m]=f[m]-(t[y]/2-r[y]/2);break;case Co:f[m]=f[m]+(t[y]/2-r[y]/2);break}}return f}function ko(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?WO:c,m=r.rootBoundary,y=m===void 0?rv:m,p=r.elementContext,g=p===void 0?Zi:p,v=r.altBoundary,x=v===void 0?!1:v,d=r.padding,w=d===void 0?0:d,h=av(typeof w!="number"?w:uv(w,Wo)),S=g===Zi?UO:Zi,E=e.rects.popper,R=e.elements[x?S:g],O=xA(Hn(R)?R:R.contextElement||xn(e.elements.popper),f,y,l),C=_i(e.elements.reference),U=cv({reference:C,element:E,placement:s}),M=gc(Object.assign({},E,U)),D=g===Zi?M:C,q={top:O.top-D.top+h.top,bottom:D.bottom-O.bottom+h.bottom,left:O.left-D.left+h.left,right:D.right-O.right+h.right},N=e.modifiersData.offset;if(g===Zi&&N){var L=N[s];Object.keys(q).forEach(function(B){var Z=[sr,or].indexOf(B)>=0?1:-1,k=[Mt,or].indexOf(B)>=0?"y":"x";q[B]+=L[k]*Z})}return q}function SA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?nv:f,y=Oi(i),p=y?c?Sh:Sh.filter(function(x){return Oi(x)===y}):Wo,g=p.filter(function(x){return m.indexOf(x)>=0});g.length===0&&(g=p);var v=g.reduce(function(x,d){return x[d]=ko(e,{placement:d,boundary:s,rootBoundary:a,padding:l})[Cr(d)],x},{});return Object.keys(v).sort(function(x,d){return v[x]-v[d]})}function EA(e){if(Cr(e)===Hc)return[];var t=ua(e);return[Oh(e),t,Oh(t)]}function _A(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,y=r.boundary,p=r.rootBoundary,g=r.altBoundary,v=r.flipVariations,x=v===void 0?!0:v,d=r.allowedAutoPlacements,w=t.options.placement,h=Cr(w),S=h===w,E=f||(S||!x?[ua(w)]:EA(w)),R=[w].concat(E).reduce(function(ie,he){return ie.concat(Cr(he)===Hc?SA(t,{placement:he,boundary:y,rootBoundary:p,padding:m,flipVariations:x,allowedAutoPlacements:d}):he)},[]),O=t.rects.reference,C=t.rects.popper,U=new Map,M=!0,D=R[0],q=0;q<R.length;q++){var N=R[q],L=Cr(N),B=Oi(N)===Si,Z=[Mt,or].indexOf(L)>=0,k=Z?"width":"height",Q=ko(t,{placement:N,boundary:y,rootBoundary:p,altBoundary:g,padding:m}),J=Z?B?sr:Ft:B?or:Mt;O[k]>C[k]&&(J=ua(J));var re=ua(J),ce=[];if(a&&ce.push(Q[L]<=0),c&&ce.push(Q[J]<=0,Q[re]<=0),ce.every(function(ie){return ie})){D=N,M=!1;break}U.set(N,ce)}if(M)for(var G=x?3:1,te=function(he){var fe=R.find(function(ve){var xe=U.get(ve);if(xe)return xe.slice(0,he).every(function(Ae){return Ae})});if(fe)return D=fe,"break"},ne=G;ne>0;ne--){var ue=te(ne);if(ue==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}const OA={name:"flip",enabled:!0,phase:"main",fn:_A,requiresIfExists:["offset"],data:{_skip:!1}};function Th(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 Rh(e){return[Mt,sr,or,Ft].some(function(t){return e[t]>=0})}function AA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=ko(t,{elementContext:"reference"}),c=ko(t,{altBoundary:!0}),f=Th(l,i),m=Th(c,s,a),y=Rh(f),p=Rh(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:y,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":p})}const TA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AA};function RA(e,t,r){var i=Cr(e),s=[Ft,Mt].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,[Ft,sr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function PA(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=nv.reduce(function(y,p){return y[p]=RA(p,t.rects,a),y},{}),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 CA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PA};function kA(e){var t=e.state,r=e.name;t.modifiersData[r]=cv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const $A={name:"popperOffsets",enabled:!0,phase:"read",fn:kA,data:{}};function IA(e){return e==="x"?"y":"x"}function LA(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,y=r.altBoundary,p=r.padding,g=r.tether,v=g===void 0?!0:g,x=r.tetherOffset,d=x===void 0?0:x,w=ko(t,{boundary:f,rootBoundary:m,padding:p,altBoundary:y}),h=Cr(t.placement),S=Oi(t.placement),E=!S,R=Gc(h),O=IA(R),C=t.modifiersData.popperOffsets,U=t.rects.reference,M=t.rects.popper,D=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var B,Z=R==="y"?Mt:Ft,k=R==="y"?or:sr,Q=R==="y"?"height":"width",J=C[R],re=J+w[Z],ce=J-w[k],G=v?-M[Q]/2:0,te=S===Si?U[Q]:M[Q],ne=S===Si?-M[Q]:-U[Q],ue=t.elements.arrow,ie=v&&ue?Zc(ue):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sv(),fe=he[Z],ve=he[k],xe=Oo(0,U[Q],ie[Q]),Ae=E?U[Q]/2-G-xe-fe-q.mainAxis:te-xe-fe-q.mainAxis,_e=E?-U[Q]/2+G+xe+ve+q.mainAxis:ne+xe+ve+q.mainAxis,ot=t.elements.arrow&&Uo(t.elements.arrow),oe=ot?R==="y"?ot.clientTop||0:ot.clientLeft||0:0,ct=(B=N==null?void 0:N[R])!=null?B:0,Mr=J+Ae-ct-oe,bt=J+_e-ct,Yr=Oo(v?wa(re,Mr):re,J,v?Un(ce,bt):ce);C[R]=Yr,L[R]=Yr-J}if(c){var Vo,ar=R==="x"?Mt:Ft,Xo=R==="x"?or:sr,Fr=C[O],yr=O==="y"?"height":"width",Pt=Fr+w[ar],Jr=Fr-w[Xo],Qr=[Mt,Ft].indexOf(h)!==-1,Yo=(Vo=N==null?void 0:N[O])!=null?Vo:0,en=Qr?Pt:Fr-U[yr]-M[yr]-Yo+q.altAxis,Jo=Qr?Fr+U[yr]+M[yr]-Yo-q.altAxis:Jr,tn=v&&Qr?iA(en,Fr,Jo):Oo(v?en:Pt,Fr,v?Jo:Jr);C[O]=tn,L[O]=tn-Fr}t.modifiersData[i]=L}}const MA={name:"preventOverflow",enabled:!0,phase:"main",fn:LA,requiresIfExists:["offset"]};function FA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DA(e){return e===Gt(e)||!ir(e)?Kc(e):FA(e)}function NA(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,i=Ei(t.height)/e.offsetHeight||1;return r!==1||i!==1}function jA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&NA(t),a=xn(t),l=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&(($r(t)!=="body"||Xc(a))&&(c=DA(t)),ir(t)?(f=_i(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Vc(a))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function zA(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 WA(e){var t=zA(e);return JO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function UA(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 Ph={placement:"bottom",modifiers:[],strategy:"absolute"};function Ch(){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 HA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Ph:s;return function(c,f,m){m===void 0&&(m=a);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ph,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},p=[],g=!1,v={state:y,setOptions:function(h){var S=typeof h=="function"?h(y.options):h;d(),y.options=Object.assign({},a,y.options,S),y.scrollParents={reference:Hn(c)?Ao(c):c.contextElement?Ao(c.contextElement):[],popper:Ao(f)};var E=WA(BA([].concat(i,y.options.modifiers)));return y.orderedModifiers=E.filter(function(R){return R.enabled}),x(),v.update()},forceUpdate:function(){if(!g){var h=y.elements,S=h.reference,E=h.popper;if(Ch(S,E)){y.rects={reference:jA(S,Uo(E),y.options.strategy==="fixed"),popper:Zc(E)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(q){return y.modifiersData[q.name]=Object.assign({},q.data)});for(var R=0;R<y.orderedModifiers.length;R++){if(y.reset===!0){y.reset=!1,R=-1;continue}var O=y.orderedModifiers[R],C=O.fn,U=O.options,M=U===void 0?{}:U,D=O.name;typeof C=="function"&&(y=C({state:y,options:M,name:D,instance:v})||y)}}}},update:UA(function(){return new Promise(function(w){v.forceUpdate(),w(y)})}),destroy:function(){d(),g=!0}};if(!Ch(c,f))return v;v.setOptions(m).then(function(w){!g&&m.onFirstUpdate&&m.onFirstUpdate(w)});function x(){y.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:y,name:h,instance:v,options:E}),C=function(){};p.push(O||C)}})}function d(){p.forEach(function(w){return w()}),p=[]}return v}}var qA=[hA,$A,dA,tA,CA,OA,MA,uA,TA],ZA=HA({defaultModifiers:qA}),Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var El,kh;function GA(){if(kh)return El;kh=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 y;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!l.has(f.value[0]))return!1;for(y=a.entries();!(f=y.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(y=a.entries();!(f=y.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 El=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}},El}var KA=GA();const VA=fv(KA);var XA=[],dv=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||XA},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(v){var x=v.state,d=Object.keys(x.elements);zO.flushSync(function(){f({styles:wh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:wh(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),y=$.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[m,{name:"applyStyles",enabled:!1}])};return VA(s.current,g)?s.current||g:(s.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),p=$.useRef();return xh(function(){p.current&&p.current.setOptions(y)},[y]),xh(function(){if(!(t==null||r==null)){var g=i.createPopper||ZA,v=g(t,r,y);return p.current=v,function(){v.destroy(),p.current=null}}},[t,r,i.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const pv=e=>F.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),hv=W.forwardRef(({children:e,style:t,attributes:r},i)=>F.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})),YA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,l]=W.useState(null),{styles:c,attributes:f}=dv(e,a,{placement:t||"bottom-start"}),m=W.useCallback(()=>{s&&s()},[s]);return r?F.jsxs(tv,{children:[F.jsx(pv,{onClick:()=>m()}),F.jsx(hv,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var _l={exports:{}};/*!
|
|
1
|
+
"use strict";var bC=Object.defineProperty;var Yv=e=>{throw TypeError(e)};var yC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>yC(e,typeof t!="symbol"?t+"":t,r),Od=(e,t,r)=>t.has(e)||Yv("Cannot "+r);var le=(e,t,r)=>(Od(e,t,"read from private field"),r?r.call(e):t.get(e)),Ft=(e,t,r)=>t.has(e)?Yv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Qe=(e,t,r,n)=>(Od(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ee=(e,t,r)=>(Od(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),N=require("react"),En=require("react-dom"),Cf=require("@emotion/react");function My(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 V=My(N),wC=My(En),Dy=({children:e,container:t=document.body})=>En.createPortal(e,t);var Xv=function(t){return t.reduce(function(r,n){var i=n[0],s=n[1];return r[i]=s,r},{})},Jv=typeof window<"u"&&window.document&&window.document.createElement?V.useLayoutEffect:V.useEffect,cr="top",$r="bottom",jr="right",ur="left",pp="auto",Sa=[cr,$r,jr,ur],Mo="start",la="end",xC="clippingParents",Ly="viewport",bs="popper",SC="reference",Qv=Sa.reduce(function(e,t){return e.concat([t+"-"+Mo,t+"-"+la])},[]),zy=[].concat(Sa,[pp]).reduce(function(e,t){return e.concat([t,t+"-"+Mo,t+"-"+la])},[]),EC="beforeRead",_C="read",OC="afterRead",kC="beforeMain",AC="main",TC="afterMain",RC="beforeWrite",CC="write",IC="afterWrite",PC=[EC,_C,OC,kC,AC,TC,RC,CC,IC];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){var t=Er(e).Element;return e instanceof t||e instanceof Element}function zr(e){var t=Er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hp(e){if(typeof ShadowRoot>"u")return!1;var t=Er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},s=t.elements[r];!zr(s)||!Sn(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(l){var c=i[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function MC(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 i=t.elements[n],s=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(u,f){return u[f]="",u},{});!zr(i)||!Sn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}const DC={name:"applyStyles",enabled:!0,phase:"write",fn:NC,effect:MC,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var Fi=Math.max,Oc=Math.min,Do=Math.round;function If(){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 $y(){return!/^((?!chrome|android).)*safari/i.test(If())}function Lo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,s=1;t&&zr(e)&&(i=e.offsetWidth>0&&Do(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Do(n.height)/e.offsetHeight||1);var l=Wi(e)?Er(e):window,c=l.visualViewport,u=!$y()&&r,f=(n.left+(u&&c?c.offsetLeft:0))/i,g=(n.top+(u&&c?c.offsetTop:0))/s,p=n.width/i,h=n.height/s;return{width:p,height:h,top:g,right:f+p,bottom:g+h,left:f,x:f,y:g}}function gp(e){var t=Lo(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 jy(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&hp(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Bn(e){return Er(e).getComputedStyle(e)}function LC(e){return["table","td","th"].indexOf(Sn(e))>=0}function vi(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function qc(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(hp(e)?e.host:null)||vi(e)}function em(e){return!zr(e)||Bn(e).position==="fixed"?null:e.offsetParent}function zC(e){var t=/firefox/i.test(If()),r=/Trident/i.test(If());if(r&&zr(e)){var n=Bn(e);if(n.position==="fixed")return null}var i=qc(e);for(hp(i)&&(i=i.host);zr(i)&&["html","body"].indexOf(Sn(i))<0;){var s=Bn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ea(e){for(var t=Er(e),r=em(e);r&&LC(r)&&Bn(r).position==="static";)r=em(r);return r&&(Sn(r)==="html"||Sn(r)==="body"&&Bn(r).position==="static")?t:r||zC(e)||t}function vp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ra(e,t,r){return Fi(e,Oc(t,r))}function $C(e,t,r){var n=ra(e,t,r);return n>r?r:n}function Fy(){return{top:0,right:0,bottom:0,left:0}}function Hy(e){return Object.assign({},Fy(),e)}function By(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var jC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Hy(typeof t!="number"?t:By(t,Sa))};function FC(e){var t,r=e.state,n=e.name,i=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=wn(r.placement),u=vp(c),f=[ur,jr].indexOf(c)>=0,g=f?"height":"width";if(!(!s||!l)){var p=jC(i.padding,r),h=gp(s),b=u==="y"?cr:ur,S=u==="y"?$r:jr,v=r.rects.reference[g]+r.rects.reference[u]-l[u]-r.rects.popper[g],y=l[u]-r.rects.reference[u],m=Ea(s),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-y/2,O=p[b],_=w-h[g]-p[S],R=w/2-h[g]/2+x,H=ra(O,R,_),I=u;r.modifiersData[n]=(t={},t[I]=H,t.centerOffset=H-R,t)}}function HC(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||jy(t.elements.popper,i)&&(t.elements.arrow=i))}const BC={name:"arrow",enabled:!0,phase:"main",fn:FC,effect:HC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zo(e){return e.split("-")[1]}var WC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VC(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Do(r*i)/i||0,y:Do(n*i)/i||0}}function tm(e){var t,r=e.popper,n=e.popperRect,i=e.placement,s=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,g=e.roundOffsets,p=e.isFixed,h=l.x,b=h===void 0?0:h,S=l.y,v=S===void 0?0:S,y=typeof g=="function"?g({x:b,y:v}):{x:b,y:v};b=y.x,v=y.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=ur,O=cr,_=window;if(f){var R=Ea(r),H="clientHeight",I="clientWidth";if(R===Er(r)&&(R=vi(r),Bn(R).position!=="static"&&c==="absolute"&&(H="scrollHeight",I="scrollWidth")),R=R,i===cr||(i===ur||i===jr)&&s===la){O=$r;var $=p&&R===_&&_.visualViewport?_.visualViewport.height:R[H];v-=$-n.height,v*=u?1:-1}if(i===ur||(i===cr||i===$r)&&s===la){x=jr;var U=p&&R===_&&_.visualViewport?_.visualViewport.width:R[I];b-=U-n.width,b*=u?1:-1}}var j=Object.assign({position:c},f&&WC),M=g===!0?VC({x:b,y:v},Er(r)):{x:b,y:v};if(b=M.x,v=M.y,u){var D;return Object.assign({},j,(D={},D[O]=w?"0":"",D[x]=m?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",D))}return Object.assign({},j,(t={},t[O]=w?v+"px":"",t[x]=m?b+"px":"",t.transform="",t))}function UC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,u=c===void 0?!0:c,f={placement:wn(t.placement),variation:zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,tm(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tm(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UC,data:{}};var _l={passive:!0};function GC(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,s=i===void 0?!0:i,l=n.resize,c=l===void 0?!0:l,u=Er(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(g){g.addEventListener("scroll",r.update,_l)}),c&&u.addEventListener("resize",r.update,_l),function(){s&&f.forEach(function(g){g.removeEventListener("scroll",r.update,_l)}),c&&u.removeEventListener("resize",r.update,_l)}}const ZC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GC,data:{}};var KC={left:"right",right:"left",bottom:"top",top:"bottom"};function oc(e){return e.replace(/left|right|bottom|top/g,function(t){return KC[t]})}var YC={start:"end",end:"start"};function rm(e){return e.replace(/start|end/g,function(t){return YC[t]})}function mp(e){var t=Er(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bp(e){return Lo(vi(e)).left+mp(e).scrollLeft}function XC(e,t){var r=Er(e),n=vi(e),i=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,u=0;if(i){s=i.width,l=i.height;var f=$y();(f||!f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:s,height:l,x:c+bp(e),y:u}}function JC(e){var t,r=vi(e),n=mp(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Fi(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Fi(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+bp(e),u=-n.scrollTop;return Bn(i||r).direction==="rtl"&&(c+=Fi(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:c,y:u}}function yp(e){var t=Bn(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Wy(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:zr(e)&&yp(e)?e:Wy(qc(e))}function na(e,t){var r;t===void 0&&(t=[]);var n=Wy(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=Er(n),l=i?[s].concat(s.visualViewport||[],yp(n)?n:[]):n,c=t.concat(l);return i?c:c.concat(na(qc(l)))}function Pf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function QC(e,t){var r=Lo(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 nm(e,t,r){return t===Ly?Pf(XC(e,r)):Wi(t)?QC(t,r):Pf(JC(vi(e)))}function e2(e){var t=na(qc(e)),r=["absolute","fixed"].indexOf(Bn(e).position)>=0,n=r&&zr(e)?Ea(e):e;return Wi(n)?t.filter(function(i){return Wi(i)&&jy(i,n)&&Sn(i)!=="body"}):[]}function t2(e,t,r,n){var i=t==="clippingParents"?e2(e):[].concat(t),s=[].concat(i,[r]),l=s[0],c=s.reduce(function(u,f){var g=nm(e,f,n);return u.top=Fi(g.top,u.top),u.right=Oc(g.right,u.right),u.bottom=Oc(g.bottom,u.bottom),u.left=Fi(g.left,u.left),u},nm(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Vy(e){var t=e.reference,r=e.element,n=e.placement,i=n?wn(n):null,s=n?zo(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(i){case cr:u={x:l,y:t.y-r.height};break;case $r:u={x:l,y:t.y+t.height};break;case jr:u={x:t.x+t.width,y:c};break;case ur:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var f=i?vp(i):null;if(f!=null){var g=f==="y"?"height":"width";switch(s){case Mo:u[f]=u[f]-(t[g]/2-r[g]/2);break;case la:u[f]=u[f]+(t[g]/2-r[g]/2);break}}return u}function ca(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,u=c===void 0?xC:c,f=r.rootBoundary,g=f===void 0?Ly:f,p=r.elementContext,h=p===void 0?bs:p,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=Hy(typeof y!="number"?y:By(y,Sa)),w=h===bs?SC:bs,x=e.rects.popper,O=e.elements[S?w:h],_=t2(Wi(O)?O:O.contextElement||vi(e.elements.popper),u,g,l),R=Lo(e.elements.reference),H=Vy({reference:R,element:x,placement:i}),I=Pf(Object.assign({},x,H)),$=h===bs?I:R,U={top:_.top-$.top+m.top,bottom:$.bottom-_.bottom+m.bottom,left:_.left-$.left+m.left,right:$.right-_.right+m.right},j=e.modifiersData.offset;if(h===bs&&j){var M=j[i];Object.keys(U).forEach(function(D){var F=[jr,$r].indexOf(D)>=0?1:-1,P=[cr,$r].indexOf(D)>=0?"y":"x";U[D]+=M[P]*F})}return U}function r2(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?zy:u,g=zo(n),p=g?c?Qv:Qv.filter(function(S){return zo(S)===g}):Sa,h=p.filter(function(S){return f.indexOf(S)>=0});h.length===0&&(h=p);var b=h.reduce(function(S,v){return S[v]=ca(e,{placement:v,boundary:i,rootBoundary:s,padding:l})[wn(v)],S},{});return Object.keys(b).sort(function(S,v){return b[S]-b[v]})}function n2(e){if(wn(e)===pp)return[];var t=oc(e);return[rm(e),t,rm(t)]}function i2(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,f=r.padding,g=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,S=b===void 0?!0:b,v=r.allowedAutoPlacements,y=t.options.placement,m=wn(y),w=m===y,x=u||(w||!S?[oc(y)]:n2(y)),O=[y].concat(x).reduce(function(J,oe){return J.concat(wn(oe)===pp?r2(t,{placement:oe,boundary:g,rootBoundary:p,padding:f,flipVariations:S,allowedAutoPlacements:v}):oe)},[]),_=t.rects.reference,R=t.rects.popper,H=new Map,I=!0,$=O[0],U=0;U<O.length;U++){var j=O[U],M=wn(j),D=zo(j)===Mo,F=[cr,$r].indexOf(M)>=0,P=F?"width":"height",K=ca(t,{placement:j,boundary:g,rootBoundary:p,altBoundary:h,padding:f}),ee=F?D?jr:ur:D?$r:cr;_[P]>R[P]&&(ee=oc(ee));var Y=oc(ee),ve=[];if(s&&ve.push(K[M]<=0),c&&ve.push(K[ee]<=0,K[Y]<=0),ve.every(function(J){return J})){$=j,I=!1;break}H.set(j,ve)}if(I)for(var z=S?3:1,W=function(oe){var ae=O.find(function(ne){var de=H.get(ne);if(de)return de.slice(0,oe).every(function(he){return he})});if(ae)return $=ae,"break"},X=z;X>0;X--){var te=W(X);if(te==="break")break}t.placement!==$&&(t.modifiersData[n]._skip=!0,t.placement=$,t.reset=!0)}}const o2={name:"flip",enabled:!0,phase:"main",fn:i2,requiresIfExists:["offset"],data:{_skip:!1}};function im(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 om(e){return[cr,jr,$r,ur].some(function(t){return e[t]>=0})}function s2(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=ca(t,{elementContext:"reference"}),c=ca(t,{altBoundary:!0}),u=im(l,n),f=im(c,i,s),g=om(u),p=om(f);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:g,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":p})}const a2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s2};function l2(e,t,r){var n=wn(e),i=[ur,cr].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*i,[ur,jr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function c2(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=i===void 0?[0,0]:i,l=zy.reduce(function(g,p){return g[p]=l2(p,t.rects,s),g},{}),c=l[t.placement],u=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=l}const u2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:c2};function d2(e){var t=e.state,r=e.name;t.modifiersData[r]=Vy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const f2={name:"popperOffsets",enabled:!0,phase:"read",fn:d2,data:{}};function p2(e){return e==="x"?"y":"x"}function h2(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,f=r.rootBoundary,g=r.altBoundary,p=r.padding,h=r.tether,b=h===void 0?!0:h,S=r.tetherOffset,v=S===void 0?0:S,y=ca(t,{boundary:u,rootBoundary:f,padding:p,altBoundary:g}),m=wn(t.placement),w=zo(t.placement),x=!w,O=vp(m),_=p2(O),R=t.modifiersData.popperOffsets,H=t.rects.reference,I=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,U=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(s){var D,F=O==="y"?cr:ur,P=O==="y"?$r:jr,K=O==="y"?"height":"width",ee=R[O],Y=ee+y[F],ve=ee-y[P],z=b?-I[K]/2:0,W=w===Mo?H[K]:I[K],X=w===Mo?-I[K]:-H[K],te=t.elements.arrow,J=b&&te?gp(te):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fy(),ae=oe[F],ne=oe[P],de=ra(0,H[K],J[K]),he=x?H[K]/2-z-de-ae-U.mainAxis:W-de-ae-U.mainAxis,fe=x?-H[K]/2+z+de+ne+U.mainAxis:X+de+ne+U.mainAxis,ye=t.elements.arrow&&Ea(t.elements.arrow),Z=ye?O==="y"?ye.clientTop||0:ye.clientLeft||0:0,Te=(D=j==null?void 0:j[O])!=null?D:0,ge=ee+he-Te-Z,at=ee+fe-Te,qt=ra(b?Oc(Y,ge):Y,ee,b?Fi(ve,at):ve);R[O]=qt,M[O]=qt-ee}if(c){var Dt,dr=O==="x"?cr:ur,bi=O==="x"?$r:jr,Lt=R[_],Rt=_==="y"?"height":"width",zt=Lt+y[dr],Qr=Lt-y[bi],Hr=[cr,ur].indexOf(m)!==-1,Vn=(Dt=j==null?void 0:j[_])!=null?Dt:0,fr=Hr?zt:Lt-H[Rt]-I[Rt]-Vn+U.altAxis,er=Hr?Lt+H[Rt]+I[Rt]-Vn-U.altAxis:Qr,en=b&&Hr?$C(fr,Lt,er):ra(b?fr:zt,Lt,b?er:Qr);R[_]=en,M[_]=en-Lt}t.modifiersData[n]=M}}const g2={name:"preventOverflow",enabled:!0,phase:"main",fn:h2,requiresIfExists:["offset"]};function v2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m2(e){return e===Er(e)||!zr(e)?mp(e):v2(e)}function b2(e){var t=e.getBoundingClientRect(),r=Do(t.width)/e.offsetWidth||1,n=Do(t.height)/e.offsetHeight||1;return r!==1||n!==1}function y2(e,t,r){r===void 0&&(r=!1);var n=zr(t),i=zr(t)&&b2(t),s=vi(t),l=Lo(e,i,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Sn(t)!=="body"||yp(s))&&(c=m2(t)),zr(t)?(u=Lo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=bp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function w2(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function i(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&i(u)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||i(s)}),n}function x2(e){var t=w2(e);return PC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function S2(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function E2(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var sm={placement:"bottom",modifiers:[],strategy:"absolute"};function am(){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 _2(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,s=i===void 0?sm:i;return function(c,u,f){f===void 0&&(f=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},sm,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},p=[],h=!1,b={state:g,setOptions:function(m){var w=typeof m=="function"?m(g.options):m;v(),g.options=Object.assign({},s,g.options,w),g.scrollParents={reference:Wi(c)?na(c):c.contextElement?na(c.contextElement):[],popper:na(u)};var x=x2(E2([].concat(n,g.options.modifiers)));return g.orderedModifiers=x.filter(function(O){return O.enabled}),S(),b.update()},forceUpdate:function(){if(!h){var m=g.elements,w=m.reference,x=m.popper;if(am(w,x)){g.rects={reference:y2(w,Ea(x),g.options.strategy==="fixed"),popper:gp(x)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(U){return g.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<g.orderedModifiers.length;O++){if(g.reset===!0){g.reset=!1,O=-1;continue}var _=g.orderedModifiers[O],R=_.fn,H=_.options,I=H===void 0?{}:H,$=_.name;typeof R=="function"&&(g=R({state:g,options:I,name:$,instance:b})||g)}}}},update:S2(function(){return new Promise(function(y){b.forceUpdate(),y(g)})}),destroy:function(){v(),h=!0}};if(!am(c,u))return b;b.setOptions(f).then(function(y){!h&&f.onFirstUpdate&&f.onFirstUpdate(y)});function S(){g.orderedModifiers.forEach(function(y){var m=y.name,w=y.options,x=w===void 0?{}:w,O=y.effect;if(typeof O=="function"){var _=O({state:g,name:m,instance:b,options:x}),R=function(){};p.push(_||R)}})}function v(){p.forEach(function(y){return y()}),p=[]}return b}}var O2=[ZC,f2,qC,DC,u2,o2,g2,BC,a2],k2=_2({defaultModifiers:O2}),Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kd,lm;function A2(){if(lm)return kd;lm=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,u,f;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!i(s[u],l[u]))return!1;return!0}var g;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;for(g=s.entries();!(u=g.next()).done;)if(!i(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(s[u]!==l[u])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(f=Object.keys(s),c=f.length,c!==Object.keys(l).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(l,f[u]))return!1;if(e&&s instanceof Element)return!1;for(u=c;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&s.$$typeof)&&!i(s[f[u]],l[f[u]]))return!1;return!0}return s!==s&&l!==l}return kd=function(l,c){try{return i(l,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},kd}var T2=A2();const R2=Uy(T2);var C2=[],wp=function(t,r,n){n===void 0&&(n={});var i=V.useRef(null),s={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||C2},l=V.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],f=V.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var S=b.state,v=Object.keys(S.elements);wC.flushSync(function(){u({styles:Xv(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:Xv(v.map(function(y){return[y,S.attributes[y]]}))})})},requires:["computeStyles"]}},[]),g=V.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[f,{name:"applyStyles",enabled:!1}])};return R2(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),p=V.useRef();return Jv(function(){p.current&&p.current.setOptions(g)},[g]),Jv(function(){if(!(t==null||r==null)){var h=n.createPopper||k2,b=h(t,r,g);return p.current=b,function(){b.destroy(),p.current=null}}},[t,r,n.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const qy=e=>A.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Gy=N.forwardRef(({children:e,style:t,attributes:r},n)=>A.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),I2=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:i})=>{const[s,l]=N.useState(null),{styles:c,attributes:u}=wp(e,s,{placement:t||"bottom-start"}),f=N.useCallback(()=>{i&&i()},[i]);return r?A.jsxs(Dy,{children:[A.jsx(qy,{onClick:()=>f()}),A.jsx(Gy,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):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-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.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-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-\\[120px\\]:not(#\\#){height:120px}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.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-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.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\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
2
|
+
`,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const P2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),N2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),M2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Bo=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),D2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M7.105 12.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.024l3.682-3.529a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206-3.377-3.174a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"}),A.jsx("path",{d:"M7.105 6.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.025l3.682-3.528a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206L8.59 6.138a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"})]}),L2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M16.811 11.031a.47.47 0 0 0-.003-.688l-3.714-3.491a.485.485 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.14.524.524 0 0 0-.32.143l-.76.73a.518.518 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"}),A.jsx("path",{d:"M16.811 17.032a.47.47 0 0 0-.003-.689l-3.714-3.491a.514.514 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.139.523.523 0 0 0-.32.142l-.76.73a.563.563 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"})]}),sc=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Nf=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),z2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),$2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.5 10.889a.5.5 0 0 1 .5.5v1.222a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5V11.39a.5.5 0 0 1 .5-.5h19Z",fill:"currentColor"})}),Zy=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),A.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),j2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.389 2a.5.5 0 0 0-.5.5v8.389H2.5a.5.5 0 0 0-.5.5v1.222a.5.5 0 0 0 .5.5h8.389V21.5a.5.5 0 0 0 .5.5h1.222a.5.5 0 0 0 .5-.5v-8.389H21.5a.5.5 0 0 0 .5-.5V11.39a.5.5 0 0 0-.5-.5h-8.389V2.5a.5.5 0 0 0-.5-.5H11.39Z",fill:"currentColor"})}),F2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),H2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),B2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm1 15.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7ZM11 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",fill:"currentColor"})}),W2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),V2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),U2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.774 15.7A7.513 7.513 0 0 1 4.2 4.2a7.511 7.511 0 0 1 10.623 0 7.515 7.515 0 0 1 .876 9.573l6.01 6.01a.995.995 0 0 1 0 1.407l-.52.519a.995.995 0 0 1-1.406 0l-6.009-6.01Zm-1.076-3a4.507 4.507 0 1 1-6.373-6.374 4.507 4.507 0 0 1 6.373 6.373Z",fill:"currentColor"})}),xp=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),q2=(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},G2=(e,t)=>({classGroupId:e,validator:t}),Ky=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),kc="-",cm=[],Z2="arbitrary..",K2=e=>{const t=X2(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Y2(i);const s=i.split(kc),l=s[0]===""&&s.length>1?1:0;return Yy(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const l=n[i],c=r[i];return l?c?q2(c,l):l:c||cm}return r[i]||cm}}},Yy=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],i=r.nextPart.get(n);if(i){const u=Yy(e,t+1,i);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(kc):e.slice(t).join(kc),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},Y2=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?Z2+n:void 0})(),X2=e=>{const{theme:t,classGroups:r}=e;return J2(r,t)},J2=(e,t)=>{const r=Ky();for(const n in e){const i=e[n];Sp(i,r,n,t)}return r},Sp=(e,t,r,n)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];Q2(l,t,r,n)}},Q2=(e,t,r,n)=>{if(typeof e=="string"){eI(e,t,r);return}if(typeof e=="function"){tI(e,t,r,n);return}rI(e,t,r,n)},eI=(e,t,r)=>{const n=e===""?t:Xy(t,e);n.classGroupId=r},tI=(e,t,r,n)=>{if(nI(e)){Sp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(G2(r,e))},rI=(e,t,r,n)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[c,u]=i[l];Sp(u,Xy(t,c),r,n)}},Xy=(e,t)=>{let r=e;const n=t.split(kc),i=n.length;for(let s=0;s<i;s++){const l=n[s];let c=r.nextPart.get(l);c||(c=Ky(),r.nextPart.set(l,c)),r=c}return r},nI=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,iI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(s,l)=>{r[s]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let l=r[s];if(l!==void 0)return l;if((l=n[s])!==void 0)return i(s,l),l},set(s,l){s in r?r[s]=l:i(s,l)}}},Mf="!",um=":",oI=[],dm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),sI=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let l=0,c=0,u=0,f;const g=i.length;for(let v=0;v<g;v++){const y=i[v];if(l===0&&c===0){if(y===um){s.push(i.slice(u,v)),u=v+1;continue}if(y==="/"){f=v;continue}}y==="["?l++:y==="]"?l--:y==="("?c++:y===")"&&c--}const p=s.length===0?i:i.slice(u);let h=p,b=!1;p.endsWith(Mf)?(h=p.slice(0,-1),b=!0):p.startsWith(Mf)&&(h=p.slice(1),b=!0);const S=f&&f>u?f-u:void 0;return dm(s,b,h,S)};if(t){const i=t+um,s=n;n=l=>l.startsWith(i)?s(l.slice(i.length)):dm(oI,!1,l,void 0,!0)}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},aI=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let s=0;s<r.length;s++){const l=r[s],c=l[0]==="[",u=t.has(l);c||u?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(l)):i.push(l)}return i.length>0&&(i.sort(),n.push(...i)),n}},lI=e=>({cache:iI(e.cacheSize),parseClassName:sI(e),sortModifiers:aI(e),...K2(e)}),cI=/\s+/,uI=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(cI);let u="";for(let f=c.length-1;f>=0;f-=1){const g=c[f],{isExternal:p,modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}=r(g);if(p){u=g+(u.length>0?" "+u:u);continue}let y=!!v,m=n(y?S.substring(0,v):S);if(!m){if(!y){u=g+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=g+(u.length>0?" "+u:u);continue}y=!1}const w=h.length===0?"":h.length===1?h[0]:s(h).join(":"),x=b?w+Mf:w,O=x+m;if(l.indexOf(O)>-1)continue;l.push(O);const _=i(m,y);for(let R=0;R<_.length;++R){const H=_[R];l.push(x+H)}u=g+(u.length>0?" "+u:u)}return u},dI=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=Jy(r))&&(i&&(i+=" "),i+=n);return i},Jy=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Jy(e[n]))&&(r&&(r+=" "),r+=t);return r},fm=(e,...t)=>{let r,n,i,s;const l=u=>{const f=t.reduce((g,p)=>p(g),e());return r=lI(f),n=r.cache.get,i=r.cache.set,s=c,c(u)},c=u=>{const f=n(u);if(f)return f;const g=uI(u,r);return i(u,g),g};return s=l,(...u)=>s(dI(...u))},fI=[],At=e=>{const t=r=>r[e]||fI;return t.isThemeGetter=!0,t},Qy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ew=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pI=/^\d+\/\d+$/,hI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gI=/\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$/,vI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vo=e=>pI.test(e),De=e=>!!e&&!Number.isNaN(Number(e)),ni=e=>!!e&&Number.isInteger(Number(e)),Ad=e=>e.endsWith("%")&&De(e.slice(0,-1)),Nn=e=>hI.test(e),yI=()=>!0,wI=e=>gI.test(e)&&!vI.test(e),tw=()=>!1,xI=e=>mI.test(e),SI=e=>bI.test(e),EI=e=>!we(e)&&!xe(e),_I=e=>Wo(e,iw,tw),we=e=>Qy.test(e),Pi=e=>Wo(e,ow,wI),Td=e=>Wo(e,RI,De),pm=e=>Wo(e,rw,tw),OI=e=>Wo(e,nw,SI),kl=e=>Wo(e,sw,xI),xe=e=>ew.test(e),ys=e=>Vo(e,ow),kI=e=>Vo(e,CI),hm=e=>Vo(e,rw),AI=e=>Vo(e,iw),TI=e=>Vo(e,nw),Al=e=>Vo(e,sw,!0),Wo=(e,t,r)=>{const n=Qy.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Vo=(e,t,r=!1)=>{const n=ew.exec(e);return n?n[1]?t(n[1]):r:!1},rw=e=>e==="position"||e==="percentage",nw=e=>e==="image"||e==="url",iw=e=>e==="length"||e==="size"||e==="bg-size",ow=e=>e==="length",RI=e=>e==="number",CI=e=>e==="family-name",sw=e=>e==="shadow",gm=()=>{const e=At("color"),t=At("font"),r=At("text"),n=At("font-weight"),i=At("tracking"),s=At("leading"),l=At("breakpoint"),c=At("container"),u=At("spacing"),f=At("radius"),g=At("shadow"),p=At("inset-shadow"),h=At("text-shadow"),b=At("drop-shadow"),S=At("blur"),v=At("perspective"),y=At("aspect"),m=At("ease"),w=At("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...O(),xe,we],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],I=()=>[xe,we,u],$=()=>[vo,"full","auto",...I()],U=()=>[ni,"none","subgrid",xe,we],j=()=>["auto",{span:["full",ni,xe,we]},ni,xe,we],M=()=>[ni,"auto",xe,we],D=()=>["auto","min","max","fr",xe,we],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...I()],ee=()=>[vo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Y=()=>[e,xe,we],ve=()=>[...O(),hm,pm,{position:[xe,we]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",AI,_I,{size:[xe,we]}],X=()=>[Ad,ys,Pi],te=()=>["","none","full",f,xe,we],J=()=>["",De,ys,Pi],oe=()=>["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"],ne=()=>[De,Ad,hm,pm],de=()=>["","none",S,xe,we],he=()=>["none",De,xe,we],fe=()=>["none",De,xe,we],ye=()=>[De,xe,we],Z=()=>[vo,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nn],breakpoint:[Nn],color:[yI],container:[Nn],"drop-shadow":[Nn],ease:["in","out","in-out"],font:[EI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nn],shadow:[Nn],spacing:["px",De],text:[Nn],"text-shadow":[Nn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vo,we,xe,y]}],container:["container"],columns:[{columns:[De,we,xe,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[ni,"auto",xe,we]}],basis:[{basis:[vo,"full","auto",c,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,vo,"auto","initial","none",we]}],grow:[{grow:["",De,xe,we]}],shrink:[{shrink:["",De,xe,we]}],order:[{order:[ni,"first","last","none",xe,we]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:j()}],"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":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],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":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[c,"screen",...ee()]}],"min-w":[{"min-w":[c,"screen","none",...ee()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",r,ys,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,xe,Td]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ad,we]}],"font-family":[{font:[kI,we,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,xe,we]}],"line-clamp":[{"line-clamp":[De,"none",xe,Td]}],leading:[{leading:[s,...I()]}],"list-image":[{"list-image":["none",xe,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",xe,Pi]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[De,"auto",xe,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ni,xe,we],radial:["",xe,we],conic:[ni,xe,we]},TI,OI]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,xe,we]}],"outline-w":[{outline:["",De,ys,Pi]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",g,Al,kl]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Al,kl]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[De,Pi]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",h,Al,kl]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[De,xe,we]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[xe,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"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:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,we]}],filter:[{filter:["","none",xe,we]}],blur:[{blur:de()}],brightness:[{brightness:[De,xe,we]}],contrast:[{contrast:[De,xe,we]}],"drop-shadow":[{"drop-shadow":["","none",b,Al,kl]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",De,xe,we]}],"hue-rotate":[{"hue-rotate":[De,xe,we]}],invert:[{invert:["",De,xe,we]}],saturate:[{saturate:[De,xe,we]}],sepia:[{sepia:["",De,xe,we]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,we]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[De,xe,we]}],"backdrop-contrast":[{"backdrop-contrast":[De,xe,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,xe,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,xe,we]}],"backdrop-invert":[{"backdrop-invert":["",De,xe,we]}],"backdrop-opacity":[{"backdrop-opacity":[De,xe,we]}],"backdrop-saturate":[{"backdrop-saturate":[De,xe,we]}],"backdrop-sepia":[{"backdrop-sepia":["",De,xe,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",xe,we]}],ease:[{ease:["linear","initial",m,xe,we]}],delay:[{delay:[De,xe,we]}],animate:[{animate:["none",w,xe,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,xe,we]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[xe,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,we]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[De,ys,Pi,Td]}],stroke:[{stroke:["none",...Y()]}],"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"]}},II=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:s={}})=>(Zs(e,"cacheSize",t),Zs(e,"prefix",r),Zs(e,"experimentalParseClassName",n),Tl(e.theme,s.theme),Tl(e.classGroups,s.classGroups),Tl(e.conflictingClassGroups,s.conflictingClassGroups),Tl(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Zs(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Rl(e.theme,i.theme),Rl(e.classGroups,i.classGroups),Rl(e.conflictingClassGroups,i.conflictingClassGroups),Rl(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),aw(e,i,"orderSensitiveModifiers"),e),Zs=(e,t,r)=>{r!==void 0&&(e[t]=r)},Tl=(e,t)=>{if(t)for(const r in t)Zs(e,r,t[r])},Rl=(e,t)=>{if(t)for(const r in t)aw(e,t,r)},aw=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},PI=(e,...t)=>typeof e=="function"?fm(gm,e,...t):fm(()=>II(gm(),e),...t);function lw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vm={exports:{}};/*!
|
|
2
3
|
Copyright (c) 2018 Jed Watson.
|
|
3
4
|
Licensed under the MIT License (MIT), see
|
|
4
5
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var
|
|
6
|
-
|
|
6
|
+
*/var mm;function NI(){return mm||(mm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(vm)),vm.exports}var MI=NI();const DI=lw(MI),LI=PI({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function ce(...e){return LI(DI(e))}const _a={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},Dr={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},zI=`
|
|
7
|
+
appearance-none border rounded transition-all duration-200
|
|
8
|
+
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
9
|
+
relative
|
|
10
|
+
`,$I=(e,t,r)=>{const{isChecked:n,isIndeterminate:i,isDisabled:s,isInvalid:l}=r,c=n||i;return ce(zI,_a[e].checkbox,{"cursor-pointer":!s},l?{[Dr.negative.checked]:c,[Dr.negative.unchecked]:!c,[Dr.negative.checkedHover]:!s&&c,[Dr.negative.focus]:!s,"border-input-disable":s}:{[Dr[t].checked]:c&&!s,[Dr[t].unchecked]:!c&&!s,[Dr[t].checkedHover]:!s&&c,[Dr[t].focus]:!s,"border-input-disable":s,"bg-input-disable":s&&c})},jI=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return ce(_a[e].text,i?{[Dr.negative.label]:i}:{"text-input-disable":n,[Dr[t].label]:!n,"cursor-pointer":!n})},FI=e=>ce("inline-flex items-center ws-group",_a[e].spacing),HI=(e,t,r)=>ce("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",_a[e].hoverSquare,{[Dr.negative.hoverSquare]:r,[Dr[t].hoverSquare]:!r}),BI=e=>`${_a[e].icon}`,WI=e=>A.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:A.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),VI=N.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:i="md",color:s="primary",onChange:l,onFocus:c,onBlur:u,value:f,defaultValue:g,name:p,id:h,...b},S)=>{const[v,y]=N.useState(g),m=f===!0||v===!0,w=f===null,x=m||w,O={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},_=$I(i,s,O),R=jI(i,s,O),H=FI(i),I=HI(i,s,r),$=BI(i);return A.jsxs("label",{"data-qui":"Checkbox",className:H,children:[A.jsxs("div",{className:_,children:[A.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:U=>{f===void 0&&y(U.target.checked),l==null||l(U)},onFocus:c,onBlur:u,name:p,id:h,...b}),x&&A.jsx("div",{className:"center-absolute",children:w?A.jsx(WI,{className:$}):A.jsx(N2,{className:$})}),!x&&!t&&A.jsx("div",{className:I})]}),e&&A.jsxs("span",{className:R,children:[e,n&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});VI.displayName="Checkbox";const Oa={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"}},ua={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"}},UI=`
|
|
11
|
+
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
12
|
+
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
13
|
+
cursor-pointer peer
|
|
14
|
+
`,qI=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return ce(UI,Oa[e].radio,i?ua[t].radioInvalid:{[ua[t].radio]:!n,"cursor-not-allowed opacity-60":n})},GI=(e,t,r)=>{const{checked:n,isDisabled:i,isInvalid:s}=r;return ce("center-absolute rounded-full transition-all duration-200 ease-in-out",Oa[e].dot,s?"bg-negative":{[ua[t].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!i})},ZI=(e,t,r)=>ce("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Oa[e].hoverDot,{[ua[t].hoverDot]:!r,"bg-negative-bg":r}),KI=e=>ce("cursor-pointer select-none transition-colors duration-200",Oa[e].label),YI=(e,t,r,n)=>{const{isDisabled:i,isInvalid:s}=r;return ce("inline-flex items-center group",Oa[e].container,s?{"text-negative":s}:{[ua[t].label]:!i,"text-muted":i},n)},XI=N.createContext(null),JI=()=>{const e=N.useContext(XI);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},QI=N.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:i,isInvalid:s,isRequired:l,className:c,...u},f)=>{const g=JI(),p=r??g.size,h=n??g.color,b=i??g.isDisabled,S=s??g.isInvalid,v=l??g.isRequired,y=g.value===e,m={checked:y,isDisabled:b,isInvalid:S},w=qI(p,h,m),x=GI(p,h,m),O=ZI(p,h,S),_=KI(p),R=YI(p,h,m,c),H=()=>{b||g.onChange(e)};return A.jsxs("label",{"data-qui":"RadioItem",className:R,children:[A.jsxs("div",{className:ce("relative",{hidden:g.hideIndicator}),children:[A.jsx("input",{ref:f,type:"radio",value:e,checked:y,disabled:b,required:v,"aria-invalid":S,"aria-label":t?void 0:u["aria-label"],name:g.name,onChange:H,className:"sr-only",...u}),A.jsxs("div",{className:w,children:[A.jsx("div",{className:x}),!y&&!b&&A.jsx("div",{className:O})]})]}),t&&A.jsxs("span",{className:_,children:[t,v&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});QI.displayName="RadioItem";const cw={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"}},eP={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-primary-hover hover:bg-primary hover:text-body",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-default hover:bg-canvas-default hover:text-primary",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:bg-positive-hover hover:text-body",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:bg-warning-hover hover:text-body",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:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},tP=(e,t,r,n)=>{const i=cw[e],s=eP[r],l=ce("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},i.container);return n?ce(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"}):ce(l,s.bg[t],s.text[t],s.hover[t],s.border[t])},rP=e=>ce("flex items-center justify-center gap-1",cw[e].text),Fn=N.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:i,disabled:s,...l},c)=>A.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:ce(tP(e,t,r,s),rP(e),n),disabled:s,...l,children:i}));Fn.displayName="Button";const uw=N.createContext(null),ka=()=>{const e=N.useContext(uw);if(!e)throw new Error("Input components must be used within Input.Root");return e},Uo={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Hi={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},nP=()=>ce("flex flex-col relative"),iP=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:i,hasArea:s,isInvalid:l})=>{const c=Hi[l?"negative":t];return ce("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",c.text,i?c.borderMessage:!n&&c.border,Uo[e].group,{"ring-1":i,"opacity-60":r,"items-center":!s})},oP=({size:e,color:t})=>ce("bg-transparent ring-0 w-full","focus:outline-hidden",[Uo[e].input],Hi[t].placeholder),bm=({size:e,color:t})=>ce("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Uo[e].input,Hi[t].placeholder),sP=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=Hi[t];return ce("transition-colors duration-200 rounded max-h-full h-fit",Uo[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.action:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.actionHover]:n&&!r,"pointer-events-none":!n})},aP=({size:e,color:t,isDisabled:r})=>ce("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",r?"text-muted":Hi[t].messageText,Hi[t].borderMessage,Hi[t].messageBackground,Uo[e].message,{"opacity-60":r}),lP=({size:e})=>ce(Uo[e].icon);function Ac(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cP=typeof global=="object"&&global&&global.Object===Object&&global,uP=typeof self=="object"&&self&&self.Object===Object&&self,dw=cP||uP||Function("return this")(),Rd=function(){return dw.Date.now()},dP=/\s/;function fP(e){for(var t=e.length;t--&&dP.test(e.charAt(t)););return t}var pP=/^\s+/;function hP(e){return e&&e.slice(0,fP(e)+1).replace(pP,"")}var Tc=dw.Symbol,fw=Object.prototype,gP=fw.hasOwnProperty,vP=fw.toString,ws=Tc?Tc.toStringTag:void 0;function mP(e){var t=gP.call(e,ws),r=e[ws];try{e[ws]=void 0;var n=!0}catch{}var i=vP.call(e);return n&&(t?e[ws]=r:delete e[ws]),i}var bP=Object.prototype,yP=bP.toString;function wP(e){return yP.call(e)}var xP="[object Null]",SP="[object Undefined]",ym=Tc?Tc.toStringTag:void 0;function EP(e){return e==null?e===void 0?SP:xP:ym&&ym in Object(e)?mP(e):wP(e)}function _P(e){return e!=null&&typeof e=="object"}var OP="[object Symbol]";function kP(e){return typeof e=="symbol"||_P(e)&&EP(e)==OP}var wm=NaN,AP=/^[-+]0x[0-9a-f]+$/i,TP=/^0b[01]+$/i,RP=/^0o[0-7]+$/i,CP=parseInt;function xm(e){if(typeof e=="number")return e;if(kP(e))return wm;if(Ac(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ac(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hP(e);var r=TP.test(e);return r||RP.test(e)?CP(e.slice(2),r?2:8):AP.test(e)?wm:+e}var IP="Expected a function",PP=Math.max,NP=Math.min;function ac(e,t,r){var n,i,s,l,c,u,f=0,g=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(IP);t=xm(t)||0,Ac(r)&&(g=!!r.leading,p="maxWait"in r,s=p?PP(xm(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function b(R){var H=n,I=i;return n=i=void 0,f=R,l=e.apply(I,H),l}function S(R){return f=R,c=setTimeout(m,t),g?b(R):l}function v(R){var H=R-u,I=R-f,$=t-H;return p?NP($,s-I):$}function y(R){var H=R-u,I=R-f;return u===void 0||H>=t||H<0||p&&I>=s}function m(){var R=Rd();if(y(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,h&&n?b(R):(n=i=void 0,l)}function x(){c!==void 0&&clearTimeout(c),f=0,n=u=i=c=void 0}function O(){return c===void 0?l:w(Rd())}function _(){var R=Rd(),H=y(R);if(n=arguments,i=this,u=R,H){if(c===void 0)return S(u);if(p)return clearTimeout(c),c=setTimeout(m,t),b(u)}return c===void 0&&(c=setTimeout(m,t)),l}return _.cancel=x,_.flush=O,_}var MP="Expected a function";function DP(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(MP);return Ac(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ac(e,t,{leading:n,maxWait:t,trailing:i})}var ko=function(){return ko=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ko.apply(this,arguments)};function pw(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function hw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var gw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(i.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=i.value}}return n},t);return r};function vw(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function mw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function bw(e){return".".concat(e.split(" ").join("."))}var Ep=!!(typeof window<"u"&&window.document&&window.document.createElement),LP=Object.freeze({__proto__:null,addClasses:vw,canUseDOM:Ep,classNamesToQuery:bw,getElementDocument:hw,getElementWindow:pw,getOptions:gw,removeClasses:mw}),_o=null,Sm=null;Ep&&window.addEventListener("resize",function(){Sm!==window.devicePixelRatio&&(Sm=window.devicePixelRatio,_o=null)});function Em(){if(_o===null){if(typeof document>"u")return _o=0,_o;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),_o=r}return _o}var ii=pw,Cd=hw,zP=gw,oi=vw,si=mw,ar=bw,xs=(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 i=ii(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,oi(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(){si(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(oi(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){si(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.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(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var s,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)&&(s=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(s||l)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var s,l,c,u,f,g,p,h,b,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,m=n.axis[n.draggedAxis].track,w=(l=(s=m.rect)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,O=(u=(c=n.contentWrapperEl)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,_=parseInt((g=(f=n.elStyles)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?y=i.pageY:y=i.pageX;var R=y-((h=(p=m.rect)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(b=m.rect)===null||b===void 0?void 0:b[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var H=R/(w-x.size),I=H*(O-_);n.draggedAxis==="x"&&n.isRtl&&(I=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-I:I),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=I}},this.onEndDrag=function(i){n.isDragging=!1;var s=Cd(n.el),l=ii(n.el);i.preventDefault(),i.stopPropagation(),si(n.el,n.classNames.dragging),n.onStopScrolling(),s.removeEventListener("mousemove",n.drag,!0),s.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",n.preventClick,!0),s.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=ko(ko({},e.defaultOptions),r),this.classNames=ko(ko({},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=DP(this._onMouseMove,64),this.onWindowResize=ac(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ac(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ac(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 i=e.getOffset(r),s=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Em()}catch{return Em()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Cd(t),i=ii(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Ep&&(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(ar(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ar(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ar(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ar(this.classNames.offset)),this.maskEl=this.el.querySelector(ar(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ar(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ar(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ar(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(ar(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(ar(this.classNames.scrollbar)))||null,this.options.autoHide||(oi(this.axis.x.scrollbar.el,this.classNames.visible),oi(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=ii(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 i=!1,s=n.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!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=ii(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||f,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&f>r,this.axis.y.isOverflowing=u>g,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>s-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>g-p,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 i=this.contentEl[this.axis[t].scrollSizeAttr],s=(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=s/i,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];f=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-f:f,t==="x"&&this.isRtl&&(f=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?f:-f);var g=f/(l-u),p=~~((c-s.size)*g);p=t==="x"&&this.isRtl?-p+(c-s.size):p,s.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"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&&(oi(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&&(si(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),oi(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?oi(r.scrollbar.el,this.classNames.hover):si(r.scrollbar.el,this.classNames.hover)):(si(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),si(this.axis[t].track.el,this.classNames.hover),si(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 i=Cd(this.el),s=ii(this.el),l=this.axis[r].scrollbar,c=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=c-(((n=l.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,oi(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,s,l,c;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var f=ii(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var g=this.axis[r].scrollbar,p=(s=(i=g.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&s!==void 0?s:0,h=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-p:this.mouseX-p,v=S<0?-1:1,y=v===-1?b-h:b+h,m=40,w=function(){n.contentWrapperEl&&(v===-1?b>y&&(b-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)):b<y&&(b+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ii(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(i){return n.call(i,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=zP,e.helpers=LP,e})(),xr=function(){return xr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xr.apply(this,arguments)};function $P(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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var _p=V.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,s=$P(e,["children","scrollableNodeProps"]),l=V.useRef(),c=V.useRef(),u=V.useRef(),f={},g={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(xs.defaultOptions,b)?f[b]=s[b]:g[b]=s[b]});var p=xr(xr({},xs.defaultOptions.classNames),f.classNames),h=xr(xr({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:f.tabIndex||xs.defaultOptions.tabIndex,role:"region","aria-label":f.ariaLabel||xs.defaultOptions.ariaLabel});return V.useEffect(function(){var b;return c.current=h.ref?h.ref.current:c.current,l.current&&(b=new xs(l.current,xr(xr(xr({},f),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),V.createElement("div",xr({"data-simplebar":"init",ref:l},g),V.createElement("div",{className:p.wrapper},V.createElement("div",{className:p.heightAutoObserverWrapperEl},V.createElement("div",{className:p.heightAutoObserverEl})),V.createElement("div",{className:p.mask},V.createElement("div",{className:p.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:xr(xr({},h),{ref:c}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):V.createElement("div",xr({},h),V.createElement("div",{className:p.contentEl},r)))),V.createElement("div",{className:p.placeholder})),V.createElement("div",{className:"".concat(p.track," ").concat(p.horizontal)},V.createElement("div",{className:p.scrollbar})),V.createElement("div",{className:"".concat(p.track," ").concat(p.vertical)},V.createElement("div",{className:p.scrollbar})))});_p.displayName="SimpleBar";const yw=N.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:i=!1,className:s,children:l,...c},u)=>{const[f,g]=N.useState(!1),[p,h]=N.useState(!1),b={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:i,hasMessage:f,setHasMessage:g,hasArea:p,setHasArea:h};return A.jsx(uw.Provider,{value:b,children:A.jsx("div",{ref:u,"data-qui":"Input",className:ce(nP(),s),...c,children:l})})}),ww=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}=ka();return A.jsx("div",{ref:n,"data-qui":"InputGroup",className:ce(iP({size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}),e),...r,children:t})}),xw=N.forwardRef(({className:e,...t},r)=>{const{size:n,color:i,isInvalid:s,isDisabled:l,isReadOnly:c}=ka(),{isDisabled:u,isReadOnly:f,...g}=t;return A.jsx("input",{ref:r,disabled:l||u,readOnly:f||c||!1,"aria-invalid":s,className:ce(oP({size:n,color:i}),e),...g})}),jP=N.forwardRef(({className:e,wrapperClassName:t,autoHeight:r,...n},i)=>{const{size:s,color:l,isInvalid:c,isDisabled:u,setHasArea:f}=ka(),g=N.useRef(null),p=i||g,h=N.useRef(null);N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]);const b=N.useCallback(()=>{if(g.current){const x=g.current;x.style.height="auto",x.style.height=`${x.scrollHeight}px`}},[]),S=x=>{var O;b(),(O=n.onInput)==null||O.call(n,x)};N.useEffect(()=>{b()},[b,n.value]),N.useEffect(()=>{r&&h.current&&h.current.style.removeProperty("height")},[r]);const v=x=>{x.preventDefault();const O=h.current;if(!O)return;const _=x.clientY,R=O.offsetHeight,H=$=>{const U=R+($.clientY-_);U>30&&(O.style.height=U+"px")},I=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",I)},{isDisabled:y,isReadOnly:m,...w}=n;return A.jsxs("div",{ref:h,className:ce("w-full relative",!r&&!n.rows&&"h-[120px]",t),children:[r?A.jsx("textarea",{ref:p,rows:1,className:ce(bm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{overflow:"hidden"},...w}):A.jsx(_p,{style:{height:"100%"},children:A.jsx("textarea",{ref:p,rows:1,className:ce(bm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{height:"auto",overflow:"hidden",width:"100%"},...w})}),!r&&A.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:v,children:A.jsx(F2,{})})]})}),Sw=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=ka(),g=r||f,p=sP({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"InputIcon",className:ce(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),FP=N.forwardRef(({icon:e,className:t,children:r,...n},i)=>{const{size:s,color:l,setHasMessage:c,isDisabled:u}=ka();return N.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),A.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:ce(aP({size:s,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&A.jsx("div",{className:ce(lP({size:s}),t),children:e}),A.jsx("p",{children:r})]})});yw.displayName="InputRoot";ww.displayName="InputGroup";xw.displayName="InputField";jP.displayName="InputArea";Sw.displayName="InputIcon";FP.displayName="InputMessage";const Ss={Root:yw,Group:ww,Field:xw,Icon:Sw},da={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"}},HP=({color:e})=>ce("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",da[e].container,da[e].icon),BP=({color:e})=>ce("text-xs font-medium leading-3",da[e].text),WP=({color:e})=>ce("p-0.5 rounded cursor-pointer",da[e].button,da[e].icon),Ew=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:i,children:s,delay:l=0,trigger:c="hover",className:u,container:f,isHidden:g=!1})=>{const[p,h]=N.useState(!1),[b,S]=N.useState(!1),[v,y]=N.useState({position:r,transform:""}),m=N.useRef(null),w=N.useRef(null),x=N.useRef(null),O=p&&!g;N.useEffect(()=>{O||S(!1)},[O]);const _=N.useCallback(()=>{if(!m.current||!w.current)return;const D=m.current.getBoundingClientRect(),F=w.current.getBoundingClientRect(),P=window.innerWidth,K=window.innerHeight,ee=window.scrollX,Y=window.scrollY,ve=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,P),z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,K),W=4;let X=r,te={position:X,transform:""};const J=de=>{const{top:he,left:fe,width:ye,height:Z}=D,Te=he+Y,ge=fe+ee;switch(de){case"up":return{top:`${Te-F.height-W}px`,left:`${ge+ye/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${Te-F.height-W}px`,left:`${ge}px`,transform:"translateX(0)"};case"up-end":return{top:`${Te-F.height-W}px`,left:`${ge+ye-F.width}px`,transform:"translateX(0)"};case"down":return{top:`${Te+Z+W}px`,left:`${ge+ye/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${Te+Z+W}px`,left:`${ge}px`,transform:"translateX(0)"};case"down-end":return{top:`${Te+Z+W}px`,left:`${ge+ye-F.width}px`,transform:"translateX(0)"};case"left":return{top:`${Te+Z/2}px`,left:`${ge-F.width-W}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${Te}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"left-end":return{top:`${Te+Z-F.height}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"right":return{top:`${Te+Z/2}px`,left:`${ge+ye+W}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${Te}px`,left:`${ge+ye+W}px`,transform:"translateY(0)"};case"right-end":return{top:`${Te+Z-F.height}px`,left:`${ge+ye+W}px`,transform:"translateY(0)"};default:return{}}},oe={up:{fits:D.top-F.height-W>=0},"up-start":{fits:D.top-F.height-W>=0&&D.left+F.width<=P},"up-end":{fits:D.top-F.height-W>=0&&D.right-F.width>=0},down:{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=z},"down-start":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=z&&D.left+F.width<=P},"down-end":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=z&&D.right-F.width>=0},left:{fits:D.left-F.width-W>=0},"left-start":{fits:D.left-F.width-W>=0&&D.top+F.height<=K},"left-end":{fits:D.left-F.width-W>=0&&D.bottom-F.height>=0},right:{fits:D.right+F.width+W<=P&&D.right+F.width+W<=ve},"right-start":{fits:D.right+F.width+W<=P&&D.right+F.width+W<=ve&&D.top+F.height<=K},"right-end":{fits:D.right+F.width+W<=P&&D.right+F.width+W<=ve&&D.bottom-F.height>=0}},ae=D.left+D.width/2-F.width/2,ne=D.left+D.width/2+F.width/2;if((r==="up"||r==="down")&&(ae<0||ne>P)&&(oe[r].fits=!1),oe[r].fits){const de=J(r);te={position:r,...de,transform:de.transform||""}}else{const de=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(he=>oe[he].fits);if(de){X=de;const he=J(de);te={position:X,...he,transform:he.transform||""}}else{const he={up:D.top,"up-start":D.top,"up-end":D.top,down:Math.min(K-D.bottom,z-D.bottom),"down-start":Math.min(K-D.bottom,z-D.bottom),"down-end":Math.min(K-D.bottom,z-D.bottom),left:D.left,"left-start":D.left,"left-end":D.left,right:Math.min(P-D.right,ve-D.right),"right-start":Math.min(P-D.right,ve-D.right),"right-end":Math.min(P-D.right,ve-D.right)},fe=Object.entries(he).reduce((Z,[Te,ge])=>ge>Z.space?{position:Te,space:ge}:Z,{position:"up",space:0}).position;X=fe;const ye=J(fe);te={position:X,...ye,transform:ye.transform||""}}}y(te)},[r]),R=()=>{c==="click"&&(h(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{b||h(!1)},l))},H=D=>{D.stopPropagation(),h(!1),x.current&&clearTimeout(x.current)},I=()=>{S(!0),x.current&&clearTimeout(x.current)},$=()=>{S(!1),p&&(x.current=setTimeout(()=>{h(!1)},l))},U=()=>{c==="hover"&&(h(!0),x.current&&clearTimeout(x.current))},j=()=>{c==="hover"&&(x.current=setTimeout(()=>{h(!1)},l))};N.useEffect(()=>{if(p){const D=requestAnimationFrame(()=>{_()});return()=>cancelAnimationFrame(D)}},[p,e,_]),N.useEffect(()=>{if(p){const D=setTimeout(()=>_(),0);return()=>clearTimeout(D)}},[p,_]),N.useEffect(()=>{const D=()=>{p&&_()},F=()=>{p&&_()};return window.addEventListener("resize",D),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",F,!0),x.current&&clearTimeout(x.current)}},[p,_]);const M=f||(typeof document<"u"?document.body:null);return M?A.jsxs(A.Fragment,{children:[A.jsx("div",{"data-qui":"Tooltip",ref:m,onClick:R,onMouseEnter:U,onMouseLeave:j,className:ce("relative inline-flex items-center",u),children:s}),p&&!g&&!!e&&En.createPortal(A.jsxs("div",{ref:w,role:"tooltip",className:HP({color:t}),style:{position:"absolute",left:v.left??0,top:v.top??0,transform:v.transform,zIndex:1e3,visibility:v.left?"visible":"hidden",pointerEvents:n?"auto":"none"},onMouseEnter:n?I:void 0,onMouseLeave:n?$:void 0,children:[i&&A.jsx("span",{"data-testid":"tooltip-icon",children:i}),A.jsx("div",{className:BP({color:t}),children:e}),n&&A.jsx("div",{onClick:H,className:WP({color:t}),role:"button",children:A.jsx(Bo,{})})]}),M)]}):null};var _m;(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"})(_m||(_m={}));const VP=Object.freeze({x:0,y:0});var Ao;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ao||(Ao={}));var Om;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Om||(Om={}));var Lr;(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"})(Lr||(Lr={}));Lr.Space,Lr.Enter,Lr.Esc,Lr.Space,Lr.Enter,Lr.Tab;var km;(function(e){e[e.RightClick=2]="RightClick"})(km||(km={}));var Am;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Am||(Am={}));var Tm;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Tm||(Tm={}));Ao.Backward+"",Ao.Forward+"",Ao.Backward+"",Ao.Forward+"";var Df;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Df||(Df={}));var Lf;(function(e){e.Optimized="optimized"})(Lf||(Lf={}));Df.WhileDragging,Lf.Optimized;({...VP});var Rm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Rm||(Rm={}));Lr.Down,Lr.Right,Lr.Up,Lr.Left;const _w={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},UP={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},qP=(e,t,r,n)=>{const i=UP[e],s=_w[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?ce(l,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?ce(l,s.padding,s.text,s.gap,i.active.bg,i.active.text,"shadow-xs"):ce(l,s.padding,s.text,s.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},GP=(e,t)=>ce("flex items-center justify-center",_w[e].icon,{"opacity-50":t}),ZP=()=>ce("whitespace-nowrap"),Ow=(e,t)=>{const r=ce("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?ce(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?ce(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):ce(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},KP=N.createContext(void 0),YP=N.forwardRef(({value:e,label:t,icon:r,disabled:n,children:i,className:s,onClick:l,active:c,content:u,...f},g)=>{const p=N.useContext(KP);if(!p)return null;const{activeTab:h,onTabChange:b,variant:S,color:v,size:y,showIcons:m,disabled:w}=p,x=c!==void 0?c:h===e,O=n||w,_=R=>{O||(b(e),l==null||l(R))};return S==="file"?A.jsx("div",{"data-qui":"FileTabItem",className:ce(Ow(x,!1),"cursor-pointer",s),onClick:R=>!O&&_(R),children:i||A.jsx(A.Fragment,{children:A.jsxs("span",{className:"flex items-center gap-2",children:[r,A.jsx("span",{children:t})]})})}):A.jsxs("button",{ref:g,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":x,"aria-disabled":O,className:ce(qP(v,y,x,O||!1),s),onClick:_,disabled:O,...f,children:[m&&r&&A.jsx("span",{className:GP(y,O||!1),children:r}),A.jsx("span",{className:ZP(),children:i||t})]})});YP.displayName="TabItem";const XP=N.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},i)=>A.jsx("div",{"data-qui":"TabNavContainer",className:Ow(e,t),ref:i,...n,children:r}));XP.displayName="TabNavContainer";var Et=function(){return Et=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Et.apply(this,arguments)},Cm={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Im={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Cl={width:"20px",height:"20px",position:"absolute",zIndex:1},JP={top:Et(Et({},Cm),{top:"-5px"}),right:Et(Et({},Im),{left:void 0,right:"-5px"}),bottom:Et(Et({},Cm),{top:void 0,bottom:"-5px"}),left:Et(Et({},Im),{left:"-5px"}),topRight:Et(Et({},Cl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Et(Et({},Cl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Et(Et({},Cl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Et(Et({},Cl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},QP=N.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,i=e.replaceStyles,s=e.className,l=N.useCallback(function(f){t(f,r)},[t,r]),c=N.useCallback(function(f){t(f,r)},[t,r]),u=N.useMemo(function(){return Et(Et({position:"absolute",userSelect:"none"},JP[r]),i??{})},[i,r]);return A.jsx("div",{className:s||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),e5=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},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)}})(),pn=function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pn.apply(this,arguments)},t5={width:"auto",height:"auto"},Il=function(e,t,r){return Math.max(Math.min(e,r),t)},Pm=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},mo=function(e,t){return new RegExp(e,"i").test(t)},Pl=function(e){return!!(e.touches&&e.touches.length)},r5=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Nm=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(s,l,c){return Math.abs(l-e)<Math.abs(t[s]-e)?c:s},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},Id=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")},Nl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},n5=function(e,t,r,n,i,s,l){return n=Nl(n,e.width,t,r),i=Nl(i,e.height,t,r),s=Nl(s,e.width,t,r),l=Nl(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof l>"u"?void 0:Number(l)}},i5=function(e){return Array.isArray(e)?e:[e,e]},o5=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Mm="__resizable_base__",s5=(function(e){e5(t,e);function t(r){var n,i,s,l,c=e.call(this,r)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.delta={width:0,height:0},c.appendBase=function(){if(!c.resizable||!c.window)return null;var u=c.parentNode;if(!u)return null;var f=c.window.document.createElement("div");return f.style.width="100%",f.style.height="100%",f.style.position="absolute",f.style.transform="scale(0, 0)",f.style.left="0",f.style.flex="0 0 100%",f.classList?f.classList.add(Mm):f.className+=Mm,u.appendChild(f),f},c.removeBase=function(u){var f=c.parentNode;f&&f.removeChild(u)},c.state={isResizing:!1,width:(i=(n=c.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(l=(s=c.propsSize)===null||s===void 0?void 0:s.height)!==null&&l!==void 0?l:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||t5},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,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,i=function(c){var u;if(typeof r.state[c]>"u"||r.state[c]==="auto")return"auto";if(r.propsSize&&r.propsSize[c]&&!((u=r.propsSize[c])===null||u===void 0)&&u.toString().endsWith("%")){if(r.state[c].toString().endsWith("%"))return r.state[c].toString();var f=r.getParentSize(),g=Number(r.state[c].toString().replace("px","")),p=g/f[c]*100;return"".concat(p,"%")}return Id(r.state[c])},s=n&&typeof n.width<"u"&&!this.state.isResizing?Id(n.width):i("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Id(n.height):i("height");return{width:s,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,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var s={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),s},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 i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,s=this.state.direction,l=i&&mo("left",s),c=i&&mo("top",s),u,f;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(u=l?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),f=c?this.resizableBottom-this.parentTop:g.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,f=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),f=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),f&&Number.isFinite(f)&&(n=n&&n<f?n:f),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,s=i5(this.props.resizeRatio||1),l=s[0],c=s[1],u=this.state,f=u.direction,g=u.original,p=this.props,h=p.lockAspectRatio,b=p.lockAspectRatioExtraHeight,S=p.lockAspectRatioExtraWidth,v=g.width,y=g.height,m=b||0,w=S||0;return mo("right",f)&&(v=g.width+(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("left",f)&&(v=g.width-(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("bottom",f)&&(y=g.height+(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),mo("top",f)&&(y=g.height-(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),{newWidth:v,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,s){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,f=l.lockAspectRatioExtraWidth,g=typeof s.width>"u"?10:s.width,p=typeof i.width>"u"||i.width<0?r:i.width,h=typeof s.height>"u"?10:s.height,b=typeof i.height>"u"||i.height<0?n:i.height,S=u||0,v=f||0;if(c){var y=(h-S)*this.ratio+v,m=(b-S)*this.ratio+v,w=(g-v)/this.ratio+S,x=(p-v)/this.ratio+S,O=Math.max(g,y),_=Math.min(p,m),R=Math.max(h,w),H=Math.min(b,x);r=Il(r,O,_),n=Il(n,R,H)}else r=Il(r,g,p),n=Il(n,h,b);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*r,this.parentTop=i.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*r,this.targetTop=s.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,f=l.right,g=l.bottom;this.resizableLeft=c*r,this.resizableRight=f*r,this.resizableTop=u*r,this.resizableBottom=g*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,s=0;if(r.nativeEvent&&r5(r.nativeEvent)?(i=r.nativeEvent.clientX,s=r.nativeEvent.clientY):r.nativeEvent&&Pl(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,s=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(r,n,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var f=this.parentNode;if(f){var g=this.window.getComputedStyle(f).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(p)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Pl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,l=i.maxHeight,c=i.minWidth,u=i.minHeight,f=Pl(r)?r.touches[0].clientX:r.clientX,g=Pl(r)?r.touches[0].clientY:r.clientY,p=this.state,h=p.direction,b=p.original,S=p.width,v=p.height,y=this.getParentSize(),m=n5(y,this.window.innerWidth,this.window.innerHeight,s,l,c,u);s=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(f,g),x=w.newHeight,O=w.newWidth,_=this.calculateNewMaxFromBoundary(s,l);this.props.snap&&this.props.snap.x&&(O=Nm(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Nm(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(O,x,{width:_.maxWidth,height:_.maxHeight},{width:c,height:u});if(O=R.newWidth,x=R.newHeight,this.props.grid){var H=Pm(O,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),I=Pm(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,U=$===0||Math.abs(H-O)<=$?H:O,j=$===0||Math.abs(I-x)<=$?I:x;O=U,x=j}var M={width:O-b.width,height:x-b.height};if(this.delta=M,S&&typeof S=="string"){if(S.endsWith("%")){var D=O/y.width*100;O="".concat(D,"%")}else if(S.endsWith("vw")){var F=O/this.window.innerWidth*100;O="".concat(F,"vw")}else if(S.endsWith("vh")){var P=O/this.window.innerHeight*100;O="".concat(P,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var D=x/y.height*100;x="".concat(D,"%")}else if(v.endsWith("vw")){var F=x/this.window.innerWidth*100;x="".concat(F,"vw")}else if(v.endsWith("vh")){var P=x/this.window.innerHeight*100;x="".concat(P,"vh")}}var K={width:this.createSizeForCssProperty(O,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?K.flexBasis=K.width:this.flexDir==="column"&&(K.flexBasis=K.height);var ee=this.state.width!==K.width,Y=this.state.height!==K.height,ve=this.state.flexBasis!==K.flexBasis,z=ee||Y||ve;z&&En.flushSync(function(){n.setState(K)}),this.props.onResize&&z&&this.props.onResize(r,h,this.resizable,M)}},t.prototype.onMouseUp=function(r){var n,i,s=this.state,l=s.isResizing,c=s.direction;s.original,!(!l||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,c,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,i;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(i=r.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,s=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,f=n.handleComponent;if(!i)return null;var g=Object.keys(i).map(function(p){return i[p]!==!1?A.jsx(QP,{direction:p,onResizeStart:r.onResizeStart,replaceStyles:s&&s[p],className:l&&l[p],children:f&&f[p]?f[p]:null},p):null});return A.jsx("div",{className:u,style:c,children:g})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return o5.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),i=pn(pn(pn({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&&(i.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return A.jsxs(s,pn({style:i,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&A.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(N.PureComponent);const a5={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},l5={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},kw=({depth:e=0,className:t,borderType:r,disabled:n})=>ce("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?l5[r]:"border-panel-border",a5[e],t),c5=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 i=e.match(/min-h-\[(\d+)px\]/);i&&(t.minHeight=parseInt(i[1],10));const s=e.match(/max-h-\[(\d+)px\]/);return s&&(t.maxHeight=parseInt(s[1],10)),t},Aw=N.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:i=10,maxWidth:s,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:f,size:g,grid:p,snap:h,lockAspectRatio:b=!1,enable:S,handleStyles:v={},handleClasses:y={},handleComponent:m={},style:w={},className:x,onResizeStart:O,onResize:_,onResizeStop:R,scale:H=1,bounds:I,snapGap:$,as:U="div",depth:j,disabled:M},D)=>{const F=kw({depth:j,className:x,disabled:M}),P=c5(x),K=g?{size:g}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},ee=f?{defaultSize:f}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},Y=N.useRef(null);return N.useImperativeHandle(D,()=>{var ve;return(ve=Y.current)==null?void 0:ve.resizable}),A.jsx(s5,{"data-qui":"Resizable",ref:Y,...K,...ee,minWidth:n??P.minWidth,minHeight:i??P.minHeight,maxWidth:s??P.maxWidth,maxHeight:l??P.maxHeight,grid:p,snap:h,lockAspectRatio:b,enable:S,handleStyles:v,handleClasses:y,handleComponent:m,style:w,className:ce("relative box-border",F),onResizeStart:O,onResize:_,onResizeStop:R,scale:H,bounds:I,snapGap:$,as:U,children:e})});Aw.displayName="Resizable";const Tw=({isDragging:e=!1,className:t})=>A.jsx("div",{className:ce("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:A.jsx("div",{className:ce("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});Tw.displayName="Handle";const bo={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Ml={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},u5=(e,t,r,n,i,s)=>({container:ce("inline-flex items-center",bo[e].gap,s),track:ce("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",bo[e].track,{[Ml[t].bg]:r&&!n&&!i,"bg-input-bg":!r&&!n||i,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:ce("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",bo[e].thumb,r?bo[e].thumbChecked:bo[e].thumbUnchecked,{[Ml[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ml[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ml[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:ce("font-medium text-body",bo[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Rw=N.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:i="md",color:s="primary",icons:l,onChange:c,className:u,id:f,name:g,...p},h)=>{const[b,S]=N.useState(r),v=t!==void 0,y=v?t:b,m=()=>{const x=!y;v||S(x),c==null||c(x)},w=u5(i,s,y,n,!!l,u);return A.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&A.jsx("label",{htmlFor:f,className:w.label,children:e}),A.jsxs("button",{ref:h,...p,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:n,onClick:m,name:g,id:f,className:w.track,children:[l&&A.jsx("span",{className:w.iconLeft,children:l.unchecked}),A.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&A.jsx("span",{className:w.iconRight,children:l.checked})]})]})});Rw.displayName="Toggle";N.createContext(null);const Gi=N.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:i,...s},l)=>{const c=kw({depth:e,className:t,borderType:n,disabled:i});return A.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":i,...s,children:r})});Gi.displayName="Panel";const fa={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"}},lc={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},d5=(e,t,r,n)=>ce("inline-flex items-center justify-center font-medium border",fa[e].container,lc[t].bg,lc[t].text,lc[t].border,fa[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),f5=(e,t,r)=>ce({[fa[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-button-text":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),p5=e=>ce(fa[e].text),Cw=(e,t,r)=>ce("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",fa[e].iconButton,lc[t].buttonHover,{"pointer-events-none":r}),Iw=N.createContext(null),Gc=()=>{const e=N.useContext(Iw);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Op=N.forwardRef(({size:e="md",color:t="primary",className:r,children:n,disabled:i=!1,onClick:s,...l},c)=>{const u={size:e,color:t,disabled:i},f=!!s;return A.jsx(Iw.Provider,{value:u,children:A.jsx("div",{"data-qui":"Pill",ref:c,onClick:s,className:ce(d5(e,t,i,f),r),...l,children:n})})});Op.displayName="Pill.Root";const kp=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i}=Gc();return A.jsx("span",{ref:n,className:ce(p5(i),e),...r,children:t})});kp.displayName="Pill.Text";const Ap=N.forwardRef(({className:e,children:t,label:r,position:n,...i},s)=>{const{size:l,color:c,disabled:u}=Gc(),f=!!r,g=A.jsx("span",{ref:s,className:ce(f5(l,c,f),e,{"opacity-60":u}),...i,children:t});return f&&!u?A.jsx(Ew,{label:r||"",position:n||"up",children:g}):g});Ap.displayName="Pill.Icon";const Pw=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,disabled:l}=Gc();return A.jsx("button",{ref:n,type:"button",disabled:l,className:ce(Cw(i,s,l),e),...r,children:t})});Pw.displayName="Pill.Button";const Tp=N.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...i},s)=>{const{size:l,color:c,disabled:u}=Gc();return A.jsx("button",{ref:s,type:"button",disabled:u,className:ce(Cw(l,c,u),e),onClick:t,"aria-label":r,...i,children:n||A.jsx(Bo,{})})});Tp.displayName="Pill.Close";const Nw=N.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:i,closable:s=!1,className:l,children:c,disabled:u=!1,...f},g)=>A.jsxs(Op,{ref:g,size:e,color:t,className:l,disabled:u,...f,children:[n&&A.jsx(Ap,{children:n}),c||r&&A.jsx(kp,{children:r}),s&&A.jsx(Tp,{onClose:i})]}));Nw.displayName="Pill";Object.assign(Nw,{Root:Op,Text:kp,Icon:Ap,Button:Pw,Close:Tp});function yo(e,t,r){let n=r.initialDeps??[],i,s=!0;function l(){var c,u,f;let g;r.key&&(c=r.debug)!=null&&c.call(r)&&(g=Date.now());const p=e();if(!(p.length!==n.length||p.some((b,S)=>n[S]!==b)))return i;n=p;let h;if(r.key&&(u=r.debug)!=null&&u.call(r)&&(h=Date.now()),i=t(...p),r.key&&(f=r.debug)!=null&&f.call(r)){const b=Math.round((Date.now()-g)*100)/100,S=Math.round((Date.now()-h)*100)/100,v=S/16,y=(m,w)=>{for(m=String(m);m.length<w;)m=" "+m;return m};console.info(`%c⏱ ${y(S,5)} /${y(b,5)} ms`,`
|
|
15
|
+
font-size: .6rem;
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return r!=null&&r.onChange&&!(s&&r.skipInitialOnChange)&&r.onChange(i),s=!1,i}return l.updateDeps=c=>{n=c},l}function Dm(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const h5=(e,t)=>Math.abs(e-t)<1.01,g5=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Lm=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},v5=e=>e,m5=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},b5=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=l=>{const{width:c,height:u}=l;t({width:Math.round(c),height:Math.round(u)})};if(i(Lm(r)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(l=>{const c=()=>{const u=l[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(Lm(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},zm={passive:!0},$m=typeof window>"u"?!0:"onscrollend"in window,y5=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const s=e.options.useScrollendEvent&&$m?()=>{}:g5(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=g=>()=>{const{horizontal:p,isRtl:h}=e.options;i=p?r.scrollLeft*(h&&-1||1):r.scrollTop,s(),t(i,g)},c=l(!0),u=l(!1);r.addEventListener("scroll",c,zm);const f=e.options.useScrollendEvent&&$m;return f&&r.addEventListener("scrollend",u,zm),()=>{r.removeEventListener("scroll",c),f&&r.removeEventListener("scrollend",u)}},w5=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},x5=(e,{adjustments:t=0,behavior:r},n)=>{var i,s;const l=e+t;(s=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[n.options.horizontal?"left":"top"]:l,behavior:r})};class S5{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var r,n,i;return((i=(n=(r=this.targetWindow)==null?void 0:r.performance)==null?void 0:n.now)==null?void 0:i.call(n))??Date.now()},this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const l=()=>{const c=s.target,u=this.indexFromElement(c);if(!c.isConnected){this.observer.unobserve(c);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(c,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),r=null},observe:i=>{var s;return(s=n())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=n())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:v5,rangeExtractor:m5,onChange:()=>{},measureElement:w5,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=yo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,s=new Map;for(let l=n-1;l>=0;l--){const c=r[l];if(i.has(c.lane))continue;const u=s.get(c.lane);if(u==null||c.end>u.end?s.set(c.lane,c):c.end<u.end&&i.set(c.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=yo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,n,i,s,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==c&&(this.lanesChangedFlag=!0),this.prevLanes=c,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c}),{key:!1}),this.getMeasurements=yo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c},u)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const h of this.laneAssignments.keys())h>=r&&this.laneAssignments.delete(h);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const g=this.measurementsCache.slice(0,f),p=new Array(c).fill(void 0);for(let h=0;h<f;h++){const b=g[h];b&&(p[b.lane]=h)}for(let h=f;h<r;h++){const b=s(h),S=this.laneAssignments.get(h);let v,y;if(S!==void 0&&this.options.lanes>1){v=S;const O=p[v],_=O!==void 0?g[O]:void 0;y=_?_.end+this.options.gap:n+i}else{const O=this.options.lanes===1?g[h-1]:this.getFurthestMeasurement(g,h);y=O?O.end+this.options.gap:n+i,v=O?O.lane:h%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(h,v)}const m=u.get(b),w=typeof m=="number"?m:this.options.estimateSize(h),x=y+w;g[h]={index:h,start:y,size:w,end:x,key:b,lane:v},p[v]=h}return this.measurementsCache=g,g},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=yo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,n,i,s)=>this.range=r.length>0&&n>0?E5({measurements:r,outerSize:n,scrollOffset:i,lanes:s}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=yo(()=>{let r=null,n=null;const i=this.calculateRange();return i&&(r=i.startIndex,n=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,i,s,l)=>s===null||l===null?[]:r({startIndex:s,endIndex:l,overscan:n,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=r=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(i!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,i-s),c=Math.min(this.options.count-1,i+s);return r>=l&&r<=c}return!0},this.measureElement=r=>{if(!r){this.elementsCache.forEach((l,c)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(c))});return}const n=this.indexFromElement(r),i=this.options.getItemKey(n),s=this.elementsCache.get(i);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(i,r)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(r,void 0,this))},this.resizeItem=(r,n)=>{var i;const s=this.measurementsCache[r];if(!s)return;const l=this.itemSizeCache.get(s.key)??s.size,c=n-l;c!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",c),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,n)),this.notify(!1))},this.getVirtualItems=yo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let s=0,l=r.length;s<l;s++){const c=r[s],u=n[c];i.push(u)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Dm(n[Mw(0,n.length-1,i=>Dm(n[i]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,n,i=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=r>=l+s?"end":"start"),n==="center"?r+=(i-s)/2:n==="end"&&(r-=s);const c=this.getMaxScrollOffset();return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.getSize(),s=this.getScrollOffset(),l=this.measurementsCache[r];if(!l)return;if(n==="auto")if(l.end>=s+i-this.options.scrollPaddingEnd)n="end";else if(l.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];if(n==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),n];const c=n==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,n,l.size),n]},this.scrollToOffset=(r,{align:n="start",behavior:i="auto"}={})=>{const s=this.getOffsetForAlignment(r,n),l=this.now();this.scrollState={index:null,align:n,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(r,{align:n="auto",behavior:i="auto"}={})=>{r=Math.max(0,Math.min(r,this.options.count-1));const s=this.getOffsetForIndex(r,n);if(!s)return;const[l,c]=s,u=this.now();this.scrollState={index:r,align:c,behavior:i,startedAt:u,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(r,{behavior:n="auto"}={})=>{const i=this.getScrollOffset()+r,s=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;if(n.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((r=n[n.length-1])==null?void 0:r.end)??0;else{const s=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&s.some(c=>c===null);){const c=n[l];s[c.lane]===null&&(s[c.lane]=c.end),l--}i=Math.max(...s.filter(c=>c!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=t?t[0]:this.scrollState.lastTargetOffset,n=1,i=r!==this.scrollState.lastTargetOffset;if(!i&&h5(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.scrollState=null;return}}else this.scrollState.stableFrames=0,i&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Mw=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,s=r(i);if(s<n)e=i+1;else if(s>n)t=i-1;else return i}return e>0?e-1:0};function E5({measurements:e,outerSize:t,scrollOffset:r,lanes:n}){const i=e.length-1,s=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:i};let l=Mw(0,i,s,r),c=l;if(n===1)for(;c<i&&e[c].end<r+t;)c++;else if(n>1){const u=Array(n).fill(0);for(;c<i&&u.some(g=>g<r+t);){const g=e[c];u[g.lane]=g.end,c++}const f=Array(n).fill(r+t);for(;l>=0&&f.some(g=>g>=r);){const g=e[l];f[g.lane]=g.start,l--}l=Math.max(0,l-l%n),c=Math.min(i,c+(n-1-c%n))}return{startIndex:l,endIndex:c}}const jm=typeof document<"u"?V.useLayoutEffect:V.useEffect;function _5({useFlushSync:e=!0,...t}){const r=V.useReducer(()=>({}),{})[1],n={...t,onChange:(s,l)=>{var c;e&&l?En.flushSync(r):r(),(c=t.onChange)==null||c.call(t,s,l)}},[i]=V.useState(()=>new S5(n));return i.setOptions(n),jm(()=>i._didMount(),[]),jm(()=>i._willUpdate()),i}function O5(e){return _5({observeElementRect:b5,observeElementOffset:y5,scrollToFn:x5,...e})}const k5=N.createContext(null),Ut=()=>{const e=N.useContext(k5);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Tt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},ht={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},A5=({size:e,color:t,isDisabled:r,hasMessage:n,isInvalid:i,isFocused:s,menuPlacement:l})=>{const c=ht[i?"negative":t];return ce("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",s&&l?l==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",c.control,n?["ring-1",c.messageBorder]:["border",r?"border-input-border":s?c.controlFocused:`border-select-border focus-within:${c.controlFocused}`],Tt[e].trigger,{"ring-1":n,[c.controlDisabled]:r})},T5=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=ht[t];return ce("transition-colors duration-200 rounded max-h-full h-fit px-0.5",Tt[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.iconAction:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.iconActionHover]:n&&!r,"pointer-events-none":!n})},R5=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:i,hasMessage:s,hasGroup:l,menuPlacement:c})=>{const u=ht[i?"negative":t];return l?ce("flex items-center justify-between flex-1 min-w-0",Tt[e].control,"bg-transparent border-0",{[u.controlDisabled]:r}):ce("flex items-center justify-between",n&&c?c==="top"?"rounded-b":"rounded-t":"rounded",Tt[e].control,u.control,s?["ring-1",u.messageBorder]:["border",r?"border-input-border":n?u.controlFocused:`border-select-border
|
|
18
|
+
focus-within:${u.controlFocused}`],{[u.controlDisabled]:r})},C5=({isMulti:e})=>ce("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),I5=({size:e,color:t})=>ce("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",Tt[e].input,ht[t].placeholder),P5=({size:e,color:t})=>ce("select-none truncate",Tt[e].placeholder,ht[t].placeholder),N5=({size:e,color:t,isDisabled:r})=>ce("truncate",Tt[e].singleValue,r?ht[t].singleValueDisabled:ht[t].singleValue),M5=({size:e,color:t,isDisabled:r,isFocused:n})=>ce("inline-flex items-center rounded-xs",Tt[e].multiValue,r?ht[t].multiValueDisabled:ht[t].multiValue,{"border border-white":n&&!r}),D5=({size:e})=>ce("truncate",Tt[e].multiValueLabel),L5=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center cursor-pointer transition-colors",Tt[e].multiValueRemove,ht[t].multiValueRemove),Dw=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center transition-colors rounded",Tt[e].clearIndicator,r?"hidden":[ht[t].clearIndicator,ht[t].clearIndicatorHover]),z5=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center transition-colors rounded",Tt[e].dropdownIndicator,r?"text-grey-200":[ht[t].dropdownIndicator,ht[t].dropdownIndicatorHover]),$5=({size:e,placement:t,hasMessage:r,color:n,hasGroup:i})=>{const s=t==="top";return ce("absolute z-50 overflow-hidden border",i?"-left-px -right-px":"w-full",ht[n].menu,{[ht[n].messageBorder]:r},s?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",Tt[e].menu)},j5=({size:e})=>ce("overflow-y-auto",Tt[e].menuList,ht.primary.menuList),F5=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:i})=>ce("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Tt[e].option,{[ht[t].optionDisabled]:r,[ht[t].optionSelected]:i&&!r,[ht[t].optionFocused]:n&&!i&&!r,[ht[t].option]:!i&&!n&&!r}),H5=({size:e})=>ce(Tt[e].group),B5=({size:e,color:t})=>ce(Tt[e].groupHeading,ht[t].groupHeading),W5=({size:e})=>ce("text-grey-100",Tt[e].loadingMessage),V5=({size:e})=>ce(Tt[e].noOptionsMessage,ht.primary.noOptionsMessage),Fm=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function Es(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 wt(){return wt=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},wt.apply(null,arguments)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},zf(e,t)}function U5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zf(e,t)}var Dl={exports:{}},Pd={exports:{}},Ge={};/** @license React v16.13.1
|
|
19
|
+
* react-is.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Hm;function q5(){if(Hm)return Ge;Hm=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,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Ge.AsyncMode=u,Ge.ConcurrentMode=f,Ge.ContextConsumer=c,Ge.ContextProvider=l,Ge.Element=t,Ge.ForwardRef=g,Ge.Fragment=n,Ge.Lazy=S,Ge.Memo=b,Ge.Portal=r,Ge.Profiler=s,Ge.StrictMode=i,Ge.Suspense=p,Ge.isAsyncMode=function(_){return O(_)||x(_)===u},Ge.isConcurrentMode=O,Ge.isContextConsumer=function(_){return x(_)===c},Ge.isContextProvider=function(_){return x(_)===l},Ge.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ge.isForwardRef=function(_){return x(_)===g},Ge.isFragment=function(_){return x(_)===n},Ge.isLazy=function(_){return x(_)===S},Ge.isMemo=function(_){return x(_)===b},Ge.isPortal=function(_){return x(_)===r},Ge.isProfiler=function(_){return x(_)===s},Ge.isStrictMode=function(_){return x(_)===i},Ge.isSuspense=function(_){return x(_)===p},Ge.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ge.typeOf=x,Ge}var et={};/** @license React v16.13.1
|
|
26
|
+
* react-is.development.js
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/var Bm;function G5(){return Bm||(Bm=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,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===f||Z===s||Z===i||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===g||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function O(Z){if(typeof Z=="object"&&Z!==null){var Te=Z.$$typeof;switch(Te){case t:var ge=Z.type;switch(ge){case u:case f:case n:case s:case i:case p:return ge;default:var at=ge&&ge.$$typeof;switch(at){case c:case g:case S:case b:case l:return at;default:return Te}}case r:return Te}}}var _=u,R=f,H=c,I=l,$=t,U=g,j=n,M=S,D=b,F=r,P=s,K=i,ee=p,Y=!1;function ve(Z){return Y||(Y=!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(Z)||O(Z)===u}function z(Z){return O(Z)===f}function W(Z){return O(Z)===c}function X(Z){return O(Z)===l}function te(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return O(Z)===g}function oe(Z){return O(Z)===n}function ae(Z){return O(Z)===S}function ne(Z){return O(Z)===b}function de(Z){return O(Z)===r}function he(Z){return O(Z)===s}function fe(Z){return O(Z)===i}function ye(Z){return O(Z)===p}et.AsyncMode=_,et.ConcurrentMode=R,et.ContextConsumer=H,et.ContextProvider=I,et.Element=$,et.ForwardRef=U,et.Fragment=j,et.Lazy=M,et.Memo=D,et.Portal=F,et.Profiler=P,et.StrictMode=K,et.Suspense=ee,et.isAsyncMode=ve,et.isConcurrentMode=z,et.isContextConsumer=W,et.isContextProvider=X,et.isElement=te,et.isForwardRef=J,et.isFragment=oe,et.isLazy=ae,et.isMemo=ne,et.isPortal=de,et.isProfiler=he,et.isStrictMode=fe,et.isSuspense=ye,et.isValidElementType=x,et.typeOf=O})()),et}var Wm;function Lw(){return Wm||(Wm=1,process.env.NODE_ENV==="production"?Pd.exports=q5():Pd.exports=G5()),Pd.exports}/*
|
|
33
|
+
object-assign
|
|
34
|
+
(c) Sindre Sorhus
|
|
35
|
+
@license MIT
|
|
36
|
+
*/var Nd,Vm;function Z5(){if(Vm)return Nd;Vm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nd=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},Nd}var Md,Um;function Rp(){if(Um)return Md;Um=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Md=e,Md}var qm,Gm;function zw(){return Gm||(Gm=1,qm=Function.call.bind(Object.prototype.hasOwnProperty)),qm}var Dd,Zm;function K5(){if(Zm)return Dd;Zm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rp(),r={},n=zw();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Dd=i,Dd}var Ld,Km;function Y5(){if(Km)return Ld;Km=1;var e=Lw(),t=Z5(),r=Rp(),n=zw(),i=K5(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Ld=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(z){var W=z&&(f&&z[f]||z[g]);if(typeof W=="function")return W}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:U(),objectOf:I,oneOf:H,oneOfType:$,shape:M,exact:D};function S(z,W){return z===W?z!==0||1/z===1/W:z!==z&&W!==W}function v(z,W){this.message=z,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var W={},X=0;function te(oe,ae,ne,de,he,fe,ye){if(de=de||h,fe=fe||ne,ye!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=de+":"+ne;!W[Te]&&X<3&&(s("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Te]=!0,X++)}}return ae[ne]==null?oe?ae[ne]===null?new v("The "+he+" `"+fe+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+he+" `"+fe+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:z(ae,ne,de,he,fe)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(z){function W(X,te,J,oe,ae,ne){var de=X[te],he=K(de);if(he!==z){var fe=ee(de);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+fe+"` supplied to `"+J+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(W)}function w(){return y(l)}function x(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=X[te];if(!Array.isArray(ne)){var de=K(ne);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var fe=z(ne,he,J,oe,ae+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(W)}function O(){function z(W,X,te,J,oe){var ae=W[X];if(!c(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(z)}function _(){function z(W,X,te,J,oe){var ae=W[X];if(!e.isValidElementType(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(z)}function R(z){function W(X,te,J,oe,ae){if(!(X[te]instanceof z)){var ne=z.name||h,de=ve(X[te]);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(W)}function H(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function W(X,te,J,oe,ae){for(var ne=X[te],de=0;de<z.length;de++)if(S(ne,z[de]))return null;var he=JSON.stringify(z,function(fe,ye){var Z=ee(ye);return Z==="symbol"?String(ye):ye});return new v("Invalid "+oe+" `"+ae+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return y(W)}function I(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var fe=z(ne,he,J,oe,ae+"."+he,r);if(fe instanceof Error)return fe}return null}return y(W)}function $(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<z.length;W++){var X=z[W];if(typeof X!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(X)+" at index "+W+"."),l}function te(J,oe,ae,ne,de){for(var he=[],fe=0;fe<z.length;fe++){var ye=z[fe],Z=ye(J,oe,ae,ne,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Te=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+de+"` supplied to "+("`"+ae+"`"+Te+"."))}return y(te)}function U(){function z(W,X,te,J,oe){return F(W[X])?null:new v("Invalid "+J+" `"+oe+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(z)}function j(z,W,X,te,J){return new v((z||"React class")+": "+W+" type `"+X+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in z){var fe=z[he];if(typeof fe!="function")return j(J,oe,ae,he,ee(fe));var ye=fe(ne,he,J,oe,ae+"."+he,r);if(ye)return ye}return null}return y(W)}function D(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},X[te],z);for(var fe in he){var ye=z[fe];if(n(z,fe)&&typeof ye!="function")return j(J,oe,ae,fe,ee(ye));if(!ye)return new v("Invalid "+oe+" `"+ae+"` key `"+fe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(X[te],null," ")+`
|
|
37
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Z=ye(ne,fe,J,oe,ae+"."+fe,r);if(Z)return Z}return null}return y(W)}function F(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(F);if(z===null||c(z))return!0;var W=p(z);if(W){var X=W.call(z),te;if(W!==z.entries){for(;!(te=X.next()).done;)if(!F(te.value))return!1}else for(;!(te=X.next()).done;){var J=te.value;if(J&&!F(J[1]))return!1}}else return!1;return!0;default:return!1}}function P(z,W){return z==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(z){var W=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":P(W,z)?"symbol":W}function ee(z){if(typeof z>"u"||z===null)return""+z;var W=K(z);if(W==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return W}function Y(z){var W=ee(z);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Ld}var zd,Ym;function X5(){if(Ym)return zd;Ym=1;var e=Rp();function t(){}function r(){}return r.resetWarningCache=t,zd=function(){function n(l,c,u,f,g,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},zd}var Xm;function J5(){if(Xm)return Dl.exports;if(Xm=1,process.env.NODE_ENV!=="production"){var e=Lw(),t=!0;Dl.exports=Y5()(e.isElement,t)}else Dl.exports=X5()();return Dl.exports}var Q5=J5();const pe=lw(Q5);var $d={exports:{}},Ze={};/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react-is.production.min.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var Jm;function eN(){if(Jm)return Ze;Jm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(y){if(typeof y=="object"&&y!==null){var m=y.$$typeof;switch(m){case e:switch(y=y.type,y){case r:case i:case n:case f:case g:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case u:case h:case p:case s:return y;default:return m}}case t:return m}}}return Ze.ContextConsumer=l,Ze.ContextProvider=s,Ze.Element=e,Ze.ForwardRef=u,Ze.Fragment=r,Ze.Lazy=h,Ze.Memo=p,Ze.Portal=t,Ze.Profiler=i,Ze.StrictMode=n,Ze.Suspense=f,Ze.SuspenseList=g,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(y){return v(y)===l},Ze.isContextProvider=function(y){return v(y)===s},Ze.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Ze.isForwardRef=function(y){return v(y)===u},Ze.isFragment=function(y){return v(y)===r},Ze.isLazy=function(y){return v(y)===h},Ze.isMemo=function(y){return v(y)===p},Ze.isPortal=function(y){return v(y)===t},Ze.isProfiler=function(y){return v(y)===i},Ze.isStrictMode=function(y){return v(y)===n},Ze.isSuspense=function(y){return v(y)===f},Ze.isSuspenseList=function(y){return v(y)===g},Ze.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===f||y===g||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===l||y.$$typeof===u||y.$$typeof===S||y.getModuleId!==void 0)},Ze.typeOf=v,Ze}var tt={};/**
|
|
46
|
+
* @license React
|
|
47
|
+
* react-is.development.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var Qm;function tN(){return Qm||(Qm=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"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,v=!1,y=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function O(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===i||w||ge===n||ge===f||ge===g||m||ge===b||S||v||y||typeof ge=="object"&&ge!==null&&(ge.$$typeof===h||ge.$$typeof===p||ge.$$typeof===s||ge.$$typeof===l||ge.$$typeof===u||ge.$$typeof===x||ge.getModuleId!==void 0))}function _(ge){if(typeof ge=="object"&&ge!==null){var at=ge.$$typeof;switch(at){case e:var qt=ge.type;switch(qt){case r:case i:case n:case f:case g:return qt;default:var Dt=qt&&qt.$$typeof;switch(Dt){case c:case l:case u:case h:case p:case s:return Dt;default:return at}}case t:return at}}}var R=l,H=s,I=e,$=u,U=r,j=h,M=p,D=t,F=i,P=n,K=f,ee=g,Y=!1,ve=!1;function z(ge){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(ge){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(ge){return _(ge)===l}function te(ge){return _(ge)===s}function J(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function oe(ge){return _(ge)===u}function ae(ge){return _(ge)===r}function ne(ge){return _(ge)===h}function de(ge){return _(ge)===p}function he(ge){return _(ge)===t}function fe(ge){return _(ge)===i}function ye(ge){return _(ge)===n}function Z(ge){return _(ge)===f}function Te(ge){return _(ge)===g}tt.ContextConsumer=R,tt.ContextProvider=H,tt.Element=I,tt.ForwardRef=$,tt.Fragment=U,tt.Lazy=j,tt.Memo=M,tt.Portal=D,tt.Profiler=F,tt.StrictMode=P,tt.Suspense=K,tt.SuspenseList=ee,tt.isAsyncMode=z,tt.isConcurrentMode=W,tt.isContextConsumer=X,tt.isContextProvider=te,tt.isElement=J,tt.isForwardRef=oe,tt.isFragment=ae,tt.isLazy=ne,tt.isMemo=de,tt.isPortal=he,tt.isProfiler=fe,tt.isStrictMode=ye,tt.isSuspense=Z,tt.isSuspenseList=Te,tt.isValidElementType=O,tt.typeOf=_})()),tt}var e0;function rN(){return e0||(e0=1,process.env.NODE_ENV==="production"?$d.exports=eN():$d.exports=tN()),$d.exports}var t0=rN();const r0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,n0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ll=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return n0(r.overflowY,t)||n0(r.overflowX,t)||(n=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)})(e)}return!1},zl=(e,t,r,n,i,s,l,c)=>s<e&&l>t||s>e&&l<t?0:s<=e&&c<=r||l>=t&&c>=r?s-e-n:l>t&&c<r||s<e&&c>r?l-t+i:0,nN=e=>e.parentElement??(e.getRootNode().host||null),iN=(e,t)=>{var r,n,i,s;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:D=>D!==c;if(!r0(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,p=[];let h=e;for(;r0(h)&&f(h);){if(h=nN(h),h===g){p.push(h);break}h!=null&&h===document.body&&Ll(h)&&!Ll(document.documentElement)||h!=null&&Ll(h,u)&&p.push(h)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:v,scrollY:y}=window,{height:m,width:w,top:x,right:O,bottom:_,left:R}=e.getBoundingClientRect(),{top:H,right:I,left:$}=(D=>{const F=window.getComputedStyle(D);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let U=x-H,j=l==="center"?R+w/2-$+I:l==="end"?O+I:R-$;const M=[];for(let D=0;D<p.length;D++){const F=p[D],{height:P,width:K,top:ee,right:Y,bottom:ve,left:z}=F.getBoundingClientRect();if(x>=0&&R>=0&&_<=S&&O<=b&&(F===g&&!Ll(F)||x>=ee&&_<=ve&&R>=z&&O<=Y))return M;const W=getComputedStyle(F),X=parseInt(W.borderLeftWidth,10),te=parseInt(W.borderTopWidth,10),J=parseInt(W.borderRightWidth,10),oe=parseInt(W.borderBottomWidth,10);let ae=0,ne=0;const de="offsetWidth"in F?F.offsetWidth-F.clientWidth-X-J:0,he="offsetHeight"in F?F.offsetHeight-F.clientHeight-te-oe:0,fe="offsetWidth"in F?F.offsetWidth===0?0:K/F.offsetWidth:0,ye="offsetHeight"in F?F.offsetHeight===0?0:P/F.offsetHeight:0;if(g===F)ae=zl(y,y+S,S,te,oe,y+U,y+U+m,m),ne=l==="start"?j:l==="center"?j-b/2:l==="end"?j-b:zl(v,v+b,b,X,J,v+j,v+j+w,w),ae=Math.max(0,ae+y),ne=Math.max(0,ne+v);else{ae=zl(ee,ve,P,te,oe+he,U,U+m,m),ne=l==="start"?j-z-X:l==="center"?j-(z+K/2)+de/2:l==="end"?j-Y+J+de:zl(z,Y,K,X,J+de,j,j+w,w);const{scrollLeft:Z,scrollTop:Te}=F;ae=ye===0?0:Math.max(0,Math.min(Te+ae/ye,F.scrollHeight-P/ye+he)),ne=fe===0?0:Math.max(0,Math.min(Z+ne/fe,F.scrollWidth-K/fe+de)),U+=Te-ae,j+=Z-ne}M.push({el:F,top:ae,left:ne})}return M};var $o=function(){return $o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$o.apply(this,arguments)},oN=0;function i0(e){return typeof e=="function"?e:Dn}function Dn(){}function $w(e,t){if(e){var r=iN(e,{boundary:t});r.forEach(function(n){var i=n.el,s=n.top,l=n.left;i.scrollTop=s,i.scrollLeft=l})}}function o0(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 i(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return i.cancel=n,i}function cn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(s)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function s0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function sN(){return String(oN++)}function aN(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 a0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function jw(e){return typeof e.type=="string"}function Fw(e){return e.props}function lN(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var cN=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function $l(e){e===void 0&&(e={});var t={};return cN.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function uN(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=$f(t,n)?t[n]:e[n],r},{})}function $f(e,t){return e[t]!==void 0}function l0(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function dN(e){return Object.prototype.toString.call(e)==="[object Object]"}function jd(e,t,r,n,i){var s=r.length;if(s===0)return-1;var l=s-1;(typeof e!="number"||e<0||e>l)&&(e=t>0?-1:l+1);var c=e+t;c<0?c=l:c>l&&(c=0);var u=Rc(c,t<0,r,n,i);return u===-1?e>=s?-1:e:u}function Rc(e,t,r,n,i){i===void 0&&(i=!1);var s=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<s;c++)if(!n(r[c],c))return c;return i?Rc(t?s-1:0,t,r,n):-1}function c0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(i){return i&&(o0(i,e,r)||n&&o0(i,r.document.activeElement,r))})}var Ip=Dn;process.env.NODE_ENV!=="production"&&(Ip=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(i){t[i]!==void 0&&r[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+n):t[i]===void 0&&r[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+n)})});var fN=Cp(function(e){Hw(e).textContent=""},500);function Hw(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 Bw(e,t){if(!(!e||!t)){var r=Hw(t);r.textContent=e,fN(t)}}var Ww=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Vw=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Uw=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,cc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,uc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,qw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Gw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Zw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Kw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Yw=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Xw=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Jw=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Qw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,jf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,ex=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,tx=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,rx=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,pN=Object.freeze({__proto__:null,blurButton:ex,blurInput:Xw,changeInput:Jw,clickButton:jf,clickItem:Yw,controlledPropUpdatedSelectedItem:tx,itemMouseEnter:Uw,keyDownArrowDown:uc,keyDownArrowUp:cc,keyDownEnd:Kw,keyDownEnter:Gw,keyDownEscape:qw,keyDownHome:Zw,keyDownSpaceButton:Qw,mouseUp:Vw,touchEnd:rx,unknown:Ww}),hN=["refKey","ref"],gN=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],vN=["onKeyDown","onBlur","onChange","onInput","onChangeText"],mN=["refKey","ref"],bN=["onMouseMove","onMouseDown","onClick","onPress","index","item"],yN=(function(){var e=(function(t){function r(i){var s;s=t.call(this,i)||this,s.id=s.props.id||"downshift-"+sN(),s.menuId=s.props.menuId||s.id+"-menu",s.labelId=s.props.labelId||s.id+"-label",s.inputId=s.props.inputId||s.id+"-input",s.getItemId=s.props.getItemId||function(w){return s.id+"-item-"+w},s.items=[],s.itemCount=null,s.previousResultCount=0,s.timeoutIds=[],s.internalSetTimeout=function(w,x){var O=setTimeout(function(){s.timeoutIds=s.timeoutIds.filter(function(_){return _!==O}),w()},x);s.timeoutIds.push(O)},s.setItemCount=function(w){s.itemCount=w},s.unsetItemCount=function(){s.itemCount=null},s.isItemDisabled=function(w,x){var O=s.getItemNodeFromIndex(x);return O&&O.hasAttribute("disabled")},s.setHighlightedIndex=function(w,x){w===void 0&&(w=s.props.defaultHighlightedIndex),x===void 0&&(x={}),x=$l(x),s.internalSetState(wt({highlightedIndex:w},x))},s.clearSelection=function(w){s.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:s.props.defaultHighlightedIndex,isOpen:s.props.defaultIsOpen},w)},s.selectItem=function(w,x,O){x=$l(x),s.internalSetState(wt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,selectedItem:w,inputValue:s.props.itemToString(w)},x),O)},s.selectItemAtIndex=function(w,x,O){var _=s.items[w];_!=null&&s.selectItem(_,x,O)},s.selectHighlightedItem=function(w,x){return s.selectItemAtIndex(s.getState().highlightedIndex,w,x)},s.internalSetState=function(w,x){var O,_,R={},H=typeof w=="function";return!H&&w.hasOwnProperty("inputValue")&&s.props.onInputValueChange(w.inputValue,wt({},s.getStateAndHelpers(),w)),s.setState(function(I){var $;I=s.getState(I);var U=H?w(I):w;U=s.props.stateReducer(I,U),O=U.hasOwnProperty("selectedItem");var j={};return O&&U.selectedItem!==I.selectedItem&&(_=U.selectedItem),($=U).type||($.type=Ww),Object.keys(U).forEach(function(M){I[M]!==U[M]&&(R[M]=U[M]),M!=="type"&&(U[M],$f(s.props,M)||(j[M]=U[M]))}),H&&U.hasOwnProperty("inputValue")&&s.props.onInputValueChange(U.inputValue,wt({},s.getStateAndHelpers(),U)),j},function(){i0(x)();var I=Object.keys(R).length>1;I&&s.props.onStateChange(R,s.getStateAndHelpers()),O&&s.props.onSelect(w.selectedItem,s.getStateAndHelpers()),_!==void 0&&s.props.onChange(_,s.getStateAndHelpers()),s.props.onUserAction(R,s.getStateAndHelpers())})},s.rootRef=function(w){return s._rootNode=w},s.getRootProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,H=R===void 0?"ref":R,I=_.ref,$=Es(_,hN),U=x===void 0?{}:x,j=U.suppressRefError,M=j===void 0?!1:j;s.getRootProps.called=!0,s.getRootProps.refKey=H,s.getRootProps.suppressRefError=M;var D=s.getState(),F=D.isOpen;return wt((O={},O[H]=s0(I,s.rootRef),O.role="combobox",O["aria-expanded"]=F,O["aria-haspopup"]="listbox",O["aria-owns"]=F?s.menuId:void 0,O["aria-labelledby"]=s.labelId,O),$)},s.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?5:1;this.moveHighlightedIndex(O,{type:uc})}else this.internalSetState({isOpen:!0,type:uc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),H=R.highlightedIndex,I=jd(H,1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(I,{type:uc})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?-5:-1;this.moveHighlightedIndex(O,{type:cc})}else this.internalSetState({isOpen:!0,type:cc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),H=R.highlightedIndex,I=jd(H,-1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(I,{type:cc})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),O=x.isOpen,_=x.highlightedIndex;if(O&&_!=null){w.preventDefault();var R=this.items[_],H=this.getItemNodeFromIndex(_);if(R==null||H&&H.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Gw})}}},Escape:function(w){w.preventDefault(),this.reset(wt({type:qw},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=wt({},s.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:Qw})}}),s.inputKeyDownHandlers=wt({},s.keyDownHandlers,{Home:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Rc(0,!1,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Zw})}}},End:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Rc(_-1,!0,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Kw})}}}}),s.getToggleButtonProps=function(w){var x=w===void 0?{}:w,O=x.onClick;x.onPress;var _=x.onKeyDown,R=x.onKeyUp,H=x.onBlur,I=Es(x,gN),$=s.getState(),U=$.isOpen,j={onClick:cn(O,s.buttonHandleClick),onKeyDown:cn(_,s.buttonHandleKeyDown),onKeyUp:cn(R,s.buttonHandleKeyUp),onBlur:cn(H,s.buttonHandleBlur)},M=I.disabled?{}:j;return wt({type:"button",role:"button","aria-label":U?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,I)},s.buttonHandleKeyUp=function(w){w.preventDefault()},s.buttonHandleKeyDown=function(w){var x=l0(w);s.buttonKeyDownHandlers[x]&&s.buttonKeyDownHandlers[x].call(s,w)},s.buttonHandleClick=function(w){if(w.preventDefault(),s.props.environment){var x=s.props.environment.document,O=x.body,_=x.activeElement;O&&O===_&&w.target.focus()}process.env.NODE_ENV==="test"?s.toggleMenu({type:jf}):s.internalSetTimeout(function(){return s.toggleMenu({type:jf})})},s.buttonHandleBlur=function(w){var x=w.target;s.internalSetTimeout(function(){if(!(s.isMouseDown||!s.props.environment)){var O=s.props.environment.document.activeElement;(O==null||O.id!==s.inputId)&&O!==x&&s.reset({type:ex})}})},s.getLabelProps=function(w){return wt({htmlFor:s.inputId,id:s.labelId},w)},s.getInputProps=function(w){var x=w===void 0?{}:w,O=x.onKeyDown,_=x.onBlur,R=x.onChange,H=x.onInput;x.onChangeText;var I=Es(x,vN),$,U={};$="onChange";var j=s.getState(),M=j.inputValue,D=j.isOpen,F=j.highlightedIndex;if(!I.disabled){var P;U=(P={},P[$]=cn(R,H,s.inputHandleChange),P.onKeyDown=cn(O,s.inputHandleKeyDown),P.onBlur=cn(_,s.inputHandleBlur),P)}return wt({"aria-autocomplete":"list","aria-activedescendant":D&&typeof F=="number"&&F>=0?s.getItemId(F):void 0,"aria-controls":D?s.menuId:void 0,"aria-labelledby":I&&I["aria-label"]?void 0:s.labelId,autoComplete:"off",value:M,id:s.inputId},U,I)},s.inputHandleKeyDown=function(w){var x=l0(w);x&&s.inputKeyDownHandlers[x]&&s.inputKeyDownHandlers[x].call(s,w)},s.inputHandleChange=function(w){s.internalSetState({type:Jw,isOpen:!0,inputValue:w.target.value,highlightedIndex:s.props.defaultHighlightedIndex})},s.inputHandleBlur=function(){s.internalSetTimeout(function(){var w;if(!(s.isMouseDown||!s.props.environment)){var x=s.props.environment.document.activeElement,O=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&s._rootNode&&s._rootNode.contains(x);O||s.reset({type:Xw})}})},s.menuRef=function(w){s._menuNode=w},s.getMenuProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,H=R===void 0?"ref":R,I=_.ref,$=Es(_,mN),U=x===void 0?{}:x,j=U.suppressRefError,M=j===void 0?!1:j;return s.getMenuProps.called=!0,s.getMenuProps.refKey=H,s.getMenuProps.suppressRefError=M,wt((O={},O[H]=s0(I,s.menuRef),O.role="listbox",O["aria-labelledby"]=$&&$["aria-label"]?void 0:s.labelId,O.id=s.menuId,O),$)},s.getItemProps=function(w){var x,O=w===void 0?{}:w,_=O.onMouseMove,R=O.onMouseDown,H=O.onClick;O.onPress;var I=O.index,$=O.item,U=$===void 0?process.env.NODE_ENV==="production"?void 0:lN("getItemProps","item"):$,j=Es(O,bN);I===void 0?(s.items.push(U),I=s.items.indexOf(U)):s.items[I]=U;var M="onClick",D=H,F=(x={onMouseMove:cn(_,function(){I!==s.getState().highlightedIndex&&(s.setHighlightedIndex(I,{type:Uw}),s.avoidScrolling=!0,s.internalSetTimeout(function(){return s.avoidScrolling=!1},250))}),onMouseDown:cn(R,function(K){K.preventDefault()})},x[M]=cn(D,function(){s.selectItemAtIndex(I,{type:Yw})}),x),P=j.disabled?{onMouseDown:F.onMouseDown}:F;return wt({id:s.getItemId(I),role:"option","aria-selected":s.getState().highlightedIndex===I},P,j)},s.clearItems=function(){s.items=[]},s.reset=function(w,x){w===void 0&&(w={}),w=$l(w),s.internalSetState(function(O){var _=O.selectedItem;return wt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,inputValue:s.props.itemToString(_)},w)},x)},s.toggleMenu=function(w,x){w===void 0&&(w={}),w=$l(w),s.internalSetState(function(O){var _=O.isOpen;return wt({isOpen:!_},_&&{highlightedIndex:s.props.defaultHighlightedIndex},w)},function(){var O=s.getState(),_=O.isOpen,R=O.highlightedIndex;_&&s.getItemCount()>0&&typeof R=="number"&&s.setHighlightedIndex(R,w),i0(x)()})},s.openMenu=function(w){s.internalSetState({isOpen:!0},w)},s.closeMenu=function(w){s.internalSetState({isOpen:!1},w)},s.updateStatus=Cp(function(){var w;if((w=s.props)!=null&&(w=w.environment)!=null&&w.document){var x=s.getState(),O=s.items[x.highlightedIndex],_=s.getItemCount(),R=s.props.getA11yStatusMessage(wt({itemToString:s.props.itemToString,previousResultCount:s.previousResultCount,resultCount:_,highlightedItem:O},x));s.previousResultCount=_,Bw(R,s.props.environment.document)}},200);var l=s.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,f=u===void 0?c:u,g=l.defaultIsOpen,p=l.initialIsOpen,h=p===void 0?g:p,b=l.initialInputValue,S=b===void 0?"":b,v=l.initialSelectedItem,y=v===void 0?null:v,m=s.getState({highlightedIndex:f,isOpen:h,inputValue:S,selectedItem:y});return m.selectedItem!=null&&s.props.initialInputValue===void 0&&(m.inputValue=s.props.itemToString(m.selectedItem)),s.state=m,s}U5(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},n.getState=function(i){return i===void 0&&(i=this.state),uN(i,this.props)},n.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},n.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},n.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},n.moveHighlightedIndex=function(i,s){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var f=jd(u,i,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(f,s)}},n.getStateAndHelpers=function(){var i=this.getState(),s=i.highlightedIndex,l=i.inputValue,c=i.selectedItem,u=i.isOpen,f=this.props.itemToString,g=this.id,p=this.getRootProps,h=this.getToggleButtonProps,b=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,y=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,O=this.selectItem,_=this.selectItemAtIndex,R=this.selectHighlightedItem,H=this.setHighlightedIndex,I=this.clearSelection,$=this.clearItems,U=this.reset,j=this.setItemCount,M=this.unsetItemCount,D=this.internalSetState;return{getRootProps:p,getToggleButtonProps:h,getLabelProps:b,getMenuProps:S,getInputProps:v,getItemProps:y,reset:U,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:O,selectItemAtIndex:_,selectHighlightedItem:R,setHighlightedIndex:H,clearSelection:I,clearItems:$,setItemCount:j,unsetItemCount:M,setState:D,itemToString:f,id:g,highlightedIndex:s,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var i=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&u0(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var s=function(){i.isMouseDown=!0},l=function(p){i.isMouseDown=!1;var h=c0(p.target,[i._rootNode,i._menuNode],i.props.environment);!h&&i.getState().isOpen&&i.reset({type:Vw},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},c=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},f=function(p){var h=c0(p.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!h&&i.getState().isOpen&&i.reset({type:rx},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},g=this.props.environment;g.addEventListener("mousedown",s),g.addEventListener("mouseup",l),g.addEventListener("touchstart",c),g.addEventListener("touchmove",u),g.addEventListener("touchend",f),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),g.removeEventListener("mousedown",s),g.removeEventListener("mouseup",l),g.removeEventListener("touchstart",c),g.removeEventListener("touchmove",u),g.removeEventListener("touchend",f)}}},n.shouldScroll=function(i,s){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=s.highlightedIndex===void 0?i:s,f=u.highlightedIndex,g=c&&this.getState().isOpen&&!i.isOpen,p=c!==f;return g||p},n.componentDidUpdate=function(i,s){process.env.NODE_ENV!=="production"&&(Ip(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&u0(this._menuNode,this.getMenuProps)),$f(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:tx,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(s,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var i=a0(this.props.children,Dn);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 s=a0(i(this.getStateAndHelpers()));if(!s)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&wN(s,this.getRootProps),s;if(jw(s))return N.cloneElement(s,this.getRootProps(Fw(s)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(N.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:aN,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&dN(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:Dn,onInputValueChange:Dn,onUserAction:Dn,onChange:Dn,onSelect:Dn,onOuterClick:Dn,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:$w},e.stateChangeTypes=pN,e})();process.env.NODE_ENV!=="production"&&(yN.propTypes={children:pe.func,defaultHighlightedIndex:pe.number,defaultIsOpen:pe.bool,initialHighlightedIndex:pe.number,initialSelectedItem:pe.any,initialInputValue:pe.string,initialIsOpen:pe.bool,getA11yStatusMessage:pe.func,itemToString:pe.func,onChange:pe.func,onSelect:pe.func,onStateChange:pe.func,onInputValueChange:pe.func,onUserAction:pe.func,onOuterClick:pe.func,selectedItemChanged:pe.func,stateReducer:pe.func,itemCount:pe.number,id:pe.string,environment:pe.shape({addEventListener:pe.func.isRequired,removeEventListener:pe.func.isRequired,document:pe.shape({createElement:pe.func.isRequired,getElementById:pe.func.isRequired,activeElement:pe.any.isRequired,body:pe.any.isRequired}).isRequired,Node:pe.func.isRequired}),suppressRefError:pe.bool,scrollIntoView:pe.func,selectedItem:pe.any,isOpen:pe.bool,inputValue:pe.string,highlightedIndex:pe.number,labelId:pe.string,inputId:pe.string,menuId:pe.string,getItemId:pe.func});function u0(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 wN(e,t){var r=t.refKey,n=r!=="ref",i=!jw(e);i&&!n&&!t0.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!t0.isForwardRef(e)&&!Fw(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function xN(e,t){return t.changes}Cp(function(e,t){Bw(e,t)},200);var ia={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:xN,scrollIntoView:$w,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function SN(){var e=N.useRef(!0);return N.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var dc={environment:pe.shape({addEventListener:pe.func.isRequired,removeEventListener:pe.func.isRequired,document:pe.shape({createElement:pe.func.isRequired,getElementById:pe.func.isRequired,activeElement:pe.any.isRequired,body:pe.any.isRequired}).isRequired,Node:pe.func.isRequired}),itemToString:pe.func,itemToKey:pe.func,stateReducer:pe.func},nx=wt({},dc,{getA11yStatusMessage:pe.func,highlightedIndex:pe.number,defaultHighlightedIndex:pe.number,initialHighlightedIndex:pe.number,isOpen:pe.bool,defaultIsOpen:pe.bool,initialIsOpen:pe.bool,selectedItem:pe.any,initialSelectedItem:pe.any,defaultSelectedItem:pe.any,id:pe.string,labelId:pe.string,menuId:pe.string,getItemId:pe.func,toggleButtonId:pe.string,onSelectedItemChange:pe.func,onHighlightedIndexChange:pe.func,onStateChange:pe.func,onIsOpenChange:pe.func,scrollIntoView:pe.func}),EN=$o($o({},nx),{items:pe.array.isRequired,isItemDisabled:pe.func});$o($o({},ia),{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 _N=wt({},nx,{items:pe.array.isRequired,isItemDisabled:pe.func,inputValue:pe.string,defaultInputValue:pe.string,initialInputValue:pe.string,inputId:pe.string,onInputValueChange:pe.func});process.env.NODE_ENV;wt({},ia,{isItemDisabled:function(){return!1}});var ON={stateReducer:dc.stateReducer,itemToKey:dc.itemToKey,environment:dc.environment,selectedItems:pe.array,initialSelectedItems:pe.array,defaultSelectedItems:pe.array,getA11yStatusMessage:pe.func,activeIndex:pe.number,initialActiveIndex:pe.number,defaultActiveIndex:pe.number,onActiveIndexChange:pe.func,onSelectedItemsChange:pe.func,keyNavigationNext:pe.string,keyNavigationPrevious:pe.string};ia.itemToKey,ia.stateReducer,ia.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 kN=N.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...i},s)=>{const{size:l,color:c,isDisabled:u,hasMessage:f,hasGroup:g,downshift:p,isInvalid:h,menuPlacement:b}=Ut(),S=n??u,v=r??p.isOpen;return A.jsx("div",{ref:s,className:ce(R5({size:l,color:c,isDisabled:S,isFocused:!!v,isInvalid:h&&!p.isOpen,hasMessage:f,hasGroup:g,menuPlacement:p.isOpen?b:void 0}),e),"aria-disabled":S,"aria-invalid":h,role:"combobox",tabIndex:S?-1:0,...i,children:t})}),AN=({className:e,children:t,isMulti:r})=>A.jsx("div",{className:ce(C5({isMulti:r}),e),children:t}),fc=N.forwardRef(({isHidden:e,inputClassName:t,className:r,...n},i)=>{const{size:s,color:l}=Ut();return e?A.jsx("input",{ref:i,type:"text",className:r,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):A.jsx("input",{ref:i,type:"text",className:ce(I5({size:s,color:l}),t,r),...n})}),TN=({className:e,children:t})=>{const{size:r,color:n}=Ut();return A.jsx("div",{className:ce(P5({size:r,color:n}),e),children:t})},RN=({className:e,children:t,data:r,isDisabled:n})=>{const{size:i,color:s,getOptionLabel:l}=Ut();return A.jsx("div",{className:ce(N5({size:i,color:s,isDisabled:n}),e),children:t||l(r)})},ix=({className:e,children:t,data:r,isDisabled:n,isFocused:i,onRemove:s})=>{const{size:l,color:c,downshift:u,getOptionLabel:f}=Ut(),g=()=>{s?s(r):u.removeItem(r)};return A.jsxs("div",{className:ce(M5({size:l,color:c,isDisabled:n,isFocused:i}),e),children:[A.jsx("div",{className:D5({size:l}),children:t||f(r)}),!n&&A.jsx("div",{className:L5({size:l,color:c,isDisabled:!1}),onClick:g,children:A.jsx(Bo,{className:"w-3 h-3"})})]})},ox=({color:e,className:t,children:r,onClick:n,isDisabled:i,...s})=>{const{size:l,color:c,isDisabled:u,downshift:f}=Ut(),g=i??u,p=f.selectedItems.length>0;if(g||!p)return null;const h=b=>{b.stopPropagation(),n?n(b):f.clearSelection()};return A.jsx("div",{className:ce(Dw({size:l,color:e||c,isDisabled:g}),t),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:r||A.jsx(M2,{})})},CN=({className:e,children:t,onClick:r,isDisabled:n,...i})=>{const{size:s,color:l,isDisabled:c,downshift:u}=Ut(),f=n??c,g=u.inputValue.length>0&&u.isSearchable;if(f||!g)return null;const p=h=>{h.stopPropagation(),r?r(h):u.setInputValue("")};return A.jsx("div",{className:ce(Dw({size:s,color:l,isDisabled:f}),e),onClick:p,role:"button",tabIndex:0,"aria-label":"Clear selection",...i,children:t||A.jsx(Bo,{})})},sx=N.forwardRef(({color:e,className:t,children:r,onClick:n,isDisabled:i,...s},l)=>{const{size:c,color:u,isDisabled:f,downshift:g}=Ut(),p=i??f,h=g.isOpen,b=S=>{S.stopPropagation(),p||(n?n(S):g.toggleMenu())};return A.jsx("div",{ref:l,className:ce(z5({size:c,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:b,role:"button",tabIndex:p?-1:0,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,onMouseDown:S=>{S.preventDefault()},...s,children:r||A.jsx(sc,{className:ce("transition-transform duration-200",{"rotate-180":h})})})}),IN=N.forwardRef(({className:e,children:t,placement:r,...n},i)=>{const{size:s,hasMessage:l,color:c,hasGroup:u}=Ut();return A.jsx("div",{"data-qui":"SelectMenu",ref:i,className:ce($5({size:s,placement:r,hasMessage:l,color:c,hasGroup:u}),e),...n,children:t})}),PN=N.forwardRef(({className:e,children:t,maxHeight:r=300,totalHeight:n,...i},s)=>{const{size:l}=Ut();return A.jsx(_p,{scrollableNodeProps:{ref:s},className:ce(j5({size:l}),e),style:{maxHeight:r},...i,children:n!==void 0?A.jsx("div",{style:{height:n,position:"relative",width:"100%"},children:t}):t})}),pc=({className:e,children:t,data:r,isDisabled:n,isFocused:i,isSelected:s,innerProps:l,optionClassName:c,...u})=>{const{size:f,color:g,getOptionLabel:p}=Ut();return A.jsx("div",{"data-qui":"SelectOption",className:ce(F5({size:f,color:g,isDisabled:n,isFocused:i,isSelected:s}),c,e),...l,...u,children:t??p(r)})},ax=({className:e,children:t,data:r,label:n,renderGroupHeading:i})=>{const{size:s}=Ut();return A.jsxs("div",{"data-qui":"SelectOptionGroup",className:ce(H5({size:s}),e),children:[A.jsx(NN,{children:i?i(r):n||r.label}),t]})},NN=({className:e,children:t})=>{const{size:r,color:n}=Ut();return A.jsx("div",{className:ce(B5({size:r,color:n}),e),children:t})},Fd=({className:e,children:t,inputValue:r})=>{const{size:n}=Ut();return A.jsx("div",{className:ce(V5({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},MN=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,setHasGroup:f,menuVisible:g,menuPlacement:p}=Ut();return N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]),A.jsx("div",{ref:n,"data-qui":"SelectGroup",className:ce(A5({size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,isFocused:g,menuPlacement:g?p:void 0}),e),...r,children:t})}),DN=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=Ut(),g=r||f,p=T5({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"SelectIcon",className:ce(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),LN=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[i,s]=N.useState(null);return N.useLayoutEffect(()=>{if(t&&e&&r.current){const l=()=>{var c;const u=(c=r.current)==null?void 0:c.getBoundingClientRect();u&&s({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}}},[e,t,r]),e?t&&i?En.createPortal(A.jsx("div",{className:"absolute z-50",style:{top:i.top,left:i.left,width:i.width,height:i.height,pointerEvents:"none"},children:A.jsx("div",{className:"relative w-full h-full",children:A.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):A.jsx(A.Fragment,{children:n}):null},Hd=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},zN=N.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:i=!1,isSearchClearable:s=!1,clearSearchOnSelect:l=!1,isLoading:c=!1,isRequired:u=!1,hideIndicators:f=!1,hideDropdownIndicator:g=!1,searchPlacement:p="trigger",hideSelectedOptions:h=!1,onFocus:b,onBlur:S,renderMenuHeader:v,formatOptionLabel:y,renderOption:m,optionClassName:w,renderValue:x,renderGroupHeading:O,inputRef:_,controlShouldRenderValue:R=!0,name:H,id:I,onSelectionComplete:$,"aria-label":U,"aria-labelledby":j,"aria-describedby":M,children:D,usePortal:F=!1,virtualizeThreshold:P=100,...K},ee)=>{const{size:Y,isInvalid:ve,isDisabled:z,hasGroup:W,downshift:X,options:te=[],getOptionLabel:J,getOptionValue:oe,isOptionDisabled:ae,menuPlacement:ne,setMenuPlacement:de,menuVisible:he,setMenuVisible:fe}=Ut(),ye=N.useMemo(()=>{if(m)return m;if(y)return({data:Fe})=>y(Fe)},[m,y]),Z=N.useRef(null),Te=_||Z,ge=N.useRef(null),at=N.useRef(null),qt=N.useRef(null),{isOpen:Dt,openMenu:dr,selectedItem:bi,inputValue:Lt,highlightedIndex:Rt,getToggleButtonProps:zt,getMenuProps:Qr,getInputProps:Hr,getItemProps:Vn,isMulti:fr,isSearchable:er,multipleSelection:en}=X,{getDropdownProps:Un}=en;N.useLayoutEffect(()=>{if(!Dt||!ge.current)return;const Fe=ge.current.getBoundingClientRect(),xt=window.innerHeight-Fe.bottom;de(xt<300?"top":"bottom")},[Dt,de]),N.useLayoutEffect(()=>{const Fe=Dt&&!(r&&X.filteredItems.length===0);return fe(Fe),()=>fe(!1)},[Dt,r,X.filteredItems.length,fe]);const tr=fr?X.selectedItems??[]:bi?[bi]:[],yi=tr.length>0,Ko=s&&!z&&!f,Yi=i&&yi&&!z&&!f,Xi=!g&&!f,Yo=!yi&&(!er||!Lt)||!R,Ji={},Qi={};Object.entries(K).forEach(([Fe,xt])=>{Fe.startsWith("data-")||Fe.startsWith("aria-")||Fe==="role"?Ji[Fe]=xt:Qi[Fe]=xt});const eo=N.useMemo(()=>Hd([ge,ee]),[ee]),Pa=Qr({},{suppressRefError:!0}),wi=Un({preventKeyAction:Dt}),Na={ref:Te,disabled:z,required:u,name:H,id:I,"aria-label":U,"aria-labelledby":j,"aria-describedby":M,"aria-invalid":ve,onFocus:b,onBlur:S,...Qi},Ma=(Hr==null?void 0:Hr({...Na,...wi}))??Na,{ref:Xo,...Jo}=Ma,Qo=N.useMemo(()=>Hd([Xo,wi.ref]),[Xo,wi.ref]),fu=Fe=>tr.some(xt=>oe(xt)===oe(Fe)),Da=Fe=>h?Fe.filter(xt=>!fu(xt)):Fe,La=Fe=>h?Fe.map(xt=>({...xt,options:Da(xt.options)})).filter(xt=>xt.options.length>0):Fe,qn=Fm(te)?[]:Da(X.filteredItems),pu={sm:22,md:28,lg:36}[Y]??28,xi=qn.length>=P,Gn=O5({count:xi?qn.length:0,getScrollElement:()=>qt.current,estimateSize:()=>pu,overscan:5});N.useEffect(()=>{xi&&Dt&&Rt>=0&&Rt<qn.length&&Gn.scrollToIndex(Rt,{align:"auto"})},[Rt,xi,Dt]);const es=Fe=>{$==null||$(oe(Fe),Fe)},ts=er?{}:zt({disabled:z,...wi,ref:Hd([eo,wi.ref])});return A.jsxs("div",{className:ce({relative:!W,"flex-1 min-w-0":W}),children:[A.jsxs(kN,{...er?{ref:eo}:ts,...Ji,isFocused:he,isDisabled:z,onClick:Fe=>{Fe.stopPropagation(),er?dr():er||X.toggleMenu()},children:[D||A.jsxs(AN,{isMulti:fr,children:[fr&&R&&tr.map((Fe,xt)=>A.jsx(ix,{data:Fe,index:xt,isDisabled:z,children:x?x(Fe):void 0},oe(Fe))),!fr&&yi&&R&&!er&&A.jsx("div",{className:"flex items-center gap-2",children:A.jsx(RN,{data:tr[0],isDisabled:z,children:x?x(tr[0]):J(tr[0])})}),er&&p==="trigger"?A.jsx(fc,{ref:Qo,...Jo,placeholder:e}):A.jsxs(A.Fragment,{children:[A.jsx(fc,{ref:Qo,...Jo,isHidden:!0,readOnly:!0,value:tr.map(Fe=>oe(Fe)).join(",")}),Yo&&A.jsx(TN,{children:e})]})]}),A.jsxs("div",{className:ce("flex items-center size-fit gap-1",{hidden:!Yi&&!Xi}),children:[Ko&&A.jsx(CN,{}),Yi&&A.jsx(ox,{}),Xi&&A.jsx(sx,{...er?zt({disabled:z,"aria-label":Dt?"Close menu":"Open menu"}):{}})]})]}),A.jsx("div",{ref:Pa.ref,style:{display:"none"},"aria-hidden":"true"}),A.jsx(LN,{isOpen:Dt,usePortal:F,controlRef:ge,children:(()=>{const{ref:Fe,...xt}=Pa;return r&&X.filteredItems.length===0?A.jsx("div",{...xt,style:{display:"none"},"aria-hidden":"true"}):A.jsxs(IN,{ref:at,...xt,placement:ne,children:[v&&v(X),er&&p==="menu"&&A.jsx("div",{className:"p-2",children:A.jsx(fc,{ref:Qo,...Jo,autoFocus:!0,placeholder:e,onClick:Ct=>Ct.stopPropagation()})}),A.jsx(PN,{ref:qt,totalHeight:xi?Gn.getTotalSize():void 0,children:c?A.jsx("div",{className:W5({size:Y}),children:n}):X.filteredItems.length===0?A.jsx(Fd,{inputValue:Lt,children:typeof t=="function"?t(Lt):t}):Fm(te)?(()=>{const Ct=La(te);return Ct.length===0?A.jsx(Fd,{inputValue:Lt,children:typeof t=="function"?t(Lt):t}):Ct.map(It=>A.jsx(ax,{data:It,label:It.label,options:It.options,renderGroupHeading:O,children:It.options.map(rr=>{const kr=oe(rr),tn=tr.some(rs=>oe(rs)===kr),rn=X.filteredItems.findIndex(rs=>oe(rs)===kr),nn=Rt===rn,on=ae(rr),Si=Vn({item:rr,index:rn,onClick:()=>es(rr)});return A.jsx(pc,{...Si,data:rr,isDisabled:on,isFocused:nn,isSelected:tn,optionClassName:w,children:ye?ye({data:rr,isFocused:nn,isSelected:tn,isDisabled:on}):void 0},kr)})},It.label))})():qn.length===0?A.jsx(Fd,{inputValue:Lt,children:typeof t=="function"?t(Lt):t}):xi?Gn.getVirtualItems().map(Ct=>{const It=qn[Ct.index],rr=oe(It),kr=tr.some(Si=>oe(Si)===rr),tn=X.filteredItems.findIndex(Si=>oe(Si)===rr),rn=Rt===tn,nn=ae(It),on=Vn({item:It,index:tn,onClick:()=>es(It)});return A.jsx("div",{"data-index":Ct.index,ref:Gn.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${Ct.start}px)`},children:A.jsx(pc,{...on,data:It,isDisabled:nn,isFocused:rn,isSelected:kr,optionClassName:w,children:ye?ye({data:It,isFocused:rn,isSelected:kr,isDisabled:nn}):void 0})},Ct.key)}):qn.map(Ct=>{const It=oe(Ct),rr=tr.some(on=>oe(on)===It),kr=X.filteredItems.findIndex(on=>oe(on)===It),tn=Rt===kr,rn=ae(Ct),nn=Vn({item:Ct,index:kr,onClick:()=>es(Ct)});return A.jsx(pc,{...nn,data:Ct,isDisabled:rn,isFocused:tn,isSelected:rr,optionClassName:w,children:ye?ye({data:Ct,isFocused:tn,isSelected:rr,isDisabled:rn}):void 0},It)})})]})})()})]})});MN.displayName="Select.Group";DN.displayName="Select.Icon";fc.displayName="Select.Input";ix.displayName="Select.MultiValue";ox.displayName="Select.ClearIndicator";sx.displayName="Select.DropdownIndicator";pc.displayName="Select.Option";ax.displayName="Select.OptionGroup";const $N=zN;$N.displayName="Select.Field";N.createContext(void 0);const jN=({active:e,disabled:t,error:r,isOpen:n,className:i})=>ce("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":e&&!t,"text-negative":r&&!e&&!t,"bg-primary-hover text-body":n&&!e&&!t,"text-body":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},i),FN=N.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:i,children:s,as:l="div",...c},u)=>{const f=jN({active:e,disabled:t,error:r,isOpen:n,className:i});return A.jsx(l,{"data-qui":"ListItem",ref:u,className:f,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:c.onClick?"button":"listitem",...c,children:s})});FN.displayName="ListItem";var Bd={exports:{}};/*!
|
|
54
|
+
Copyright (c) 2018 Jed Watson.
|
|
55
|
+
Licensed under the MIT License (MIT), see
|
|
56
|
+
http://jedwatson.github.io/classnames
|
|
57
|
+
*/var d0;function lx(){return d0||(d0=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Bd)),Bd.exports}var HN=lx();const st=Uy(HN);function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zi.apply(this,arguments)}const BN=["children","options"],f0=["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"}),p0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},WN=["style","script","pre"],VN=["src","href","data","formAction","srcDoc","action"],UN=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qN=/\n{2,}$/,h0=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GN=/^ *> ?/gm,ZN=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,KN=/^ {2,}\n/,YN=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,g0=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,v0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,XN=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,JN=/^(?:\n *)*\n/,QN=/\r\n?/g,eM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,tM=/^\[\^([^\]]+)]/,rM=/\f/g,nM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iM=/^\s*?\[(x|\s)\]/,m0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,b0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,y0=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Wd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,oM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,w0=/^<!--[\s\S]*?(?:-->)/,sM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Vd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aM=/^\{.*\}$/,lM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cM=/^<([^ >]+[:@\/][^ >]+)>/,uM=/-([a-z])?/gi,x0=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dM=/^[^\n]+(?: \n|\n{2,})/,fM=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,pM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,gM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vM=/\t/g,mM=/(^ *\||\| *$)/g,bM=/^ *:-+: *$/,yM=/^ *:-+ *$/,wM=/^ *-+: *$/,Zc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Kc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",xM=RegExp(`^([*_])\\1${Zc(1)}${Kc}\\1\\1(?!\\1)`),SM=RegExp(`^([*_])${Zc(0)}${Kc}\\1(?!\\1)`),EM=RegExp(`^(==)${Zc(0)}${Kc}\\1`),_M=RegExp(`^(~~)${Zc(0)}${Kc}\\1`),OM=/^(:[a-zA-Z0-9-_]+:)/,kM=/^\\([^0-9A-Za-z\s])/,AM=/\\([^0-9A-Za-z\s])/g,TM=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RM=/^\n+/,CM=/^([ \t]*)/,IM=/(?:^|\n)( *)$/,Pp="(?:\\d+\\.)",Np="(?:[*+-])";function cx(e){return"( *)("+(e===1?Pp:Np)+") +"}const ux=cx(1),dx=cx(2);function fx(e){return RegExp("^"+(e===1?ux:dx))}const PM=fx(1),NM=fx(2);function px(e){return RegExp("^"+(e===1?ux:dx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Pp:Np)+" )[^\\n]*)*(\\n|$)","gm")}const MM=px(1),DM=px(2);function hx(e){const t=e===1?Pp:Np;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const gx=hx(1),vx=hx(2);function S0(e,t){const r=t===1,n=r?gx:vx,i=r?MM:DM,s=r?PM:NM;return{t:l=>s.test(l),o:jo(function(l,c){const u=IM.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?n.exec(l=u[1]+l):null}),i:1,u(l,c,u){const f=r?+l[2]:void 0,g=l[0].replace(qN,`
|
|
58
|
+
`).match(i);let p=!1;return{items:g.map(function(h,b){const S=s.exec(h)[0].length,v=RegExp("^ {1,"+S+"}","gm"),y=h.replace(v,"").replace(s,""),m=b===g.length-1,w=y.indexOf(`
|
|
7
59
|
|
|
8
|
-
`)!==-1||
|
|
60
|
+
`)!==-1||m&&p;p=w;const x=u.inline,O=u.list;let _;u.list=!0,w?(u.inline=!1,_=oa(y)+`
|
|
9
61
|
|
|
10
|
-
`):(
|
|
11
|
-
`).map(function(
|
|
62
|
+
`):(u.inline=!0,_=oa(y));const R=c(_,u);return u.inline=x,u.list=O,R}),ordered:r,start:f}},l:(l,c,u)=>e(l.ordered?"ol":"ul",{key:u.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,g){return e("li",{key:g},c(f,u))}))}}const LM=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),zM=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function E0(e){return typeof e=="string"}function oa(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function hc(e,t){return e.startsWith(t)}function $M(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(hc(e,r[n]))return!0;return!1}return r(e,t)}function _s(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 jM(e){return wM.test(e)?"right":bM.test(e)?"center":yM.test(e)?"left":null}function _0(e,t,r,n){const i=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const u=s[s.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,f,g)=>{u.trim()==="|"&&(c(),n)?f!==0&&f!==g.length-1&&s.push([]):l+=u}),c(),r.inTable=i,s}function FM(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(mM,"").split("|").map(jM):[],i=e[3]?(function(l,c,u){return l.trim().split(`
|
|
63
|
+
`).map(function(f){return _0(f,c,u,!0)})})(e[3],t,r):[],s=_0(e[1],t,r,!!i.length);return r.inline=!1,i.length?{align:n,cells:i,header:s,type:"25"}:{children:s,type:"21"}}function O0(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function jo(e){return e.inline=1,e}function Ni(e){return jo(function(t,r){return r.inline?e.exec(t):null})}function ai(e){return jo(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Mn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function jl(e){return jo(function(t){return e.exec(t)})}const HM=/(javascript|vbscript|data(?!:image)):/i;function BM(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(HM.test(t))return null}catch{return null}return e}function un(e){return e&&e.replace(AM,"$1")}function gc(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function WM(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function VM(e,t,r){const n=r.inline||!1;r.inline=!1;const i=e(t,r);return r.inline=n,i}const Ud=(e,t,r)=>({children:gc(t,e[2],r)});function qd(){return{}}function Gd(){return null}function UM(...e){return e.filter(Boolean).join(" ")}function Zd(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}function qM(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?zi({},p0,t.namedCodesToUnicode):p0;const r=t.slugify||_s,n=t.sanitizer||BM,i=t.createElement||V.createElement,s=[h0,g0,v0,t.enforceAtxHeadings?b0:m0,y0,x0,gx,vx],l=[...s,dM,Wd,w0,Vd];function c(m,w){for(let x=0;x<m.length;x++)if(m[x].test(w))return!0;return!1}function u(m,w,...x){const O=Zd(t.overrides,m+".props",{});return i((function(_,R){const H=Zd(R,_);return H?typeof H=="function"||typeof H=="object"&&"render"in H?H:Zd(R,_+".component",_):_})(m,t.overrides),zi({},w,O,{className:UM(w==null?void 0:w.className,O.className)||void 0}),...x)}function f(m){m=m.replace(nM,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=gM.test(m)===!1);const x=v(S(w?m:oa(m).replace(RM,"")+`
|
|
12
64
|
|
|
13
|
-
`,{inline:
|
|
14
|
-
`);return
|
|
15
|
-
`],o:
|
|
16
|
-
`},21:{o:
|
|
65
|
+
`,{inline:w}));for(;E0(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const O=t.wrapper||(w?"span":"div");let _;if(x.length>1||t.forceWrapper)_=x;else{if(x.length===1)return _=x[0],typeof _=="string"?u("span",{key:"outer"},_):_;_=null}return i(O,{key:"outer"},_)}function g(m,w){if(!w||!w.trim())return null;const x=w.match(UN);return x?x.reduce(function(O,_){const R=_.indexOf("=");if(R!==-1){const H=(function(j){return j.indexOf("-")!==-1&&j.match(sM)===null&&(j=j.replace(uM,function(M,D){return D.toUpperCase()})),j})(_.slice(0,R)).trim(),I=(function(j){const M=j[0];return(M==='"'||M==="'")&&j.length>=2&&j[j.length-1]===M?j.slice(1,-1):j})(_.slice(R+1).trim()),$=f0[H]||H;if($==="ref")return O;const U=O[$]=(function(j,M,D,F){return M==="style"?(function(P){const K=[];let ee="",Y=!1,ve=!1,z="";if(!P)return K;for(let X=0;X<P.length;X++){const te=P[X];if(te!=='"'&&te!=="'"||Y||(ve?te===z&&(ve=!1,z=""):(ve=!0,z=te)),te==="("&&ee.endsWith("url")?Y=!0:te===")"&&Y&&(Y=!1),te!==";"||ve||Y)ee+=te;else{const J=ee.trim();if(J){const oe=J.indexOf(":");if(oe>0){const ae=J.slice(0,oe).trim(),ne=J.slice(oe+1).trim();K.push([ae,ne])}}ee=""}}const W=ee.trim();if(W){const X=W.indexOf(":");if(X>0){const te=W.slice(0,X).trim(),J=W.slice(X+1).trim();K.push([te,J])}}return K})(D).reduce(function(P,[K,ee]){return P[K.replace(/(-[a-z])/g,Y=>Y[1].toUpperCase())]=F(ee,j,K),P},{}):VN.indexOf(M)!==-1?F(un(D),j,M):(D.match(aM)&&(D=un(D.slice(1,D.length-1))),D==="true"||D!=="false"&&D)})(m,H,I,n);typeof U=="string"&&(Wd.test(U)||Vd.test(U))&&(O[$]=f(U.trim()))}else _!=="style"&&(O[f0[_]||_]=!0);return O},{}):null}const p=[],h={},b={0:{t:[">"],o:Mn(h0),i:1,u(m,w,x){const[,O,_]=m[0].replace(GN,"").match(ZN);return{alert:O,children:w(_,x)}},l(m,w,x){const O={key:x.key};return m.alert&&(O.className="markdown-alert-"+r(m.alert.toLowerCase(),_s),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",O,w(m.children,x))}},1:{t:[" "],o:jl(KN),i:1,u:qd,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:Mn(YN),i:1,u:qd,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:Mn(v0),i:0,u:m=>({lang:void 0,text:un(oa(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",zi({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:Mn(g0),i:0,u:m=>({attrs:g("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:ai(XN),i:3,u:m=>({text:un(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:Mn(eM),i:0,u:m=>(p.push({footnote:m[2],identifier:m[1]}),{}),l:Gd},7:{t:["[^"],o:Ni(tM),i:1,u:m=>({target:"#"+r(m[1],_s),text:m[1]}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href")},u("sup",{key:x.key},m.text))},8:{t:["[ ]","[x]"],o:Ni(iM),i:1,u:m=>({completed:m[1].toLowerCase()==="x"}),l:(m,w,x)=>u("input",{checked:m.completed,key:x.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Mn(t.enforceAtxHeadings?b0:m0),i:1,u:(m,w,x)=>({children:gc(w,m[2],x),id:r(m[2],_s),level:m[1].length}),l:(m,w,x)=>u("h"+m.level,{id:m.id,key:x.key},w(m.children,x))},10:{t:m=>{const w=m.indexOf(`
|
|
66
|
+
`);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:Mn(y0),i:0,u:(m,w,x)=>({children:gc(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:jl(Wd),i:1,u(m,w,x){const[,O]=m[3].match(CM),_=RegExp("^"+O,"gm"),R=m[3].replace(_,""),H=c(l,R)?VM:gc,I=m[1].toLowerCase(),$=WN.indexOf(I)!==-1,U=($?I:m[1]).trim(),j={attrs:g(U,m[2]),noInnerParse:$,tag:U};if(x.inAnchor=x.inAnchor||I==="a",$)j.text=m[3];else{const M=x.inHTML;x.inHTML=!0,j.children=H(w,R,x),x.inHTML=M}return x.inAnchor=!1,j},l:(m,w,x)=>u(m.tag,zi({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:jl(Vd),i:1,u(m){const w=m[1].trim();return{attrs:g(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,zi({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:jl(w0),i:1,u:()=>({}),l:Gd},14:{t:["!["],o:ai(zM),i:1,u:m=>({alt:un(m[1]),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("img",{key:x.key,alt:m.alt||void 0,title:m.title||void 0,src:n(m.target,"img","src")})},15:{t:["["],o:Ni(LM),i:3,u:(m,w,x)=>({children:WM(w,m[1],x),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href"),title:m.title},w(m.children,x))},16:{t:["<"],o:Ni(cM),i:0,u(m){let w=m[1],x=!1;return w.indexOf("@")!==-1&&w.indexOf("//")===-1&&(x=!0,w=w.replace("mailto:","")),{children:[{text:w,type:"27"}],target:x?"mailto:"+w:w,type:"15"}}},17:{t:(m,w)=>!w.inAnchor&&!t.disableAutoLink&&(hc(m,"http://")||hc(m,"https://")),o:Ni(lM),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:S0(u,1),33:S0(u,2),19:{t:[`
|
|
67
|
+
`],o:Mn(JN),i:3,u:qd,l:()=>`
|
|
68
|
+
`},21:{o:jo(function(m,w){if(w.inline||w.simple||w.inHTML&&m.indexOf(`
|
|
17
69
|
|
|
18
|
-
`)===-1&&
|
|
70
|
+
`)===-1&&w.prevCapture.indexOf(`
|
|
19
71
|
|
|
20
|
-
`)===-1)return null;let
|
|
21
|
-
`,
|
|
22
|
-
`).replace(pT,"").replace(TT," ")})(R),O)}})(v),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const C=O.key,U=[];let M=!1;for(let D=0;D<R.length;D++){O.key=D;const q=E(R[D],O),N=Hh(q);N&&M?U[U.length-1]+=q:q!==null&&U.push(q),M=N}return O.key=C,U}return(function(C,U,M){const D=h[C.type].l;return S?S(()=>D(C,U,M),C,U,M):D(C,U,M)})(R,E,O)}})(v,t.renderRule),w=m(e);return p.length?f("div",null,w,f("footer",{key:"footer"},p.map(function(h){return f("div",{id:r(h.identifier,Gi),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const xa=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,QA);return $.cloneElement(nR(t??"",r),i)},Gh=({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 F.jsx(t,{className:He("flex-none size-6",r)});switch(e){case"error":case"danger":return F.jsx(tt.FdSanityCheckInfo,{className:He("flex-none size-6",r)});case"info":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});case"warning":return F.jsx(F.Fragment,{children:F.jsx(tt.FdWarningDanger,{className:He("flex-none size-6",r)})});case"message":return F.jsx(F.Fragment,{children:F.jsx(tt.FdInfoBold,{className:He("flex-none size-6",r)})});default:return null}},iR=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const l=({className:c}={})=>F.jsx("button",{onClick:t,className:He("flex justify-center p-1",c),children:F.jsx(tt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return F.jsx("div",{className:He("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?F.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[F.jsx("div",{className:"pt-1",children:F.jsx(Gh,{kind:r,customIcon:a})}),F.jsx("div",{className:"flex items-center gap-1 prose",children:s?F.jsx(xa,{children:i}):F.jsx(F.Fragment,{children:i})}),l()]}):F.jsxs("div",{className:"flex items-start",children:[F.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>F.jsxs(F.Fragment,{children:[c.title&&F.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[F.jsx(Gh,{kind:r,customIcon:a}),F.jsxs("span",{children:[c.title," :"]})]}),F.jsx("ul",{className:He("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>F.jsx("li",{children:s?F.jsx(xa,{children:f}):F.jsx(F.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},_v=({children:e,size:t,className:r,...i})=>F.jsx("div",{style:{"--width":`${t||24}px`},className:He("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var kl={},Ki={},Bs={},Kh;function Ov(){if(Kh)return Bs;Kh=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.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 Bs}var di={},Vi={},Xi={},Vh;function oR(){if(Vh)return Xi;Vh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.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 Xi.default=e,Xi}var Xh;function Na(){if(Xh)return Vi;Xh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;var e=t(oR());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 Vi.default=i,Vi}var Yh;function ja(){if(Yh)return di;Yh=1,Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0,di.unsafeStringify=i;var e=t(Na());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 di.default=a,di}var Jh;function sR(){if(Jh)return Ki;Jh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=r(Ov()),t=ja();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,l=0;function c(m,y,p){let g=y&&p||0;const v=y||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;v[g++]=E>>>24&255,v[g++]=E>>>16&255,v[g++]=E>>>8&255,v[g++]=E&255;const R=w/4294967296*1e4&268435455;v[g++]=R>>>8&255,v[g++]=R&255,v[g++]=R>>>24&15|16,v[g++]=R>>>16&255,v[g++]=d>>>8|128,v[g++]=d&255;for(let O=0;O<6;++O)v[g+O]=x[O];return y||(0,t.unsafeStringify)(v)}var f=c;return Ki.default=f,Ki}var Yi={},pn={},Ji={},Qh;function Av(){if(Qh)return Ji;Qh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=t(Na());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 Ji.default=i,Ji}var eg;function Tv(){if(eg)return pn;eg=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.URL=pn.DNS=void 0,pn.default=l;var e=ja(),t=r(Av());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let m=0;m<c.length;++m)f.push(c.charCodeAt(m));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";pn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";pn.URL=a;function l(c,f,m){function y(p,g,v,x){var d;if(typeof p=="string"&&(p=i(p)),typeof g=="string"&&(g=(0,t.default)(g)),((d=g)===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+p.length);if(w.set(g),w.set(p,g.length),w=m(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,v){x=x||0;for(let h=0;h<16;++h)v[x+h]=w[h];return v}return(0,e.unsafeStringify)(w)}try{y.name=c}catch{}return y.DNS=s,y.URL=a,y}return pn}var Qi={},tg;function aR(){if(tg)return Qi;tg=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(v){if(typeof v=="string"){const x=unescape(encodeURIComponent(v));v=new Uint8Array(x.length);for(let d=0;d<x.length;++d)v[d]=x.charCodeAt(d)}return t(i(s(v),v.length*8))}function t(v){const x=[],d=v.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=v[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(v){return(v+64>>>9<<4)+14+1}function i(v,x){v[x>>5]|=128<<x%32,v[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<v.length;E+=16){const R=d,O=w,C=h,U=S;d=f(d,w,h,S,v[E],7,-680876936),S=f(S,d,w,h,v[E+1],12,-389564586),h=f(h,S,d,w,v[E+2],17,606105819),w=f(w,h,S,d,v[E+3],22,-1044525330),d=f(d,w,h,S,v[E+4],7,-176418897),S=f(S,d,w,h,v[E+5],12,1200080426),h=f(h,S,d,w,v[E+6],17,-1473231341),w=f(w,h,S,d,v[E+7],22,-45705983),d=f(d,w,h,S,v[E+8],7,1770035416),S=f(S,d,w,h,v[E+9],12,-1958414417),h=f(h,S,d,w,v[E+10],17,-42063),w=f(w,h,S,d,v[E+11],22,-1990404162),d=f(d,w,h,S,v[E+12],7,1804603682),S=f(S,d,w,h,v[E+13],12,-40341101),h=f(h,S,d,w,v[E+14],17,-1502002290),w=f(w,h,S,d,v[E+15],22,1236535329),d=m(d,w,h,S,v[E+1],5,-165796510),S=m(S,d,w,h,v[E+6],9,-1069501632),h=m(h,S,d,w,v[E+11],14,643717713),w=m(w,h,S,d,v[E],20,-373897302),d=m(d,w,h,S,v[E+5],5,-701558691),S=m(S,d,w,h,v[E+10],9,38016083),h=m(h,S,d,w,v[E+15],14,-660478335),w=m(w,h,S,d,v[E+4],20,-405537848),d=m(d,w,h,S,v[E+9],5,568446438),S=m(S,d,w,h,v[E+14],9,-1019803690),h=m(h,S,d,w,v[E+3],14,-187363961),w=m(w,h,S,d,v[E+8],20,1163531501),d=m(d,w,h,S,v[E+13],5,-1444681467),S=m(S,d,w,h,v[E+2],9,-51403784),h=m(h,S,d,w,v[E+7],14,1735328473),w=m(w,h,S,d,v[E+12],20,-1926607734),d=y(d,w,h,S,v[E+5],4,-378558),S=y(S,d,w,h,v[E+8],11,-2022574463),h=y(h,S,d,w,v[E+11],16,1839030562),w=y(w,h,S,d,v[E+14],23,-35309556),d=y(d,w,h,S,v[E+1],4,-1530992060),S=y(S,d,w,h,v[E+4],11,1272893353),h=y(h,S,d,w,v[E+7],16,-155497632),w=y(w,h,S,d,v[E+10],23,-1094730640),d=y(d,w,h,S,v[E+13],4,681279174),S=y(S,d,w,h,v[E],11,-358537222),h=y(h,S,d,w,v[E+3],16,-722521979),w=y(w,h,S,d,v[E+6],23,76029189),d=y(d,w,h,S,v[E+9],4,-640364487),S=y(S,d,w,h,v[E+12],11,-421815835),h=y(h,S,d,w,v[E+15],16,530742520),w=y(w,h,S,d,v[E+2],23,-995338651),d=p(d,w,h,S,v[E],6,-198630844),S=p(S,d,w,h,v[E+7],10,1126891415),h=p(h,S,d,w,v[E+14],15,-1416354905),w=p(w,h,S,d,v[E+5],21,-57434055),d=p(d,w,h,S,v[E+12],6,1700485571),S=p(S,d,w,h,v[E+3],10,-1894986606),h=p(h,S,d,w,v[E+10],15,-1051523),w=p(w,h,S,d,v[E+1],21,-2054922799),d=p(d,w,h,S,v[E+8],6,1873313359),S=p(S,d,w,h,v[E+15],10,-30611744),h=p(h,S,d,w,v[E+6],15,-1560198380),w=p(w,h,S,d,v[E+13],21,1309151649),d=p(d,w,h,S,v[E+4],6,-145523070),S=p(S,d,w,h,v[E+11],10,-1120210379),h=p(h,S,d,w,v[E+2],15,718787259),w=p(w,h,S,d,v[E+9],21,-343485551),d=a(d,R),w=a(w,O),h=a(h,C),S=a(S,U)}return[d,w,h,S]}function s(v){if(v.length===0)return[];const x=v.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(v[w/8]&255)<<w%32;return d}function a(v,x){const d=(v&65535)+(x&65535);return(v>>16)+(x>>16)+(d>>16)<<16|d&65535}function l(v,x){return v<<x|v>>>32-x}function c(v,x,d,w,h,S){return a(l(a(a(x,v),a(w,S)),h),d)}function f(v,x,d,w,h,S,E){return c(x&d|~x&w,v,x,h,S,E)}function m(v,x,d,w,h,S,E){return c(x&w|d&~w,v,x,h,S,E)}function y(v,x,d,w,h,S,E){return c(x^d^w,v,x,h,S,E)}function p(v,x,d,w,h,S,E){return c(d^(x|~w),v,x,h,S,E)}var g=e;return Qi.default=g,Qi}var rg;function uR(){if(rg)return Yi;rg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Tv()),t=r(aR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Yi.default=s,Yi}var eo={},to={},ng;function lR(){if(ng)return to;ng=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return to.default=t,to}var ig;function cR(){if(ig)return eo;ig=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=i(lR()),t=i(Ov()),r=ja();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 y=0;y<16;++y)c[f+y]=m[y];return c}return(0,r.unsafeStringify)(m)}var a=s;return eo.default=a,eo}var ro={},no={},og;function fR(){if(og)return no;og=1,Object.defineProperty(no,"__esModule",{value:!0}),no.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 y=unescape(encodeURIComponent(s));s=[];for(let p=0;p<y.length;++p)s.push(y.charCodeAt(p))}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 y=0;y<f;++y){const p=new Uint32Array(16);for(let g=0;g<16;++g)p[g]=s[y*64+g*4]<<24|s[y*64+g*4+1]<<16|s[y*64+g*4+2]<<8|s[y*64+g*4+3];m[y]=p}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 y=0;y<f;++y){const p=new Uint32Array(80);for(let h=0;h<16;++h)p[h]=m[y][h];for(let h=16;h<80;++h)p[h]=t(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);let g=l[0],v=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(g,5)+e(S,v,x,d)+w+a[S]+p[h]>>>0;w=d,d=x,x=t(v,30)>>>0,v=g,g=E}l[0]=l[0]+g>>>0,l[1]=l[1]+v>>>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 no.default=i,no}var sg;function dR(){if(sg)return ro;sg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=r(Tv()),t=r(fR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return ro.default=s,ro}var io={},ag;function pR(){if(ag)return io;ag=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e="00000000-0000-0000-0000-000000000000";return io.default=e,io}var oo={},ug;function hR(){if(ug)return oo;ug=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e=t(Na());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 oo.default=i,oo}var lg;function gR(){return lg||(lg=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=y(sR()),r=y(uR()),i=y(cR()),s=y(dR()),a=y(pR()),l=y(hR()),c=y(Na()),f=y(ja()),m=y(Av());function y(p){return p&&p.__esModule?p:{default:p}}})(kl)),kl}var $l,cg;function mR(){if(cg)return $l;cg=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},$l=e,$l}var Il,fg;function vR(){if(fg)return Il;fg=1;var e=mR();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",Il=t,Il}var Ll,dg;function yR(){if(dg)return Ll;dg=1;const{v4:e,validate:t}=gR(),r=vR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const l=(m,y,p)=>{const g=y(m.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?g:g.padStart(p.shortIdLength,p.paddingChar)},c=(m,y)=>{const g=y(m).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("-")},f=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Ll=(()=>{const m=(y,p)=>{const g=y||i.flickrBase58,v={...s,...p};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(g.length),d={shortIdLength:x,consistentLength:v.consistentLength,paddingChar:g[0]},w=r(r.HEX,g),h=r(g,r.HEX),S=()=>l(e(),w,d),R={alphabet:g,fromUUID:O=>l(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,C=!1)=>{if(!O||typeof O!="string")return!1;const U=v.consistentLength?O.length===x:O.length<=x,M=O.split("").every(D=>g.includes(D));return C===!1?U&&M:U&&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})(),Ll}var Qc=yR();const Rv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Qc.generate()}`;return F.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[F.jsx("defs",{children:F.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:F.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?F.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):F.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Pv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?F.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return F.jsx(tt.FdDown,{className:He(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?F.jsx(tt.FdDown,{}):F.jsx(tt.FdRight,{});default:return F.jsx(tt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):F.jsx("div",{className:"flex h-6 w-3 items-center"}),ef=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:l,onNodeClick:c})=>{var v;const{key:f,children:m}=e,y=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),p=l&&typeof l=="function"?l(e,t,y,s,a):xR(e,t,y,c);return!((v=e.options)!=null&&v.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"flex items-center space-x-2",children:p},f),wR(m||[],t,a,r,i,y.expanded,s,c,l)]}):null},bR=function(e,t){var l;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=F.jsx(_v,{children:i})),F.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,F.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&F.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},wR=function(e,t,r,i,s,a,l,c,f){var m,y;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((m=e[0].data)==null?void 0:m.nodeType)||((y=e[0].data)==null?void 0:y.type))?e:e.sort((p,g)=>v0(p.title,g.title))).map(p=>F.jsx(ef,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},p.key)):null},xR=function(e,t,r,i){return F.jsxs(F.Fragment,{children:[F.jsx(Rv,{showLines:!0,depth:t}),F.jsx(Pv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),bR(e,i)]})},Hs=e=>t=>e===t,SR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:f,className:m}){const[y,p]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&y.expandedKeys.length>0||p({...y,expandedKeys:l||y.expandedKeys})},[l]);const g=W.useCallback(h=>{if(!h)return;const S=y.expandedKeys.findIndex(Hs(h.key));let E=[];S===-1?(E=[...y.expandedKeys,h.key],p(()=>({...y,expandedKeys:E})),s&&s(E)):(E=y.expandedKeys.filter(R=>R!==h.key),p(()=>({...y,expandedKeys:E})),s&&s(E))},[y]),v=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[...y.selectedKeys,h.key]})},[y]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;y.selectedKeys.findIndex(Hs(h.key))===-1&&p({...y,selectedKeys:[h.key]})},[y]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){p({...y,selectedKeys:[]});return}y.selectedKeys.findIndex(Hs(h.key))!==-1&&p({...y,selectedKeys:y.selectedKeys.filter(R=>R!==h.key)})},[y]),w=W.useMemo(()=>({expand:g,select:v,selectSingle:x,deselect:d}),[d,g,v,x]);return F.jsx("div",{className:He("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>F.jsx(ef,{node:h,searchQuery:a||"",depth:0,expandedKeys:y.expandedKeys,selectedKeys:y.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function fa(e){return e.of&&e.children?F.jsx(F.Fragment,{children:e.children}):null}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qe.apply(null,arguments)}function ER(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 _R={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 Cv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var OR=/[A-Z]|^ms/g,AR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kv=function(t){return t.charCodeAt(1)===45},pg=function(t){return t!=null&&typeof t!="boolean"},Ml=Cv(function(e){return kv(e)?e:e.replace(OR,"-$&").toLowerCase()}),hg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(AR,function(i,s,a){return Tr={name:s,styles:a,next:Tr},s})}return _R[t]!==1&&!kv(t)&&typeof r=="number"&&r!==0?r+"px":r};function $o(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 Tr={name:s.name,styles:s.styles,next:Tr},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Tr={name:l.name,styles:l.styles,next:Tr},l=l.next;var c=a.styles+";";return c}return TR(e,t,r)}case"function":{if(e!==void 0){var f=Tr,m=r(e);return Tr=f,$o(e,t,m)}break}}var y=r;if(t==null)return y;var p=t[y];return p!==void 0?p:y}function TR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=$o(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]+"}":pg(c)&&(i+=Ml(a)+":"+hg(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++)pg(l[f])&&(i+=Ml(a)+":"+hg(a,l[f])+";");else{var m=$o(e,t,l);switch(a){case"animation":case"animationName":{i+=Ml(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var gg=/label:\s*([^\s;{]+)\s*(;|$)/g,Tr;function RR(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="";Tr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=$o(r,t,a);else{var l=a;s+=l[0]}for(var c=1;c<e.length;c++)if(s+=$o(r,t,e[c]),i){var f=a;s+=f[c]}gg.lastIndex=0;for(var m="",y;(y=gg.exec(s))!==null;)m+="-"+y[1];var p=ER(s)+m;return{name:p,styles:s,next:Tr}}var PR=function(t){return t()},CR=$.useInsertionEffect?$.useInsertionEffect:!1,kR=CR||PR,$R=!0;function IR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var $v=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||$R===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},LR=function(t,r,i){$v(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},MR=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,FR=Cv(function(e){return MR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),DR=FR,NR=function(t){return t!=="theme"},mg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?DR:NR},vg=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},jR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return $v(r,i,s),kR(function(){return LR(r,i,s)}),null},zR=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=vg(t,r,i),f=c||mg(s),m=!f("as");return function(){var y=arguments,p=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)p.push.apply(p,y);else{var g=y[0];p.push(g[0]);for(var v=y.length,x=1;x<v;x++)p.push(y[x],g[x])}var d=pc.withEmotionCache(function(w,h,S){var E=m&&w.as||s,R="",O=[],C=w;if(w.theme==null){C={};for(var U in w)C[U]=w[U];C.theme=$.useContext(pc.ThemeContext)}typeof w.className=="string"?R=IR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=RR(p.concat(O),h.registered,C);R+=h.key+"-"+M.name,l!==void 0&&(R+=" "+l);var D=m&&c===void 0?mg(E):f,q={};for(var N in w)m&&N==="as"||D(N)&&(q[N]=w[N]);return q.className=R,S&&(q.ref=S),$.createElement($.Fragment,null,$.createElement(jR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,q))});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=p,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+l}}),d.withComponent=function(w,h){var S=e(w,Qe({},r,h,{shouldForwardProp:vg(d,h,!0)}));return S.apply(void 0,p)},d}},WR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Sa=zR.bind(null);WR.forEach(function(e){Sa[e]=Sa(e)});var UR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pi=new WeakMap,qs=new WeakMap,Zs={},Fl=0,Iv=function(e){return e&&(e.host||Iv(e.parentNode))},BR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Iv(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})},HR=function(e,t,r,i){var s=BR(t,Array.isArray(e)?e:[e]);Zs[r]||(Zs[r]=new WeakMap);var a=Zs[r],l=[],c=new Set,f=new Set(s),m=function(p){!p||c.has(p)||(c.add(p),m(p.parentNode))};s.forEach(m);var y=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))y(g);else try{var v=g.getAttribute(i),x=v!==null&&v!=="false",d=(pi.get(g)||0)+1,w=(a.get(g)||0)+1;pi.set(g,d),a.set(g,w),l.push(g),d===1&&x&&qs.set(g,!0),w===1&&g.setAttribute(r,"true"),x||g.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",g,h)}})};return y(t),c.clear(),Fl++,function(){l.forEach(function(p){var g=pi.get(p)-1,v=a.get(p)-1;pi.set(p,g),a.set(p,v),g||(qs.has(p)||p.removeAttribute(i),qs.delete(p)),v||p.removeAttribute(r)}),Fl--,Fl||(pi=new WeakMap,pi=new WeakMap,qs=new WeakMap,Zs={})}},qR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=UR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),HR(i,s,r,"aria-hidden")):function(){return null}},mc=function(e,t){return mc=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])},mc(e,t)};function za(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rr=function(){return Rr=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Rr.apply(this,arguments)};function Lv(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 vc(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 yc(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 Ea(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",pa="width-before-scroll-bar",ZR="with-scroll-bars-hidden",GR="--removed-body-scroll-bar-size";function Dl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KR(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 VR=typeof window<"u"?$.useLayoutEffect:$.useEffect,yg=new WeakMap;function XR(e,t){var r=KR(null,function(i){return e.forEach(function(s){return Dl(s,i)})});return VR(function(){var i=yg.get(r);if(i){var s=new Set(i),a=new Set(e),l=r.current;s.forEach(function(c){a.has(c)||Dl(c,null)}),a.forEach(function(c){s.has(c)||Dl(c,l)})}yg.set(r,e)},[e]),r}function YR(e){return e}function JR(e,t){t===void 0&&(t=YR);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 y=l;l=[],y.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(y){l.push(y),m()},filter:function(y){return l=l.filter(y),r}}}};return s}function QR(e){e===void 0&&(e={});var t=JR(null);return t.options=Rr({async:!0,ssr:!1},e),t}var Mv=function(e){var t=e.sideCar,r=Lv(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,Rr({},r))};Mv.isSideCarExport=!0;function eP(e,t){return e.useMedium(t),Mv}var Fv=QR(),Nl=function(){},Wa=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Nl,onWheelCapture:Nl,onTouchMoveCapture:Nl}),s=i[0],a=i[1],l=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,y=e.enabled,p=e.shards,g=e.sideCar,v=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=Lv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=g,C=XR([r,t]),U=Rr(Rr({},R),s);return $.createElement($.Fragment,null,y&&$.createElement(O,{sideCar:Fv,removeScrollBar:m,shards:p,noRelative:v,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),l?$.cloneElement($.Children.only(c),Rr(Rr({},U),{ref:C})):$.createElement(S,Rr({},U,{className:f,ref:C}),c))});Wa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wa.classNames={fullWidth:pa,zeroRight:da};var tP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tP();return t&&e.setAttribute("nonce",t),e}function nP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var oP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rP())&&(nP(t,r),iP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sP=function(){var e=oP();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dv=function(){var e=sP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},aP={left:0,top:0,right:0,gap:0},jl=function(e){return parseInt(e||"",10)||0},uP=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[jl(r),jl(i),jl(s)]},lP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aP;var t=uP(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])}},cP=Dv(),yi="data-scroll-locked",fP=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(
|
|
24
|
-
overflow: hidden `).concat(
|
|
25
|
-
padding-right: `).concat(c,"px ").concat(
|
|
72
|
+
`)===-1)return null;let x="",O=0;for(;;){const R=m.indexOf(`
|
|
73
|
+
`,O),H=m.slice(O,R===-1?void 0:R+1);if(c(s,H)||(x+=H,R===-1||!H.trim()))break;O=R+1}const _=oa(x);return _===""?null:[x,,_]}),i:3,u:Ud,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:Ni(fM),i:0,u:m=>(h[m[1]]={target:m[2],title:m[4]},{}),l:Gd},23:{t:["!["],o:ai(pM),i:0,u:m=>({alt:m[1]?un(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(h[m.ref].target,"img","src"),title:h[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:Ni(hM),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("a",{key:x.key,href:n(h[m.ref].target,"a","href"),title:h[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:Mn(x0),i:1,u:FM,l(m,w,x){const O=m;return u("table",{key:x.key},u("thead",null,u("tr",null,O.header.map(function(_,R){return u("th",{key:R,style:O0(O,R)},w(_,x))}))),u("tbody",null,O.cells.map(function(_,R){return u("tr",{key:R},_.map(function(H,I){return u("td",{key:I,style:O0(O,I)},w(H,x))}))})))}},27:{o:jo(function(m,w){let x;return hc(m,":")&&(x=OM.exec(m)),x||TM.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(oM,(x,O)=>t.namedCodesToUnicode[O]||x)}},l:m=>m.text},28:{t:["**","__"],o:ai(xM),i:2,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("strong",{key:x.key},w(m.children,x))},29:{t:m=>{const w=m[0];return(w==="*"||w==="_")&&m[1]!==w},o:ai(SM),i:3,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("em",{key:x.key},w(m.children,x))},30:{t:["\\"],o:ai(kM),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:ai(EM),i:3,u:Ud,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:ai(_M),i:3,u:Ud,l:(m,w,x)=>u("del",{key:x.key},w(m.children,x))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const S=(function(m){var w=Object.keys(m);function x(O,_){var R=[];if(_.prevCapture=_.prevCapture||"",O.trim())for(;O;)for(var H=0;H<w.length;){var I=w[H],$=m[I];if(!$.t||$M(O,_,$.t)){var U=$.o(O,_);if(U&&U[0]){O=O.substring(U[0].length);var j=$.u(U,x,_);_.prevCapture+=U[0],j.type||(j.type=I),R.push(j);break}H++}else H++}return _.prevCapture="",R}return w.sort(function(O,_){return m[O].i-m[_].i||(O<_?-1:1)}),function(O,_){return x((function(R){return R.replace(QN,`
|
|
74
|
+
`).replace(rM,"").replace(vM," ")})(O),_)}})(b),v=(function(m,w){return function x(O,_={}){if(Array.isArray(O)){const R=_.key,H=[];let I=!1;for(let $=0;$<O.length;$++){_.key=$;const U=x(O[$],_),j=E0(U);j&&I?H[H.length-1]+=U:U!==null&&H.push(U),I=j}return _.key=R,H}return(function(R,H,I){const $=m[R.type].l;return w?w(()=>$(R,H,I),R,H,I):$(R,H,I)})(O,x,_)}})(b,t.renderRule),y=f(e);return p.length?u("div",null,y,u("footer",{key:"footer"},p.map(function(m){return u("div",{id:r(m.identifier,_s),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):y}const Cc=e=>{let{children:t="",options:r}=e,n=(function(i,s){if(i==null)return{};var l,c,u={},f=Object.keys(i);for(c=0;c<f.length;c++)s.indexOf(l=f[c])>=0||(u[l]=i[l]);return u})(e,BN);return V.cloneElement(qM(t,r),n)},k0=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return A.jsx(t,{className:st("flex-none size-6",r)});switch(e){case"error":case"danger":return A.jsx(W2,{className:st("flex-none size-6",r)});case"info":return A.jsx(A.Fragment,{children:A.jsx(Nf,{className:st("flex-none size-6",r)})});case"warning":return A.jsx(A.Fragment,{children:A.jsx(xp,{className:st("flex-none size-6",r)})});case"message":return A.jsx(A.Fragment,{children:A.jsx(Nf,{className:st("flex-none size-6",r)})});default:return null}},mx=({id:e,onClose:t,kind:r,message:n,markdown:i,customIcon:s})=>{const l=({className:c}={})=>A.jsx("button",{onClick:t,className:st("flex justify-center p-1",c),children:A.jsx(Bo,{className:"size-4 font-thin stroke-current"})});return A.jsx("div",{className:st("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?A.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[A.jsx("div",{className:"pt-1",children:A.jsx(k0,{kind:r,customIcon:s})}),A.jsx("div",{className:"flex items-center gap-1 prose",children:i?A.jsx(Cc,{children:n}):A.jsx(A.Fragment,{children:n})}),l()]}):A.jsxs("div",{className:"flex items-start",children:[A.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>A.jsxs(A.Fragment,{children:[c.title&&A.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[A.jsx(k0,{kind:r,customIcon:s}),A.jsxs("span",{children:[c.title," :"]})]}),A.jsx("ul",{className:st("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>A.jsx("li",{children:i?A.jsx(Cc,{children:u}):A.jsx(A.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},bx=({children:e,size:t,className:r,...n})=>A.jsx("div",{style:{"--width":`${t||24}px`},className:st("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var Kd={},Os={},Fl={},A0;function yx(){if(A0)return Fl;A0=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.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 Fl}var wo={},ks={},As={},T0;function GM(){if(T0)return As;T0=1,Object.defineProperty(As,"__esModule",{value:!0}),As.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 As.default=e,As}var R0;function Yc(){if(R0)return ks;R0=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var e=t(GM());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){return typeof i=="string"&&e.default.test(i)}var n=r;return ks.default=n,ks}var C0;function Xc(){if(C0)return wo;C0=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0,wo.unsafeStringify=n;var e=t(Yc());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function n(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function i(l,c=0){const u=n(l,c);if(!(0,e.default)(u))throw TypeError("Stringified UUID is invalid");return u}var s=i;return wo.default=s,wo}var I0;function ZM(){if(I0)return Os;I0=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var e=r(yx()),t=Xc();function r(f){return f&&f.__esModule?f:{default:f}}let n,i,s=0,l=0;function c(f,g,p){let h=g&&p||0;const b=g||new Array(16);f=f||{};let S=f.node||n,v=f.clockseq!==void 0?f.clockseq:i;if(S==null||v==null){const _=f.random||(f.rng||e.default)();S==null&&(S=n=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),v==null&&(v=i=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),m=f.nsecs!==void 0?f.nsecs:l+1;const w=y-s+(m-l)/1e4;if(w<0&&f.clockseq===void 0&&(v=v+1&16383),(w<0||y>s)&&f.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=y,l=m,i=v,y+=122192928e5;const x=((y&268435455)*1e4+m)%4294967296;b[h++]=x>>>24&255,b[h++]=x>>>16&255,b[h++]=x>>>8&255,b[h++]=x&255;const O=y/4294967296*1e4&268435455;b[h++]=O>>>8&255,b[h++]=O&255,b[h++]=O>>>24&15|16,b[h++]=O>>>16&255,b[h++]=v>>>8|128,b[h++]=v&255;for(let _=0;_<6;++_)b[h+_]=S[_];return g||(0,t.unsafeStringify)(b)}var u=c;return Os.default=u,Os}var Ts={},li={},Rs={},P0;function wx(){if(P0)return Rs;P0=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e=t(Yc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(i.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(i.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(i.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(i.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(i.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var n=r;return Rs.default=n,Rs}var N0;function xx(){if(N0)return li;N0=1,Object.defineProperty(li,"__esModule",{value:!0}),li.URL=li.DNS=void 0,li.default=l;var e=Xc(),t=r(wx());function r(c){return c&&c.__esModule?c:{default:c}}function n(c){c=unescape(encodeURIComponent(c));const u=[];for(let f=0;f<c.length;++f)u.push(c.charCodeAt(f));return u}const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";li.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";li.URL=s;function l(c,u,f){function g(p,h,b,S){var v;if(typeof p=="string"&&(p=n(p)),typeof h=="string"&&(h=(0,t.default)(h)),((v=h)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+p.length);if(y.set(h),y.set(p,h.length),y=f(y),y[6]=y[6]&15|u,y[8]=y[8]&63|128,b){S=S||0;for(let m=0;m<16;++m)b[S+m]=y[m];return b}return(0,e.unsafeStringify)(y)}try{g.name=c}catch{}return g.DNS=i,g.URL=s,g}return li}var Cs={},M0;function KM(){if(M0)return Cs;M0=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;function e(b){if(typeof b=="string"){const S=unescape(encodeURIComponent(b));b=new Uint8Array(S.length);for(let v=0;v<S.length;++v)b[v]=S.charCodeAt(v)}return t(n(i(b),b.length*8))}function t(b){const S=[],v=b.length*32,y="0123456789abcdef";for(let m=0;m<v;m+=8){const w=b[m>>5]>>>m%32&255,x=parseInt(y.charAt(w>>>4&15)+y.charAt(w&15),16);S.push(x)}return S}function r(b){return(b+64>>>9<<4)+14+1}function n(b,S){b[S>>5]|=128<<S%32,b[r(S)-1]=S;let v=1732584193,y=-271733879,m=-1732584194,w=271733878;for(let x=0;x<b.length;x+=16){const O=v,_=y,R=m,H=w;v=u(v,y,m,w,b[x],7,-680876936),w=u(w,v,y,m,b[x+1],12,-389564586),m=u(m,w,v,y,b[x+2],17,606105819),y=u(y,m,w,v,b[x+3],22,-1044525330),v=u(v,y,m,w,b[x+4],7,-176418897),w=u(w,v,y,m,b[x+5],12,1200080426),m=u(m,w,v,y,b[x+6],17,-1473231341),y=u(y,m,w,v,b[x+7],22,-45705983),v=u(v,y,m,w,b[x+8],7,1770035416),w=u(w,v,y,m,b[x+9],12,-1958414417),m=u(m,w,v,y,b[x+10],17,-42063),y=u(y,m,w,v,b[x+11],22,-1990404162),v=u(v,y,m,w,b[x+12],7,1804603682),w=u(w,v,y,m,b[x+13],12,-40341101),m=u(m,w,v,y,b[x+14],17,-1502002290),y=u(y,m,w,v,b[x+15],22,1236535329),v=f(v,y,m,w,b[x+1],5,-165796510),w=f(w,v,y,m,b[x+6],9,-1069501632),m=f(m,w,v,y,b[x+11],14,643717713),y=f(y,m,w,v,b[x],20,-373897302),v=f(v,y,m,w,b[x+5],5,-701558691),w=f(w,v,y,m,b[x+10],9,38016083),m=f(m,w,v,y,b[x+15],14,-660478335),y=f(y,m,w,v,b[x+4],20,-405537848),v=f(v,y,m,w,b[x+9],5,568446438),w=f(w,v,y,m,b[x+14],9,-1019803690),m=f(m,w,v,y,b[x+3],14,-187363961),y=f(y,m,w,v,b[x+8],20,1163531501),v=f(v,y,m,w,b[x+13],5,-1444681467),w=f(w,v,y,m,b[x+2],9,-51403784),m=f(m,w,v,y,b[x+7],14,1735328473),y=f(y,m,w,v,b[x+12],20,-1926607734),v=g(v,y,m,w,b[x+5],4,-378558),w=g(w,v,y,m,b[x+8],11,-2022574463),m=g(m,w,v,y,b[x+11],16,1839030562),y=g(y,m,w,v,b[x+14],23,-35309556),v=g(v,y,m,w,b[x+1],4,-1530992060),w=g(w,v,y,m,b[x+4],11,1272893353),m=g(m,w,v,y,b[x+7],16,-155497632),y=g(y,m,w,v,b[x+10],23,-1094730640),v=g(v,y,m,w,b[x+13],4,681279174),w=g(w,v,y,m,b[x],11,-358537222),m=g(m,w,v,y,b[x+3],16,-722521979),y=g(y,m,w,v,b[x+6],23,76029189),v=g(v,y,m,w,b[x+9],4,-640364487),w=g(w,v,y,m,b[x+12],11,-421815835),m=g(m,w,v,y,b[x+15],16,530742520),y=g(y,m,w,v,b[x+2],23,-995338651),v=p(v,y,m,w,b[x],6,-198630844),w=p(w,v,y,m,b[x+7],10,1126891415),m=p(m,w,v,y,b[x+14],15,-1416354905),y=p(y,m,w,v,b[x+5],21,-57434055),v=p(v,y,m,w,b[x+12],6,1700485571),w=p(w,v,y,m,b[x+3],10,-1894986606),m=p(m,w,v,y,b[x+10],15,-1051523),y=p(y,m,w,v,b[x+1],21,-2054922799),v=p(v,y,m,w,b[x+8],6,1873313359),w=p(w,v,y,m,b[x+15],10,-30611744),m=p(m,w,v,y,b[x+6],15,-1560198380),y=p(y,m,w,v,b[x+13],21,1309151649),v=p(v,y,m,w,b[x+4],6,-145523070),w=p(w,v,y,m,b[x+11],10,-1120210379),m=p(m,w,v,y,b[x+2],15,718787259),y=p(y,m,w,v,b[x+9],21,-343485551),v=s(v,O),y=s(y,_),m=s(m,R),w=s(w,H)}return[v,y,m,w]}function i(b){if(b.length===0)return[];const S=b.length*8,v=new Uint32Array(r(S));for(let y=0;y<S;y+=8)v[y>>5]|=(b[y/8]&255)<<y%32;return v}function s(b,S){const v=(b&65535)+(S&65535);return(b>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(b,S){return b<<S|b>>>32-S}function c(b,S,v,y,m,w){return s(l(s(s(S,b),s(y,w)),m),v)}function u(b,S,v,y,m,w,x){return c(S&v|~S&y,b,S,m,w,x)}function f(b,S,v,y,m,w,x){return c(S&y|v&~y,b,S,m,w,x)}function g(b,S,v,y,m,w,x){return c(S^v^y,b,S,m,w,x)}function p(b,S,v,y,m,w,x){return c(v^(S|~y),b,S,m,w,x)}var h=e;return Cs.default=h,Cs}var D0;function YM(){if(D0)return Ts;D0=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var e=r(xx()),t=r(KM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v3",48,t.default);return Ts.default=i,Ts}var Is={},Ps={},L0;function XM(){if(L0)return Ps;L0=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Ps.default=t,Ps}var z0;function JM(){if(z0)return Is;z0=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var e=n(XM()),t=n(yx()),r=Xc();function n(l){return l&&l.__esModule?l:{default:l}}function i(l,c,u){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const f=l.random||(l.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,c){u=u||0;for(let g=0;g<16;++g)c[u+g]=f[g];return c}return(0,r.unsafeStringify)(f)}var s=i;return Is.default=s,Is}var Ns={},Ms={},$0;function QM(){if($0)return Ms;$0=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;function e(i,s,l,c){switch(i){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(i,s){return i<<s|i>>>32-s}function r(i){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const g=unescape(encodeURIComponent(i));i=[];for(let p=0;p<g.length;++p)i.push(g.charCodeAt(p))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);const c=i.length/4+2,u=Math.ceil(c/16),f=new Array(u);for(let g=0;g<u;++g){const p=new Uint32Array(16);for(let h=0;h<16;++h)p[h]=i[g*64+h*4]<<24|i[g*64+h*4+1]<<16|i[g*64+h*4+2]<<8|i[g*64+h*4+3];f[g]=p}f[u-1][14]=(i.length-1)*8/Math.pow(2,32),f[u-1][14]=Math.floor(f[u-1][14]),f[u-1][15]=(i.length-1)*8&4294967295;for(let g=0;g<u;++g){const p=new Uint32Array(80);for(let m=0;m<16;++m)p[m]=f[g][m];for(let m=16;m<80;++m)p[m]=t(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);let h=l[0],b=l[1],S=l[2],v=l[3],y=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(h,5)+e(w,b,S,v)+y+s[w]+p[m]>>>0;y=v,v=S,S=t(b,30)>>>0,b=h,h=x}l[0]=l[0]+h>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+y>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var n=r;return Ms.default=n,Ms}var j0;function eD(){if(j0)return Ns;j0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;var e=r(xx()),t=r(QM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v5",80,t.default);return Ns.default=i,Ns}var Ds={},F0;function tD(){if(F0)return Ds;F0=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Ds.default=e,Ds}var Ls={},H0;function rD(){if(H0)return Ls;H0=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e=t(Yc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");return parseInt(i.slice(14,15),16)}var n=r;return Ls.default=n,Ls}var B0;function nD(){return B0||(B0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=g(ZM()),r=g(YM()),n=g(JM()),i=g(eD()),s=g(tD()),l=g(rD()),c=g(Yc()),u=g(Xc()),f=g(wx());function g(p){return p&&p.__esModule?p:{default:p}}})(Kd)),Kd}var Yd,W0;function iD(){if(W0)return Yd;W0=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,i,s={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,u=t.length,f=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<u;r++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,i=0,r=0;r<u;r++)n=n*l+s[r],n>=c?(s[i++]=parseInt(n/c,10),n=n%c):i>0&&(s[i++]=0);u=i,f=this.dstAlphabet.slice(n,n+1).concat(f)}while(i!==0);return f},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Yd=e,Yd}var Xd,V0;function oD(){if(V0)return Xd;V0=1;var e=iD();function t(r,n){var i=new e(r,n);return function(s){return i.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Xd=t,Xd}var Jd,U0;function sD(){if(U0)return Jd;U0=1;const{v4:e,validate:t}=nD(),r=oD(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},i={consistentLength:!0};let s;const l=(f,g,p)=>{const h=g(f.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?h:h.padStart(p.shortIdLength,p.paddingChar)},c=(f,g)=>{const h=g(f).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[h[1],h[2],h[3],h[4],h[5]].join("-")},u=f=>Math.ceil(Math.log(2**128)/Math.log(f));return Jd=(()=>{const f=(g,p)=>{const h=g||n.flickrBase58,b={...i,...p};if([...new Set(Array.from(h))].length!==h.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(h.length),v={shortIdLength:S,consistentLength:b.consistentLength,paddingChar:h[0]},y=r(r.HEX,h),m=r(h,r.HEX),w=()=>l(e(),y,v),O={alphabet:h,fromUUID:_=>l(_,y,v),maxLength:S,generate:w,new:w,toUUID:_=>c(_,m),uuid:e,validate:(_,R=!1)=>{if(!_||typeof _!="string")return!1;const H=b.consistentLength?_.length===S:_.length<=S,I=_.split("").every($=>h.includes($));return R===!1?H&&I:H&&I&&t(c(_,m))}};return Object.freeze(O),O};return f.constants=n,f.uuid=e,f.generate=()=>(s||(s=f(n.flickrBase58).generate),s()),f})(),Jd}var gi=sD();const Sx=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:i})=>{const s=`indent_line_${gi.generate()}`;return A.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[A.jsx("defs",{children:A.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:A.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,className:i?`stroke-[${i}]`:"stroke-body"})})}),n?A.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):A.jsx("rect",{fill:n?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},Ex=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?A.jsx("div",{className:"flex h-6 w-5 items-center",onClick:i=>r&&r(i),children:(()=>{switch(n){case"arrow":return A.jsx(sc,{className:st(["h-3 w-3 transform transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?A.jsx(sc,{}):A.jsx(H2,{});default:return A.jsx(sc,{className:"h-3 w-3 transform transition ease-in-out"})}})()}):A.jsx("div",{className:"flex h-6 w-3 items-center"}),Mp=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:i,searchQuery:s,renderNode:l,onNodeClick:c})=>{var b;const{key:u,children:f}=e,g=N.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),p=l&&typeof l=="function"?l(e,t,g,i,s):cD(e,t,g,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"flex items-center space-x-2",children:p},u),lD(f||[],t,s,r,n,g.expanded,i,c,l)]}):null},aD=function(e,t){var l;const{title:r,icon:n,subtitle:i}=e;let s=null;return n&&(s=A.jsx(bx,{children:n})),A.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,A.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),i&&A.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-muted",children:i})]})},lD=function(e,t,r,n,i,s,l,c,u){var f,g;return e.length&&s?(["dataclass-attribute","datasource-attribute","method"].includes(((f=e[0].data)==null?void 0:f.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((p,h)=>xS(p.title,h.title))).map(p=>A.jsx(Mp,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:i,onNodeClick:c,renderNode:u},p.key)):null},cD=function(e,t,r,n){return A.jsxs(A.Fragment,{children:[A.jsx(Sx,{showLines:!0,depth:t}),A.jsx(Ex,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),aD(e,n)]})},Hl=e=>t=>e===t,uD=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:i,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:f}){const[g,p]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||p({...g,expandedKeys:l||g.expandedKeys})},[l]);const h=N.useCallback(m=>{if(!m)return;const w=g.expandedKeys.findIndex(Hl(m.key));let x=[];w===-1?(x=[...g.expandedKeys,m.key],p(()=>({...g,expandedKeys:x})),i&&i(x)):(x=g.expandedKeys.filter(O=>O!==m.key),p(()=>({...g,expandedKeys:x})),i&&i(x))},[g]),b=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Hl(m.key))===-1&&p({...g,selectedKeys:[...g.selectedKeys,m.key]})},[g]),S=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Hl(m.key))===-1&&p({...g,selectedKeys:[m.key]})},[g]),v=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){p({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(Hl(m.key))!==-1&&p({...g,selectedKeys:g.selectedKeys.filter(O=>O!==m.key)})},[g]),y=N.useMemo(()=>({expand:h,select:b,selectSingle:S,deselect:v}),[v,h,b,S]);return A.jsx(Gi,{depth:u?0:1,borderType:"light",className:st("fd-tree",f,{"pl-2 mb-1 rounded border p-1":u}),children:t.map(m=>A.jsx(Mp,{node:m,searchQuery:s||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function vc(e){return e.of&&e.children?A.jsx(A.Fragment,{children:e.children}):null}function Mt(){return Mt=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},Mt.apply(null,arguments)}function dD(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=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(i){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 fD={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 _x(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var pD=/[A-Z]|^ms/g,hD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ox=function(t){return t.charCodeAt(1)===45},q0=function(t){return t!=null&&typeof t!="boolean"},Qd=_x(function(e){return Ox(e)?e:e.replace(pD,"-$&").toLowerCase()}),G0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(hD,function(n,i,s){return mn={name:i,styles:s,next:mn},i})}return fD[t]!==1&&!Ox(t)&&typeof r=="number"&&r!==0?r+"px":r};function pa(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 i=r;if(i.anim===1)return mn={name:i.name,styles:i.styles,next:mn},i.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)mn={name:l.name,styles:l.styles,next:mn},l=l.next;var c=s.styles+";";return c}return gD(e,t,r)}case"function":{if(e!==void 0){var u=mn,f=r(e);return mn=u,pa(e,t,f)}break}}var g=r;if(t==null)return g;var p=t[g];return p!==void 0?p:g}function gD(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=pa(e,t,r[i])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":q0(c)&&(n+=Qd(s)+":"+G0(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)q0(l[u])&&(n+=Qd(s)+":"+G0(s,l[u])+";");else{var f=pa(e,t,l);switch(s){case"animation":case"animationName":{n+=Qd(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}return n}var Z0=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function vD(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,i="";mn=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,i+=pa(r,t,s);else{var l=s;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=pa(r,t,e[c]),n){var u=s;i+=u[c]}Z0.lastIndex=0;for(var f="",g;(g=Z0.exec(i))!==null;)f+="-"+g[1];var p=dD(i)+f;return{name:p,styles:i,next:mn}}var mD=function(t){return t()},bD=V.useInsertionEffect?V.useInsertionEffect:!1,yD=bD||mD,wD=!0;function xD(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var kx=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||wD===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},SD=function(t,r,n){kx(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},ED=/^((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)-.*))$/,_D=_x(function(e){return ED.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),OD=_D,kD=function(t){return t!=="theme"},K0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?OD:kD},Y0=function(t,r,n){var i;if(r){var s=r.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},AD=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return kx(r,n,i),yD(function(){return SD(r,n,i)}),null},TD=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=Y0(t,r,n),u=c||K0(i),f=!u("as");return function(){var g=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)p.push.apply(p,g);else{var h=g[0];p.push(h[0]);for(var b=g.length,S=1;S<b;S++)p.push(g[S],h[S])}var v=Cf.withEmotionCache(function(y,m,w){var x=f&&y.as||i,O="",_=[],R=y;if(y.theme==null){R={};for(var H in y)R[H]=y[H];R.theme=V.useContext(Cf.ThemeContext)}typeof y.className=="string"?O=xD(m.registered,_,y.className):y.className!=null&&(O=y.className+" ");var I=vD(p.concat(_),m.registered,R);O+=m.key+"-"+I.name,l!==void 0&&(O+=" "+l);var $=f&&c===void 0?K0(x):u,U={};for(var j in y)f&&j==="as"||$(j)&&(U[j]=y[j]);return U.className=O,w&&(U.ref=w),V.createElement(V.Fragment,null,V.createElement(AD,{cache:m,serialized:I,isStringTag:typeof x=="string"}),V.createElement(x,U))});return v.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=p,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(y,m){var w=e(y,Mt({},r,m,{shouldForwardProp:Y0(v,m,!0)}));return w.apply(void 0,p)},v}},RD=["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"],Ic=TD.bind(null);RD.forEach(function(e){Ic[e]=Ic(e)});var CD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xo=new WeakMap,Bl=new WeakMap,Wl={},ef=0,Ax=function(e){return e&&(e.host||Ax(e.parentNode))},ID=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ax(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})},PD=function(e,t,r,n){var i=ID(t,Array.isArray(e)?e:[e]);Wl[r]||(Wl[r]=new WeakMap);var s=Wl[r],l=[],c=new Set,u=new Set(i),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};i.forEach(f);var g=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))g(h);else try{var b=h.getAttribute(n),S=b!==null&&b!=="false",v=(xo.get(h)||0)+1,y=(s.get(h)||0)+1;xo.set(h,v),s.set(h,y),l.push(h),v===1&&S&&Bl.set(h,!0),y===1&&h.setAttribute(r,"true"),S||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return g(t),c.clear(),ef++,function(){l.forEach(function(p){var h=xo.get(p)-1,b=s.get(p)-1;xo.set(p,h),s.set(p,b),h||(Bl.has(p)||p.removeAttribute(n),Bl.delete(p)),b||p.removeAttribute(r)}),ef--,ef||(xo=new WeakMap,xo=new WeakMap,Bl=new WeakMap,Wl={})}},ND=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=CD(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),PD(n,i,r,"aria-hidden")):function(){return null}},Ff=function(e,t){return Ff=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ff(e,t)};function Jc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ff(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bn=function(){return bn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},bn.apply(this,arguments)};function Tx(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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Hf(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 Bf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],l;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return s}function Pc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var mc="right-scroll-bar-position",bc="width-before-scroll-bar",MD="with-scroll-bars-hidden",DD="--removed-body-scroll-bar-size";function tf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LD(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var zD=typeof window<"u"?V.useLayoutEffect:V.useEffect,X0=new WeakMap;function $D(e,t){var r=LD(null,function(n){return e.forEach(function(i){return tf(i,n)})});return zD(function(){var n=X0.get(r);if(n){var i=new Set(n),s=new Set(e),l=r.current;i.forEach(function(c){s.has(c)||tf(c,null)}),s.forEach(function(c){i.has(c)||tf(c,l)})}X0.set(r,e)},[e]),r}function jD(e){return e}function FD(e,t){t===void 0&&(t=jD);var r=[],n=!1,i={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(s){var l=t(s,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(n=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var u=function(){var g=l;l=[],g.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),r={push:function(g){l.push(g),f()},filter:function(g){return l=l.filter(g),r}}}};return i}function HD(e){e===void 0&&(e={});var t=FD(null);return t.options=bn({async:!0,ssr:!1},e),t}var Rx=function(e){var t=e.sideCar,r=Tx(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 V.createElement(n,bn({},r))};Rx.isSideCarExport=!0;function BD(e,t){return e.useMedium(t),Rx}var Cx=HD(),rf=function(){},Qc=V.forwardRef(function(e,t){var r=V.useRef(null),n=V.useState({onScrollCapture:rf,onWheelCapture:rf,onTouchMoveCapture:rf}),i=n[0],s=n[1],l=e.forwardProps,c=e.children,u=e.className,f=e.removeScrollBar,g=e.enabled,p=e.shards,h=e.sideCar,b=e.noRelative,S=e.noIsolation,v=e.inert,y=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,O=Tx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,R=$D([r,t]),H=bn(bn({},O),i);return V.createElement(V.Fragment,null,g&&V.createElement(_,{sideCar:Cx,removeScrollBar:f,shards:p,noRelative:b,noIsolation:S,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:x}),l?V.cloneElement(V.Children.only(c),bn(bn({},H),{ref:R})):V.createElement(w,bn({},H,{className:u,ref:R}),c))});Qc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qc.classNames={fullWidth:bc,zeroRight:mc};var WD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WD();return t&&e.setAttribute("nonce",t),e}function UD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=VD())&&(UD(t,r),qD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZD=function(){var e=GD();return function(t,r){V.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ix=function(){var e=ZD(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},KD={left:0,top:0,right:0,gap:0},nf=function(e){return parseInt(e||"",10)||0},YD=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[nf(r),nf(n),nf(i)]},XD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KD;var t=YD(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])}},JD=Ix(),Co="data-scroll-locked",QD=function(e,t,r,n){var i=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
75
|
+
.`.concat(MD,` {
|
|
76
|
+
overflow: hidden `).concat(n,`;
|
|
77
|
+
padding-right: `).concat(c,"px ").concat(n,`;
|
|
26
78
|
}
|
|
27
|
-
body[`).concat(
|
|
28
|
-
overflow: hidden `).concat(
|
|
79
|
+
body[`).concat(Co,`] {
|
|
80
|
+
overflow: hidden `).concat(n,`;
|
|
29
81
|
overscroll-behavior: contain;
|
|
30
|
-
`).concat([t&&"position: relative ".concat(
|
|
31
|
-
padding-left: `.concat(
|
|
32
|
-
padding-top: `).concat(
|
|
82
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
83
|
+
padding-left: `.concat(i,`px;
|
|
84
|
+
padding-top: `).concat(s,`px;
|
|
33
85
|
padding-right: `).concat(l,`px;
|
|
34
86
|
margin-left:0;
|
|
35
87
|
margin-top:0;
|
|
36
|
-
margin-right: `).concat(c,"px ").concat(
|
|
37
|
-
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(
|
|
88
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
89
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
38
90
|
}
|
|
39
91
|
|
|
40
|
-
.`).concat(
|
|
41
|
-
right: `).concat(c,"px ").concat(
|
|
92
|
+
.`).concat(mc,` {
|
|
93
|
+
right: `).concat(c,"px ").concat(n,`;
|
|
42
94
|
}
|
|
43
95
|
|
|
44
|
-
.`).concat(
|
|
45
|
-
margin-right: `).concat(c,"px ").concat(
|
|
96
|
+
.`).concat(bc,` {
|
|
97
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
46
98
|
}
|
|
47
99
|
|
|
48
|
-
.`).concat(
|
|
49
|
-
right: 0 `).concat(
|
|
100
|
+
.`).concat(mc," .").concat(mc,` {
|
|
101
|
+
right: 0 `).concat(n,`;
|
|
50
102
|
}
|
|
51
103
|
|
|
52
|
-
.`).concat(
|
|
53
|
-
margin-right: 0 `).concat(
|
|
104
|
+
.`).concat(bc," .").concat(bc,` {
|
|
105
|
+
margin-right: 0 `).concat(n,`;
|
|
54
106
|
}
|
|
55
107
|
|
|
56
|
-
body[`).concat(
|
|
57
|
-
`).concat(
|
|
108
|
+
body[`).concat(Co,`] {
|
|
109
|
+
`).concat(DD,": ").concat(c,`px;
|
|
58
110
|
}
|
|
59
|
-
`)},
|
|
111
|
+
`)},J0=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},e3=function(){V.useEffect(function(){return document.body.setAttribute(Co,(J0()+1).toString()),function(){var e=J0()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},t3=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;e3();var s=V.useMemo(function(){return XD(i)},[i]);return V.createElement(JD,{styles:QD(s,!t,i,r?"":"!important")})},Wf=!1;if(typeof window<"u")try{var Vl=Object.defineProperty({},"passive",{get:function(){return Wf=!0,!0}});window.addEventListener("test",Vl,Vl),window.removeEventListener("test",Vl,Vl)}catch{Wf=!1}var So=Wf?{passive:!1}:!1,r3=function(e){return e.tagName==="TEXTAREA"},Px=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!r3(e)&&r[t]==="visible")},n3=function(e){return Px(e,"overflowY")},i3=function(e){return Px(e,"overflowX")},Q0=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Nx(e,n);if(i){var s=Mx(e,n),l=s[1],c=s[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},o3=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},s3=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Nx=function(e,t){return e==="v"?n3(t):i3(t)},Mx=function(e,t){return e==="v"?o3(t):s3(t)},a3=function(e,t){return e==="h"&&t==="rtl"?-1:1},l3=function(e,t,r,n,i){var s=a3(e,window.getComputedStyle(t).direction),l=s*n,c=r.target,u=t.contains(c),f=!1,g=l>0,p=0,h=0;do{if(!c)break;var b=Mx(e,c),S=b[0],v=b[1],y=b[2],m=v-y-s*S;(S||m)&&Nx(e,c)&&(p+=m,h+=S);var w=c.parentNode;c=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(g&&Math.abs(p)<1||!g&&Math.abs(h)<1)&&(f=!0),f},Ul=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eb=function(e){return[e.deltaX,e.deltaY]},tb=function(e){return e&&"current"in e?e.current:e},c3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},u3=function(e){return`
|
|
60
112
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
113
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},EP=0,gi=[];function _P(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(EP++)[0],a=$.useState(Dv)[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=Ea([e.lockRef.current],(e.shards||[]).map(Sg),!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=Ks(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,C=d.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&U==="h"&&C.type==="range")return!1;var M=window.getSelection(),D=M&&M.anchorNode,q=D?D===C||D.contains(C):!1;if(q)return!1;var N=wg(U,C);if(!N)return!0;if(N?O=U:(O=U==="v"?"h":"v",N=wg(U,C)),!N)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var L=i.current||O;return wP(L,w,d,L==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!gi.length||gi[gi.length-1]!==a)){var h="deltaY"in w?xg(w):Ks(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&xP(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(Sg).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:OP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),y=$.useCallback(function(d){r.current=Ks(d),i.current=void 0},[]),p=$.useCallback(function(d){m(d.type,xg(d),d.target,c(d,e.lockRef.current))},[]),g=$.useCallback(function(d){m(d.type,Ks(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return gi.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",f,hi),document.addEventListener("touchmove",f,hi),document.addEventListener("touchstart",y,hi),function(){gi=gi.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,hi),document.removeEventListener("touchmove",f,hi),document.removeEventListener("touchstart",y,hi)}},[]);var v=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:SP(s)}):null,v?$.createElement(pP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function OP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const AP=eP(Fv,_P);var Wv=$.forwardRef(function(e,t){return $.createElement(Wa,Rr({},e,{ref:t,sideCar:AP}))});Wv.classNames=Wa.classNames;const TP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},RP=$.useId||(()=>{});let PP=0;function Uv(e){const[t,r]=$.useState(RP());return TP((()=>{r((i=>i??String(PP++)))}),[e]),t?`radix-${t}`:""}function Bv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function Sn(...e){return $.useCallback(Bv(...e),e)}const Hv=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(Eg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>Eg(s)?$.createElement(wc,Qe({},i,{ref:t}),s.props.children):s))):$.createElement(wc,Qe({},i,{ref:t}),r)}));Hv.displayName="Slot";const wc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...CP(i,r.props),ref:Bv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));wc.displayName="SlotClone";const qv=({children:e})=>$.createElement($.Fragment,null,e);function Eg(e){return $.isValidElement(e)&&e.type===qv}function CP(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 En=["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?Hv:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Qe({},a,{ref:i}))}))})),{}),_g=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},tf=e=>{const{present:t,children:r}=e,i=(function(l){const[c,f]=$.useState(),m=$.useRef({}),y=$.useRef(l),p=$.useRef("none"),g=l?"mounted":"unmounted",[v,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Vs(m.current);p.current=v==="mounted"?d:"none"}),[v]),_g((()=>{const d=m.current,w=y.current;if(w!==l){const h=p.current,S=Vs(d);l?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),y.current=l}}),[l,x]),_g((()=>{if(c){const d=h=>{const S=Vs(m.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(p.current=Vs(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(v),ref:$.useCallback((d=>{d&&(m.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=Sn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function Vs(e){return(e==null?void 0:e.animationName)||"none"}tf.displayName="Presence";let zl=0;function kP(){$.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Og()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Og()),zl++,()=>{zl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),zl--}}),[])}function Og(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const $P=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},rf=$.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 $P((()=>{f({})}),[]),c?zo.createPortal($.createElement(En.div,Qe({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function qn(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 Ag={bubbles:!1,cancelable:!0},IP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,f]=$.useState(null),m=qn(s),y=qn(a),p=$.useRef(null),g=Sn(t,(d=>f(d))),v=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(v.paused||!c)return;const S=h.target;c.contains(S)?p.current=S:Mn(p.current,{select:!0})},w=function(h){!v.paused&&c&&(c.contains(h.relatedTarget)||Mn(p.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,v.paused]),$.useEffect((()=>{if(c){Pg.add(v);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",Ag);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(Mn(O,{select:E}),document.activeElement!==R)return})((d=Tg(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Mn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",Ag);c.addEventListener("focusScope.autoFocusOnUnmount",y),c.dispatchEvent(h),h.defaultPrevented||Mn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",y),Pg.remove(v)}),0)}}var d}),[c,m,y,v]);const x=$.useCallback((d=>{if(!r&&!i||v.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 C=Tg(O),U=Rg(C,O),M=Rg(C.reverse(),O);return[U,M]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&Mn(R,{select:!0})):(d.preventDefault(),r&&Mn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,v.paused]);return $.createElement(En.div,Qe({tabIndex:-1},l,{ref:g,onKeyDown:x}))}));function Tg(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 Rg(e,t){for(const r of e)if(!LP(r,{upTo:t}))return r}function LP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const Pg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Cg(e,t),e.unshift(t)},remove(t){var r;e=Cg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Cg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Zv(e){const t=qn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const MP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let kg,Xs=0;function FP({disabled:e}){const t=$.useRef(!1);MP((()=>{if(e){let r=function(){Xs--,Xs===0&&(document.body.style.pointerEvents=kg)},i=function(s){t.current=s.pointerType!=="mouse"};return Xs===0&&(kg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Xs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function qt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const DP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=e,m=$.useContext(DP),[y,p]=$.useState(null),[,g]=$.useState({}),v=Sn(t,(C=>p(C))),x=Array.from(m.layers),[d]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=y?x.indexOf(y):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=N=>{N.target&&!M.current&&Ig("dismissableLayer.pointerDownOutside",U,{originalEvent:N}),M.current=!1},q=window.setTimeout((()=>{document.addEventListener("pointerdown",D)}),0);return()=>{window.clearTimeout(q),document.removeEventListener("pointerdown",D)}}),[U]),{onPointerDownCapture:()=>M.current=!0}})((C=>{const U=C.target,M=[...m.branches].some((D=>D.contains(U)));E&&!M&&(s==null||s(C),l==null||l(C),C.defaultPrevented||c==null||c())})),O=(function(C){const U=qn(C),M=$.useRef(!1);return $.useEffect((()=>{const D=q=>{q.target&&!M.current&&Ig("dismissableLayer.focusOutside",U,{originalEvent:q})};return document.addEventListener("focusin",D),()=>document.removeEventListener("focusin",D)}),[U]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((C=>{const U=C.target;[...m.branches].some((M=>M.contains(U)))||(a==null||a(C),l==null||l(C),C.defaultPrevented||c==null||c())}));return Zv((C=>{h===m.layers.size-1&&(i==null||i(C),C.defaultPrevented||c==null||c())})),FP({disabled:r}),$.useEffect((()=>{y&&(r&&m.layersWithOutsidePointerEventsDisabled.add(y),m.layers.add(y),$g())}),[y,r,m]),$.useEffect((()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),$g())}),[y,m]),$.useEffect((()=>{const C=()=>g({});return document.addEventListener("dismissableLayer.update",C),()=>document.removeEventListener("dismissableLayer.update",C)}),[]),$.createElement(En.div,Qe({},f,{ref:v,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function $g(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Ig(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 Lg(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 jP(e,t){const r=Fn.get(e);return r===void 0?(Fn.set(e,{rect:{},callbacks:[t]}),Fn.size===1&&(xc=requestAnimationFrame(Gv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Fn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Fn.delete(e),Fn.size===0&&cancelAnimationFrame(xc))}}let xc;const Fn=new Map;function Gv(){const e=[];Fn.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)))})),xc=requestAnimationFrame(Gv)}function Kv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=jP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function nf(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:y,children:p,...g}=m,v=(y==null?void 0:y[e][c])||l,x=$.useMemo((()=>g),Object.values(g));return $.createElement(v.Provider,{value:x},p)}return r=[...r,a],f.displayName=s+"Provider",[f,function(m,y){const p=(y==null?void 0:y[e][c])||l,g=$.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},zP(i,...t)]}function zP(...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 WP({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:y=0}){if(!e||!t||!m)return{popperStyles:UP,arrowStyles:Wl};const p=(function(U,M,D=0,q=0,N){const L=N?N.height:0,B=Mg(M,U,"x"),Z=Mg(M,U,"y"),k=Z.before-D-L,Q=Z.after+D+L,J=B.before-D-L,re=B.after+D+L;return{top:{start:{x:B.start+q,y:k},center:{x:B.center,y:k},end:{x:B.end-q,y:k}},right:{start:{x:re,y:Z.start+q},center:{x:re,y:Z.center},end:{x:re,y:Z.end-q}},bottom:{start:{x:B.start+q,y:Q},center:{x:B.center,y:Q},end:{x:B.end-q,y:Q}},left:{start:{x:J,y:Z.start+q},center:{x:J,y:Z.center},end:{x:J,y:Z.end-q}}}})(t,e,a,c,r),g=p[s][l];if(f===!1){const U=Fg(g);let M=Wl;return r&&(M=Ng({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Dg(t,s,l,i,r)},arrowStyles:M,placedSide:s,placedAlign:l}}const v=DOMRect.fromRect({...t,...g}),x=(d=m,w=y,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=zg(v,x),S=p[jg(s)][l],E=(function(U,M,D){const q=jg(U);return M[U]&&!D[q]?q:U})(s,h,zg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,M,D,q,N){const L=D==="top"||D==="bottom",B=L?"left":"top",Z=L?"right":"bottom",k=L?"width":"height",Q=M[k]>U[k];return(q==="start"||q==="center")&&(N[B]&&Q||N[Z]&&!Q)?"end":(q==="end"||q==="center")&&(N[Z]&&Q||N[B]&&!Q)?"start":q})(t,e,s,l,h),O=Fg(p[E][R]);let C=Wl;return r&&(C=Ng({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Dg(t,E,R,i,r)},arrowStyles:C,placedSide:E,placedAlign:R}}function Mg(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 Fg(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 Dg(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="",y="";return a?(m={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],y=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",y={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${m} ${y}`}const UP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Wl={position:"absolute",opacity:0};function Ng({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 jg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function zg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Vv,Ua]=nf("Popper"),[HP,Xv]=Vv("Popper"),qP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(HP,{scope:t,anchor:i,onAnchorChange:s},r)},ZP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Xv("PopperAnchor",r),l=$.useRef(null),c=Sn(t,l);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(En.div,Qe({},s,{ref:c}))})),[GP,MM]=Vv("PopperContent"),KP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,y=Xv("PopperContent",r),[p,g]=$.useState(),v=Kv(y.anchor),[x,d]=$.useState(null),w=Lg(x),[h,S]=$.useState(null),E=Lg(h),R=Sn(t,(L=>d(L))),O=(function(){const[L,B]=$.useState(void 0);return $.useEffect((()=>{let Z;function k(){B({width:window.innerWidth,height:window.innerHeight})}function Q(){window.clearTimeout(Z),Z=window.setTimeout(k,100)}return k(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)}),[]),L})(),C=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:M,placedSide:D,placedAlign:q}=WP({anchorRect:v,popperSize:w,arrowSize:E,arrowOffset:p,side:i,sideOffset:s,align:a,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:C,collisionTolerance:c}),N=D!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(GP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:g},$.createElement(En.div,Qe({"data-side":D,"data-align":q},m,{style:{...m.style,animation:N?void 0:"none"},ref:R}))))})),Yv=qP,Jv=ZP,Qv=KP;function ey({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:m}){const y=$.useState(f),[p]=y,g=$.useRef(p),v=qn(m);return $.useEffect((()=>{g.current!==p&&(v(p),g.current=p)}),[p,g,v]),y})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:i,c=qn(r);return[l,$.useCallback((f=>{if(a){const m=f,y=typeof f=="function"?m(e):f;y!==e&&c(y)}else s(f)}),[a,e,s,c])]}const[VP]=nf("Popover",[Ua]),of=Ua(),[XP,Bo]=VP("Popover"),YP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=of(t),f=$.useRef(null),[m,y]=$.useState(!1),[p=!1,g]=ey({prop:i,defaultProp:s,onChange:a});return $.createElement(Yv,c,$.createElement(XP,{scope:t,contentId:Uv(),triggerRef:f,open:p,onOpenChange:g,onOpenToggle:$.useCallback((()=>g((v=>!v))),[g]),hasCustomAnchor:m,onCustomAnchorAdd:$.useCallback((()=>y(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>y(!1)),[]),modal:l},r))},JP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Bo("PopoverTrigger",r),a=of(r),l=Sn(t,s.triggerRef),c=$.createElement(En.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ry(s.open)},i,{ref:l,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(Jv,Qe({asChild:!0},a),c)})),QP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Bo("PopoverContent",e.__scopePopover);return $.createElement(tf,{present:r||s.open},s.modal?$.createElement(eC,Qe({},i,{ref:t})):$.createElement(tC,Qe({},i,{ref:t})))})),eC=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Bo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=Sn(t,l),f=$.useRef(!1);$.useEffect((()=>{const y=l.current;if(y)return qR(y)}),[]);const m=i?rf:$.Fragment;return $.createElement(m,null,$.createElement(Wv,{allowPinchZoom:r},$.createElement(ty,Qe({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,(y=>{var p;y.preventDefault(),f.current||(p=a.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:qt(e.onPointerDownOutside,(y=>{const p=y.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,v=p.button===2||g;f.current=v}),{checkForDefaultPrevented:!1}),onFocusOutside:qt(e.onFocusOutside,(y=>y.preventDefault()),{checkForDefaultPrevented:!1})}))))})),tC=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Bo("PopoverContent",e.__scopePopover),a=$.useRef(!1),l=r?rf:$.Fragment;return $.createElement(l,null,$.createElement(ty,Qe({},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 y=c.target;!((m=s.triggerRef.current)===null||m===void 0)&&m.contains(y)&&c.preventDefault()}})))})),ty=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:y,...p}=e,g=Bo("PopoverContent",r),v=of(r);return kP(),$.createElement(IP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(NP,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:y,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1)},$.createElement(Qv,Qe({"data-state":ry(g.open),role:"dialog",id:g.contentId},v,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ry(e){return e?"open":"closed"}const rC=YP,nC=JP,iC=QP;var ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ha||{}),Ul={},so={},Ys={},Js={},Qs={exports:{}},ea={exports:{}},Fe={};/** @license React v16.13.1
|
|
114
|
+
`)},d3=0,Eo=[];function f3(e){var t=V.useRef([]),r=V.useRef([0,0]),n=V.useRef(),i=V.useState(d3++)[0],s=V.useState(Ix)[0],l=V.useRef(e);V.useEffect(function(){l.current=e},[e]),V.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=Pc([e.lockRef.current],(e.shards||[]).map(tb),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=V.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=Ul(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],O="deltaY"in v?v.deltaY:w[1]-m[1],_,R=v.target,H=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in v&&H==="h"&&R.type==="range")return!1;var I=window.getSelection(),$=I&&I.anchorNode,U=$?$===R||$.contains(R):!1;if(U)return!1;var j=Q0(H,R);if(!j)return!0;if(j?_=H:(_=H==="v"?"h":"v",j=Q0(H,R)),!j)return!1;if(!n.current&&"changedTouches"in v&&(x||O)&&(n.current=_),!_)return!0;var M=n.current||_;return l3(M,y,v,M==="h"?x:O)},[]),u=V.useCallback(function(v){var y=v;if(!(!Eo.length||Eo[Eo.length-1]!==s)){var m="deltaY"in y?eb(y):Ul(y),w=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&c3(_.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(tb).filter(Boolean).filter(function(_){return _.contains(y.target)}),O=x.length>0?c(y,x[0]):!l.current.noIsolation;O&&y.cancelable&&y.preventDefault()}}},[]),f=V.useCallback(function(v,y,m,w){var x={name:v,delta:y,target:m,should:w,shadowParent:p3(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(O){return O!==x})},1)},[]),g=V.useCallback(function(v){r.current=Ul(v),n.current=void 0},[]),p=V.useCallback(function(v){f(v.type,eb(v),v.target,c(v,e.lockRef.current))},[]),h=V.useCallback(function(v){f(v.type,Ul(v),v.target,c(v,e.lockRef.current))},[]);V.useEffect(function(){return Eo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,So),document.addEventListener("touchmove",u,So),document.addEventListener("touchstart",g,So),function(){Eo=Eo.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,So),document.removeEventListener("touchmove",u,So),document.removeEventListener("touchstart",g,So)}},[]);var b=e.removeScrollBar,S=e.inert;return V.createElement(V.Fragment,null,S?V.createElement(s,{styles:u3(i)}):null,b?V.createElement(t3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function p3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const h3=BD(Cx,f3);var Dx=V.forwardRef(function(e,t){return V.createElement(Qc,bn({},e,{ref:t,sideCar:h3}))});Dx.classNames=Qc.classNames;const g3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},v3=V.useId||(()=>{});let m3=0;function b3(e){const[t,r]=V.useState(v3());return g3((()=>{r((n=>n??String(m3++)))}),[e]),e||(t?`radix-${t}`:"")}function Lx(...e){return t=>e.forEach((r=>(function(n,i){typeof n=="function"?n(i):n!=null&&(n.current=i)})(r,t)))}function Zi(...e){return V.useCallback(Lx(...e),e)}const zx=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.Children.toArray(r).some(rb)?V.createElement(V.Fragment,null,V.Children.map(r,(i=>rb(i)?V.createElement(Vf,Mt({},n,{ref:t}),i.props.children):i))):V.createElement(Vf,Mt({},n,{ref:t}),r)}));zx.displayName="Slot";const Vf=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.isValidElement(r)?V.cloneElement(r,{...w3(n,r.props),ref:Lx(t,r.ref)}):V.Children.count(r)>1?V.Children.only(null):null}));Vf.displayName="SlotClone";const y3=({children:e})=>V.createElement(V.Fragment,null,e);function rb(e){return V.isValidElement(e)&&e.type===y3}function w3(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{s==null||s(...l),i==null||i(...l)}:n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}const qo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:V.forwardRef(((r,n)=>{const{asChild:i,...s}=r,l=i?zx:t;return V.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),V.createElement(l,Mt({},s,{ref:n}))}))})),{}),nb=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},$x=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=V.useState(),f=V.useRef({}),g=V.useRef(l),p=V.useRef("none"),h=l?"mounted":"unmounted",[b,S]=(function(v,y){return V.useReducer(((m,w)=>{const x=y[m][w];return x??m}),v)})(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return V.useEffect((()=>{const v=ql(f.current);p.current=b==="mounted"?v:"none"}),[b]),nb((()=>{const v=f.current,y=g.current;if(y!==l){const m=p.current,w=ql(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(y&&m!==w?"ANIMATION_OUT":"UNMOUNT"),g.current=l}}),[l,S]),nb((()=>{if(c){const v=m=>{const w=ql(f.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(p.current=ql(f.current))};return c.addEventListener("animationstart",y),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v),()=>{c.removeEventListener("animationstart",y),c.removeEventListener("animationcancel",v),c.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[c,S]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:V.useCallback((v=>{v&&(f.current=getComputedStyle(v)),u(v)}),[])}})(t),i=typeof r=="function"?r({present:n.isPresent}):V.Children.only(r),s=Zi(n.ref,i.ref);return typeof r=="function"||n.isPresent?V.cloneElement(i,{ref:s}):null};function ql(e){return(e==null?void 0:e.animationName)||"none"}$x.displayName="Presence";let of=0;function x3(){V.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:ib()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:ib()),of++,()=>{of===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),of--}}),[])}function ib(){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 S3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},jx=V.forwardRef(((e,t)=>{var r,n;const{containerRef:i,style:s,...l}=e,c=(r=i==null?void 0:i.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,u]=V.useState({});return S3((()=>{u({})}),[]),c?En.createPortal(V.createElement(qo.div,Mt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Vi(e){const t=V.useRef(e);return V.useEffect((()=>{t.current=e})),V.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const ob={bubbles:!1,cancelable:!0},E3=V.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,u]=V.useState(null),f=Vi(i),g=Vi(s),p=V.useRef(null),h=Zi(t,(v=>u(v))),b=V.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;V.useEffect((()=>{if(n){let v=function(m){if(b.paused||!c)return;const w=m.target;c.contains(w)?p.current=w:Mi(p.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||Mi(p.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y)}}}),[n,c,b.paused]),V.useEffect((()=>{if(c){lb.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",ob);c.addEventListener("focusScope.autoFocusOnMount",f),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const O=document.activeElement;for(const _ of w)if(Mi(_,{select:x}),document.activeElement!==O)return})((v=sb(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&Mi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",f),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",ob);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(m),m.defaultPrevented||Mi(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),lb.remove(b)}),0)}}var v}),[c,f,g,b]);const S=V.useCallback((v=>{if(!r&&!n||b.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(y&&m){const w=v.currentTarget,[x,O]=(function(_){const R=sb(_),H=ab(R,_),I=ab(R.reverse(),_);return[H,I]})(w);x&&O?v.shiftKey||m!==O?v.shiftKey&&m===x&&(v.preventDefault(),r&&Mi(O,{select:!0})):(v.preventDefault(),r&&Mi(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return V.createElement(qo.div,Mt({tabIndex:-1},l,{ref:h,onKeyDown:S}))}));function sb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ab(e,t){for(const r of e)if(!_3(r,{upTo:t}))return r}function _3(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 Mi(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 lb=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=cb(e,t),e.unshift(t)},remove(t){var r;e=cb(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function cb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function O3(e){const t=Vi(e);V.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const k3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{};let ub,Gl=0;function A3({disabled:e}){const t=V.useRef(!1);k3((()=>{if(e){let r=function(){Gl--,Gl===0&&(document.body.style.pointerEvents=ub)},n=function(i){t.current=i.pointerType!=="mouse"};return Gl===0&&(ub=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Gl++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Bi(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 T3=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R3=V.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,f=V.useContext(T3),[g,p]=V.useState(null),[,h]=V.useState({}),b=Zi(t,(R=>p(R))),S=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(v),m=g?S.indexOf(g):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,x=m>=y,O=(function(R){const H=Vi(R),I=V.useRef(!1);return V.useEffect((()=>{const $=j=>{j.target&&!I.current&&fb("dismissableLayer.pointerDownOutside",H,{originalEvent:j}),I.current=!1},U=window.setTimeout((()=>{document.addEventListener("pointerdown",$)}),0);return()=>{window.clearTimeout(U),document.removeEventListener("pointerdown",$)}}),[H]),{onPointerDownCapture:()=>I.current=!0}})((R=>{const H=R.target,I=[...f.branches].some(($=>$.contains(H)));x&&!I&&(i==null||i(R),l==null||l(R),R.defaultPrevented||c==null||c())})),_=(function(R){const H=Vi(R),I=V.useRef(!1);return V.useEffect((()=>{const $=U=>{U.target&&!I.current&&fb("dismissableLayer.focusOutside",H,{originalEvent:U})};return document.addEventListener("focusin",$),()=>document.removeEventListener("focusin",$)}),[H]),{onFocusCapture:()=>I.current=!0,onBlurCapture:()=>I.current=!1}})((R=>{const H=R.target;[...f.branches].some((I=>I.contains(H)))||(s==null||s(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return O3((R=>{m===f.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),A3({disabled:r}),V.useEffect((()=>{g&&(r&&f.layersWithOutsidePointerEventsDisabled.add(g),f.layers.add(g),db())}),[g,r,f]),V.useEffect((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),db())}),[g,f]),V.useEffect((()=>{const R=()=>h({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),V.createElement(qo.div,Mt({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Bi(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Bi(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Bi(e.onPointerDownCapture,O.onPointerDownCapture)}))}));function db(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function fb(e,t,r){const n=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(i)}function pb(e){const[t,r]=V.useState(void 0);return V.useEffect((()=>{if(e){const n=new ResizeObserver((i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const u=s.borderBoxSize,f=Array.isArray(u)?u[0]:u;l=f.inlineSize,c=f.blockSize}else{const u=e.getBoundingClientRect();l=u.width,c=u.height}r({width:l,height:c})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)}),[e]),t}function C3(e,t){const r=Di.get(e);return r===void 0?(Di.set(e,{rect:{},callbacks:[t]}),Di.size===1&&(Uf=requestAnimationFrame(Fx))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Di.get(e);if(n===void 0)return;const i=n.callbacks.indexOf(t);i>-1&&n.callbacks.splice(i,1),n.callbacks.length===0&&(Di.delete(e),Di.size===0&&cancelAnimationFrame(Uf))}}let Uf;const Di=new Map;function Fx(){const e=[];Di.forEach(((t,r)=>{const n=r.getBoundingClientRect();var i,s;i=t.rect,s=n,(i.width!==s.width||i.height!==s.height||i.top!==s.top||i.right!==s.right||i.bottom!==s.bottom||i.left!==s.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Uf=requestAnimationFrame(Fx)}function I3(e){const[t,r]=V.useState();return V.useEffect((()=>{if(e){const n=C3(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Hx(e,t=[]){let r=[];const n=()=>{const i=r.map((s=>V.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||i;return V.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return n.scopeName=e,[function(i,s){const l=V.createContext(s),c=r.length;function u(f){const{scope:g,children:p,...h}=f,b=(g==null?void 0:g[e][c])||l,S=V.useMemo((()=>h),Object.values(h));return V.createElement(b.Provider,{value:S},p)}return r=[...r,s],u.displayName=i+"Provider",[u,function(f,g){const p=(g==null?void 0:g[e][c])||l,h=V.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}]},P3(n,...t)]}function P3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((i=>({useScope:i(),scopeName:i.scopeName})));return function(i){const s=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(i)[`__scope${u}`]})),{});return V.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function N3({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:i,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:f,collisionTolerance:g=0}){if(!e||!t||!f)return{popperStyles:M3,arrowStyles:sf};const p=(function(H,I,$=0,U=0,j){const M=j?j.height:0,D=hb(I,H,"x"),F=hb(I,H,"y"),P=F.before-$-M,K=F.after+$+M,ee=D.before-$-M,Y=D.after+$+M;return{top:{start:{x:D.start+U,y:P},center:{x:D.center,y:P},end:{x:D.end-U,y:P}},right:{start:{x:Y,y:F.start+U},center:{x:Y,y:F.center},end:{x:Y,y:F.end-U}},bottom:{start:{x:D.start+U,y:K},center:{x:D.center,y:K},end:{x:D.end-U,y:K}},left:{start:{x:ee,y:F.start+U},center:{x:ee,y:F.center},end:{x:ee,y:F.end-U}}}})(t,e,s,c,r),h=p[i][l];if(u===!1){const H=gb(h);let I=sf;return r&&(I=mb({popperSize:t,arrowSize:r,arrowOffset:n,side:i,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":vb(t,i,l,n,r)},arrowStyles:I,placedSide:i,placedAlign:l}}const b=DOMRect.fromRect({...t,...h}),S=(v=f,y=g,DOMRect.fromRect({width:v.width-2*y,height:v.height-2*y,x:v.left+y,y:v.top+y}));var v,y;const m=yb(b,S),w=p[bb(i)][l],x=(function(H,I,$){const U=bb(H);return I[H]&&!$[U]?U:H})(i,m,yb(DOMRect.fromRect({...t,...w}),S)),O=(function(H,I,$,U,j){const M=$==="top"||$==="bottom",D=M?"left":"top",F=M?"right":"bottom",P=M?"width":"height",K=I[P]>H[P];return(U==="start"||U==="center")&&(j[D]&&K||j[F]&&!K)?"end":(U==="end"||U==="center")&&(j[F]&&K||j[D]&&!K)?"start":U})(t,e,i,l,m),_=gb(p[x][O]);let R=sf;return r&&(R=mb({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:O})),{popperStyles:{..._,"--radix-popper-transform-origin":vb(t,x,O,n,r)},arrowStyles:R,placedSide:x,placedAlign:O}}function hb(e,t,r){const n=e[r==="x"?"left":"top"],i=r==="x"?"width":"height",s=e[i],l=t[i];return{before:n-l,start:n,center:n+(s-l)/2,end:n+s-l,after:n+s}}function gb(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 vb(e,t,r,n,i){const s=t==="top"||t==="bottom",l=i?i.width:0,c=i?i.height:0,u=l/2+n;let f="",g="";return s?(f={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(f=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${f} ${g}`}const M3={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},sf={position:"absolute",opacity:0};function mb({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:i}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[n],u=Math.max(t.width,t.height),f={width:`${u}px`,height:`${u}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:D3(n,i)};return n!=="top"&&n!=="bottom"||(i==="start"&&(f.left=`${r}px`),i==="center"&&(f.left=`${s}px`),i==="end"&&(f.right=`${r}px`)),n!=="left"&&n!=="right"||(i==="start"&&(f.top=`${r}px`),i==="center"&&(f.top=`${l}px`),i==="end"&&(f.bottom=`${r}px`)),f}function D3(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function bb(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function yb(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Bx,Wx]=Hx("Popper"),[L3,Vx]=Bx("Popper"),z3=e=>{const{__scopePopper:t,children:r}=e,[n,i]=V.useState(null);return V.createElement(L3,{scope:t,anchor:n,onAnchorChange:i},r)},$3=V.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=Vx("PopperAnchor",r),l=V.useRef(null),c=Zi(t,l);return V.useEffect((()=>{s.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:V.createElement(qo.div,Mt({},i,{ref:c}))})),[j3,Z6]=Bx("PopperContent"),F3=V.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...f}=e,g=Vx("PopperContent",r),[p,h]=V.useState(),b=I3(g.anchor),[S,v]=V.useState(null),y=pb(S),[m,w]=V.useState(null),x=pb(m),O=Zi(t,(M=>v(M))),_=(function(){const[M,D]=V.useState(void 0);return V.useEffect((()=>{let F;function P(){D({width:window.innerWidth,height:window.innerHeight})}function K(){window.clearTimeout(F),F=window.setTimeout(P,100)}return P(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}),[]),M})(),R=_?DOMRect.fromRect({..._,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:I,placedSide:$,placedAlign:U}=N3({anchorRect:b,popperSize:y,arrowSize:x,arrowOffset:p,side:n,sideOffset:i,align:s,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),j=$!==void 0;return V.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},V.createElement(j3,{scope:r,arrowStyles:I,onArrowChange:w,onArrowOffsetChange:h},V.createElement(qo.div,Mt({"data-side":$,"data-align":U},f,{style:{...f.style,animation:j?void 0:"none"},ref:O}))))})),H3=z3,B3=$3,W3=F3;function V3({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,i]=(function({defaultProp:u,onChange:f}){const g=V.useState(u),[p]=g,h=V.useRef(p),b=Vi(f);return V.useEffect((()=>{h.current!==p&&(b(p),h.current=p)}),[p,h,b]),g})({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n,c=Vi(r);return[l,V.useCallback((u=>{if(s){const f=u,g=typeof u=="function"?f(e):u;g!==e&&c(g)}else i(u)}),[s,e,i,c])]}const[U3]=Hx("Popover",[Wx]),Dp=Wx(),[q3,Aa]=U3("Popover"),G3=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=Dp(t),u=V.useRef(null),[f,g]=V.useState(!1),[p=!1,h]=V3({prop:n,defaultProp:i,onChange:s});return V.createElement(H3,c,V.createElement(q3,{scope:t,contentId:b3(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:V.useCallback((()=>h((b=>!b))),[h]),hasCustomAnchor:f,onCustomAnchorAdd:V.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:V.useCallback((()=>g(!1)),[]),modal:l},r))},Z3=V.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,i=Aa("PopoverTrigger",r),s=Dp(r),l=Zi(t,i.triggerRef),c=V.createElement(qo.button,Mt({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":qx(i.open)},n,{ref:l,onClick:Bi(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:V.createElement(B3,Mt({asChild:!0},s),c)})),K3=V.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,i=Aa("PopoverContent",e.__scopePopover);return V.createElement($x,{present:r||i.open},i.modal?V.createElement(Y3,Mt({},n,{ref:t})):V.createElement(X3,Mt({},n,{ref:t})))})),Y3=V.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...i}=e,s=Aa("PopoverContent",e.__scopePopover),l=V.useRef(null),c=Zi(t,l),u=V.useRef(!1);V.useEffect((()=>{const g=l.current;if(g)return ND(g)}),[]);const f=n?jx:V.Fragment;return V.createElement(f,null,V.createElement(Dx,{allowPinchZoom:r},V.createElement(Ux,Mt({},i,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bi(e.onCloseAutoFocus,(g=>{var p;g.preventDefault(),u.current||(p=s.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:Bi(e.onPointerDownOutside,(g=>{const p=g.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,b=p.button===2||h;u.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Bi(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),X3=V.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,i=Aa("PopoverContent",e.__scopePopover),s=V.useRef(!1),l=r?jx:V.Fragment;return V.createElement(l,null,V.createElement(Ux,Mt({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,f;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current||(f=i.triggerRef.current)===null||f===void 0||f.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var u,f;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current=!0);const g=c.target;!((f=i.triggerRef.current)===null||f===void 0)&&f.contains(g)&&c.preventDefault()}})))})),Ux=V.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:g,...p}=e,h=Aa("PopoverContent",r),b=Dp(r);return x3(),V.createElement(E3,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},V.createElement(R3,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1)},V.createElement(W3,Mt({"data-state":qx(h.open),role:"dialog",id:h.contentId},b,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function qx(e){return e?"open":"closed"}const J3=G3,Q3=Z3,eL=K3;var yc=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(yc||{}),af={},zs={},Zl={},Kl={},Yl={exports:{}},Xl={exports:{}},Ke={};/** @license React v16.13.1
|
|
63
115
|
* react-is.production.min.js
|
|
64
116
|
*
|
|
65
117
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
118
|
*
|
|
67
119
|
* This source code is licensed under the MIT license found in the
|
|
68
120
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var
|
|
121
|
+
*/var wb;function tL(){if(wb)return Ke;wb=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,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Ke.AsyncMode=u,Ke.ConcurrentMode=f,Ke.ContextConsumer=c,Ke.ContextProvider=l,Ke.Element=t,Ke.ForwardRef=g,Ke.Fragment=n,Ke.Lazy=S,Ke.Memo=b,Ke.Portal=r,Ke.Profiler=s,Ke.StrictMode=i,Ke.Suspense=p,Ke.isAsyncMode=function(_){return O(_)||x(_)===u},Ke.isConcurrentMode=O,Ke.isContextConsumer=function(_){return x(_)===c},Ke.isContextProvider=function(_){return x(_)===l},Ke.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ke.isForwardRef=function(_){return x(_)===g},Ke.isFragment=function(_){return x(_)===n},Ke.isLazy=function(_){return x(_)===S},Ke.isMemo=function(_){return x(_)===b},Ke.isPortal=function(_){return x(_)===r},Ke.isProfiler=function(_){return x(_)===s},Ke.isStrictMode=function(_){return x(_)===i},Ke.isSuspense=function(_){return x(_)===p},Ke.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ke.typeOf=x,Ke}var Ye={};/** @license React v16.13.1
|
|
70
122
|
* react-is.development.js
|
|
71
123
|
*
|
|
72
124
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
125
|
*
|
|
74
126
|
* This source code is licensed under the MIT license found in the
|
|
75
127
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
128
|
+
*/var xb;function rL(){return xb||(xb=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,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===f||Z===s||Z===i||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===g||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function O(Z){if(typeof Z=="object"&&Z!==null){var Te=Z.$$typeof;switch(Te){case t:var ge=Z.type;switch(ge){case u:case f:case n:case s:case i:case p:return ge;default:var at=ge&&ge.$$typeof;switch(at){case c:case g:case S:case b:case l:return at;default:return Te}}case r:return Te}}}var _=u,R=f,H=c,I=l,$=t,U=g,j=n,M=S,D=b,F=r,P=s,K=i,ee=p,Y=!1;function ve(Z){return Y||(Y=!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(Z)||O(Z)===u}function z(Z){return O(Z)===f}function W(Z){return O(Z)===c}function X(Z){return O(Z)===l}function te(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return O(Z)===g}function oe(Z){return O(Z)===n}function ae(Z){return O(Z)===S}function ne(Z){return O(Z)===b}function de(Z){return O(Z)===r}function he(Z){return O(Z)===s}function fe(Z){return O(Z)===i}function ye(Z){return O(Z)===p}Ye.AsyncMode=_,Ye.ConcurrentMode=R,Ye.ContextConsumer=H,Ye.ContextProvider=I,Ye.Element=$,Ye.ForwardRef=U,Ye.Fragment=j,Ye.Lazy=M,Ye.Memo=D,Ye.Portal=F,Ye.Profiler=P,Ye.StrictMode=K,Ye.Suspense=ee,Ye.isAsyncMode=ve,Ye.isConcurrentMode=z,Ye.isContextConsumer=W,Ye.isContextProvider=X,Ye.isElement=te,Ye.isForwardRef=J,Ye.isFragment=oe,Ye.isLazy=ae,Ye.isMemo=ne,Ye.isPortal=de,Ye.isProfiler=he,Ye.isStrictMode=fe,Ye.isSuspense=ye,Ye.isValidElementType=x,Ye.typeOf=O})()),Ye}var Sb;function Gx(){return Sb||(Sb=1,process.env.NODE_ENV==="production"?Xl.exports=tL():Xl.exports=rL()),Xl.exports}/*
|
|
77
129
|
object-assign
|
|
78
130
|
(c) Sindre Sorhus
|
|
79
131
|
@license MIT
|
|
80
|
-
*/var
|
|
81
|
-
Valid keys: `+JSON.stringify(Object.keys(G),null," "));var oe=ot(ve,_e,ie,he,fe+"."+_e,r);if(oe)return oe}return null}return w(te)}function Z(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(Z);if(G===null||c(G))return!0;var te=p(G);if(te){var ne=te.call(G),ue;if(te!==G.entries){for(;!(ue=ne.next()).done;)if(!Z(ue.value))return!1}else for(;!(ue=ne.next()).done;){var ie=ue.value;if(ie&&!Z(ie[1]))return!1}}else return!1;return!0;default:return!1}}function k(G,te){return G==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function Q(G){var te=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":k(te,G)?"symbol":te}function J(G){if(typeof G>"u"||G===null)return""+G;var te=Q(G);if(te==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return te}function re(G){var te=J(G);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function ce(G){return!G.constructor||!G.constructor.name?g:G.constructor.name}return v.checkPropTypes=s,v.resetWarningCache=s.resetWarningCache,v.PropTypes=v,v},Gl}var Kl,Vg;function cC(){if(Vg)return Kl;Vg=1;var e=sf();function t(){}function r(){}return r.resetWarningCache=t,Kl=function(){function i(l,c,f,m,y,p){if(p!==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}}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},Kl}var Xg;function fC(){if(Xg)return Qs.exports;if(Xg=1,process.env.NODE_ENV!=="production"){var e=ny(),t=!0;Qs.exports=lC()(e.isElement,t)}else Qs.exports=cC()();return Qs.exports}var Yg;function dC(){return Yg||(Yg=1,(function(e){(function(t,r){r(e,W,fC())})(Js,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 y=(function(){function S(E,R){for(var O=0;O<R.length;O++){var C=R[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function p(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 g(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 v=!1;function x(S){v=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 v?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 C=S.screenX,U=S.screenY;return{x:C,y:U}}var h=(function(S){g(E,S);function E(){var R;m(this,E);for(var O=arguments.length,C=Array(O),U=0;U<O;U++)C[U]=arguments[U];var M=p(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(C)));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 y(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 C=w(O),U=C.x,M=C.y;this.moveStart={x:U,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var C=w(O),U=C.x,M=C.y,D=U-this.moveStart.x,q=M-this.moveStart.y;this.moving=!0;var N=this.props.onSwipeMove({x:D,y:q},O);N&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:D,deltaY:q}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var C=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-C?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>C&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-C?this.props.onSwipeUp(1,O):this.movePosition.deltaY>C&&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 C=O.className,U=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var D=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:C,style:U},D),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})})(Js)),Js}var Jg;function oy(){return Jg||(Jg=1,(function(e){(function(t,r){r(e,dC())})(Ys,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})})(Ys)),Ys}var ao={},Qg;function sy(){if(Qg)return ao;Qg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=t(gv());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 ao.default=i,ao}var uo={},lo={},em;function pC(){if(em)return lo;em=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return lo.outerWidth=e,lo}var co={},tm;function af(){if(tm)return co;tm=1,Object.defineProperty(co,"__esModule",{value:!0}),co.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 co.default=e,co}var fo={},rm;function ay(){if(rm)return fo;rm=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e=function(){return window};return fo.default=e,fo}var nm;function uy(){if(nm)return uo;nm=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=f(W),t=l(sy()),r=pC(),i=l(af()),s=l(oy()),a=l(ay());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 D=c();if(D&&D.has(M))return D.get(M);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var B=N?Object.getOwnPropertyDescriptor(M,L):null;B&&(B.get||B.set)?Object.defineProperty(q,L,B):q[L]=M[L]}return q.default=M,D&&D.set(M,q),q}function m(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(q){return typeof q}:m=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},m(M)}function y(){return y=Object.assign||function(M){for(var D=1;D<arguments.length;D++){var q=arguments[D];for(var N in q)Object.prototype.hasOwnProperty.call(q,N)&&(M[N]=q[N])}return M},y.apply(this,arguments)}function p(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function g(M,D){for(var q=0;q<D.length;q++){var N=D[q];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function v(M,D,q){return D&&g(M.prototype,D),M}function x(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),D&&d(M,D)}function d(M,D){return d=Object.setPrototypeOf||function(N,L){return N.__proto__=L,N},d(M,D)}function w(M){var D=E();return function(){var N=R(M),L;if(D){var B=R(this).constructor;L=Reflect.construct(N,arguments,B)}else L=N.apply(this,arguments);return h(this,L)}}function h(M,D){return D&&(m(D)==="object"||typeof D=="function")?D: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(q){return q.__proto__||Object.getPrototypeOf(q)},R(M)}function O(M,D,q){return D in M?Object.defineProperty(M,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):M[D]=q,M}var C=function(D){return D.hasOwnProperty("key")},U=(function(M){x(q,M);var D=w(q);function q(N){var L;return p(this,q),L=D.call(this,N),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(B){L.itemsWrapperRef=B}),O(S(L),"setItemsListRef",function(B){L.itemsListRef=B}),O(S(L),"setThumbsRef",function(B,Z){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[Z]=B}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),Z=L.itemsWrapperRef.clientWidth,k=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),Q=Math.floor(Z/k),J=Q<B,re=J?B-Q:0;L.setState(function(ce,G){return{itemSize:k,visibleItems:Q,firstItem:J?L.getFirstItem(G.selectedItem):0,lastPosition:re,showArrows:J}})}}),O(S(L),"handleClickItem",function(B,Z,k){if(!C(k)||k.key==="Enter"){var Q=L.props.onSelectItem;typeof Q=="function"&&Q(B,Z)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(B){var Z=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var k=0,Q=e.Children.count(L.props.children),J=-(L.state.firstItem*100)/L.state.visibleItems,re=Math.max(Q-L.state.visibleItems,0),ce=-re*100/L.state.visibleItems;J===k&&Z>0&&(Z=0),J===ce&&Z<0&&(Z=0);var G=L.itemsWrapperRef.clientWidth,te=J+100/(G/Z);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ne){L.itemsListRef.style[ne]=(0,i.default)(te,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(B){L.moveTo(L.state.firstItem-(typeof B=="number"?B:1))}),O(S(L),"slideLeft",function(B){L.moveTo(L.state.firstItem+(typeof B=="number"?B:1))}),O(S(L),"moveTo",function(B){B=B<0?0:B,B=B>=L.state.lastPosition?L.state.lastPosition:B,L.setState({firstItem:B})}),L.state={selectedItem:N.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return v(q,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(L){var B=L;return L>=this.state.lastPosition&&(B=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),L<this.state.firstItem&&(B=L),B}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(B,Z){var k=t.default.ITEM(!1,Z===L.state.selectedItem),Q={key:Z,ref:function(re){return L.setThumbsRef(re,Z)},className:k,onClick:L.handleClickItem.bind(L,Z,L.props.children[Z]),onKeyDown:L.handleClickItem.bind(L,Z,L.props.children[Z]),"aria-label":"".concat(L.props.labels.item," ").concat(Z+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",y({},Q,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,Z=this.state.showArrows&&this.state.firstItem>0,k=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Q={},J=-this.state.firstItem*(this.state.itemSize||0),re=(0,i.default)(J,"px",this.props.axis),ce=this.props.transitionTime+"ms";return Q={WebkitTransform:re,MozTransform:re,MsTransform:re,OTransform:re,transform:re,msTransform:re,WebkitTransitionDuration:ce,MozTransitionDuration:ce,MsTransitionDuration:ce,OTransitionDuration:ce,transitionDuration:ce,msTransitionDuration:ce},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(!Z),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(s.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:Q,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(te){return L.setItemsListRef(te)},style:Q},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!k),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),q})(e.Component);return uo.default=U,O(U,"displayName","Thumbs"),O(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),uo}var po={},im;function hC(){if(im)return po;im=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=function(){return document};return po.default=e,po}var Ht={},om;function ly(){if(om)return Ht;om=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.setPosition=Ht.getPosition=Ht.isKeyboardEvent=Ht.defaultStatusFormatter=Ht.noop=void 0;var e=W,t=r(af());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ht.noop=i;var s=function(m,y){return"".concat(m," of ").concat(y)};Ht.defaultStatusFormatter=s;var a=function(m){return m?m.hasOwnProperty("key"):!1};Ht.isKeyboardEvent=a;var l=function(m,y){if(y.infiniteLoop&&++m,m===0)return 0;var p=e.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var g=-m*y.centerSlidePercentage,v=p-1;return m&&(m!==v||y.infiniteLoop)?g+=(100-y.centerSlidePercentage)/2:m===v&&(g+=100-y.centerSlidePercentage),g}return-m*100};Ht.getPosition=l;var c=function(m,y){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){p[g]=(0,t.default)(m,"%",y)}),p};return Ht.setPosition=c,Ht}var pr={},sm;function gC(){if(sm)return pr;sm=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.fadeAnimationHandler=pr.slideStopSwipingHandler=pr.slideSwipeAnimationHandler=pr.slideAnimationHandler=void 0;var e=W,t=i(af()),r=ly();function i(p){return p&&p.__esModule?p:{default:p}}function s(p,g){var v=Object.keys(p);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(p);g&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(p,d).enumerable})),v.push.apply(v,x)}return v}function a(p){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?s(Object(v),!0).forEach(function(x){l(p,x,v[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(x){Object.defineProperty(p,x,Object.getOwnPropertyDescriptor(v,x))})}return p}function l(p,g,v){return g in p?Object.defineProperty(p,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[g]=v,p}var c=function(g,v){var x={},d=v.selectedItem,w=d,h=e.Children.count(g.children)-1,S=g.infiniteLoop&&(d<0||d>h);if(S)return w<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,g.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,g.axis)),x;var E=(0,r.getPosition)(d,g),R=(0,t.default)(E,"%",g.axis),O=g.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},v.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};pr.slideAnimationHandler=c;var f=function(g,v,x,d){var w={},h=v.axis==="horizontal",S=e.Children.count(v.children),E=0,R=(0,r.getPosition)(x.selectedItem,v),O=v.infiniteLoop?(0,r.getPosition)(S-1,v)-100:(0,r.getPosition)(S-1,v),C=h?g.x:g.y,U=C;R===E&&C>0&&(U=0),R===O&&C<0&&(U=0);var M=R+100/(x.itemSize/U),D=Math.abs(C)>v.swipeScrollTolerance;return v.infiniteLoop&&D&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!v.preventMovementUntilSwipeScrollTolerance||D||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(M,v.axis)),D&&!x.cancelClick&&d({cancelClick:!0}),w};pr.slideSwipeAnimationHandler=f;var m=function(g,v){var x=(0,r.getPosition)(v.selectedItem,g),d=(0,r.setPosition)(x,g.axis);return{itemListStyle:d}};pr.slideStopSwipingHandler=m;var y=function(g,v){var x=g.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 v.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 pr.fadeAnimationHandler=y,pr}var am;function mC(){if(am)return so;am=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=y(W),t=f(oy()),r=f(sy()),i=f(uy()),s=f(hC()),a=f(ay()),l=ly(),c=gC();function f(N){return N&&N.__esModule?N:{default:N}}function m(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return m=function(){return N},N}function y(N){if(N&&N.__esModule)return N;if(N===null||p(N)!=="object"&&typeof N!="function")return{default:N};var L=m();if(L&&L.has(N))return L.get(N);var B={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in N)if(Object.prototype.hasOwnProperty.call(N,k)){var Q=Z?Object.getOwnPropertyDescriptor(N,k):null;Q&&(Q.get||Q.set)?Object.defineProperty(B,k,Q):B[k]=N[k]}return B.default=N,L&&L.set(N,B),B}function p(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(B){return typeof B}:p=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(N)}function g(){return g=Object.assign||function(N){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var Z in B)Object.prototype.hasOwnProperty.call(B,Z)&&(N[Z]=B[Z])}return N},g.apply(this,arguments)}function v(N,L){var B=Object.keys(N);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(N);L&&(Z=Z.filter(function(k){return Object.getOwnPropertyDescriptor(N,k).enumerable})),B.push.apply(B,Z)}return B}function x(N){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?v(Object(B),!0).forEach(function(Z){D(N,Z,B[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(B)):v(Object(B)).forEach(function(Z){Object.defineProperty(N,Z,Object.getOwnPropertyDescriptor(B,Z))})}return N}function d(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function w(N,L){for(var B=0;B<L.length;B++){var Z=L[B];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(N,Z.key,Z)}}function h(N,L,B){return L&&w(N.prototype,L),N}function S(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),L&&E(N,L)}function E(N,L){return E=Object.setPrototypeOf||function(Z,k){return Z.__proto__=k,Z},E(N,L)}function R(N){var L=U();return function(){var Z=M(N),k;if(L){var Q=M(this).constructor;k=Reflect.construct(Z,arguments,Q)}else k=Z.apply(this,arguments);return O(this,k)}}function O(N,L){return L&&(p(L)==="object"||typeof L=="function")?L:C(N)}function C(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(N){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},M(N)}function D(N,L,B){return L in N?Object.defineProperty(N,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[L]=B,N}var q=(function(N){S(B,N);var L=R(B);function B(Z){var k;d(this,B),k=L.call(this,Z),D(C(k),"thumbsRef",void 0),D(C(k),"carouselWrapperRef",void 0),D(C(k),"listRef",void 0),D(C(k),"itemsRef",void 0),D(C(k),"timer",void 0),D(C(k),"animationHandler",void 0),D(C(k),"setThumbsRef",function(J){k.thumbsRef=J}),D(C(k),"setCarouselWrapperRef",function(J){k.carouselWrapperRef=J}),D(C(k),"setListRef",function(J){k.listRef=J}),D(C(k),"setItemsRef",function(J,re){k.itemsRef||(k.itemsRef=[]),k.itemsRef[re]=J}),D(C(k),"autoPlay",function(){e.Children.count(k.props.children)<=1||(k.clearAutoPlay(),k.props.autoPlay&&(k.timer=setTimeout(function(){k.increment()},k.props.interval)))}),D(C(k),"clearAutoPlay",function(){k.timer&&clearTimeout(k.timer)}),D(C(k),"resetAutoPlay",function(){k.clearAutoPlay(),k.autoPlay()}),D(C(k),"stopOnHover",function(){k.setState({isMouseEntered:!0},k.clearAutoPlay)}),D(C(k),"startOnLeave",function(){k.setState({isMouseEntered:!1},k.autoPlay)}),D(C(k),"isFocusWithinTheCarousel",function(){return k.carouselWrapperRef?!!((0,s.default)().activeElement===k.carouselWrapperRef||k.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),D(C(k),"navigateWithKeyboard",function(J){if(k.isFocusWithinTheCarousel()){var re=k.props.axis,ce=re==="horizontal",G={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},te=ce?G.ArrowRight:G.ArrowDown,ne=ce?G.ArrowLeft:G.ArrowUp;te===J.keyCode?k.increment():ne===J.keyCode&&k.decrement()}}),D(C(k),"updateSizes",function(){if(!(!k.state.initialized||!k.itemsRef||k.itemsRef.length===0)){var J=k.props.axis==="horizontal",re=k.itemsRef[0];if(re){var ce=J?re.clientWidth:re.clientHeight;k.setState({itemSize:ce}),k.thumbsRef&&k.thumbsRef.updateSizes()}}}),D(C(k),"setMountState",function(){k.setState({hasMount:!0}),k.updateSizes()}),D(C(k),"handleClickItem",function(J,re){if(e.Children.count(k.props.children)!==0){if(k.state.cancelClick){k.setState({cancelClick:!1});return}k.props.onClickItem(J,re),J!==k.state.selectedItem&&k.setState({selectedItem:J})}}),D(C(k),"handleOnChange",function(J,re){e.Children.count(k.props.children)<=1||k.props.onChange(J,re)}),D(C(k),"handleClickThumb",function(J,re){k.props.onClickThumb(J,re),k.moveTo(J)}),D(C(k),"onSwipeStart",function(J){k.setState({swiping:!0}),k.props.onSwipeStart(J)}),D(C(k),"onSwipeEnd",function(J){k.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),k.props.onSwipeEnd(J),k.clearAutoPlay(),k.state.autoPlay&&k.autoPlay()}),D(C(k),"onSwipeMove",function(J,re){k.props.onSwipeMove(re);var ce=k.props.swipeAnimationHandler(J,k.props,k.state,k.setState.bind(C(k)));return k.setState(x({},ce)),!!Object.keys(ce).length}),D(C(k),"decrement",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem-(typeof J=="number"?J:1))}),D(C(k),"increment",function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;k.moveTo(k.state.selectedItem+(typeof J=="number"?J:1))}),D(C(k),"moveTo",function(J){if(typeof J=="number"){var re=e.Children.count(k.props.children)-1;J<0&&(J=k.props.infiniteLoop?re:0),J>re&&(J=k.props.infiniteLoop?0:re),k.selectItem({selectedItem:J}),k.state.autoPlay&&k.state.isMouseEntered===!1&&k.resetAutoPlay()}}),D(C(k),"onClickNext",function(){k.increment(1)}),D(C(k),"onClickPrev",function(){k.decrement(1)}),D(C(k),"onSwipeForward",function(){k.increment(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"onSwipeBackwards",function(){k.decrement(1),k.props.emulateTouch&&k.setState({cancelClick:!0})}),D(C(k),"changeItem",function(J){return function(re){(!(0,l.isKeyboardEvent)(re)||re.key==="Enter")&&k.moveTo(J)}}),D(C(k),"selectItem",function(J){k.setState(x({previousItem:k.state.selectedItem},J),function(){k.setState(k.animationHandler(k.props,k.state))}),k.handleOnChange(J.selectedItem,e.Children.toArray(k.props.children)[J.selectedItem])}),D(C(k),"getInitialImage",function(){var J=k.props.selectedItem,re=k.itemsRef&&k.itemsRef[J],ce=re&&re.getElementsByTagName("img")||[];return ce[0]}),D(C(k),"getVariableItemHeight",function(J){var re=k.itemsRef&&k.itemsRef[J];if(k.state.hasMount&&re&&re.children.length){var ce=re.children[0].getElementsByTagName("img")||[];if(ce.length>0){var G=ce[0];if(!G.complete){var te=function ie(){k.forceUpdate(),G.removeEventListener("load",ie)};G.addEventListener("load",te)}}var ne=ce[0]||re.children[0],ue=ne.clientHeight;return ue>0?ue:null}return null});var Q={initialized:!1,previousItem:Z.selectedItem,selectedItem:Z.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:Z.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return k.animationHandler=typeof Z.animationHandler=="function"&&Z.animationHandler||Z.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,k.state=x(x({},Q),k.animationHandler(Z,Q)),k}return h(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(k,Q){!k.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!k.autoFocus&&this.props.autoFocus&&this.forceFocus(),Q.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(k.selectedItem!==this.props.selectedItem||k.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),k.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 k=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 Q=k.getInitialImage();Q&&!Q.complete?Q.addEventListener("load",k.setMountState):k.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.addEventListener("mouseenter",this.stopOnHover),k.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var k=this.carouselWrapperRef;this.props.stopOnHover&&k&&(k.removeEventListener("mouseenter",this.stopOnHover),k.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 k=this.getInitialImage();k&&k.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var k;(k=this.carouselWrapperRef)===null||k===void 0||k.focus()}},{key:"renderItems",value:function(k){var Q=this;return this.props.children?e.Children.map(this.props.children,function(J,re){var ce=re===Q.state.selectedItem,G=re===Q.state.previousItem,te=ce&&Q.state.selectedStyle||G&&Q.state.prevStyle||Q.state.slideStyle||{};Q.props.centerMode&&Q.props.axis==="horizontal"&&(te=x(x({},te),{},{minWidth:Q.props.centerSlidePercentage+"%"})),Q.state.swiping&&Q.state.swipeMovementStarted&&(te=x(x({},te),{},{pointerEvents:"none"}));var ne={ref:function(ie){return Q.setItemsRef(ie,re)},key:"itemKey"+re+(k?"clone":""),className:r.default.ITEM(!0,re===Q.state.selectedItem,re===Q.state.previousItem),onClick:Q.handleClickItem.bind(Q,re,J),style:te};return e.default.createElement("li",ne,Q.props.renderItem(J,{isSelected:re===Q.state.selectedItem,isPrevious:re===Q.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var k=this,Q=this.props,J=Q.showIndicators,re=Q.labels,ce=Q.renderIndicator,G=Q.children;return J?e.default.createElement("ul",{className:"control-dots"},e.Children.map(G,function(te,ne){return ce&&ce(k.changeItem(ne),ne===k.state.selectedItem,ne,re.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 k=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Q=this.props.swipeable&&e.Children.count(this.props.children)>1,J=this.props.axis==="horizontal",re=this.props.showArrows&&e.Children.count(this.props.children)>1,ce=re&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,G=re&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,te=this.renderItems(!0),ne=te.shift(),ue=te.pop(),ie={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},he={};if(J){if(ie.onSwipeLeft=this.onSwipeForward,ie.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);he.height=fe||"auto"}}else ie.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ie.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ie.style=x(x({},ie.style),{},{height:this.state.itemSize}),he.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,ce,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:he},Q?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},ie,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(xe){return k.setListRef(xe)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ne)),this.props.renderArrowNext(this.onClickNext,G,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return so.default=q,D(q,"displayName","Carousel"),D(q,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,B,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,Z){return e.default.createElement("button",{type:"button","aria-label":Z,className:r.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,Z,k){return e.default.createElement("li",{className:r.default.DOT(B),onClick:L,onKeyDown:L,value:Z,key:Z,role:"button",tabIndex:0,"aria-label":"".concat(k," ").concat(Z+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,function(Z){var k=Z;if(Z.type!=="img"&&(k=e.Children.toArray(Z.props.children).find(function(Q){return Q.type==="img"})),!!k)return k});return B.filter(function(Z){return Z}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),so}var um={},lm;function vC(){return lm||(lm=1),um}var cm;function yC(){return cm||(cm=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(mC()),r=vC(),i=s(uy());function s(a){return a&&a.__esModule?a:{default:a}}})(Ul)),Ul}var bC=yC();const wC=({tip:e})=>F.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:cy(e,!0)}),xC=({pages:e})=>F.jsx("div",{className:"min-h-[10rem] w-96",children:F.jsx(bC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>F.jsx(wC,{tip:t},t.key))})}),SC=({body:e,isInsideCarousel:t})=>F.jsx("article",{className:He(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:F.jsx(xa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>F.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),EC=({video:e,body:t,title:r,isInsideCarousel:i})=>F.jsxs("div",{className:He([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[F.jsx("div",{className:He([{"mr-1":!i,"mb-1":i}]),children:F.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})}),F.jsx("article",{className:He(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:F.jsx(xa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>F.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,F.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),cy=(e,t)=>{switch(e.type){case ha.TEXT:return F.jsx(SC,{body:e.body,isInsideCarousel:t});case ha.VIDEO:return F.jsx(EC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ha.CAROUSEL:return F.jsx(xC,{pages:e.pages})}},fy=W.createContext(void 0);function fm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const _C=({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((y,p)=>fm(f,p.key).length>1?{...y,[p.key]:{type:"carousel",pages:fm(f,p.key)}}:{...y,[p.key]:p},{});a(y=>({...y,tips:m}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!s}))};return F.jsx(fy.Provider,{value:{tips:i,toggleTips:l,show:s,enabled:t},children:e})},dy=e=>{const t=W.useContext(fy);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}},OC=Sa(nC)`
|
|
132
|
+
*/var lf,Eb;function nL(){if(Eb)return lf;Eb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lf=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},lf}var cf,_b;function Lp(){if(_b)return cf;_b=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cf=e,cf}var uf,Ob;function Zx(){return Ob||(Ob=1,uf=Function.call.bind(Object.prototype.hasOwnProperty)),uf}var df,kb;function iL(){if(kb)return df;kb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lp(),r={},n=Zx();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},df=i,df}var ff,Ab;function oL(){if(Ab)return ff;Ab=1;var e=Gx(),t=nL(),r=Lp(),n=Zx(),i=iL(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return ff=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(z){var W=z&&(f&&z[f]||z[g]);if(typeof W=="function")return W}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:U(),objectOf:I,oneOf:H,oneOfType:$,shape:M,exact:D};function S(z,W){return z===W?z!==0||1/z===1/W:z!==z&&W!==W}function v(z,W){this.message=z,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var W={},X=0;function te(oe,ae,ne,de,he,fe,ye){if(de=de||h,fe=fe||ne,ye!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=de+":"+ne;!W[Te]&&X<3&&(s("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Te]=!0,X++)}}return ae[ne]==null?oe?ae[ne]===null?new v("The "+he+" `"+fe+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+he+" `"+fe+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:z(ae,ne,de,he,fe)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(z){function W(X,te,J,oe,ae,ne){var de=X[te],he=K(de);if(he!==z){var fe=ee(de);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+fe+"` supplied to `"+J+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(W)}function w(){return y(l)}function x(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=X[te];if(!Array.isArray(ne)){var de=K(ne);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var fe=z(ne,he,J,oe,ae+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(W)}function O(){function z(W,X,te,J,oe){var ae=W[X];if(!c(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(z)}function _(){function z(W,X,te,J,oe){var ae=W[X];if(!e.isValidElementType(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(z)}function R(z){function W(X,te,J,oe,ae){if(!(X[te]instanceof z)){var ne=z.name||h,de=ve(X[te]);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(W)}function H(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function W(X,te,J,oe,ae){for(var ne=X[te],de=0;de<z.length;de++)if(S(ne,z[de]))return null;var he=JSON.stringify(z,function(ye,Z){var Te=ee(Z);return Te==="symbol"?String(Z):Z});return new v("Invalid "+oe+" `"+ae+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return y(W)}function I(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var fe=z(ne,he,J,oe,ae+"."+he,r);if(fe instanceof Error)return fe}return null}return y(W)}function $(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<z.length;W++){var X=z[W];if(typeof X!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(X)+" at index "+W+"."),l}function te(J,oe,ae,ne,de){for(var he=[],fe=0;fe<z.length;fe++){var ye=z[fe],Z=ye(J,oe,ae,ne,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Te=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+de+"` supplied to "+("`"+ae+"`"+Te+"."))}return y(te)}function U(){function z(W,X,te,J,oe){return F(W[X])?null:new v("Invalid "+J+" `"+oe+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(z)}function j(z,W,X,te,J){return new v((z||"React class")+": "+W+" type `"+X+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in z){var fe=z[he];if(typeof fe!="function")return j(J,oe,ae,he,ee(fe));var ye=fe(ne,he,J,oe,ae+"."+he,r);if(ye)return ye}return null}return y(W)}function D(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},X[te],z);for(var fe in he){var ye=z[fe];if(n(z,fe)&&typeof ye!="function")return j(J,oe,ae,fe,ee(ye));if(!ye)return new v("Invalid "+oe+" `"+ae+"` key `"+fe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(X[te],null," ")+`
|
|
133
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Z=ye(ne,fe,J,oe,ae+"."+fe,r);if(Z)return Z}return null}return y(W)}function F(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(F);if(z===null||c(z))return!0;var W=p(z);if(W){var X=W.call(z),te;if(W!==z.entries){for(;!(te=X.next()).done;)if(!F(te.value))return!1}else for(;!(te=X.next()).done;){var J=te.value;if(J&&!F(J[1]))return!1}}else return!1;return!0;default:return!1}}function P(z,W){return z==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(z){var W=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":P(W,z)?"symbol":W}function ee(z){if(typeof z>"u"||z===null)return""+z;var W=K(z);if(W==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return W}function Y(z){var W=ee(z);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},ff}var pf,Tb;function sL(){if(Tb)return pf;Tb=1;var e=Lp();function t(){}function r(){}return r.resetWarningCache=t,pf=function(){function n(l,c,u,f,g,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},pf}var Rb;function aL(){if(Rb)return Yl.exports;if(Rb=1,process.env.NODE_ENV!=="production"){var e=Gx(),t=!0;Yl.exports=oL()(e.isElement,t)}else Yl.exports=sL()();return Yl.exports}var Cb;function lL(){return Cb||(Cb=1,(function(e){(function(t,r){r(e,N,aL())})(Kl,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var i=l(r),s=l(n);function l(w){return w&&w.__esModule?w:{default:w}}var c=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var O=arguments[x];for(var _ in O)Object.prototype.hasOwnProperty.call(O,_)&&(w[_]=O[_])}return w};function u(w,x){var O={};for(var _ in w)x.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(w,_)&&(O[_]=w[_]);return O}function f(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var g=(function(){function w(x,O){for(var _=0;_<O.length;_++){var R=O[_];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,O,_){return O&&w(x.prototype,O),_&&w(x,_),x}})();function p(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function h(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var b=!1;function S(w){b=w}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return b?w:w.capture}function y(w){if("touches"in w){var x=w.touches[0],O=x.pageX,_=x.pageY;return{x:O,y:_}}var R=w.screenX,H=w.screenY;return{x:R,y:H}}var m=(function(w){h(x,w);function x(){var O;f(this,x);for(var _=arguments.length,R=Array(_),H=0;H<_;H++)R[H]=arguments[H];var I=p(this,(O=x.__proto__||Object.getPrototypeOf(x)).call.apply(O,[this].concat(R)));return I._handleSwipeStart=I._handleSwipeStart.bind(I),I._handleSwipeMove=I._handleSwipeMove.bind(I),I._handleSwipeEnd=I._handleSwipeEnd.bind(I),I._onMouseDown=I._onMouseDown.bind(I),I._onMouseMove=I._onMouseMove.bind(I),I._onMouseUp=I._onMouseUp.bind(I),I._setSwiperRef=I._setSwiperRef.bind(I),I}return g(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(_){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(_))}},{key:"_onMouseMove",value:function(_){this.mouseDown&&this._handleSwipeMove(_)}},{key:"_onMouseUp",value:function(_){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(_)}},{key:"_handleSwipeStart",value:function(_){var R=y(_),H=R.x,I=R.y;this.moveStart={x:H,y:I},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var R=y(_),H=R.x,I=R.y,$=H-this.moveStart.x,U=I-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:$,y:U},_);j&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:$,deltaY:U}}}},{key:"_handleSwipeEnd",value:function(_){this.props.onSwipeEnd(_);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,_):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,_),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,_):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,_)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(_){this.swiper=_,this.props.innerRef(_)}},{key:"render",value:function(){var _=this.props;_.tagName;var R=_.className,H=_.style,I=_.children;_.allowMouseEvents,_.onSwipeUp,_.onSwipeDown,_.onSwipeLeft,_.onSwipeRight,_.onSwipeStart,_.onSwipeMove,_.onSwipeEnd,_.innerRef,_.tolerance;var $=u(_,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return i.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:H},$),I)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},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})})(Kl)),Kl}var Ib;function Kx(){return Ib||(Ib=1,(function(e){(function(t,r){r(e,lL())})(Zl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}t.default=n.default})})(Zl)),Zl}var $s={},Pb;function Yx(){if(Pb)return $s;Pb=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=t(lx());function t(i){return i&&i.__esModule?i:{default:i}}function r(i,s,l){return s in i?Object.defineProperty(i,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[s]=l,i}var n={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return $s.default=n,$s}var js={},Fs={},Nb;function cL(){if(Nb)return Fs;Nb=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,i=getComputedStyle(r);return n+=parseInt(i.marginLeft)+parseInt(i.marginRight),n};return Fs.outerWidth=e,Fs}var Hs={},Mb;function zp(){if(Mb)return Hs;Mb=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=function(r,n,i){var s=r===0?r:r+n,l=i==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",u="("+l.join(",")+")";return c+u};return Hs.default=e,Hs}var Bs={},Db;function Xx(){if(Db)return Bs;Db=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=function(){return window};return Bs.default=e,Bs}var Lb;function Jx(){if(Lb)return js;Lb=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e=u(N),t=l(Yx()),r=cL(),n=l(zp()),i=l(Kx()),s=l(Xx());function l(I){return I&&I.__esModule?I:{default:I}}function c(){if(typeof WeakMap!="function")return null;var I=new WeakMap;return c=function(){return I},I}function u(I){if(I&&I.__esModule)return I;if(I===null||f(I)!=="object"&&typeof I!="function")return{default:I};var $=c();if($&&$.has(I))return $.get(I);var U={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in I)if(Object.prototype.hasOwnProperty.call(I,M)){var D=j?Object.getOwnPropertyDescriptor(I,M):null;D&&(D.get||D.set)?Object.defineProperty(U,M,D):U[M]=I[M]}return U.default=I,$&&$.set(I,U),U}function f(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(U){return typeof U}:f=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},f(I)}function g(){return g=Object.assign||function(I){for(var $=1;$<arguments.length;$++){var U=arguments[$];for(var j in U)Object.prototype.hasOwnProperty.call(U,j)&&(I[j]=U[j])}return I},g.apply(this,arguments)}function p(I,$){if(!(I instanceof $))throw new TypeError("Cannot call a class as a function")}function h(I,$){for(var U=0;U<$.length;U++){var j=$[U];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(I,j.key,j)}}function b(I,$,U){return $&&h(I.prototype,$),I}function S(I,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create($&&$.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),$&&v(I,$)}function v(I,$){return v=Object.setPrototypeOf||function(j,M){return j.__proto__=M,j},v(I,$)}function y(I){var $=x();return function(){var j=O(I),M;if($){var D=O(this).constructor;M=Reflect.construct(j,arguments,D)}else M=j.apply(this,arguments);return m(this,M)}}function m(I,$){return $&&(f($)==="object"||typeof $=="function")?$:w(I)}function w(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}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 O(I){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},O(I)}function _(I,$,U){return $ in I?Object.defineProperty(I,$,{value:U,enumerable:!0,configurable:!0,writable:!0}):I[$]=U,I}var R=function($){return $.hasOwnProperty("key")},H=(function(I){S(U,I);var $=y(U);function U(j){var M;return p(this,U),M=$.call(this,j),_(w(M),"itemsWrapperRef",void 0),_(w(M),"itemsListRef",void 0),_(w(M),"thumbsRef",void 0),_(w(M),"setItemsWrapperRef",function(D){M.itemsWrapperRef=D}),_(w(M),"setItemsListRef",function(D){M.itemsListRef=D}),_(w(M),"setThumbsRef",function(D,F){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[F]=D}),_(w(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var D=e.Children.count(M.props.children),F=M.itemsWrapperRef.clientWidth,P=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),K=Math.floor(F/P),ee=K<D,Y=ee?D-K:0;M.setState(function(ve,z){return{itemSize:P,visibleItems:K,firstItem:ee?M.getFirstItem(z.selectedItem):0,lastPosition:Y,showArrows:ee}})}}),_(w(M),"handleClickItem",function(D,F,P){if(!R(P)||P.key==="Enter"){var K=M.props.onSelectItem;typeof K=="function"&&K(D,F)}}),_(w(M),"onSwipeStart",function(){M.setState({swiping:!0})}),_(w(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),_(w(M),"onSwipeMove",function(D){var F=D.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var P=0,K=e.Children.count(M.props.children),ee=-(M.state.firstItem*100)/M.state.visibleItems,Y=Math.max(K-M.state.visibleItems,0),ve=-Y*100/M.state.visibleItems;ee===P&&F>0&&(F=0),ee===ve&&F<0&&(F=0);var z=M.itemsWrapperRef.clientWidth,W=ee+100/(z/F);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(X){M.itemsListRef.style[X]=(0,n.default)(W,"%",M.props.axis)}),!0}),_(w(M),"slideRight",function(D){M.moveTo(M.state.firstItem-(typeof D=="number"?D:1))}),_(w(M),"slideLeft",function(D){M.moveTo(M.state.firstItem+(typeof D=="number"?D:1))}),_(w(M),"moveTo",function(D){D=D<0?0:D,D=D>=M.state.lastPosition?M.state.lastPosition:D,M.setState({firstItem:D})}),M.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return b(U,[{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,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var D=M;return M>=this.state.lastPosition&&(D=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(D=this.state.firstItem),M<this.state.firstItem&&(D=M),D}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(D,F){var P=t.default.ITEM(!1,F===M.state.selectedItem),K={key:F,ref:function(Y){return M.setThumbsRef(Y,F)},className:P,onClick:M.handleClickItem.bind(M,F,M.props.children[F]),onKeyDown:M.handleClickItem.bind(M,F,M.props.children[F]),"aria-label":"".concat(M.props.labels.item," ").concat(F+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",g({},K,{role:"button",tabIndex:0}),D)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var D=e.Children.count(this.props.children)>1,F=this.state.showArrows&&this.state.firstItem>0,P=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,K={},ee=-this.state.firstItem*(this.state.itemSize||0),Y=(0,n.default)(ee,"px",this.props.axis),ve=this.props.transitionTime+"ms";return K={WebkitTransform:Y,MozTransform:Y,MsTransform:Y,OTransform:Y,transform:Y,msTransform:Y,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(!F),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),D?e.default.createElement(i.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(W){return M.setItemsListRef(W)},style:K},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!P),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),U})(e.Component);return js.default=H,_(H,"displayName","Thumbs"),_(H,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),js}var Ws={},zb;function uL(){if(zb)return Ws;zb=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=function(){return document};return Ws.default=e,Ws}var wr={},$b;function Qx(){if($b)return wr;$b=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.setPosition=wr.getPosition=wr.isKeyboardEvent=wr.defaultStatusFormatter=wr.noop=void 0;var e=N,t=r(zp());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};wr.noop=n;var i=function(f,g){return"".concat(f," of ").concat(g)};wr.defaultStatusFormatter=i;var s=function(f){return f?f.hasOwnProperty("key"):!1};wr.isKeyboardEvent=s;var l=function(f,g){if(g.infiniteLoop&&++f,f===0)return 0;var p=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var h=-f*g.centerSlidePercentage,b=p-1;return f&&(f!==b||g.infiniteLoop)?h+=(100-g.centerSlidePercentage)/2:f===b&&(h+=100-g.centerSlidePercentage),h}return-f*100};wr.getPosition=l;var c=function(f,g){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(h){p[h]=(0,t.default)(f,"%",g)}),p};return wr.setPosition=c,wr}var Gr={},jb;function dL(){if(jb)return Gr;jb=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.fadeAnimationHandler=Gr.slideStopSwipingHandler=Gr.slideSwipeAnimationHandler=Gr.slideAnimationHandler=void 0;var e=N,t=n(zp()),r=Qx();function n(p){return p&&p.__esModule?p:{default:p}}function i(p,h){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(p);h&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),b.push.apply(b,S)}return b}function s(p){for(var h=1;h<arguments.length;h++){var b=arguments[h]!=null?arguments[h]:{};h%2?i(Object(b),!0).forEach(function(S){l(p,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):i(Object(b)).forEach(function(S){Object.defineProperty(p,S,Object.getOwnPropertyDescriptor(b,S))})}return p}function l(p,h,b){return h in p?Object.defineProperty(p,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[h]=b,p}var c=function(h,b){var S={},v=b.selectedItem,y=v,m=e.Children.count(h.children)-1,w=h.infiniteLoop&&(v<0||v>m);if(w)return y<0?h.centerMode&&h.centerSlidePercentage&&h.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*h.centerSlidePercentage-(100-h.centerSlidePercentage)/2,h.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,h.axis):y>m&&(S.itemListStyle=(0,r.setPosition)(0,h.axis)),S;var x=(0,r.getPosition)(v,h),O=(0,t.default)(x,"%",h.axis),_=h.transitionTime+"ms";return S.itemListStyle={WebkitTransform:O,msTransform:O,OTransform:O,transform:O},b.swiping||(S.itemListStyle=s(s({},S.itemListStyle),{},{WebkitTransitionDuration:_,MozTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_})),S};Gr.slideAnimationHandler=c;var u=function(h,b,S,v){var y={},m=b.axis==="horizontal",w=e.Children.count(b.children),x=0,O=(0,r.getPosition)(S.selectedItem,b),_=b.infiniteLoop?(0,r.getPosition)(w-1,b)-100:(0,r.getPosition)(w-1,b),R=m?h.x:h.y,H=R;O===x&&R>0&&(H=0),O===_&&R<0&&(H=0);var I=O+100/(S.itemSize/H),$=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&$&&(S.selectedItem===0&&I>-100?I-=w*100:S.selectedItem===w-1&&I<-w*100&&(I+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||$||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(I,b.axis)),$&&!S.cancelClick&&v({cancelClick:!0}),y};Gr.slideSwipeAnimationHandler=u;var f=function(h,b){var S=(0,r.getPosition)(b.selectedItem,h),v=(0,r.setPosition)(S,h.axis);return{itemListStyle:v}};Gr.slideStopSwipingHandler=f;var g=function(h,b){var S=h.transitionTime+"ms",v="ease-in-out",y={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:v,msTransitionTimingFunction:v,MozTransitionTimingFunction:v,WebkitTransitionTimingFunction:v,OTransitionTimingFunction:v};return b.swiping||(y=s(s({},y),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:y,selectedStyle:s(s({},y),{},{opacity:1,position:"relative"}),prevStyle:s({},y)}};return Gr.fadeAnimationHandler=g,Gr}var Fb;function fL(){if(Fb)return zs;Fb=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=g(N),t=u(Kx()),r=u(Yx()),n=u(Jx()),i=u(uL()),s=u(Xx()),l=Qx(),c=dL();function u(j){return j&&j.__esModule?j:{default:j}}function f(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return f=function(){return j},j}function g(j){if(j&&j.__esModule)return j;if(j===null||p(j)!=="object"&&typeof j!="function")return{default:j};var M=f();if(M&&M.has(j))return M.get(j);var D={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in j)if(Object.prototype.hasOwnProperty.call(j,P)){var K=F?Object.getOwnPropertyDescriptor(j,P):null;K&&(K.get||K.set)?Object.defineProperty(D,P,K):D[P]=j[P]}return D.default=j,M&&M.set(j,D),D}function p(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(D){return typeof D}:p=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},p(j)}function h(){return h=Object.assign||function(j){for(var M=1;M<arguments.length;M++){var D=arguments[M];for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&(j[F]=D[F])}return j},h.apply(this,arguments)}function b(j,M){var D=Object.keys(j);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(j);M&&(F=F.filter(function(P){return Object.getOwnPropertyDescriptor(j,P).enumerable})),D.push.apply(D,F)}return D}function S(j){for(var M=1;M<arguments.length;M++){var D=arguments[M]!=null?arguments[M]:{};M%2?b(Object(D),!0).forEach(function(F){$(j,F,D[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(D)):b(Object(D)).forEach(function(F){Object.defineProperty(j,F,Object.getOwnPropertyDescriptor(D,F))})}return j}function v(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function y(j,M){for(var D=0;D<M.length;D++){var F=M[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,F.key,F)}}function m(j,M,D){return M&&y(j.prototype,M),j}function w(j,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(M&&M.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),M&&x(j,M)}function x(j,M){return x=Object.setPrototypeOf||function(F,P){return F.__proto__=P,F},x(j,M)}function O(j){var M=H();return function(){var F=I(j),P;if(M){var K=I(this).constructor;P=Reflect.construct(F,arguments,K)}else P=F.apply(this,arguments);return _(this,P)}}function _(j,M){return M&&(p(M)==="object"||typeof M=="function")?M:R(j)}function R(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function H(){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 I(j){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},I(j)}function $(j,M,D){return M in j?Object.defineProperty(j,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):j[M]=D,j}var U=(function(j){w(D,j);var M=O(D);function D(F){var P;v(this,D),P=M.call(this,F),$(R(P),"thumbsRef",void 0),$(R(P),"carouselWrapperRef",void 0),$(R(P),"listRef",void 0),$(R(P),"itemsRef",void 0),$(R(P),"timer",void 0),$(R(P),"animationHandler",void 0),$(R(P),"setThumbsRef",function(ee){P.thumbsRef=ee}),$(R(P),"setCarouselWrapperRef",function(ee){P.carouselWrapperRef=ee}),$(R(P),"setListRef",function(ee){P.listRef=ee}),$(R(P),"setItemsRef",function(ee,Y){P.itemsRef||(P.itemsRef=[]),P.itemsRef[Y]=ee}),$(R(P),"autoPlay",function(){e.Children.count(P.props.children)<=1||(P.clearAutoPlay(),P.props.autoPlay&&(P.timer=setTimeout(function(){P.increment()},P.props.interval)))}),$(R(P),"clearAutoPlay",function(){P.timer&&clearTimeout(P.timer)}),$(R(P),"resetAutoPlay",function(){P.clearAutoPlay(),P.autoPlay()}),$(R(P),"stopOnHover",function(){P.setState({isMouseEntered:!0},P.clearAutoPlay)}),$(R(P),"startOnLeave",function(){P.setState({isMouseEntered:!1},P.autoPlay)}),$(R(P),"isFocusWithinTheCarousel",function(){return P.carouselWrapperRef?!!((0,i.default)().activeElement===P.carouselWrapperRef||P.carouselWrapperRef.contains((0,i.default)().activeElement)):!1}),$(R(P),"navigateWithKeyboard",function(ee){if(P.isFocusWithinTheCarousel()){var Y=P.props.axis,ve=Y==="horizontal",z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},W=ve?z.ArrowRight:z.ArrowDown,X=ve?z.ArrowLeft:z.ArrowUp;W===ee.keyCode?P.increment():X===ee.keyCode&&P.decrement()}}),$(R(P),"updateSizes",function(){if(!(!P.state.initialized||!P.itemsRef||P.itemsRef.length===0)){var ee=P.props.axis==="horizontal",Y=P.itemsRef[0];if(Y){var ve=ee?Y.clientWidth:Y.clientHeight;P.setState({itemSize:ve}),P.thumbsRef&&P.thumbsRef.updateSizes()}}}),$(R(P),"setMountState",function(){P.setState({hasMount:!0}),P.updateSizes()}),$(R(P),"handleClickItem",function(ee,Y){if(e.Children.count(P.props.children)!==0){if(P.state.cancelClick){P.setState({cancelClick:!1});return}P.props.onClickItem(ee,Y),ee!==P.state.selectedItem&&P.setState({selectedItem:ee})}}),$(R(P),"handleOnChange",function(ee,Y){e.Children.count(P.props.children)<=1||P.props.onChange(ee,Y)}),$(R(P),"handleClickThumb",function(ee,Y){P.props.onClickThumb(ee,Y),P.moveTo(ee)}),$(R(P),"onSwipeStart",function(ee){P.setState({swiping:!0}),P.props.onSwipeStart(ee)}),$(R(P),"onSwipeEnd",function(ee){P.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),P.props.onSwipeEnd(ee),P.clearAutoPlay(),P.state.autoPlay&&P.autoPlay()}),$(R(P),"onSwipeMove",function(ee,Y){P.props.onSwipeMove(Y);var ve=P.props.swipeAnimationHandler(ee,P.props,P.state,P.setState.bind(R(P)));return P.setState(S({},ve)),!!Object.keys(ve).length}),$(R(P),"decrement",function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;P.moveTo(P.state.selectedItem-(typeof ee=="number"?ee:1))}),$(R(P),"increment",function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;P.moveTo(P.state.selectedItem+(typeof ee=="number"?ee:1))}),$(R(P),"moveTo",function(ee){if(typeof ee=="number"){var Y=e.Children.count(P.props.children)-1;ee<0&&(ee=P.props.infiniteLoop?Y:0),ee>Y&&(ee=P.props.infiniteLoop?0:Y),P.selectItem({selectedItem:ee}),P.state.autoPlay&&P.state.isMouseEntered===!1&&P.resetAutoPlay()}}),$(R(P),"onClickNext",function(){P.increment(1)}),$(R(P),"onClickPrev",function(){P.decrement(1)}),$(R(P),"onSwipeForward",function(){P.increment(1),P.props.emulateTouch&&P.setState({cancelClick:!0})}),$(R(P),"onSwipeBackwards",function(){P.decrement(1),P.props.emulateTouch&&P.setState({cancelClick:!0})}),$(R(P),"changeItem",function(ee){return function(Y){(!(0,l.isKeyboardEvent)(Y)||Y.key==="Enter")&&P.moveTo(ee)}}),$(R(P),"selectItem",function(ee){P.setState(S({previousItem:P.state.selectedItem},ee),function(){P.setState(P.animationHandler(P.props,P.state))}),P.handleOnChange(ee.selectedItem,e.Children.toArray(P.props.children)[ee.selectedItem])}),$(R(P),"getInitialImage",function(){var ee=P.props.selectedItem,Y=P.itemsRef&&P.itemsRef[ee],ve=Y&&Y.getElementsByTagName("img")||[];return ve[0]}),$(R(P),"getVariableItemHeight",function(ee){var Y=P.itemsRef&&P.itemsRef[ee];if(P.state.hasMount&&Y&&Y.children.length){var ve=Y.children[0].getElementsByTagName("img")||[];if(ve.length>0){var z=ve[0];if(!z.complete){var W=function J(){P.forceUpdate(),z.removeEventListener("load",J)};z.addEventListener("load",W)}}var X=ve[0]||Y.children[0],te=X.clientHeight;return te>0?te:null}return null});var K={initialized:!1,previousItem:F.selectedItem,selectedItem:F.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:F.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return P.animationHandler=typeof F.animationHandler=="function"&&F.animationHandler||F.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,P.state=S(S({},K),P.animationHandler(F,K)),P}return m(D,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(P,K){!P.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!P.autoFocus&&this.props.autoFocus&&this.forceFocus(),K.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(P.selectedItem!==this.props.selectedItem||P.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),P.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 P=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=P.getInitialImage();K&&!K.complete?K.addEventListener("load",P.setMountState):P.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var P=this.carouselWrapperRef;this.props.stopOnHover&&P&&(P.addEventListener("mouseenter",this.stopOnHover),P.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var P=this.carouselWrapperRef;this.props.stopOnHover&&P&&(P.removeEventListener("mouseenter",this.stopOnHover),P.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,i.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var P=this.getInitialImage();P&&P.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,i.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var P;(P=this.carouselWrapperRef)===null||P===void 0||P.focus()}},{key:"renderItems",value:function(P){var K=this;return this.props.children?e.Children.map(this.props.children,function(ee,Y){var ve=Y===K.state.selectedItem,z=Y===K.state.previousItem,W=ve&&K.state.selectedStyle||z&&K.state.prevStyle||K.state.slideStyle||{};K.props.centerMode&&K.props.axis==="horizontal"&&(W=S(S({},W),{},{minWidth:K.props.centerSlidePercentage+"%"})),K.state.swiping&&K.state.swipeMovementStarted&&(W=S(S({},W),{},{pointerEvents:"none"}));var X={ref:function(J){return K.setItemsRef(J,Y)},key:"itemKey"+Y+(P?"clone":""),className:r.default.ITEM(!0,Y===K.state.selectedItem,Y===K.state.previousItem),onClick:K.handleClickItem.bind(K,Y,ee),style:W};return e.default.createElement("li",X,K.props.renderItem(ee,{isSelected:Y===K.state.selectedItem,isPrevious:Y===K.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var P=this,K=this.props,ee=K.showIndicators,Y=K.labels,ve=K.renderIndicator,z=K.children;return ee?e.default.createElement("ul",{className:"control-dots"},e.Children.map(z,function(W,X){return ve&&ve(P.changeItem(X),X===P.state.selectedItem,X,Y.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 P=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,ee=this.props.axis==="horizontal",Y=this.props.showArrows&&e.Children.count(this.props.children)>1,ve=Y&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,z=Y&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,W=this.renderItems(!0),X=W.shift(),te=W.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},oe={};if(ee){if(J.onSwipeLeft=this.onSwipeForward,J.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ae=this.getVariableItemHeight(this.state.selectedItem);oe.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}),oe.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:oe},K?e.default.createElement(t.default,h({tagName:"ul",innerRef:this.setListRef},J,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&X):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(de){return P.setListRef(de)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&X)),this.props.renderArrowNext(this.onClickNext,z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),D})(e.default.Component);return zs.default=U,$(U,"displayName","Carousel"),$(U,"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,D,F){return e.default.createElement("button",{type:"button","aria-label":F,className:r.default.ARROW_PREV(!D),onClick:M})},renderArrowNext:function(M,D,F){return e.default.createElement("button",{type:"button","aria-label":F,className:r.default.ARROW_NEXT(!D),onClick:M})},renderIndicator:function(M,D,F,P){return e.default.createElement("li",{className:r.default.DOT(D),onClick:M,onKeyDown:M,value:F,key:F,role:"button",tabIndex:0,"aria-label":"".concat(P," ").concat(F+1)})},renderItem:function(M){return M},renderThumbs:function(M){var D=e.Children.map(M,function(F){var P=F;if(F.type!=="img"&&(P=e.Children.toArray(F.props.children).find(function(K){return K.type==="img"})),!!P)return P});return D.filter(function(F){return F}).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"),[]):D},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}),zs}var Hb={},Bb;function pL(){return Bb||(Bb=1),Hb}var Wb;function hL(){return Wb||(Wb=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=i(fL()),r=pL(),n=i(Jx());function i(s){return s&&s.__esModule?s:{default:s}}})(af)),af}var gL=hL();const vL=({tip:e})=>A.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:e1(e,!0)}),mL=({pages:e})=>A.jsx("div",{className:"min-h-[10rem] w-96",children:A.jsx(gL.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>A.jsx(vL,{tip:t},t.key))})}),bL=({body:e,isInsideCarousel:t})=>A.jsx("article",{className:st(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-muted",{"w-60":!t}]),children:A.jsx(Cc,{children:e,options:{overrides:{a:{component:({children:r,...n})=>A.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary",children:[r,A.jsx(Zy,{className:"ml-1 mt-px h-4 w-4"})]})},strong:{component:({children:r,...n})=>A.jsx("span",{...n,className:"font-semibold text-body",children:r})}}}})}),yL=({video:e,body:t,title:r,isInsideCarousel:n})=>A.jsxs("div",{className:st([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[A.jsx("div",{className:st([{"mr-1":!n,"mb-1":n}]),children:A.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),A.jsx("article",{className:st(["prose prose-sm p-1 text-left text-xs text-muted",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:A.jsx(Cc,{children:t||"",options:{overrides:{a:{component:({children:i,...s})=>A.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[i,A.jsx(Zy,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),e1=(e,t)=>{switch(e.type){case yc.TEXT:return A.jsx(bL,{body:e.body,isInsideCarousel:t});case yc.VIDEO:return A.jsx(yL,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case yc.CAROUSEL:return A.jsx(mL,{pages:e.pages})}},t1=N.createContext(void 0);function Vb(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const wL=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:i},s]=N.useState({tips:{},show:!0});N.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const f=u.reduce((g,p)=>Vb(u,p.key).length>1?{...g,[p.key]:{type:"carousel",pages:Vb(u,p.key)}}:{...g,[p.key]:p},{});s(g=>({...g,tips:f}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!i}))};return A.jsx(t1.Provider,{value:{tips:n,toggleTips:l,show:i,enabled:t},children:e})},r1=e=>{const t=N.useContext(t1);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}},xL=Ic(Q3)`
|
|
82
134
|
&[data-state='open'] > * {
|
|
83
135
|
display: block !important;
|
|
84
136
|
}
|
|
85
|
-
`,
|
|
86
|
-
`),"","
|
|
87
|
-
`)].join(`
|
|
88
|
-
`));let g=y.props,v=typeof(g==null?void 0:g.className)=="function"?(...d)=>_a(g==null?void 0:g.className(...d),f.className):_a(g==null?void 0:g.className,f.className),x=v?{className:v}:{};return W.cloneElement(y,Object.assign({},gy(y.props,Sc(Xl(f,["ref"]))),p,m,{ref:s(y.ref,m.ref)},x))}return W.createElement(a,Object.assign({},Xl(f,["ref"]),a!==W.Fragment&&m,a!==W.Fragment&&p),y)}function LC(...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 gy(...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 Vn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Sc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Xl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let MC="div";var my=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(my||{});function FC(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 Kn({ourProps:a,theirProps:s,slot:{},defaultTag:MC,name:"Hidden"})}let DC=Vn(FC),ff=W.createContext(null);ff.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function vy(){return W.useContext(ff)}function NC({value:e,children:t}){return W.createElement(ff.Provider,{value:e},t)}function jC(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&&zC(r)?!1:i}function zC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function WC(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 Ec=(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))(Ec||{});function df(){let e=W.useRef(!1);return Ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let yy=W.createContext(null);function by(){let e=W.useContext(yy);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,by),t}return e}function UC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(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(yy.Provider,{value:s},r.children)},[t])]}let BC="p";function HC(e,t){let r=cf(),{id:i=`headlessui-description-${r}`,...s}=e,a=by(),l=qo(t);Ir(()=>a.register(i),[i,a.register]);let c={ref:l,...a.props,id:i};return Kn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:BC,name:a.name||"Description"})}let qC=Vn(HC),ZC=Object.assign(qC,{}),wy=W.createContext(null);function xy(){let e=W.useContext(wy);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,xy),t}return e}function GC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(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(wy.Provider,{value:s},r.children)},[t])]}let KC="label";function VC(e,t){let r=cf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,l=xy(),c=qo(t);Ir(()=>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),Kn({ourProps:f,theirProps:a,slot:l.slot||{},defaultTag:KC,name:l.name||"Label"})}let XC=Vn(VC),YC=Object.assign(XC,{});function JC(e=0){let[t,r]=W.useState(e),i=df(),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 pf=W.createContext(null);pf.displayName="GroupContext";let QC=W.Fragment;function ek(e){var t;let[r,i]=W.useState(null),[s,a]=GC(),[l,c]=UC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:l}),[r,i,s,l]),m={},y=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(p){r&&(p.currentTarget.tagName==="LABEL"&&p.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(pf.Provider,{value:f},Kn({ourProps:m,theirProps:y,defaultTag:QC,name:"Switch.Group"}))))}let tk="button";function rk(e,t){var r;let i=cf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:l=!1,onChange:c,disabled:f=!1,name:m,value:y,form:p,...g}=e,v=W.useContext(pf),x=W.useRef(null),d=qo(x,t,v===null?null:v.setSwitch),[w,h]=PC(a,c,l),S=Et(()=>h==null?void 0:h(!w)),E=Et(D=>{if(jC(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),R=Et(D=>{D.key===Ec.Space?(D.preventDefault(),S()):D.key===Ec.Enter&&WC(D.currentTarget)}),O=Et(D=>D.preventDefault()),C=W.useMemo(()=>({checked:w}),[w]),U={id:s,ref:d,role:"switch",type:$C(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":v==null?void 0:v.labelledby,"aria-describedby":v==null?void 0:v.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=uf();return W.useEffect(()=>{var D;let q=(D=x.current)==null?void 0:D.closest("form");q&&l!==void 0&&M.addEventListener(q,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,m!=null&&w&&W.createElement(DC,{features:my.Hidden,...Sc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:p,checked:w,name:m,value:y})}),Kn({ourProps:U,theirProps:g,slot:C,defaultTag:tk,name:"Switch"}))}let nk=Vn(rk),ik=ek,ok=Object.assign(nk,{Group:ik,Label:YC,Description:ZC});function sk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Yl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Jl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ak(e,t){let r=Ho();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(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,p)=>p-y);return m}),c=a+l;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",y=>{y.target===y.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 uk(e,t,r,i){let s=r?"enter":"leave",a=Ho(),l=i!==void 0?sk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Pr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Pr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Pr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Jl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Yl(e,...t.base,...c,...m),a.nextFrame(()=>{Jl(e,...t.base,...c,...m),Yl(e,...t.base,...c,...f),ak(e,()=>(Jl(e,...t.base,...c),Yl(e,...t.base,...t.entered),l()))}),a.dispose}function lk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let l=df(),c=uf(),f=wi(r);Ir(()=>{e&&(f.current="enter")},[e]),Ir(()=>{let m=Ho();c.add(m.dispose);let y=t.current;if(y&&f.current!=="idle"&&l.current)return m.dispose(),s.current(f.current),m.add(uk(y,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function hn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ba=W.createContext(null);Ba.displayName="TransitionContext";var ck=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ck||{});function fk(){let e=W.useContext(Ba);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function dk(){let e=W.useContext(Ha);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ha=W.createContext(null);Ha.displayName="NestingContext";function qa(e){return"children"in e?qa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Sy(e,t){let r=wi(e),i=W.useRef([]),s=df(),a=uf(),l=Et((v,x=yn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===v);d!==-1&&(Pr(x,{[yn.Unmount](){i.current.splice(d,1)},[yn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!qa(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=Et(v=>{let x=i.current.find(({el:d})=>d===v);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:v,state:"visible"}),()=>l(v,yn.Unmount)}),f=W.useRef([]),m=W.useRef(Promise.resolve()),y=W.useRef({enter:[],leave:[],idle:[]}),p=Et((v,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==v)),t==null||t.chains.current[x].push([v,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([v,new Promise(w=>{Promise.all(y.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)}),g=Et((v,x,d)=>{Promise.all(y.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:p,onStop:g,wait:m,chains:y}),[c,l,i,p,g,y,m])}function pk(){}let hk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function hm(e){var t;let r={};for(let i of hk)r[i]=(t=e[i])!=null?t:pk;return r}function gk(e){let t=W.useRef(hm(e));return W.useEffect(()=>{t.current=hm(e)},[e]),t}let mk="div",Ey=hy.RenderStrategy;function vk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:f,enterFrom:m,enterTo:y,entered:p,leave:g,leaveFrom:v,leaveTo:x,...d}=e,w=W.useRef(null),h=qo(w,t),S=(r=d.unmount)==null||r?yn.Unmount:yn.Hidden,{show:E,appear:R,initial:O}=fk(),[C,U]=W.useState(E?"visible":"hidden"),M=dk(),{register:D,unregister:q}=M;W.useEffect(()=>D(w),[D,w]),W.useEffect(()=>{if(S===yn.Hidden&&w.current){if(E&&C!=="visible"){U("visible");return}return Pr(C,{hidden:()=>q(w),visible:()=>D(w)})}},[C,w,D,q,E,S]);let N=wi({base:hn(d.className),enter:hn(f),enterFrom:hn(m),enterTo:hn(y),entered:hn(p),leave:hn(g),leaveFrom:hn(v),leaveTo:hn(x)}),L=gk({beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c}),B=lf();W.useEffect(()=>{if(B&&C==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,C,B]);let Z=O&&!R,k=R&&E&&O,Q=!B||Z?"idle":E?"enter":"leave",J=JC(0),re=Et(ie=>Pr(ie,{enter:()=>{J.addFlag(Gr.Opening),L.current.beforeEnter()},leave:()=>{J.addFlag(Gr.Closing),L.current.beforeLeave()},idle:()=>{}})),ce=Et(ie=>Pr(ie,{enter:()=>{J.removeFlag(Gr.Opening),L.current.afterEnter()},leave:()=>{J.removeFlag(Gr.Closing),L.current.afterLeave()},idle:()=>{}})),G=Sy(()=>{U("hidden"),q(w)},M),te=W.useRef(!1);lk({immediate:k,container:w,classes:N,direction:Q,onStart:wi(ie=>{te.current=!0,G.onStart(w,ie,re)}),onStop:wi(ie=>{te.current=!1,G.onStop(w,ie,ce),ie==="leave"&&!qa(G)&&(U("hidden"),q(w))})});let ne=d,ue={ref:h};return k?ne={...ne,className:_a(d.className,...N.current.enter,...N.current.enterFrom)}:te.current&&(ne.className=_a(d.className,(i=w.current)==null?void 0:i.className),ne.className===""&&delete ne.className),W.createElement(Ha.Provider,{value:G},W.createElement(NC,{value:Pr(C,{visible:Gr.Open,hidden:Gr.Closed})|J.flags},Kn({ourProps:ue,theirProps:ne,defaultTag:mk,features:Ey,visible:C==="visible",name:"Transition.Child"})))}function yk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,l=W.useRef(null),c=qo(l,t);lf();let f=vy();if(r===void 0&&f!==null&&(r=(f&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,y]=W.useState(r?"visible":"hidden"),p=Sy(()=>{y("hidden")}),[g,v]=W.useState(!0),x=W.useRef([r]);Ir(()=>{g!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),v(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:g}),[r,i,g]);W.useEffect(()=>{if(r)y("visible");else if(!qa(p))y("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&&y("hidden")}},[r,p]);let w={unmount:s},h=Et(()=>{var E;g&&v(!1),(E=e.beforeEnter)==null||E.call(e)}),S=Et(()=>{var E;g&&v(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(Ha.Provider,{value:p},W.createElement(Ba.Provider,{value:d},Kn({ourProps:{...w,as:W.Fragment,children:W.createElement(_y,{ref:c,...w,...a,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:Ey,visible:m==="visible",name:"Transition"})))}function bk(e,t){let r=W.useContext(Ba)!==null,i=vy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(_c,{ref:t,...e}):W.createElement(_y,{ref:t,...e}))}let _c=Vn(yk),_y=Vn(vk),wk=Vn(bk),Oa=Object.assign(_c,{Child:wk,Root:_c});const Ql={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},Oy=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const l=c=>{e(c)};return F.jsx("div",{className:He("flex items-center",i),children:F.jsx(ok,{as:"span",ref:a,checked:t,onChange:l,onKeyDown:c=>{c.key==="Enter"&&l(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
]`).replace("lheading",Ry).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Lk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cy=/^( {2,}|\\)\n(?!\s*$)/,Fk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ga=/[\p{P}\p{S}]/u,wf=/[\s\p{P}\p{S}]/u,ky=/[^\s\p{P}\p{S}]/u,Dk=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,wf).getRegex(),$y=/(?!~)[\p{P}\p{S}]/u,Nk=/(?!~)[\s\p{P}\p{S}]/u,jk=/(?:[^\s\p{P}\p{S}]|~)/u,zk=ke(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Iy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Wk=ke(Iy,"u").replace(/punct/g,Ga).getRegex(),Uk=ke(Iy,"u").replace(/punct/g,$y).getRegex(),Ly="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Bk=ke(Ly,"gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,wf).replace(/punct/g,Ga).getRegex(),Hk=ke(Ly,"gu").replace(/notPunctSpace/g,jk).replace(/punctSpace/g,Nk).replace(/punct/g,$y).getRegex(),qk=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,wf).replace(/punct/g,Ga).getRegex(),Zk=ke(/\\(punct)/,"gu").replace(/punct/g,Ga).getRegex(),Gk=ke(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Kk=ke(yf).replace("(?:-->|$)","-->").getRegex(),Vk=ke("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Kk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Aa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Xk=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Aa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),My=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",Aa).replace("ref",vf).getRegex(),Fy=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",vf).getRegex(),Yk=ke("reflink|nolink(?!\\()","g").replace("reflink",My).replace("nolink",Fy).getRegex(),mm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xf={_backpedal:Ro,anyPunctuation:Zk,autolink:Gk,blockSkip:zk,br:Cy,code:Mk,del:Ro,emStrongLDelim:Wk,emStrongRDelimAst:Bk,emStrongRDelimUnd:qk,escape:Lk,link:Xk,nolink:Fy,punctuation:Dk,reflink:My,reflinkSearch:Yk,tag:Vk,text:Fk,url:Ro},Jk={...xf,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Aa).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Aa).getRegex()},Oc={...xf,emStrongRDelimAst:Hk,emStrongLDelim:Uk,url:ke(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ke(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mm).getRegex()},Qk={...Oc,br:ke(Cy).replace("{2,}","*").getRegex(),text:ke(Oc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ra={normal:bf,gfm:$k,pedantic:Ik},ho={normal:xf,gfm:Oc,breaks:Qk,pedantic:Jk},e$={"&":"&","<":"<",">":">",'"':""","'":"'"},vm=e=>e$[e];function _r(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,vm)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,vm);return e}function ym(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function bm(e,t){var a;let r=e.replace(Rt.findPipe,(l,c,f)=>{let m=!1,y=c;for(;--y>=0&&f[y]==="\\";)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 go(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 t$(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 wm(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 r$(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 Ta=class{constructor(t){ye(this,"options");ye(this,"rules");ye(this,"lexer");this.options=t||Xn}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:go(i,`
|
|
94
|
-
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=r$(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=go(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:go(r[0],`
|
|
95
|
-
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=go(r[0],`
|
|
137
|
+
`,n1=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:i,enabled:s}=r1(e),[l,c]=N.useState(!1),u=N.useRef(null);return N.useEffect(()=>{if(u.current){const f=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return f.observe(u.current),()=>{u.current&&f.unobserve(u.current)}}},[]),i&&s?A.jsxs(J3,{open:l,onOpenChange:c,children:[A.jsx(xL,{ref:u,className:st("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:f=>f.stopPropagation(),children:A.jsx("span",{className:st("group-hover:block",{hidden:!r}),children:A.jsx(P2,{className:"h-4 w-4 text-yellow-300"})})}),A.jsx(eL,{side:t,sideOffset:5,onClick:f=>f.stopPropagation(),children:A.jsx(Gi,{depth:3,borderType:"light",className:"relative rounded border p-2 text-xs shadow-2xl",children:e1(i)})})]}):null};function $p(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ki=$p();function i1(e){Ki=e}var sa={exec:()=>null};function Ve(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Qt.caret,"$1"),r=r.replace(i,l),n},getRegex:()=>new RegExp(r,t)};return n}var Qt={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")},SL=/^(?:[ \t]*(?:\n|$))+/,EL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_L=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ta=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,OL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jp=/(?:[*+-]|\d{1,9}[.)])/,o1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,s1=Ve(o1).replace(/bull/g,jp).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(),kL=Ve(o1).replace(/bull/g,jp).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(),Fp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,AL=/^[^\n]+/,Hp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,TL=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Hp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),RL=Ve(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jp).getRegex(),eu="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",Bp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,CL=Ve("^ {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",Bp).replace("tag",eu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),a1=Ve(Fp).replace("hr",Ta).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",eu).getRegex(),IL=Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",a1).getRegex(),Wp={blockquote:IL,code:EL,def:TL,fences:_L,heading:OL,hr:Ta,html:CL,lheading:s1,list:RL,newline:SL,paragraph:a1,table:sa,text:AL},Ub=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ta).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",eu).getRegex(),PL={...Wp,lheading:kL,table:Ub,paragraph:Ve(Fp).replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ub).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",eu).getRegex()},NL={...Wp,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Bp).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:sa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Fp).replace("hr",Ta).replace("heading",` *#{1,6} *[^
|
|
138
|
+
]`).replace("lheading",s1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ML=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,DL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,l1=/^( {2,}|\\)\n(?!\s*$)/,LL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tu=/[\p{P}\p{S}]/u,Vp=/[\s\p{P}\p{S}]/u,c1=/[^\s\p{P}\p{S}]/u,zL=Ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Vp).getRegex(),u1=/(?!~)[\p{P}\p{S}]/u,$L=/(?!~)[\s\p{P}\p{S}]/u,jL=/(?:[^\s\p{P}\p{S}]|~)/u,FL=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,d1=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,HL=Ve(d1,"u").replace(/punct/g,tu).getRegex(),BL=Ve(d1,"u").replace(/punct/g,u1).getRegex(),f1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",WL=Ve(f1,"gu").replace(/notPunctSpace/g,c1).replace(/punctSpace/g,Vp).replace(/punct/g,tu).getRegex(),VL=Ve(f1,"gu").replace(/notPunctSpace/g,jL).replace(/punctSpace/g,$L).replace(/punct/g,u1).getRegex(),UL=Ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,c1).replace(/punctSpace/g,Vp).replace(/punct/g,tu).getRegex(),qL=Ve(/\\(punct)/,"gu").replace(/punct/g,tu).getRegex(),GL=Ve(/^<(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(),ZL=Ve(Bp).replace("(?:-->|$)","-->").getRegex(),KL=Ve("^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",ZL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,YL=Ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Nc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),p1=Ve(/^!?\[(label)\]\[(ref)\]/).replace("label",Nc).replace("ref",Hp).getRegex(),h1=Ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",Hp).getRegex(),XL=Ve("reflink|nolink(?!\\()","g").replace("reflink",p1).replace("nolink",h1).getRegex(),qb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Up={_backpedal:sa,anyPunctuation:qL,autolink:GL,blockSkip:FL,br:l1,code:DL,del:sa,emStrongLDelim:HL,emStrongRDelimAst:WL,emStrongRDelimUnd:UL,escape:ML,link:YL,nolink:h1,punctuation:zL,reflink:p1,reflinkSearch:XL,tag:KL,text:LL,url:sa},JL={...Up,link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",Nc).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nc).getRegex()},qf={...Up,emStrongRDelimAst:VL,emStrongLDelim:BL,url:Ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qb).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:Ve(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qb).getRegex()},QL={...qf,br:Ve(l1).replace("{2,}","*").getRegex(),text:Ve(qf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jl={normal:Wp,gfm:PL,pedantic:NL},Vs={normal:Up,gfm:qf,breaks:QL,pedantic:JL},ez={"&":"&","<":"<",">":">",'"':""","'":"'"},Gb=e=>ez[e];function fn(e,t){if(t){if(Qt.escapeTest.test(e))return e.replace(Qt.escapeReplace,Gb)}else if(Qt.escapeTestNoEncode.test(e))return e.replace(Qt.escapeReplaceNoEncode,Gb);return e}function Zb(e){try{e=encodeURI(e).replace(Qt.percentDecode,"%")}catch{return null}return e}function Kb(e,t){var s;let r=e.replace(Qt.findPipe,(l,c,u)=>{let f=!1,g=c;for(;--g>=0&&u[g]==="\\";)f=!f;return f?"|":" |"}),n=r.split(Qt.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Qt.slashPipe,"|");return n}function Us(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function tz(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Yb(e,t,r,n,i){let s=t.href,l=t.title||null,c=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function rz(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
139
|
+
`).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[c]=l;return c.length>=i.length?s.slice(i.length):s}).join(`
|
|
140
|
+
`)}var Mc=class{constructor(t){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=t||Ki}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Us(n,`
|
|
141
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=rz(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Us(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Us(r[0],`
|
|
142
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Us(r[0],`
|
|
96
143
|
`).split(`
|
|
97
|
-
`),
|
|
98
|
-
`),p=
|
|
99
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
100
|
-
${
|
|
101
|
-
${p}`:p;let
|
|
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(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let
|
|
144
|
+
`),i="",s="",l=[];for(;n.length>0;){let c=!1,u=[],f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))u.push(n[f]),c=!0;else if(!c)u.push(n[f]);else break;n=n.slice(f);let g=u.join(`
|
|
145
|
+
`),p=g.replace(this.rules.other.blockquoteSetextReplace,`
|
|
146
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
147
|
+
${g}`:g,s=s?`${s}
|
|
148
|
+
${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=h,n.length===0)break;let b=l.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){let S=b,v=S.raw+`
|
|
149
|
+
`+n.join(`
|
|
150
|
+
`),y=this.blockquote(v);l[l.length-1]=y,i=i.substring(0,i.length-S.raw.length)+y.raw,s=s.substring(0,s.length-S.text.length)+y.text;break}else if((b==null?void 0:b.type)==="list"){let S=b,v=S.raw+`
|
|
151
|
+
`+n.join(`
|
|
152
|
+
`),y=this.list(v);l[l.length-1]=y,i=i.substring(0,i.length-b.raw.length)+y.raw,s=s.substring(0,s.length-S.raw.length)+y.raw,n=v.substring(l.at(-1).raw.length).split(`
|
|
153
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let l=this.rules.other.listItemRegex(n),c=!1;for(;t;){let f=!1,g="",p="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;g=r[0],t=t.substring(g.length);let h=r[2].split(`
|
|
154
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),b=t.split(`
|
|
155
|
+
`,1)[0],S=!h.trim(),v=0;if(this.options.pedantic?(v=2,p=h.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,p=h.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(b)&&(g+=b+`
|
|
156
|
+
`,t=t.substring(b.length+1),f=!0),!f){let w=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),O=this.rules.other.fencesBeginRegex(v),_=this.rules.other.headingBeginRegex(v),R=this.rules.other.htmlBeginRegex(v);for(;t;){let H=t.split(`
|
|
157
|
+
`,1)[0],I;if(b=H,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),I=b):I=b.replace(this.rules.other.tabCharGlobal," "),O.test(b)||_.test(b)||R.test(b)||w.test(b)||x.test(b))break;if(I.search(this.rules.other.nonSpaceChar)>=v||!b.trim())p+=`
|
|
158
|
+
`+I.slice(v);else{if(S||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(h)||_.test(h)||x.test(h))break;p+=`
|
|
159
|
+
`+b}!S&&!b.trim()&&(S=!0),g+=H+`
|
|
160
|
+
`,t=t.substring(H.length+1),h=I.slice(v)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let y=null,m;this.options.gfm&&(y=this.rules.other.listIsTask.exec(p),y&&(m=y[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:g,task:!!y,checked:m,loose:!1,text:p,tokens:[]}),s.raw+=g}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){let g=s.items[f].tokens.filter(h=>h.type==="space"),p=g.length>0&&g.some(h=>this.rules.other.anyLine.test(h.raw));s.loose=p}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Kb(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
161
|
+
`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of s)l.rows.push(Kb(u,l.header.length).map((f,g)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:l.align[g]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
|
|
162
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=Us(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=tz(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 i=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),Yb(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return Yb(n,s,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,c,u=s,f=0,g=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+s);(i=g.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(c=[...l].length,i[3]||i[4]){u+=c;continue}else if((i[5]||i[6])&&s%3&&!((s+c)%3)){f+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+f);let p=[...i[0]][0].length,h=t.slice(0,s+i.index+p+c);if(Math.min(s,c)%2){let S=h.slice(1,-1);return{type:"em",raw:h,text:S,tokens:this.lexer.inlineTokens(S)}}let b=h.slice(2,-2);return{type:"strong",raw:h,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=r[0],s="mailto:"+i;else{let l;do l=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(l!==r[0]);i=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Zr=class Gf{constructor(t){Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"tokenizer");Ae(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ki,this.options.tokenizer=this.options.tokenizer||new Mc,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:Qt,block:Jl.normal,inline:Vs.normal};this.options.pedantic?(r.block=Jl.pedantic,r.inline=Vs.pedantic):this.options.gfm&&(r.block=Jl.gfm,this.options.breaks?r.inline=Vs.breaks:r.inline=Vs.gfm),this.tokenizer.rules=r}static get rules(){return{block:Jl,inline:Vs}}static lex(t,r){return new Gf(r).lex(t)}static lexInline(t,r){return new Gf(r).inlineTokens(t)}lex(t){t=t.replace(Qt.carriageReturn,`
|
|
163
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Qt.tabCharGlobal," ").replace(Qt.spaceLine,""));t;){let c;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(f=>(c=f.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 f=r.at(-1);c.raw.length===1&&f!==void 0?f.raw+=`
|
|
164
|
+
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
118
165
|
`)?"":`
|
|
119
|
-
`)+c.raw,
|
|
120
|
-
`+c.text,this.inlineQueue.at(-1).src=
|
|
166
|
+
`)+c.raw,f.text+=`
|
|
167
|
+
`+c.text,this.inlineQueue.at(-1).src=f.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 f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
121
168
|
`)?"":`
|
|
122
|
-
`)+c.raw,
|
|
123
|
-
`+c.raw,this.inlineQueue.at(-1).src=
|
|
169
|
+
`)+c.raw,f.text+=`
|
|
170
|
+
`+c.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let u=t;if((l=this.options.extensions)!=null&&l.startBlock){let f=1/0,g=t.slice(1),p;this.options.extensions.startBlock.forEach(h=>{p=h.call({lexer:this},g),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(u=t.substring(0,f+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let f=r.at(-1);n&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=(f.raw.endsWith(`
|
|
124
171
|
`)?"":`
|
|
125
|
-
`)+c.raw,
|
|
126
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
172
|
+
`)+c.raw,f.text+=`
|
|
173
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(c),n=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
127
174
|
`)?"":`
|
|
128
|
-
`)+c.raw,
|
|
129
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
130
|
-
`;return
|
|
131
|
-
`:"<pre><code>"+(
|
|
175
|
+
`)+c.raw,f.text+=`
|
|
176
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(c);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,f,g,p;let n=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((u=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:u.call({lexer:this},n))??n;let s=!1,l="";for(;t;){s||(l=""),s=!1;let h;if((g=(f=this.options.extensions)==null?void 0:f.inline)!=null&&g.some(S=>(h=S.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let S=r.at(-1);h.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,l)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let b=t;if((p=this.options.extensions)!=null&&p.startInline){let S=1/0,v=t.slice(1),y;this.options.extensions.startInline.forEach(m=>{y=m.call({lexer:this},v),typeof y=="number"&&y>=0&&(S=Math.min(S,y))}),S<1/0&&S>=0&&(b=t.substring(0,S+1))}if(h=this.tokenizer.inlineText(b)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(l=h.raw.slice(-1)),s=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},Dc=class{constructor(t){Ae(this,"options");Ae(this,"parser");this.options=t||Ki}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let i=(l=(r||"").match(Qt.notSpaceStart))==null?void 0:l[0],s=t.replace(Qt.endingNewline,"")+`
|
|
177
|
+
`;return i?'<pre><code class="language-'+fn(i)+'">'+(n?s:fn(s,!0))+`</code></pre>
|
|
178
|
+
`:"<pre><code>"+(n?s:fn(s,!0))+`</code></pre>
|
|
132
179
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
133
180
|
${this.parser.parse(t)}</blockquote>
|
|
134
181
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
135
182
|
`}hr(t){return`<hr>
|
|
136
|
-
`}list(t){let r=t.ordered,
|
|
137
|
-
`+
|
|
138
|
-
`}listitem(t){var
|
|
183
|
+
`}list(t){let r=t.ordered,n=t.start,i="";for(let c=0;c<t.items.length;c++){let u=t.items[c];i+=this.listitem(u)}let s=r?"ol":"ul",l=r&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
|
|
184
|
+
`+i+"</"+s+`>
|
|
185
|
+
`}listitem(t){var n;let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=i+" "+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=i+" "+fn(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
139
186
|
`}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="",
|
|
187
|
+
`}table(t){let r="",n="";for(let s=0;s<t.header.length;s++)n+=this.tablecell(t.header[s]);r+=this.tablerow({text:n});let i="";for(let s=0;s<t.rows.length;s++){let l=t.rows[s];n="";for(let c=0;c<l.length;c++)n+=this.tablecell(l[c]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
141
188
|
<thead>
|
|
142
189
|
`+r+`</thead>
|
|
143
|
-
`+
|
|
190
|
+
`+i+`</table>
|
|
144
191
|
`}tablerow({text:t}){return`<tr>
|
|
145
192
|
${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
|
|
193
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
|
|
194
|
+
`}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>${fn(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),s=Zb(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+fn(r)+'"'),l+=">"+i+"</a>",l}image({href:t,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=Zb(t);if(s===null)return fn(n);t=s;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${fn(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fn(t.text)}},qp=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""}},Kr=class Zf{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||Ki,this.options.renderer=this.options.renderer||new Dc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qp}static parse(t,r){return new Zf(r).parse(t)}static parseInline(t,r){return new Zf(r).parseInline(t)}parse(t,r=!0){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=c,g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){n+=g||"";continue}}let u=c;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let f=u,g=this.renderer.text(f);for(;l+1<t.length&&t[l+1].type==="text";)f=t[++l],g+=`
|
|
195
|
+
`+this.renderer.text(f);r?n+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):n+=g;continue}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,r=this.renderer){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){n+=f||"";continue}}let u=c;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},ic,Ks=(ic=class{constructor(t){Ae(this,"options");Ae(this,"block");this.options=t||Ki}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Zr.lex:Zr.lexInline}provideParser(){return this.block?Kr.parse:Kr.parseInline}},Ae(ic,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(ic,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ic),g1=class{constructor(...t){Ae(this,"defaults",$p());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",Kr);Ae(this,"Renderer",Dc);Ae(this,"TextRenderer",qp);Ae(this,"Lexer",Zr);Ae(this,"Tokenizer",Mc);Ae(this,"Hooks",Ks);this.use(...t)}walkTokens(t,r){var i,s;let n=[];for(let l of t)switch(n=n.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let u of c.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of c.rows)for(let f of u)n=n.concat(this.walkTokens(f.tokens,r));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,r));break}default:{let c=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let f=c[u].flat(1/0);n=n.concat(this.walkTokens(f,r))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let u=s.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new Dc(this.defaults);for(let l in n.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Mc(this.defaults);for(let l in n.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Ks;for(let l in n.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],f=s[c];Ks.passThroughHooks.has(l)?s[c]=g=>{if(this.defaults.async&&Ks.passThroughHooksRespectAsync.has(l))return(async()=>{let h=await u.call(s,g);return f.call(s,h)})();let p=u.call(s,g);return f.call(s,p)}:s[c]=(...g)=>{if(this.defaults.async)return(async()=>{let h=await u.apply(s,g);return h===!1&&(h=await f.apply(s,g)),h})();let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,l=n.walkTokens;i.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),s&&(u=u.concat(s.call(this,c))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Zr.lex(t,r??this.defaults)}parser(t,r){return Kr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let i={...n},s={...this.defaults,...i},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,u=await(s.hooks?await s.hooks.provideLexer():t?Zr.lex:Zr.lexInline)(c,s),f=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(f,s.walkTokens));let g=await(s.hooks?await s.hooks.provideParser():t?Kr.parse:Kr.parseInline)(f,s);return s.hooks?await s.hooks.postprocess(g):g})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?Zr.lex:Zr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let u=(s.hooks?s.hooks.provideParser():t?Kr.parse:Kr.parseInline)(c,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
|
|
196
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+fn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Ui=new g1;function rt(e,t){return Ui.parse(e,t)}rt.options=rt.setOptions=function(e){return Ui.setOptions(e),rt.defaults=Ui.defaults,i1(rt.defaults),rt};rt.getDefaults=$p;rt.defaults=Ki;rt.use=function(...e){return Ui.use(...e),rt.defaults=Ui.defaults,i1(rt.defaults),rt};rt.walkTokens=function(e,t){return Ui.walkTokens(e,t)};rt.parseInline=Ui.parseInline;rt.Parser=Kr;rt.parser=Kr.parse;rt.Renderer=Dc;rt.TextRenderer=qp;rt.Lexer=Zr;rt.lexer=Zr.lex;rt.Tokenizer=Mc;rt.Hooks=Ks;rt.parse=rt;rt.options;rt.setOptions;rt.use;rt.walkTokens;rt.parseInline;Kr.parse;Zr.lex;const nz={"&":"&","<":"<",">":">",""":'"',"'":"'"},v1=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,iz=RegExp(v1.source),Xb=(e="")=>iz.test(e)?e.replace(v1,t=>nz[t]||"'"):e,Jb=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var oz=class{constructor(e){Ae(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const n=r.depth;return this.renderer.heading(this.parseInline(r.tokens),n)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const n=r;return n.tokens?this.parseInline(n.tokens):r.text}case"blockquote":{const n=r,i=this.parse(n.tokens);return this.renderer.blockquote(i)}case"list":{const n=r;this.renderer.elIdList.push(0);const i=n.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(i,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const n=r;this.renderer.elIdList.push(0);const i=n.header.map((f,g)=>this.renderer.tableCell(this.parseInline(f.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(i),l=this.renderer.tableHeader(s);this.renderer.elIdList.push(0);const c=n.rows.map(f=>{this.renderer.elIdList.push(0);const g=f.map((p,h)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[h]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(g)});this.renderer.elIdList.pop();const u=this.renderer.tableBody(c);return this.renderer.table([l,u])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(Xb(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(Xb(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}},sz=oz,ui,ot,yt,Kf,Ny,az=(Ny=class{constructor(e={}){Ft(this,ot);Ae(this,"elIdList",[]);Ft(this,ui);const{renderer:t}=e;Qe(this,ui,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const i=r,s=n;!this[i]||i==="elementId"||i==="elIdList"||typeof s!="function"||Object.defineProperty(this,i,{value(...l){return Ee(this,ot,Kf).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return Ee(this,ot,yt).call(this,`h${t}`,e)}paragraph(e){return Ee(this,ot,yt).call(this,"p",e)}link(e,t){const r=Jb(e,le(this,ui).baseURL),n=le(this,ui).openLinksInNewTab?"_blank":null;return Ee(this,ot,yt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=Jb(e,le(this,ui).baseURL);return Ee(this,ot,yt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${le(this,ui).langPrefix}${t}`:null;return Ee(this,ot,yt).call(this,"code",e,{className:r})}code(e,t){return Ee(this,ot,yt).call(this,"pre",this.codespan(e,t))}blockquote(e){return Ee(this,ot,yt).call(this,"blockquote",e)}list(e,t,r){return Ee(this,ot,yt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return Ee(this,ot,yt).call(this,"li",e)}checkbox(e){return Ee(this,ot,yt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return Ee(this,ot,yt).call(this,"table",e)}tableHeader(e){return Ee(this,ot,yt).call(this,"thead",e)}tableBody(e){return Ee(this,ot,yt).call(this,"tbody",e)}tableRow(e){return Ee(this,ot,yt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return Ee(this,ot,yt).call(this,r,e,{align:t.align})}strong(e){return Ee(this,ot,yt).call(this,"strong",e)}em(e){return Ee(this,ot,yt).call(this,"em",e)}del(e){return Ee(this,ot,yt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return Ee(this,ot,yt).call(this,"hr")}br(){return Ee(this,ot,yt).call(this,"br")}},ui=new WeakMap,ot=new WeakSet,yt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return Ee(this,ot,Kf).call(this),N.createElement(e,{...r,...n},t)},Kf=function(){this.elIdList[this.elIdList.length-1]+=1},Ny),lz=az;const cz=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}`)},uz={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},dz=new g1,fz=e=>{cz(e);const t={...uz,...e},r=t.instance??dz,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},i=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(i,n):r.lexer(i,n),l={renderer:new lz({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new sz(l),u=t.isInline?c.parseInline(s):c.parse(s);return N.createElement(N.Fragment,null,u)};var pz=fz,hz=pz;const gz=({children:e,label:t,placement:r="top",className:n,isDisabled:i,container:s})=>{const[l,c]=N.useState(null),u=N.useRef(null),[f,g]=N.useState(null),[p,h]=N.useState(!1),b=typeof t=="string",{styles:S,attributes:v}=wp(l,f,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),y=N.Children.map(e,m=>N.isValidElement(m)?N.cloneElement(m,{ref:c,onMouseEnter:()=>h(!0),onMouseLeave:()=>{u.current=setTimeout(()=>h(!1),50)}}):m);return i?A.jsx(A.Fragment,{children:y}):A.jsxs(A.Fragment,{children:[y,p&&t&&En.createPortal(A.jsx("div",{ref:g,style:{...S.popper,zIndex:1e5},...v.popper,className:st(b?"select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md":void 0,n),onMouseEnter:()=>{u.current&&clearTimeout(u.current),h(!0)},onMouseLeave:()=>h(!1),children:b?A.jsx(hz,{openLinksInNewTab:!0,children:t}):t}),s||document.body)]})},vz=({referenceElement:e,label:t})=>{const[r,n]=N.useState(null),{styles:i,attributes:s}=wp(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return A.jsx("div",{className:"rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:n,style:{...i.popper,zIndex:1e5},...s.popper,children:t})},mz=Cf.keyframes`
|
|
150
197
|
to {
|
|
151
198
|
fill: url(#d);
|
|
152
199
|
stroke-dashoffset: 0;
|
|
153
200
|
}
|
|
154
|
-
`,
|
|
201
|
+
`,m1=Ic.svg`
|
|
155
202
|
& .e {
|
|
156
203
|
fill: url(#d);
|
|
157
204
|
}
|
|
@@ -162,7 +209,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
|
|
|
162
209
|
fill: transparent;
|
|
163
210
|
stroke-dasharray: 700;
|
|
164
211
|
stroke-dashoffset: 700;
|
|
165
|
-
animation: ${
|
|
212
|
+
animation: ${mz} 1.5s ease-in-out infinite alternate-reverse;
|
|
166
213
|
}
|
|
167
214
|
|
|
168
215
|
& #circle {
|
|
@@ -172,35 +219,39 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
|
|
|
172
219
|
stroke-dasharray: 700;
|
|
173
220
|
stroke-dashoffset: 700;
|
|
174
221
|
}
|
|
175
|
-
`,
|
|
222
|
+
`,bz=({message:e,version:t})=>A.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-body",children:A.jsxs("div",{className:"flex flex-col text-center",children:[A.jsx("div",{className:"relative mr-4 self-center",children:A.jsx("div",{className:"flex items-center justify-center rounded",children:A.jsxs(m1,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[A.jsx("defs",{children:A.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[A.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:A.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),A.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:A.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),A.jsx("g",{id:"a"}),A.jsx("g",{id:"b",children:A.jsx("g",{id:"c",children:A.jsxs("g",{children:[A.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),A.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),A.jsxs("div",{children:[A.jsx("span",{className:"text-xs text-inactive-text",children:t}),A.jsx("h2",{className:"text-lg text-muted",children:e})]})]})});var yz=Object.defineProperty,wz=(e,t,r)=>t in e?yz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hf=(e,t,r)=>(wz(e,typeof t!="symbol"?t+"":t,r),r);let xz=class{constructor(){hf(this,"current",this.detect()),hf(this,"handoffState","pending"),hf(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"}},wc=new xz,ha=(e,t)=>{wc.isServer?N.useEffect(e,t):N.useLayoutEffect(e,t)};function Io(e){let t=N.useRef(e);return ha(()=>{t.current=e},[e]),t}let jn=function(e){let t=Io(e);return N.useCallback((...r)=>t.current(...r),[t])};function Sz(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ra(){let e=[],t={addEventListener(r,n,i,s){return r.addEventListener(n,i,s),t.add(()=>r.removeEventListener(n,i,s))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Sz(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let s=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:s})})},group(r){let n=Ra();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function b1(){let[e]=N.useState(Ra);return N.useEffect(()=>()=>e.dispose(),[e]),e}function Ez(){let e=typeof document>"u";return"useSyncExternalStore"in V?(t=>t.useSyncExternalStore)(V)(()=>()=>{},()=>!1,()=>!e):!1}function y1(){let e=Ez(),[t,r]=V.useState(wc.isHandoffComplete);return t&&wc.isHandoffComplete===!1&&r(!1),V.useEffect(()=>{t!==!0&&r(!0)},[t]),V.useEffect(()=>wc.handoff(),[]),e?!1:t}function yn(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yn),n}let _z=Symbol();function w1(...e){let t=N.useRef(e);N.useEffect(()=>{t.current=e},[e]);let r=jn(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[_z]))?void 0:r}function Lc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var x1=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(x1||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function S1({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:s=!0,name:l,mergeRefs:c}){c=c??Oz;let u=E1(t,e);if(s)return Ql(u,r,n,l,c);let f=i??0;if(f&2){let{static:g=!1,...p}=u;if(g)return Ql(p,r,n,l,c)}if(f&1){let{unmount:g=!0,...p}=u;return yn(g?0:1,{0(){return null},1(){return Ql({...p,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return Ql(u,r,n,l,c)}function Ql(e,t={},r,n,i){let{as:s=r,children:l,refName:c="ref",...u}=gf(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},g=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let p={};if(t){let h=!1,b=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(h=!0),v===!0&&b.push(S);h&&(p["data-headlessui-state"]=b.join(" "))}if(s===N.Fragment&&Object.keys(Qb(u)).length>0){if(!N.isValidElement(g)||Array.isArray(g)&&g.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(v=>` - ${v}`).join(`
|
|
223
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
|
|
224
|
+
`)].join(`
|
|
225
|
+
`));let h=g.props,b=typeof(h==null?void 0:h.className)=="function"?(...v)=>Lc(h==null?void 0:h.className(...v),u.className):Lc(h==null?void 0:h.className,u.className),S=b?{className:b}:{};return N.cloneElement(g,Object.assign({},E1(g.props,Qb(gf(u,["ref"]))),p,f,{ref:i(g.ref,f.ref)},S))}return N.createElement(s,Object.assign({},gf(u,["ref"]),s!==N.Fragment&&f,s!==N.Fragment&&p),g)}function Oz(...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 E1(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];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](i,...s){let l=r[n];for(let c of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;c(i,...s)}}});return t}function Gp(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Qb(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 Zp=N.createContext(null);Zp.displayName="OpenClosedContext";var zn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(zn||{});function _1(){return N.useContext(Zp)}function kz({value:e,children:t}){return N.createElement(Zp.Provider,{value:e},t)}function Kp(){let e=N.useRef(!1);return ha(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Az(e=0){let[t,r]=N.useState(e),n=Kp(),i=N.useCallback(u=>{n.current&&r(f=>f|u)},[t,n]),s=N.useCallback(u=>!!(t&u),[t]),l=N.useCallback(u=>{n.current&&r(f=>f&~u)},[r,n]),c=N.useCallback(u=>{n.current&&r(f=>f^u)},[r]);return{flags:t,addFlag:i,hasFlag:s,removeFlag:l,toggleFlag:c}}function Tz(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 Rz(e,t){let r=Ra();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[s,l]=[n,i].map(u=>{let[f=0]=u.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,p)=>p-g);return f}),c=s+l;if(c!==0){r.group(f=>{f.setTimeout(()=>{t(),f.dispose()},c),f.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&f.dispose()})});let u=r.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function Cz(e,t,r,n){let i=r?"enter":"leave",s=Ra(),l=n!==void 0?Tz(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=yn(i,{enter:()=>t.enter,leave:()=>t.leave}),u=yn(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=yn(i,{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,...c,...f),s.nextFrame(()=>{mf(e,...t.base,...c,...f),vf(e,...t.base,...c,...u),Rz(e,()=>(mf(e,...t.base,...c),vf(e,...t.base,...t.entered),l()))}),s.dispose}function Iz({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:s}){let l=Kp(),c=b1(),u=Io(r);ha(()=>{e&&(u.current="enter")},[e]),ha(()=>{let f=Ra();c.add(f.dispose);let g=t.current;if(g&&u.current!=="idle"&&l.current)return f.dispose(),i.current(u.current),f.add(Cz(g,n.current,u.current==="enter",()=>{f.dispose(),s.current(u.current)})),f.dispose},[r])}function ci(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ru=N.createContext(null);ru.displayName="TransitionContext";var Pz=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Pz||{});function Nz(){let e=N.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 Mz(){let e=N.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=N.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 O1(e,t){let r=Io(e),n=N.useRef([]),i=Kp(),s=b1(),l=jn((b,S=pi.Hidden)=>{let v=n.current.findIndex(({el:y})=>y===b);v!==-1&&(yn(S,{[pi.Unmount](){n.current.splice(v,1)},[pi.Hidden](){n.current[v].state="hidden"}}),s.microTask(()=>{var y;!iu(n)&&i.current&&((y=r.current)==null||y.call(r))}))}),c=jn(b=>{let S=n.current.find(({el:v})=>v===b);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:b,state:"visible"}),()=>l(b,pi.Unmount)}),u=N.useRef([]),f=N.useRef(Promise.resolve()),g=N.useRef({enter:[],leave:[],idle:[]}),p=jn((b,S,v)=>{u.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([y])=>y!==b)),t==null||t.chains.current[S].push([b,new Promise(y=>{u.current.push(y)})]),t==null||t.chains.current[S].push([b,new Promise(y=>{Promise.all(g.current[S].map(([m,w])=>w)).then(()=>y())})]),S==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),h=jn((b,S,v)=>{Promise.all(g.current[S].splice(0).map(([y,m])=>m)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>v(S))});return N.useMemo(()=>({children:n,register:c,unregister:l,onStart:p,onStop:h,wait:f,chains:g}),[c,l,n,p,h,g,f])}function Dz(){}let Lz=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ey(e){var t;let r={};for(let n of Lz)r[n]=(t=e[n])!=null?t:Dz;return r}function zz(e){let t=N.useRef(ey(e));return N.useEffect(()=>{t.current=ey(e)},[e]),t}let $z="div",k1=x1.RenderStrategy;function jz(e,t){var r,n;let{beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:f,enterTo:g,entered:p,leave:h,leaveFrom:b,leaveTo:S,...v}=e,y=N.useRef(null),m=w1(y,t),w=(r=v.unmount)==null||r?pi.Unmount:pi.Hidden,{show:x,appear:O,initial:_}=Nz(),[R,H]=N.useState(x?"visible":"hidden"),I=Mz(),{register:$,unregister:U}=I;N.useEffect(()=>$(y),[$,y]),N.useEffect(()=>{if(w===pi.Hidden&&y.current){if(x&&R!=="visible"){H("visible");return}return yn(R,{hidden:()=>U(y),visible:()=>$(y)})}},[R,y,$,U,x,w]);let j=Io({base:ci(v.className),enter:ci(u),enterFrom:ci(f),enterTo:ci(g),entered:ci(p),leave:ci(h),leaveFrom:ci(b),leaveTo:ci(S)}),M=zz({beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c}),D=y1();N.useEffect(()=>{if(D&&R==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,R,D]);let F=_&&!O,P=O&&x&&_,K=!D||F?"idle":x?"enter":"leave",ee=Az(0),Y=jn(J=>yn(J,{enter:()=>{ee.addFlag(zn.Opening),M.current.beforeEnter()},leave:()=>{ee.addFlag(zn.Closing),M.current.beforeLeave()},idle:()=>{}})),ve=jn(J=>yn(J,{enter:()=>{ee.removeFlag(zn.Opening),M.current.afterEnter()},leave:()=>{ee.removeFlag(zn.Closing),M.current.afterLeave()},idle:()=>{}})),z=O1(()=>{H("hidden"),U(y)},I),W=N.useRef(!1);Iz({immediate:P,container:y,classes:j,direction:K,onStart:Io(J=>{W.current=!0,z.onStart(y,J,Y)}),onStop:Io(J=>{W.current=!1,z.onStop(y,J,ve),J==="leave"&&!iu(z)&&(H("hidden"),U(y))})});let X=v,te={ref:m};return P?X={...X,className:Lc(v.className,...j.current.enter,...j.current.enterFrom)}:W.current&&(X.className=Lc(v.className,(n=y.current)==null?void 0:n.className),X.className===""&&delete X.className),N.createElement(nu.Provider,{value:z},N.createElement(kz,{value:yn(R,{visible:zn.Open,hidden:zn.Closed})|ee.flags},S1({ourProps:te,theirProps:X,defaultTag:$z,features:k1,visible:R==="visible",name:"Transition.Child"})))}function Fz(e,t){let{show:r,appear:n=!1,unmount:i=!0,...s}=e,l=N.useRef(null),c=w1(l,t);y1();let u=_1();if(r===void 0&&u!==null&&(r=(u&zn.Open)===zn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,g]=N.useState(r?"visible":"hidden"),p=O1(()=>{g("hidden")}),[h,b]=N.useState(!0),S=N.useRef([r]);ha(()=>{h!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),b(!1))},[S,r]);let v=N.useMemo(()=>({show:r,appear:n,initial:h}),[r,n,h]);N.useEffect(()=>{if(r)g("visible");else if(!iu(p))g("hidden");else{let x=l.current;if(!x)return;let O=x.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&g("hidden")}},[r,p]);let y={unmount:i},m=jn(()=>{var x;h&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=jn(()=>{var x;h&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return N.createElement(nu.Provider,{value:p},N.createElement(ru.Provider,{value:v},S1({ourProps:{...y,as:N.Fragment,children:N.createElement(A1,{ref:c,...y,...s,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:N.Fragment,features:k1,visible:f==="visible",name:"Transition"})))}function Hz(e,t){let r=N.useContext(ru)!==null,n=_1()!==null;return N.createElement(N.Fragment,null,!r&&n?N.createElement(Yf,{ref:t,...e}):N.createElement(A1,{ref:t,...e}))}let Yf=Gp(Fz),A1=Gp(jz),Bz=Gp(Hz),zc=Object.assign(Yf,{Child:Bz,Root:Yf});var Ys={exports:{}};/**
|
|
176
226
|
* @license
|
|
177
227
|
* Lodash <https://lodash.com/>
|
|
178
228
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
179
229
|
* Released under MIT license <https://lodash.com/license>
|
|
180
230
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
181
231
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
182
|
-
*/var y$=bo.exports,Em;function b$(){return Em||(Em=1,(function(e,t){(function(){var r,i="4.18.1",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="Invalid `imports` option passed into `_.template`",m="__lodash_hash_undefined__",y=500,p="__lodash_placeholder__",g=1,v=2,x=4,d=1,w=2,h=1,S=2,E=4,R=8,O=16,C=32,U=64,M=128,D=256,q=512,N=30,L="...",B=800,Z=16,k=1,Q=2,J=3,re=1/0,ce=9007199254740991,G=17976931348623157e292,te=NaN,ne=4294967295,ue=ne-1,ie=ne>>>1,he=[["ary",M],["bind",h],["bindKey",S],["curry",R],["curryRight",O],["flip",q],["partial",C],["partialRight",U],["rearg",D]],fe="[object Arguments]",ve="[object Array]",xe="[object AsyncFunction]",Ae="[object Boolean]",_e="[object Date]",ot="[object DOMException]",oe="[object Error]",ct="[object Function]",Mr="[object GeneratorFunction]",bt="[object Map]",Yr="[object Number]",Vo="[object Null]",ar="[object Object]",Xo="[object Promise]",Fr="[object Proxy]",yr="[object RegExp]",Pt="[object Set]",Jr="[object String]",Qr="[object Symbol]",Yo="[object Undefined]",en="[object WeakMap]",Jo="[object WeakSet]",tn="[object ArrayBuffer]",Yn="[object DataView]",eu="[object Float32Array]",tu="[object Float64Array]",ru="[object Int8Array]",nu="[object Int16Array]",iu="[object Int32Array]",ou="[object Uint8Array]",su="[object Uint8ClampedArray]",au="[object Uint16Array]",uu="[object Uint32Array]",sb=/\b__p \+= '';/g,ab=/\b(__p \+=) '' \+/g,ub=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uf=/&(?:amp|lt|gt|quot|#39);/g,Bf=/[&<>"']/g,lb=RegExp(Uf.source),cb=RegExp(Bf.source),fb=/<%-([\s\S]+?)%>/g,db=/<%([\s\S]+?)%>/g,Hf=/<%=([\s\S]+?)%>/g,pb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hb=/^\w*$/,gb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lu=/[\\^$.*+?()[\]{}|]/g,mb=RegExp(lu.source),cu=/^\s+/,vb=/\s/,yb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bb=/\{\n\/\* \[wrapped with (.+)\] \*/,wb=/,? & /,xb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qf=/[()=,{}\[\]\/\s]/,Sb=/\\(\\)?/g,Eb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zf=/\w*$/,_b=/^[-+]0x[0-9a-f]+$/i,Ob=/^0b[01]+$/i,Ab=/^\[object .+?Constructor\]$/,Tb=/^0o[0-7]+$/i,Rb=/^(?:0|[1-9]\d*)$/,Pb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qo=/($^)/,Cb=/['\n\r\u2028\u2029\\]/g,es="\\ud800-\\udfff",kb="\\u0300-\\u036f",$b="\\ufe20-\\ufe2f",Ib="\\u20d0-\\u20ff",Gf=kb+$b+Ib,Kf="\\u2700-\\u27bf",Vf="a-z\\xdf-\\xf6\\xf8-\\xff",Lb="\\xac\\xb1\\xd7\\xf7",Mb="\\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",Xf="A-Z\\xc0-\\xd6\\xd8-\\xde",Yf="\\ufe0e\\ufe0f",Jf=Lb+Mb+Fb+Db,fu="['’]",Nb="["+es+"]",Qf="["+Jf+"]",ts="["+Gf+"]",ed="\\d+",jb="["+Kf+"]",td="["+Vf+"]",rd="[^"+es+Jf+ed+Kf+Vf+Xf+"]",du="\\ud83c[\\udffb-\\udfff]",zb="(?:"+ts+"|"+du+")",nd="[^"+es+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",hu="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+Xf+"]",id="\\u200d",od="(?:"+td+"|"+rd+")",Wb="(?:"+Jn+"|"+rd+")",sd="(?:"+fu+"(?:d|ll|m|re|s|t|ve))?",ad="(?:"+fu+"(?:D|LL|M|RE|S|T|VE))?",ud=zb+"?",ld="["+Yf+"]?",Ub="(?:"+id+"(?:"+[nd,pu,hu].join("|")+")"+ld+ud+")*",Bb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cd=ld+ud+Ub,qb="(?:"+[jb,pu,hu].join("|")+")"+cd,Zb="(?:"+[nd+ts+"?",ts,pu,hu,Nb].join("|")+")",Gb=RegExp(fu,"g"),Kb=RegExp(ts,"g"),gu=RegExp(du+"(?="+du+")|"+Zb+cd,"g"),Vb=RegExp([Jn+"?"+td+"+"+sd+"(?="+[Qf,Jn,"$"].join("|")+")",Wb+"+"+ad+"(?="+[Qf,Jn+od,"$"].join("|")+")",Jn+"?"+od+"+"+sd,Jn+"+"+ad,Hb,Bb,ed,qb].join("|"),"g"),Xb=RegExp("["+id+es+Gf+Yf+"]"),Yb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jb=["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"],Qb=-1,qe={};qe[eu]=qe[tu]=qe[ru]=qe[nu]=qe[iu]=qe[ou]=qe[su]=qe[au]=qe[uu]=!0,qe[fe]=qe[ve]=qe[tn]=qe[Ae]=qe[Yn]=qe[_e]=qe[oe]=qe[ct]=qe[bt]=qe[Yr]=qe[ar]=qe[yr]=qe[Pt]=qe[Jr]=qe[en]=!1;var Ue={};Ue[fe]=Ue[ve]=Ue[tn]=Ue[Yn]=Ue[Ae]=Ue[_e]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=Ue[iu]=Ue[bt]=Ue[Yr]=Ue[ar]=Ue[yr]=Ue[Pt]=Ue[Jr]=Ue[Qr]=Ue[ou]=Ue[su]=Ue[au]=Ue[uu]=!0,Ue[oe]=Ue[ct]=Ue[en]=!1;var ew={À:"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"},tw={"&":"&","<":"<",">":">",'"':""","'":"'"},rw={"&":"&","<":"<",">":">",""":'"',"'":"'"},nw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iw=parseFloat,ow=parseInt,fd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,sw=typeof self=="object"&&self&&self.Object===Object&&self,pt=fd||sw||Function("return this")(),mu=t&&!t.nodeType&&t,On=mu&&!0&&e&&!e.nodeType&&e,dd=On&&On.exports===mu,vu=dd&&fd.process,Xt=(function(){try{var j=On&&On.require&&On.require("util").types;return j||vu&&vu.binding&&vu.binding("util")}catch{}})(),pd=Xt&&Xt.isArrayBuffer,hd=Xt&&Xt.isDate,gd=Xt&&Xt.isMap,md=Xt&&Xt.isRegExp,vd=Xt&&Xt.isSet,yd=Xt&&Xt.isTypedArray;function Dt(j,K,H){switch(H.length){case 0:return j.call(K);case 1:return j.call(K,H[0]);case 2:return j.call(K,H[0],H[1]);case 3:return j.call(K,H[0],H[1],H[2])}return j.apply(K,H)}function aw(j,K,H,ae){for(var be=-1,$e=j==null?0:j.length;++be<$e;){var ut=j[be];K(ae,ut,H(ut),j)}return ae}function Nt(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae&&K(j[H],H,j)!==!1;);return j}function uw(j,K){for(var H=j==null?0:j.length;H--&&K(j[H],H,j)!==!1;);return j}function bd(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(!K(j[H],H,j))return!1;return!0}function rn(j,K){for(var H=-1,ae=j==null?0:j.length,be=0,$e=[];++H<ae;){var ut=j[H];K(ut,H,j)&&($e[be++]=ut)}return $e}function rs(j,K){var H=j==null?0:j.length;return!!H&&Qn(j,K,0)>-1}function yu(j,K,H){for(var ae=-1,be=j==null?0:j.length;++ae<be;)if(H(K,j[ae]))return!0;return!1}function Ze(j,K){for(var H=-1,ae=j==null?0:j.length,be=Array(ae);++H<ae;)be[H]=K(j[H],H,j);return be}function nn(j,K){for(var H=-1,ae=K.length,be=j.length;++H<ae;)j[be+H]=K[H];return j}function bu(j,K,H,ae){var be=-1,$e=j==null?0:j.length;for(ae&&$e&&(H=j[++be]);++be<$e;)H=K(H,j[be],be,j);return H}function lw(j,K,H,ae){var be=j==null?0:j.length;for(ae&&be&&(H=j[--be]);be--;)H=K(H,j[be],be,j);return H}function wu(j,K){for(var H=-1,ae=j==null?0:j.length;++H<ae;)if(K(j[H],H,j))return!0;return!1}var cw=xu("length");function fw(j){return j.split("")}function dw(j){return j.match(xb)||[]}function wd(j,K,H){var ae;return H(j,function(be,$e,ut){if(K(be,$e,ut))return ae=$e,!1}),ae}function ns(j,K,H,ae){for(var be=j.length,$e=H+(ae?1:-1);ae?$e--:++$e<be;)if(K(j[$e],$e,j))return $e;return-1}function Qn(j,K,H){return K===K?_w(j,K,H):ns(j,xd,H)}function pw(j,K,H,ae){for(var be=H-1,$e=j.length;++be<$e;)if(ae(j[be],K))return be;return-1}function xd(j){return j!==j}function Sd(j,K){var H=j==null?0:j.length;return H?Eu(j,K)/H:te}function xu(j){return function(K){return K==null?r:K[j]}}function Su(j){return function(K){return j==null?r:j[K]}}function Ed(j,K,H,ae,be){return be(j,function($e,ut,We){H=ae?(ae=!1,$e):K(H,$e,ut,We)}),H}function hw(j,K){var H=j.length;for(j.sort(K);H--;)j[H]=j[H].value;return j}function Eu(j,K){for(var H,ae=-1,be=j.length;++ae<be;){var $e=K(j[ae]);$e!==r&&(H=H===r?$e:H+$e)}return H}function _u(j,K){for(var H=-1,ae=Array(j);++H<j;)ae[H]=K(H);return ae}function gw(j,K){return Ze(K,function(H){return[H,j[H]]})}function _d(j){return j&&j.slice(0,Rd(j)+1).replace(cu,"")}function jt(j){return function(K){return j(K)}}function Ou(j,K){return Ze(K,function(H){return j[H]})}function ki(j,K){return j.has(K)}function Od(j,K){for(var H=-1,ae=j.length;++H<ae&&Qn(K,j[H],0)>-1;);return H}function Ad(j,K){for(var H=j.length;H--&&Qn(K,j[H],0)>-1;);return H}function mw(j,K){for(var H=j.length,ae=0;H--;)j[H]===K&&++ae;return ae}var vw=Su(ew),yw=Su(tw);function bw(j){return"\\"+nw[j]}function ww(j,K){return j==null?r:j[K]}function ei(j){return Xb.test(j)}function xw(j){return Yb.test(j)}function Sw(j){for(var K,H=[];!(K=j.next()).done;)H.push(K.value);return H}function Au(j){var K=-1,H=Array(j.size);return j.forEach(function(ae,be){H[++K]=[be,ae]}),H}function Td(j,K){return function(H){return j(K(H))}}function on(j,K){for(var H=-1,ae=j.length,be=0,$e=[];++H<ae;){var ut=j[H];(ut===K||ut===p)&&(j[H]=p,$e[be++]=H)}return $e}function is(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=ae}),H}function Ew(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=[ae,ae]}),H}function _w(j,K,H){for(var ae=H-1,be=j.length;++ae<be;)if(j[ae]===K)return ae;return-1}function Ow(j,K,H){for(var ae=H+1;ae--;)if(j[ae]===K)return ae;return ae}function ti(j){return ei(j)?Tw(j):cw(j)}function ur(j){return ei(j)?Rw(j):fw(j)}function Rd(j){for(var K=j.length;K--&&vb.test(j.charAt(K)););return K}var Aw=Su(rw);function Tw(j){for(var K=gu.lastIndex=0;gu.test(j);)++K;return K}function Rw(j){return j.match(gu)||[]}function Pw(j){return j.match(Vb)||[]}var Cw=(function j(K){K=K==null?pt:ri.defaults(pt.Object(),K,ri.pick(pt,Jb));var H=K.Array,ae=K.Date,be=K.Error,$e=K.Function,ut=K.Math,We=K.Object,Tu=K.RegExp,kw=K.String,Yt=K.TypeError,os=H.prototype,$w=$e.prototype,ni=We.prototype,ss=K["__core-js_shared__"],as=$w.toString,Le=ni.hasOwnProperty,Iw=0,Pd=(function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),us=ni.toString,Lw=as.call(We),Mw=pt._,Fw=Tu("^"+as.call(Le).replace(lu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ls=dd?K.Buffer:r,sn=K.Symbol,cs=K.Uint8Array,Cd=ls?ls.allocUnsafe:r,fs=Td(We.getPrototypeOf,We),kd=We.create,$d=ni.propertyIsEnumerable,ds=os.splice,Id=sn?sn.isConcatSpreadable:r,$i=sn?sn.iterator:r,An=sn?sn.toStringTag:r,ps=(function(){try{var n=kn(We,"defineProperty");return n({},"",{}),n}catch{}})(),Dw=K.clearTimeout!==pt.clearTimeout&&K.clearTimeout,Nw=ae&&ae.now!==pt.Date.now&&ae.now,jw=K.setTimeout!==pt.setTimeout&&K.setTimeout,hs=ut.ceil,gs=ut.floor,Ru=We.getOwnPropertySymbols,zw=ls?ls.isBuffer:r,Ld=K.isFinite,Ww=os.join,Uw=Td(We.keys,We),lt=ut.max,wt=ut.min,Bw=ae.now,Hw=K.parseInt,Md=ut.random,qw=os.reverse,Pu=kn(K,"DataView"),Ii=kn(K,"Map"),Cu=kn(K,"Promise"),ii=kn(K,"Set"),Li=kn(K,"WeakMap"),Mi=kn(We,"create"),ms=Li&&new Li,oi={},Zw=$n(Pu),Gw=$n(Ii),Kw=$n(Cu),Vw=$n(ii),Xw=$n(Li),vs=sn?sn.prototype:r,Fi=vs?vs.valueOf:r,Fd=vs?vs.toString:r;function A(n){if(et(n)&&!Se(n)&&!(n instanceof Pe)){if(n instanceof Jt)return n;if(Le.call(n,"__wrapped__"))return Dp(n)}return new Jt(n)}var si=(function(){function n(){}return function(o){if(!Ve(o))return{};if(kd)return kd(o);n.prototype=o;var u=new n;return n.prototype=r,u}})();function ys(){}function Jt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:fb,evaluate:db,interpolate:Hf,variable:"",imports:{_:A}},A.prototype=ys.prototype,A.prototype.constructor=A,Jt.prototype=si(ys.prototype),Jt.prototype.constructor=Jt;function Pe(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function Yw(){var n=new Pe(this.__wrapped__);return n.__actions__=Ct(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ct(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ct(this.__views__),n}function Jw(){if(this.__filtered__){var n=new Pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Qw(){var n=this.__wrapped__.value(),o=this.__dir__,u=Se(n),b=o<0,_=u?n.length:0,T=fx(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=b?I:P-1,X=this.__iteratees__,ee=X.length,se=0,le=wt(z,this.__takeCount__);if(!u||!b&&_==z&&le==z)return sp(n,this.__actions__);var me=[];e:for(;z--&&se<le;){V+=o;for(var Oe=-1,pe=n[V];++Oe<ee;){var Re=X[Oe],Ce=Re.iteratee,Ut=Re.type,Tt=Ce(pe);if(Ut==Q)pe=Tt;else if(!Tt){if(Ut==k)continue e;break e}}me[se++]=pe}return me}Pe.prototype=si(ys.prototype),Pe.prototype.constructor=Pe;function Tn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var b=n[o];this.set(b[0],b[1])}}function e1(){this.__data__=Mi?Mi(null):{},this.size=0}function t1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function r1(n){var o=this.__data__;if(Mi){var u=o[n];return u===m?r:u}return Le.call(o,n)?o[n]:r}function n1(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function i1(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Mi&&o===r?m:o,this}Tn.prototype.clear=e1,Tn.prototype.delete=t1,Tn.prototype.get=r1,Tn.prototype.has=n1,Tn.prototype.set=i1;function Dr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var b=n[o];this.set(b[0],b[1])}}function o1(){this.__data__=[],this.size=0}function s1(n){var o=this.__data__,u=bs(o,n);if(u<0)return!1;var b=o.length-1;return u==b?o.pop():ds.call(o,u,1),--this.size,!0}function a1(n){var o=this.__data__,u=bs(o,n);return u<0?r:o[u][1]}function u1(n){return bs(this.__data__,n)>-1}function l1(n,o){var u=this.__data__,b=bs(u,n);return b<0?(++this.size,u.push([n,o])):u[b][1]=o,this}Dr.prototype.clear=o1,Dr.prototype.delete=s1,Dr.prototype.get=a1,Dr.prototype.has=u1,Dr.prototype.set=l1;function Nr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var b=n[o];this.set(b[0],b[1])}}function c1(){this.size=0,this.__data__={hash:new Tn,map:new(Ii||Dr),string:new Tn}}function f1(n){var o=ks(this,n).delete(n);return this.size-=o?1:0,o}function d1(n){return ks(this,n).get(n)}function p1(n){return ks(this,n).has(n)}function h1(n,o){var u=ks(this,n),b=u.size;return u.set(n,o),this.size+=u.size==b?0:1,this}Nr.prototype.clear=c1,Nr.prototype.delete=f1,Nr.prototype.get=d1,Nr.prototype.has=p1,Nr.prototype.set=h1;function Rn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Nr;++o<u;)this.add(n[o])}function g1(n){return this.__data__.set(n,m),this}function m1(n){return this.__data__.has(n)}Rn.prototype.add=Rn.prototype.push=g1,Rn.prototype.has=m1;function lr(n){var o=this.__data__=new Dr(n);this.size=o.size}function v1(){this.__data__=new Dr,this.size=0}function y1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function b1(n){return this.__data__.get(n)}function w1(n){return this.__data__.has(n)}function x1(n,o){var u=this.__data__;if(u instanceof Dr){var b=u.__data__;if(!Ii||b.length<s-1)return b.push([n,o]),this.size=++u.size,this;u=this.__data__=new Nr(b)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=v1,lr.prototype.delete=y1,lr.prototype.get=b1,lr.prototype.has=w1,lr.prototype.set=x1;function Dd(n,o){var u=Se(n),b=!u&&In(n),_=!u&&!b&&fn(n),T=!u&&!b&&!_&&ci(n),P=u||b||_||T,I=P?_u(n.length,kw):[],z=I.length;for(var V in n)(o||Le.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Wr(V,z)))&&I.push(V);return I}function Nd(n){var o=n.length;return o?n[Wu(0,o-1)]:r}function S1(n,o){return $s(Ct(n),Pn(o,0,n.length))}function E1(n){return $s(Ct(n))}function ku(n,o,u){(u!==r&&!fr(n[o],u)||u===r&&!(o in n))&&br(n,o,u)}function Di(n,o,u){var b=n[o];(!(Le.call(n,o)&&fr(b,u))||u===r&&!(o in n))&&br(n,o,u)}function bs(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function _1(n,o,u,b){return an(n,function(_,T,P){o(b,_,u(_),P)}),b}function jd(n,o){return n&&xr(o,ft(o),n)}function O1(n,o){return n&&xr(o,$t(o),n)}function br(n,o,u){o=="__proto__"&&ps?ps(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function $u(n,o){for(var u=-1,b=o.length,_=H(b),T=n==null;++u<b;)_[u]=T?r:pl(n,o[u]);return _}function Pn(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Qt(n,o,u,b,_,T){var P,I=o&g,z=o&v,V=o&x;if(u&&(P=_?u(n,b,_,T):u(n)),P!==r)return P;if(!Ve(n))return n;var X=Se(n);if(X){if(P=px(n),!I)return Ct(n,P)}else{var ee=xt(n),se=ee==ct||ee==Mr;if(fn(n))return lp(n,I);if(ee==ar||ee==fe||se&&!_){if(P=z||se?{}:Rp(n),!I)return z?rx(n,O1(P,n)):tx(n,jd(P,n))}else{if(!Ue[ee])return _?n:{};P=hx(n,ee,I)}}T||(T=new lr);var le=T.get(n);if(le)return le;T.set(n,P),nh(n)?n.forEach(function(pe){P.add(Qt(pe,o,u,pe,n,T))}):th(n)&&n.forEach(function(pe,Re){P.set(Re,Qt(pe,o,u,Re,n,T))});var me=V?z?Ju:Yu:z?$t:ft,Oe=X?r:me(n);return Nt(Oe||n,function(pe,Re){Oe&&(Re=pe,pe=n[Re]),Di(P,Re,Qt(pe,o,u,Re,n,T))}),P}function A1(n){var o=ft(n);return function(u){return zd(u,n,o)}}function zd(n,o,u){var b=u.length;if(n==null)return!b;for(n=We(n);b--;){var _=u[b],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function Wd(n,o,u){if(typeof n!="function")throw new Yt(l);return Hi(function(){n.apply(r,u)},o)}function Ni(n,o,u,b){var _=-1,T=rs,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;u&&(o=Ze(o,jt(u))),b?(T=yu,P=!1):o.length>=s&&(T=ki,P=!1,o=new Rn(o));e:for(;++_<I;){var X=n[_],ee=u==null?X:u(X);if(X=b||X!==0?X:0,P&&ee===ee){for(var se=V;se--;)if(o[se]===ee)continue e;z.push(X)}else T(o,ee,b)||z.push(X)}return z}var an=hp(wr),Ud=hp(Lu,!0);function T1(n,o){var u=!0;return an(n,function(b,_,T){return u=!!o(b,_,T),u}),u}function ws(n,o,u){for(var b=-1,_=n.length;++b<_;){var T=n[b],P=o(T);if(P!=null&&(I===r?P===P&&!Wt(P):u(P,I)))var I=P,z=T}return z}function R1(n,o,u,b){var _=n.length;for(u=Ee(u),u<0&&(u=-u>_?0:_+u),b=b===r||b>_?_:Ee(b),b<0&&(b+=_),b=u>b?0:oh(b);u<b;)n[u++]=o;return n}function Bd(n,o){var u=[];return an(n,function(b,_,T){o(b,_,T)&&u.push(b)}),u}function ht(n,o,u,b,_){var T=-1,P=n.length;for(u||(u=mx),_||(_=[]);++T<P;){var I=n[T];o>0&&u(I)?o>1?ht(I,o-1,u,b,_):nn(_,I):b||(_[_.length]=I)}return _}var Iu=gp(),Hd=gp(!0);function wr(n,o){return n&&Iu(n,o,ft)}function Lu(n,o){return n&&Hd(n,o,ft)}function xs(n,o){return rn(o,function(u){return Ur(n[u])})}function Cn(n,o){o=ln(o,n);for(var u=0,b=o.length;n!=null&&u<b;)n=n[cr(o[u++])];return u&&u==b?n:r}function qd(n,o,u){var b=o(n);return Se(n)?b:nn(b,u(n))}function Ot(n){return n==null?n===r?Yo:Vo:An&&An in We(n)?cx(n):Ex(n)}function Mu(n,o){return n>o}function P1(n,o){return n!=null&&Le.call(n,o)}function C1(n,o){return n!=null&&o in We(n)}function k1(n,o,u){return n>=wt(o,u)&&n<lt(o,u)}function Fu(n,o,u){for(var b=u?yu:rs,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Ze(X,jt(o))),z=wt(X.length,z),I[P]=!u&&(o||_>=120&&X.length>=120)?new Rn(P&&X):r}X=n[0];var ee=-1,se=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],me=o?o(le):le;if(le=u||le!==0?le:0,!(se?ki(se,me):b(V,me,u))){for(P=T;--P;){var Oe=I[P];if(!(Oe?ki(Oe,me):b(n[P],me,u)))continue e}se&&se.push(me),V.push(le)}}return V}function $1(n,o,u,b){return wr(n,function(_,T,P){o(b,u(_),T,P)}),b}function ji(n,o,u){o=ln(o,n),n=$p(n,o);var b=n==null?n:n[cr(tr(o))];return b==null?r:Dt(b,n,u)}function Zd(n){return et(n)&&Ot(n)==fe}function I1(n){return et(n)&&Ot(n)==tn}function L1(n){return et(n)&&Ot(n)==_e}function zi(n,o,u,b,_){return n===o?!0:n==null||o==null||!et(n)&&!et(o)?n!==n&&o!==o:M1(n,o,u,b,zi,_)}function M1(n,o,u,b,_,T){var P=Se(n),I=Se(o),z=P?ve:xt(n),V=I?ve:xt(o);z=z==fe?ar:z,V=V==fe?ar:V;var X=z==ar,ee=V==ar,se=z==V;if(se&&fn(n)){if(!fn(o))return!1;P=!0,X=!1}if(se&&!X)return T||(T=new lr),P||ci(n)?Op(n,o,u,b,_,T):ux(n,o,z,u,b,_,T);if(!(u&d)){var le=X&&Le.call(n,"__wrapped__"),me=ee&&Le.call(o,"__wrapped__");if(le||me){var Oe=le?n.value():n,pe=me?o.value():o;return T||(T=new lr),_(Oe,pe,u,b,T)}}return se?(T||(T=new lr),lx(n,o,u,b,_,T)):!1}function F1(n){return et(n)&&xt(n)==bt}function Du(n,o,u,b){var _=u.length,T=_,P=!b;if(n==null)return!T;for(n=We(n);_--;){var I=u[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=u[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new lr;if(b)var se=b(V,X,z,n,o,ee);if(!(se===r?zi(X,V,d|w,b,ee):se))return!1}}return!0}function Gd(n){if(!Ve(n)||yx(n))return!1;var o=Ur(n)?Fw:Ab;return o.test($n(n))}function D1(n){return et(n)&&Ot(n)==yr}function N1(n){return et(n)&&xt(n)==Pt}function j1(n){return et(n)&&Ns(n.length)&&!!qe[Ot(n)]}function Kd(n){return typeof n=="function"?n:n==null?It:typeof n=="object"?Se(n)?Yd(n[0],n[1]):Xd(n):vh(n)}function Nu(n){if(!Bi(n))return Uw(n);var o=[];for(var u in We(n))Le.call(n,u)&&u!="constructor"&&o.push(u);return o}function z1(n){if(!Ve(n))return Sx(n);var o=Bi(n),u=[];for(var b in n)b=="constructor"&&(o||!Le.call(n,b))||u.push(b);return u}function ju(n,o){return n<o}function Vd(n,o){var u=-1,b=kt(n)?H(n.length):[];return an(n,function(_,T,P){b[++u]=o(_,T,P)}),b}function Xd(n){var o=el(n);return o.length==1&&o[0][2]?Cp(o[0][0],o[0][1]):function(u){return u===n||Du(u,n,o)}}function Yd(n,o){return rl(n)&&Pp(o)?Cp(cr(n),o):function(u){var b=pl(u,n);return b===r&&b===o?hl(u,n):zi(o,b,d|w)}}function Ss(n,o,u,b,_){n!==o&&Iu(o,function(T,P){if(_||(_=new lr),Ve(T))W1(n,o,P,u,Ss,b,_);else{var I=b?b(il(n,P),T,P+"",n,o,_):r;I===r&&(I=T),ku(n,P,I)}},$t)}function W1(n,o,u,b,_,T,P){var I=il(n,u),z=il(o,u),V=P.get(z);if(V){ku(n,u,V);return}var X=T?T(I,z,u+"",n,o,P):r,ee=X===r;if(ee){var se=Se(z),le=!se&&fn(z),me=!se&&!le&&ci(z);X=z,se||le||me?Se(I)?X=I:rt(I)?X=Ct(I):le?(ee=!1,X=lp(z,!0)):me?(ee=!1,X=cp(z,!0)):X=[]:qi(z)||In(z)?(X=I,In(I)?X=sh(I):(!Ve(I)||Ur(I))&&(X=Rp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,b,T,P),P.delete(z)),ku(n,u,X)}function Jd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Wr(o,u)?n[o]:r}function Qd(n,o,u){o.length?o=Ze(o,function(T){return Se(T)?function(P){return Cn(P,T.length===1?T[0]:T)}:T}):o=[It];var b=-1;o=Ze(o,jt(ge()));var _=Vd(n,function(T,P,I){var z=Ze(o,function(V){return V(T)});return{criteria:z,index:++b,value:T}});return hw(_,function(T,P){return ex(T,P,u)})}function U1(n,o){return ep(n,o,function(u,b){return hl(n,b)})}function ep(n,o,u){for(var b=-1,_=o.length,T={};++b<_;){var P=o[b],I=Cn(n,P);u(I,P)&&Wi(T,ln(P,n),I)}return T}function B1(n){return function(o){return Cn(o,n)}}function zu(n,o,u,b){var _=b?pw:Qn,T=-1,P=o.length,I=n;for(n===o&&(o=Ct(o)),u&&(I=Ze(n,jt(u)));++T<P;)for(var z=0,V=o[T],X=u?u(V):V;(z=_(I,X,z,b))>-1;)I!==n&&ds.call(I,z,1),ds.call(n,z,1);return n}function tp(n,o){for(var u=n?o.length:0,b=u-1;u--;){var _=o[u];if(u==b||_!==T){var T=_;Wr(_)?ds.call(n,_,1):Hu(n,_)}}return n}function Wu(n,o){return n+gs(Md()*(o-n+1))}function H1(n,o,u,b){for(var _=-1,T=lt(hs((o-n)/(u||1)),0),P=H(T);T--;)P[b?T:++_]=n,n+=u;return P}function Uu(n,o){var u="";if(!n||o<1||o>ce)return u;do o%2&&(u+=n),o=gs(o/2),o&&(n+=n);while(o);return u}function Te(n,o){return ol(kp(n,o,It),n+"")}function q1(n){return Nd(fi(n))}function Z1(n,o){var u=fi(n);return $s(u,Pn(o,0,u.length))}function Wi(n,o,u,b){if(!Ve(n))return n;o=ln(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=cr(o[_]),V=u;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=b?b(X,z,I):r,V===r&&(V=Ve(X)?X:Wr(o[_+1])?[]:{})}Di(I,z,V),I=I[z]}return n}var rp=ms?function(n,o){return ms.set(n,o),n}:It,G1=ps?function(n,o){return ps(n,"toString",{configurable:!0,enumerable:!1,value:ml(o),writable:!0})}:It;function K1(n){return $s(fi(n))}function er(n,o,u){var b=-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(_);++b<_;)T[b]=n[b+o];return T}function V1(n,o){var u;return an(n,function(b,_,T){return u=o(b,_,T),!u}),!!u}function Es(n,o,u){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ie){for(;b<_;){var T=b+_>>>1,P=n[T];P!==null&&!Wt(P)&&(u?P<=o:P<o)?b=T+1:_=T}return _}return Bu(n,o,It,u)}function Bu(n,o,u,b){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=Wt(o),V=o===r;_<T;){var X=gs((_+T)/2),ee=u(n[X]),se=ee!==r,le=ee===null,me=ee===ee,Oe=Wt(ee);if(P)var pe=b||me;else V?pe=me&&(b||se):I?pe=me&&se&&(b||!le):z?pe=me&&se&&!le&&(b||!Oe):le||Oe?pe=!1:pe=b?ee<=o:ee<o;pe?_=X+1:T=X}return wt(T,ue)}function np(n,o){for(var u=-1,b=n.length,_=0,T=[];++u<b;){var P=n[u],I=o?o(P):P;if(!u||!fr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function ip(n){return typeof n=="number"?n:Wt(n)?te:+n}function zt(n){if(typeof n=="string")return n;if(Se(n))return Ze(n,zt)+"";if(Wt(n))return Fd?Fd.call(n):"";var o=n+"";return o=="0"&&1/n==-re?"-0":o}function un(n,o,u){var b=-1,_=rs,T=n.length,P=!0,I=[],z=I;if(u)P=!1,_=yu;else if(T>=s){var V=o?null:sx(n);if(V)return is(V);P=!1,_=ki,z=new Rn}else z=o?[]:I;e:for(;++b<T;){var X=n[b],ee=o?o(X):X;if(X=u||X!==0?X:0,P&&ee===ee){for(var se=z.length;se--;)if(z[se]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,u)||(z!==I&&z.push(ee),I.push(X))}return I}function Hu(n,o){o=ln(o,n);var u=-1,b=o.length;if(!b)return!0;for(;++u<b;){var _=cr(o[u]);if(_==="__proto__"&&!Le.call(n,"__proto__")||(_==="constructor"||_==="prototype")&&u<b-1)return!1}var T=$p(n,o);return T==null||delete T[cr(tr(o))]}function op(n,o,u,b){return Wi(n,o,u(Cn(n,o)),b)}function _s(n,o,u,b){for(var _=n.length,T=b?_:-1;(b?T--:++T<_)&&o(n[T],T,n););return u?er(n,b?0:T,b?T+1:_):er(n,b?T+1:0,b?_:T)}function sp(n,o){var u=n;return u instanceof Pe&&(u=u.value()),bu(o,function(b,_){return _.func.apply(_.thisArg,nn([b],_.args))},u)}function qu(n,o,u){var b=n.length;if(b<2)return b?un(n[0]):[];for(var _=-1,T=H(b);++_<b;)for(var P=n[_],I=-1;++I<b;)I!=_&&(T[_]=Ni(T[_]||P,n[I],o,u));return un(ht(T,1),o,u)}function ap(n,o,u){for(var b=-1,_=n.length,T=o.length,P={};++b<_;){var I=b<T?o[b]:r;u(P,n[b],I)}return P}function Zu(n){return rt(n)?n:[]}function Gu(n){return typeof n=="function"?n:It}function ln(n,o){return Se(n)?n:rl(n,o)?[n]:Fp(Me(n))}var X1=Te;function cn(n,o,u){var b=n.length;return u=u===r?b:u,!o&&u>=b?n:er(n,o,u)}var up=Dw||function(n){return pt.clearTimeout(n)};function lp(n,o){if(o)return n.slice();var u=n.length,b=Cd?Cd(u):new n.constructor(u);return n.copy(b),b}function Ku(n){var o=new n.constructor(n.byteLength);return new cs(o).set(new cs(n)),o}function Y1(n,o){var u=o?Ku(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function J1(n){var o=new n.constructor(n.source,Zf.exec(n));return o.lastIndex=n.lastIndex,o}function Q1(n){return Fi?We(Fi.call(n)):{}}function cp(n,o){var u=o?Ku(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function fp(n,o){if(n!==o){var u=n!==r,b=n===null,_=n===n,T=Wt(n),P=o!==r,I=o===null,z=o===o,V=Wt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||b&&P&&z||!u&&z||!_)return 1;if(!b&&!T&&!V&&n<o||V&&u&&_&&!b&&!T||I&&u&&_||!P&&_||!z)return-1}return 0}function ex(n,o,u){for(var b=-1,_=n.criteria,T=o.criteria,P=_.length,I=u.length;++b<P;){var z=fp(_[b],T[b]);if(z){if(b>=I)return z;var V=u[b];return z*(V=="desc"?-1:1)}}return n.index-o.index}function dp(n,o,u,b){for(var _=-1,T=n.length,P=u.length,I=-1,z=o.length,V=lt(T-P,0),X=H(z+V),ee=!b;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<T)&&(X[u[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function pp(n,o,u,b){for(var _=-1,T=n.length,P=-1,I=u.length,z=-1,V=o.length,X=lt(T-I,0),ee=H(X+V),se=!b;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(se||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Ct(n,o){var u=-1,b=n.length;for(o||(o=H(b));++u<b;)o[u]=n[u];return o}function xr(n,o,u,b){var _=!u;u||(u={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=b?b(u[I],n[I],I,u,n):r;z===r&&(z=n[I]),_?br(u,I,z):Di(u,I,z)}return u}function tx(n,o){return xr(n,tl(n),o)}function rx(n,o){return xr(n,Ap(n),o)}function Os(n,o){return function(u,b){var _=Se(u)?aw:_1,T=o?o():{};return _(u,n,ge(b,2),T)}}function ai(n){return Te(function(o,u){var b=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&At(u[0],u[1],P)&&(T=_<3?r:T,_=1),o=We(o);++b<_;){var I=u[b];I&&n(o,I,b,T)}return o})}function hp(n,o){return function(u,b){if(u==null)return u;if(!kt(u))return n(u,b);for(var _=u.length,T=o?_:-1,P=We(u);(o?T--:++T<_)&&b(P[T],T,P)!==!1;);return u}}function gp(n){return function(o,u,b){for(var _=-1,T=We(o),P=b(o),I=P.length;I--;){var z=P[n?I:++_];if(u(T[z],z,T)===!1)break}return o}}function nx(n,o,u){var b=o&h,_=Ui(n);function T(){var P=this&&this!==pt&&this instanceof T?_:n;return P.apply(b?u:this,arguments)}return T}function mp(n){return function(o){o=Me(o);var u=ei(o)?ur(o):r,b=u?u[0]:o.charAt(0),_=u?cn(u,1).join(""):o.slice(1);return b[n]()+_}}function ui(n){return function(o){return bu(gh(hh(o).replace(Gb,"")),n,"")}}function Ui(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=si(n.prototype),b=n.apply(u,o);return Ve(b)?b:u}}function ix(n,o,u){var b=Ui(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=li(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:on(P,z);if(T-=V.length,T<u)return xp(n,o,As,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==pt&&this instanceof _?b:n;return Dt(X,this,P)}return _}function vp(n){return function(o,u,b){var _=We(o);if(!kt(o)){var T=ge(u,3);o=ft(o),u=function(I){return T(_[I],I,_)}}var P=n(o,u,b);return P>-1?_[T?o[P]:P]:r}}function yp(n){return zr(function(o){var u=o.length,b=u,_=Jt.prototype.thru;for(n&&o.reverse();b--;){var T=o[b];if(typeof T!="function")throw new Yt(l);if(_&&!P&&Cs(T)=="wrapper")var P=new Jt([],!0)}for(b=P?b:u;++b<u;){T=o[b];var I=Cs(T),z=I=="wrapper"?Qu(T):r;z&&nl(z[0])&&z[1]==(M|R|C|D)&&!z[4].length&&z[9]==1?P=P[Cs(z[0])].apply(P,z[3]):P=T.length==1&&nl(T)?P[I]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&Se(X))return P.plant(X).value();for(var ee=0,se=u?o[ee].apply(this,V):X;++ee<u;)se=o[ee].call(this,se);return se}})}function As(n,o,u,b,_,T,P,I,z,V){var X=o&M,ee=o&h,se=o&S,le=o&(R|O),me=o&q,Oe=se?r:Ui(n);function pe(){for(var Re=arguments.length,Ce=H(Re),Ut=Re;Ut--;)Ce[Ut]=arguments[Ut];if(le)var Tt=li(pe),Bt=mw(Ce,Tt);if(b&&(Ce=dp(Ce,b,_,le)),T&&(Ce=pp(Ce,T,P,le)),Re-=Bt,le&&Re<V){var nt=on(Ce,Tt);return xp(n,o,As,pe.placeholder,u,Ce,nt,I,z,V-Re)}var dr=ee?u:this,Hr=se?dr[n]:n;return Re=Ce.length,I?Ce=_x(Ce,I):me&&Re>1&&Ce.reverse(),X&&z<Re&&(Ce.length=z),this&&this!==pt&&this instanceof pe&&(Hr=Oe||Ui(Hr)),Hr.apply(dr,Ce)}return pe}function bp(n,o){return function(u,b){return $1(u,n,o(b),{})}}function Ts(n,o){return function(u,b){var _;if(u===r&&b===r)return o;if(u!==r&&(_=u),b!==r){if(_===r)return b;typeof u=="string"||typeof b=="string"?(u=zt(u),b=zt(b)):(u=ip(u),b=ip(b)),_=n(u,b)}return _}}function Vu(n){return zr(function(o){return o=Ze(o,jt(ge())),Te(function(u){var b=this;return n(o,function(_){return Dt(_,b,u)})})})}function Rs(n,o){o=o===r?" ":zt(o);var u=o.length;if(u<2)return u?Uu(o,n):o;var b=Uu(o,hs(n/ti(o)));return ei(o)?cn(ur(b),0,n).join(""):b.slice(0,n)}function ox(n,o,u,b){var _=o&h,T=Ui(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=b.length,ee=H(X+z),se=this&&this!==pt&&this instanceof P?T:n;++V<X;)ee[V]=b[V];for(;z--;)ee[V++]=arguments[++I];return Dt(se,_?u:this,ee)}return P}function wp(n){return function(o,u,b){return b&&typeof b!="number"&&At(o,u,b)&&(u=b=r),o=Br(o),u===r?(u=o,o=0):u=Br(u),b=b===r?o<u?1:-1:Br(b),H1(o,u,b,n)}}function Ps(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=rr(o),u=rr(u)),n(o,u)}}function xp(n,o,u,b,_,T,P,I,z,V){var X=o&R,ee=X?P:r,se=X?r:P,le=X?T:r,me=X?r:T;o|=X?C:U,o&=~(X?U:C),o&E||(o&=-4);var Oe=[n,o,_,le,ee,me,se,I,z,V],pe=u.apply(r,Oe);return nl(n)&&Ip(pe,Oe),pe.placeholder=b,Lp(pe,n,o)}function Xu(n){var o=ut[n];return function(u,b){if(u=rr(u),b=b==null?0:wt(Ee(b),292),b&&Ld(u)){var _=(Me(u)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+b));return _=(Me(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(u)}}var sx=ii&&1/is(new ii([,-0]))[1]==re?function(n){return new ii(n)}:bl;function Sp(n){return function(o){var u=xt(o);return u==bt?Au(o):u==Pt?Ew(o):gw(o,n(o))}}function jr(n,o,u,b,_,T,P,I){var z=o&S;if(!z&&typeof n!="function")throw new Yt(l);var V=b?b.length:0;if(V||(o&=-97,b=_=r),P=P===r?P:lt(Ee(P),0),I=I===r?I:Ee(I),V-=_?_.length:0,o&U){var X=b,ee=_;b=_=r}var se=z?r:Qu(n),le=[n,o,u,b,_,X,ee,T,P,I];if(se&&xx(le,se),n=le[0],o=le[1],u=le[2],b=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:lt(le[9]-V,0),!I&&o&(R|O)&&(o&=-25),!o||o==h)var me=nx(n,o,u);else o==R||o==O?me=ix(n,o,I):(o==C||o==(h|C))&&!_.length?me=ox(n,o,u,b):me=As.apply(r,le);var Oe=se?rp:Ip;return Lp(Oe(me,le),n,o)}function Ep(n,o,u,b){return n===r||fr(n,ni[u])&&!Le.call(b,u)?o:n}function _p(n,o,u,b,_,T){return Ve(n)&&Ve(o)&&(T.set(o,n),Ss(n,o,r,_p,T),T.delete(o)),n}function ax(n){return qi(n)?r:n}function Op(n,o,u,b,_,T){var P=u&d,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),X=T.get(o);if(V&&X)return V==o&&X==n;var ee=-1,se=!0,le=u&w?new Rn:r;for(T.set(n,o),T.set(o,n);++ee<I;){var me=n[ee],Oe=o[ee];if(b)var pe=P?b(Oe,me,ee,o,n,T):b(me,Oe,ee,n,o,T);if(pe!==r){if(pe)continue;se=!1;break}if(le){if(!wu(o,function(Re,Ce){if(!ki(le,Ce)&&(me===Re||_(me,Re,u,b,T)))return le.push(Ce)})){se=!1;break}}else if(!(me===Oe||_(me,Oe,u,b,T))){se=!1;break}}return T.delete(n),T.delete(o),se}function ux(n,o,u,b,_,T,P){switch(u){case Yn:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case tn:return!(n.byteLength!=o.byteLength||!T(new cs(n),new cs(o)));case Ae:case _e:case Yr:return fr(+n,+o);case oe:return n.name==o.name&&n.message==o.message;case yr:case Jr:return n==o+"";case bt:var I=Au;case Pt:var z=b&d;if(I||(I=is),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;b|=w,P.set(n,o);var X=Op(I(n),I(o),b,_,T,P);return P.delete(n),X;case Qr:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function lx(n,o,u,b,_,T){var P=u&d,I=Yu(n),z=I.length,V=Yu(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var se=I[ee];if(!(P?se in o:Le.call(o,se)))return!1}var le=T.get(n),me=T.get(o);if(le&&me)return le==o&&me==n;var Oe=!0;T.set(n,o),T.set(o,n);for(var pe=P;++ee<z;){se=I[ee];var Re=n[se],Ce=o[se];if(b)var Ut=P?b(Ce,Re,se,o,n,T):b(Re,Ce,se,n,o,T);if(!(Ut===r?Re===Ce||_(Re,Ce,u,b,T):Ut)){Oe=!1;break}pe||(pe=se=="constructor")}if(Oe&&!pe){var Tt=n.constructor,Bt=o.constructor;Tt!=Bt&&"constructor"in n&&"constructor"in o&&!(typeof Tt=="function"&&Tt instanceof Tt&&typeof Bt=="function"&&Bt instanceof Bt)&&(Oe=!1)}return T.delete(n),T.delete(o),Oe}function zr(n){return ol(kp(n,r,zp),n+"")}function Yu(n){return qd(n,ft,tl)}function Ju(n){return qd(n,$t,Ap)}var Qu=ms?function(n){return ms.get(n)}:bl;function Cs(n){for(var o=n.name+"",u=oi[o],b=Le.call(oi,o)?u.length:0;b--;){var _=u[b],T=_.func;if(T==null||T==n)return _.name}return o}function li(n){var o=Le.call(A,"placeholder")?A:n;return o.placeholder}function ge(){var n=A.iteratee||vl;return n=n===vl?Kd:n,arguments.length?n(arguments[0],arguments[1]):n}function ks(n,o){var u=n.__data__;return vx(o)?u[typeof o=="string"?"string":"hash"]:u.map}function el(n){for(var o=ft(n),u=o.length;u--;){var b=o[u],_=n[b];o[u]=[b,_,Pp(_)]}return o}function kn(n,o){var u=ww(n,o);return Gd(u)?u:r}function cx(n){var o=Le.call(n,An),u=n[An];try{n[An]=r;var b=!0}catch{}var _=us.call(n);return b&&(o?n[An]=u:delete n[An]),_}var tl=Ru?function(n){return n==null?[]:(n=We(n),rn(Ru(n),function(o){return $d.call(n,o)}))}:wl,Ap=Ru?function(n){for(var o=[];n;)nn(o,tl(n)),n=fs(n);return o}:wl,xt=Ot;(Pu&&xt(new Pu(new ArrayBuffer(1)))!=Yn||Ii&&xt(new Ii)!=bt||Cu&&xt(Cu.resolve())!=Xo||ii&&xt(new ii)!=Pt||Li&&xt(new Li)!=en)&&(xt=function(n){var o=Ot(n),u=o==ar?n.constructor:r,b=u?$n(u):"";if(b)switch(b){case Zw:return Yn;case Gw:return bt;case Kw:return Xo;case Vw:return Pt;case Xw:return en}return o});function fx(n,o,u){for(var b=-1,_=u.length;++b<_;){var T=u[b],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=wt(o,n+P);break;case"takeRight":n=lt(n,o-P);break}}return{start:n,end:o}}function dx(n){var o=n.match(bb);return o?o[1].split(wb):[]}function Tp(n,o,u){o=ln(o,n);for(var b=-1,_=o.length,T=!1;++b<_;){var P=cr(o[b]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++b!=_?T:(_=n==null?0:n.length,!!_&&Ns(_)&&Wr(P,_)&&(Se(n)||In(n)))}function px(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Rp(n){return typeof n.constructor=="function"&&!Bi(n)?si(fs(n)):{}}function hx(n,o,u){var b=n.constructor;switch(o){case tn:return Ku(n);case Ae:case _e:return new b(+n);case Yn:return Y1(n,u);case eu:case tu:case ru:case nu:case iu:case ou:case su:case au:case uu:return cp(n,u);case bt:return new b;case Yr:case Jr:return new b(n);case yr:return J1(n);case Pt:return new b;case Qr:return Q1(n)}}function gx(n,o){var u=o.length;if(!u)return n;var b=u-1;return o[b]=(u>1?"& ":"")+o[b],o=o.join(u>2?", ":" "),n.replace(yb,`{
|
|
183
|
-
/* [wrapped with `+
|
|
184
|
-
`)}function mx(n){return Se(n)||In(n)||!!(Id&&n&&n[Id])}function Wr(n,o){var u=typeof n;return o=o??ce,!!o&&(u=="number"||u!="symbol"&&Rb.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,u){if(!Ve(u))return!1;var b=typeof o;return(b=="number"?kt(u)&&Wr(o,u.length):b=="string"&&o in u)?fr(u[o],n):!1}function rl(n,o){if(Se(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Wt(n)?!0:hb.test(n)||!pb.test(n)||o!=null&&n in We(o)}function vx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function nl(n){var o=Cs(n),u=A[o];if(typeof u!="function"||!(o in Pe.prototype))return!1;if(n===u)return!0;var b=Qu(u);return!!b&&n===b[0]}function yx(n){return!!Pd&&Pd in n}var bx=ss?Ur:xl;function Bi(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ni;return n===u}function Pp(n){return n===n&&!Ve(n)}function Cp(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in We(u))}}function wx(n){var o=Fs(n,function(b){return u.size===y&&u.clear(),b}),u=o.cache;return o}function xx(n,o){var u=n[1],b=o[1],_=u|b,T=_<(h|S|M),P=b==M&&u==R||b==M&&u==D&&n[7].length<=o[8]||b==(M|D)&&o[7].length<=o[8]&&u==R;if(!(T||P))return n;b&h&&(n[2]=o[2],_|=u&h?0:E);var I=o[3];if(I){var z=n[3];n[3]=z?dp(z,I,o[4]):I,n[4]=z?on(n[3],p):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?pp(z,I,o[6]):I,n[6]=z?on(n[5],p):o[6]),I=o[7],I&&(n[7]=I),b&M&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function Sx(n){var o=[];if(n!=null)for(var u in We(n))o.push(u);return o}function Ex(n){return us.call(n)}function kp(n,o,u){return o=lt(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,T=lt(b.length-o,0),P=H(T);++_<T;)P[_]=b[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=b[_];return I[o]=u(P),Dt(n,this,I)}}function $p(n,o){return o.length<2?n:Cn(n,er(o,0,-1))}function _x(n,o){for(var u=n.length,b=wt(o.length,u),_=Ct(n);b--;){var T=o[b];n[b]=Wr(T,u)?_[T]:r}return n}function il(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Ip=Mp(rp),Hi=jw||function(n,o){return pt.setTimeout(n,o)},ol=Mp(G1);function Lp(n,o,u){var b=o+"";return ol(n,gx(b,Ox(dx(b),u)))}function Mp(n){var o=0,u=0;return function(){var b=Bw(),_=Z-(b-u);if(u=b,_>0){if(++o>=B)return arguments[0]}else o=0;return n.apply(r,arguments)}}function $s(n,o){var u=-1,b=n.length,_=b-1;for(o=o===r?b:o;++u<o;){var T=Wu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var Fp=wx(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(gb,function(u,b,_,T){o.push(_?T.replace(Sb,"$1"):b||u)}),o});function cr(n){if(typeof n=="string"||Wt(n))return n;var o=n+"";return o=="0"&&1/n==-re?"-0":o}function $n(n){if(n!=null){try{return as.call(n)}catch{}try{return n+""}catch{}}return""}function Ox(n,o){return Nt(he,function(u){var b="_."+u[0];o&u[1]&&!rs(n,b)&&n.push(b)}),n.sort()}function Dp(n){if(n instanceof Pe)return n.clone();var o=new Jt(n.__wrapped__,n.__chain__);return o.__actions__=Ct(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Ax(n,o,u){(u?At(n,o,u):o===r)?o=1:o=lt(Ee(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,T=0,P=H(hs(b/o));_<b;)P[T++]=er(n,_,_+=o);return P}function Tx(n){for(var o=-1,u=n==null?0:n.length,b=0,_=[];++o<u;){var T=n[o];T&&(_[b++]=T)}return _}function Rx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),u=arguments[0],b=n;b--;)o[b-1]=arguments[b];return nn(Se(u)?Ct(u):[u],ht(o,1))}var Px=Te(function(n,o){return rt(n)?Ni(n,ht(o,1,rt,!0)):[]}),Cx=Te(function(n,o){var u=tr(o);return rt(u)&&(u=r),rt(n)?Ni(n,ht(o,1,rt,!0),ge(u,2)):[]}),kx=Te(function(n,o){var u=tr(o);return rt(u)&&(u=r),rt(n)?Ni(n,ht(o,1,rt,!0),r,u):[]});function $x(n,o,u){var b=n==null?0:n.length;return b?(o=u||o===r?1:Ee(o),er(n,o<0?0:o,b)):[]}function Ix(n,o,u){var b=n==null?0:n.length;return b?(o=u||o===r?1:Ee(o),o=b-o,er(n,0,o<0?0:o)):[]}function Lx(n,o){return n&&n.length?_s(n,ge(o,3),!0,!0):[]}function Mx(n,o){return n&&n.length?_s(n,ge(o,3),!0):[]}function Fx(n,o,u,b){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&At(n,o,u)&&(u=0,b=_),R1(n,o,u,b)):[]}function Np(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=u==null?0:Ee(u);return _<0&&(_=lt(b+_,0)),ns(n,ge(o,3),_)}function jp(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return u!==r&&(_=Ee(u),_=u<0?lt(b+_,0):wt(_,b-1)),ns(n,ge(o,3),_,!0)}function zp(n){var o=n==null?0:n.length;return o?ht(n,1):[]}function Dx(n){var o=n==null?0:n.length;return o?ht(n,re):[]}function Nx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:Ee(o),ht(n,o)):[]}function jx(n){for(var o=-1,u=n==null?0:n.length,b={};++o<u;){var _=n[o];br(b,_[0],_[1])}return b}function Wp(n){return n&&n.length?n[0]:r}function zx(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=u==null?0:Ee(u);return _<0&&(_=lt(b+_,0)),Qn(n,o,_)}function Wx(n){var o=n==null?0:n.length;return o?er(n,0,-1):[]}var Ux=Te(function(n){var o=Ze(n,Zu);return o.length&&o[0]===n[0]?Fu(o):[]}),Bx=Te(function(n){var o=tr(n),u=Ze(n,Zu);return o===tr(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Fu(u,ge(o,2)):[]}),Hx=Te(function(n){var o=tr(n),u=Ze(n,Zu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Fu(u,r,o):[]});function qx(n,o){return n==null?"":Ww.call(n,o)}function tr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Zx(n,o,u){var b=n==null?0:n.length;if(!b)return-1;var _=b;return u!==r&&(_=Ee(u),_=_<0?lt(b+_,0):wt(_,b-1)),o===o?Ow(n,o,_):ns(n,xd,_,!0)}function Gx(n,o){return n&&n.length?Jd(n,Ee(o)):r}var Kx=Te(Up);function Up(n,o){return n&&n.length&&o&&o.length?zu(n,o):n}function Vx(n,o,u){return n&&n.length&&o&&o.length?zu(n,o,ge(u,2)):n}function Xx(n,o,u){return n&&n.length&&o&&o.length?zu(n,o,r,u):n}var Yx=zr(function(n,o){var u=n==null?0:n.length,b=$u(n,o);return tp(n,Ze(o,function(_){return Wr(_,u)?+_:_}).sort(fp)),b});function Jx(n,o){var u=[];if(!(n&&n.length))return u;var b=-1,_=[],T=n.length;for(o=ge(o,3);++b<T;){var P=n[b];o(P,b,n)&&(u.push(P),_.push(b))}return tp(n,_),u}function sl(n){return n==null?n:qw.call(n)}function Qx(n,o,u){var b=n==null?0:n.length;return b?(u&&typeof u!="number"&&At(n,o,u)?(o=0,u=b):(o=o==null?0:Ee(o),u=u===r?b:Ee(u)),er(n,o,u)):[]}function eS(n,o){return Es(n,o)}function tS(n,o,u){return Bu(n,o,ge(u,2))}function rS(n,o){var u=n==null?0:n.length;if(u){var b=Es(n,o);if(b<u&&fr(n[b],o))return b}return-1}function nS(n,o){return Es(n,o,!0)}function iS(n,o,u){return Bu(n,o,ge(u,2),!0)}function oS(n,o){var u=n==null?0:n.length;if(u){var b=Es(n,o,!0)-1;if(fr(n[b],o))return b}return-1}function sS(n){return n&&n.length?np(n):[]}function aS(n,o){return n&&n.length?np(n,ge(o,2)):[]}function uS(n){var o=n==null?0:n.length;return o?er(n,1,o):[]}function lS(n,o,u){return n&&n.length?(o=u||o===r?1:Ee(o),er(n,0,o<0?0:o)):[]}function cS(n,o,u){var b=n==null?0:n.length;return b?(o=u||o===r?1:Ee(o),o=b-o,er(n,o<0?0:o,b)):[]}function fS(n,o){return n&&n.length?_s(n,ge(o,3),!1,!0):[]}function dS(n,o){return n&&n.length?_s(n,ge(o,3)):[]}var pS=Te(function(n){return un(ht(n,1,rt,!0))}),hS=Te(function(n){var o=tr(n);return rt(o)&&(o=r),un(ht(n,1,rt,!0),ge(o,2))}),gS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,un(ht(n,1,rt,!0),r,o)});function mS(n){return n&&n.length?un(n):[]}function vS(n,o){return n&&n.length?un(n,ge(o,2)):[]}function yS(n,o){return o=typeof o=="function"?o:r,n&&n.length?un(n,r,o):[]}function al(n){if(!(n&&n.length))return[];var o=0;return n=rn(n,function(u){if(rt(u))return o=lt(u.length,o),!0}),_u(o,function(u){return Ze(n,xu(u))})}function Bp(n,o){if(!(n&&n.length))return[];var u=al(n);return o==null?u:Ze(u,function(b){return Dt(o,r,b)})}var bS=Te(function(n,o){return rt(n)?Ni(n,o):[]}),wS=Te(function(n){return qu(rn(n,rt))}),xS=Te(function(n){var o=tr(n);return rt(o)&&(o=r),qu(rn(n,rt),ge(o,2))}),SS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,qu(rn(n,rt),r,o)}),ES=Te(al);function _S(n,o){return ap(n||[],o||[],Di)}function OS(n,o){return ap(n||[],o||[],Wi)}var AS=Te(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Bp(n,u)});function Hp(n){var o=A(n);return o.__chain__=!0,o}function TS(n,o){return o(n),n}function Is(n,o){return o(n)}var RS=zr(function(n){var o=n.length,u=o?n[0]:0,b=this.__wrapped__,_=function(T){return $u(T,n)};return o>1||this.__actions__.length||!(b instanceof Pe)||!Wr(u)?this.thru(_):(b=b.slice(u,+u+(o?1:0)),b.__actions__.push({func:Is,args:[_],thisArg:r}),new Jt(b,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function PS(){return Hp(this)}function CS(){return new Jt(this.value(),this.__chain__)}function kS(){this.__values__===r&&(this.__values__=ih(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function $S(){return this}function IS(n){for(var o,u=this;u instanceof ys;){var b=Dp(u);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;u=u.__wrapped__}return _.__wrapped__=n,o}function LS(){var n=this.__wrapped__;if(n instanceof Pe){var o=n;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:Is,args:[sl],thisArg:r}),new Jt(o,this.__chain__)}return this.thru(sl)}function MS(){return sp(this.__wrapped__,this.__actions__)}var FS=Os(function(n,o,u){Le.call(n,u)?++n[u]:br(n,u,1)});function DS(n,o,u){var b=Se(n)?bd:T1;return u&&At(n,o,u)&&(o=r),b(n,ge(o,3))}function NS(n,o){var u=Se(n)?rn:Bd;return u(n,ge(o,3))}var jS=vp(Np),zS=vp(jp);function WS(n,o){return ht(Ls(n,o),1)}function US(n,o){return ht(Ls(n,o),re)}function BS(n,o,u){return u=u===r?1:Ee(u),ht(Ls(n,o),u)}function qp(n,o){var u=Se(n)?Nt:an;return u(n,ge(o,3))}function Zp(n,o){var u=Se(n)?uw:Ud;return u(n,ge(o,3))}var HS=Os(function(n,o,u){Le.call(n,u)?n[u].push(o):br(n,u,[o])});function qS(n,o,u,b){n=kt(n)?n:fi(n),u=u&&!b?Ee(u):0;var _=n.length;return u<0&&(u=lt(_+u,0)),js(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Qn(n,o,u)>-1}var ZS=Te(function(n,o,u){var b=-1,_=typeof o=="function",T=kt(n)?H(n.length):[];return an(n,function(P){T[++b]=_?Dt(o,P,u):ji(P,o,u)}),T}),GS=Os(function(n,o,u){br(n,u,o)});function Ls(n,o){var u=Se(n)?Ze:Vd;return u(n,ge(o,3))}function KS(n,o,u,b){return n==null?[]:(Se(o)||(o=o==null?[]:[o]),u=b?r:u,Se(u)||(u=u==null?[]:[u]),Qd(n,o,u))}var VS=Os(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function XS(n,o,u){var b=Se(n)?bu:Ed,_=arguments.length<3;return b(n,ge(o,4),u,_,an)}function YS(n,o,u){var b=Se(n)?lw:Ed,_=arguments.length<3;return b(n,ge(o,4),u,_,Ud)}function JS(n,o){var u=Se(n)?rn:Bd;return u(n,Ds(ge(o,3)))}function QS(n){var o=Se(n)?Nd:q1;return o(n)}function eE(n,o,u){(u?At(n,o,u):o===r)?o=1:o=Ee(o);var b=Se(n)?S1:Z1;return b(n,o)}function tE(n){var o=Se(n)?E1:K1;return o(n)}function rE(n){if(n==null)return 0;if(kt(n))return js(n)?ti(n):n.length;var o=xt(n);return o==bt||o==Pt?n.size:Nu(n).length}function nE(n,o,u){var b=Se(n)?wu:V1;return u&&At(n,o,u)&&(o=r),b(n,ge(o,3))}var iE=Te(function(n,o){if(n==null)return[];var u=o.length;return u>1&&At(n,o[0],o[1])?o=[]:u>2&&At(o[0],o[1],o[2])&&(o=[o[0]]),Qd(n,ht(o,1),[])}),Ms=Nw||function(){return pt.Date.now()};function oE(n,o){if(typeof o!="function")throw new Yt(l);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function Gp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,jr(n,M,r,r,r,r,o)}function Kp(n,o){var u;if(typeof o!="function")throw new Yt(l);return n=Ee(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var ul=Te(function(n,o,u){var b=h;if(u.length){var _=on(u,li(ul));b|=C}return jr(n,b,o,u,_)}),Vp=Te(function(n,o,u){var b=h|S;if(u.length){var _=on(u,li(Vp));b|=C}return jr(o,b,n,u,_)});function Xp(n,o,u){o=u?r:o;var b=jr(n,R,r,r,r,r,r,o);return b.placeholder=Xp.placeholder,b}function Yp(n,o,u){o=u?r:o;var b=jr(n,O,r,r,r,r,r,o);return b.placeholder=Yp.placeholder,b}function Jp(n,o,u){var b,_,T,P,I,z,V=0,X=!1,ee=!1,se=!0;if(typeof n!="function")throw new Yt(l);o=rr(o)||0,Ve(u)&&(X=!!u.leading,ee="maxWait"in u,T=ee?lt(rr(u.maxWait)||0,o):T,se="trailing"in u?!!u.trailing:se);function le(nt){var dr=b,Hr=_;return b=_=r,V=nt,P=n.apply(Hr,dr),P}function me(nt){return V=nt,I=Hi(Re,o),X?le(nt):P}function Oe(nt){var dr=nt-z,Hr=nt-V,yh=o-dr;return ee?wt(yh,T-Hr):yh}function pe(nt){var dr=nt-z,Hr=nt-V;return z===r||dr>=o||dr<0||ee&&Hr>=T}function Re(){var nt=Ms();if(pe(nt))return Ce(nt);I=Hi(Re,Oe(nt))}function Ce(nt){return I=r,se&&b?le(nt):(b=_=r,P)}function Ut(){I!==r&&up(I),V=0,b=z=_=I=r}function Tt(){return I===r?P:Ce(Ms())}function Bt(){var nt=Ms(),dr=pe(nt);if(b=arguments,_=this,z=nt,dr){if(I===r)return me(z);if(ee)return up(I),I=Hi(Re,o),le(z)}return I===r&&(I=Hi(Re,o)),P}return Bt.cancel=Ut,Bt.flush=Tt,Bt}var sE=Te(function(n,o){return Wd(n,1,o)}),aE=Te(function(n,o,u){return Wd(n,rr(o)||0,u)});function uE(n){return jr(n,q)}function Fs(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(l);var u=function(){var b=arguments,_=o?o.apply(this,b):b[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,b);return u.cache=T.set(_,P)||T,P};return u.cache=new(Fs.Cache||Nr),u}Fs.Cache=Nr;function Ds(n){if(typeof n!="function")throw new Yt(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function lE(n){return Kp(2,n)}var cE=X1(function(n,o){o=o.length==1&&Se(o[0])?Ze(o[0],jt(ge())):Ze(ht(o,1),jt(ge()));var u=o.length;return Te(function(b){for(var _=-1,T=wt(b.length,u);++_<T;)b[_]=o[_].call(this,b[_]);return Dt(n,this,b)})}),ll=Te(function(n,o){var u=on(o,li(ll));return jr(n,C,r,o,u)}),Qp=Te(function(n,o){var u=on(o,li(Qp));return jr(n,U,r,o,u)}),fE=zr(function(n,o){return jr(n,D,r,r,r,o)});function dE(n,o){if(typeof n!="function")throw new Yt(l);return o=o===r?o:Ee(o),Te(n,o)}function pE(n,o){if(typeof n!="function")throw new Yt(l);return o=o==null?0:lt(Ee(o),0),Te(function(u){var b=u[o],_=cn(u,0,o);return b&&nn(_,b),Dt(n,this,_)})}function hE(n,o,u){var b=!0,_=!0;if(typeof n!="function")throw new Yt(l);return Ve(u)&&(b="leading"in u?!!u.leading:b,_="trailing"in u?!!u.trailing:_),Jp(n,o,{leading:b,maxWait:o,trailing:_})}function gE(n){return Gp(n,1)}function mE(n,o){return ll(Gu(o),n)}function vE(){if(!arguments.length)return[];var n=arguments[0];return Se(n)?n:[n]}function yE(n){return Qt(n,x)}function bE(n,o){return o=typeof o=="function"?o:r,Qt(n,x,o)}function wE(n){return Qt(n,g|x)}function xE(n,o){return o=typeof o=="function"?o:r,Qt(n,g|x,o)}function SE(n,o){return o==null||zd(n,o,ft(o))}function fr(n,o){return n===o||n!==n&&o!==o}var EE=Ps(Mu),_E=Ps(function(n,o){return n>=o}),In=Zd((function(){return arguments})())?Zd:function(n){return et(n)&&Le.call(n,"callee")&&!$d.call(n,"callee")},Se=H.isArray,OE=pd?jt(pd):I1;function kt(n){return n!=null&&Ns(n.length)&&!Ur(n)}function rt(n){return et(n)&&kt(n)}function AE(n){return n===!0||n===!1||et(n)&&Ot(n)==Ae}var fn=zw||xl,TE=hd?jt(hd):L1;function RE(n){return et(n)&&n.nodeType===1&&!qi(n)}function PE(n){if(n==null)return!0;if(kt(n)&&(Se(n)||typeof n=="string"||typeof n.splice=="function"||fn(n)||ci(n)||In(n)))return!n.length;var o=xt(n);if(o==bt||o==Pt)return!n.size;if(Bi(n))return!Nu(n).length;for(var u in n)if(Le.call(n,u))return!1;return!0}function CE(n,o){return zi(n,o)}function kE(n,o,u){u=typeof u=="function"?u:r;var b=u?u(n,o):r;return b===r?zi(n,o,r,u):!!b}function cl(n){if(!et(n))return!1;var o=Ot(n);return o==oe||o==ot||typeof n.message=="string"&&typeof n.name=="string"&&!qi(n)}function $E(n){return typeof n=="number"&&Ld(n)}function Ur(n){if(!Ve(n))return!1;var o=Ot(n);return o==ct||o==Mr||o==xe||o==Fr}function eh(n){return typeof n=="number"&&n==Ee(n)}function Ns(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ce}function Ve(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function et(n){return n!=null&&typeof n=="object"}var th=gd?jt(gd):F1;function IE(n,o){return n===o||Du(n,o,el(o))}function LE(n,o,u){return u=typeof u=="function"?u:r,Du(n,o,el(o),u)}function ME(n){return rh(n)&&n!=+n}function FE(n){if(bx(n))throw new be(a);return Gd(n)}function DE(n){return n===null}function NE(n){return n==null}function rh(n){return typeof n=="number"||et(n)&&Ot(n)==Yr}function qi(n){if(!et(n)||Ot(n)!=ar)return!1;var o=fs(n);if(o===null)return!0;var u=Le.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&as.call(u)==Lw}var fl=md?jt(md):D1;function jE(n){return eh(n)&&n>=-ce&&n<=ce}var nh=vd?jt(vd):N1;function js(n){return typeof n=="string"||!Se(n)&&et(n)&&Ot(n)==Jr}function Wt(n){return typeof n=="symbol"||et(n)&&Ot(n)==Qr}var ci=yd?jt(yd):j1;function zE(n){return n===r}function WE(n){return et(n)&&xt(n)==en}function UE(n){return et(n)&&Ot(n)==Jo}var BE=Ps(ju),HE=Ps(function(n,o){return n<=o});function ih(n){if(!n)return[];if(kt(n))return js(n)?ur(n):Ct(n);if($i&&n[$i])return Sw(n[$i]());var o=xt(n),u=o==bt?Au:o==Pt?is:fi;return u(n)}function Br(n){if(!n)return n===0?n:0;if(n=rr(n),n===re||n===-re){var o=n<0?-1:1;return o*G}return n===n?n:0}function Ee(n){var o=Br(n),u=o%1;return o===o?u?o-u:o:0}function oh(n){return n?Pn(Ee(n),0,ne):0}function rr(n){if(typeof n=="number")return n;if(Wt(n))return te;if(Ve(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ve(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=_d(n);var u=Ob.test(n);return u||Tb.test(n)?ow(n.slice(2),u?2:8):_b.test(n)?te:+n}function sh(n){return xr(n,$t(n))}function qE(n){return n?Pn(Ee(n),-ce,ce):n===0?n:0}function Me(n){return n==null?"":zt(n)}var ZE=ai(function(n,o){if(Bi(o)||kt(o)){xr(o,ft(o),n);return}for(var u in o)Le.call(o,u)&&Di(n,u,o[u])}),ah=ai(function(n,o){xr(o,$t(o),n)}),uh=ai(function(n,o,u,b){xr(o,$t(o),n,b)}),dl=ai(function(n,o,u,b){xr(o,ft(o),n,b)}),GE=zr($u);function KE(n,o){var u=si(n);return o==null?u:jd(u,o)}var VE=Te(function(n,o){n=We(n);var u=-1,b=o.length,_=b>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(b=1);++u<b;)for(var T=o[u],P=$t(T),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||fr(X,ni[V])&&!Le.call(n,V))&&(n[V]=T[V])}return n}),XE=Te(function(n){return n.push(r,_p),Dt(lh,r,n)});function YE(n,o){return wd(n,ge(o,3),wr)}function JE(n,o){return wd(n,ge(o,3),Lu)}function QE(n,o){return n==null?n:Iu(n,ge(o,3),$t)}function e_(n,o){return n==null?n:Hd(n,ge(o,3),$t)}function t_(n,o){return n&&wr(n,ge(o,3))}function r_(n,o){return n&&Lu(n,ge(o,3))}function n_(n){return n==null?[]:xs(n,ft(n))}function i_(n){return n==null?[]:xs(n,$t(n))}function pl(n,o,u){var b=n==null?r:Cn(n,o);return b===r?u:b}function o_(n,o){return n!=null&&Tp(n,o,P1)}function hl(n,o){return n!=null&&Tp(n,o,C1)}var s_=bp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),n[o]=u},ml(It)),a_=bp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),Le.call(n,o)?n[o].push(u):n[o]=[u]},ge),u_=Te(ji);function ft(n){return kt(n)?Dd(n):Nu(n)}function $t(n){return kt(n)?Dd(n,!0):z1(n)}function l_(n,o){var u={};return o=ge(o,3),wr(n,function(b,_,T){br(u,o(b,_,T),b)}),u}function c_(n,o){var u={};return o=ge(o,3),wr(n,function(b,_,T){br(u,_,o(b,_,T))}),u}var f_=ai(function(n,o,u){Ss(n,o,u)}),lh=ai(function(n,o,u,b){Ss(n,o,u,b)}),d_=zr(function(n,o){var u={};if(n==null)return u;var b=!1;o=Ze(o,function(T){return T=ln(T,n),b||(b=T.length>1),T}),xr(n,Ju(n),u),b&&(u=Qt(u,g|v|x,ax));for(var _=o.length;_--;)Hu(u,o[_]);return u});function p_(n,o){return ch(n,Ds(ge(o)))}var h_=zr(function(n,o){return n==null?{}:U1(n,o)});function ch(n,o){if(n==null)return{};var u=Ze(Ju(n),function(b){return[b]});return o=ge(o),ep(n,u,function(b,_){return o(b,_[0])})}function g_(n,o,u){o=ln(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var T=n==null?r:n[cr(o[b])];T===r&&(b=_,T=u),n=Ur(T)?T.call(n):T}return n}function m_(n,o,u){return n==null?n:Wi(n,o,u)}function v_(n,o,u,b){return b=typeof b=="function"?b:r,n==null?n:Wi(n,o,u,b)}var fh=Sp(ft),dh=Sp($t);function y_(n,o,u){var b=Se(n),_=b||fn(n)||ci(n);if(o=ge(o,4),u==null){var T=n&&n.constructor;_?u=b?new T:[]:Ve(n)?u=Ur(T)?si(fs(n)):{}:u={}}return(_?Nt:wr)(n,function(P,I,z){return o(u,P,I,z)}),u}function b_(n,o){return n==null?!0:Hu(n,o)}function w_(n,o,u){return n==null?n:op(n,o,Gu(u))}function x_(n,o,u,b){return b=typeof b=="function"?b:r,n==null?n:op(n,o,Gu(u),b)}function fi(n){return n==null?[]:Ou(n,ft(n))}function S_(n){return n==null?[]:Ou(n,$t(n))}function E_(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=rr(u),u=u===u?u:0),o!==r&&(o=rr(o),o=o===o?o:0),Pn(rr(n),o,u)}function __(n,o,u){return o=Br(o),u===r?(u=o,o=0):u=Br(u),n=rr(n),k1(n,o,u)}function O_(n,o,u){if(u&&typeof u!="boolean"&&At(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=Br(n),o===r?(o=n,n=0):o=Br(o)),n>o){var b=n;n=o,o=b}if(u||n%1||o%1){var _=Md();return wt(n+_*(o-n+iw("1e-"+((_+"").length-1))),o)}return Wu(n,o)}var A_=ui(function(n,o,u){return o=o.toLowerCase(),n+(u?ph(o):o)});function ph(n){return gl(Me(n).toLowerCase())}function hh(n){return n=Me(n),n&&n.replace(Pb,vw).replace(Kb,"")}function T_(n,o,u){n=Me(n),o=zt(o);var b=n.length;u=u===r?b:Pn(Ee(u),0,b);var _=u;return u-=o.length,u>=0&&n.slice(u,_)==o}function R_(n){return n=Me(n),n&&cb.test(n)?n.replace(Bf,yw):n}function P_(n){return n=Me(n),n&&mb.test(n)?n.replace(lu,"\\$&"):n}var C_=ui(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),k_=ui(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),$_=mp("toLowerCase");function I_(n,o,u){n=Me(n),o=Ee(o);var b=o?ti(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Rs(gs(_),u)+n+Rs(hs(_),u)}function L_(n,o,u){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?n+Rs(o-b,u):n}function M_(n,o,u){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?Rs(o-b,u)+n:n}function F_(n,o,u){return u||o==null?o=0:o&&(o=+o),Hw(Me(n).replace(cu,""),o||0)}function D_(n,o,u){return(u?At(n,o,u):o===r)?o=1:o=Ee(o),Uu(Me(n),o)}function N_(){var n=arguments,o=Me(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var j_=ui(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function z_(n,o,u){return u&&typeof u!="number"&&At(n,o,u)&&(o=u=r),u=u===r?ne:u>>>0,u?(n=Me(n),n&&(typeof o=="string"||o!=null&&!fl(o))&&(o=zt(o),!o&&ei(n))?cn(ur(n),0,u):n.split(o,u)):[]}var W_=ui(function(n,o,u){return n+(u?" ":"")+gl(o)});function U_(n,o,u){return n=Me(n),u=u==null?0:Pn(Ee(u),0,n.length),o=zt(o),n.slice(u,u+o.length)==o}function B_(n,o,u){var b=A.templateSettings;u&&At(n,o,u)&&(o=r),n=Me(n),o=dl({},o,b,Ep);var _=dl({},o.imports,b.imports,Ep),T=ft(_),P=Ou(_,T);Nt(T,function(pe){if(qf.test(pe))throw new be(f)});var I,z,V=0,X=o.interpolate||Qo,ee="__p += '",se=Tu((o.escape||Qo).source+"|"+X.source+"|"+(X===Hf?Eb:Qo).source+"|"+(o.evaluate||Qo).source+"|$","g"),le="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qb+"]")+`
|
|
185
|
-
`;
|
|
186
|
-
__e(`+
|
|
187
|
-
'`),
|
|
188
|
-
`+
|
|
189
|
-
__p += '`)
|
|
190
|
-
((__t = (
|
|
191
|
-
'`),
|
|
192
|
-
`;var
|
|
193
|
-
`+
|
|
232
|
+
*/var Wz=Ys.exports,ty;function Vz(){return ty||(ty=1,(function(e,t){(function(){var r,n="4.18.1",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",f="__lodash_hash_undefined__",g=500,p="__lodash_placeholder__",h=1,b=2,S=4,v=1,y=2,m=1,w=2,x=4,O=8,_=16,R=32,H=64,I=128,$=256,U=512,j=30,M="...",D=800,F=16,P=1,K=2,ee=3,Y=1/0,ve=9007199254740991,z=17976931348623157e292,W=NaN,X=4294967295,te=X-1,J=X>>>1,oe=[["ary",I],["bind",m],["bindKey",w],["curry",O],["curryRight",_],["flip",U],["partial",R],["partialRight",H],["rearg",$]],ae="[object Arguments]",ne="[object Array]",de="[object AsyncFunction]",he="[object Boolean]",fe="[object Date]",ye="[object DOMException]",Z="[object Error]",Te="[object Function]",ge="[object GeneratorFunction]",at="[object Map]",qt="[object Number]",Dt="[object Null]",dr="[object Object]",bi="[object Promise]",Lt="[object Proxy]",Rt="[object RegExp]",zt="[object Set]",Qr="[object String]",Hr="[object Symbol]",Vn="[object Undefined]",fr="[object WeakMap]",er="[object WeakSet]",en="[object ArrayBuffer]",Un="[object DataView]",tr="[object Float32Array]",yi="[object Float64Array]",Ko="[object Int8Array]",Yi="[object Int16Array]",Xi="[object Int32Array]",Yo="[object Uint8Array]",Ji="[object Uint8ClampedArray]",Qi="[object Uint16Array]",eo="[object Uint32Array]",Pa=/\b__p \+= '';/g,wi=/\b(__p \+=) '' \+/g,Na=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ma=/&(?:amp|lt|gt|quot|#39);/g,Xo=/[&<>"']/g,Jo=RegExp(Ma.source),Qo=RegExp(Xo.source),fu=/<%-([\s\S]+?)%>/g,Da=/<%([\s\S]+?)%>/g,La=/<%=([\s\S]+?)%>/g,qn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pu=/^\w*$/,xi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gn=/[\\^$.*+?()[\]{}|]/g,es=RegExp(Gn.source),ts=/^\s+/,Fe=/\s/,xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,It=/,? & /,rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kr=/[()=,{}\[\]\/\s]/,tn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nn=/\w*$/,on=/^[-+]0x[0-9a-f]+$/i,Si=/^0b[01]+$/i,rs=/^\[object .+?Constructor\]$/,lE=/^0o[0-7]+$/i,cE=/^(?:0|[1-9]\d*)$/,uE=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,za=/($^)/,dE=/['\n\r\u2028\u2029\\]/g,$a="\\ud800-\\udfff",fE="\\u0300-\\u036f",pE="\\ufe20-\\ufe2f",hE="\\u20d0-\\u20ff",_h=fE+pE+hE,Oh="\\u2700-\\u27bf",kh="a-z\\xdf-\\xf6\\xf8-\\xff",gE="\\xac\\xb1\\xd7\\xf7",vE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mE="\\u2000-\\u206f",bE=" \\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",Ah="A-Z\\xc0-\\xd6\\xd8-\\xde",Th="\\ufe0e\\ufe0f",Rh=gE+vE+mE+bE,hu="['’]",yE="["+$a+"]",Ch="["+Rh+"]",ja="["+_h+"]",Ih="\\d+",wE="["+Oh+"]",Ph="["+kh+"]",Nh="[^"+$a+Rh+Ih+Oh+kh+Ah+"]",gu="\\ud83c[\\udffb-\\udfff]",xE="(?:"+ja+"|"+gu+")",Mh="[^"+$a+"]",vu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+Ah+"]",Dh="\\u200d",Lh="(?:"+Ph+"|"+Nh+")",SE="(?:"+to+"|"+Nh+")",zh="(?:"+hu+"(?:d|ll|m|re|s|t|ve))?",$h="(?:"+hu+"(?:D|LL|M|RE|S|T|VE))?",jh=xE+"?",Fh="["+Th+"]?",EE="(?:"+Dh+"(?:"+[Mh,vu,mu].join("|")+")"+Fh+jh+")*",_E="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hh=Fh+jh+EE,kE="(?:"+[wE,vu,mu].join("|")+")"+Hh,AE="(?:"+[Mh+ja+"?",ja,vu,mu,yE].join("|")+")",TE=RegExp(hu,"g"),RE=RegExp(ja,"g"),bu=RegExp(gu+"(?="+gu+")|"+AE+Hh,"g"),CE=RegExp([to+"?"+Ph+"+"+zh+"(?="+[Ch,to,"$"].join("|")+")",SE+"+"+$h+"(?="+[Ch,to+Lh,"$"].join("|")+")",to+"?"+Lh+"+"+zh,to+"+"+$h,OE,_E,Ih,kE].join("|"),"g"),IE=RegExp("["+Dh+$a+_h+Th+"]"),PE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NE=["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"],ME=-1,lt={};lt[tr]=lt[yi]=lt[Ko]=lt[Yi]=lt[Xi]=lt[Yo]=lt[Ji]=lt[Qi]=lt[eo]=!0,lt[ae]=lt[ne]=lt[en]=lt[he]=lt[Un]=lt[fe]=lt[Z]=lt[Te]=lt[at]=lt[qt]=lt[dr]=lt[Rt]=lt[zt]=lt[Qr]=lt[fr]=!1;var it={};it[ae]=it[ne]=it[en]=it[Un]=it[he]=it[fe]=it[tr]=it[yi]=it[Ko]=it[Yi]=it[Xi]=it[at]=it[qt]=it[dr]=it[Rt]=it[zt]=it[Qr]=it[Hr]=it[Yo]=it[Ji]=it[Qi]=it[eo]=!0,it[Z]=it[Te]=it[fr]=!1;var DE={À:"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"},LE={"&":"&","<":"<",">":">",'"':""","'":"'"},zE={"&":"&","<":"<",">":">",""":'"',"'":"'"},$E={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jE=parseFloat,FE=parseInt,Bh=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol,HE=typeof self=="object"&&self&&self.Object===Object&&self,$t=Bh||HE||Function("return this")(),yu=t&&!t.nodeType&&t,Ei=yu&&!0&&e&&!e.nodeType&&e,Wh=Ei&&Ei.exports===yu,wu=Wh&&Bh.process,Ar=(function(){try{var q=Ei&&Ei.require&&Ei.require("util").types;return q||wu&&wu.binding&&wu.binding("util")}catch{}})(),Vh=Ar&&Ar.isArrayBuffer,Uh=Ar&&Ar.isDate,qh=Ar&&Ar.isMap,Gh=Ar&&Ar.isRegExp,Zh=Ar&&Ar.isSet,Kh=Ar&&Ar.isTypedArray;function pr(q,re,Q){switch(Q.length){case 0:return q.call(re);case 1:return q.call(re,Q[0]);case 2:return q.call(re,Q[0],Q[1]);case 3:return q.call(re,Q[0],Q[1],Q[2])}return q.apply(re,Q)}function BE(q,re,Q,be){for(var Re=-1,Be=q==null?0:q.length;++Re<Be;){var Ot=q[Re];re(be,Ot,Q(Ot),q)}return be}function hr(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be&&re(q[Q],Q,q)!==!1;);return q}function WE(q,re){for(var Q=q==null?0:q.length;Q--&&re(q[Q],Q,q)!==!1;);return q}function Yh(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(!re(q[Q],Q,q))return!1;return!0}function Zn(q,re){for(var Q=-1,be=q==null?0:q.length,Re=0,Be=[];++Q<be;){var Ot=q[Q];re(Ot,Q,q)&&(Be[Re++]=Ot)}return Be}function Fa(q,re){var Q=q==null?0:q.length;return!!Q&&ro(q,re,0)>-1}function xu(q,re,Q){for(var be=-1,Re=q==null?0:q.length;++be<Re;)if(Q(re,q[be]))return!0;return!1}function ut(q,re){for(var Q=-1,be=q==null?0:q.length,Re=Array(be);++Q<be;)Re[Q]=re(q[Q],Q,q);return Re}function Kn(q,re){for(var Q=-1,be=re.length,Re=q.length;++Q<be;)q[Re+Q]=re[Q];return q}function Su(q,re,Q,be){var Re=-1,Be=q==null?0:q.length;for(be&&Be&&(Q=q[++Re]);++Re<Be;)Q=re(Q,q[Re],Re,q);return Q}function VE(q,re,Q,be){var Re=q==null?0:q.length;for(be&&Re&&(Q=q[--Re]);Re--;)Q=re(Q,q[Re],Re,q);return Q}function Eu(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(re(q[Q],Q,q))return!0;return!1}var UE=_u("length");function qE(q){return q.split("")}function GE(q){return q.match(rr)||[]}function Xh(q,re,Q){var be;return Q(q,function(Re,Be,Ot){if(re(Re,Be,Ot))return be=Be,!1}),be}function Ha(q,re,Q,be){for(var Re=q.length,Be=Q+(be?1:-1);be?Be--:++Be<Re;)if(re(q[Be],Be,q))return Be;return-1}function ro(q,re,Q){return re===re?o_(q,re,Q):Ha(q,Jh,Q)}function ZE(q,re,Q,be){for(var Re=Q-1,Be=q.length;++Re<Be;)if(be(q[Re],re))return Re;return-1}function Jh(q){return q!==q}function Qh(q,re){var Q=q==null?0:q.length;return Q?ku(q,re)/Q:W}function _u(q){return function(re){return re==null?r:re[q]}}function Ou(q){return function(re){return q==null?r:q[re]}}function eg(q,re,Q,be,Re){return Re(q,function(Be,Ot,nt){Q=be?(be=!1,Be):re(Q,Be,Ot,nt)}),Q}function KE(q,re){var Q=q.length;for(q.sort(re);Q--;)q[Q]=q[Q].value;return q}function ku(q,re){for(var Q,be=-1,Re=q.length;++be<Re;){var Be=re(q[be]);Be!==r&&(Q=Q===r?Be:Q+Be)}return Q}function Au(q,re){for(var Q=-1,be=Array(q);++Q<q;)be[Q]=re(Q);return be}function YE(q,re){return ut(re,function(Q){return[Q,q[Q]]})}function tg(q){return q&&q.slice(0,og(q)+1).replace(ts,"")}function gr(q){return function(re){return q(re)}}function Tu(q,re){return ut(re,function(Q){return q[Q]})}function ns(q,re){return q.has(re)}function rg(q,re){for(var Q=-1,be=q.length;++Q<be&&ro(re,q[Q],0)>-1;);return Q}function ng(q,re){for(var Q=q.length;Q--&&ro(re,q[Q],0)>-1;);return Q}function XE(q,re){for(var Q=q.length,be=0;Q--;)q[Q]===re&&++be;return be}var JE=Ou(DE),QE=Ou(LE);function e_(q){return"\\"+$E[q]}function t_(q,re){return q==null?r:q[re]}function no(q){return IE.test(q)}function r_(q){return PE.test(q)}function n_(q){for(var re,Q=[];!(re=q.next()).done;)Q.push(re.value);return Q}function Ru(q){var re=-1,Q=Array(q.size);return q.forEach(function(be,Re){Q[++re]=[Re,be]}),Q}function ig(q,re){return function(Q){return q(re(Q))}}function Yn(q,re){for(var Q=-1,be=q.length,Re=0,Be=[];++Q<be;){var Ot=q[Q];(Ot===re||Ot===p)&&(q[Q]=p,Be[Re++]=Q)}return Be}function Ba(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=be}),Q}function i_(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=[be,be]}),Q}function o_(q,re,Q){for(var be=Q-1,Re=q.length;++be<Re;)if(q[be]===re)return be;return-1}function s_(q,re,Q){for(var be=Q+1;be--;)if(q[be]===re)return be;return be}function io(q){return no(q)?l_(q):UE(q)}function Br(q){return no(q)?c_(q):qE(q)}function og(q){for(var re=q.length;re--&&Fe.test(q.charAt(re)););return re}var a_=Ou(zE);function l_(q){for(var re=bu.lastIndex=0;bu.test(q);)++re;return re}function c_(q){return q.match(bu)||[]}function u_(q){return q.match(CE)||[]}var d_=(function q(re){re=re==null?$t:oo.defaults($t.Object(),re,oo.pick($t,NE));var Q=re.Array,be=re.Date,Re=re.Error,Be=re.Function,Ot=re.Math,nt=re.Object,Cu=re.RegExp,f_=re.String,Tr=re.TypeError,Wa=Q.prototype,p_=Be.prototype,so=nt.prototype,Va=re["__core-js_shared__"],Ua=p_.toString,Ue=so.hasOwnProperty,h_=0,sg=(function(){var o=/[^.]+$/.exec(Va&&Va.keys&&Va.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),qa=so.toString,g_=Ua.call(nt),v_=$t._,m_=Cu("^"+Ua.call(Ue).replace(Gn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ga=Wh?re.Buffer:r,Xn=re.Symbol,Za=re.Uint8Array,ag=Ga?Ga.allocUnsafe:r,Ka=ig(nt.getPrototypeOf,nt),lg=nt.create,cg=so.propertyIsEnumerable,Ya=Wa.splice,ug=Xn?Xn.isConcatSpreadable:r,is=Xn?Xn.iterator:r,_i=Xn?Xn.toStringTag:r,Xa=(function(){try{var o=Ri(nt,"defineProperty");return o({},"",{}),o}catch{}})(),b_=re.clearTimeout!==$t.clearTimeout&&re.clearTimeout,y_=be&&be.now!==$t.Date.now&&be.now,w_=re.setTimeout!==$t.setTimeout&&re.setTimeout,Ja=Ot.ceil,Qa=Ot.floor,Iu=nt.getOwnPropertySymbols,x_=Ga?Ga.isBuffer:r,dg=re.isFinite,S_=Wa.join,E_=ig(nt.keys,nt),kt=Ot.max,Gt=Ot.min,__=be.now,O_=re.parseInt,fg=Ot.random,k_=Wa.reverse,Pu=Ri(re,"DataView"),os=Ri(re,"Map"),Nu=Ri(re,"Promise"),ao=Ri(re,"Set"),ss=Ri(re,"WeakMap"),as=Ri(nt,"create"),el=ss&&new ss,lo={},A_=Ci(Pu),T_=Ci(os),R_=Ci(Nu),C_=Ci(ao),I_=Ci(ss),tl=Xn?Xn.prototype:r,ls=tl?tl.valueOf:r,pg=tl?tl.toString:r;function T(o){if(vt(o)&&!Ie(o)&&!(o instanceof ze)){if(o instanceof Rr)return o;if(Ue.call(o,"__wrapped__"))return hv(o)}return new Rr(o)}var co=(function(){function o(){}return function(a){if(!pt(a))return{};if(lg)return lg(a);o.prototype=a;var d=new o;return o.prototype=r,d}})();function rl(){}function Rr(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}T.templateSettings={escape:fu,evaluate:Da,interpolate:La,variable:"",imports:{_:T}},T.prototype=rl.prototype,T.prototype.constructor=T,Rr.prototype=co(rl.prototype),Rr.prototype.constructor=Rr;function ze(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function P_(){var o=new ze(this.__wrapped__);return o.__actions__=nr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=nr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=nr(this.__views__),o}function N_(){if(this.__filtered__){var o=new ze(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function M_(){var o=this.__wrapped__.value(),a=this.__dir__,d=Ie(o),E=a<0,k=d?o.length:0,C=qO(0,k,this.__views__),L=C.start,B=C.end,G=B-L,ie=E?B:L-1,se=this.__iteratees__,ue=se.length,me=0,Se=Gt(G,this.__takeCount__);if(!d||!E&&k==G&&Se==G)return zg(o,this.__actions__);var ke=[];e:for(;G--&&me<Se;){ie+=a;for(var Ne=-1,_e=o[ie];++Ne<ue;){var Le=se[Ne],$e=Le.iteratee,br=Le.type,Jt=$e(_e);if(br==K)_e=Jt;else if(!Jt){if(br==P)continue e;break e}}ke[me++]=_e}return ke}ze.prototype=co(rl.prototype),ze.prototype.constructor=ze;function Oi(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function D_(){this.__data__=as?as(null):{},this.size=0}function L_(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function z_(o){var a=this.__data__;if(as){var d=a[o];return d===f?r:d}return Ue.call(a,o)?a[o]:r}function $_(o){var a=this.__data__;return as?a[o]!==r:Ue.call(a,o)}function j_(o,a){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=as&&a===r?f:a,this}Oi.prototype.clear=D_,Oi.prototype.delete=L_,Oi.prototype.get=z_,Oi.prototype.has=$_,Oi.prototype.set=j_;function On(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function F_(){this.__data__=[],this.size=0}function H_(o){var a=this.__data__,d=nl(a,o);if(d<0)return!1;var E=a.length-1;return d==E?a.pop():Ya.call(a,d,1),--this.size,!0}function B_(o){var a=this.__data__,d=nl(a,o);return d<0?r:a[d][1]}function W_(o){return nl(this.__data__,o)>-1}function V_(o,a){var d=this.__data__,E=nl(d,o);return E<0?(++this.size,d.push([o,a])):d[E][1]=a,this}On.prototype.clear=F_,On.prototype.delete=H_,On.prototype.get=B_,On.prototype.has=W_,On.prototype.set=V_;function kn(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function U_(){this.size=0,this.__data__={hash:new Oi,map:new(os||On),string:new Oi}}function q_(o){var a=gl(this,o).delete(o);return this.size-=a?1:0,a}function G_(o){return gl(this,o).get(o)}function Z_(o){return gl(this,o).has(o)}function K_(o,a){var d=gl(this,o),E=d.size;return d.set(o,a),this.size+=d.size==E?0:1,this}kn.prototype.clear=U_,kn.prototype.delete=q_,kn.prototype.get=G_,kn.prototype.has=Z_,kn.prototype.set=K_;function ki(o){var a=-1,d=o==null?0:o.length;for(this.__data__=new kn;++a<d;)this.add(o[a])}function Y_(o){return this.__data__.set(o,f),this}function X_(o){return this.__data__.has(o)}ki.prototype.add=ki.prototype.push=Y_,ki.prototype.has=X_;function Wr(o){var a=this.__data__=new On(o);this.size=a.size}function J_(){this.__data__=new On,this.size=0}function Q_(o){var a=this.__data__,d=a.delete(o);return this.size=a.size,d}function eO(o){return this.__data__.get(o)}function tO(o){return this.__data__.has(o)}function rO(o,a){var d=this.__data__;if(d instanceof On){var E=d.__data__;if(!os||E.length<i-1)return E.push([o,a]),this.size=++d.size,this;d=this.__data__=new kn(E)}return d.set(o,a),this.size=d.size,this}Wr.prototype.clear=J_,Wr.prototype.delete=Q_,Wr.prototype.get=eO,Wr.prototype.has=tO,Wr.prototype.set=rO;function hg(o,a){var d=Ie(o),E=!d&&Ii(o),k=!d&&!E&&ri(o),C=!d&&!E&&!k&&ho(o),L=d||E||k||C,B=L?Au(o.length,f_):[],G=B.length;for(var ie in o)(a||Ue.call(o,ie))&&!(L&&(ie=="length"||k&&(ie=="offset"||ie=="parent")||C&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Rn(ie,G)))&&B.push(ie);return B}function gg(o){var a=o.length;return a?o[Vu(0,a-1)]:r}function nO(o,a){return vl(nr(o),Ai(a,0,o.length))}function iO(o){return vl(nr(o))}function Mu(o,a,d){(d!==r&&!Ur(o[a],d)||d===r&&!(a in o))&&sn(o,a,d)}function cs(o,a,d){var E=o[a];(!(Ue.call(o,a)&&Ur(E,d))||d===r&&!(a in o))&&sn(o,a,d)}function nl(o,a){for(var d=o.length;d--;)if(Ur(o[d][0],a))return d;return-1}function oO(o,a,d,E){return Jn(o,function(k,C,L){a(E,k,d(k),L)}),E}function vg(o,a){return o&&ln(a,Pt(a),o)}function sO(o,a){return o&&ln(a,or(a),o)}function sn(o,a,d){a=="__proto__"&&Xa?Xa(o,a,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[a]=d}function Du(o,a){for(var d=-1,E=a.length,k=Q(E),C=o==null;++d<E;)k[d]=C?r:vd(o,a[d]);return k}function Ai(o,a,d){return o===o&&(d!==r&&(o=o<=d?o:d),a!==r&&(o=o>=a?o:a)),o}function Cr(o,a,d,E,k,C){var L,B=a&h,G=a&b,ie=a&S;if(d&&(L=k?d(o,E,k,C):d(o)),L!==r)return L;if(!pt(o))return o;var se=Ie(o);if(se){if(L=ZO(o),!B)return nr(o,L)}else{var ue=Zt(o),me=ue==Te||ue==ge;if(ri(o))return Fg(o,B);if(ue==dr||ue==ae||me&&!k){if(L=G||me?{}:ov(o),!B)return G?zO(o,sO(L,o)):LO(o,vg(L,o))}else{if(!it[ue])return k?o:{};L=KO(o,ue,B)}}C||(C=new Wr);var Se=C.get(o);if(Se)return Se;C.set(o,L),Mv(o)?o.forEach(function(_e){L.add(Cr(_e,a,d,_e,o,C))}):Pv(o)&&o.forEach(function(_e,Le){L.set(Le,Cr(_e,a,d,Le,o,C))});var ke=ie?G?td:ed:G?or:Pt,Ne=se?r:ke(o);return hr(Ne||o,function(_e,Le){Ne&&(Le=_e,_e=o[Le]),cs(L,Le,Cr(_e,a,d,Le,o,C))}),L}function aO(o){var a=Pt(o);return function(d){return mg(d,o,a)}}function mg(o,a,d){var E=d.length;if(o==null)return!E;for(o=nt(o);E--;){var k=d[E],C=a[k],L=o[k];if(L===r&&!(k in o)||!C(L))return!1}return!0}function bg(o,a,d){if(typeof o!="function")throw new Tr(l);return vs(function(){o.apply(r,d)},a)}function us(o,a,d,E){var k=-1,C=Fa,L=!0,B=o.length,G=[],ie=a.length;if(!B)return G;d&&(a=ut(a,gr(d))),E?(C=xu,L=!1):a.length>=i&&(C=ns,L=!1,a=new ki(a));e:for(;++k<B;){var se=o[k],ue=d==null?se:d(se);if(se=E||se!==0?se:0,L&&ue===ue){for(var me=ie;me--;)if(a[me]===ue)continue e;G.push(se)}else C(a,ue,E)||G.push(se)}return G}var Jn=Ug(an),yg=Ug(zu,!0);function lO(o,a){var d=!0;return Jn(o,function(E,k,C){return d=!!a(E,k,C),d}),d}function il(o,a,d){for(var E=-1,k=o.length;++E<k;){var C=o[E],L=a(C);if(L!=null&&(B===r?L===L&&!mr(L):d(L,B)))var B=L,G=C}return G}function cO(o,a,d,E){var k=o.length;for(d=Pe(d),d<0&&(d=-d>k?0:k+d),E=E===r||E>k?k:Pe(E),E<0&&(E+=k),E=d>E?0:Lv(E);d<E;)o[d++]=a;return o}function wg(o,a){var d=[];return Jn(o,function(E,k,C){a(E,k,C)&&d.push(E)}),d}function jt(o,a,d,E,k){var C=-1,L=o.length;for(d||(d=XO),k||(k=[]);++C<L;){var B=o[C];a>0&&d(B)?a>1?jt(B,a-1,d,E,k):Kn(k,B):E||(k[k.length]=B)}return k}var Lu=qg(),xg=qg(!0);function an(o,a){return o&&Lu(o,a,Pt)}function zu(o,a){return o&&xg(o,a,Pt)}function ol(o,a){return Zn(a,function(d){return Cn(o[d])})}function Ti(o,a){a=ei(a,o);for(var d=0,E=a.length;o!=null&&d<E;)o=o[Vr(a[d++])];return d&&d==E?o:r}function Sg(o,a,d){var E=a(o);return Ie(o)?E:Kn(E,d(o))}function Yt(o){return o==null?o===r?Vn:Dt:_i&&_i in nt(o)?UO(o):ik(o)}function $u(o,a){return o>a}function uO(o,a){return o!=null&&Ue.call(o,a)}function dO(o,a){return o!=null&&a in nt(o)}function fO(o,a,d){return o>=Gt(a,d)&&o<kt(a,d)}function ju(o,a,d){for(var E=d?xu:Fa,k=o[0].length,C=o.length,L=C,B=Q(C),G=1/0,ie=[];L--;){var se=o[L];L&&a&&(se=ut(se,gr(a))),G=Gt(se.length,G),B[L]=!d&&(a||k>=120&&se.length>=120)?new ki(L&&se):r}se=o[0];var ue=-1,me=B[0];e:for(;++ue<k&&ie.length<G;){var Se=se[ue],ke=a?a(Se):Se;if(Se=d||Se!==0?Se:0,!(me?ns(me,ke):E(ie,ke,d))){for(L=C;--L;){var Ne=B[L];if(!(Ne?ns(Ne,ke):E(o[L],ke,d)))continue e}me&&me.push(ke),ie.push(Se)}}return ie}function pO(o,a,d,E){return an(o,function(k,C,L){a(E,d(k),C,L)}),E}function ds(o,a,d){a=ei(a,o),o=cv(o,a);var E=o==null?o:o[Vr(Pr(a))];return E==null?r:pr(E,o,d)}function Eg(o){return vt(o)&&Yt(o)==ae}function hO(o){return vt(o)&&Yt(o)==en}function gO(o){return vt(o)&&Yt(o)==fe}function fs(o,a,d,E,k){return o===a?!0:o==null||a==null||!vt(o)&&!vt(a)?o!==o&&a!==a:vO(o,a,d,E,fs,k)}function vO(o,a,d,E,k,C){var L=Ie(o),B=Ie(a),G=L?ne:Zt(o),ie=B?ne:Zt(a);G=G==ae?dr:G,ie=ie==ae?dr:ie;var se=G==dr,ue=ie==dr,me=G==ie;if(me&&ri(o)){if(!ri(a))return!1;L=!0,se=!1}if(me&&!se)return C||(C=new Wr),L||ho(o)?rv(o,a,d,E,k,C):WO(o,a,G,d,E,k,C);if(!(d&v)){var Se=se&&Ue.call(o,"__wrapped__"),ke=ue&&Ue.call(a,"__wrapped__");if(Se||ke){var Ne=Se?o.value():o,_e=ke?a.value():a;return C||(C=new Wr),k(Ne,_e,d,E,C)}}return me?(C||(C=new Wr),VO(o,a,d,E,k,C)):!1}function mO(o){return vt(o)&&Zt(o)==at}function Fu(o,a,d,E){var k=d.length,C=k,L=!E;if(o==null)return!C;for(o=nt(o);k--;){var B=d[k];if(L&&B[2]?B[1]!==o[B[0]]:!(B[0]in o))return!1}for(;++k<C;){B=d[k];var G=B[0],ie=o[G],se=B[1];if(L&&B[2]){if(ie===r&&!(G in o))return!1}else{var ue=new Wr;if(E)var me=E(ie,se,G,o,a,ue);if(!(me===r?fs(se,ie,v|y,E,ue):me))return!1}}return!0}function _g(o){if(!pt(o)||QO(o))return!1;var a=Cn(o)?m_:rs;return a.test(Ci(o))}function bO(o){return vt(o)&&Yt(o)==Rt}function yO(o){return vt(o)&&Zt(o)==zt}function wO(o){return vt(o)&&Sl(o.length)&&!!lt[Yt(o)]}function Og(o){return typeof o=="function"?o:o==null?sr:typeof o=="object"?Ie(o)?Tg(o[0],o[1]):Ag(o):Zv(o)}function Hu(o){if(!gs(o))return E_(o);var a=[];for(var d in nt(o))Ue.call(o,d)&&d!="constructor"&&a.push(d);return a}function xO(o){if(!pt(o))return nk(o);var a=gs(o),d=[];for(var E in o)E=="constructor"&&(a||!Ue.call(o,E))||d.push(E);return d}function Bu(o,a){return o<a}function kg(o,a){var d=-1,E=ir(o)?Q(o.length):[];return Jn(o,function(k,C,L){E[++d]=a(k,C,L)}),E}function Ag(o){var a=nd(o);return a.length==1&&a[0][2]?av(a[0][0],a[0][1]):function(d){return d===o||Fu(d,o,a)}}function Tg(o,a){return od(o)&&sv(a)?av(Vr(o),a):function(d){var E=vd(d,o);return E===r&&E===a?md(d,o):fs(a,E,v|y)}}function sl(o,a,d,E,k){o!==a&&Lu(a,function(C,L){if(k||(k=new Wr),pt(C))SO(o,a,L,d,sl,E,k);else{var B=E?E(ad(o,L),C,L+"",o,a,k):r;B===r&&(B=C),Mu(o,L,B)}},or)}function SO(o,a,d,E,k,C,L){var B=ad(o,d),G=ad(a,d),ie=L.get(G);if(ie){Mu(o,d,ie);return}var se=C?C(B,G,d+"",o,a,L):r,ue=se===r;if(ue){var me=Ie(G),Se=!me&&ri(G),ke=!me&&!Se&&ho(G);se=G,me||Se||ke?Ie(B)?se=B:mt(B)?se=nr(B):Se?(ue=!1,se=Fg(G,!0)):ke?(ue=!1,se=Hg(G,!0)):se=[]:ms(G)||Ii(G)?(se=B,Ii(B)?se=zv(B):(!pt(B)||Cn(B))&&(se=ov(G))):ue=!1}ue&&(L.set(G,se),k(se,G,E,C,L),L.delete(G)),Mu(o,d,se)}function Rg(o,a){var d=o.length;if(d)return a+=a<0?d:0,Rn(a,d)?o[a]:r}function Cg(o,a,d){a.length?a=ut(a,function(C){return Ie(C)?function(L){return Ti(L,C.length===1?C[0]:C)}:C}):a=[sr];var E=-1;a=ut(a,gr(Oe()));var k=kg(o,function(C,L,B){var G=ut(a,function(ie){return ie(C)});return{criteria:G,index:++E,value:C}});return KE(k,function(C,L){return DO(C,L,d)})}function EO(o,a){return Ig(o,a,function(d,E){return md(o,E)})}function Ig(o,a,d){for(var E=-1,k=a.length,C={};++E<k;){var L=a[E],B=Ti(o,L);d(B,L)&&ps(C,ei(L,o),B)}return C}function _O(o){return function(a){return Ti(a,o)}}function Wu(o,a,d,E){var k=E?ZE:ro,C=-1,L=a.length,B=o;for(o===a&&(a=nr(a)),d&&(B=ut(o,gr(d)));++C<L;)for(var G=0,ie=a[C],se=d?d(ie):ie;(G=k(B,se,G,E))>-1;)B!==o&&Ya.call(B,G,1),Ya.call(o,G,1);return o}function Pg(o,a){for(var d=o?a.length:0,E=d-1;d--;){var k=a[d];if(d==E||k!==C){var C=k;Rn(k)?Ya.call(o,k,1):Gu(o,k)}}return o}function Vu(o,a){return o+Qa(fg()*(a-o+1))}function OO(o,a,d,E){for(var k=-1,C=kt(Ja((a-o)/(d||1)),0),L=Q(C);C--;)L[E?C:++k]=o,o+=d;return L}function Uu(o,a){var d="";if(!o||a<1||a>ve)return d;do a%2&&(d+=o),a=Qa(a/2),a&&(o+=o);while(a);return d}function Me(o,a){return ld(lv(o,a,sr),o+"")}function kO(o){return gg(go(o))}function AO(o,a){var d=go(o);return vl(d,Ai(a,0,d.length))}function ps(o,a,d,E){if(!pt(o))return o;a=ei(a,o);for(var k=-1,C=a.length,L=C-1,B=o;B!=null&&++k<C;){var G=Vr(a[k]),ie=d;if(G==="__proto__"||G==="constructor"||G==="prototype")return o;if(k!=L){var se=B[G];ie=E?E(se,G,B):r,ie===r&&(ie=pt(se)?se:Rn(a[k+1])?[]:{})}cs(B,G,ie),B=B[G]}return o}var Ng=el?function(o,a){return el.set(o,a),o}:sr,TO=Xa?function(o,a){return Xa(o,"toString",{configurable:!0,enumerable:!1,value:yd(a),writable:!0})}:sr;function RO(o){return vl(go(o))}function Ir(o,a,d){var E=-1,k=o.length;a<0&&(a=-a>k?0:k+a),d=d>k?k:d,d<0&&(d+=k),k=a>d?0:d-a>>>0,a>>>=0;for(var C=Q(k);++E<k;)C[E]=o[E+a];return C}function CO(o,a){var d;return Jn(o,function(E,k,C){return d=a(E,k,C),!d}),!!d}function al(o,a,d){var E=0,k=o==null?E:o.length;if(typeof a=="number"&&a===a&&k<=J){for(;E<k;){var C=E+k>>>1,L=o[C];L!==null&&!mr(L)&&(d?L<=a:L<a)?E=C+1:k=C}return k}return qu(o,a,sr,d)}function qu(o,a,d,E){var k=0,C=o==null?0:o.length;if(C===0)return 0;a=d(a);for(var L=a!==a,B=a===null,G=mr(a),ie=a===r;k<C;){var se=Qa((k+C)/2),ue=d(o[se]),me=ue!==r,Se=ue===null,ke=ue===ue,Ne=mr(ue);if(L)var _e=E||ke;else ie?_e=ke&&(E||me):B?_e=ke&&me&&(E||!Se):G?_e=ke&&me&&!Se&&(E||!Ne):Se||Ne?_e=!1:_e=E?ue<=a:ue<a;_e?k=se+1:C=se}return Gt(C,te)}function Mg(o,a){for(var d=-1,E=o.length,k=0,C=[];++d<E;){var L=o[d],B=a?a(L):L;if(!d||!Ur(B,G)){var G=B;C[k++]=L===0?0:L}}return C}function Dg(o){return typeof o=="number"?o:mr(o)?W:+o}function vr(o){if(typeof o=="string")return o;if(Ie(o))return ut(o,vr)+"";if(mr(o))return pg?pg.call(o):"";var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Qn(o,a,d){var E=-1,k=Fa,C=o.length,L=!0,B=[],G=B;if(d)L=!1,k=xu;else if(C>=i){var ie=a?null:HO(o);if(ie)return Ba(ie);L=!1,k=ns,G=new ki}else G=a?[]:B;e:for(;++E<C;){var se=o[E],ue=a?a(se):se;if(se=d||se!==0?se:0,L&&ue===ue){for(var me=G.length;me--;)if(G[me]===ue)continue e;a&&G.push(ue),B.push(se)}else k(G,ue,d)||(G!==B&&G.push(ue),B.push(se))}return B}function Gu(o,a){a=ei(a,o);var d=-1,E=a.length;if(!E)return!0;for(;++d<E;){var k=Vr(a[d]);if(k==="__proto__"&&!Ue.call(o,"__proto__")||(k==="constructor"||k==="prototype")&&d<E-1)return!1}var C=cv(o,a);return C==null||delete C[Vr(Pr(a))]}function Lg(o,a,d,E){return ps(o,a,d(Ti(o,a)),E)}function ll(o,a,d,E){for(var k=o.length,C=E?k:-1;(E?C--:++C<k)&&a(o[C],C,o););return d?Ir(o,E?0:C,E?C+1:k):Ir(o,E?C+1:0,E?k:C)}function zg(o,a){var d=o;return d instanceof ze&&(d=d.value()),Su(a,function(E,k){return k.func.apply(k.thisArg,Kn([E],k.args))},d)}function Zu(o,a,d){var E=o.length;if(E<2)return E?Qn(o[0]):[];for(var k=-1,C=Q(E);++k<E;)for(var L=o[k],B=-1;++B<E;)B!=k&&(C[k]=us(C[k]||L,o[B],a,d));return Qn(jt(C,1),a,d)}function $g(o,a,d){for(var E=-1,k=o.length,C=a.length,L={};++E<k;){var B=E<C?a[E]:r;d(L,o[E],B)}return L}function Ku(o){return mt(o)?o:[]}function Yu(o){return typeof o=="function"?o:sr}function ei(o,a){return Ie(o)?o:od(o,a)?[o]:pv(qe(o))}var IO=Me;function ti(o,a,d){var E=o.length;return d=d===r?E:d,!a&&d>=E?o:Ir(o,a,d)}var jg=b_||function(o){return $t.clearTimeout(o)};function Fg(o,a){if(a)return o.slice();var d=o.length,E=ag?ag(d):new o.constructor(d);return o.copy(E),E}function Xu(o){var a=new o.constructor(o.byteLength);return new Za(a).set(new Za(o)),a}function PO(o,a){var d=a?Xu(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function NO(o){var a=new o.constructor(o.source,nn.exec(o));return a.lastIndex=o.lastIndex,a}function MO(o){return ls?nt(ls.call(o)):{}}function Hg(o,a){var d=a?Xu(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function Bg(o,a){if(o!==a){var d=o!==r,E=o===null,k=o===o,C=mr(o),L=a!==r,B=a===null,G=a===a,ie=mr(a);if(!B&&!ie&&!C&&o>a||C&&L&&G&&!B&&!ie||E&&L&&G||!d&&G||!k)return 1;if(!E&&!C&&!ie&&o<a||ie&&d&&k&&!E&&!C||B&&d&&k||!L&&k||!G)return-1}return 0}function DO(o,a,d){for(var E=-1,k=o.criteria,C=a.criteria,L=k.length,B=d.length;++E<L;){var G=Bg(k[E],C[E]);if(G){if(E>=B)return G;var ie=d[E];return G*(ie=="desc"?-1:1)}}return o.index-a.index}function Wg(o,a,d,E){for(var k=-1,C=o.length,L=d.length,B=-1,G=a.length,ie=kt(C-L,0),se=Q(G+ie),ue=!E;++B<G;)se[B]=a[B];for(;++k<L;)(ue||k<C)&&(se[d[k]]=o[k]);for(;ie--;)se[B++]=o[k++];return se}function Vg(o,a,d,E){for(var k=-1,C=o.length,L=-1,B=d.length,G=-1,ie=a.length,se=kt(C-B,0),ue=Q(se+ie),me=!E;++k<se;)ue[k]=o[k];for(var Se=k;++G<ie;)ue[Se+G]=a[G];for(;++L<B;)(me||k<C)&&(ue[Se+d[L]]=o[k++]);return ue}function nr(o,a){var d=-1,E=o.length;for(a||(a=Q(E));++d<E;)a[d]=o[d];return a}function ln(o,a,d,E){var k=!d;d||(d={});for(var C=-1,L=a.length;++C<L;){var B=a[C],G=E?E(d[B],o[B],B,d,o):r;G===r&&(G=o[B]),k?sn(d,B,G):cs(d,B,G)}return d}function LO(o,a){return ln(o,id(o),a)}function zO(o,a){return ln(o,nv(o),a)}function cl(o,a){return function(d,E){var k=Ie(d)?BE:oO,C=a?a():{};return k(d,o,Oe(E,2),C)}}function uo(o){return Me(function(a,d){var E=-1,k=d.length,C=k>1?d[k-1]:r,L=k>2?d[2]:r;for(C=o.length>3&&typeof C=="function"?(k--,C):r,L&&Xt(d[0],d[1],L)&&(C=k<3?r:C,k=1),a=nt(a);++E<k;){var B=d[E];B&&o(a,B,E,C)}return a})}function Ug(o,a){return function(d,E){if(d==null)return d;if(!ir(d))return o(d,E);for(var k=d.length,C=a?k:-1,L=nt(d);(a?C--:++C<k)&&E(L[C],C,L)!==!1;);return d}}function qg(o){return function(a,d,E){for(var k=-1,C=nt(a),L=E(a),B=L.length;B--;){var G=L[o?B:++k];if(d(C[G],G,C)===!1)break}return a}}function $O(o,a,d){var E=a&m,k=hs(o);function C(){var L=this&&this!==$t&&this instanceof C?k:o;return L.apply(E?d:this,arguments)}return C}function Gg(o){return function(a){a=qe(a);var d=no(a)?Br(a):r,E=d?d[0]:a.charAt(0),k=d?ti(d,1).join(""):a.slice(1);return E[o]()+k}}function fo(o){return function(a){return Su(qv(Uv(a).replace(TE,"")),o,"")}}function hs(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var d=co(o.prototype),E=o.apply(d,a);return pt(E)?E:d}}function jO(o,a,d){var E=hs(o);function k(){for(var C=arguments.length,L=Q(C),B=C,G=po(k);B--;)L[B]=arguments[B];var ie=C<3&&L[0]!==G&&L[C-1]!==G?[]:Yn(L,G);if(C-=ie.length,C<d)return Jg(o,a,ul,k.placeholder,r,L,ie,r,r,d-C);var se=this&&this!==$t&&this instanceof k?E:o;return pr(se,this,L)}return k}function Zg(o){return function(a,d,E){var k=nt(a);if(!ir(a)){var C=Oe(d,3);a=Pt(a),d=function(B){return C(k[B],B,k)}}var L=o(a,d,E);return L>-1?k[C?a[L]:L]:r}}function Kg(o){return Tn(function(a){var d=a.length,E=d,k=Rr.prototype.thru;for(o&&a.reverse();E--;){var C=a[E];if(typeof C!="function")throw new Tr(l);if(k&&!L&&hl(C)=="wrapper")var L=new Rr([],!0)}for(E=L?E:d;++E<d;){C=a[E];var B=hl(C),G=B=="wrapper"?rd(C):r;G&&sd(G[0])&&G[1]==(I|O|R|$)&&!G[4].length&&G[9]==1?L=L[hl(G[0])].apply(L,G[3]):L=C.length==1&&sd(C)?L[B]():L.thru(C)}return function(){var ie=arguments,se=ie[0];if(L&&ie.length==1&&Ie(se))return L.plant(se).value();for(var ue=0,me=d?a[ue].apply(this,ie):se;++ue<d;)me=a[ue].call(this,me);return me}})}function ul(o,a,d,E,k,C,L,B,G,ie){var se=a&I,ue=a&m,me=a&w,Se=a&(O|_),ke=a&U,Ne=me?r:hs(o);function _e(){for(var Le=arguments.length,$e=Q(Le),br=Le;br--;)$e[br]=arguments[br];if(Se)var Jt=po(_e),yr=XE($e,Jt);if(E&&($e=Wg($e,E,k,Se)),C&&($e=Vg($e,C,L,Se)),Le-=yr,Se&&Le<ie){var bt=Yn($e,Jt);return Jg(o,a,ul,_e.placeholder,d,$e,bt,B,G,ie-Le)}var qr=ue?d:this,Pn=me?qr[o]:o;return Le=$e.length,B?$e=ok($e,B):ke&&Le>1&&$e.reverse(),se&&G<Le&&($e.length=G),this&&this!==$t&&this instanceof _e&&(Pn=Ne||hs(Pn)),Pn.apply(qr,$e)}return _e}function Yg(o,a){return function(d,E){return pO(d,o,a(E),{})}}function dl(o,a){return function(d,E){var k;if(d===r&&E===r)return a;if(d!==r&&(k=d),E!==r){if(k===r)return E;typeof d=="string"||typeof E=="string"?(d=vr(d),E=vr(E)):(d=Dg(d),E=Dg(E)),k=o(d,E)}return k}}function Ju(o){return Tn(function(a){return a=ut(a,gr(Oe())),Me(function(d){var E=this;return o(a,function(k){return pr(k,E,d)})})})}function fl(o,a){a=a===r?" ":vr(a);var d=a.length;if(d<2)return d?Uu(a,o):a;var E=Uu(a,Ja(o/io(a)));return no(a)?ti(Br(E),0,o).join(""):E.slice(0,o)}function FO(o,a,d,E){var k=a&m,C=hs(o);function L(){for(var B=-1,G=arguments.length,ie=-1,se=E.length,ue=Q(se+G),me=this&&this!==$t&&this instanceof L?C:o;++ie<se;)ue[ie]=E[ie];for(;G--;)ue[ie++]=arguments[++B];return pr(me,k?d:this,ue)}return L}function Xg(o){return function(a,d,E){return E&&typeof E!="number"&&Xt(a,d,E)&&(d=E=r),a=In(a),d===r?(d=a,a=0):d=In(d),E=E===r?a<d?1:-1:In(E),OO(a,d,E,o)}}function pl(o){return function(a,d){return typeof a=="string"&&typeof d=="string"||(a=Nr(a),d=Nr(d)),o(a,d)}}function Jg(o,a,d,E,k,C,L,B,G,ie){var se=a&O,ue=se?L:r,me=se?r:L,Se=se?C:r,ke=se?r:C;a|=se?R:H,a&=~(se?H:R),a&x||(a&=-4);var Ne=[o,a,k,Se,ue,ke,me,B,G,ie],_e=d.apply(r,Ne);return sd(o)&&uv(_e,Ne),_e.placeholder=E,dv(_e,o,a)}function Qu(o){var a=Ot[o];return function(d,E){if(d=Nr(d),E=E==null?0:Gt(Pe(E),292),E&&dg(d)){var k=(qe(d)+"e").split("e"),C=a(k[0]+"e"+(+k[1]+E));return k=(qe(C)+"e").split("e"),+(k[0]+"e"+(+k[1]-E))}return a(d)}}var HO=ao&&1/Ba(new ao([,-0]))[1]==Y?function(o){return new ao(o)}:Sd;function Qg(o){return function(a){var d=Zt(a);return d==at?Ru(a):d==zt?i_(a):YE(a,o(a))}}function An(o,a,d,E,k,C,L,B){var G=a&w;if(!G&&typeof o!="function")throw new Tr(l);var ie=E?E.length:0;if(ie||(a&=-97,E=k=r),L=L===r?L:kt(Pe(L),0),B=B===r?B:Pe(B),ie-=k?k.length:0,a&H){var se=E,ue=k;E=k=r}var me=G?r:rd(o),Se=[o,a,d,E,k,se,ue,C,L,B];if(me&&rk(Se,me),o=Se[0],a=Se[1],d=Se[2],E=Se[3],k=Se[4],B=Se[9]=Se[9]===r?G?0:o.length:kt(Se[9]-ie,0),!B&&a&(O|_)&&(a&=-25),!a||a==m)var ke=$O(o,a,d);else a==O||a==_?ke=jO(o,a,B):(a==R||a==(m|R))&&!k.length?ke=FO(o,a,d,E):ke=ul.apply(r,Se);var Ne=me?Ng:uv;return dv(Ne(ke,Se),o,a)}function ev(o,a,d,E){return o===r||Ur(o,so[d])&&!Ue.call(E,d)?a:o}function tv(o,a,d,E,k,C){return pt(o)&&pt(a)&&(C.set(a,o),sl(o,a,r,tv,C),C.delete(a)),o}function BO(o){return ms(o)?r:o}function rv(o,a,d,E,k,C){var L=d&v,B=o.length,G=a.length;if(B!=G&&!(L&&G>B))return!1;var ie=C.get(o),se=C.get(a);if(ie&&se)return ie==a&&se==o;var ue=-1,me=!0,Se=d&y?new ki:r;for(C.set(o,a),C.set(a,o);++ue<B;){var ke=o[ue],Ne=a[ue];if(E)var _e=L?E(Ne,ke,ue,a,o,C):E(ke,Ne,ue,o,a,C);if(_e!==r){if(_e)continue;me=!1;break}if(Se){if(!Eu(a,function(Le,$e){if(!ns(Se,$e)&&(ke===Le||k(ke,Le,d,E,C)))return Se.push($e)})){me=!1;break}}else if(!(ke===Ne||k(ke,Ne,d,E,C))){me=!1;break}}return C.delete(o),C.delete(a),me}function WO(o,a,d,E,k,C,L){switch(d){case Un:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case en:return!(o.byteLength!=a.byteLength||!C(new Za(o),new Za(a)));case he:case fe:case qt:return Ur(+o,+a);case Z:return o.name==a.name&&o.message==a.message;case Rt:case Qr:return o==a+"";case at:var B=Ru;case zt:var G=E&v;if(B||(B=Ba),o.size!=a.size&&!G)return!1;var ie=L.get(o);if(ie)return ie==a;E|=y,L.set(o,a);var se=rv(B(o),B(a),E,k,C,L);return L.delete(o),se;case Hr:if(ls)return ls.call(o)==ls.call(a)}return!1}function VO(o,a,d,E,k,C){var L=d&v,B=ed(o),G=B.length,ie=ed(a),se=ie.length;if(G!=se&&!L)return!1;for(var ue=G;ue--;){var me=B[ue];if(!(L?me in a:Ue.call(a,me)))return!1}var Se=C.get(o),ke=C.get(a);if(Se&&ke)return Se==a&&ke==o;var Ne=!0;C.set(o,a),C.set(a,o);for(var _e=L;++ue<G;){me=B[ue];var Le=o[me],$e=a[me];if(E)var br=L?E($e,Le,me,a,o,C):E(Le,$e,me,o,a,C);if(!(br===r?Le===$e||k(Le,$e,d,E,C):br)){Ne=!1;break}_e||(_e=me=="constructor")}if(Ne&&!_e){var Jt=o.constructor,yr=a.constructor;Jt!=yr&&"constructor"in o&&"constructor"in a&&!(typeof Jt=="function"&&Jt instanceof Jt&&typeof yr=="function"&&yr instanceof yr)&&(Ne=!1)}return C.delete(o),C.delete(a),Ne}function Tn(o){return ld(lv(o,r,mv),o+"")}function ed(o){return Sg(o,Pt,id)}function td(o){return Sg(o,or,nv)}var rd=el?function(o){return el.get(o)}:Sd;function hl(o){for(var a=o.name+"",d=lo[a],E=Ue.call(lo,a)?d.length:0;E--;){var k=d[E],C=k.func;if(C==null||C==o)return k.name}return a}function po(o){var a=Ue.call(T,"placeholder")?T:o;return a.placeholder}function Oe(){var o=T.iteratee||wd;return o=o===wd?Og:o,arguments.length?o(arguments[0],arguments[1]):o}function gl(o,a){var d=o.__data__;return JO(a)?d[typeof a=="string"?"string":"hash"]:d.map}function nd(o){for(var a=Pt(o),d=a.length;d--;){var E=a[d],k=o[E];a[d]=[E,k,sv(k)]}return a}function Ri(o,a){var d=t_(o,a);return _g(d)?d:r}function UO(o){var a=Ue.call(o,_i),d=o[_i];try{o[_i]=r;var E=!0}catch{}var k=qa.call(o);return E&&(a?o[_i]=d:delete o[_i]),k}var id=Iu?function(o){return o==null?[]:(o=nt(o),Zn(Iu(o),function(a){return cg.call(o,a)}))}:Ed,nv=Iu?function(o){for(var a=[];o;)Kn(a,id(o)),o=Ka(o);return a}:Ed,Zt=Yt;(Pu&&Zt(new Pu(new ArrayBuffer(1)))!=Un||os&&Zt(new os)!=at||Nu&&Zt(Nu.resolve())!=bi||ao&&Zt(new ao)!=zt||ss&&Zt(new ss)!=fr)&&(Zt=function(o){var a=Yt(o),d=a==dr?o.constructor:r,E=d?Ci(d):"";if(E)switch(E){case A_:return Un;case T_:return at;case R_:return bi;case C_:return zt;case I_:return fr}return a});function qO(o,a,d){for(var E=-1,k=d.length;++E<k;){var C=d[E],L=C.size;switch(C.type){case"drop":o+=L;break;case"dropRight":a-=L;break;case"take":a=Gt(a,o+L);break;case"takeRight":o=kt(o,a-L);break}}return{start:o,end:a}}function GO(o){var a=o.match(Ct);return a?a[1].split(It):[]}function iv(o,a,d){a=ei(a,o);for(var E=-1,k=a.length,C=!1;++E<k;){var L=Vr(a[E]);if(!(C=o!=null&&d(o,L)))break;o=o[L]}return C||++E!=k?C:(k=o==null?0:o.length,!!k&&Sl(k)&&Rn(L,k)&&(Ie(o)||Ii(o)))}function ZO(o){var a=o.length,d=new o.constructor(a);return a&&typeof o[0]=="string"&&Ue.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function ov(o){return typeof o.constructor=="function"&&!gs(o)?co(Ka(o)):{}}function KO(o,a,d){var E=o.constructor;switch(a){case en:return Xu(o);case he:case fe:return new E(+o);case Un:return PO(o,d);case tr:case yi:case Ko:case Yi:case Xi:case Yo:case Ji:case Qi:case eo:return Hg(o,d);case at:return new E;case qt:case Qr:return new E(o);case Rt:return NO(o);case zt:return new E;case Hr:return MO(o)}}function YO(o,a){var d=a.length;if(!d)return o;var E=d-1;return a[E]=(d>1?"& ":"")+a[E],a=a.join(d>2?", ":" "),o.replace(xt,`{
|
|
233
|
+
/* [wrapped with `+a+`] */
|
|
234
|
+
`)}function XO(o){return Ie(o)||Ii(o)||!!(ug&&o&&o[ug])}function Rn(o,a){var d=typeof o;return a=a??ve,!!a&&(d=="number"||d!="symbol"&&cE.test(o))&&o>-1&&o%1==0&&o<a}function Xt(o,a,d){if(!pt(d))return!1;var E=typeof a;return(E=="number"?ir(d)&&Rn(a,d.length):E=="string"&&a in d)?Ur(d[a],o):!1}function od(o,a){if(Ie(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||mr(o)?!0:pu.test(o)||!qn.test(o)||a!=null&&o in nt(a)}function JO(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function sd(o){var a=hl(o),d=T[a];if(typeof d!="function"||!(a in ze.prototype))return!1;if(o===d)return!0;var E=rd(d);return!!E&&o===E[0]}function QO(o){return!!sg&&sg in o}var ek=Va?Cn:_d;function gs(o){var a=o&&o.constructor,d=typeof a=="function"&&a.prototype||so;return o===d}function sv(o){return o===o&&!pt(o)}function av(o,a){return function(d){return d==null?!1:d[o]===a&&(a!==r||o in nt(d))}}function tk(o){var a=wl(o,function(E){return d.size===g&&d.clear(),E}),d=a.cache;return a}function rk(o,a){var d=o[1],E=a[1],k=d|E,C=k<(m|w|I),L=E==I&&d==O||E==I&&d==$&&o[7].length<=a[8]||E==(I|$)&&a[7].length<=a[8]&&d==O;if(!(C||L))return o;E&m&&(o[2]=a[2],k|=d&m?0:x);var B=a[3];if(B){var G=o[3];o[3]=G?Wg(G,B,a[4]):B,o[4]=G?Yn(o[3],p):a[4]}return B=a[5],B&&(G=o[5],o[5]=G?Vg(G,B,a[6]):B,o[6]=G?Yn(o[5],p):a[6]),B=a[7],B&&(o[7]=B),E&I&&(o[8]=o[8]==null?a[8]:Gt(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=k,o}function nk(o){var a=[];if(o!=null)for(var d in nt(o))a.push(d);return a}function ik(o){return qa.call(o)}function lv(o,a,d){return a=kt(a===r?o.length-1:a,0),function(){for(var E=arguments,k=-1,C=kt(E.length-a,0),L=Q(C);++k<C;)L[k]=E[a+k];k=-1;for(var B=Q(a+1);++k<a;)B[k]=E[k];return B[a]=d(L),pr(o,this,B)}}function cv(o,a){return a.length<2?o:Ti(o,Ir(a,0,-1))}function ok(o,a){for(var d=o.length,E=Gt(a.length,d),k=nr(o);E--;){var C=a[E];o[E]=Rn(C,d)?k[C]:r}return o}function ad(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var uv=fv(Ng),vs=w_||function(o,a){return $t.setTimeout(o,a)},ld=fv(TO);function dv(o,a,d){var E=a+"";return ld(o,YO(E,sk(GO(E),d)))}function fv(o){var a=0,d=0;return function(){var E=__(),k=F-(E-d);if(d=E,k>0){if(++a>=D)return arguments[0]}else a=0;return o.apply(r,arguments)}}function vl(o,a){var d=-1,E=o.length,k=E-1;for(a=a===r?E:a;++d<a;){var C=Vu(d,k),L=o[C];o[C]=o[d],o[d]=L}return o.length=a,o}var pv=tk(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(xi,function(d,E,k,C){a.push(k?C.replace(tn,"$1"):E||d)}),a});function Vr(o){if(typeof o=="string"||mr(o))return o;var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Ci(o){if(o!=null){try{return Ua.call(o)}catch{}try{return o+""}catch{}}return""}function sk(o,a){return hr(oe,function(d){var E="_."+d[0];a&d[1]&&!Fa(o,E)&&o.push(E)}),o.sort()}function hv(o){if(o instanceof ze)return o.clone();var a=new Rr(o.__wrapped__,o.__chain__);return a.__actions__=nr(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function ak(o,a,d){(d?Xt(o,a,d):a===r)?a=1:a=kt(Pe(a),0);var E=o==null?0:o.length;if(!E||a<1)return[];for(var k=0,C=0,L=Q(Ja(E/a));k<E;)L[C++]=Ir(o,k,k+=a);return L}function lk(o){for(var a=-1,d=o==null?0:o.length,E=0,k=[];++a<d;){var C=o[a];C&&(k[E++]=C)}return k}function ck(){var o=arguments.length;if(!o)return[];for(var a=Q(o-1),d=arguments[0],E=o;E--;)a[E-1]=arguments[E];return Kn(Ie(d)?nr(d):[d],jt(a,1))}var uk=Me(function(o,a){return mt(o)?us(o,jt(a,1,mt,!0)):[]}),dk=Me(function(o,a){var d=Pr(a);return mt(d)&&(d=r),mt(o)?us(o,jt(a,1,mt,!0),Oe(d,2)):[]}),fk=Me(function(o,a){var d=Pr(a);return mt(d)&&(d=r),mt(o)?us(o,jt(a,1,mt,!0),r,d):[]});function pk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Pe(a),Ir(o,a<0?0:a,E)):[]}function hk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Pe(a),a=E-a,Ir(o,0,a<0?0:a)):[]}function gk(o,a){return o&&o.length?ll(o,Oe(a,3),!0,!0):[]}function vk(o,a){return o&&o.length?ll(o,Oe(a,3),!0):[]}function mk(o,a,d,E){var k=o==null?0:o.length;return k?(d&&typeof d!="number"&&Xt(o,a,d)&&(d=0,E=k),cO(o,a,d,E)):[]}function gv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Pe(d);return k<0&&(k=kt(E+k,0)),Ha(o,Oe(a,3),k)}function vv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E-1;return d!==r&&(k=Pe(d),k=d<0?kt(E+k,0):Gt(k,E-1)),Ha(o,Oe(a,3),k,!0)}function mv(o){var a=o==null?0:o.length;return a?jt(o,1):[]}function bk(o){var a=o==null?0:o.length;return a?jt(o,Y):[]}function yk(o,a){var d=o==null?0:o.length;return d?(a=a===r?1:Pe(a),jt(o,a)):[]}function wk(o){for(var a=-1,d=o==null?0:o.length,E={};++a<d;){var k=o[a];sn(E,k[0],k[1])}return E}function bv(o){return o&&o.length?o[0]:r}function xk(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Pe(d);return k<0&&(k=kt(E+k,0)),ro(o,a,k)}function Sk(o){var a=o==null?0:o.length;return a?Ir(o,0,-1):[]}var Ek=Me(function(o){var a=ut(o,Ku);return a.length&&a[0]===o[0]?ju(a):[]}),_k=Me(function(o){var a=Pr(o),d=ut(o,Ku);return a===Pr(d)?a=r:d.pop(),d.length&&d[0]===o[0]?ju(d,Oe(a,2)):[]}),Ok=Me(function(o){var a=Pr(o),d=ut(o,Ku);return a=typeof a=="function"?a:r,a&&d.pop(),d.length&&d[0]===o[0]?ju(d,r,a):[]});function kk(o,a){return o==null?"":S_.call(o,a)}function Pr(o){var a=o==null?0:o.length;return a?o[a-1]:r}function Ak(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E;return d!==r&&(k=Pe(d),k=k<0?kt(E+k,0):Gt(k,E-1)),a===a?s_(o,a,k):Ha(o,Jh,k,!0)}function Tk(o,a){return o&&o.length?Rg(o,Pe(a)):r}var Rk=Me(yv);function yv(o,a){return o&&o.length&&a&&a.length?Wu(o,a):o}function Ck(o,a,d){return o&&o.length&&a&&a.length?Wu(o,a,Oe(d,2)):o}function Ik(o,a,d){return o&&o.length&&a&&a.length?Wu(o,a,r,d):o}var Pk=Tn(function(o,a){var d=o==null?0:o.length,E=Du(o,a);return Pg(o,ut(a,function(k){return Rn(k,d)?+k:k}).sort(Bg)),E});function Nk(o,a){var d=[];if(!(o&&o.length))return d;var E=-1,k=[],C=o.length;for(a=Oe(a,3);++E<C;){var L=o[E];a(L,E,o)&&(d.push(L),k.push(E))}return Pg(o,k),d}function cd(o){return o==null?o:k_.call(o)}function Mk(o,a,d){var E=o==null?0:o.length;return E?(d&&typeof d!="number"&&Xt(o,a,d)?(a=0,d=E):(a=a==null?0:Pe(a),d=d===r?E:Pe(d)),Ir(o,a,d)):[]}function Dk(o,a){return al(o,a)}function Lk(o,a,d){return qu(o,a,Oe(d,2))}function zk(o,a){var d=o==null?0:o.length;if(d){var E=al(o,a);if(E<d&&Ur(o[E],a))return E}return-1}function $k(o,a){return al(o,a,!0)}function jk(o,a,d){return qu(o,a,Oe(d,2),!0)}function Fk(o,a){var d=o==null?0:o.length;if(d){var E=al(o,a,!0)-1;if(Ur(o[E],a))return E}return-1}function Hk(o){return o&&o.length?Mg(o):[]}function Bk(o,a){return o&&o.length?Mg(o,Oe(a,2)):[]}function Wk(o){var a=o==null?0:o.length;return a?Ir(o,1,a):[]}function Vk(o,a,d){return o&&o.length?(a=d||a===r?1:Pe(a),Ir(o,0,a<0?0:a)):[]}function Uk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Pe(a),a=E-a,Ir(o,a<0?0:a,E)):[]}function qk(o,a){return o&&o.length?ll(o,Oe(a,3),!1,!0):[]}function Gk(o,a){return o&&o.length?ll(o,Oe(a,3)):[]}var Zk=Me(function(o){return Qn(jt(o,1,mt,!0))}),Kk=Me(function(o){var a=Pr(o);return mt(a)&&(a=r),Qn(jt(o,1,mt,!0),Oe(a,2))}),Yk=Me(function(o){var a=Pr(o);return a=typeof a=="function"?a:r,Qn(jt(o,1,mt,!0),r,a)});function Xk(o){return o&&o.length?Qn(o):[]}function Jk(o,a){return o&&o.length?Qn(o,Oe(a,2)):[]}function Qk(o,a){return a=typeof a=="function"?a:r,o&&o.length?Qn(o,r,a):[]}function ud(o){if(!(o&&o.length))return[];var a=0;return o=Zn(o,function(d){if(mt(d))return a=kt(d.length,a),!0}),Au(a,function(d){return ut(o,_u(d))})}function wv(o,a){if(!(o&&o.length))return[];var d=ud(o);return a==null?d:ut(d,function(E){return pr(a,r,E)})}var eA=Me(function(o,a){return mt(o)?us(o,a):[]}),tA=Me(function(o){return Zu(Zn(o,mt))}),rA=Me(function(o){var a=Pr(o);return mt(a)&&(a=r),Zu(Zn(o,mt),Oe(a,2))}),nA=Me(function(o){var a=Pr(o);return a=typeof a=="function"?a:r,Zu(Zn(o,mt),r,a)}),iA=Me(ud);function oA(o,a){return $g(o||[],a||[],cs)}function sA(o,a){return $g(o||[],a||[],ps)}var aA=Me(function(o){var a=o.length,d=a>1?o[a-1]:r;return d=typeof d=="function"?(o.pop(),d):r,wv(o,d)});function xv(o){var a=T(o);return a.__chain__=!0,a}function lA(o,a){return a(o),o}function ml(o,a){return a(o)}var cA=Tn(function(o){var a=o.length,d=a?o[0]:0,E=this.__wrapped__,k=function(C){return Du(C,o)};return a>1||this.__actions__.length||!(E instanceof ze)||!Rn(d)?this.thru(k):(E=E.slice(d,+d+(a?1:0)),E.__actions__.push({func:ml,args:[k],thisArg:r}),new Rr(E,this.__chain__).thru(function(C){return a&&!C.length&&C.push(r),C}))});function uA(){return xv(this)}function dA(){return new Rr(this.value(),this.__chain__)}function fA(){this.__values__===r&&(this.__values__=Dv(this.value()));var o=this.__index__>=this.__values__.length,a=o?r:this.__values__[this.__index__++];return{done:o,value:a}}function pA(){return this}function hA(o){for(var a,d=this;d instanceof rl;){var E=hv(d);E.__index__=0,E.__values__=r,a?k.__wrapped__=E:a=E;var k=E;d=d.__wrapped__}return k.__wrapped__=o,a}function gA(){var o=this.__wrapped__;if(o instanceof ze){var a=o;return this.__actions__.length&&(a=new ze(this)),a=a.reverse(),a.__actions__.push({func:ml,args:[cd],thisArg:r}),new Rr(a,this.__chain__)}return this.thru(cd)}function vA(){return zg(this.__wrapped__,this.__actions__)}var mA=cl(function(o,a,d){Ue.call(o,d)?++o[d]:sn(o,d,1)});function bA(o,a,d){var E=Ie(o)?Yh:lO;return d&&Xt(o,a,d)&&(a=r),E(o,Oe(a,3))}function yA(o,a){var d=Ie(o)?Zn:wg;return d(o,Oe(a,3))}var wA=Zg(gv),xA=Zg(vv);function SA(o,a){return jt(bl(o,a),1)}function EA(o,a){return jt(bl(o,a),Y)}function _A(o,a,d){return d=d===r?1:Pe(d),jt(bl(o,a),d)}function Sv(o,a){var d=Ie(o)?hr:Jn;return d(o,Oe(a,3))}function Ev(o,a){var d=Ie(o)?WE:yg;return d(o,Oe(a,3))}var OA=cl(function(o,a,d){Ue.call(o,d)?o[d].push(a):sn(o,d,[a])});function kA(o,a,d,E){o=ir(o)?o:go(o),d=d&&!E?Pe(d):0;var k=o.length;return d<0&&(d=kt(k+d,0)),El(o)?d<=k&&o.indexOf(a,d)>-1:!!k&&ro(o,a,d)>-1}var AA=Me(function(o,a,d){var E=-1,k=typeof a=="function",C=ir(o)?Q(o.length):[];return Jn(o,function(L){C[++E]=k?pr(a,L,d):ds(L,a,d)}),C}),TA=cl(function(o,a,d){sn(o,d,a)});function bl(o,a){var d=Ie(o)?ut:kg;return d(o,Oe(a,3))}function RA(o,a,d,E){return o==null?[]:(Ie(a)||(a=a==null?[]:[a]),d=E?r:d,Ie(d)||(d=d==null?[]:[d]),Cg(o,a,d))}var CA=cl(function(o,a,d){o[d?0:1].push(a)},function(){return[[],[]]});function IA(o,a,d){var E=Ie(o)?Su:eg,k=arguments.length<3;return E(o,Oe(a,4),d,k,Jn)}function PA(o,a,d){var E=Ie(o)?VE:eg,k=arguments.length<3;return E(o,Oe(a,4),d,k,yg)}function NA(o,a){var d=Ie(o)?Zn:wg;return d(o,xl(Oe(a,3)))}function MA(o){var a=Ie(o)?gg:kO;return a(o)}function DA(o,a,d){(d?Xt(o,a,d):a===r)?a=1:a=Pe(a);var E=Ie(o)?nO:AO;return E(o,a)}function LA(o){var a=Ie(o)?iO:RO;return a(o)}function zA(o){if(o==null)return 0;if(ir(o))return El(o)?io(o):o.length;var a=Zt(o);return a==at||a==zt?o.size:Hu(o).length}function $A(o,a,d){var E=Ie(o)?Eu:CO;return d&&Xt(o,a,d)&&(a=r),E(o,Oe(a,3))}var jA=Me(function(o,a){if(o==null)return[];var d=a.length;return d>1&&Xt(o,a[0],a[1])?a=[]:d>2&&Xt(a[0],a[1],a[2])&&(a=[a[0]]),Cg(o,jt(a,1),[])}),yl=y_||function(){return $t.Date.now()};function FA(o,a){if(typeof a!="function")throw new Tr(l);return o=Pe(o),function(){if(--o<1)return a.apply(this,arguments)}}function _v(o,a,d){return a=d?r:a,a=o&&a==null?o.length:a,An(o,I,r,r,r,r,a)}function Ov(o,a){var d;if(typeof a!="function")throw new Tr(l);return o=Pe(o),function(){return--o>0&&(d=a.apply(this,arguments)),o<=1&&(a=r),d}}var dd=Me(function(o,a,d){var E=m;if(d.length){var k=Yn(d,po(dd));E|=R}return An(o,E,a,d,k)}),kv=Me(function(o,a,d){var E=m|w;if(d.length){var k=Yn(d,po(kv));E|=R}return An(a,E,o,d,k)});function Av(o,a,d){a=d?r:a;var E=An(o,O,r,r,r,r,r,a);return E.placeholder=Av.placeholder,E}function Tv(o,a,d){a=d?r:a;var E=An(o,_,r,r,r,r,r,a);return E.placeholder=Tv.placeholder,E}function Rv(o,a,d){var E,k,C,L,B,G,ie=0,se=!1,ue=!1,me=!0;if(typeof o!="function")throw new Tr(l);a=Nr(a)||0,pt(d)&&(se=!!d.leading,ue="maxWait"in d,C=ue?kt(Nr(d.maxWait)||0,a):C,me="trailing"in d?!!d.trailing:me);function Se(bt){var qr=E,Pn=k;return E=k=r,ie=bt,L=o.apply(Pn,qr),L}function ke(bt){return ie=bt,B=vs(Le,a),se?Se(bt):L}function Ne(bt){var qr=bt-G,Pn=bt-ie,Kv=a-qr;return ue?Gt(Kv,C-Pn):Kv}function _e(bt){var qr=bt-G,Pn=bt-ie;return G===r||qr>=a||qr<0||ue&&Pn>=C}function Le(){var bt=yl();if(_e(bt))return $e(bt);B=vs(Le,Ne(bt))}function $e(bt){return B=r,me&&E?Se(bt):(E=k=r,L)}function br(){B!==r&&jg(B),ie=0,E=G=k=B=r}function Jt(){return B===r?L:$e(yl())}function yr(){var bt=yl(),qr=_e(bt);if(E=arguments,k=this,G=bt,qr){if(B===r)return ke(G);if(ue)return jg(B),B=vs(Le,a),Se(G)}return B===r&&(B=vs(Le,a)),L}return yr.cancel=br,yr.flush=Jt,yr}var HA=Me(function(o,a){return bg(o,1,a)}),BA=Me(function(o,a,d){return bg(o,Nr(a)||0,d)});function WA(o){return An(o,U)}function wl(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Tr(l);var d=function(){var E=arguments,k=a?a.apply(this,E):E[0],C=d.cache;if(C.has(k))return C.get(k);var L=o.apply(this,E);return d.cache=C.set(k,L)||C,L};return d.cache=new(wl.Cache||kn),d}wl.Cache=kn;function xl(o){if(typeof o!="function")throw new Tr(l);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function VA(o){return Ov(2,o)}var UA=IO(function(o,a){a=a.length==1&&Ie(a[0])?ut(a[0],gr(Oe())):ut(jt(a,1),gr(Oe()));var d=a.length;return Me(function(E){for(var k=-1,C=Gt(E.length,d);++k<C;)E[k]=a[k].call(this,E[k]);return pr(o,this,E)})}),fd=Me(function(o,a){var d=Yn(a,po(fd));return An(o,R,r,a,d)}),Cv=Me(function(o,a){var d=Yn(a,po(Cv));return An(o,H,r,a,d)}),qA=Tn(function(o,a){return An(o,$,r,r,r,a)});function GA(o,a){if(typeof o!="function")throw new Tr(l);return a=a===r?a:Pe(a),Me(o,a)}function ZA(o,a){if(typeof o!="function")throw new Tr(l);return a=a==null?0:kt(Pe(a),0),Me(function(d){var E=d[a],k=ti(d,0,a);return E&&Kn(k,E),pr(o,this,k)})}function KA(o,a,d){var E=!0,k=!0;if(typeof o!="function")throw new Tr(l);return pt(d)&&(E="leading"in d?!!d.leading:E,k="trailing"in d?!!d.trailing:k),Rv(o,a,{leading:E,maxWait:a,trailing:k})}function YA(o){return _v(o,1)}function XA(o,a){return fd(Yu(a),o)}function JA(){if(!arguments.length)return[];var o=arguments[0];return Ie(o)?o:[o]}function QA(o){return Cr(o,S)}function eT(o,a){return a=typeof a=="function"?a:r,Cr(o,S,a)}function tT(o){return Cr(o,h|S)}function rT(o,a){return a=typeof a=="function"?a:r,Cr(o,h|S,a)}function nT(o,a){return a==null||mg(o,a,Pt(a))}function Ur(o,a){return o===a||o!==o&&a!==a}var iT=pl($u),oT=pl(function(o,a){return o>=a}),Ii=Eg((function(){return arguments})())?Eg:function(o){return vt(o)&&Ue.call(o,"callee")&&!cg.call(o,"callee")},Ie=Q.isArray,sT=Vh?gr(Vh):hO;function ir(o){return o!=null&&Sl(o.length)&&!Cn(o)}function mt(o){return vt(o)&&ir(o)}function aT(o){return o===!0||o===!1||vt(o)&&Yt(o)==he}var ri=x_||_d,lT=Uh?gr(Uh):gO;function cT(o){return vt(o)&&o.nodeType===1&&!ms(o)}function uT(o){if(o==null)return!0;if(ir(o)&&(Ie(o)||typeof o=="string"||typeof o.splice=="function"||ri(o)||ho(o)||Ii(o)))return!o.length;var a=Zt(o);if(a==at||a==zt)return!o.size;if(gs(o))return!Hu(o).length;for(var d in o)if(Ue.call(o,d))return!1;return!0}function dT(o,a){return fs(o,a)}function fT(o,a,d){d=typeof d=="function"?d:r;var E=d?d(o,a):r;return E===r?fs(o,a,r,d):!!E}function pd(o){if(!vt(o))return!1;var a=Yt(o);return a==Z||a==ye||typeof o.message=="string"&&typeof o.name=="string"&&!ms(o)}function pT(o){return typeof o=="number"&&dg(o)}function Cn(o){if(!pt(o))return!1;var a=Yt(o);return a==Te||a==ge||a==de||a==Lt}function Iv(o){return typeof o=="number"&&o==Pe(o)}function Sl(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ve}function pt(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function vt(o){return o!=null&&typeof o=="object"}var Pv=qh?gr(qh):mO;function hT(o,a){return o===a||Fu(o,a,nd(a))}function gT(o,a,d){return d=typeof d=="function"?d:r,Fu(o,a,nd(a),d)}function vT(o){return Nv(o)&&o!=+o}function mT(o){if(ek(o))throw new Re(s);return _g(o)}function bT(o){return o===null}function yT(o){return o==null}function Nv(o){return typeof o=="number"||vt(o)&&Yt(o)==qt}function ms(o){if(!vt(o)||Yt(o)!=dr)return!1;var a=Ka(o);if(a===null)return!0;var d=Ue.call(a,"constructor")&&a.constructor;return typeof d=="function"&&d instanceof d&&Ua.call(d)==g_}var hd=Gh?gr(Gh):bO;function wT(o){return Iv(o)&&o>=-ve&&o<=ve}var Mv=Zh?gr(Zh):yO;function El(o){return typeof o=="string"||!Ie(o)&&vt(o)&&Yt(o)==Qr}function mr(o){return typeof o=="symbol"||vt(o)&&Yt(o)==Hr}var ho=Kh?gr(Kh):wO;function xT(o){return o===r}function ST(o){return vt(o)&&Zt(o)==fr}function ET(o){return vt(o)&&Yt(o)==er}var _T=pl(Bu),OT=pl(function(o,a){return o<=a});function Dv(o){if(!o)return[];if(ir(o))return El(o)?Br(o):nr(o);if(is&&o[is])return n_(o[is]());var a=Zt(o),d=a==at?Ru:a==zt?Ba:go;return d(o)}function In(o){if(!o)return o===0?o:0;if(o=Nr(o),o===Y||o===-Y){var a=o<0?-1:1;return a*z}return o===o?o:0}function Pe(o){var a=In(o),d=a%1;return a===a?d?a-d:a:0}function Lv(o){return o?Ai(Pe(o),0,X):0}function Nr(o){if(typeof o=="number")return o;if(mr(o))return W;if(pt(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=pt(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=tg(o);var d=Si.test(o);return d||lE.test(o)?FE(o.slice(2),d?2:8):on.test(o)?W:+o}function zv(o){return ln(o,or(o))}function kT(o){return o?Ai(Pe(o),-ve,ve):o===0?o:0}function qe(o){return o==null?"":vr(o)}var AT=uo(function(o,a){if(gs(a)||ir(a)){ln(a,Pt(a),o);return}for(var d in a)Ue.call(a,d)&&cs(o,d,a[d])}),$v=uo(function(o,a){ln(a,or(a),o)}),jv=uo(function(o,a,d,E){ln(a,or(a),o,E)}),gd=uo(function(o,a,d,E){ln(a,Pt(a),o,E)}),TT=Tn(Du);function RT(o,a){var d=co(o);return a==null?d:vg(d,a)}var CT=Me(function(o,a){o=nt(o);var d=-1,E=a.length,k=E>2?a[2]:r;for(k&&Xt(a[0],a[1],k)&&(E=1);++d<E;)for(var C=a[d],L=or(C),B=-1,G=L.length;++B<G;){var ie=L[B],se=o[ie];(se===r||Ur(se,so[ie])&&!Ue.call(o,ie))&&(o[ie]=C[ie])}return o}),IT=Me(function(o){return o.push(r,tv),pr(Fv,r,o)});function PT(o,a){return Xh(o,Oe(a,3),an)}function NT(o,a){return Xh(o,Oe(a,3),zu)}function MT(o,a){return o==null?o:Lu(o,Oe(a,3),or)}function DT(o,a){return o==null?o:xg(o,Oe(a,3),or)}function LT(o,a){return o&&an(o,Oe(a,3))}function zT(o,a){return o&&zu(o,Oe(a,3))}function $T(o){return o==null?[]:ol(o,Pt(o))}function jT(o){return o==null?[]:ol(o,or(o))}function vd(o,a,d){var E=o==null?r:Ti(o,a);return E===r?d:E}function FT(o,a){return o!=null&&iv(o,a,uO)}function md(o,a){return o!=null&&iv(o,a,dO)}var HT=Yg(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=qa.call(a)),o[a]=d},yd(sr)),BT=Yg(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=qa.call(a)),Ue.call(o,a)?o[a].push(d):o[a]=[d]},Oe),WT=Me(ds);function Pt(o){return ir(o)?hg(o):Hu(o)}function or(o){return ir(o)?hg(o,!0):xO(o)}function VT(o,a){var d={};return a=Oe(a,3),an(o,function(E,k,C){sn(d,a(E,k,C),E)}),d}function UT(o,a){var d={};return a=Oe(a,3),an(o,function(E,k,C){sn(d,k,a(E,k,C))}),d}var qT=uo(function(o,a,d){sl(o,a,d)}),Fv=uo(function(o,a,d,E){sl(o,a,d,E)}),GT=Tn(function(o,a){var d={};if(o==null)return d;var E=!1;a=ut(a,function(C){return C=ei(C,o),E||(E=C.length>1),C}),ln(o,td(o),d),E&&(d=Cr(d,h|b|S,BO));for(var k=a.length;k--;)Gu(d,a[k]);return d});function ZT(o,a){return Hv(o,xl(Oe(a)))}var KT=Tn(function(o,a){return o==null?{}:EO(o,a)});function Hv(o,a){if(o==null)return{};var d=ut(td(o),function(E){return[E]});return a=Oe(a),Ig(o,d,function(E,k){return a(E,k[0])})}function YT(o,a,d){a=ei(a,o);var E=-1,k=a.length;for(k||(k=1,o=r);++E<k;){var C=o==null?r:o[Vr(a[E])];C===r&&(E=k,C=d),o=Cn(C)?C.call(o):C}return o}function XT(o,a,d){return o==null?o:ps(o,a,d)}function JT(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:ps(o,a,d,E)}var Bv=Qg(Pt),Wv=Qg(or);function QT(o,a,d){var E=Ie(o),k=E||ri(o)||ho(o);if(a=Oe(a,4),d==null){var C=o&&o.constructor;k?d=E?new C:[]:pt(o)?d=Cn(C)?co(Ka(o)):{}:d={}}return(k?hr:an)(o,function(L,B,G){return a(d,L,B,G)}),d}function eR(o,a){return o==null?!0:Gu(o,a)}function tR(o,a,d){return o==null?o:Lg(o,a,Yu(d))}function rR(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:Lg(o,a,Yu(d),E)}function go(o){return o==null?[]:Tu(o,Pt(o))}function nR(o){return o==null?[]:Tu(o,or(o))}function iR(o,a,d){return d===r&&(d=a,a=r),d!==r&&(d=Nr(d),d=d===d?d:0),a!==r&&(a=Nr(a),a=a===a?a:0),Ai(Nr(o),a,d)}function oR(o,a,d){return a=In(a),d===r?(d=a,a=0):d=In(d),o=Nr(o),fO(o,a,d)}function sR(o,a,d){if(d&&typeof d!="boolean"&&Xt(o,a,d)&&(a=d=r),d===r&&(typeof a=="boolean"?(d=a,a=r):typeof o=="boolean"&&(d=o,o=r)),o===r&&a===r?(o=0,a=1):(o=In(o),a===r?(a=o,o=0):a=In(a)),o>a){var E=o;o=a,a=E}if(d||o%1||a%1){var k=fg();return Gt(o+k*(a-o+jE("1e-"+((k+"").length-1))),a)}return Vu(o,a)}var aR=fo(function(o,a,d){return a=a.toLowerCase(),o+(d?Vv(a):a)});function Vv(o){return bd(qe(o).toLowerCase())}function Uv(o){return o=qe(o),o&&o.replace(uE,JE).replace(RE,"")}function lR(o,a,d){o=qe(o),a=vr(a);var E=o.length;d=d===r?E:Ai(Pe(d),0,E);var k=d;return d-=a.length,d>=0&&o.slice(d,k)==a}function cR(o){return o=qe(o),o&&Qo.test(o)?o.replace(Xo,QE):o}function uR(o){return o=qe(o),o&&es.test(o)?o.replace(Gn,"\\$&"):o}var dR=fo(function(o,a,d){return o+(d?"-":"")+a.toLowerCase()}),fR=fo(function(o,a,d){return o+(d?" ":"")+a.toLowerCase()}),pR=Gg("toLowerCase");function hR(o,a,d){o=qe(o),a=Pe(a);var E=a?io(o):0;if(!a||E>=a)return o;var k=(a-E)/2;return fl(Qa(k),d)+o+fl(Ja(k),d)}function gR(o,a,d){o=qe(o),a=Pe(a);var E=a?io(o):0;return a&&E<a?o+fl(a-E,d):o}function vR(o,a,d){o=qe(o),a=Pe(a);var E=a?io(o):0;return a&&E<a?fl(a-E,d)+o:o}function mR(o,a,d){return d||a==null?a=0:a&&(a=+a),O_(qe(o).replace(ts,""),a||0)}function bR(o,a,d){return(d?Xt(o,a,d):a===r)?a=1:a=Pe(a),Uu(qe(o),a)}function yR(){var o=arguments,a=qe(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var wR=fo(function(o,a,d){return o+(d?"_":"")+a.toLowerCase()});function xR(o,a,d){return d&&typeof d!="number"&&Xt(o,a,d)&&(a=d=r),d=d===r?X:d>>>0,d?(o=qe(o),o&&(typeof a=="string"||a!=null&&!hd(a))&&(a=vr(a),!a&&no(o))?ti(Br(o),0,d):o.split(a,d)):[]}var SR=fo(function(o,a,d){return o+(d?" ":"")+bd(a)});function ER(o,a,d){return o=qe(o),d=d==null?0:Ai(Pe(d),0,o.length),a=vr(a),o.slice(d,d+a.length)==a}function _R(o,a,d){var E=T.templateSettings;d&&Xt(o,a,d)&&(a=r),o=qe(o),a=gd({},a,E,ev);var k=gd({},a.imports,E.imports,ev),C=Pt(k),L=Tu(k,C);hr(C,function(_e){if(kr.test(_e))throw new Re(u)});var B,G,ie=0,se=a.interpolate||za,ue="__p += '",me=Cu((a.escape||za).source+"|"+se.source+"|"+(se===La?rn:za).source+"|"+(a.evaluate||za).source+"|$","g"),Se="//# sourceURL="+(Ue.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ME+"]")+`
|
|
235
|
+
`;o.replace(me,function(_e,Le,$e,br,Jt,yr){return $e||($e=br),ue+=o.slice(ie,yr).replace(dE,e_),Le&&(B=!0,ue+=`' +
|
|
236
|
+
__e(`+Le+`) +
|
|
237
|
+
'`),Jt&&(G=!0,ue+=`';
|
|
238
|
+
`+Jt+`;
|
|
239
|
+
__p += '`),$e&&(ue+=`' +
|
|
240
|
+
((__t = (`+$e+`)) == null ? '' : __t) +
|
|
241
|
+
'`),ie=yr+_e.length,_e}),ue+=`';
|
|
242
|
+
`;var ke=Ue.call(a,"variable")&&a.variable;if(!ke)ue=`with (obj) {
|
|
243
|
+
`+ue+`
|
|
194
244
|
}
|
|
195
|
-
`;else if(
|
|
196
|
-
`+(
|
|
197
|
-
`)+"var __t, __p = ''"+(
|
|
245
|
+
`;else if(kr.test(ke))throw new Re(c);ue=(G?ue.replace(Pa,""):ue).replace(wi,"$1").replace(Na,"$1;"),ue="function("+(ke||"obj")+`) {
|
|
246
|
+
`+(ke?"":`obj || (obj = {});
|
|
247
|
+
`)+"var __t, __p = ''"+(B?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
|
|
198
248
|
function print() { __p += __j.call(arguments, '') }
|
|
199
249
|
`:`;
|
|
200
|
-
`)+
|
|
201
|
-
}`;var Oe=mh(function(){return $e(T,le+"return "+ee).apply(r,P)});if(Oe.source=ee,cl(Oe))throw Oe;return Oe}function H_(n){return Me(n).toLowerCase()}function q_(n){return Me(n).toUpperCase()}function Z_(n,o,u){if(n=Me(n),n&&(u||o===r))return _d(n);if(!n||!(o=zt(o)))return n;var b=ur(n),_=ur(o),T=Od(b,_),P=Ad(b,_)+1;return cn(b,T,P).join("")}function G_(n,o,u){if(n=Me(n),n&&(u||o===r))return n.slice(0,Rd(n)+1);if(!n||!(o=zt(o)))return n;var b=ur(n),_=Ad(b,ur(o))+1;return cn(b,0,_).join("")}function K_(n,o,u){if(n=Me(n),n&&(u||o===r))return n.replace(cu,"");if(!n||!(o=zt(o)))return n;var b=ur(n),_=Od(b,ur(o));return cn(b,_).join("")}function V_(n,o){var u=N,b=L;if(Ve(o)){var _="separator"in o?o.separator:_;u="length"in o?Ee(o.length):u,b="omission"in o?zt(o.omission):b}n=Me(n);var T=n.length;if(ei(n)){var P=ur(n);T=P.length}if(u>=T)return n;var I=u-ti(b);if(I<1)return b;var z=P?cn(P,0,I).join(""):n.slice(0,I);if(_===r)return z+b;if(P&&(I+=z.length-I),fl(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Tu(_.source,Me(Zf.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(zt(_),I)!=I){var se=z.lastIndexOf(_);se>-1&&(z=z.slice(0,se))}return z+b}function X_(n){return n=Me(n),n&&lb.test(n)?n.replace(Uf,Aw):n}var Y_=ui(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),gl=mp("toUpperCase");function gh(n,o,u){return n=Me(n),o=u?r:o,o===r?xw(n)?Pw(n):dw(n):n.match(o)||[]}var mh=Te(function(n,o){try{return Dt(n,r,o)}catch(u){return cl(u)?u:new be(u)}}),J_=zr(function(n,o){return Nt(o,function(u){u=cr(u),br(n,u,ul(n[u],n))}),n});function Q_(n){var o=n==null?0:n.length,u=ge();return n=o?Ze(n,function(b){if(typeof b[1]!="function")throw new Yt(l);return[u(b[0]),b[1]]}):[],Te(function(b){for(var _=-1;++_<o;){var T=n[_];if(Dt(T[0],this,b))return Dt(T[1],this,b)}})}function eO(n){return A1(Qt(n,g))}function ml(n){return function(){return n}}function tO(n,o){return n==null||n!==n?o:n}var rO=yp(),nO=yp(!0);function It(n){return n}function vl(n){return Kd(typeof n=="function"?n:Qt(n,g))}function iO(n){return Xd(Qt(n,g))}function oO(n,o){return Yd(n,Qt(o,g))}var sO=Te(function(n,o){return function(u){return ji(u,n,o)}}),aO=Te(function(n,o){return function(u){return ji(n,u,o)}});function yl(n,o,u){var b=ft(o),_=xs(o,b);u==null&&!(Ve(o)&&(_.length||!b.length))&&(u=o,o=n,n=this,_=xs(o,ft(o)));var T=!(Ve(u)&&"chain"in u)||!!u.chain,P=Ur(n);return Nt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Ct(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,nn([this.value()],arguments))})}),n}function uO(){return pt._===this&&(pt._=Mw),this}function bl(){}function lO(n){return n=Ee(n),Te(function(o){return Jd(o,n)})}var cO=Vu(Ze),fO=Vu(bd),dO=Vu(wu);function vh(n){return rl(n)?xu(cr(n)):B1(n)}function pO(n){return function(o){return n==null?r:Cn(n,o)}}var hO=wp(),gO=wp(!0);function wl(){return[]}function xl(){return!1}function mO(){return{}}function vO(){return""}function yO(){return!0}function bO(n,o){if(n=Ee(n),n<1||n>ce)return[];var u=ne,b=wt(n,ne);o=ge(o),n-=ne;for(var _=_u(b,o);++u<n;)o(u);return _}function wO(n){return Se(n)?Ze(n,cr):Wt(n)?[n]:Ct(Fp(Me(n)))}function xO(n){var o=++Iw;return Me(n)+o}var SO=Ts(function(n,o){return n+o},0),EO=Xu("ceil"),_O=Ts(function(n,o){return n/o},1),OO=Xu("floor");function AO(n){return n&&n.length?ws(n,It,Mu):r}function TO(n,o){return n&&n.length?ws(n,ge(o,2),Mu):r}function RO(n){return Sd(n,It)}function PO(n,o){return Sd(n,ge(o,2))}function CO(n){return n&&n.length?ws(n,It,ju):r}function kO(n,o){return n&&n.length?ws(n,ge(o,2),ju):r}var $O=Ts(function(n,o){return n*o},1),IO=Xu("round"),LO=Ts(function(n,o){return n-o},0);function MO(n){return n&&n.length?Eu(n,It):0}function FO(n,o){return n&&n.length?Eu(n,ge(o,2)):0}return A.after=oE,A.ary=Gp,A.assign=ZE,A.assignIn=ah,A.assignInWith=uh,A.assignWith=dl,A.at=GE,A.before=Kp,A.bind=ul,A.bindAll=J_,A.bindKey=Vp,A.castArray=vE,A.chain=Hp,A.chunk=Ax,A.compact=Tx,A.concat=Rx,A.cond=Q_,A.conforms=eO,A.constant=ml,A.countBy=FS,A.create=KE,A.curry=Xp,A.curryRight=Yp,A.debounce=Jp,A.defaults=VE,A.defaultsDeep=XE,A.defer=sE,A.delay=aE,A.difference=Px,A.differenceBy=Cx,A.differenceWith=kx,A.drop=$x,A.dropRight=Ix,A.dropRightWhile=Lx,A.dropWhile=Mx,A.fill=Fx,A.filter=NS,A.flatMap=WS,A.flatMapDeep=US,A.flatMapDepth=BS,A.flatten=zp,A.flattenDeep=Dx,A.flattenDepth=Nx,A.flip=uE,A.flow=rO,A.flowRight=nO,A.fromPairs=jx,A.functions=n_,A.functionsIn=i_,A.groupBy=HS,A.initial=Wx,A.intersection=Ux,A.intersectionBy=Bx,A.intersectionWith=Hx,A.invert=s_,A.invertBy=a_,A.invokeMap=ZS,A.iteratee=vl,A.keyBy=GS,A.keys=ft,A.keysIn=$t,A.map=Ls,A.mapKeys=l_,A.mapValues=c_,A.matches=iO,A.matchesProperty=oO,A.memoize=Fs,A.merge=f_,A.mergeWith=lh,A.method=sO,A.methodOf=aO,A.mixin=yl,A.negate=Ds,A.nthArg=lO,A.omit=d_,A.omitBy=p_,A.once=lE,A.orderBy=KS,A.over=cO,A.overArgs=cE,A.overEvery=fO,A.overSome=dO,A.partial=ll,A.partialRight=Qp,A.partition=VS,A.pick=h_,A.pickBy=ch,A.property=vh,A.propertyOf=pO,A.pull=Kx,A.pullAll=Up,A.pullAllBy=Vx,A.pullAllWith=Xx,A.pullAt=Yx,A.range=hO,A.rangeRight=gO,A.rearg=fE,A.reject=JS,A.remove=Jx,A.rest=dE,A.reverse=sl,A.sampleSize=eE,A.set=m_,A.setWith=v_,A.shuffle=tE,A.slice=Qx,A.sortBy=iE,A.sortedUniq=sS,A.sortedUniqBy=aS,A.split=z_,A.spread=pE,A.tail=uS,A.take=lS,A.takeRight=cS,A.takeRightWhile=fS,A.takeWhile=dS,A.tap=TS,A.throttle=hE,A.thru=Is,A.toArray=ih,A.toPairs=fh,A.toPairsIn=dh,A.toPath=wO,A.toPlainObject=sh,A.transform=y_,A.unary=gE,A.union=pS,A.unionBy=hS,A.unionWith=gS,A.uniq=mS,A.uniqBy=vS,A.uniqWith=yS,A.unset=b_,A.unzip=al,A.unzipWith=Bp,A.update=w_,A.updateWith=x_,A.values=fi,A.valuesIn=S_,A.without=bS,A.words=gh,A.wrap=mE,A.xor=wS,A.xorBy=xS,A.xorWith=SS,A.zip=ES,A.zipObject=_S,A.zipObjectDeep=OS,A.zipWith=AS,A.entries=fh,A.entriesIn=dh,A.extend=ah,A.extendWith=uh,yl(A,A),A.add=SO,A.attempt=mh,A.camelCase=A_,A.capitalize=ph,A.ceil=EO,A.clamp=E_,A.clone=yE,A.cloneDeep=wE,A.cloneDeepWith=xE,A.cloneWith=bE,A.conformsTo=SE,A.deburr=hh,A.defaultTo=tO,A.divide=_O,A.endsWith=T_,A.eq=fr,A.escape=R_,A.escapeRegExp=P_,A.every=DS,A.find=jS,A.findIndex=Np,A.findKey=YE,A.findLast=zS,A.findLastIndex=jp,A.findLastKey=JE,A.floor=OO,A.forEach=qp,A.forEachRight=Zp,A.forIn=QE,A.forInRight=e_,A.forOwn=t_,A.forOwnRight=r_,A.get=pl,A.gt=EE,A.gte=_E,A.has=o_,A.hasIn=hl,A.head=Wp,A.identity=It,A.includes=qS,A.indexOf=zx,A.inRange=__,A.invoke=u_,A.isArguments=In,A.isArray=Se,A.isArrayBuffer=OE,A.isArrayLike=kt,A.isArrayLikeObject=rt,A.isBoolean=AE,A.isBuffer=fn,A.isDate=TE,A.isElement=RE,A.isEmpty=PE,A.isEqual=CE,A.isEqualWith=kE,A.isError=cl,A.isFinite=$E,A.isFunction=Ur,A.isInteger=eh,A.isLength=Ns,A.isMap=th,A.isMatch=IE,A.isMatchWith=LE,A.isNaN=ME,A.isNative=FE,A.isNil=NE,A.isNull=DE,A.isNumber=rh,A.isObject=Ve,A.isObjectLike=et,A.isPlainObject=qi,A.isRegExp=fl,A.isSafeInteger=jE,A.isSet=nh,A.isString=js,A.isSymbol=Wt,A.isTypedArray=ci,A.isUndefined=zE,A.isWeakMap=WE,A.isWeakSet=UE,A.join=qx,A.kebabCase=C_,A.last=tr,A.lastIndexOf=Zx,A.lowerCase=k_,A.lowerFirst=$_,A.lt=BE,A.lte=HE,A.max=AO,A.maxBy=TO,A.mean=RO,A.meanBy=PO,A.min=CO,A.minBy=kO,A.stubArray=wl,A.stubFalse=xl,A.stubObject=mO,A.stubString=vO,A.stubTrue=yO,A.multiply=$O,A.nth=Gx,A.noConflict=uO,A.noop=bl,A.now=Ms,A.pad=I_,A.padEnd=L_,A.padStart=M_,A.parseInt=F_,A.random=O_,A.reduce=XS,A.reduceRight=YS,A.repeat=D_,A.replace=N_,A.result=g_,A.round=IO,A.runInContext=j,A.sample=QS,A.size=rE,A.snakeCase=j_,A.some=nE,A.sortedIndex=eS,A.sortedIndexBy=tS,A.sortedIndexOf=rS,A.sortedLastIndex=nS,A.sortedLastIndexBy=iS,A.sortedLastIndexOf=oS,A.startCase=W_,A.startsWith=U_,A.subtract=LO,A.sum=MO,A.sumBy=FO,A.template=B_,A.times=bO,A.toFinite=Br,A.toInteger=Ee,A.toLength=oh,A.toLower=H_,A.toNumber=rr,A.toSafeInteger=qE,A.toString=Me,A.toUpper=q_,A.trim=Z_,A.trimEnd=G_,A.trimStart=K_,A.truncate=V_,A.unescape=X_,A.uniqueId=xO,A.upperCase=Y_,A.upperFirst=gl,A.each=qp,A.eachRight=Zp,A.first=Wp,yl(A,(function(){var n={};return wr(A,function(o,u){Le.call(A.prototype,u)||(n[u]=o)}),n})(),{chain:!1}),A.VERSION=i,Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Nt(["drop","take"],function(n,o){Pe.prototype[n]=function(u){u=u===r?1:lt(Ee(u),0);var b=this.__filtered__&&!o?new Pe(this):this.clone();return b.__filtered__?b.__takeCount__=wt(u,b.__takeCount__):b.__views__.push({size:wt(u,ne),type:n+(b.__dir__<0?"Right":"")}),b},Pe.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Nt(["filter","map","takeWhile"],function(n,o){var u=o+1,b=u==k||u==J;Pe.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:ge(_,3),type:u}),T.__filtered__=T.__filtered__||b,T}}),Nt(["head","last"],function(n,o){var u="take"+(o?"Right":"");Pe.prototype[n]=function(){return this[u](1).value()[0]}}),Nt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Pe.prototype[n]=function(){return this.__filtered__?new Pe(this):this[u](1)}}),Pe.prototype.compact=function(){return this.filter(It)},Pe.prototype.find=function(n){return this.filter(n).head()},Pe.prototype.findLast=function(n){return this.reverse().find(n)},Pe.prototype.invokeMap=Te(function(n,o){return typeof n=="function"?new Pe(this):this.map(function(u){return ji(u,n,o)})}),Pe.prototype.reject=function(n){return this.filter(Ds(ge(n)))},Pe.prototype.slice=function(n,o){n=Ee(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Pe(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=Ee(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Pe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pe.prototype.toArray=function(){return this.take(ne)},wr(Pe.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),b=/^(?:head|last)$/.test(o),_=A[b?"take"+(o=="last"?"Right":""):o],T=b||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=b?[1]:arguments,z=P instanceof Pe,V=I[0],X=z||Se(P),ee=function(Re){var Ce=_.apply(A,nn([Re],I));return b&&se?Ce[0]:Ce};X&&u&&typeof V=="function"&&V.length!=1&&(z=X=!1);var se=this.__chain__,le=!!this.__actions__.length,me=T&&!se,Oe=z&&!le;if(!T&&X){P=Oe?P:new Pe(this);var pe=n.apply(P,I);return pe.__actions__.push({func:Is,args:[ee],thisArg:r}),new Jt(pe,se)}return me&&Oe?n.apply(this,I):(pe=this.thru(ee),me?b?pe.value()[0]:pe.value():pe)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(n){var o=os[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",b=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(b&&!this.__chain__){var T=this.value();return o.apply(Se(T)?T:[],_)}return this[u](function(P){return o.apply(Se(P)?P:[],_)})}}),wr(Pe.prototype,function(n,o){var u=A[o];if(u){var b=u.name+"";Le.call(oi,b)||(oi[b]=[]),oi[b].push({name:o,func:u})}}),oi[As(r,S).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=Yw,Pe.prototype.reverse=Jw,Pe.prototype.value=Qw,A.prototype.at=RS,A.prototype.chain=PS,A.prototype.commit=CS,A.prototype.next=kS,A.prototype.plant=IS,A.prototype.reverse=LS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=MS,A.prototype.first=A.prototype.head,$i&&(A.prototype[$i]=$S),A}),ri=Cw();On?((On.exports=ri)._=ri,mu._=ri):pt._=ri}).call(y$)})(bo,bo.exports)),bo.exports}var Ye=b$();const Pc={FdSave:tt.FdSave,FdWarningDanger:tt.FdWarningDanger,FdInfoCircle:tt.FdInfoCircle,FdInfoBold:tt.FdInfoBold};var Ef=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Ef||{}),Bn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Bn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const zy={[Bn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Bn.DANGER]:{icon:"red-500",button:"primary-dark"},[Bn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ec=({color:e=Bn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=zy[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 F.jsx("button",{autoFocus:i,className:He("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...s,children:r})},w$=({name:e,color:t=Bn.PRIMARY,className:r="w-8 h-8"})=>{const i=Pc[e]||Pc.FdInfoCircle,s=`text-${zy[t].icon}`;return F.jsx(i,{className:He(r,s)})},x$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:l=3e3,views:c,width:f=520,hasOverlay:m=!0,container:y,onClose:p,onEdit:g})=>{const v=w=>{p({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ye.merge(Ye.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=Ye.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),g({id:e,views:S})};return zo.createPortal(F.jsx(Oa,{appear:!0,show:!0,as:W.Fragment,children:F.jsx("div",{className:He("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:()=>v(vi.CANCELED),children:F.jsx(Oa.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:F.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:F.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?F.jsx("div",{className:"flex items-center justify-center",children:F.jsx(w$,{name:i,color:a,className:"w-6 h-6"})}):null,F.jsx(S$,{condition:t,children:F.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),F.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),F.jsx("div",{className:"text-xs text-white",children:Ye.values(c==null?void 0:c.toggles).map(w=>F.jsx("div",{children:F.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[F.jsx(Oy,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),F.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),F.jsx(E$,{warnings:x}),F.jsx("div",{className:"flex items-center gap-4",children:s===Ef.CONFIRM?F.jsxs(F.Fragment,{children:[F.jsx(ec,{autoFocus:!0,color:a,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),F.jsx(ec,{color:a,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):F.jsx(ec,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),y||document.body)},S$=e=>e.condition?F.jsx(F.Fragment,{children:e.children}):null,E$=e=>e.warnings?F.jsx(Oa,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:F.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)=>F.jsx(Oa.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:F.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[F.jsx(tt.FdWarningDanger,{className:He({"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")}),F.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Wy=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Wy||{});const _$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>F.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[F.jsx(tt.FdMinusNaked,{onClick:s,className:He("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),F.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),F.jsx(tt.FdPlusNaked,{onClick:i,className:He("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),O$=$.forwardRef(((e,t)=>$.createElement(En.span,Qe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),A$=O$;function _m(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[Uy]=nf("Tooltip",[Ua]),_f=Ua(),T$=700,[WM,R$]=Uy("TooltipProvider",{isOpenDelayed:!0,delayDuration:T$,onOpen:()=>{},onClose:()=>{}}),[P$,Ka]=Uy("Tooltip"),C$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:l}=e,c=R$("Tooltip",t),f=_f(t),[m,y]=$.useState(null),p=Uv(),g=$.useRef(0),v=l??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=ey({prop:i,defaultProp:s,onChange:C=>{C&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(C)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(g.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{x.current=!0,S(!0)}),v)}),[v,S]);return $.useEffect((()=>()=>window.clearTimeout(g.current)),[]),$.createElement(Yv,f,$.createElement(P$,{scope:t,contentId:p,open:h,stateAttribute:E,trigger:m,onTriggerChange:y,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(g.current),S(!1),w()}),[S,w])},r))},k$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ka("TooltipTrigger",r),a=_f(r),l=Sn(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(Jv,Qe({asChild:!0},a),$.createElement(En.button,Qe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:l,onMouseEnter:qt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:qt(e.onMouseLeave,s.onClose),onMouseDown:qt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:qt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:qt(e.onBlur,s.onClose),onClick:qt(e.onClick,(m=>{m.detail===0&&s.onClose()}))})))})),$$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ka("TooltipContent",e.__scopeTooltip);return $.createElement(tf,{present:r||s.open},$.createElement(I$,Qe({ref:t},i)))})),I$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...l}=e,c=Ka("TooltipContent",r),f=_f(r),m=a?rf:$.Fragment,{onClose:y}=c;return Zv((()=>y())),$.useEffect((()=>(document.addEventListener("tooltip.open",y),()=>document.removeEventListener("tooltip.open",y))),[y]),$.createElement(m,null,$.createElement(L$,{__scopeTooltip:r}),$.createElement(Qv,Qe({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(qv,null,i),$.createElement(A$,{id:c.contentId,role:"tooltip"},s||i)))}));function L$(e){const{__scopeTooltip:t}=e,r=Ka("CheckTriggerMoved",t),i=Kv(r.trigger),s=i==null?void 0:i.left,a=_m(s),l=i==null?void 0:i.top,c=_m(l),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==l)&&f()}),[f,a,c,s,l]),null}const M$=C$,F$=k$,D$=$$;function N$(e){return F.jsxs(M$,{delayDuration:e.delayDuration,open:e.open,children:[F.jsx(F$,{tabIndex:-1,asChild:!0,children:F.jsx("span",{children:e.children})}),F.jsxs(D$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&F.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 Dn=30,ga=500,j$=()=>F.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),z$=e=>{const[t,r]=W.useState(Dn),i=W.useRef(),s=t>Dn,a=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!s&&r(ga),!e.isOpen&&s&&r(Dn)},[e.isOpen]),F.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[F.jsx(jO.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:Dn,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?Dn:ga):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:F.jsx(j$,{})}}),F.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ye.kebabCase(e.path)}`,children:[F.jsxs("div",{className:He("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[F.jsxs("div",{className:"group flex items-center justify-start",children:[F.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),F.jsx("span",{}),e.tipKey?F.jsx(py,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,F.jsx("button",{"data-cy":`contextualPanel-toggle-button-${s?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{s?(r(Dn),e.onClose()):(r(ga),e.onOpen())},children:s?F.jsx(tt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):F.jsx(tt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),F.jsxs(fa,{of:s,children:[F.jsx(fa,{of:e.render,children:e.render}),F.jsx(fa,{of:!e.render,children:e.children})]})]})]})};function By({children:e,viewBox:t="0 0 24 24",...r}){return F.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function Hy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return F.jsx(By,{viewBox:"0 0 24 24",...e,children:F.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function W$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:l,...c}){const f=W.useRef(null),m=i||F.jsx(Hy,{}),y=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const p=y||t,g=["base-checkbox-container",a].join(" ");return F.jsxs("label",{className:g,style:l,"data-invalid":r,children:[F.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:y,...c,"aria-invalid":r||void 0}),F.jsx("span",{className:"base-checkbox-control",children:p&&m&&W.cloneElement(m,{isChecked:y,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&F.jsx("span",{className:"base-checkbox-label",children:s})]})}const U$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s,resetButtonLabel:a="Reset Page"})=>F.jsx("div",{className:"flex h-full w-full items-center justify-center",children:F.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[F.jsxs("div",{className:"relative",children:[F.jsx(tt.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),F.jsx("div",{className:"w-1/2 h-1/2 absolute z-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white"})]}),F.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),F.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),F.jsxs("div",{className:"flex gap-4",children:[i&&F.jsx("button",{className:"text-md rounded border border-primary-dark hover:border-primary-hover bg-primary-dark hover:bg-primary-hover px-3 py-1 text-white focus:outline-none",onClick:i,children:"Open in Text Editor"}),s&&F.jsx("button",{className:"text-md rounded border border-red-500 bg-red-500 hover:bg-red-400 focus:ring-red-500 px-3 py-1 text-white focus:outline-none",onClick:s,children:a}),r&&F.jsx("button",{className:"text-md rounded border border-grey-50 bg-transparent hover:bg-grey-50 text-white hover:text-primary-dark px-3 py-1 focus:outline-none",onClick:r,children:"Close"})]})]})});function B$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const tc=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function rc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function mo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function qy(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 Zy(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 H$(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 Io={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,"-":tc?173:189,"=":tc?61:187,";":tc?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},vr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},wo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},vt={16:!1,18:!1,17:!1,91:!1},Je={};for(let e=1;e<20;e++)Io["f".concat(e)]=111+e;let Ke=[],Po=null,Gy="all";const Zr=new Map,Pi=e=>Io[e.toLowerCase()]||vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),q$=e=>Object.keys(Io).find(t=>Io[t]===e),Z$=e=>Object.keys(vr).find(t=>vr[t]===e);function Ky(e){Gy=e||"all"}function Lo(){return Gy||"all"}function G$(){return Ke.slice(0)}function K$(){return Ke.map(e=>q$(e)||Z$(e)||String.fromCharCode(e))}function V$(){const e=[];return Object.keys(Je).forEach(t=>{Je[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=>Pi(c))})})}),e}function X$(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 Y$(e){return typeof e=="string"&&(e=Pi(e)),Ke.indexOf(e)!==-1}function J$(e,t){let r,i;e||(e=Lo());for(const s in Je)if(Object.prototype.hasOwnProperty.call(Je,s))for(r=Je[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return Of(c)}):i++;Lo()===e&&Ky(t||"all")}function Q$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Pi(e.key));const r=Ke.indexOf(t);if(r>=0&&Ke.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Ke.splice(0,Ke.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in vr)vr[i]===t&&(mr[i]=!1)}}function Vy(e){if(typeof e>"u")Object.keys(Je).forEach(s=>{Array.isArray(Je[s])&&Je[s].forEach(a=>na(a)),delete Je[s]}),Of(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&na(s)});else if(typeof e=="object")e.key&&na(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=""),na({key:e,scope:s,method:a,splitKey:"+"})}}const na=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;Zy(t).forEach(l=>{const c=l.split(s),f=c.length,m=c[f-1],y=m==="*"?"*":Pi(m);if(!Je[y])return;r||(r=Lo());const p=f>1?qy(vr,c):[],g=[];Je[y]=Je[y].filter(v=>{const d=(i?v.method===i:!0)&&v.scope===r&&H$(v.mods,p);return d&&g.push(v.element),!d}),g.forEach(v=>Of(v))})};function Om(e,t,r,i){if(t.element!==i)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in vt)Object.prototype.hasOwnProperty.call(vt,a)&&(!vt[a]&&t.mods.indexOf(+a)>-1||vt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Ke),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Am(e,t){const r=Je["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!mr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Ke.indexOf(i)===-1&&i!==229&&Ke.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=wo[c];e[c]&&Ke.indexOf(f)===-1?Ke.push(f):!e[c]&&Ke.indexOf(f)>-1?Ke.splice(Ke.indexOf(f),1):c==="metaKey"&&e[c]&&(Ke=Ke.filter(m=>m in wo||m===i))}),i in vt){vt[i]=!0;for(const c in vr)if(Object.prototype.hasOwnProperty.call(vr,c)){const f=wo[vr[c]];mr[c]=e[f]}if(!r)return}for(const c in vt)Object.prototype.hasOwnProperty.call(vt,c)&&(vt[c]=e[wo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ke.indexOf(17)===-1&&Ke.push(17),Ke.indexOf(18)===-1&&Ke.push(18),vt[17]=!0,vt[18]=!0);const s=Lo();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Om(e,r[c],s,t);if(!(i in Je))return;const a=Je[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,y=f.key.split(m),p=[];for(let g=0;g<y.length;g++)p.push(Pi(y[g]));p.sort().join("")===Ke.sort().join("")&&Om(e,f,s,t)}}function mr(e,t,r){Ke=[];const i=Zy(e);let s=[],a="all",l=document,c=0,f=!1,m=!0,y="+",p=!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&&(f=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(y=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Vy(e,a);c<i.length;c++)e=i[c].split(y),s=[],e.length>1&&(s=qy(vr,e)),e=e[e.length-1],e=e==="*"?"*":Pi(e),e in Je||(Je[e]=[]),Je[e].push({keyup:f,keydown:m,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:y,element:l});if(typeof l<"u"&&window){if(!Zr.has(l)){const v=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Am(d,l)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Am(d,l),Q$(d)};Zr.set(l,{keydownListener:v,keyupListenr:x,capture:p}),rc(l,"keydown",v,p),rc(l,"keyup",x,p)}if(!Po){const v=()=>{Ke=[]};Po={listener:v,capture:p},rc(window,"focus",v,p)}}}function eI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Je).forEach(r=>{Je[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Of(e){const t=Object.values(Je).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Zr.get(e)||{};i&&s&&(mo(e,"keyup",s,a),mo(e,"keydown",i,a),Zr.delete(e))}if((t.length<=0||Zr.size<=0)&&(Object.keys(Zr).forEach(s=>{const{keydownListener:a,keyupListenr:l,capture:c}=Zr.get(s)||{};a&&l&&(mo(s,"keyup",l,c),mo(s,"keydown",a,c),Zr.delete(s))}),Zr.clear(),Object.keys(Je).forEach(s=>delete Je[s]),Po)){const{listener:s,capture:a}=Po;mo(window,"focus",s,a),Po=null}}const nc={getPressedKeyString:K$,setScope:Ky,getScope:Lo,deleteScope:J$,getPressedKeyCodes:G$,getAllKeyCodes:V$,isPressed:Y$,filter:X$,trigger:eI,unbind:Vy,keyMap:Io,modifier:vr,modifierMap:wo};for(const e in nc)Object.prototype.hasOwnProperty.call(nc,e)&&(mr[e]=nc[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 tI(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=()=>{mr.unbind(e,a)};W.useEffect(()=>(mr(e,r,a),l),[e,r,a])}const rI=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 nI(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function iI(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function oI(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function sI(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 Xy=W.createContext(""),aI=e=>F.jsx(Xy.Provider,{value:e.value,children:e.children}),uI=()=>{const e=W.useContext(Xy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function lI(e){const[t,r]=W.useState(e),i=W.useMemo(()=>cI(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function cI(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ye.upperFirst(s)}`]:a=>t(l=>({...l,[s]:a}))}),{})}const fI=(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 yt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var s=yI[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 Ti(e){return!!e&&!!e[Kt]}function Gn(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)===bI})(e)||Array.isArray(e)||!!e[Lm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Lm])||Af(e)||Tf(e))}function Mo(e,t,r){r===void 0&&(r=!1),Ci(e)===0?(r?Object.keys:kf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Ci(e){var t=e[Kt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Af(e)?2:Tf(e)?3:0}function Cc(e,t){return Ci(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dI(e,t){return Ci(e)===2?e.get(t):e[t]}function Yy(e,t,r){var i=Ci(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function pI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Af(e){return mI&&e instanceof Map}function Tf(e){return vI&&e instanceof Set}function Nn(e){return e.o||e.t}function Rf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wI(e);delete t[Kt];for(var r=kf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Fo(e,t){return t===void 0&&(t=!1),Pf(e)||Ti(e)||!Gn(e)||(Ci(e)>1&&(e.set=e.add=e.clear=e.delete=hI),Object.freeze(e),t&&Mo(e,(function(r,i){return Fo(i,!0)}),!0)),e}function hI(){yt(2)}function Pf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kr(e){var t=xI[e];return t||yt(18,e),t}function Tm(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function ic(e,t){t&&(kr("Patches"),e.u=[],e.s=[],e.v=t)}function Pa(e){kc(e),e.p.forEach(gI),e.p=null}function kc(e){e===Ri&&(Ri=e.l)}function Rm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function gI(e){var t=e[Kt];t.i===0||t.i===1?t.j():t.g=!0}function oc(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||kr("ES5").S(t,e,i),i?(r[Kt].P&&(Pa(t),yt(4)),Gn(e)&&(e=Ca(t,e),t.l||ka(t,e)),t.u&&kr("Patches").M(r[Kt].t,e,t.u,t.s)):e=Ca(t,r,[]),Pa(t),t.u&&t.v(t.u,t.s),e!==Qy?e:void 0}function Ca(e,t,r){if(Pf(t))return t;var i=t[Kt];if(!i)return Mo(t,(function(c,f){return Pm(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return ka(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Rf(i.k):i.o,a=s,l=!1;i.i===3&&(a=new Set(s),s.clear(),l=!0),Mo(a,(function(c,f){return Pm(e,i,s,c,f,r,l)})),ka(e,s,!1),r&&e.u&&kr("Patches").N(i,r,e.u,e.s)}return i.o}function Pm(e,t,r,i,s,a,l){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ti(s)){var c=Ca(e,s,a&&t&&t.i!==3&&!Cc(t.R,i)?a.concat(i):void 0);if(Yy(r,i,c),!Ti(c))return;e.m=!1}else l&&r.add(s);if(Gn(s)&&!Pf(s)){if(!e.h.D&&e._<1)return;Ca(e,s),t&&t.A.l||ka(e,s)}}function ka(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function sc(e,t){var r=e[Kt];return(r?Nn(r):e)[t]}function Cm(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 $c(e){e.P||(e.P=!0,e.l&&$c(e.l))}function ac(e){e.o||(e.o=Rf(e.t))}function Ic(e,t,r){var i=Af(t)?kr("MapSet").F(t,r):Tf(t)?kr("MapSet").T(t,r):e.O?(function(s,a){var l=Array.isArray(s),c={i:l?1:0,A:a?a.A:Tm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,m=Lc;l&&(f=[c],m=xo);var y=Proxy.revocable(f,m),p=y.revoke,g=y.proxy;return c.k=g,c.j=p,g})(t,r):kr("ES5").J(t,r);return(r?r.A:Tm()).p.push(i),i}function Jy(e){return Ti(e)||yt(22,e),(function t(r){if(!Gn(r))return r;var i,s=r[Kt],a=Ci(r);if(s){if(!s.P&&(s.i<4||!kr("ES5").K(s)))return s.t;s.I=!0,i=km(r,a),s.I=!1}else i=km(r,a);return Mo(i,(function(l,c){s&&dI(s.t,l)===c||Yy(i,l,t(c))})),a===3?new Set(i):i})(e)}function km(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Rf(e)}var $m,Ri,Cf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mI=typeof Map<"u",vI=typeof Set<"u",Im=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qy=Cf?Symbol.for("immer-nothing"):(($m={})["immer-nothing"]=!0,$m),Lm=Cf?Symbol.for("immer-draftable"):"__$immer_draftable",Kt=Cf?Symbol.for("immer-state"):"__$immer_state",yI={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"},bI=""+Object.prototype.constructor,kf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wI=Object.getOwnPropertyDescriptors||function(e){var t={};return kf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},xI={},Lc={get:function(e,t){if(t===Kt)return e;var r=Nn(e);if(!Cc(r,t))return(function(s,a,l){var c,f=Cm(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||!Gn(i)?i:i===sc(e.t,t)?(ac(e),e.o[t]=Ic(e.A.h,i,e)):i},has:function(e,t){return t in Nn(e)},ownKeys:function(e){return Reflect.ownKeys(Nn(e))},set:function(e,t,r){var i=Cm(Nn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=sc(Nn(e),t),a=s==null?void 0:s[Kt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(pI(r,s)&&(r!==void 0||Cc(e.t,t)))return!0;ac(e),$c(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 sc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ac(e),$c(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Nn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){yt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yt(12)}},xo={};Mo(Lc,(function(e,t){xo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&yt(13),xo.set.call(this,e,t,void 0)},xo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&yt(14),Lc.set.call(this,e[0],t,r,e[0])};var SI=(function(){function e(r){var i=this;this.O=Im,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"&&yt(6),l!==void 0&&typeof l!="function"&&yt(7),Gn(s)){var y=Rm(i),p=Ic(i,s,void 0),g=!0;try{m=a(p),g=!1}finally{g?Pa(y):kc(y)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(d){return ic(y,l),oc(d,y)}),(function(d){throw Pa(y),d})):(ic(y,l),oc(m,y))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===Qy&&(m=void 0),i.D&&Fo(m,!0),l){var v=[],x=[];kr("Patches").M(s,m,v,x),l(v,x)}return m}yt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(m){for(var y=arguments.length,p=Array(y>1?y-1:0),g=1;g<y;g++)p[g-1]=arguments[g];return i.produceWithPatches(m,(function(v){return s.apply(void 0,[v].concat(p))}))};var l,c,f=i.produce(s,a,(function(m,y){l=m,c=y}));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){Gn(r)||yt(8),Ti(r)&&(r=Jy(r));var i=Rm(this),s=Ic(this,r,void 0);return s[Kt].C=!0,kc(i),s},t.finishDraft=function(r,i){var s=r&&r[Kt];process.env.NODE_ENV!=="production"&&(s&&s.C||yt(9),s.I&&yt(10));var a=s.A;return ic(a,i),oc(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Im&&yt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var l=kr("Patches").$;return Ti(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Vt=new SI,EI=Vt.produce;Vt.produceWithPatches.bind(Vt);Vt.setAutoFreeze.bind(Vt);Vt.setUseProxies.bind(Vt);Vt.applyPatches.bind(Vt);Vt.createDraft.bind(Vt);Vt.finishDraft.bind(Vt);function _I(e){var t=W.useState(function(){return Fo(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?EI(i):Fo(i))},[])]}const OI=process.env.NODE_ENV==="development",uc=OI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,AI=(e,t,r)=>{const[i,s]=_I(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=uc==null?void 0:uc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var m,y;(y=(m=a.current)==null?void 0:m.disconnect)==null||y.call(m)}},[]);const l=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(l).reduce((f,m)=>({...f,[m]:y=>(s(p=>{var g;l[m](p,y),(g=a.current)==null||g.send({type:l[m].name},Jy(p))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Vr(e){return typeof e=="function"}function e0(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 lc=e0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
202
|
-
`+r.map(function(i
|
|
203
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Mc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Va=(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=vc(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 y=this.initialTeardown;if(Vr(y))try{y()}catch(d){a=d instanceof lc?d.errors:[d]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var g=vc(p),v=g.next();!v.done;v=g.next()){var x=v.value;try{Mm(x)}catch(d){a=a??[],d instanceof lc?a=Ea(Ea([],yc(a)),yc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}}if(a)throw new lc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Mm(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)&&Mc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Mc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),t0=Va.EMPTY;function r0(e){return e instanceof Va||e&&"closed"in e&&Vr(e.remove)&&Vr(e.add)&&Vr(e.unsubscribe)}function Mm(e){Vr(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,Ea([e,t],yc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function PI(e){RI.setTimeout(function(){throw e})}function Fm(){}function ma(e){e()}var n0=(function(e){za(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,r0(r)&&r.add(i)):i.destination=$I,i}return t.create=function(r,i,s){return new Fc(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})(Va),CI=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){ia(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ia(i)}else ia(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ia(r)}},e})(),Fc=(function(e){za(t,e);function t(r,i,s){var a=e.call(this)||this,l;return Vr(r)||!r?l={next:r??void 0,error:i??void 0,complete:s??void 0}:l=r,a.destination=new CI(l),a}return t})(n0);function ia(e){PI(e)}function kI(e){throw e}var $I={closed:!0,next:Fm,error:kI,complete:Fm},II=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function LI(e){return e}function MI(e){return e.length===0?LI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Dm=(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=DI(t)?t:new Fc(t,r,i);return ma(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=Nm(r),new r(function(s,a){var l=new Fc({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[II]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return MI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Nm(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 Nm(e){var t;return(t=e??TI.Promise)!==null&&t!==void 0?t:Promise}function FI(e){return e&&Vr(e.next)&&Vr(e.error)&&Vr(e.complete)}function DI(e){return e&&e instanceof n0||FI(e)&&r0(e)}var NI=e0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Lr=(function(e){za(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 jm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new NI},t.prototype.next=function(r){var i=this;ma(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=vc(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;ma(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;ma(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?t0:(this.currentObservers=null,c.push(r),new Va(function(){i.currentObservers=null,Mc(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 Dm;return r.source=this,r},t.create=function(r,i){return new jm(r,i)},t})(Dm),jm=(function(e){za(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:t0},t})(Lr),i0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(i0||{}),o0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(o0||{});const jI=new Lr,zI=new Lr,s0=new Lr;var a0=(e=>(e.SAVE_ALL="save-all",e))(a0||{});const WI=new Lr;var u0=(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))(u0||{});const UI=new Lr;var l0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(l0||{});const BI=new Lr,HI=new Lr;var Do=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Do||{});const $a=new Lr,qI=new Lr,$f=255;var If=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${$f} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(If||{});function c0(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>$f)throw new Error(If.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function ZI(e){if(!e)return null;if(typeof e=="string")try{c0(e)}catch(t){return t.message}}function GI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ye.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ye.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function KI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Xa(e){const{PLACEHOLDER_PREFIX:t,counter:r}=KI();let i=r;const s=[],a="@!",l=y=>(s.push(y),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(y,p,g)=>p+l(g)),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 y=0;y<s.length;y++){const g=`${t}${y}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),v=new RegExp(g,"g");m=m.replace(v,s[y])}return m}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const bn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Xe=(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))(Xe||{}),_n=(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))(_n||{}),Mf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Mf||{});const f0="roles.json",d0="qodlyApp.json",VI="model.4DModel",p0="HTTPHandlers.json",h0="Shared/i18n.json";function XI(e){const t=Ff(e);switch(t){case Xe.SETTINGS:return{filename:"Settings",type:t};case Xe.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Xe.ROLES:return{filename:"Roles & Privileges",type:t};case Xe.LOCALIZATION:return{filename:"Localization",type:t};case Xe.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Ff(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Xe.MODEL;case r==="WebForm":return Xe.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===bn.METHODS):return Xe.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===bn.CLASSES):return Xe.CLASS;case e===f0:return Xe.ROLES;case e===p0:return Xe.HTTP_HANDLERS;case e===d0:return Xe.SETTINGS;case e===h0:return Xe.LOCALIZATION;default:return Xe.TEXT}}function YI(e,t=!1){switch(e){case bn.REPORTS:case"report":return"QoDoc";case bn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case bn.CLASSES:case bn.METHODS:return t?"4qs":"4dm";default:return""}}function JI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function QI(e,t,r){switch(t){case Xe.MOBILEFORM:return`${e}.MForm`;case Xe.WEBFORM:return`${e}.WebForm`;case Xe.REPORT:return`${e}.QoDoc`;case Xe.METHOD:case Xe.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class g0{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 Df(){const e=new g0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const m0=Ye.curry((e,t,r)=>e&&Ye.get(r,e)===t),e2=Ye.curry((e,t,r)=>Ye.get(r,e)!==t),t2=Ye.curry((e,t)=>Ye.get(t,"id")!==e),r2=Ye.curry((e,t)=>Ye.get(t,"id")===e),n2=Ye.curry((e,t)=>Ye.get(t,"path")===e);function i2(e="id",t,r){return r.findIndex(m0(e,t))!==-1}function v0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function o2(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function s2(e=""){const t=e.trim().split(":")||[];let r="",i="";return t.length>1?(r=t[1],i=t[0]):r=t[0],{id:r,namespace:i,root:r.split(".").filter(Boolean)[0],original:i?`${i}:${r}`:r,parts:t}}function y0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function a2(e){return e.type==="object"}function b0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function w0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!y0(e)}function u2(e){return b0(e)||w0(e)}function l2(e){return e.applyTo==="dataStore"}function c2(e){return e.applyTo==="dataClass"}function f2(e){return e.applyTo==="entity"}function d2(e){return e.applyTo==="entityCollection"}function p2(e){return e.type==="entity"}function h2(e){return e.type==="entitysel"}function x0(e){return e.dataType==="array"}function S0(e){return e.dataType==="object"}function E0(e){return e.type==="scalar"}function g2(e){return x0(e)||S0(e)||E0(e)}const m2=e=>e!=null&&e.type==="entity",v2=e=>e.type==="entitysel",y2=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",b2=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",w2=e=>e.type==="scalar"&&e.dataType==="date",x2=(e,t)=>(e||"")===(t||"");function S2(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function E2(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const So="Qodly",_0="Location",O0="UserLanguage",A0="Title",Ia={[So]:[{id:A0,dataType:"string",type:"scalar",namespace:So,initialValue:""},{id:_0,dataType:"object",type:"scalar",namespace:So,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:O0,dataType:"object",type:"scalar",namespace:So,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var No=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(No||{}),T0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(T0||{}),Nf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Nf||{});const _2={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function O2(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:No.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Nf.table}},...i}}function R0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[No.capable,No.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 A2(e,t,r=!1){const i=Ye.isString(t)?t:R0(t);if(!r&&P0(e))return e;const s=C0(e);return`//%attributes = ${i}\r
|
|
204
|
-
${s}`}function P0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function C0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const T2=()=>Qc.uuid().replaceAll("-","").toUpperCase(),R2=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");function k0(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function $0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function P2(e,t){const r=k0(e);return $0(r,t)}function C2(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const at="/rest/$designer",Go="/rest/$designer-ext";function k2(...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 Dc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Ne(e,t){var s;$a.next({action:Do.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))&&$a.next({action:Do.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Dc(e,r,l)}catch{a=new Dc(e,r)}throw a.log(),a}return await r.json()}function $2(e){return $a.next({action:Do.REQUEST_SENT}),e}var Er={},mt={},zm;function zn(){if(zm)return mt;zm=1;var e=mt.ValidationError=function(d,w,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(C,U){return C+c(U)},"instance")):S!==void 0&&(this.property=S),d&&(this.message=d),h){var O=h.$id||h.id;this.schema=O||h}w!==void 0&&(this.instance=w),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=mt.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}}),mt.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var s=mt.SchemaError=function x(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=mt.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 v(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=v(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=mt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var 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"],mt.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=mt.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};mt.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]=p(x[h],w):x.indexOf(w)===-1&&d.push(w)}function m(x,d,w){d[w]=x[w]}function y(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=p(x[h],d[h]):w[h]=d[h]}function p(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(y.bind(null,x,d,h))),h}mt.deepMerge=p,mt.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 g(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}mt.encodePath=function(d){return d.map(g).join("")},mt.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},mt.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var v=mt.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 mt}var cc,Wm;function I2(){if(Wm)return cc;Wm=1;var e=zn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=i.validators={};s.type=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=Array.isArray(g.type)?g.type:[g.type];if(!w.some(this.testType.bind(this,p,g,v,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(y,p,g,v,x){var d=p.throwError,w=p.throwAll;p.throwError=!1,p.throwAll=!1;var h=this.validateSchema(y,x,p,g);return p.throwError=d,p.throwAll=w,!h.valid&&v instanceof Function&&v(h),h.valid}s.anyOf=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x),w=new t(p,g,v,x);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,p,v,x,function(S){w.importErrors(S)}))){var h=g.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+"]"});v.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},s.allOf=function(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var d=new t(p,g,v,x),w=this;return g.allOf.forEach(function(h,S){var E=w.validateSchema(p,h,v,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(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var d=new t(p,g,v,x),w=new t(p,g,v,x),h=g.oneOf.filter(a.bind(this,p,v,x,function(E){w.importErrors(E)})).length,S=g.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&&(v.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(p,g,v,x){if(p===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,p,v,x,null,g.if),w=new t(p,g,v,x),h;if(d){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(p,g.then,v,x.makeChild(g.then)),w.importErrors(h)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(p,g.else,v,x.makeChild(g.else)),w.importErrors(h)}return w};function l(y,p){if(Object.hasOwnProperty.call(y,p))return y[p];if(p in y){for(;y=Object.getPrototypeOf(y);)if(Object.propertyIsEnumerable.call(y,p))return y[p]}}s.propertyNames=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in p)if(l(p,h)!==void 0){var S=this.validateSchema(h,w,v,x.makeChild(w));d.importErrors(S)}return d}},s.properties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.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 v.preValidateProperty=="function"&&v.preValidateProperty(p,h,S,v,x);var E=l(p,h),R=this.validateSchema(E,S,v,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(y,p,g,v,x,d){if(this.types.object(y)&&!(p.properties&&p.properties[x]!==void 0))if(p.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=p.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(y,x,w,g,v);var h=this.validateSchema(y[x],w,g,v.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}s.patternProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=g.patternProperties||{};for(var h in p){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 v.preValidateProperty=="function"&&v.preValidateProperty(p,h,R,v,x);var C=this.validateSchema(p[h],R,v,x.makeChild(R,h));C.instance!==d.instance[h]&&(d.instance[h]=C.instance),d.importErrors(C)}}}S&&c.call(this,p,g,v,x,h,d)}return d}},s.additionalProperties=function(p,g,v,x){if(this.types.object(p)){if(g.patternProperties)return null;var d=new t(p,g,v,x);for(var w in p)c.call(this,p,g,v,x,w,d);return d}},s.minProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length>=g.minProperties||d.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),d}},s.maxProperties=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x),w=Object.keys(p);return w.length<=g.maxProperties||d.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),d}},s.items=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.items!==void 0){var w=new t(p,g,v,x);return p.every(function(h,S){if(Array.isArray(g.items))var E=g.items[S]===void 0?g.additionalItems:g.items[S];else var E=g.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,v,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(p,g,v,x){var d=this;if(this.types.array(p)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(p,g,v,x),h=p.some(function(S,E){var R=d.validateSchema(S,g.contains,v,x.makeChild(g.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?p>g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):p>=g.minimum||d.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),d}},s.maximum=function(p,g,v,x){if(this.types.number(p)){var d=new t(p,g,v,x);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?p<g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):p<=g.maximum||d.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),d}},s.exclusiveMinimum=function(p,g,v,x){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p>g.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),d}},s.exclusiveMaximum=function(p,g,v,x){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(p)){var d=new t(p,g,v,x),w=p<g.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),d}};var f=function(p,g,v,x,d,w){if(this.types.number(p)){var h=g[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(p,g,v,x),E=e.getDecimalPlaces(p),R=e.getDecimalPlaces(h),O=Math.max(E,R),C=Math.pow(10,O);return Math.round(p*C)%Math.round(h*C)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};s.multipleOf=function(p,g,v,x){return f.call(this,p,g,v,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(p,g,v,x){return f.call(this,p,g,v,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(p,g,v,x){var d=new t(p,g,v,x);return p===void 0&&g.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(g.required)&&g.required.forEach(function(w){l(p,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},s.pattern=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=g.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return p.match(h)||d.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),d}},s.format=function(p,g,v,x){if(p!==void 0){var d=new t(p,g,v,x);return!d.disableFormat&&!e.isFormat(p,g.format,this)&&d.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),d}},s.minLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h>=g.minLength||d.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),d}},s.maxLength=function(p,g,v,x){if(this.types.string(p)){var d=new t(p,g,v,x),w=p.match(/[\uDC00-\uDFFF]/g),h=p.length-(w?w.length:0);return h<=g.maxLength||d.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),d}},s.minItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length>=g.minItems||d.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),d}},s.maxItems=function(p,g,v,x){if(this.types.array(p)){var d=new t(p,g,v,x);return p.length<=g.maxItems||d.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),d}};function m(y,p,g){var v,x=g.length;for(v=p+1,x;v<x;v++)if(e.deepCompareStrict(y,g[v]))return!1;return!0}return s.uniqueItems=function(p,g,v,x){if(g.uniqueItems===!0&&this.types.array(p)){var d=new t(p,g,v,x);return p.every(m)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(p,g,v,x){if(this.types.object(p)){var d=new t(p,g,v,x);for(var w in g.dependencies)if(p[w]!==void 0){var h=g.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){p[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(p,h,v,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(p,g,v,x){if(p===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var d=new t(p,g,v,x);return g.enum.some(e.deepCompareStrict.bind(null,p))||d.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),d},s.const=function(p,g,v,x){if(p===void 0)return null;var d=new t(p,g,v,x);return e.deepCompareStrict(g.const,p)||d.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),d},s.not=s.disallow=function(p,g,v,x){var d=this;if(p===void 0)return null;var w=new t(p,g,v,x),h=g.not||g.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(p,g,v,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},cc=i,cc}var oa={},Um;function Nc(){if(Um)return oa;Um=1;var e=zn();oa.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return oa.scan=function(i,s){function a(y,p){if(!p||typeof p!="object")return;if(p.$ref){let d=e.resolveUrl(y,p.$ref);m[d]=m[d]?m[d]+1:0;return}var g=p.$id||p.id;let v=e.resolveUrl(y,g);var x=g?v:y;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],p))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=p,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=p)}l(x+"/items",Array.isArray(p.items)?p.items:[p.items]),l(x+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),a(x+"/additionalItems",p.additionalItems),c(x+"/properties",p.properties),a(x+"/additionalProperties",p.additionalProperties),c(x+"/definitions",p.definitions),c(x+"/patternProperties",p.patternProperties),c(x+"/dependencies",p.dependencies),l(x+"/disallow",p.disallow),l(x+"/allOf",p.allOf),l(x+"/anyOf",p.anyOf),l(x+"/oneOf",p.oneOf),a(x+"/not",p.not)}function l(y,p){if(Array.isArray(p))for(var g=0;g<p.length;g++)a(y+"/"+g,p[g])}function c(y,p){if(!(!p||typeof p!="object"))for(var g in p)a(y+"/"+g,p[g])}var f={},m={};return a(i,s),new t(f,m)},oa}var fc,Bm;function L2(){if(Bm)return fc;Bm=1;var e=I2(),t=zn(),r=Nc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",f=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(y),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(g,v){var x=this;if(!g)return null;var d=r(v||c,g),w=v||g.$id||g.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(g,v){if(Array.isArray(v))for(var x=0;x<v.length;x++)this.addSubSchema(g,v[x])},f.prototype.addSubSchemaObject=function(g,v){if(!(!v||typeof v!="object"))for(var x in v)this.addSubSchema(g,v[x])},f.prototype.setSchemas=function(g){this.schemas=g},f.prototype.getSchema=function(g){return this.schemas[g]},f.prototype.validate=function(g,v,x,d){if(typeof v!="boolean"&&typeof v!="object"||v===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=v.$id||v.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new l(v,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=v);var S=r(h,v);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&g===void 0){var O=new i(g,v,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(g,v,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function m(p){var g=typeof p=="string"?p:p.$ref;return typeof g=="string"?g:!1}f.prototype.validateSchema=function(g,v,x,d){var w=new i(g,v,x,d);if(typeof v=="boolean")v===!0?v={}:v===!1&&(v={type:[]});else if(!v)throw new Error("schema is undefined");if(v.extends)if(Array.isArray(v.extends)){var h={schema:v,ctx:d};v.extends.forEach(this.schemaTraverser.bind(this,h)),v=h.schema,h.schema=null,h.ctx=null,h=null}else v=t.deepMerge(v,this.superResolve(v.extends,d));var S=m(v);if(S){var E=this.resolve(v,S,d),R=new l(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(g,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var C in v)if(!e.ignoreProperties[C]&&O.indexOf(C)<0){var U=null,M=this.attributes[C];if(M)U=M.call(this,g,v,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+C,v);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var D=x.rewrite.call(this,g,v,x,d);w.instance=D}return w},f.prototype.schemaTraverser=function(g,v){g.schema=t.deepMerge(g.schema,this.superResolve(v,g.ctx))},f.prototype.superResolve=function(g,v){var x=m(g);return x?this.resolve(g,x,v).subschema:g},f.prototype.resolve=function(g,v,x){if(v=x.resolve(v),x.schemas[v])return{subschema:x.schemas[v],switchSchema:v};let w=new URL(v,"thismessage::/").hash;var h=w&&w.length&&v.substr(0,v.length-w.length);if(!h||!x.schemas[h])throw new a("no such schema <"+v+">",g);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+h+">",g);return{subschema:S,switchSchema:v}},f.prototype.testType=function(g,v,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,g);if(w&&typeof w=="object"){var h=this.validateSchema(g,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var y=f.prototype.types={};return y.string=function(g){return typeof g=="string"},y.number=function(g){return typeof g=="number"&&isFinite(g)},y.integer=function(g){return typeof g=="number"&&g%1===0},y.boolean=function(g){return typeof g=="boolean"},y.array=function(g){return Array.isArray(g)},y.null=function(g){return g===null},y.date=function(g){return g instanceof Date},y.any=function(g){return!0},y.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},fc=f,fc}var Hm;function M2(){if(Hm)return Er;Hm=1;var e=Er.Validator=L2();return Er.ValidatorResult=zn().ValidatorResult,Er.ValidatorResultError=zn().ValidatorResultError,Er.ValidationError=zn().ValidationError,Er.SchemaError=zn().SchemaError,Er.SchemaScanResult=Nc().SchemaScanResult,Er.scan=Nc().scan,Er.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},Er}var F2=M2();const I0=(e,t,r)=>{const i=e instanceof RegExp?qm(e,r):e,s=t instanceof RegExp?qm(t,r):t,a=i!==null&&s!=null&&D2(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)}},qm=(e,t)=>{const r=t.match(e);return r?r[0]:null},D2=(e,t,r)=>{let i,s,a,l,c,f=r.indexOf(e),m=r.indexOf(t,f+1),y=f;if(f>=0&&m>0){if(e===t)return[f,m];for(i=[],a=r.length;y>=0&&!c;){if(y===f)i.push(y),f=r.indexOf(e,y+1);else if(i.length===1){const p=i.pop();p!==void 0&&(c=[p,m])}else s=i.pop(),s!==void 0&&s<a&&(a=s,l=m),m=r.indexOf(t,y+1);y=f<m&&f>=0?f:m}i.length&&l!==void 0&&(c=[a,l])}return c},L0="\0SLASH"+Math.random()+"\0",M0="\0OPEN"+Math.random()+"\0",jf="\0CLOSE"+Math.random()+"\0",F0="\0COMMA"+Math.random()+"\0",D0="\0PERIOD"+Math.random()+"\0",N2=new RegExp(L0,"g"),j2=new RegExp(M0,"g"),z2=new RegExp(jf,"g"),W2=new RegExp(F0,"g"),U2=new RegExp(D0,"g"),B2=/\\\\/g,H2=/\\{/g,q2=/\\}/g,Z2=/\\,/g,G2=/\\\./g,K2=1e5;function dc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function V2(e){return e.replace(B2,L0).replace(H2,M0).replace(q2,jf).replace(Z2,F0).replace(G2,D0)}function X2(e){return e.replace(N2,"\\").replace(j2,"{").replace(z2,"}").replace(W2,",").replace(U2,".")}function N0(e){if(!e)return[""];const t=[],r=I0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,l=i.split(",");l[l.length-1]+="{"+s+"}";const c=N0(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function Y2(e,t={}){if(!e)return[];const{max:r=K2}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Eo(V2(e),r,!0).map(X2)}function J2(e){return"{"+e+"}"}function Q2(e){return/^-?0\d/.test(e)}function eL(e,t){return e<=t}function tL(e,t){return e>=t}function Eo(e,t,r){const i=[],s=I0("{","}",e);if(!s)return[e];const a=s.pre,l=s.post.length?Eo(s.post,t,!1):[""];if(/\$$/.test(s.pre))for(let c=0;c<l.length&&c<t;c++){const f=a+"{"+s.body+"}"+l[c];i.push(f)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),m=c||f,y=s.body.indexOf(",")>=0;if(!m&&!y)return s.post.match(/,(?!,).*\}/)?(e=s.pre+"{"+s.body+jf+s.post,Eo(e,t,!0)):[e];let p;if(m)p=s.body.split(/\.\./);else if(p=N0(s.body),p.length===1&&p[0]!==void 0&&(p=Eo(p[0],t,!1).map(J2),p.length===1))return l.map(v=>s.pre+p[0]+v);let g;if(m&&p[0]!==void 0&&p[1]!==void 0){const v=dc(p[0]),x=dc(p[1]),d=Math.max(p[0].length,p[1].length);let w=p.length===3&&p[2]!==void 0?Math.max(Math.abs(dc(p[2])),1):1,h=eL;x<v&&(w*=-1,h=tL);const E=p.some(Q2);g=[];for(let R=v;h(R,x);R+=w){let O;if(f)O=String.fromCharCode(R),O==="\\"&&(O="");else if(O=String(R),E){const C=d-O.length;if(C>0){const U=new Array(C+1).join("0");R<0?O="-"+U+O.slice(1):O=U+O}}g.push(O)}}else{g=[];for(let v=0;v<p.length;v++)g.push.apply(g,Eo(p[v],t,!1))}for(let v=0;v<g.length;v++)for(let x=0;x<l.length&&i.length<t;x++){const d=a+g[v]+l[x];(!r||m||d)&&i.push(d)}}return i}const rL=1024*64,La=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>rL)throw new TypeError("pattern is too long")},nL={"[: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]},vo=e=>e.replace(/[[\]\\-]/g,"\\$&"),iL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zm=e=>e.join(""),oL=(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,y=r,p="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){m=!0,a++;continue}if(d==="]"&&l&&!f){y=a+1;break}if(l=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(nL))if(e.startsWith(w,a)){if(p)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(h):i.push(h),c=c||S;continue e}}if(f=!1,p){d>p?i.push(vo(p)+"-"+vo(d)):d===p&&i.push(vo(d)),p="",a++;continue}if(e.startsWith("-]",a+1)){i.push(vo(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){p=d,a+=2;continue}i.push(vo(d)),a++}if(y<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[iL(d),!1,y-r,!1]}const g="["+(m?"^":"")+Zm(i)+"]",v="["+(m?"":"^")+Zm(s)+"]";return[i.length&&s.length?"("+g+"|"+v+")":i.length?g:v,c,y-r,!0]},_o=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Lt;const sL=new Set(["!","?","+","*","@"]),jc=e=>sL.has(e),Gm=e=>jc(e.type),aL=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),uL=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),lL=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Km=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),cL="(?!(?:^|/)\\.\\.?(?:$|/))",sa="(?!\\.)",fL=new Set(["[","."]),dL=new Set(["..","."]),pL=new Set("().*{}+?[]^$\\!"),hL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),zf="[^/]",Vm=zf+"*?",Xm=zf+"+?";let gL=0;var st,dt,Kr,we,Ge,mn,Wn,vn,Or,Ar,xi,Ie,j0,wn,va,z0,zc,ya,W0,Wc,U0,B0,H0,ba,Uc,q0;class Ya{constructor(t,r,i={}){gt(this,Ie);ye(this,"type");gt(this,st);gt(this,dt);gt(this,Kr,!1);gt(this,we,[]);gt(this,Ge);gt(this,mn);gt(this,Wn);gt(this,vn,!1);gt(this,Or);gt(this,Ar);gt(this,xi,!1);ye(this,"id",++gL);this.type=t,t&&je(this,dt,!0),je(this,Ge,r),je(this,st,Y(this,Ge)?Y(Y(this,Ge),st):this),je(this,Or,Y(this,st)===this?i:Y(Y(this,st),Or)),je(this,Wn,Y(this,st)===this?[]:Y(Y(this,st),Wn)),t==="!"&&!Y(Y(this,st),vn)&&Y(this,Wn).push(this),je(this,mn,Y(this,Ge)?Y(Y(this,Ge),we).length:0)}get depth(){var t;return(((t=Y(this,Ge))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:Y(this,st).id,parent:(t=Y(this,Ge))==null?void 0:t.id,depth:this.depth,partsLength:Y(this,we).length,parts:Y(this,we)}}get hasMagic(){if(Y(this,dt)!==void 0)return Y(this,dt);for(const t of Y(this,we))if(typeof t!="string"&&(t.type||t.hasMagic))return je(this,dt,!0);return Y(this,dt)}toString(){return Y(this,Ar)!==void 0?Y(this,Ar):this.type?je(this,Ar,this.type+"("+Y(this,we).map(t=>String(t)).join("|")+")"):je(this,Ar,Y(this,we).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Lt&&Y(r,Ge)===this))throw new Error("invalid part: "+r);Y(this,we).push(r)}}toJSON(){var r;const t=this.type===null?Y(this,we).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Y(this,we).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Y(this,st)||Y(Y(this,st),vn)&&((r=Y(this,Ge))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Y(this,st)===this)return!0;if(!((r=Y(this,Ge))!=null&&r.isStart()))return!1;if(Y(this,mn)===0)return!0;const t=Y(this,Ge);for(let i=0;i<Y(this,mn);i++){const s=Y(t,we)[i];if(!(s instanceof Lt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(Y(this,st)===this||((r=Y(this,Ge))==null?void 0:r.type)==="!")return!0;if(!((i=Y(this,Ge))!=null&&i.isEnd()))return!1;if(!this.type)return(s=Y(this,Ge))==null?void 0:s.isEnd();const t=Y(this,Ge)?Y(Y(this,Ge),we).length:0;return Y(this,mn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Lt(this.type,t);for(const i of Y(this,we))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Lt(null,void 0,r);return de(s=Lt,wn,va).call(s,t,i,0,r,0),i}toMMPattern(){if(this!==Y(this,st))return Y(this,st).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||Y(this,dt)||Y(this,Or).nocase&&!Y(this,Or).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(Y(this,Or).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return Y(this,Or)}toRegExpSource(t){var f;const r=t??!!Y(this,Or).dot;if(Y(this,st)===this&&(de(this,Ie,ba).call(this),de(this,Ie,j0).call(this)),!Gm(this)){const m=this.isStart()&&this.isEnd()&&!Y(this,we).some(x=>typeof x!="string"),y=Y(this,we).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?de(E=Lt,wn,q0).call(E,x,Y(this,dt),m):x.toRegExpSource(t);return je(this,dt,Y(this,dt)||h),je(this,Kr,Y(this,Kr)||S),d}).join("");let p="";if(this.isStart()&&typeof Y(this,we)[0]=="string"&&!(Y(this,we).length===1&&dL.has(Y(this,we)[0]))){const d=fL,w=r&&d.has(y.charAt(0))||y.startsWith("\\.")&&d.has(y.charAt(2))||y.startsWith("\\.\\.")&&d.has(y.charAt(4)),h=!r&&!t&&d.has(y.charAt(0));p=w?cL:h?sa:""}let g="";return this.isEnd()&&Y(Y(this,st),vn)&&((f=Y(this,Ge))==null?void 0:f.type)==="!"&&(g="(?:$|\\/)"),[p+y+g,_o(y),je(this,dt,!!Y(this,dt)),Y(this,Kr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=de(this,Ie,Uc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const m=this.toString(),y=this;return je(y,we,[m]),y.type=null,je(y,dt,void 0),[m,_o(this.toString()),!1,!1]}let l=!i||t||r||!sa?"":de(this,Ie,Uc).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&Y(this,xi))c=(this.isStart()&&!r?sa:"")+Xm;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?sa:"")+Vm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+m}return[c,_o(a),je(this,dt,!!Y(this,dt)),Y(this,Kr)]}}st=new WeakMap,dt=new WeakMap,Kr=new WeakMap,we=new WeakMap,Ge=new WeakMap,mn=new WeakMap,Wn=new WeakMap,vn=new WeakMap,Or=new WeakMap,Ar=new WeakMap,xi=new WeakMap,Ie=new WeakSet,j0=function(){if(this!==Y(this,st))throw new Error("should only call on root");if(Y(this,vn))return this;this.toString(),je(this,vn,!0);let t;for(;t=Y(this,Wn).pop();){if(t.type!=="!")continue;let r=t,i=Y(r,Ge);for(;i;){for(let s=Y(r,mn)+1;!i.type&&s<Y(i,we).length;s++)for(const a of Y(t,we)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(Y(i,we)[s])}r=i,i=Y(r,Ge)}}return this},wn=new WeakSet,va=function(t,r,i,s,a){var d,w,h,S;const l=s.maxExtglobRecursion??2;let c=!1,f=!1,m=-1,y=!1;if(r.type===null){let E=i,R="";for(;E<t.length;){const O=t.charAt(E++);if(c||O==="\\"){c=!c,R+=O;continue}if(f){E===m+1?(O==="^"||O==="!")&&(y=!0):O==="]"&&!(E===m+2&&y)&&(f=!1),R+=O;continue}else if(O==="["){f=!0,m=E,y=!1,R+=O;continue}if(!s.noext&&jc(O)&&t.charAt(E)==="("&&a<=l){r.push(R),R="";const U=new Lt(O,r);E=de(d=Lt,wn,va).call(d,t,U,E,s,a+1),r.push(U);continue}R+=O}return r.push(R),E}let p=i+1,g=new Lt(null,r);const v=[];let x="";for(;p<t.length;){const E=t.charAt(p++);if(c||E==="\\"){c=!c,x+=E;continue}if(f){p===m+1?(E==="^"||E==="!")&&(y=!0):E==="]"&&!(p===m+2&&y)&&(f=!1),x+=E;continue}else if(E==="["){f=!0,m=p,y=!1,x+=E;continue}if(!s.noext&&jc(E)&&t.charAt(p)==="("&&(a<=l||r&&de(w=r,Ie,ya).call(w,E))){const O=r&&de(h=r,Ie,ya).call(h,E)?0:1;g.push(x),x="";const C=new Lt(E,g);g.push(C),p=de(S=Lt,wn,va).call(S,t,C,p,s,a+O);continue}if(E==="|"){g.push(x),x="",v.push(g),g=new Lt(null,r);continue}if(E===")")return x===""&&Y(r,we).length===0&&je(r,xi,!0),g.push(x),x="",r.push(...v,g),p;x+=E}return r.type=null,je(r,dt,void 0),je(r,we,[t.substring(i-1)]),p},z0=function(t){return de(this,Ie,zc).call(this,t,uL)},zc=function(t,r=aL){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null)return!1;const i=Y(t,we)[0];return!i||typeof i!="object"||i.type===null?!1:de(this,Ie,ya).call(this,i.type,r)},ya=function(t,r=lL){var i;return!!((i=r.get(this.type))!=null&&i.includes(t))},W0=function(t,r){const i=Y(t,we)[0],s=new Lt(null,i,this.options);Y(s,we).push(""),i.push(s),de(this,Ie,Wc).call(this,t,r)},Wc=function(t,r){const i=Y(t,we)[0];Y(this,we).splice(r,1,...Y(i,we));for(const s of Y(i,we))typeof s=="object"&&je(s,Ge,this);je(this,Ar,void 0)},U0=function(t){const r=Km.get(this.type);return!!(r!=null&&r.has(t))},B0=function(t){if(!t||typeof t!="object"||t.type!==null||Y(t,we).length!==1||this.type===null||Y(this,we).length!==1)return!1;const r=Y(t,we)[0];return!r||typeof r!="object"||r.type===null?!1:de(this,Ie,U0).call(this,r.type)},H0=function(t){const r=Km.get(this.type),i=Y(t,we)[0],s=r==null?void 0:r.get(i.type);if(!s)return!1;je(this,we,Y(i,we));for(const a of Y(this,we))typeof a=="object"&&je(a,Ge,this);this.type=s,je(this,Ar,void 0),je(this,xi,!1)},ba=function(){var t,r;if(Gm(this)){let i=0,s=!1;do{s=!0;for(let a=0;a<Y(this,we).length;a++){const l=Y(this,we)[a];typeof l=="object"&&(de(r=l,Ie,ba).call(r),de(this,Ie,zc).call(this,l)?(s=!1,de(this,Ie,Wc).call(this,l,a)):de(this,Ie,z0).call(this,l)?(s=!1,de(this,Ie,W0).call(this,l,a)):de(this,Ie,B0).call(this,l)&&(s=!1,de(this,Ie,H0).call(this,l)))}}while(!s&&++i<10)}else for(const i of Y(this,we))typeof i=="object"&&de(t=i,Ie,ba).call(t);je(this,Ar,void 0)},Uc=function(t){return Y(this,we).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,l]=r.toRegExpSource(t);return je(this,Kr,Y(this,Kr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},q0=function(t,r,i=!1){let s=!1,a="",l=!1,c=!1;for(let f=0;f<t.length;f++){const m=t.charAt(f);if(s){s=!1,a+=(pL.has(m)?"\\":"")+m;continue}if(m==="*"){if(c)continue;c=!0,a+=i&&/^[*]+$/.test(t)?Xm:Vm,r=!0;continue}else c=!1;if(m==="\\"){f===t.length-1?a+="\\\\":s=!0;continue}if(m==="["){const[y,p,g,v]=oL(t,f);if(g){a+=y,l=l||p,f+=g-1,r=r||v;continue}}if(m==="?"){a+=zf,r=!0;continue}a+=hL(m)}return[a,_o(t),!!r,l]},gt(Ya,wn);Lt=Ya;const mL=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),_t=(e,t,r={})=>(La(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ja(t,r).match(e)),vL=/^\*+([^+@!?*[(]*)$/,yL=e=>t=>!t.startsWith(".")&&t.endsWith(e),bL=e=>t=>t.endsWith(e),wL=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),xL=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),SL=/^\*+\.\*+$/,EL=e=>!e.startsWith(".")&&e.includes("."),_L=e=>e!=="."&&e!==".."&&e.includes("."),OL=/^\.\*+$/,AL=e=>e!=="."&&e!==".."&&e.startsWith("."),TL=/^\*+$/,RL=e=>e.length!==0&&!e.startsWith("."),PL=e=>e.length!==0&&e!=="."&&e!=="..",CL=/^\?+([^+@!?*[(]*)?$/,kL=([e,t=""])=>{const r=Z0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},$L=([e,t=""])=>{const r=G0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},IL=([e,t=""])=>{const r=G0([e]);return t?i=>r(i)&&i.endsWith(t):r},LL=([e,t=""])=>{const r=Z0([e]);return t?i=>r(i)&&i.endsWith(t):r},Z0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},G0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},K0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ym={win32:{sep:"\\"},posix:{sep:"/"}},ML=K0==="win32"?Ym.win32.sep:Ym.posix.sep;_t.sep=ML;const St=Symbol("globstar **");_t.GLOBSTAR=St;const FL="[^/]",DL=FL+"*?",NL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",jL="(?:(?!(?:\\/|^)\\.).)*?",zL=(e,t={})=>r=>_t(r,e,t);_t.filter=zL;const nr=(e,t={})=>Object.assign({},e,t),WL=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return _t;const t=_t;return Object.assign((i,s,a={})=>t(i,s,nr(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,nr(e,a))}static defaults(s){return t.defaults(nr(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,l={}){super(s,a,nr(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,nr(e,a))}},unescape:(i,s={})=>t.unescape(i,nr(e,s)),escape:(i,s={})=>t.escape(i,nr(e,s)),filter:(i,s={})=>t.filter(i,nr(e,s)),defaults:i=>t.defaults(nr(e,i)),makeRe:(i,s={})=>t.makeRe(i,nr(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,nr(e,s)),match:(i,s,a={})=>t.match(i,s,nr(e,a)),sep:t.sep,GLOBSTAR:St})};_t.defaults=WL;const V0=(e,t={})=>(La(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Y2(e,{max:t.braceExpandMax}));_t.braceExpand=V0;const UL=(e,t={})=>new Ja(e,t).makeRe();_t.makeRe=UL;const BL=(e,t,r={})=>{const i=new Ja(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};_t.match=BL;const Jm=/[?*]|[+@!]\(.*?\)|\[|\]/,HL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Zt,X0,Bc,mi;class Ja{constructor(t,r={}){gt(this,Zt);ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"maxGlobstarRecursion");ye(this,"regexp");La(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||K0,this.isWindows=this.platform==="win32";const i="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[i]===!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]==="?"||!Jm.test(a[2]))&&!Jm.test(a[3]),m=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(y=>this.parse(y))];if(m)return[a[0],...a.slice(1).map(y=>this.parse(y))]}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(const i of t)for(let s=0;s<i.length;s++)i[s]==="**"&&(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!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(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 y=i.slice(0);y[s]="**",t.push(y),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){let s=0,a=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),y=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=f?3:c?0:void 0,g=y?3:m?0:void 0;if(typeof p=="number"&&typeof g=="number"){const[v,x]=[t[p],r[g]];v.toLowerCase()===x.toLowerCase()&&(r[g]=v,a=g,s=p)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(St)?de(this,Zt,X0).call(this,t,r,i,s,a):de(this,Zt,mi).call(this,t,r,i,s,a)}braceExpand(){return V0(this.pattern,this.options)}parse(t){La(t);const r=this.options;if(t==="**")return St;if(t==="")return"";let i,s=null;(i=t.match(TL))?s=r.dot?PL:RL:(i=t.match(vL))?s=(r.nocase?r.dot?xL:wL:r.dot?bL:yL)(i[1]):(i=t.match(CL))?s=(r.nocase?r.dot?$L:kL:r.dot?IL:LL)(i):(i=t.match(SL))?s=r.dot?_L:EL:(i=t.match(OL))&&(s=AL);const a=Ya.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?DL:r.dot?NL:jL,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const m=f.map(p=>{if(p instanceof RegExp)for(const g of p.flags.split(""))s.add(g);return typeof p=="string"?HL(p):p===St?St:p._src});m.forEach((p,g)=>{const v=m[g+1],x=m[g-1];p!==St||x===St||(x===void 0?v!==void 0&&v!==St?m[g+1]="(?:\\/|"+i+"\\/)?"+v:m[g]=i:v===void 0?m[g-1]=x+"(?:\\/|\\/"+i+")?":v!==St&&(m[g-1]=x+"(?:\\/|\\/"+i+"\\/)"+v,m[g+1]=St))});const y=m.filter(p=>p!==St);if(this.partial&&y.length>=1){const p=[];for(let g=1;g<=y.length;g++)p.push(y.slice(0,g).join("/"));return"(?:"+p.join("|")+")"}return y.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.partial&&(a="^(?:\\/|"+l+a.slice(1,-1)+c+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...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(const c of a){let f=s;if(i.matchBase&&c.length===1&&(f=[l]),this.matchOne(f,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return _t.defaults(t).Minimatch}}Zt=new WeakSet,X0=function(t,r,i,s,a){const l=r.indexOf(St,a),c=r.lastIndexOf(St),[f,m,y]=i?[r.slice(a,l),r.slice(l+1),[]]:[r.slice(a,l),r.slice(l+1,c),r.slice(c+1)];if(f.length){const S=t.slice(s,s+f.length);if(!de(this,Zt,mi).call(this,S,f,i,0,0))return!1;s+=f.length,a+=f.length}let p=0;if(y.length){if(y.length+s>t.length)return!1;let S=t.length-y.length;if(de(this,Zt,mi).call(this,t,y,i,S,0))p=y.length;else{if(t[t.length-1]!==""||s+y.length===t.length||(S--,!de(this,Zt,mi).call(this,t,y,i,S,0)))return!1;p=y.length+1}}if(!m.length){let S=!!p;for(let E=s;E<t.length-p;E++){const R=String(t[E]);if(S=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return i||S}const g=[[[],0]];let v=g[0],x=0;const d=[0];for(const S of m)S===St?(d.push(x),v=[[],0],g.push(v)):(v[0].push(S),x++);let w=g.length-1;const h=t.length-p;for(const S of g)S[1]=h-(d[w--]+S[0].length);return!!de(this,Zt,Bc).call(this,t,g,s,0,i,0,!!p)},Bc=function(t,r,i,s,a,l,c){const f=r[s];if(!f){for(let p=i;p<t.length;p++){c=!0;const g=t[p];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return c}const[m,y]=f;for(;i<=y;){if(de(this,Zt,mi).call(this,t.slice(0,i+m.length),m,a,i,0)&&l<this.maxGlobstarRecursion){const v=de(this,Zt,Bc).call(this,t,r,i+m.length,s+1,a,l+1,c);if(v!==!1)return v}const g=t[i];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1;i++}return a||null},mi=function(t,r,i,s,a){let l,c,f,m;for(l=s,c=a,m=t.length,f=r.length;l<m&&c<f;l++,c++){this.debug("matchOne loop");let y=r[c],p=t[l];if(this.debug(r,y,p),y===!1||y===St)return!1;let g;if(typeof y=="string"?(g=p===y,this.debug("string match",y,p,g)):(g=y.test(p),this.debug("pattern match",y,p,g)),!g)return!1}if(l===m&&c===f)return!0;if(l===m)return i;if(c===f)return l===m-1&&t[l]==="";throw new Error("wtf?")};_t.AST=Ya;_t.Minimatch=Ja;_t.escape=mL;_t.unescape=_o;const jo="/$shared",qL={"**/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 Y0(e){const t=Object.entries(qL).find(([r])=>_t(e,r));return t==null?void 0:t[1]}function Qa(e){var i;const t=(i=Y0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${jo}/`,"Shared/");Wf({name:r,content:t,asText:typeof t=="string"})}async function ZL(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ne(`${jo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){J0(r)&&Qa(`${jo}/${t}`)}}function Ko({path:e,createIfNotExists:t=!1}){const r=`${jo}/${e}`;return Ne(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=Y0(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 F2.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(J0(i)&&t){const s=GL(i,e);s0.next({message:s,kind:"warning"}),Qa(r)}throw i})}function J0(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 GL(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 KL(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function VL(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Q0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Mf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function XL(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:_n.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),Q0()}}async function eb(e){return await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function YL(...e){return(await Promise.all(e.map(i=>eb({root:i,verb:_n.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:l})=>({name:s,type:l,date:a,path:`${l}/${s}`}))).flat()}function JL(e,t={}){const{sanitize:r=!0}=t;return Ne(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ye.entries(i.components).map(([a,l])=>{const c=a,{resolvedName:f}=l.type;if(f==="WebformLoader"){const m=Qc.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(y=>s.get(y)||y)),c.linkedNodes&&(c.linkedNodes=Ye.entries(c.linkedNodes).reduce((y,[p,g])=>({...y,[p]:s.get(g)||g}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(y=>(y.type==="navigation"&&y.loader&&(y.loader=s.get(y.loader)||y.loader),y))),{...a,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function QL(e){return Ne(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Xe.METHOD,Xe.CLASS].includes(t.type)?Xa(t.content):t.content}))}function eM(e){return e.type==="folder"?Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function tM(e){return e.type==="folder"?(await Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function rM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function nM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function iM(e){return(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function oM(...e){return await Ne(at,{method:"POST",body:JSON.stringify({verb:_n.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function sM(e){const t=await Ne("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function aM(){return await Ne("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function uM(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 lM({name:e,path:t="",root:r="root",asText:i=!1}){return Ne(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function cM(e={}){try{return{...await Ko({path:"shared_datasources.json",...e}),...Ia}}catch{return{...Ia}}}async function fM(e={}){try{return await Ko({path:"shared_app_events.json",...e})}catch{return[]}}async function dM(e={}){try{return await Ko({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function pM(e={}){try{return await Ko({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function hM(){try{return await Ne("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function gM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const mM=Df(),vM=async e=>{const t={verb:_n.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ye.omit(e,Ye.keys(Ia))};return mM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},yM=Df(),bM=async e=>{const t={verb:_n.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return yM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Wf=async e=>{const t=await Ne(at,{method:"POST",body:JSON.stringify({...e,verb:_n.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Ff(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},wM=async e=>await Wf({name:"crafted_components.json",path:bn.WEBFORMS,content:e});function xM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function SM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function EM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function _M(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Xa(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&&Qa(e.path),t})}function OM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function TM(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 RM(e){const t=AM(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),l=s.split(":")[1].trim();return{name:a,type:l}}),r=TM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function PM(e,t){const i=e.split(".").pop();try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Xa(s.content);const{params:a,result:l}=RM(s.parameters);return{...s,params:a,returns:l}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var tb=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(tb||{});function CM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function kM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var rb=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(rb||{}),nb=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(nb||{}),ib=(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))(ib||{}),ob=(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))(ob||{});const $M={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},IM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=v$;exports.BaseCheckboxIcon=By;exports.Checkbox=W$;exports.ControlledSwitch=Oy;exports.DATASOURCE_THEMES=$M;exports.DatasourcesActions=o0;exports.DebuggerActions=l0;exports.DefaultCheckboxIcon=Hy;exports.DesignerRequestVerb=_n;exports.Dialog=YA;exports.DialogBody=hv;exports.EActivity=tb;exports.EDITOR=IM;exports.EIDENTIFIERS=ib;exports.ERROR_CODES=ob;exports.EWebFormStyleClassScope=rb;exports.EXT_API_PREFIX=Go;exports.FileFolderType=Xe;exports.FloatingTooltip=N$;exports.FolderRootPath=bn;exports.FolderRootType=Lf;exports.HTTPError=Dc;exports.HTTP_HANDLERS_TAB_PATH=p0;exports.IPreemptive=No;exports.IPublished=T0;exports.IPublishedRestScope=Nf;exports.IdentityProvider=aI;exports.Incase=fa;exports.IndentLines=Rv;exports.InvalidJsonError=U$;exports.LOCALIZATION_TAB_PATH=h0;exports.LOCATION_DATASOURCE_ID=_0;exports.LogoSVG=jy;exports.LspActions=u0;exports.MAX_FILE_NAME_LENGTH=$f;exports.MODEL_TAB_PATH=VI;exports.Modal=x$;exports.ModalCloseReason=vi;exports.ModalColor=Bn;exports.ModalIcons=Pc;exports.ModalType=Ef;exports.Mutex=g0;exports.NameError=If;exports.Overlay=pv;exports.PANEL_EXPANDED_HEIGHT=ga;exports.PANEL_INITIAL_HEIGHT=Dn;exports.Panel=z$;exports.Portal=tv;exports.PublishOptions=_2;exports.QODLY_NAMESPACE=So;exports.ROLES_TAB_PATH=f0;exports.RemoteDebuggerMode=Mf;exports.SETTINGS_TAB_PATH=d0;exports.SHARED_API_PREFIX=jo;exports.SHARED_USER_NAMESPACE=Ia;exports.SourceCodeDescriptor=nb;exports.Switcher=Pv;exports.TITLE_DATASOURCE_ID=A0;exports.TabEventsActions=a0;exports.Tip=py;exports.TipsProvider=_C;exports.Toast=iR;exports.Tooltip=g$;exports.Tree=SR;exports.TreeIcon=_v;exports.TreeNode=ef;exports.USER_LANGUAGE_DATASOURCE_ID=O0;exports.WebformActions=i0;exports.WebformEventsActions=Do;exports.ZoomComponent=_$;exports.ZoomLevel=Wy;exports._isArrayDatasource=y2;exports._isObjectDatasource=b2;exports.addAttributesToContent=A2;exports.addFolder=rM;exports.by=m0;exports.byId=r2;exports.byPath=n2;exports.callServerSideParser=$2;exports.checkUpdates=KL;exports.createFolder=xM;exports.datasourcesSubject=jI;exports.debuggerSubject=BI;exports.dropFile=tM;exports.dropFolder=iM;exports.exists=i2;exports.extractWebformName=JI;exports.filterBySeriousError=$0;exports.formatErrorsAsBulletToast=C2;exports.generateUUID=T2;exports.getAppSettings=XL;exports.getCatalog=aM;exports.getDatasourceId=o2;exports.getDefaultAppSettings=Q0;exports.getDisplayableFeedbackErrors=P2;exports.getErrorListFromPayload=k0;exports.getFile=QL;exports.getFileContent=lM;exports.getFileExtentionFromType=YI;exports.getFilenameAndTypeFromPath=XI;exports.getFilenameFromType=QI;exports.getFilesInfo=oM;exports.getFolder=eb;exports.getFolders=YL;exports.getFunctionContent=PM;exports.getMonacoTheme=gM;exports.getNodeInfo=_M;exports.getSavedConditions=pM;exports.getSharedAppEvents=fM;exports.getSharedCSS=dM;exports.getSharedDatasources=cM;exports.getSharedResource=Ko;exports.getSupportedLanguages=uM;exports.getTypeFromExtension=Ff;exports.getUserPrivileges=hM;exports.getWebForm=JL;exports.hasAttributesString=P0;exports.http=Ne;exports.i18nSubject=qI;exports.initializeDefaultProjectFiles=ZL;exports.installUpdates=VL;exports.isArrayDatasource=x0;exports.isDataClassMethod=c2;exports.isDataStoreMethod=l2;exports.isDateDatasource=w2;exports.isEntity=m2;exports.isEntityDatasource=p2;exports.isEntityMethod=f2;exports.isEntitySelection=v2;exports.isEntitySelectionDatasource=h2;exports.isEntitySelectionMethod=d2;exports.isObjectAttribute=a2;exports.isObjectDatasource=S0;exports.isRelatedAttribute=u2;exports.isRelatedEntitiesAttribute=b0;exports.isRelatedEntityAttribute=w0;exports.isSameNamespace=x2;exports.isScalarDatasource=E0;exports.isSimpleAttribute=y0;exports.isSimpleDatasource=g2;exports.loadDS=S2;exports.loadI18n=E2;exports.localeCompare=v0;exports.log=CM;exports.login=sM;exports.lspSubject=UI;exports.moveItem=EM;exports.outBy=e2;exports.outById=t2;exports.parseAttributes=O2;exports.queue=Df;exports.removeAttributesString=C0;exports.removeItem=SM;exports.renameFile=eM;exports.renameFolder=nM;exports.sanitizeContent=Xa;exports.sanitizeNameCY=R2;exports.saveContent=OM;exports.setCraftedComponents=wM;exports.setFileContent=Wf;exports.setSharedAppEvents=bM;exports.setSharedSources=vM;exports.splitDatasourceID=s2;exports.stringifyAttributes=R0;exports.tabEventsSubject=WI;exports.tasksManagerSubject=HI;exports.toastSubject=s0;exports.trackEvent=kM;exports.transformDates=k2;exports.tryCreateSharedResource=Qa;exports.useDidMountEffect=B$;exports.useDoubleClick=fI;exports.useEnhancedState=AI;exports.useFeatureFlags=sI;exports.useForwardedRef=oI;exports.useHotkeys=tI;exports.useIdentity=uI;exports.useOutsideClick=rI;exports.usePrevious=nI;exports.useStateObject=lI;exports.useStateRef=iI;exports.useTip=dy;exports.validateName=c0;exports.validateServerSide=ZI;exports.validateValue=GI;exports.webformEventsSubject=$a;exports.webformSubject=zI;
|
|
250
|
+
`)+ue+`return __p
|
|
251
|
+
}`;var Ne=Gv(function(){return Be(C,Se+"return "+ue).apply(r,L)});if(Ne.source=ue,pd(Ne))throw Ne;return Ne}function OR(o){return qe(o).toLowerCase()}function kR(o){return qe(o).toUpperCase()}function AR(o,a,d){if(o=qe(o),o&&(d||a===r))return tg(o);if(!o||!(a=vr(a)))return o;var E=Br(o),k=Br(a),C=rg(E,k),L=ng(E,k)+1;return ti(E,C,L).join("")}function TR(o,a,d){if(o=qe(o),o&&(d||a===r))return o.slice(0,og(o)+1);if(!o||!(a=vr(a)))return o;var E=Br(o),k=ng(E,Br(a))+1;return ti(E,0,k).join("")}function RR(o,a,d){if(o=qe(o),o&&(d||a===r))return o.replace(ts,"");if(!o||!(a=vr(a)))return o;var E=Br(o),k=rg(E,Br(a));return ti(E,k).join("")}function CR(o,a){var d=j,E=M;if(pt(a)){var k="separator"in a?a.separator:k;d="length"in a?Pe(a.length):d,E="omission"in a?vr(a.omission):E}o=qe(o);var C=o.length;if(no(o)){var L=Br(o);C=L.length}if(d>=C)return o;var B=d-io(E);if(B<1)return E;var G=L?ti(L,0,B).join(""):o.slice(0,B);if(k===r)return G+E;if(L&&(B+=G.length-B),hd(k)){if(o.slice(B).search(k)){var ie,se=G;for(k.global||(k=Cu(k.source,qe(nn.exec(k))+"g")),k.lastIndex=0;ie=k.exec(se);)var ue=ie.index;G=G.slice(0,ue===r?B:ue)}}else if(o.indexOf(vr(k),B)!=B){var me=G.lastIndexOf(k);me>-1&&(G=G.slice(0,me))}return G+E}function IR(o){return o=qe(o),o&&Jo.test(o)?o.replace(Ma,a_):o}var PR=fo(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),bd=Gg("toUpperCase");function qv(o,a,d){return o=qe(o),a=d?r:a,a===r?r_(o)?u_(o):GE(o):o.match(a)||[]}var Gv=Me(function(o,a){try{return pr(o,r,a)}catch(d){return pd(d)?d:new Re(d)}}),NR=Tn(function(o,a){return hr(a,function(d){d=Vr(d),sn(o,d,dd(o[d],o))}),o});function MR(o){var a=o==null?0:o.length,d=Oe();return o=a?ut(o,function(E){if(typeof E[1]!="function")throw new Tr(l);return[d(E[0]),E[1]]}):[],Me(function(E){for(var k=-1;++k<a;){var C=o[k];if(pr(C[0],this,E))return pr(C[1],this,E)}})}function DR(o){return aO(Cr(o,h))}function yd(o){return function(){return o}}function LR(o,a){return o==null||o!==o?a:o}var zR=Kg(),$R=Kg(!0);function sr(o){return o}function wd(o){return Og(typeof o=="function"?o:Cr(o,h))}function jR(o){return Ag(Cr(o,h))}function FR(o,a){return Tg(o,Cr(a,h))}var HR=Me(function(o,a){return function(d){return ds(d,o,a)}}),BR=Me(function(o,a){return function(d){return ds(o,d,a)}});function xd(o,a,d){var E=Pt(a),k=ol(a,E);d==null&&!(pt(a)&&(k.length||!E.length))&&(d=a,a=o,o=this,k=ol(a,Pt(a)));var C=!(pt(d)&&"chain"in d)||!!d.chain,L=Cn(o);return hr(k,function(B){var G=a[B];o[B]=G,L&&(o.prototype[B]=function(){var ie=this.__chain__;if(C||ie){var se=o(this.__wrapped__),ue=se.__actions__=nr(this.__actions__);return ue.push({func:G,args:arguments,thisArg:o}),se.__chain__=ie,se}return G.apply(o,Kn([this.value()],arguments))})}),o}function WR(){return $t._===this&&($t._=v_),this}function Sd(){}function VR(o){return o=Pe(o),Me(function(a){return Rg(a,o)})}var UR=Ju(ut),qR=Ju(Yh),GR=Ju(Eu);function Zv(o){return od(o)?_u(Vr(o)):_O(o)}function ZR(o){return function(a){return o==null?r:Ti(o,a)}}var KR=Xg(),YR=Xg(!0);function Ed(){return[]}function _d(){return!1}function XR(){return{}}function JR(){return""}function QR(){return!0}function eC(o,a){if(o=Pe(o),o<1||o>ve)return[];var d=X,E=Gt(o,X);a=Oe(a),o-=X;for(var k=Au(E,a);++d<o;)a(d);return k}function tC(o){return Ie(o)?ut(o,Vr):mr(o)?[o]:nr(pv(qe(o)))}function rC(o){var a=++h_;return qe(o)+a}var nC=dl(function(o,a){return o+a},0),iC=Qu("ceil"),oC=dl(function(o,a){return o/a},1),sC=Qu("floor");function aC(o){return o&&o.length?il(o,sr,$u):r}function lC(o,a){return o&&o.length?il(o,Oe(a,2),$u):r}function cC(o){return Qh(o,sr)}function uC(o,a){return Qh(o,Oe(a,2))}function dC(o){return o&&o.length?il(o,sr,Bu):r}function fC(o,a){return o&&o.length?il(o,Oe(a,2),Bu):r}var pC=dl(function(o,a){return o*a},1),hC=Qu("round"),gC=dl(function(o,a){return o-a},0);function vC(o){return o&&o.length?ku(o,sr):0}function mC(o,a){return o&&o.length?ku(o,Oe(a,2)):0}return T.after=FA,T.ary=_v,T.assign=AT,T.assignIn=$v,T.assignInWith=jv,T.assignWith=gd,T.at=TT,T.before=Ov,T.bind=dd,T.bindAll=NR,T.bindKey=kv,T.castArray=JA,T.chain=xv,T.chunk=ak,T.compact=lk,T.concat=ck,T.cond=MR,T.conforms=DR,T.constant=yd,T.countBy=mA,T.create=RT,T.curry=Av,T.curryRight=Tv,T.debounce=Rv,T.defaults=CT,T.defaultsDeep=IT,T.defer=HA,T.delay=BA,T.difference=uk,T.differenceBy=dk,T.differenceWith=fk,T.drop=pk,T.dropRight=hk,T.dropRightWhile=gk,T.dropWhile=vk,T.fill=mk,T.filter=yA,T.flatMap=SA,T.flatMapDeep=EA,T.flatMapDepth=_A,T.flatten=mv,T.flattenDeep=bk,T.flattenDepth=yk,T.flip=WA,T.flow=zR,T.flowRight=$R,T.fromPairs=wk,T.functions=$T,T.functionsIn=jT,T.groupBy=OA,T.initial=Sk,T.intersection=Ek,T.intersectionBy=_k,T.intersectionWith=Ok,T.invert=HT,T.invertBy=BT,T.invokeMap=AA,T.iteratee=wd,T.keyBy=TA,T.keys=Pt,T.keysIn=or,T.map=bl,T.mapKeys=VT,T.mapValues=UT,T.matches=jR,T.matchesProperty=FR,T.memoize=wl,T.merge=qT,T.mergeWith=Fv,T.method=HR,T.methodOf=BR,T.mixin=xd,T.negate=xl,T.nthArg=VR,T.omit=GT,T.omitBy=ZT,T.once=VA,T.orderBy=RA,T.over=UR,T.overArgs=UA,T.overEvery=qR,T.overSome=GR,T.partial=fd,T.partialRight=Cv,T.partition=CA,T.pick=KT,T.pickBy=Hv,T.property=Zv,T.propertyOf=ZR,T.pull=Rk,T.pullAll=yv,T.pullAllBy=Ck,T.pullAllWith=Ik,T.pullAt=Pk,T.range=KR,T.rangeRight=YR,T.rearg=qA,T.reject=NA,T.remove=Nk,T.rest=GA,T.reverse=cd,T.sampleSize=DA,T.set=XT,T.setWith=JT,T.shuffle=LA,T.slice=Mk,T.sortBy=jA,T.sortedUniq=Hk,T.sortedUniqBy=Bk,T.split=xR,T.spread=ZA,T.tail=Wk,T.take=Vk,T.takeRight=Uk,T.takeRightWhile=qk,T.takeWhile=Gk,T.tap=lA,T.throttle=KA,T.thru=ml,T.toArray=Dv,T.toPairs=Bv,T.toPairsIn=Wv,T.toPath=tC,T.toPlainObject=zv,T.transform=QT,T.unary=YA,T.union=Zk,T.unionBy=Kk,T.unionWith=Yk,T.uniq=Xk,T.uniqBy=Jk,T.uniqWith=Qk,T.unset=eR,T.unzip=ud,T.unzipWith=wv,T.update=tR,T.updateWith=rR,T.values=go,T.valuesIn=nR,T.without=eA,T.words=qv,T.wrap=XA,T.xor=tA,T.xorBy=rA,T.xorWith=nA,T.zip=iA,T.zipObject=oA,T.zipObjectDeep=sA,T.zipWith=aA,T.entries=Bv,T.entriesIn=Wv,T.extend=$v,T.extendWith=jv,xd(T,T),T.add=nC,T.attempt=Gv,T.camelCase=aR,T.capitalize=Vv,T.ceil=iC,T.clamp=iR,T.clone=QA,T.cloneDeep=tT,T.cloneDeepWith=rT,T.cloneWith=eT,T.conformsTo=nT,T.deburr=Uv,T.defaultTo=LR,T.divide=oC,T.endsWith=lR,T.eq=Ur,T.escape=cR,T.escapeRegExp=uR,T.every=bA,T.find=wA,T.findIndex=gv,T.findKey=PT,T.findLast=xA,T.findLastIndex=vv,T.findLastKey=NT,T.floor=sC,T.forEach=Sv,T.forEachRight=Ev,T.forIn=MT,T.forInRight=DT,T.forOwn=LT,T.forOwnRight=zT,T.get=vd,T.gt=iT,T.gte=oT,T.has=FT,T.hasIn=md,T.head=bv,T.identity=sr,T.includes=kA,T.indexOf=xk,T.inRange=oR,T.invoke=WT,T.isArguments=Ii,T.isArray=Ie,T.isArrayBuffer=sT,T.isArrayLike=ir,T.isArrayLikeObject=mt,T.isBoolean=aT,T.isBuffer=ri,T.isDate=lT,T.isElement=cT,T.isEmpty=uT,T.isEqual=dT,T.isEqualWith=fT,T.isError=pd,T.isFinite=pT,T.isFunction=Cn,T.isInteger=Iv,T.isLength=Sl,T.isMap=Pv,T.isMatch=hT,T.isMatchWith=gT,T.isNaN=vT,T.isNative=mT,T.isNil=yT,T.isNull=bT,T.isNumber=Nv,T.isObject=pt,T.isObjectLike=vt,T.isPlainObject=ms,T.isRegExp=hd,T.isSafeInteger=wT,T.isSet=Mv,T.isString=El,T.isSymbol=mr,T.isTypedArray=ho,T.isUndefined=xT,T.isWeakMap=ST,T.isWeakSet=ET,T.join=kk,T.kebabCase=dR,T.last=Pr,T.lastIndexOf=Ak,T.lowerCase=fR,T.lowerFirst=pR,T.lt=_T,T.lte=OT,T.max=aC,T.maxBy=lC,T.mean=cC,T.meanBy=uC,T.min=dC,T.minBy=fC,T.stubArray=Ed,T.stubFalse=_d,T.stubObject=XR,T.stubString=JR,T.stubTrue=QR,T.multiply=pC,T.nth=Tk,T.noConflict=WR,T.noop=Sd,T.now=yl,T.pad=hR,T.padEnd=gR,T.padStart=vR,T.parseInt=mR,T.random=sR,T.reduce=IA,T.reduceRight=PA,T.repeat=bR,T.replace=yR,T.result=YT,T.round=hC,T.runInContext=q,T.sample=MA,T.size=zA,T.snakeCase=wR,T.some=$A,T.sortedIndex=Dk,T.sortedIndexBy=Lk,T.sortedIndexOf=zk,T.sortedLastIndex=$k,T.sortedLastIndexBy=jk,T.sortedLastIndexOf=Fk,T.startCase=SR,T.startsWith=ER,T.subtract=gC,T.sum=vC,T.sumBy=mC,T.template=_R,T.times=eC,T.toFinite=In,T.toInteger=Pe,T.toLength=Lv,T.toLower=OR,T.toNumber=Nr,T.toSafeInteger=kT,T.toString=qe,T.toUpper=kR,T.trim=AR,T.trimEnd=TR,T.trimStart=RR,T.truncate=CR,T.unescape=IR,T.uniqueId=rC,T.upperCase=PR,T.upperFirst=bd,T.each=Sv,T.eachRight=Ev,T.first=bv,xd(T,(function(){var o={};return an(T,function(a,d){Ue.call(T.prototype,d)||(o[d]=a)}),o})(),{chain:!1}),T.VERSION=n,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){T[o].placeholder=T}),hr(["drop","take"],function(o,a){ze.prototype[o]=function(d){d=d===r?1:kt(Pe(d),0);var E=this.__filtered__&&!a?new ze(this):this.clone();return E.__filtered__?E.__takeCount__=Gt(d,E.__takeCount__):E.__views__.push({size:Gt(d,X),type:o+(E.__dir__<0?"Right":"")}),E},ze.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),hr(["filter","map","takeWhile"],function(o,a){var d=a+1,E=d==P||d==ee;ze.prototype[o]=function(k){var C=this.clone();return C.__iteratees__.push({iteratee:Oe(k,3),type:d}),C.__filtered__=C.__filtered__||E,C}}),hr(["head","last"],function(o,a){var d="take"+(a?"Right":"");ze.prototype[o]=function(){return this[d](1).value()[0]}}),hr(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");ze.prototype[o]=function(){return this.__filtered__?new ze(this):this[d](1)}}),ze.prototype.compact=function(){return this.filter(sr)},ze.prototype.find=function(o){return this.filter(o).head()},ze.prototype.findLast=function(o){return this.reverse().find(o)},ze.prototype.invokeMap=Me(function(o,a){return typeof o=="function"?new ze(this):this.map(function(d){return ds(d,o,a)})}),ze.prototype.reject=function(o){return this.filter(xl(Oe(o)))},ze.prototype.slice=function(o,a){o=Pe(o);var d=this;return d.__filtered__&&(o>0||a<0)?new ze(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==r&&(a=Pe(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},ze.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},ze.prototype.toArray=function(){return this.take(X)},an(ze.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),k=T[E?"take"+(a=="last"?"Right":""):a],C=E||/^find/.test(a);k&&(T.prototype[a]=function(){var L=this.__wrapped__,B=E?[1]:arguments,G=L instanceof ze,ie=B[0],se=G||Ie(L),ue=function(Le){var $e=k.apply(T,Kn([Le],B));return E&&me?$e[0]:$e};se&&d&&typeof ie=="function"&&ie.length!=1&&(G=se=!1);var me=this.__chain__,Se=!!this.__actions__.length,ke=C&&!me,Ne=G&&!Se;if(!C&&se){L=Ne?L:new ze(this);var _e=o.apply(L,B);return _e.__actions__.push({func:ml,args:[ue],thisArg:r}),new Rr(_e,me)}return ke&&Ne?o.apply(this,B):(_e=this.thru(ue),ke?E?_e.value()[0]:_e.value():_e)})}),hr(["pop","push","shift","sort","splice","unshift"],function(o){var a=Wa[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",E=/^(?:pop|shift)$/.test(o);T.prototype[o]=function(){var k=arguments;if(E&&!this.__chain__){var C=this.value();return a.apply(Ie(C)?C:[],k)}return this[d](function(L){return a.apply(Ie(L)?L:[],k)})}}),an(ze.prototype,function(o,a){var d=T[a];if(d){var E=d.name+"";Ue.call(lo,E)||(lo[E]=[]),lo[E].push({name:a,func:d})}}),lo[ul(r,w).name]=[{name:"wrapper",func:r}],ze.prototype.clone=P_,ze.prototype.reverse=N_,ze.prototype.value=M_,T.prototype.at=cA,T.prototype.chain=uA,T.prototype.commit=dA,T.prototype.next=fA,T.prototype.plant=hA,T.prototype.reverse=gA,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=vA,T.prototype.first=T.prototype.head,is&&(T.prototype[is]=pA),T}),oo=d_();Ei?((Ei.exports=oo)._=oo,yu._=oo):$t._=oo}).call(Wz)})(Ys,Ys.exports)),Ys.exports}var He=Vz();const Xf={FdSave:V2,FdWarningDanger:xp,FdInfoCircle:z2,FdInfoBold:Nf};var Yp=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Yp||{}),Po=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Po||{}),To=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(To||{});const Uz={[Po.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Po.DANGER]:{icon:"red-500",button:"primary-dark"},[Po.WARNING]:{icon:"yellow-400",button:"primary-dark"}},qz=({name:e,color:t=Po.PRIMARY,className:r="w-8 h-8"})=>{const n=Xf[e]||Xf.FdInfoCircle,i=`text-${Uz[t].icon}`;return A.jsx(n,{className:st(r,i)})},Gz=({id:e,title:t,message:r,icon:n,type:i,color:s,zIndex:l=3e3,views:c,width:u=520,hasOverlay:f=!0,container:g,onClose:p,onEdit:h})=>{const b=y=>{p({id:e,reason:y})};N.useEffect(()=>{function y(m){m.key==="Escape"&&b(To.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const S=He.merge(He.values(c==null?void 0:c.toggles).flatMap(y=>y.value?y.warnings||[]:[]),c==null?void 0:c.tips),v=(y,m)=>{var x;if(!(c!=null&&c.toggles))return;const w=He.cloneDeep(c);(x=w.toggles)!=null&&x[y]&&(w.toggles[y].value=m),h({id:e,views:w})};return En.createPortal(A.jsx(zc,{appear:!0,show:!0,as:N.Fragment,children:A.jsx("div",{className:st("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":f}),style:{zIndex:l},onClick:()=>b(To.CANCELED),children:A.jsx(zc.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:A.jsx(Gi,{depth:3,borderType:"light","data-cy":"confirmation-modal-cy",className:"relative rounded-md border",style:{width:u},onClick:y=>y.stopPropagation(),children:A.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?A.jsx("div",{className:"flex items-center justify-center",children:A.jsx(qz,{name:n,color:s,className:"w-6 h-6"})}):null,A.jsx(Zz,{condition:t,children:A.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-center",children:t})}),A.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium",children:r}),A.jsx("div",{className:"text-xs",children:He.values(c==null?void 0:c.toggles).map(y=>A.jsx("div",{children:A.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[A.jsx(Rw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),A.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),A.jsx(Kz,{warnings:S}),A.jsx("div",{className:"flex items-center gap-4",children:i===Yp.CONFIRM?A.jsxs(A.Fragment,{children:[A.jsx(Fn,{autoFocus:!0,color:"primary",onClick:()=>b(To.CONFIRMED),children:"Confirm"}),A.jsx(Fn,{color:"white",variant:"outline",onClick:()=>b(To.CANCELED),children:"Cancel"})]}):A.jsx(Fn,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),g||document.body)},Zz=e=>e.condition?A.jsx(A.Fragment,{children:e.children}):null,Kz=e=>e.warnings?A.jsx(zc,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:A.jsx(Gi,{depth:1,className:"flex flex-col gap-1 rounded-sm p-2 text-xs",children:e.warnings.map((t,r)=>A.jsx(zc.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:A.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[A.jsx(xp,{className:st({"h-3 w-3":!0,"text-warning-text":t.type==="warning","text-negative-text":t.type==="error","text-primary":t.type==="info"},"mr-3")}),A.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var T1=(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))(T1||{});const Yz=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:i})=>A.jsxs(Gi,{depth:4,className:"flex items-center rounded p-1",children:[A.jsx($2,{onClick:i,className:st("h-5 w-5 p-1",{"text-inactive-text":e<=t,"cursor-pointer rounded hover:bg-primary-hover":e>t})}),A.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),A.jsx(j2,{onClick:n,className:st("h-5 w-5 p-1",{"text-inactive-text":e>=r,"cursor-pointer rounded hover:bg-primary-hover":e<r})})]}),hn=30,R1=.3,C1=.6,Xz=()=>typeof window>"u"?400:Math.round(window.innerHeight*R1),I1=()=>typeof window>"u"?600:Math.round(window.innerHeight*C1),ry=e=>{const t=I1();return Math.min(Math.max(e,hn),t)},Jz=e=>{const[t,r]=N.useState(hn),n=N.useRef(),i=N.useRef(null),s=I1(),l=Xz(),c=t>hn;N.useEffect(()=>{r(e.isOpen?l:hn)},[e.isOpen,l]),N.useEffect(()=>{const f=()=>{r(g=>g<=hn?hn:ry(g))};return window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f),i.current&&cancelAnimationFrame(i.current)}},[]);const u=()=>{if(c){r(hn),e.onClose();return}r(l),e.onOpen()};return A.jsx(Aw,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:s,minHeight:hn,onResizeStart:()=>{n.current&&Date.now()-n.current<200?r(c?hn:l):n.current=Date.now()},onResize:(f,g,p)=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),i.current=null})},onResizeStop:(f,g,p,h)=>{r(b=>ry(b+h.height))},handleComponent:{top:A.jsx(Tw,{})},depth:1,children:A.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${He.kebabCase(e.path)}`,children:[A.jsxs("div",{className:st("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[A.jsxs("div",{className:"group flex items-center justify-start",children:[A.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),e.tipKey?A.jsx(n1,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,A.jsx(Fn,{variant:"ghost",color:"white","data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,onClick:u,children:c?A.jsx(D2,{className:"h-4 w-4"}):A.jsx(L2,{className:"h-4 w-4"})})]}),e.headerRightSide]}),A.jsxs(vc,{of:c,children:[A.jsx(vc,{of:e.render,children:e.render}),A.jsx(vc,{of:!e.render,children:e.children})]})]})})},Qz=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:n,onReset:i,resetButtonLabel:s="Reset Page"})=>A.jsx("div",{className:"flex h-full w-full items-center justify-center",children:A.jsxs(Gi,{depth:4,borderType:"light",className:"flex flex-col items-center rounded px-10 py-6 text-center shadow-md",children:[A.jsxs("div",{className:"relative",children:[A.jsx(B2,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),A.jsx("div",{className:"h-1/2 w-1/2 absolute top-1/2 -translate-y-1/2 translate-x-1/2 z-0 bg-white"})]}),A.jsx("p",{className:"mb-2 mt-4 text-2xl text-body",children:e}),A.jsx("p",{className:"text-md mb-4 font-extralight text-muted",children:t}),A.jsxs("div",{className:"flex gap-4",children:[n&&A.jsx(Fn,{onClick:n,children:"Open in Text Editor"}),i&&A.jsx(Fn,{color:"negative",onClick:i,children:"Reset Page"}),r&&A.jsx(Fn,{color:"white",variant:"outline",onClick:r,children:"Close"})]})]})}),e4=({onChange:e,value:t,delay:r,placeholder:n,containerClassName:i,onFocusInput:s,icon:l,"data-cy":c})=>{const[u,f]=N.useState(t),g=N.useRef(null);return A.jsx(Ss.Root,{className:st("w-full",i),children:A.jsxs(Ss.Group,{children:[A.jsx(Ss.Icon,{children:l?A.jsx("button",{className:"mr-1 flex h-6 w-7 items-center justify-center text-xs rounded bg-grey-300 hover:bg-primary-hover",onClick:()=>{var p;return(p=g.current)==null?void 0:p.focus()},children:A.jsx("span",{className:`text-base fa ${l}`})}):A.jsx(U2,{})}),A.jsx(Ss.Field,{ref:g,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:p=>{f(p.currentTarget.value);const h=He.escapeRegExp(p.target.value);if(!r)return e(h);He.debounce(e,r)(h)},value:u,onFocus:()=>s&&s(),onDrop:p=>p.preventDefault()}),t&&A.jsx(Ss.Icon,{isAction:!0,onClick:()=>{e(""),f("")},children:A.jsx(Bo,{})})]})})},t4=N.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:i,...s},l)=>A.jsx(A.Fragment,{children:A.jsx(Ew,{label:e,children:A.jsx(Fn,{ref:l,variant:"ghost",color:"white",...s,children:A.jsx(t,{className:st(i)})})})}));function Ro(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function r4({rowGap:e,columnGap:t,templateColumns:r,templateRows:n,height:i,width:s,style:l,...c}){return A.jsx("div",{...c,style:{display:"grid",rowGap:Ro(e),columnGap:Ro(t),gridTemplateColumns:r,gridTemplateRows:n,height:Ro(i),width:Ro(s),...l}})}function n4({colStart:e,colSpan:t,rowStart:r,rowSpan:n,sx:i,style:s,...l}){return A.jsx("div",{...l,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:n?`span ${n}`:void 0,...i,...s}})}function i4({columns:e=1,spacingX:t,spacingY:r,style:n,...i}){return A.jsx("div",{...i,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:Ro(t),rowGap:Ro(r),...n}})}const P1=N.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:n,style:i,...s},l)=>{const[c,u]=N.useState(!1);return N.useEffect(()=>{u(!1)},[n]),!n||c?A.jsx(A.Fragment,{children:e}):A.jsx("img",{...s,ref:l,src:n,style:i,onLoad:f=>{u(!1),r==null||r(f)},onError:f=>{u(!0),t==null||t(f)}})});P1.displayName="Image";function o4(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const bf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function yf(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function qs(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function N1(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 M1(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 s4(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let i=!0;for(let s=0;s<r.length;s++)n.indexOf(r[s])===-1&&(i=!1);return i}const ga={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,"-":bf?173:189,"=":bf?61:187,";":bf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Jr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Xs={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Bt={16:!1,18:!1,17:!1,91:!1},gt={};for(let e=1;e<20;e++)ga["f".concat(e)]=111+e;let ft=[],aa=null,D1="all";const Ln=new Map,Go=e=>ga[e.toLowerCase()]||Jr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),a4=e=>Object.keys(ga).find(t=>ga[t]===e),l4=e=>Object.keys(Jr).find(t=>Jr[t]===e);function L1(e){D1=e||"all"}function va(){return D1||"all"}function c4(){return ft.slice(0)}function u4(){return ft.map(e=>a4(e)||l4(e)||String.fromCharCode(e))}function d4(){const e=[];return Object.keys(gt).forEach(t=>{gt[t].forEach(r=>{let{key:n,scope:i,mods:s,shortcut:l}=r;e.push({scope:i,shortcut:l,mods:s,keys:n.split("+").map(c=>Go(c))})})}),e}function f4(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const i=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(i||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function p4(e){return typeof e=="string"&&(e=Go(e)),ft.indexOf(e)!==-1}function h4(e,t){let r,n;e||(e=va());for(const i in gt)if(Object.prototype.hasOwnProperty.call(gt,i))for(r=gt[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return Xp(c)}):n++;va()===e&&L1(t||"all")}function g4(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Go(e.key));const r=ft.indexOf(t);if(r>=0&&ft.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&ft.splice(0,ft.length),(t===93||t===224)&&(t=91),t in Bt){Bt[t]=!1;for(const n in Jr)Jr[n]===t&&(Yr[n]=!1)}}function z1(e){if(typeof e>"u")Object.keys(gt).forEach(i=>{Array.isArray(gt[i])&>[i].forEach(s=>ec(s)),delete gt[i]}),Xp(null);else if(Array.isArray(e))e.forEach(i=>{i.key&&ec(i)});else if(typeof e=="object")e.key&&ec(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[i,s]=r;typeof i=="function"&&(s=i,i=""),ec({key:e,scope:i,method:s,splitKey:"+"})}}const ec=e=>{let{key:t,scope:r,method:n,splitKey:i="+"}=e;M1(t).forEach(l=>{const c=l.split(i),u=c.length,f=c[u-1],g=f==="*"?"*":Go(f);if(!gt[g])return;r||(r=va());const p=u>1?N1(Jr,c):[],h=[];gt[g]=gt[g].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&s4(b.mods,p);return v&&h.push(b.element),!v}),h.forEach(b=>Xp(b))})};function ny(e,t,r,n){if(t.element!==n)return;let i;if(t.scope===r||t.scope==="all"){i=t.mods.length>0;for(const s in Bt)Object.prototype.hasOwnProperty.call(Bt,s)&&(!Bt[s]&&t.mods.indexOf(+s)>-1||Bt[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!Bt[16]&&!Bt[18]&&!Bt[17]&&!Bt[91]||i||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ft),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function iy(e,t){const r=gt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Yr.filter.call(this,e))return;if((n===93||n===224)&&(n=91),ft.indexOf(n)===-1&&n!==229&&ft.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=Xs[c];e[c]&&ft.indexOf(u)===-1?ft.push(u):!e[c]&&ft.indexOf(u)>-1?ft.splice(ft.indexOf(u),1):c==="metaKey"&&e[c]&&(ft=ft.filter(f=>f in Xs||f===n))}),n in Bt){Bt[n]=!0;for(const c in Jr)if(Object.prototype.hasOwnProperty.call(Jr,c)){const u=Xs[Jr[c]];Yr[c]=e[u]}if(!r)return}for(const c in Bt)Object.prototype.hasOwnProperty.call(Bt,c)&&(Bt[c]=e[Xs[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ft.indexOf(17)===-1&&ft.push(17),ft.indexOf(18)===-1&&ft.push(18),Bt[17]=!0,Bt[18]=!0);const i=va();if(r)for(let c=0;c<r.length;c++)r[c].scope===i&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&ny(e,r[c],i,t);if(!(n in gt))return;const s=gt[n],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const u=s[c],{splitKey:f}=u,g=u.key.split(f),p=[];for(let h=0;h<g.length;h++)p.push(Go(g[h]));p.sort().join("")===ft.sort().join("")&&ny(e,u,i,t)}}function Yr(e,t,r){ft=[];const n=M1(e);let i=[],s="all",l=document,c=0,u=!1,f=!0,g="+",p=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(f=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(s=t),h&&z1(e,s);c<n.length;c++)e=n[c].split(g),i=[],e.length>1&&(i=N1(Jr,e)),e=e[e.length-1],e=e==="*"?"*":Go(e),e in gt||(gt[e]=[]),gt[e].push({keyup:u,keydown:f,scope:s,mods:i,shortcut:n[c],method:r,key:n[c],splitKey:g,element:l});if(typeof l<"u"&&window){if(!Ln.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return iy(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;iy(v,l),g4(v)};Ln.set(l,{keydownListener:b,keyupListenr:S,capture:p}),yf(l,"keydown",b,p),yf(l,"keyup",S,p)}if(!aa){const b=()=>{ft=[]};aa={listener:b,capture:p},yf(window,"focus",b,p)}}}function v4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(gt).forEach(r=>{gt[r].filter(i=>i.scope===t&&i.shortcut===e).forEach(i=>{i&&i.method&&i.method()})})}function Xp(e){const t=Object.values(gt).flat();if(t.findIndex(n=>{let{element:i}=n;return i===e})<0){const{keydownListener:n,keyupListenr:i,capture:s}=Ln.get(e)||{};n&&i&&(qs(e,"keyup",i,s),qs(e,"keydown",n,s),Ln.delete(e))}if((t.length<=0||Ln.size<=0)&&(Object.keys(Ln).forEach(i=>{const{keydownListener:s,keyupListenr:l,capture:c}=Ln.get(i)||{};s&&l&&(qs(i,"keyup",l,c),qs(i,"keydown",s,c),Ln.delete(i))}),Ln.clear(),Object.keys(gt).forEach(i=>delete gt[i]),aa)){const{listener:i,capture:s}=aa;qs(window,"focus",i,s),aa=null}}const wf={getPressedKeyString:u4,setScope:L1,getScope:va,deleteScope:h4,getPressedKeyCodes:c4,getAllKeyCodes:d4,isPressed:p4,filter:f4,trigger:v4,unbind:z1,keyMap:ga,modifier:Jr,modifierMap:Xs};for(const e in wf)Object.prototype.hasOwnProperty.call(wf,e)&&(Yr[e]=wf[e]);if(typeof window<"u"){const e=window.hotkeys;Yr.noConflict=t=>(t&&window.hotkeys===Yr&&(window.hotkeys=e),Yr),window.hotkeys=Yr}Yr.filter=()=>!0;function m4(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:i=!0}=r,s=N.useCallback((c,u)=>{i&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Yr.unbind(e,s)};N.useEffect(()=>(Yr(e,r,s),l),[e,r,s])}const b4=e=>{const t=N.useRef(null);return N.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 y4(e){const t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}function w4(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function x4(e){const t=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function S4(e){const[t,r]=N.useState(e),n=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},i=N.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:i}}const $1=N.createContext(""),E4=e=>A.jsx($1.Provider,{value:e.value,children:e.children}),_4=()=>{const e=N.useContext($1);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function O4(e){const[t,r]=N.useState(e),n=N.useMemo(()=>k4(t,r),[]);return{state:t,actions:{...n,set:i=>{r(typeof i=="function"?i:s=>({...s,...i}))}}}}function k4(e,t=()=>{}){return Object.keys(e).reduce((n,i)=>({...n,[`set${He.upperFirst(i)}`]:s=>t(l=>({...l,[i]:s}))}),{})}const A4=(e,t,r={})=>{r={timeout:200,...r};const n=N.useRef(),i=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return N.useCallback((s,...l)=>{i(),t&&s.detail===1&&(n.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function Wt(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 i=M4[e],s=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fo(e){return!!e&&!!e[_r]}function qi(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===D4})(e)||Array.isArray(e)||!!e[fy]||!!(!((t=e.constructor)===null||t===void 0)&&t[fy])||Jp(e)||Qp(e))}function ma(e,t,r){r===void 0&&(r=!1),Zo(e)===0?(r?Object.keys:nh)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Zo(e){var t=e[_r];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Jp(e)?2:Qp(e)?3:0}function Jf(e,t){return Zo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function T4(e,t){return Zo(e)===2?e.get(t):e[t]}function j1(e,t,r){var n=Zo(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function R4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Jp(e){return P4&&e instanceof Map}function Qp(e){return N4&&e instanceof Set}function Li(e){return e.o||e.t}function eh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=L4(e);delete t[_r];for(var r=nh(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function ba(e,t){return t===void 0&&(t=!1),th(e)||Fo(e)||!qi(e)||(Zo(e)>1&&(e.set=e.add=e.clear=e.delete=C4),Object.freeze(e),t&&ma(e,(function(r,n){return ba(n,!0)}),!0)),e}function C4(){Wt(2)}function th(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=z4[e];return t||Wt(18,e),t}function oy(){return process.env.NODE_ENV==="production"||Ho||Wt(0),Ho}function xf(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function $c(e){Qf(e),e.p.forEach(I4),e.p=null}function Qf(e){e===Ho&&(Ho=e.l)}function sy(e){return Ho={p:[],l:Ho,h:e,m:!0,_:0}}function I4(e){var t=e[_r];t.i===0||t.i===1?t.j():t.g=!0}function Sf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||xn("ES5").S(t,e,n),n?(r[_r].P&&($c(t),Wt(4)),qi(e)&&(e=jc(t,e),t.l||Fc(t,e)),t.u&&xn("Patches").M(r[_r].t,e,t.u,t.s)):e=jc(t,r,[]),$c(t),t.u&&t.v(t.u,t.s),e!==H1?e:void 0}function jc(e,t,r){if(th(t))return t;var n=t[_r];if(!n)return ma(t,(function(c,u){return ay(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Fc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=eh(n.k):n.o,s=i,l=!1;n.i===3&&(s=new Set(i),i.clear(),l=!0),ma(s,(function(c,u){return ay(e,n,i,c,u,r,l)})),Fc(e,i,!1),r&&e.u&&xn("Patches").N(n,r,e.u,e.s)}return n.o}function ay(e,t,r,n,i,s,l){if(process.env.NODE_ENV!=="production"&&i===r&&Wt(5),Fo(i)){var c=jc(e,i,s&&t&&t.i!==3&&!Jf(t.R,n)?s.concat(n):void 0);if(j1(r,n,c),!Fo(c))return;e.m=!1}else l&&r.add(i);if(qi(i)&&!th(i)){if(!e.h.D&&e._<1)return;jc(e,i),t&&t.A.l||Fc(e,i)}}function Fc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ba(t,r)}function Ef(e,t){var r=e[_r];return(r?Li(r):e)[t]}function ly(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 ep(e){e.P||(e.P=!0,e.l&&ep(e.l))}function _f(e){e.o||(e.o=eh(e.t))}function tp(e,t,r){var n=Jp(t)?xn("MapSet").F(t,r):Qp(t)?xn("MapSet").T(t,r):e.O?(function(i,s){var l=Array.isArray(i),c={i:l?1:0,A:s?s.A:oy(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=c,f=rp;l&&(u=[c],f=Js);var g=Proxy.revocable(u,f),p=g.revoke,h=g.proxy;return c.k=h,c.j=p,h})(t,r):xn("ES5").J(t,r);return(r?r.A:oy()).p.push(n),n}function F1(e){return Fo(e)||Wt(22,e),(function t(r){if(!qi(r))return r;var n,i=r[_r],s=Zo(r);if(i){if(!i.P&&(i.i<4||!xn("ES5").K(i)))return i.t;i.I=!0,n=cy(r,s),i.I=!1}else n=cy(r,s);return ma(n,(function(l,c){i&&T4(i.t,l)===c||j1(n,l,t(c))})),s===3?new Set(n):n})(e)}function cy(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return eh(e)}var uy,Ho,rh=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",P4=typeof Map<"u",N4=typeof Set<"u",dy=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",H1=rh?Symbol.for("immer-nothing"):((uy={})["immer-nothing"]=!0,uy),fy=rh?Symbol.for("immer-draftable"):"__$immer_draftable",_r=rh?Symbol.for("immer-state"):"__$immer_state",M4={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"},D4=""+Object.prototype.constructor,nh=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,L4=Object.getOwnPropertyDescriptors||function(e){var t={};return nh(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},z4={},rp={get:function(e,t){if(t===_r)return e;var r=Li(e);if(!Jf(r,t))return(function(i,s,l){var c,u=ly(s,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!qi(n)?n:n===Ef(e.t,t)?(_f(e),e.o[t]=tp(e.A.h,n,e)):n},has:function(e,t){return t in Li(e)},ownKeys:function(e){return Reflect.ownKeys(Li(e))},set:function(e,t,r){var n=ly(Li(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Ef(Li(e),t),s=i==null?void 0:i[_r];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(R4(r,i)&&(r!==void 0||Jf(e.t,t)))return!0;_f(e),ep(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ef(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,_f(e),ep(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Li(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Wt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Wt(12)}},Js={};ma(rp,(function(e,t){Js[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Js.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Wt(13),Js.set.call(this,e,t,void 0)},Js.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Wt(14),rp.set.call(this,e[0],t,r,e[0])};var $4=(function(){function e(r){var n=this;this.O=dy,this.D=!0,this.produce=function(i,s,l){if(typeof i=="function"&&typeof s!="function"){var c=s;s=i;var u=n;return function(v){var y=this;v===void 0&&(v=c);for(var m=arguments.length,w=Array(m>1?m-1:0),x=1;x<m;x++)w[x-1]=arguments[x];return u.produce(v,(function(O){var _;return(_=s).call.apply(_,[y,O].concat(w))}))}}var f;if(typeof s!="function"&&Wt(6),l!==void 0&&typeof l!="function"&&Wt(7),qi(i)){var g=sy(n),p=tp(n,i,void 0),h=!0;try{f=s(p),h=!1}finally{h?$c(g):Qf(g)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return xf(g,l),Sf(v,g)}),(function(v){throw $c(g),v})):(xf(g,l),Sf(f,g))}if(!i||typeof i!="object"){if((f=s(i))===void 0&&(f=i),f===H1&&(f=void 0),n.D&&ba(f,!0),l){var b=[],S=[];xn("Patches").M(i,f,b,S),l(b,S)}return f}Wt(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(f){for(var g=arguments.length,p=Array(g>1?g-1:0),h=1;h<g;h++)p[h-1]=arguments[h];return n.produceWithPatches(f,(function(b){return i.apply(void 0,[b].concat(p))}))};var l,c,u=n.produce(i,s,(function(f,g){l=f,c=g}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(f){return[f,l,c]})):[u,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){qi(r)||Wt(8),Fo(r)&&(r=F1(r));var n=sy(this),i=tp(this,r,void 0);return i[_r].C=!0,Qf(n),i},t.finishDraft=function(r,n){var i=r&&r[_r];process.env.NODE_ENV!=="production"&&(i&&i.C||Wt(9),i.I&&Wt(10));var s=i.A;return xf(s,n),Sf(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!dy&&Wt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var l=xn("Patches").$;return Fo(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),Or=new $4,j4=Or.produce;Or.produceWithPatches.bind(Or);Or.setAutoFreeze.bind(Or);Or.setUseProxies.bind(Or);Or.applyPatches.bind(Or);Or.createDraft.bind(Or);Or.finishDraft.bind(Or);function F4(e){var t=N.useState(function(){return ba(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],N.useCallback(function(n){r(typeof n=="function"?j4(n):ba(n))},[])]}const H4=process.env.NODE_ENV==="development",Of=H4&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,B4=(e,t,r)=>{const[n,i]=F4(e),s=N.useRef(null);N.useEffect(()=>{var u;return r&&(s.current=Of==null?void 0:Of.connect({name:r,trace:!0}),(u=s.current)==null||u.init(e)),()=>{var f,g;(g=(f=s.current)==null?void 0:f.disconnect)==null||g.call(f)}},[]);const l=t&&typeof t=="object"?t:{},c=N.useMemo(()=>Object.keys(l).reduce((u,f)=>({...u,[f]:g=>(i(p=>{var h;l[f](p,g),(h=s.current)==null||h.send({type:l[f].name},F1(p))}),c)}),{}),[i]);return{state:n,dispatch:c}},W4=e=>{const t=mh(e),r=()=>{const{id:n,namespace:i}=t,s=window.DataSource.spaces[i];if(s&&s.sources)return s.sources[n]};return{actions:{setProperty:(n,i)=>{try{const s=r();s&&s.setValue(n,i)}catch{}},getValue:()=>r()}}},V4=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:i}=mh(e),[s,l]=N.useState(!1),c=N.useCallback(()=>{try{return window.DataSource.getSource(n,i)}catch{return}},[i,n]),u=(p,h)=>{const b=c();b&&b.setValue(p,h)},f=async()=>{const p=c();if(!p)return;const h=await(p==null?void 0:p.getValue());r==null||r(h)},g=p=>{const{id:h}=p;!s&&h&&h.startsWith(n)&&l(!0)};return N.useEffect(()=>{if(s){const p=c();return p?(p==null||p.addListener("changed",f),()=>p==null?void 0:p.removeListener("changed",f)):void 0}},[s]),N.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:s,setCurrentSource:u}};function U4(e=!1){const[t,r]=N.useState(e),n=N.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(i=>!i)}),[]);return[t,n]}function q4(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),N.useCallback((...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function B1(e,t){const r=e!==void 0;return[r,r?e:t]}function G4({value:e,defaultValue:t,onChange:r}){const[n,i]=N.useState(t),[s,l]=B1(e,n),c=N.useCallback(u=>{const f=typeof u=="function"?u(l):u;s||i(f),f!==l&&(r==null||r(f))},[l,s,r]);return[l,c]}const Z4=typeof window<"u"?N.useLayoutEffect:N.useEffect;function K4(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function Y4(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function Hn(e){return typeof e=="function"}function W1(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 kf=W1(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
252
|
+
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
253
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function np(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ou=(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,i,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Hf(l),u=c.next();!u.done;u=c.next()){var f=u.value;f.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var g=this.initialTeardown;if(Hn(g))try{g()}catch(v){s=v instanceof kf?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=Hf(p),b=h.next();!b.done;b=h.next()){var S=b.value;try{py(S)}catch(v){s=s??[],v instanceof kf?s=Pc(Pc([],Bf(s)),Bf(v.errors)):s.push(v)}}}catch(v){n={error:v}}finally{try{b&&!b.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new kf(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)py(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)&&np(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&np(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),V1=ou.EMPTY;function U1(e){return e instanceof ou||e&&"closed"in e&&Hn(e.remove)&&Hn(e.add)&&Hn(e.unsubscribe)}function py(e){Hn(e)?e():e.unsubscribe()}var X4={Promise:void 0},J4={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Pc([e,t],Bf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Q4(e){J4.setTimeout(function(){throw e})}function hy(){}function xc(e){e()}var q1=(function(e){Jc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,U1(r)&&r.add(n)):n.destination=r$,n}return t.create=function(r,n,i){return new ip(r,n,i)},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})(ou),e$=(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){tc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){tc(n)}else tc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){tc(r)}},e})(),ip=(function(e){Jc(t,e);function t(r,n,i){var s=e.call(this)||this,l;return Hn(r)||!r?l={next:r??void 0,error:n??void 0,complete:i??void 0}:l=r,s.destination=new e$(l),s}return t})(q1);function tc(e){Q4(e)}function t$(e){throw e}var r$={closed:!0,next:hy,error:t$,complete:hy},n$=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function i$(e){return e}function o$(e){return e.length===0?i$:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var gy=(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 i=this,s=a$(t)?t:new ip(t,r,n);return xc(function(){var l=i,c=l.operator,u=l.source;s.add(c?c.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=vy(r),new r(function(i,s){var l=new ip({next:function(c){try{t(c)}catch(u){s(u),l.unsubscribe()}},error:s,complete:i});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[n$]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return o$(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=vy(t),new t(function(n,i){var s;r.subscribe(function(l){return s=l},function(l){return i(l)},function(){return n(s)})})},e.create=function(t){return new e(t)},e})();function vy(e){var t;return(t=e??X4.Promise)!==null&&t!==void 0?t:Promise}function s$(e){return e&&Hn(e.next)&&Hn(e.error)&&Hn(e.complete)}function a$(e){return e&&e instanceof q1||s$(e)&&U1(e)}var l$=W1(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_n=(function(e){Jc(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 my(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new l$},t.prototype.next=function(r){var n=this;xc(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Hf(n.currentObservers),c=l.next();!c.done;c=l.next()){var u=c.value;u.next(r)}}catch(f){i={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;xc(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;xc(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,i=this,s=i.hasError,l=i.isStopped,c=i.observers;return s||l?V1:(this.currentObservers=null,c.push(r),new ou(function(){n.currentObservers=null,np(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,l=n.isStopped;i?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new gy;return r.source=this,r},t.create=function(r,n){return new my(r,n)},t})(gy),my=(function(e){Jc(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.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,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:V1},t})(_n),G1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(G1||{}),Z1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Z1||{});const c$=new _n,u$=new _n,ih=new _n;var K1=(e=>(e.SAVE_ALL="save-all",e))(K1||{});const d$=new _n;var Y1=(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))(Y1||{});const f$=new _n;var X1=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(X1||{});const p$=new _n,h$=new _n;var ya=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(ya||{});const Hc=new _n,g$=new _n,oh=255;var sh=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${oh} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(sh||{});function su(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>oh)throw new Error(sh.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function v$(e){if(!e)return null;if(typeof e=="string")try{su(e)}catch(t){return t.message}}function m$(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!He.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!He.isObject(n)||Array.isArray(n))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function b$(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function au(e){const{PLACEHOLDER_PREFIX:t,counter:r}=b$();let n=r;const i=[],s="@!",l=g=>(i.push(g),`${t}${n++}${s}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,p,h)=>p+l(h)),c=c.replace(/:\d{2}:\d{2}/g,l);const u=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let f=c.replace(u,"");for(let g=0;g<i.length;g++){const h=`${t}${g}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(h,"g");f=f.replace(b,i[g])}return f}const J1=(e,t,r)=>{const n=e instanceof RegExp?by(e,r):e,i=t instanceof RegExp?by(t,r):t,s=n!==null&&i!=null&&y$(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},by=(e,t)=>{const r=t.match(e);return r?r[0]:null},y$=(e,t,r)=>{let n,i,s,l,c,u=r.indexOf(e),f=r.indexOf(t,u+1),g=u;if(u>=0&&f>0){if(e===t)return[u,f];for(n=[],s=r.length;g>=0&&!c;){if(g===u)n.push(g),u=r.indexOf(e,g+1);else if(n.length===1){const p=n.pop();p!==void 0&&(c=[p,f])}else i=n.pop(),i!==void 0&&i<s&&(s=i,l=f),f=r.indexOf(t,g+1);g=u<f&&u>=0?u:f}n.length&&l!==void 0&&(c=[s,l])}return c},Q1="\0SLASH"+Math.random()+"\0",eS="\0OPEN"+Math.random()+"\0",ah="\0CLOSE"+Math.random()+"\0",tS="\0COMMA"+Math.random()+"\0",rS="\0PERIOD"+Math.random()+"\0",w$=new RegExp(Q1,"g"),x$=new RegExp(eS,"g"),S$=new RegExp(ah,"g"),E$=new RegExp(tS,"g"),_$=new RegExp(rS,"g"),O$=/\\\\/g,k$=/\\{/g,A$=/\\}/g,T$=/\\,/g,R$=/\\\./g,C$=1e5;function Af(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function I$(e){return e.replace(O$,Q1).replace(k$,eS).replace(A$,ah).replace(T$,tS).replace(R$,rS)}function P$(e){return e.replace(w$,"\\").replace(x$,"{").replace(S$,"}").replace(E$,",").replace(_$,".")}function nS(e){if(!e)return[""];const t=[],r=J1("{","}",e);if(!r)return e.split(",");const{pre:n,body:i,post:s}=r,l=n.split(",");l[l.length-1]+="{"+i+"}";const c=nS(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function N$(e,t={}){if(!e)return[];const{max:r=C$}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Qs(I$(e),r,!0).map(P$)}function M$(e){return"{"+e+"}"}function D$(e){return/^-?0\d/.test(e)}function L$(e,t){return e<=t}function z$(e,t){return e>=t}function Qs(e,t,r){const n=[],i=J1("{","}",e);if(!i)return[e];const s=i.pre,l=i.post.length?Qs(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c<l.length&&c<t;c++){const u=s+"{"+i.body+"}"+l[c];n.push(u)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=c||u,g=i.body.indexOf(",")>=0;if(!f&&!g)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+ah+i.post,Qs(e,t,!0)):[e];let p;if(f)p=i.body.split(/\.\./);else if(p=nS(i.body),p.length===1&&p[0]!==void 0&&(p=Qs(p[0],t,!1).map(M$),p.length===1))return l.map(b=>i.pre+p[0]+b);let h;if(f&&p[0]!==void 0&&p[1]!==void 0){const b=Af(p[0]),S=Af(p[1]),v=Math.max(p[0].length,p[1].length);let y=p.length===3&&p[2]!==void 0?Math.max(Math.abs(Af(p[2])),1):1,m=L$;S<b&&(y*=-1,m=z$);const x=p.some(D$);h=[];for(let O=b;m(O,S);O+=y){let _;if(u)_=String.fromCharCode(O),_==="\\"&&(_="");else if(_=String(O),x){const R=v-_.length;if(R>0){const H=new Array(R+1).join("0");O<0?_="-"+H+_.slice(1):_=H+_}}h.push(_)}}else{h=[];for(let b=0;b<p.length;b++)h.push.apply(h,Qs(p[b],t,!1))}for(let b=0;b<h.length;b++)for(let S=0;S<l.length&&n.length<t;S++){const v=s+h[b]+l[S];(!r||f||v)&&n.push(v)}}return n}const $$=1024*64,Bc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$$)throw new TypeError("pattern is too long")},j$={"[: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]},Gs=e=>e.replace(/[[\]\\-]/g,"\\$&"),F$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),yy=e=>e.join(""),H$=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],i=[];let s=r+1,l=!1,c=!1,u=!1,f=!1,g=r,p="";e:for(;s<e.length;){const v=e.charAt(s);if((v==="!"||v==="^")&&s===r+1){f=!0,s++;continue}if(v==="]"&&l&&!u){g=s+1;break}if(l=!0,v==="\\"&&!u){u=!0,s++;continue}if(v==="["&&!u){for(const[y,[m,w,x]]of Object.entries(j$))if(e.startsWith(y,s)){if(p)return["$.",!1,e.length-r,!0];s+=y.length,x?i.push(m):n.push(m),c=c||w;continue e}}if(u=!1,p){v>p?n.push(Gs(p)+"-"+Gs(v)):v===p&&n.push(Gs(v)),p="",s++;continue}if(e.startsWith("-]",s+1)){n.push(Gs(v+"-")),s+=2;continue}if(e.startsWith("-",s+1)){p=v,s+=2;continue}n.push(Gs(v)),s++}if(g<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){const v=n[0].length===2?n[0].slice(-1):n[0];return[F$(v),!1,g-r,!1]}const h="["+(f?"^":"")+yy(n)+"]",b="["+(f?"":"^")+yy(i)+"]";return[n.length&&i.length?"("+h+"|"+b+")":n.length?h:b,c,g-r,!0]},ea=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var lr;const B$=new Set(["!","?","+","*","@"]),op=e=>B$.has(e),wy=e=>op(e.type),W$=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),V$=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),U$=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),xy=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),q$="(?!(?:^|/)\\.\\.?(?:$|/))",rc="(?!\\.)",G$=new Set(["[","."]),Z$=new Set(["..","."]),K$=new Set("().*{}+?[]^$\\!"),Y$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lh="[^/]",Sy=lh+"*?",Ey=lh+"+?";let X$=0;var St,Nt,$n,Ce,dt,di,ji,fi,gn,vn,No,We,iS,hi,Sc,oS,sp,Ec,sS,ap,aS,lS,cS,_c,lp,uS;class lu{constructor(t,r,n={}){Ft(this,We);Ae(this,"type");Ft(this,St);Ft(this,Nt);Ft(this,$n,!1);Ft(this,Ce,[]);Ft(this,dt);Ft(this,di);Ft(this,ji);Ft(this,fi,!1);Ft(this,gn);Ft(this,vn);Ft(this,No,!1);Ae(this,"id",++X$);this.type=t,t&&Qe(this,Nt,!0),Qe(this,dt,r),Qe(this,St,le(this,dt)?le(le(this,dt),St):this),Qe(this,gn,le(this,St)===this?n:le(le(this,St),gn)),Qe(this,ji,le(this,St)===this?[]:le(le(this,St),ji)),t==="!"&&!le(le(this,St),fi)&&le(this,ji).push(this),Qe(this,di,le(this,dt)?le(le(this,dt),Ce).length:0)}get depth(){var t;return(((t=le(this,dt))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:le(this,St).id,parent:(t=le(this,dt))==null?void 0:t.id,depth:this.depth,partsLength:le(this,Ce).length,parts:le(this,Ce)}}get hasMagic(){if(le(this,Nt)!==void 0)return le(this,Nt);for(const t of le(this,Ce))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,Nt,!0);return le(this,Nt)}toString(){return le(this,vn)!==void 0?le(this,vn):this.type?Qe(this,vn,this.type+"("+le(this,Ce).map(t=>String(t)).join("|")+")"):Qe(this,vn,le(this,Ce).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof lr&&le(r,dt)===this))throw new Error("invalid part: "+r);le(this,Ce).push(r)}}toJSON(){var r;const t=this.type===null?le(this,Ce).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...le(this,Ce).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===le(this,St)||le(le(this,St),fi)&&((r=le(this,dt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(le(this,St)===this)return!0;if(!((r=le(this,dt))!=null&&r.isStart()))return!1;if(le(this,di)===0)return!0;const t=le(this,dt);for(let n=0;n<le(this,di);n++){const i=le(t,Ce)[n];if(!(i instanceof lr&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(le(this,St)===this||((r=le(this,dt))==null?void 0:r.type)==="!")return!0;if(!((n=le(this,dt))!=null&&n.isEnd()))return!1;if(!this.type)return(i=le(this,dt))==null?void 0:i.isEnd();const t=le(this,dt)?le(le(this,dt),Ce).length:0;return le(this,di)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new lr(this.type,t);for(const n of le(this,Ce))r.copyIn(n);return r}static fromGlob(t,r={}){var i;const n=new lr(null,void 0,r);return Ee(i=lr,hi,Sc).call(i,t,n,0,r,0),n}toMMPattern(){if(this!==le(this,St))return le(this,St).toMMPattern();const t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||le(this,Nt)||le(this,gn).nocase&&!le(this,gn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(le(this,gn).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return le(this,gn)}toRegExpSource(t){var u;const r=t??!!le(this,gn).dot;if(le(this,St)===this&&(Ee(this,We,_c).call(this),Ee(this,We,iS).call(this)),!wy(this)){const f=this.isStart()&&this.isEnd()&&!le(this,Ce).some(S=>typeof S!="string"),g=le(this,Ce).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?Ee(x=lr,hi,uS).call(x,S,le(this,Nt),f):S.toRegExpSource(t);return Qe(this,Nt,le(this,Nt)||m),Qe(this,$n,le(this,$n)||w),v}).join("");let p="";if(this.isStart()&&typeof le(this,Ce)[0]=="string"&&!(le(this,Ce).length===1&&Z$.has(le(this,Ce)[0]))){const v=G$,y=r&&v.has(g.charAt(0))||g.startsWith("\\.")&&v.has(g.charAt(2))||g.startsWith("\\.\\.")&&v.has(g.charAt(4)),m=!r&&!t&&v.has(g.charAt(0));p=y?q$:m?rc:""}let h="";return this.isEnd()&&le(le(this,St),fi)&&((u=le(this,dt))==null?void 0:u.type)==="!"&&(h="(?:$|\\/)"),[p+g+h,ea(g),Qe(this,Nt,!!le(this,Nt)),le(this,$n)]}const n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let s=Ee(this,We,lp).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const f=this.toString(),g=this;return Qe(g,Ce,[f]),g.type=null,Qe(g,Nt,void 0),[f,ea(this.toString()),!1,!1]}let l=!n||t||r||!rc?"":Ee(this,We,lp).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&le(this,No))c=(this.isStart()&&!r?rc:"")+Ey;else{const f=this.type==="!"?"))"+(this.isStart()&&!r&&!t?rc:"")+Sy+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=i+s+f}return[c,ea(s),Qe(this,Nt,!!le(this,Nt)),le(this,$n)]}}St=new WeakMap,Nt=new WeakMap,$n=new WeakMap,Ce=new WeakMap,dt=new WeakMap,di=new WeakMap,ji=new WeakMap,fi=new WeakMap,gn=new WeakMap,vn=new WeakMap,No=new WeakMap,We=new WeakSet,iS=function(){if(this!==le(this,St))throw new Error("should only call on root");if(le(this,fi))return this;this.toString(),Qe(this,fi,!0);let t;for(;t=le(this,ji).pop();){if(t.type!=="!")continue;let r=t,n=le(r,dt);for(;n;){for(let i=le(r,di)+1;!n.type&&i<le(n,Ce).length;i++)for(const s of le(t,Ce)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(le(n,Ce)[i])}r=n,n=le(r,dt)}}return this},hi=new WeakSet,Sc=function(t,r,n,i,s){var v,y,m,w;const l=i.maxExtglobRecursion??2;let c=!1,u=!1,f=-1,g=!1;if(r.type===null){let x=n,O="";for(;x<t.length;){const _=t.charAt(x++);if(c||_==="\\"){c=!c,O+=_;continue}if(u){x===f+1?(_==="^"||_==="!")&&(g=!0):_==="]"&&!(x===f+2&&g)&&(u=!1),O+=_;continue}else if(_==="["){u=!0,f=x,g=!1,O+=_;continue}if(!i.noext&&op(_)&&t.charAt(x)==="("&&s<=l){r.push(O),O="";const H=new lr(_,r);x=Ee(v=lr,hi,Sc).call(v,t,H,x,i,s+1),r.push(H);continue}O+=_}return r.push(O),x}let p=n+1,h=new lr(null,r);const b=[];let S="";for(;p<t.length;){const x=t.charAt(p++);if(c||x==="\\"){c=!c,S+=x;continue}if(u){p===f+1?(x==="^"||x==="!")&&(g=!0):x==="]"&&!(p===f+2&&g)&&(u=!1),S+=x;continue}else if(x==="["){u=!0,f=p,g=!1,S+=x;continue}if(!i.noext&&op(x)&&t.charAt(p)==="("&&(s<=l||r&&Ee(y=r,We,Ec).call(y,x))){const _=r&&Ee(m=r,We,Ec).call(m,x)?0:1;h.push(S),S="";const R=new lr(x,h);h.push(R),p=Ee(w=lr,hi,Sc).call(w,t,R,p,i,s+_);continue}if(x==="|"){h.push(S),S="",b.push(h),h=new lr(null,r);continue}if(x===")")return S===""&&le(r,Ce).length===0&&Qe(r,No,!0),h.push(S),S="",r.push(...b,h),p;S+=x}return r.type=null,Qe(r,Nt,void 0),Qe(r,Ce,[t.substring(n-1)]),p},oS=function(t){return Ee(this,We,sp).call(this,t,V$)},sp=function(t,r=W$){if(!t||typeof t!="object"||t.type!==null||le(t,Ce).length!==1||this.type===null)return!1;const n=le(t,Ce)[0];return!n||typeof n!="object"||n.type===null?!1:Ee(this,We,Ec).call(this,n.type,r)},Ec=function(t,r=U$){var n;return!!((n=r.get(this.type))!=null&&n.includes(t))},sS=function(t,r){const n=le(t,Ce)[0],i=new lr(null,n,this.options);le(i,Ce).push(""),n.push(i),Ee(this,We,ap).call(this,t,r)},ap=function(t,r){const n=le(t,Ce)[0];le(this,Ce).splice(r,1,...le(n,Ce));for(const i of le(n,Ce))typeof i=="object"&&Qe(i,dt,this);Qe(this,vn,void 0)},aS=function(t){const r=xy.get(this.type);return!!(r!=null&&r.has(t))},lS=function(t){if(!t||typeof t!="object"||t.type!==null||le(t,Ce).length!==1||this.type===null||le(this,Ce).length!==1)return!1;const r=le(t,Ce)[0];return!r||typeof r!="object"||r.type===null?!1:Ee(this,We,aS).call(this,r.type)},cS=function(t){const r=xy.get(this.type),n=le(t,Ce)[0],i=r==null?void 0:r.get(n.type);if(!i)return!1;Qe(this,Ce,le(n,Ce));for(const s of le(this,Ce))typeof s=="object"&&Qe(s,dt,this);this.type=i,Qe(this,vn,void 0),Qe(this,No,!1)},_c=function(){var t,r;if(wy(this)){let n=0,i=!1;do{i=!0;for(let s=0;s<le(this,Ce).length;s++){const l=le(this,Ce)[s];typeof l=="object"&&(Ee(r=l,We,_c).call(r),Ee(this,We,sp).call(this,l)?(i=!1,Ee(this,We,ap).call(this,l,s)):Ee(this,We,oS).call(this,l)?(i=!1,Ee(this,We,sS).call(this,l,s)):Ee(this,We,lS).call(this,l)&&(i=!1,Ee(this,We,cS).call(this,l)))}}while(!i&&++n<10)}else for(const n of le(this,Ce))typeof n=="object"&&Ee(t=n,We,_c).call(t);Qe(this,vn,void 0)},lp=function(t){return le(this,Ce).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,i,s,l]=r.toRegExpSource(t);return Qe(this,$n,le(this,$n)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},uS=function(t,r,n=!1){let i=!1,s="",l=!1,c=!1;for(let u=0;u<t.length;u++){const f=t.charAt(u);if(i){i=!1,s+=(K$.has(f)?"\\":"")+f;continue}if(f==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(t)?Ey:Sy,r=!0;continue}else c=!1;if(f==="\\"){u===t.length-1?s+="\\\\":i=!0;continue}if(f==="["){const[g,p,h,b]=H$(t,u);if(h){s+=g,l=l||p,u+=h-1,r=r||b;continue}}if(f==="?"){s+=lh,r=!0;continue}s+=Y$(f)}return[s,ea(t),!!r,l]},Ft(lu,hi);lr=lu;const J$=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Vt=(e,t,r={})=>(Bc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new cu(t,r).match(e)),Q$=/^\*+([^+@!?*[(]*)$/,ej=e=>t=>!t.startsWith(".")&&t.endsWith(e),tj=e=>t=>t.endsWith(e),rj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),nj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),ij=/^\*+\.\*+$/,oj=e=>!e.startsWith(".")&&e.includes("."),sj=e=>e!=="."&&e!==".."&&e.includes("."),aj=/^\.\*+$/,lj=e=>e!=="."&&e!==".."&&e.startsWith("."),cj=/^\*+$/,uj=e=>e.length!==0&&!e.startsWith("."),dj=e=>e.length!==0&&e!=="."&&e!=="..",fj=/^\?+([^+@!?*[(]*)?$/,pj=([e,t=""])=>{const r=dS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},hj=([e,t=""])=>{const r=fS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},gj=([e,t=""])=>{const r=fS([e]);return t?n=>r(n)&&n.endsWith(t):r},vj=([e,t=""])=>{const r=dS([e]);return t?n=>r(n)&&n.endsWith(t):r},dS=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},fS=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},pS=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",_y={win32:{sep:"\\"},posix:{sep:"/"}},mj=pS==="win32"?_y.win32.sep:_y.posix.sep;Vt.sep=mj;const Kt=Symbol("globstar **");Vt.GLOBSTAR=Kt;const bj="[^/]",yj=bj+"*?",wj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",xj="(?:(?!(?:\\/|^)\\.).)*?",Sj=(e,t={})=>r=>Vt(r,e,t);Vt.filter=Sj;const Mr=(e,t={})=>Object.assign({},e,t),Ej=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Vt;const t=Vt;return Object.assign((n,i,s={})=>t(n,i,Mr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,Mr(e,s))}static defaults(i){return t.defaults(Mr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,l={}){super(i,s,Mr(e,l))}static fromGlob(i,s={}){return t.AST.fromGlob(i,Mr(e,s))}},unescape:(n,i={})=>t.unescape(n,Mr(e,i)),escape:(n,i={})=>t.escape(n,Mr(e,i)),filter:(n,i={})=>t.filter(n,Mr(e,i)),defaults:n=>t.defaults(Mr(e,n)),makeRe:(n,i={})=>t.makeRe(n,Mr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,Mr(e,i)),match:(n,i,s={})=>t.match(n,i,Mr(e,s)),sep:t.sep,GLOBSTAR:Kt})};Vt.defaults=Ej;const hS=(e,t={})=>(Bc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:N$(e,{max:t.braceExpandMax}));Vt.braceExpand=hS;const _j=(e,t={})=>new cu(e,t).makeRe();Vt.makeRe=_j;const Oj=(e,t,r={})=>{const n=new cu(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};Vt.match=Oj;const Oy=/[?*]|[+@!]\(.*?\)|\[|\]/,kj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Sr,gS,cp,Oo;class cu{constructor(t,r={}){Ft(this,Sr);Ae(this,"options");Ae(this,"set");Ae(this,"pattern");Ae(this,"windowsPathsNoEscape");Ae(this,"nonegate");Ae(this,"negate");Ae(this,"comment");Ae(this,"empty");Ae(this,"preserveMultipleSlashes");Ae(this,"partial");Ae(this,"globSet");Ae(this,"globParts");Ae(this,"nocase");Ae(this,"isWindows");Ae(this,"platform");Ae(this,"windowsNoMagicRoot");Ae(this,"maxGlobstarRecursion");Ae(this,"regexp");Bc(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||pS,this.isWindows=this.platform==="win32";const n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=s[0]===""&&s[1]===""&&(s[2]==="?"||!Oy.test(s[2]))&&!Oy.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(g=>this.parse(g))];if(f)return[s[0],...s.slice(1).map(g=>this.parse(g))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const n of t)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");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 i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{const s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),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 i=1;i<t.length-1;i++){const s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(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 i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let l=i;for(;n[l+1]==="**";)l++;l>i&&n.splice(i+1,l-i);let c=n[i+1];const u=n[i+2],f=n[i+3];if(c!==".."||!u||u==="."||u===".."||!f||f==="."||f==="..")continue;r=!0,n.splice(i,1);const g=n.slice(0);g[i]="**",t.push(g),i--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){const c=n[l];l===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){const l=n[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=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 i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,l=[],c="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])l.push(c==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])l.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])l.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),i++,s++}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 i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,s=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=u?3:c?0:void 0,h=g?3:f?0:void 0;if(typeof p=="number"&&typeof h=="number"){const[b,S]=[t[p],r[h]];b.toLowerCase()===S.toLowerCase()&&(r[h]=b,s=h,i=p)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Kt)?Ee(this,Sr,gS).call(this,t,r,n,i,s):Ee(this,Sr,Oo).call(this,t,r,n,i,s)}braceExpand(){return hS(this.pattern,this.options)}parse(t){Bc(t);const r=this.options;if(t==="**")return Kt;if(t==="")return"";let n,i=null;(n=t.match(cj))?i=r.dot?dj:uj:(n=t.match(Q$))?i=(r.nocase?r.dot?nj:rj:r.dot?tj:ej)(n[1]):(n=t.match(fj))?i=(r.nocase?r.dot?hj:pj:r.dot?gj:vj)(n):(n=t.match(ij))?i=r.dot?sj:oj:(n=t.match(aj))&&(i=lj);const s=lu.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?yj:r.dot?wj:xj,i=new Set(r.nocase?["i"]:[]);let s=t.map(u=>{const f=u.map(p=>{if(p instanceof RegExp)for(const h of p.flags.split(""))i.add(h);return typeof p=="string"?kj(p):p===Kt?Kt:p._src});f.forEach((p,h)=>{const b=f[h+1],S=f[h-1];p!==Kt||S===Kt||(S===void 0?b!==void 0&&b!==Kt?f[h+1]="(?:\\/|"+n+"\\/)?"+b:f[h]=n:b===void 0?f[h-1]=S+"(?:\\/|\\/"+n+")?":b!==Kt&&(f[h-1]=S+"(?:\\/|\\/"+n+"\\/)"+b,f[h+1]=Kt))});const g=f.filter(p=>p!==Kt);if(this.partial&&g.length>=1){const p=[];for(let h=1;h<=g.length;h++)p.push(g.slice(0,h).join("/"));return"(?:"+p.join("|")+")"}return g.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.partial&&(s="^(?:\\/|"+l+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].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 i=this.slashSplit(t);this.debug(this.pattern,"split",i);const s=this.set;this.debug(this.pattern,"set",s);let l=i[i.length-1];if(!l)for(let c=i.length-2;!l&&c>=0;c--)l=i[c];for(const c of s){let u=i;if(n.matchBase&&c.length===1&&(u=[l]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Vt.defaults(t).Minimatch}}Sr=new WeakSet,gS=function(t,r,n,i,s){const l=r.indexOf(Kt,s),c=r.lastIndexOf(Kt),[u,f,g]=n?[r.slice(s,l),r.slice(l+1),[]]:[r.slice(s,l),r.slice(l+1,c),r.slice(c+1)];if(u.length){const w=t.slice(i,i+u.length);if(!Ee(this,Sr,Oo).call(this,w,u,n,0,0))return!1;i+=u.length,s+=u.length}let p=0;if(g.length){if(g.length+i>t.length)return!1;let w=t.length-g.length;if(Ee(this,Sr,Oo).call(this,t,g,n,w,0))p=g.length;else{if(t[t.length-1]!==""||i+g.length===t.length||(w--,!Ee(this,Sr,Oo).call(this,t,g,n,w,0)))return!1;p=g.length+1}}if(!f.length){let w=!!p;for(let x=i;x<t.length-p;x++){const O=String(t[x]);if(w=!0,O==="."||O===".."||!this.options.dot&&O.startsWith("."))return!1}return n||w}const h=[[[],0]];let b=h[0],S=0;const v=[0];for(const w of f)w===Kt?(v.push(S),b=[[],0],h.push(b)):(b[0].push(w),S++);let y=h.length-1;const m=t.length-p;for(const w of h)w[1]=m-(v[y--]+w[0].length);return!!Ee(this,Sr,cp).call(this,t,h,i,0,n,0,!!p)},cp=function(t,r,n,i,s,l,c){const u=r[i];if(!u){for(let p=n;p<t.length;p++){c=!0;const h=t[p];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}const[f,g]=u;for(;n<=g;){if(Ee(this,Sr,Oo).call(this,t.slice(0,n+f.length),f,s,n,0)&&l<this.maxGlobstarRecursion){const b=Ee(this,Sr,cp).call(this,t,r,n+f.length,i+1,s,l+1,c);if(b!==!1)return b}const h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null},Oo=function(t,r,n,i,s){let l,c,u,f;for(l=i,c=s,f=t.length,u=r.length;l<f&&c<u;l++,c++){this.debug("matchOne loop");let g=r[c],p=t[l];if(this.debug(r,g,p),g===!1||g===Kt)return!1;let h;if(typeof g=="string"?(h=p===g,this.debug("string match",g,p,h)):(h=g.test(p),this.debug("pattern match",g,p,h)),!h)return!1}if(l===f&&c===u)return!0;if(l===f)return n;if(c===u)return l===f-1&&t[l]==="";throw new Error("wtf?")};Vt.AST=lu;Vt.Minimatch=cu;Vt.escape=J$;Vt.unescape=ea;var ch=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(ch||{});const Xr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var je=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(je||{}),mi=(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))(mi||{}),uh=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(uh||{});const dh="roles.json",fh="qodlyApp.json",vS="model.4DModel",ph="HTTPHandlers.json",hh="Shared/i18n.json",mS=[{pattern:fh,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:dh,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:ph,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:hh,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:vS,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:event-report"},{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.qodoc",editor:{key:"editors:reports"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}];function Aj(e){const t=gh(e);switch(t){case je.SETTINGS:return{filename:"Settings",type:t};case je.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case je.ROLES:return{filename:"Roles & Privileges",type:t};case je.LOCALIZATION:return{filename:"Localization",type:t};case je.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function Tj(e){const t=mS.find(({pattern:r})=>Vt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function gh(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return je.MODEL;case r==="WebForm":return je.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Xr.METHODS):return je.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Xr.CLASSES):return je.CLASS;case e===dh:return je.ROLES;case e===ph:return je.HTTP_HANDLERS;case e===fh:return je.SETTINGS;case e===hh:return je.LOCALIZATION;default:return je.TEXT}}function bS(e,t=!1){switch(e){case Xr.REPORTS:case"report":return"QoDoc";case Xr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Xr.CLASSES:case Xr.METHODS:return t?"4qs":"4dm";default:return""}}function Rj(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function Cj(e,t,r){switch(t){case je.MOBILEFORM:return`${e}.MForm`;case je.WEBFORM:return`${e}.WebForm`;case je.REPORT:return`${e}.QoDoc`;case je.METHOD:case je.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class yS{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(i=>{t=i}),n=this.current.then(()=>t);return this.current=r,n}}function vh(){const e=new yS;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const Ij="4DWS_PREFS",wS=He.curry((e,t,r)=>e&&He.get(r,e)===t),Pj=He.curry((e,t,r)=>He.get(r,e)!==t),Nj=He.curry((e,t)=>He.get(t,"id")!==e),Mj=He.curry((e,t)=>He.get(t,"id")===e),Dj=He.curry((e,t)=>He.get(t,"path")===e);function Lj(e="id",t,r){return r.findIndex(wS(e,t))!==-1}function xS(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function zj(){try{const e=localStorage.getItem(Ij);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function $j(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function mh(e=""){const t=e.trim().split(":")||[];let r="",n="";return t.length>1?(r=t[1],n=t[0]):r=t[0],{id:r,namespace:n,root:r.split(".").filter(Boolean)[0],original:n?`${n}:${r}`:r,parts:t}}function SS(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function jj(e){return e.type==="object"}function ES(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function _S(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!SS(e)}function Fj(e){return ES(e)||_S(e)}function Hj(e){return e.applyTo==="dataStore"}function Bj(e){return e.applyTo==="dataClass"}function Wj(e){return e.applyTo==="entity"}function Vj(e){return e.applyTo==="entityCollection"}function Uj(e){return e.type==="entity"}function qj(e){return e.type==="entitysel"}function OS(e){return e.dataType==="array"}function kS(e){return e.dataType==="object"}function AS(e){return e.type==="scalar"}function Gj(e){return OS(e)||kS(e)||AS(e)}const Zj=e=>e!=null&&e.type==="entity",Kj=e=>e.type==="entitysel",Yj=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",Xj=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",Jj=e=>e.type==="scalar"&&e.dataType==="date",Qj=(e,t)=>(e||"")===(t||"");function eF(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function tF(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const ta="Qodly",TS="Location",RS="UserLanguage",CS="Title",Wc={[ta]:[{id:CS,dataType:"string",type:"scalar",namespace:ta,initialValue:""},{id:TS,dataType:"object",type:"scalar",namespace:ta,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:RS,dataType:"object",type:"scalar",namespace:ta,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var wa=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(wa||{}),IS=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(IS||{}),bh=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(bh||{});const rF={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function nF(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:wa.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:bh.table}},...n}}function PS(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[wa.capable,wa.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 iF(e,t,r=!1){const n=He.isString(t)?t:PS(t);if(!r&&NS(e))return e;const i=MS(e);return`//%attributes = ${n}\r
|
|
254
|
+
${i}`}function NS(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function MS(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const up=()=>gi.uuid().replaceAll("-","").toUpperCase();function oF(e){var i,s;const t=new Map,r=new Map,n=new Map;return(i=e.singletons)==null||i.forEach(({methods:l=[],...c})=>{n.set(c.name,{...c,methods:l})}),(s=e.dataClasses)==null||s.forEach(({methods:l=[],...c})=>{const u={...c,methods:l};if(u.uuid||(u.uuid=up()),u.attributes){const f=["storage","relatedEntity"];u.attributes=u.attributes.map(g=>f.includes(g.kind)&&!g.uuid?{...g,uuid:up()}:g)}r.set(u.className,u),t.set(u.collectionName,u)}),{...e,methods:e.methods||[],dataClasses:Object.fromEntries(r.entries()),dataClassByCollectionName:Object.fromEntries(t.entries()),singletons:Object.fromEntries(n.entries())}}const sF=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Xe=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Xe||{}),ct=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ct||{});const aF=[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE,Xe.SINGLETON_METHOD,Xe.SINGLETON,Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD],ky=e=>[ct.DS_METHOD,ct.ENTITY_METHOD,ct.DATACLASS_METHOD].includes(e)?Xe.METHOD:e,Vc="guest",yh=[{key:"read",label:"Read",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD,Xe.SINGLETON,Xe.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD,Xe.SINGLETON_METHOD]}];function Fr(e,...t){return Array.from(new Set([...e,...t]))}function DS(e){const t={},r=new Map;e.forEach(u=>{const f=u.id||gi.generate();t[f]={...u,id:f,parents:[],includes:Fr(u.includes||[]),resources:[]},r.set(u.privilege,f)}),Object.entries(t).forEach(([u,f])=>{const g=f.includes.map(p=>{const h=r.get(p);return h?(t[h].parents=Fr(t[h].parents,h),h):""}).filter(Boolean);t[u]={...f,includes:g}});const n=LS(t),i=new Set;function s(u){i.add(u.id),u.includes=u.includes.filter(f=>!i.has(f))}if(n.forEach(s),n.forEach(u=>u.parents=[]),n.forEach(u=>{u.includes.forEach(f=>t[f].parents.push(u.id))}),Object.values(t).find(({privilege:u})=>u===Vc))return t;const c=gi.generate();return{[c]:{id:c,privilege:Vc,includes:[],parents:[],resources:[]},...t}}function LS(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function uu(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(i=>{n=Fr(n,...uu(i,t),i)}),n}function Uc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(i=>{n=Fr(n,...Uc(i,t),i)}),n}function lF(e,t){const r=t[e];if(!r)return[];const n=[e,...uu(e,t),...r.includes];return Object.keys(t).filter(i=>!n.includes(i))}function cF(e,t){return t[e]?Object.keys(t).reduce((n,i)=>i===e?n:{...n,[i]:{...t[i],parents:t[i].parents.filter(s=>s!==e),includes:t[i].includes.filter(s=>s!==e)}},{}):t}function uF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:Fr(n.includes,t)},[t]:{...r[t],parents:Fr(i.parents,e)}}}function dF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(s=>s!==t)},[t]:{...r[t],parents:r[t].parents.filter(s=>s!==e)}}}function fF(e,t){su(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=gi.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function pF(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:i}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==i)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function hF(e,t){return e.map(r=>Wn(r,t))}function Wn(e,t){return t[e]?t[e]:null}function zS({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[i,s])=>{const l=He.find(yh,["key",i]);return!l||!l.canApplyTo.includes(t)||(typeof s=="string"?s.split(","):s).forEach(u=>{n[u]=Fr(n[u]||[],i)}),n},{})}const Ay=(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 wh(e){return{permissions:yh.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Xe.DATASTORE:return{...n,info:Ay(r,!0)};case Xe.DATACLASS:return{...n,info:Ay(r)};default:return n}}),resource:e.applyTo,type:e.type}}function $S(e,t){const r=jS(t),n={};return e.filter(({type:i})=>aF.includes(i)).forEach(i=>{const s=zS(i);Object.entries(s).forEach(([l,c])=>{var g;const u=(g=r[l])==null?void 0:g.id;if(!u)return;n[u]=n[u]||{...t[u]};let f=He.find(n[u].resources,{resource:i.applyTo,type:i.type});f||(f=wh(i),n[u].resources.push(f)),f.permissions=f.permissions.map(p=>({...p,checked:p.checked||c.includes(p.name)}))})}),{...t,...n}}function jS(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function gF(e){var r;if(!e)throw new Error("Invalid roles data");const t=DS(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:$S(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=gi.generate(),role:i,privileges:s=[]})=>({id:n,role:i,privileges:Fr(s).map(l=>{var c;return(c=Object.values(t).find(({privilege:u})=>u===l))==null?void 0:c.id}).filter(Boolean)})).reduce((n,i)=>({...n,[i.id]:{...i}}),{})}}function vF(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>uu(n,e.privileges).reverse())].flat().filter((n,i,s)=>s.indexOf(n)===i).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,i)=>(i.resources.forEach(({permissions:s,resource:l,type:c})=>{let u=He.find(n,{applyTo:l,type:ky(c)});u||(u={applyTo:l,type:ky(c)},n.push(u)),s.forEach(({name:f,checked:g})=>{g&&u&&(u[f]=u[f]||[],u[f].push(i.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==Vc).map(({id:n,includes:i,privilege:s})=>({id:n,privilege:s,includes:i.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(i=>{var s;return(s=e.privileges[i])==null?void 0:s.privilege}).filter(Boolean)}))}}function mF(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function i(c,u,f=[]){const g=c.reduce((p,h)=>[...p,...t[h][u]],[]);return g.length===0?f:(f.push(g),i(g,u,f))}function s(c){const u=[],f=[];for(let g=c.length-1;g>=0;g-=1){const p=c[g].filter(h=>u.includes(h)?!1:(u.push(h),!0));p.length>0&&f.unshift(Fr(p))}return f}function l(c,u){const f=[];return c.reduce((g,p)=>(p.forEach(h=>{t[h][u==="parents"?"includes":"parents"].forEach(S=>{f.includes(S)&&g.push(u==="parents"?{source:h,target:S}:{source:S,target:h})}),f.push(h)}),g),[])}return n.children=i([e],"includes"),n.children=s(n.children),n.parents=i([e],"parents"),n.parents=s(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function bF(e,t,r){const n=Wn(e,r);if(!n||He.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const i={...n,resources:[...n.resources,wh(t)]};return{...r,[e]:i}}function yF(e,t,r){const n=Wn(e,r);if(!n)return r;const i={...n,resources:n.resources.filter(({resource:s,type:l})=>s!==t.applyTo||l!==t.type)};return{...r,[e]:i}}function wF(e,t){const r=Object.entries(e).map(([n,i])=>{const s=Wn(n,t);if(!s)return{[n]:t[n]};const l={...s,resources:s.resources.filter(({resource:c,type:u})=>!i.some(f=>f.applyTo===c&&f.type===u))};return{[n]:l}}).reduce((n,i)=>({...n,...i}),{});return{...t,...r}}function xF(e,t){const r=Wn(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(i=>i.permissions.some(s=>s.from.length)).map(i=>({...i,permissions:i.permissions.map(s=>({...s,checked:!1}))}))};return{...t,[e]:n}}function SF(e,t,r,n){const i=Wn(e,n);if(!i)return n;const l=He.find(i.resources,{type:t.type,resource:t.resource})?{...i,resources:i.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(u=>u.name===r.name?{...u,checked:!u.checked,from:[]}:u)}:c)}:{...i,resources:[...i.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...n,[e]:l}}function EF(e,t){var u;const r=FS(e,t)||[],n=((u=Wn(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:f})=>[ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD].includes(f))||[]).map(({resource:f})=>f);return Object.entries(t).reduce((f,[g,{resources:p}])=>(p.filter(({resource:h,type:b})=>[ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD].includes(b)&&l.includes(h)).forEach(({permissions:h,resource:b})=>{var v;((v=h.find(({name:y})=>y==="promote"))==null?void 0:v.checked)&&(f[b]=Fr(f[b]||[],g))}),f),{})}function FS(e,t){var l;const r=Wn(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===Vc))==null?void 0:l.id;return(n&&n!==e?Fr(Uc(e,t),n):Uc(e,t)).reduce((c,u)=>(t[u].resources.forEach(g=>{if(g.permissions.filter(({checked:b,name:S})=>b&&S!=="promote").length===0)return;const h=He.find(c,{type:g.type,resource:g.resource});if(!h){c.push({...g,permissions:g.permissions.map(b=>({...b,from:b.checked?[u]:[],checked:!1}))});return}h.permissions=h.permissions.map((b,S)=>{let{from:v=[]}=b;return g.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...b,from:v,checked:b.checked}})}),c),He.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...f})=>({...f,checked:!!u}))}))))}const _F=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},OF=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,kF=(e,t)=>{if(su(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,i)=>e.id===i.id?{...n,[e.id]:e}:{...n,[i.id]:i},{})};function HS(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function BS(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function AF(e,t){const r=HS(e);return BS(r,t)}function TF(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var WS=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(WS||{}),VS=(e=>(e.GROUP="group",e.TEXT_FIELD="textfield",e.COLOR_PICKER="colorpicker",e.LAYOUT="layout",e.RADIOGROUP="radiogroup",e.SELECT="select",e.BORDERS="borders",e.BORDER_RADIUS="borderRadius",e.DIMENSIONS="dimensions",e.COMBOBOX="combobox",e.UNITFIELD="unitfield",e.DATAGRID="datagrid",e.CHECKBOX="checkbox",e.NUMBER_FIELD="number",e.FORMAT_FIELD="format",e.DISPLAY="display",e.BOXSHADOW="boxshadow",e.CSSCLASS_SELECTOR="cssClassSelector",e.CUSTOM_STYLE_PROPS_SELECTOR="customStylePropertiesSelector",e.ICON_PICKER="iconPicker",e.ASYNC_SELECT="asyncSelect",e.DS_AUTO_SUGGEST="dsAutoSuggest",e.POSITION="position",e.BACKGROUND="background",e.SELECTBOXLENGTH="selectBoxLength",e.I18NFIELD="i18nField",e.DATE_INTERVALS="dateIntervals",e))(VS||{}),US=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(US||{}),xh=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(xh||{}),qS=(e=>(e.GRID="grid",e.COMPACT="compact",e))(qS||{}),GS=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(GS||{}),ZS=(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))(ZS||{});const RF={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var KS=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(KS||{});const YS={label:"Base",id:"root"},CF=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],IF=e=>e.id===YS.id,Sh=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(n=>Sh(n,t,r))}:e:e;function PF(e,t){const{id:r,label:n}=t;return{...e,components:Object.entries(e.components||{}).reduce((i,[s,l])=>({...i,[s]:{...l,custom:Object.entries(l.custom).reduce((c,[u,f])=>u===`states:${r}`?c:{...c,[u]:f},{}),props:Object.entries(l.props).reduce((c,[u,f])=>{let g=f;return u==="events"&&(g=g.map(p=>{var h,b;return p.type==="simple-action"?{...p,state:{...p.state,states:(b=(h=p.state)==null?void 0:h.states)==null?void 0:b.filter(S=>S!==r)}}:p})),{...c,[u]:g}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(i=>(i==null?void 0:i.id)!==r).map(i=>i.conditions?{...i,conditions:Sh(i.conditions,n)}:i)}}}const XS=(e,t,r)=>{switch(e.type){case"datasource":return{...e,path:e.path===t?r:e.path,value:e.valueType==="datasource"&&e.value===t?r:e.value,compareValue:e.compareValueType==="datasource"&&e.compareValue===t?r:e.compareValue};case"privilege":case"currentState":case"parentState":if(e.valueType==="datasource")return{...e,value:e.value===t?r:e.value};break;case"combination":return{...e,conditions:(e.conditions||[]).map(n=>XS(n,t,r))}}return e},JS=(e,t)=>{if(e.id===t||e.type==="reference"&&e.ref===t)return null;if(e.type==="combination"&&e.conditions){const r=e.conditions.map(n=>JS(n,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},QS=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(QS)}:e:{...e,id:gi.generate()};function NF(e,t={}){switch(e){case je.WEBFORM:case je.WEBFORMS:{const r={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white w-full px-6",classNames:[],events:[]},displayName:"Page",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return t["webforms.display-mode"]===xh.AIRY&&(r.components.ROOT.props.airyMode=!0),r}case je.REPORT:return{metadata:{v:"1.0",datasources:[],styles:[]},pages:[{name:"doc",id:"index",components:{ROOT:{type:{resolvedName:"Document"},isCanvas:!0,props:{classNames:[],events:[],airyMode:!1,className:"bg-white w-full px-6"},displayName:"Document",custom:{},parent:"",hidden:!1,nodes:[],linkedNodes:{}}}}]};case je.METHOD:case je.METHODS:return`//%attributes = {}
|
|
255
|
+
`;case je.HTTP_HANDLERS:return[];case je.LOCALIZATION:case je.SETTINGS:return{};case je.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function MF(e,t){return He.isEqual(e,t)}function DF(e,t){const{qodly:r=!0,withExtension:n=!0}=t||{},i=bS(e.type,r);let s="";switch(e.type){case je.WEBFORM:s=`${Xr.WEBFORMS}/${e.name}`;break;case je.METHOD:s=`${Xr.METHODS}/${e.name}`;break;case je.CLASS:s=`${Xr.CLASSES}/${e.name}`;break;default:return""}return`${s}${n?`.${i}`:""}`}function eE(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const LF=eE;function zF(e){return e?"":void 0}function $F(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function jF(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function FF({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const HF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function BF(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function WF(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function VF(e){e.preventDefault(),e.stopPropagation()}const _t="/rest/$designer",Ca="/rest/$designer-ext";function UF(...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 dp 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 Je(e,t){var i;Hc.next({action:ya.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let s;try{const l=await r.json();((i=l==null?void 0:l.__ERROR)==null?void 0:i.some(u=>u.errCode===1651))&&Hc.next({action:ya.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new dp(e,r,l)}catch{s=new dp(e,r)}throw s.log(),s}return await r.json()}function qF(e){return Hc.next({action:ya.REQUEST_SENT}),e}var dn={},Ht={},Ty;function $i(){if(Ty)return Ht;Ty=1;var e=Ht.ValidationError=function(v,y,m,w,x,O){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,H){return R+c(H)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var _=m.$id||m.id;this.schema=_||m}y!==void 0&&(this.instance=y),this.name=x,this.argument=O,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Ht.ValidatorResult=function(v,y,m,w){this.instance=v,this.schema=y,this.options=m,this.path=w.path,this.propertyPath=w.propertyPath,this.errors=[],this.throwError=m&&m.throwError,this.throwFirst=m&&m.throwFirst,this.throwAll=m&&m.throwAll,this.disableFormat=m&&m.disableFormat===!0};t.prototype.addError=function(v){var y;if(typeof v=="string")y=new e(v,this.instance,this.schema,this.path);else{if(!v)throw new Error("Missing error detail");if(!v.message)throw new Error("Missing error message");if(!v.name)throw new Error("Missing validator type");y=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(y),this.throwFirst)throw new n(this);if(this.throwError)throw y;return y},t.prototype.importErrors=function(v){typeof v=="string"||v&&v.validatorType?this.addError(v):v&&v.errors&&(this.errors=this.errors.concat(v.errors))};function r(S,v){return v+": "+S.toString()+`
|
|
256
|
+
`}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Ht.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 i=Ht.SchemaError=function S(v,y){this.message=v,this.schema=y,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=Ht.SchemaContext=function(v,y,m,w,x){this.schema=v,this.options=y,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(O,_){return O+c(_)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};s.prototype.resolve=function(v){return b(this.base,v)},s.prototype.makeChild=function(v,y){var m=y===void 0?this.path:this.path.concat([y]),w=v.$id||v.id;let x=b(this.base,w||"");var O=new s(v,this.options,m,x,Object.create(this.schemas));return w&&!O.schemas[x]&&(O.schemas[x]=v),O};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(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"],Ht.isFormat=function(v,y,m){if(typeof v=="string"&&l[y]!==void 0){if(l[y]instanceof RegExp)return l[y].test(v);if(typeof l[y]=="function")return l[y](v)}else if(m&&m.customFormats&&typeof m.customFormats[y]=="function")return m.customFormats[y](v);return!0};var c=Ht.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Ht.deepCompareStrict=function S(v,y){if(typeof v!=typeof y)return!1;if(Array.isArray(v))return!Array.isArray(y)||v.length!==y.length?!1:v.every(function(x,O){return S(v[O],y[O])});if(typeof v=="object"){if(!v||!y)return v===y;var m=Object.keys(v),w=Object.keys(y);return m.length!==w.length?!1:m.every(function(x){return S(v[x],y[x])})}return v===y};function u(S,v,y,m){typeof y=="object"?v[m]=p(S[m],y):S.indexOf(y)===-1&&v.push(y)}function f(S,v,y){v[y]=S[y]}function g(S,v,y,m){typeof v[m]!="object"||!v[m]?y[m]=v[m]:S[m]?y[m]=p(S[m],v[m]):y[m]=v[m]}function p(S,v){var y=Array.isArray(v),m=y&&[]||{};return y?(S=S||[],m=m.concat(S),v.forEach(u.bind(null,S,m))):(S&&typeof S=="object"&&Object.keys(S).forEach(f.bind(null,S,m)),Object.keys(v).forEach(g.bind(null,S,v,m))),m}Ht.deepMerge=p,Ht.objectGetPath=function(v,y){for(var m=y.split("/").slice(1),w;typeof(w=m.shift())=="string";){var x=decodeURIComponent(w.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in v))return;v=v[x]}return v};function h(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Ht.encodePath=function(v){return v.map(h).join("")},Ht.getDecimalPlaces=function(v){var y=0;if(isNaN(v))return y;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return y;y=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(y+=w[1].length),y},Ht.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var b=Ht.resolveUrl=function(v,y){const m=new URL(y,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:O}=m;return w+x+O}return m.toString()};return Ht}var Tf,Ry;function GF(){if(Ry)return Tf;Ry=1;var e=$i(),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 i=n.validators={};i.type=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=Array.isArray(h.type)?h.type:[h.type];if(!y.some(this.testType.bind(this,p,h,b,S))){var m=y.map(function(w){if(w){var x=w.$id||w.id;return x?"<"+x+">":w+""}});v.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return v};function s(g,p,h,b,S){var v=p.throwError,y=p.throwAll;p.throwError=!1,p.throwAll=!1;var m=this.validateSchema(g,S,p,h);return p.throwError=v,p.throwAll=y,!m.valid&&b instanceof Function&&b(m),m.valid}i.anyOf=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=new t(p,h,b,S);if(!Array.isArray(h.anyOf))throw new r("anyOf must be an array");if(!h.anyOf.some(s.bind(this,p,b,S,function(w){y.importErrors(w)}))){var m=h.anyOf.map(function(w,x){var O=w.$id||w.id;return O?"<"+O+">":w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+x+"]"});b.nestedErrors&&v.importErrors(y),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},i.allOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.allOf))throw new r("allOf must be an array");var v=new t(p,h,b,S),y=this;return h.allOf.forEach(function(m,w){var x=y.validateSchema(p,m,b,S);if(!x.valid){var O=m.$id||m.id,_=O||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:_,length:x.errors.length,valid:x},message:"does not match allOf schema "+_+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},i.oneOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.oneOf))throw new r("oneOf must be an array");var v=new t(p,h,b,S),y=new t(p,h,b,S),m=h.oneOf.filter(s.bind(this,p,b,S,function(x){y.importErrors(x)})).length,w=h.oneOf.map(function(x,O){var _=x.$id||x.id;return _||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+O+"]"});return m!==1&&(b.nestedErrors&&v.importErrors(y),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},i.if=function(p,h,b,S){if(p===void 0)return null;if(!e.isSchema(h.if))throw new Error('Expected "if" keyword to be a schema');var v=s.call(this,p,b,S,null,h.if),y=new t(p,h,b,S),m;if(v){if(h.then===void 0)return;if(!e.isSchema(h.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(p,h.then,b,S.makeChild(h.then)),y.importErrors(m)}else{if(h.else===void 0)return;if(!e.isSchema(h.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(p,h.else,b,S.makeChild(h.else)),y.importErrors(m)}return y};function l(g,p){if(Object.hasOwnProperty.call(g,p))return g[p];if(p in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,p))return g[p]}}i.propertyNames=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.propertyNames!==void 0?h.propertyNames:{};if(!e.isSchema(y))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in p)if(l(p,m)!==void 0){var w=this.validateSchema(m,y,b,S.makeChild(y));v.importErrors(w)}return v}},i.properties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.properties||{};for(var m in y){var w=y[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,w,b,S);var x=l(p,m),O=this.validateSchema(x,w,b,S.makeChild(w,m));O.instance!==v.instance[m]&&(v.instance[m]=O.instance),v.importErrors(O)}}return v}};function c(g,p,h,b,S,v){if(this.types.object(g)&&!(p.properties&&p.properties[S]!==void 0))if(p.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var y=p.additionalProperties||{};typeof h.preValidateProperty=="function"&&h.preValidateProperty(g,S,y,h,b);var m=this.validateSchema(g[S],y,h,b.makeChild(y,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}i.patternProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.patternProperties||{};for(var m in p){var w=!0;for(var x in y){var O=y[x];if(O!==void 0){if(O===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var _=new RegExp(x,"u")}catch{_=new RegExp(x)}if(_.test(m)){w=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,O,b,S);var R=this.validateSchema(p[m],O,b,S.makeChild(O,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,p,h,b,S,m,v)}return v}},i.additionalProperties=function(p,h,b,S){if(this.types.object(p)){if(h.patternProperties)return null;var v=new t(p,h,b,S);for(var y in p)c.call(this,p,h,b,S,y,v);return v}},i.minProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length>=h.minProperties||v.addError({name:"minProperties",argument:h.minProperties,message:"does not meet minimum property length of "+h.minProperties}),v}},i.maxProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length<=h.maxProperties||v.addError({name:"maxProperties",argument:h.maxProperties,message:"does not meet maximum property length of "+h.maxProperties}),v}},i.items=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.items!==void 0){var y=new t(p,h,b,S);return p.every(function(m,w){if(Array.isArray(h.items))var x=h.items[w]===void 0?h.additionalItems:h.items[w];else var x=h.items;if(x===void 0)return!0;if(x===!1)return y.addError({name:"items",message:"additionalItems not permitted"}),!1;var O=v.validateSchema(m,x,b,S.makeChild(x,w));return O.instance!==y.instance[w]&&(y.instance[w]=O.instance),y.importErrors(O),!0}),y}},i.contains=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.contains!==void 0){if(!e.isSchema(h.contains))throw new Error('Expected "contains" keyword to be a schema');var y=new t(p,h,b,S),m=p.some(function(w,x){var O=v.validateSchema(w,h.contains,b,S.makeChild(h.contains,x));return O.errors.length===0});return m===!1&&y.addError({name:"contains",argument:h.contains,message:"must contain an item matching given schema"}),y}},i.minimum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMinimum&&h.exclusiveMinimum===!0?p>h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than "+h.minimum}):p>=h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than or equal to "+h.minimum}),v}},i.maximum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMaximum&&h.exclusiveMaximum===!0?p<h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than "+h.maximum}):p<=h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than or equal to "+h.maximum}),v}},i.exclusiveMinimum=function(p,h,b,S){if(typeof h.exclusiveMinimum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p>h.exclusiveMinimum;return y||v.addError({name:"exclusiveMinimum",argument:h.exclusiveMinimum,message:"must be strictly greater than "+h.exclusiveMinimum}),v}},i.exclusiveMaximum=function(p,h,b,S){if(typeof h.exclusiveMaximum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p<h.exclusiveMaximum;return y||v.addError({name:"exclusiveMaximum",argument:h.exclusiveMaximum,message:"must be strictly less than "+h.exclusiveMaximum}),v}};var u=function(p,h,b,S,v,y){if(this.types.number(p)){var m=h[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(p,h,b,S),x=e.getDecimalPlaces(p),O=e.getDecimalPlaces(m),_=Math.max(x,O),R=Math.pow(10,_);return Math.round(p*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:y+JSON.stringify(m)}),w}};i.multipleOf=function(p,h,b,S){return u.call(this,p,h,b,S,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(p,h,b,S){return u.call(this,p,h,b,S,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(p,h,b,S){var v=new t(p,h,b,S);return p===void 0&&h.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(h.required)&&h.required.forEach(function(y){l(p,y)===void 0&&v.addError({name:"required",argument:y,message:"requires property "+JSON.stringify(y)})}),v},i.pattern=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=h.pattern;try{var m=new RegExp(y,"u")}catch{m=new RegExp(y)}return p.match(m)||v.addError({name:"pattern",argument:h.pattern,message:"does not match pattern "+JSON.stringify(h.pattern.toString())}),v}},i.format=function(p,h,b,S){if(p!==void 0){var v=new t(p,h,b,S);return!v.disableFormat&&!e.isFormat(p,h.format,this)&&v.addError({name:"format",argument:h.format,message:"does not conform to the "+JSON.stringify(h.format)+" format"}),v}},i.minLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m>=h.minLength||v.addError({name:"minLength",argument:h.minLength,message:"does not meet minimum length of "+h.minLength}),v}},i.maxLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m<=h.maxLength||v.addError({name:"maxLength",argument:h.maxLength,message:"does not meet maximum length of "+h.maxLength}),v}},i.minItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length>=h.minItems||v.addError({name:"minItems",argument:h.minItems,message:"does not meet minimum length of "+h.minItems}),v}},i.maxItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length<=h.maxItems||v.addError({name:"maxItems",argument:h.maxItems,message:"does not meet maximum length of "+h.maxItems}),v}};function f(g,p,h){var b,S=h.length;for(b=p+1,S;b<S;b++)if(e.deepCompareStrict(g,h[b]))return!1;return!0}return i.uniqueItems=function(p,h,b,S){if(h.uniqueItems===!0&&this.types.array(p)){var v=new t(p,h,b,S);return p.every(f)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},i.dependencies=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S);for(var y in h.dependencies)if(p[y]!==void 0){var m=h.dependencies[y],w=S.makeChild(m,y);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(O){p[O]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+O+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(p,m,b,w);v.instance!==x.instance&&(v.instance=x.instance),x&&x.errors.length&&(v.addError({name:"dependencies",argument:w.propertyPath,message:"does not meet dependency required by "+w.propertyPath}),v.importErrors(x))}}return v}},i.enum=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.enum))throw new r("enum expects an array",h);var v=new t(p,h,b,S);return h.enum.some(e.deepCompareStrict.bind(null,p))||v.addError({name:"enum",argument:h.enum,message:"is not one of enum values: "+h.enum.map(String).join(",")}),v},i.const=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S);return e.deepCompareStrict(h.const,p)||v.addError({name:"const",argument:h.const,message:"does not exactly match expected constant: "+h.const}),v},i.not=i.disallow=function(p,h,b,S){var v=this;if(p===void 0)return null;var y=new t(p,h,b,S),m=h.not||h.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(p,h,b,S,w)){var x=w&&(w.$id||w.id),O=x||w;y.addError({name:"not",argument:O,message:"is of prohibited type "+O})}}),y):null},Tf=n,Tf}var nc={},Cy;function fp(){if(Cy)return nc;Cy=1;var e=$i();nc.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return nc.scan=function(n,i){function s(g,p){if(!p||typeof p!="object")return;if(p.$ref){let v=e.resolveUrl(g,p.$ref);f[v]=f[v]?f[v]+1:0;return}var h=p.$id||p.id;let b=e.resolveUrl(g,h);var S=h?b:g;if(S){if(S.indexOf("#")<0&&(S+="#"),u[S]){if(!e.deepCompareStrict(u[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=p,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=p)}l(S+"/items",Array.isArray(p.items)?p.items:[p.items]),l(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),s(S+"/additionalItems",p.additionalItems),c(S+"/properties",p.properties),s(S+"/additionalProperties",p.additionalProperties),c(S+"/definitions",p.definitions),c(S+"/patternProperties",p.patternProperties),c(S+"/dependencies",p.dependencies),l(S+"/disallow",p.disallow),l(S+"/allOf",p.allOf),l(S+"/anyOf",p.anyOf),l(S+"/oneOf",p.oneOf),s(S+"/not",p.not)}function l(g,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)s(g+"/"+h,p[h])}function c(g,p){if(!(!p||typeof p!="object"))for(var h in p)s(g+"/"+h,p[h])}var u={},f={};return s(n,i),new t(u,f)},nc}var Rf,Iy;function ZF(){if(Iy)return Rf;Iy=1;var e=GF(),t=$i(),r=fp().scan,n=t.ValidatorResult,i=t.ValidatorResultError,s=t.SchemaError,l=t.SchemaContext,c="/",u=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),this.attributes=Object.create(e.validators)};u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function(h,b){var S=this;if(!h)return null;var v=r(b||c,h),y=b||h.$id||h.id;for(var m in v.id)this.schemas[m]=v.id[m];for(var m in v.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(w){return typeof S.schemas[w]>"u"}),this.schemas[y]},u.prototype.addSubSchemaArray=function(h,b){if(Array.isArray(b))for(var S=0;S<b.length;S++)this.addSubSchema(h,b[S])},u.prototype.addSubSchemaObject=function(h,b){if(!(!b||typeof b!="object"))for(var S in b)this.addSubSchema(h,b[S])},u.prototype.setSchemas=function(h){this.schemas=h},u.prototype.getSchema=function(h){return this.schemas[h]},u.prototype.validate=function(h,b,S,v){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new s("Expected `schema` to be an object or boolean");S||(S={});var y=b.$id||b.id;let m=t.resolveUrl(S.base,y||"");if(!v){v=new l(b,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=b);var w=r(m,b);for(var x in w.id){var O=w.id[x];v.schemas[x]=O}}if(S.required&&h===void 0){var _=new n(h,b,S,v);return _.addError("is required, but is undefined"),_}var _=this.validateSchema(h,b,S,v);if(_){if(S.throwAll&&_.errors.length)throw new i(_)}else throw new Error("Result undefined");return _};function f(p){var h=typeof p=="string"?p:p.$ref;return typeof h=="string"?h:!1}u.prototype.validateSchema=function(h,b,S,v){var y=new n(h,b,S,v);if(typeof b=="boolean")b===!0?b={}:b===!1&&(b={type:[]});else if(!b)throw new Error("schema is undefined");if(b.extends)if(Array.isArray(b.extends)){var m={schema:b,ctx:v};b.extends.forEach(this.schemaTraverser.bind(this,m)),b=m.schema,m.schema=null,m.ctx=null,m=null}else b=t.deepMerge(b,this.superResolve(b.extends,v));var w=f(b);if(w){var x=this.resolve(b,w,v),O=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(h,x.subschema,S,O)}var _=S&&S.skipAttributes||[];for(var R in b)if(!e.ignoreProperties[R]&&_.indexOf(R)<0){var H=null,I=this.attributes[R];if(I)H=I.call(this,h,b,S,v);else if(S.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+R,b);H&&y.importErrors(H)}if(typeof S.rewrite=="function"){var $=S.rewrite.call(this,h,b,S,v);y.instance=$}return y},u.prototype.schemaTraverser=function(h,b){h.schema=t.deepMerge(h.schema,this.superResolve(b,h.ctx))},u.prototype.superResolve=function(h,b){var S=f(h);return S?this.resolve(h,S,b).subschema:h},u.prototype.resolve=function(h,b,S){if(b=S.resolve(b),S.schemas[b])return{subschema:S.schemas[b],switchSchema:b};let y=new URL(b,"thismessage::/").hash;var m=y&&y.length&&b.substr(0,b.length-y.length);if(!m||!S.schemas[m])throw new s("no such schema <"+b+">",h);var w=t.objectGetPath(S.schemas[m],y.substr(1));if(w===void 0)throw new s("no such schema "+y+" located in <"+m+">",h);return{subschema:w,switchSchema:b}},u.prototype.testType=function(h,b,S,v,y){if(y!==void 0){if(y===null)throw new s('Unexpected null in "type" keyword');if(typeof this.types[y]=="function")return this.types[y].call(this,h);if(y&&typeof y=="object"){var m=this.validateSchema(h,y,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var g=u.prototype.types={};return g.string=function(h){return typeof h=="string"},g.number=function(h){return typeof h=="number"&&isFinite(h)},g.integer=function(h){return typeof h=="number"&&h%1===0},g.boolean=function(h){return typeof h=="boolean"},g.array=function(h){return Array.isArray(h)},g.null=function(h){return h===null},g.date=function(h){return h instanceof Date},g.any=function(h){return!0},g.object=function(h){return h&&typeof h=="object"&&!Array.isArray(h)&&!(h instanceof Date)},Rf=u,Rf}var Py;function KF(){if(Py)return dn;Py=1;var e=dn.Validator=ZF();return dn.ValidatorResult=$i().ValidatorResult,dn.ValidatorResultError=$i().ValidatorResultError,dn.ValidationError=$i().ValidationError,dn.SchemaError=$i().SchemaError,dn.SchemaScanResult=fp().SchemaScanResult,dn.scan=fp().scan,dn.validate=function(t,r,n){var i=new e;return i.validate(t,r,n)},dn}var YF=KF();const xa="/$shared",XF={"**/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 tE(e){const t=Object.entries(XF).find(([r])=>Vt(e,r));return t==null?void 0:t[1]}function du(e){var n;const t=(n=tE(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${xa}/`,"Shared/");Eh({name:r,content:t,asText:typeof t=="string"})}async function JF(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Je(`${xa}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){rE(r)&&du(`${xa}/${t}`)}}function Ia({path:e,createIfNotExists:t=!1}){const r=`${xa}/${e}`;return Je(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const i=tE(e);let s=n;if(!i)return s;if(typeof s=="string")try{switch(i.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(i.schema&&!new YF.Validator().validate(s,i.schema).valid)throw new Error("Invalid Schema");return s}).catch(n=>{if(rE(n)&&t){const i=QF(n,e);ih.next({message:i,kind:"warning"}),du(r)}throw n})}function rE(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 QF(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 e6(e){return Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t6(e){return Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const nE=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:uh.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function r6(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const i=await Je(_t,{method:"POST",body:JSON.stringify({verb:mi.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(i.rendererPath)return i.rendererPath;const l=`http://${e}:${i.webServerHTTPPort}`,c=`https://${e}:${i.webServerHTTPSPort}`;return i.webServerHTTPPort&&i.webServerHTTPSPort?n?c:l:i.webServerHTTPPort?l:c})();return{projectOpened:i.webServerHTTPSPort>0||i.webServerHTTPPort>0,remoteDebuggerMode:i.remoteDebuggerMode,baseUrl:s,qodly:typeof i.qodly>"u"?!0:i.qodly,urls:{renderer:i.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:i.isRESTActive}}catch(i){return console.error(i),nE()}}async function iE(e){return await Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function n6(...e){return(await Promise.all(e.map(n=>iE({root:n,verb:mi.GET_FOLDER})))).map(({children:n})=>n.map(({name:i,date:s,type:l})=>({name:i,type:l,date:s,path:`${l}/${i}`}))).flat()}function i6(e,t={}){const{sanitize:r=!0}=t;return Je(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const i=new Map;return{...n,components:He.entries(n.components).map(([s,l])=>{const c=s,{resolvedName:u}=l.type;if(u==="WebformLoader"){const f=gi.generate();i.set(s,f),s=f}return[s,l,c]}).reduce((s,[l,c,u])=>{var f;return c.nodes&&(c.nodes=c.nodes.map(g=>i.get(g)||g)),c.linkedNodes&&(c.linkedNodes=He.entries(c.linkedNodes).reduce((g,[p,h])=>({...g,[p]:i.get(h)||h}),{})),(f=c.props)!=null&&f.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=i.get(g.loader)||g.loader),g))),{...s,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function o6(e){return Je(_t,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[je.METHOD,je.CLASS].includes(t.type)?au(t.content):t.content}))}function s6(e){return e.type==="folder"?Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function a6(e){return e.type==="folder"?(await Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function l6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function c6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function u6(e){return(await Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function d6(...e){return await Je(_t,{method:"POST",body:JSON.stringify({verb:mi.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function f6(e){const t=await Je("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function p6(){return await Je("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function h6(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:i}=JSON.parse(n);return i}catch{return[]}}async function g6({name:e,path:t="",root:r="root",asText:n=!1}){return Je(_t,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function v6(e={}){try{return{...await Ia({path:"shared_datasources.json",...e}),...Wc}}catch{return{...Wc}}}async function m6(e={}){try{return await Ia({path:"shared_app_events.json",...e})}catch{return[]}}async function b6(e={}){try{return await Ia({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function y6(e={}){try{return await Ia({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function w6(){try{return await Je("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function x6(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const S6=vh(),E6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:He.omit(e,He.keys(Wc))};return S6(()=>Je(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},_6=vh(),O6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return _6(()=>Je(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Eh=async e=>{const t=await Je(_t,{method:"POST",body:JSON.stringify({...e,verb:mi.SET_FILE_CONTENT,root:ch.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=gh(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},k6=async e=>await Eh({name:"crafted_components.json",path:Xr.WEBFORMS,content:e});function A6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function T6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function C6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?au(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&&du(e.path),t})}function I6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function P6(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function N6(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 M6(e){const t=P6(e).split(/[;,]/g).filter(Boolean).map(i=>{const s=i.split(":")[0].trim(),l=i.split(":")[1].trim();return{name:s,type:l}}),r=N6(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function D6(e,t){const n=e.split(".").pop();try{const i=await Je(_t,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});i.content=au(i.content);const{params:s,result:l}=M6(i.parameters);return{...i,params:s,returns:l}}catch(i){return console.error(i),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var oE=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(oE||{});function L6(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function z6(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const $6={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},j6={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},sE=N.createContext(void 0),F6=N.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const n=N.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return A.jsx(sE.Provider,{value:n,children:e})});function H6(){const e=N.useContext(sE);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const aE=N.createContext(null),B6=5e3,W6={top:"top-4",bottom:"bottom-4"};function V6({children:e}){const[t,r]=N.useState([]),n=N.useRef(0),i=N.useCallback(c=>{r(u=>u.filter(f=>f.id!==c))},[]),s=N.useCallback((c,u)=>{const f=++n.current,g={id:f,containerStyle:u==null?void 0:u.containerStyle,duration:c.duration??B6,position:c.position??"bottom",render:c.render};return r(p=>[...p,g]),f},[]);N.useEffect(()=>{const c=ih.subscribe(u=>{s({position:"bottom",render:({onClose:f})=>A.jsx(mx,{...u,onClose:f})})});return()=>{c.unsubscribe()}},[s]);const l=N.useMemo(()=>({pushToast:s,removeToast:i}),[s,i]);return A.jsxs(aE.Provider,{value:l,children:[e,typeof document<"u"?En.createPortal(A.jsx(A.Fragment,{children:["top","bottom"].map(c=>{const u=t.filter(f=>f.position===c);return u.length===0?null:A.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-[2147483647] flex flex-col items-center gap-3 ${W6[c]}`,children:u.map(f=>A.jsx(U6,{toast:f,onClose:()=>i(f.id)},f.id))},c)})}),document.body):null]})}function U6({toast:e,onClose:t}){return N.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),A.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function q6(e){const t=N.useContext(aE);if(!t)throw new Error("useToast must be used within a ToastProvider");return N.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=_t;exports.AppLoader=bz;exports.DATASOURCE_THEMES=$6;exports.DatasourcesActions=Z1;exports.DebuggerActions=X1;exports.DesignerRequestVerb=mi;exports.Dialog=I2;exports.DialogBody=Gy;exports.EActivity=oE;exports.ECustomStylePropsViewMode=qS;exports.EDITOR=j6;exports.EDisplayMode=xh;exports.EIDENTIFIERS=ZS;exports.EPermissionType=Xe;exports.ERROR_CODES=KS;exports.ESetting=VS;exports.ESubPermissionType=ct;exports.ETooltipBehavior=US;exports.EWebFormStyleClassScope=WS;exports.EXT_API_PREFIX=Ca;exports.FileFolderType=je;exports.FolderRootPath=Xr;exports.FolderRootType=ch;exports.Grid=r4;exports.GridItem=n4;exports.HTTPError=dp;exports.HTTP_HANDLERS_TAB_PATH=ph;exports.IPreemptive=wa;exports.IPublished=IS;exports.IPublishedRestScope=bh;exports.IdentityProvider=E4;exports.Image=P1;exports.Incase=vc;exports.IndentLines=Sx;exports.InvalidJsonError=Qz;exports.LOCALIZATION_TAB_PATH=hh;exports.LOCATION_DATASOURCE_ID=TS;exports.LogoSVG=m1;exports.LspActions=Y1;exports.MAX_FILE_NAME_LENGTH=oh;exports.MODEL_TAB_PATH=vS;exports.Modal=Gz;exports.ModalCloseReason=To;exports.ModalColor=Po;exports.ModalIcons=Xf;exports.ModalType=Yp;exports.Mutex=yS;exports.NameError=sh;exports.Overlay=qy;exports.PANEL_COLLAPSED_HEIGHT=hn;exports.PANEL_INITIAL_OPEN_RATIO=R1;exports.PANEL_MAX_RATIO=C1;exports.PERMISSIONS=yh;exports.Panel=Jz;exports.PopperTooltip=vz;exports.Portal=Dy;exports.PublishOptions=rF;exports.QODLY_NAMESPACE=ta;exports.ROLES_TAB_PATH=dh;exports.ROOT_WEBFORM_STATE=YS;exports.RemoteDebuggerMode=uh;exports.SETTINGS_TAB_PATH=fh;exports.SHARED_API_PREFIX=xa;exports.SHARED_USER_NAMESPACE=Wc;exports.SearchInput=e4;exports.SimpleGrid=i4;exports.SourceCodeDescriptor=GS;exports.StudioContextProvider=F6;exports.Switcher=Ex;exports.THEME_CLASSES=CF;exports.TITLE_DATASOURCE_ID=CS;exports.TabEventsActions=K1;exports.Tip=n1;exports.TipsProvider=wL;exports.Toast=mx;exports.ToastProvider=V6;exports.ToolbarIcon=t4;exports.Tooltip=gz;exports.Tree=uD;exports.TreeIcon=bx;exports.TreeNode=Mp;exports.USER_LANGUAGE_DATASOURCE_ID=RS;exports.WT_FLAGS_KEYS=RF;exports.WebformActions=G1;exports.WebformEventsActions=ya;exports.ZoomComponent=Yz;exports.ZoomLevel=T1;exports._isArrayDatasource=Yj;exports._isObjectDatasource=Xj;exports.actionsToPrivs=zS;exports.addAttributesToContent=iF;exports.addFolder=l6;exports.addItem=BF;exports.addPermission=bF;exports.addPrivilegeIn=uF;exports.allowed=lF;exports.by=wS;exports.byId=Mj;exports.byPath=Dj;exports.callAll=eE;exports.callAllHandlers=LF;exports.callServerSideParser=qF;exports.checkUpdates=e6;exports.children=Uc;exports.createFolder=A6;exports.createPrivilege=fF;exports.createRole=_F;exports.dataAttr=zF;exports.datasourcesSubject=c$;exports.debuggerSubject=p$;exports.deepDeleteCondition=JS;exports.deepSanitizeCondition=QS;exports.dropFile=a6;exports.dropFolder=u6;exports.editors=mS;exports.exists=Lj;exports.extractWebformName=Rj;exports.filterBySeriousError=BS;exports.focus=$F;exports.formatErrorsAsBulletToast=TF;exports.generateUUID=up;exports.getAppSettings=r6;exports.getCashedPrefrences=zj;exports.getCatalog=p6;exports.getDatasourceId=$j;exports.getDefaultAppSettings=nE;exports.getDefaultContent=NF;exports.getDictByName=jS;exports.getDisplayableFeedbackErrors=AF;exports.getEditors=Tj;exports.getErrorListFromPayload=HS;exports.getFile=o6;exports.getFileContent=g6;exports.getFileExtentionFromType=bS;exports.getFilePath=DF;exports.getFilenameAndTypeFromPath=Aj;exports.getFilenameFromType=Cj;exports.getFilesInfo=d6;exports.getFolder=iE;exports.getFolders=n6;exports.getFunctionContent=D6;exports.getGraphData=mF;exports.getInheritedResources=FS;exports.getMonacoTheme=x6;exports.getNodeInfo=C6;exports.getPrivilegeById=Wn;exports.getPromotions=EF;exports.getResourceFromType=wh;exports.getSavedConditions=y6;exports.getSharedAppEvents=m6;exports.getSharedCSS=b6;exports.getSharedDatasources=v6;exports.getSharedResource=Ia;exports.getSupportedLanguages=h6;exports.getTypeFromExtension=gh;exports.getUserPrivileges=w6;exports.getWebForm=i6;exports.hasAttributesString=NS;exports.http=Je;exports.i18nSubject=g$;exports.initializeDefaultProjectFiles=JF;exports.installUpdates=t6;exports.isArrayDatasource=OS;exports.isBaseState=IF;exports.isDataClassMethod=Bj;exports.isDataStoreMethod=Hj;exports.isDateDatasource=Jj;exports.isEntity=Zj;exports.isEntityDatasource=Uj;exports.isEntityMethod=Wj;exports.isEntitySelection=Kj;exports.isEntitySelectionDatasource=qj;exports.isEntitySelectionMethod=Vj;exports.isInputEvent=WF;exports.isObjectAttribute=jj;exports.isObjectDatasource=kS;exports.isRelatedAttribute=Fj;exports.isRelatedEntitiesAttribute=ES;exports.isRelatedEntityAttribute=_S;exports.isSameNamespace=Qj;exports.isScalarDatasource=AS;exports.isSimpleAttribute=SS;exports.isSimpleDatasource=Gj;exports.loadDS=eF;exports.loadI18n=tF;exports.localeCompare=xS;exports.log=L6;exports.login=f6;exports.lspSubject=f$;exports.mergeRefs=jF;exports.moveItem=R6;exports.outBy=Pj;exports.outById=Nj;exports.parents=uu;exports.parseAttributes=nF;exports.parseCatalog=oF;exports.populateShallow=hF;exports.queue=vh;exports.refactorConditions=Sh;exports.refactorWebform=PF;exports.removeAttributesString=MS;exports.removeItem=T6;exports.removeMultiplePermissions=wF;exports.removePermission=yF;exports.removePrivilege=cF;exports.removePrivilegeFrom=dF;exports.removeRole=OF;exports.renameFile=s6;exports.renameFolder=c6;exports.renamePrivilege=pF;exports.resetResources=xF;exports.rolesToAPI=vF;exports.sanitizeContent=au;exports.sanitizeNameCY=sF;exports.sanitizePermissions=$S;exports.sanitizePrivileges=DS;exports.sanitizeRoles=gF;exports.saveContent=I6;exports.saveRole=kF;exports.selectorEqualityFn=MF;exports.setCraftedComponents=k6;exports.setFileContent=Eh;exports.setSharedAppEvents=O6;exports.setSharedSources=E6;exports.sortPrivileges=LS;exports.splitDatasourceID=mh;exports.stopEvent=VF;exports.stringifyAttributes=PS;exports.tabEventsSubject=d$;exports.tasksManagerSubject=h$;exports.toastSubject=ih;exports.togglePermission=SF;exports.trackEvent=z6;exports.transformDates=UF;exports.tryCreateSharedResource=du;exports.uniquePush=Fr;exports.updateDsCondition=XS;exports.useBoolean=U4;exports.useCallbackRef=q4;exports.useControllableProp=B1;exports.useControllableState=G4;exports.useDidMountEffect=o4;exports.useDoubleClick=A4;exports.useDsChangeRenderer=V4;exports.useDsRendererAdapter=W4;exports.useEnhancedState=B4;exports.useFeatureFlags=S4;exports.useFormControlProps=Y4;exports.useForwardedRef=x4;exports.useHotkeys=m4;exports.useIdentity=_4;exports.useOutsideClick=b4;exports.usePrevious=y4;exports.useSafeLayoutEffect=Z4;exports.useStateObject=O4;exports.useStateRef=w4;exports.useStudioContext=H6;exports.useTip=r1;exports.useToast=q6;exports.useUpdateEffect=K4;exports.validateName=su;exports.validateServerSide=v$;exports.validateValue=m$;exports.visuallyHiddenStyle=HF;exports.warn=FF;exports.webformEventsSubject=Hc;exports.webformSubject=u$;
|
|
206
257
|
//# sourceMappingURL=index.cjs.js.map
|