@ws-ui/shared 1.13.0-rc2 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Checkbox/index.d.ts +16 -0
- package/dist/components/ControlledSwitch.d.ts +10 -0
- package/dist/components/FloatingTooltip/index.d.ts +11 -0
- package/dist/components/Modal/Button.d.ts +10 -0
- package/dist/components/Tooltip.d.ts +3 -7
- package/dist/components/index.d.ts +3 -4
- package/dist/hooks/index.d.ts +0 -8
- package/dist/index.cjs.js +116 -167
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +13925 -25067
- package/dist/index.es.js.map +1 -1
- package/dist/shared.css +1 -1
- package/dist/types/explorer.d.ts +0 -31
- package/dist/types/index.d.ts +0 -3
- package/dist/types/modal.d.ts +4 -11
- package/dist/types/webform-editor.d.ts +1 -132
- package/dist/types/welcome-tour.d.ts +0 -3
- package/dist/utils/common.d.ts +0 -1
- package/dist/utils/explorer.d.ts +1 -4
- package/dist/utils/index.d.ts +0 -4
- package/package.json +6 -6
- package/dist/components/Grid.d.ts +0 -26
- package/dist/components/Image.d.ts +0 -5
- package/dist/components/SearchInput.d.ts +0 -12
- package/dist/components/ToolbarIcon/index.d.ts +0 -2
- package/dist/components/ToolbarIcon/interfaces.d.ts +0 -21
- package/dist/hooks/use-boolean.d.ts +0 -5
- package/dist/hooks/use-callback-ref.d.ts +0 -1
- package/dist/hooks/use-controllable-state.d.ts +0 -7
- package/dist/hooks/use-ds-change-renderer.d.ts +0 -10
- package/dist/hooks/use-ds-renderer.d.ts +0 -7
- package/dist/hooks/use-form-control-props.d.ts +0 -15
- package/dist/hooks/use-safe-layout-effect.d.ts +0 -2
- package/dist/hooks/use-update-effect.d.ts +0 -2
- package/dist/providers/index.d.ts +0 -2
- package/dist/providers/studio-context.d.ts +0 -7
- package/dist/providers/toast-provider.d.ts +0 -18
- package/dist/types/adapter.d.ts +0 -12
- package/dist/types/roles.d.ts +0 -111
- package/dist/types/settings.d.ts +0 -28
- package/dist/utils/catalog.d.ts +0 -1
- package/dist/utils/chakra-utils.d.ts +0 -21
- package/dist/utils/roles.d.ts +0 -54
- package/dist/utils/webform-editor.d.ts +0 -91
package/dist/index.cjs.js
CHANGED
|
@@ -1,204 +1,157 @@
|
|
|
1
|
-
"use strict";var bC=Object.defineProperty;var em=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 Te=(e,t,r)=>yC(e,typeof t!="symbol"?t+"":t,r),Cd=(e,t,r)=>t.has(e)||em("Cannot "+r);var ae=(e,t,r)=>(Cd(e,t,"read from private field"),r?r.call(e):t.get(e)),Ft=(e,t,r)=>t.has(e)?em("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Qe=(e,t,r,n)=>(Cd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ee=(e,t,r)=>(Cd(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"),Mf=require("@emotion/react");function $y(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=$y(N),wC=$y(En),jy=({children:e,container:t=document.body})=>En.createPortal(e,t);var tm=function(t){return t.reduce(function(r,n){var i=n[0],s=n[1];return r[i]=s,r},{})},rm=typeof window<"u"&&window.document&&window.document.createElement?V.useLayoutEffect:V.useEffect,lr="top",jr="bottom",Fr="right",cr="left",mp="auto",Sa=[lr,jr,Fr,cr],Mo="start",la="end",xC="clippingParents",Fy="viewport",ms="popper",SC="reference",nm=Sa.reduce(function(e,t){return e.concat([t+"-"+Mo,t+"-"+la])},[]),Hy=[].concat(Sa,[mp]).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",PC="afterWrite",IC=[EC,_C,OC,kC,AC,TC,RC,CC,PC];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Sr(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=Sr(e).Element;return e instanceof t||e instanceof Element}function $r(e){var t=Sr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bp(e){if(typeof ShadowRoot>"u")return!1;var t=Sr(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];!$r(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},{});!$r(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 ji=Math.max,kc=Math.min,Do=Math.round;function Df(){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 Wy(){return!/^((?!chrome|android).)*safari/i.test(Df())}function Lo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,s=1;t&&$r(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)?Sr(e):window,c=l.visualViewport,u=!Wy()&&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 yp(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 By(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&bp(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Vn(e){return Sr(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 Gc(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(bp(e)?e.host:null)||vi(e)}function im(e){return!$r(e)||Vn(e).position==="fixed"?null:e.offsetParent}function zC(e){var t=/firefox/i.test(Df()),r=/Trident/i.test(Df());if(r&&$r(e)){var n=Vn(e);if(n.position==="fixed")return null}var i=Gc(e);for(bp(i)&&(i=i.host);$r(i)&&["html","body"].indexOf(Sn(i))<0;){var s=Vn(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=Sr(e),r=im(e);r&&LC(r)&&Vn(r).position==="static";)r=im(r);return r&&(Sn(r)==="html"||Sn(r)==="body"&&Vn(r).position==="static")?t:r||zC(e)||t}function wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ra(e,t,r){return ji(e,kc(t,r))}function $C(e,t,r){var n=ra(e,t,r);return n>r?r:n}function Vy(){return{top:0,right:0,bottom:0,left:0}}function Uy(e){return Object.assign({},Vy(),e)}function qy(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,Uy(typeof t!="number"?t:qy(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=wp(c),f=[cr,Fr].indexOf(c)>=0,g=f?"height":"width";if(!(!s||!l)){var p=jC(i.padding,r),h=yp(s),b=u==="y"?lr:cr,S=u==="y"?jr:Fr,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,_),P=u;r.modifiersData[n]=(t={},t[P]=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)||By(t.elements.popper,i)&&(t.elements.arrow=i))}const WC={name:"arrow",enabled:!0,phase:"main",fn:FC,effect:HC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zo(e){return e.split("-")[1]}var BC={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 om(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=cr,O=lr,_=window;if(f){var R=Ea(r),H="clientHeight",P="clientWidth";if(R===Sr(r)&&(R=vi(r),Vn(R).position!=="static"&&c==="absolute"&&(H="scrollHeight",P="scrollWidth")),R=R,i===lr||(i===cr||i===Fr)&&s===la){O=jr;var z=p&&R===_&&_.visualViewport?_.visualViewport.height:R[H];v-=z-n.height,v*=u?1:-1}if(i===cr||(i===lr||i===jr)&&s===la){x=Fr;var U=p&&R===_&&_.visualViewport?_.visualViewport.width:R[P];b-=U-n.width,b*=u?1:-1}}var $=Object.assign({position:c},f&&BC),M=g===!0?VC({x:b,y:v},Sr(r)):{x:b,y:v};if(b=M.x,v=M.y,u){var D;return Object.assign({},$,(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({},$,(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,om(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,om(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 Ol={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=Sr(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(g){g.addEventListener("scroll",r.update,Ol)}),c&&u.addEventListener("resize",r.update,Ol),function(){s&&f.forEach(function(g){g.removeEventListener("scroll",r.update,Ol)}),c&&u.removeEventListener("resize",r.update,Ol)}}const ZC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GC,data:{}};var KC={left:"right",right:"left",bottom:"top",top:"bottom"};function sc(e){return e.replace(/left|right|bottom|top/g,function(t){return KC[t]})}var YC={start:"end",end:"start"};function sm(e){return e.replace(/start|end/g,function(t){return YC[t]})}function xp(e){var t=Sr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sp(e){return Lo(vi(e)).left+xp(e).scrollLeft}function XC(e,t){var r=Sr(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=Wy();(f||!f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:s,height:l,x:c+Sp(e),y:u}}function JC(e){var t,r=vi(e),n=xp(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=ji(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=ji(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+Sp(e),u=-n.scrollTop;return Vn(i||r).direction==="rtl"&&(c+=ji(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:c,y:u}}function Ep(e){var t=Vn(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Gy(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:$r(e)&&Ep(e)?e:Gy(Gc(e))}function na(e,t){var r;t===void 0&&(t=[]);var n=Gy(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=Sr(n),l=i?[s].concat(s.visualViewport||[],Ep(n)?n:[]):n,c=t.concat(l);return i?c:c.concat(na(Gc(l)))}function Lf(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 am(e,t,r){return t===Fy?Lf(XC(e,r)):Wi(t)?QC(t,r):Lf(JC(vi(e)))}function e5(e){var t=na(Gc(e)),r=["absolute","fixed"].indexOf(Vn(e).position)>=0,n=r&&$r(e)?Ea(e):e;return Wi(n)?t.filter(function(i){return Wi(i)&&By(i,n)&&Sn(i)!=="body"}):[]}function t5(e,t,r,n){var i=t==="clippingParents"?e5(e):[].concat(t),s=[].concat(i,[r]),l=s[0],c=s.reduce(function(u,f){var g=am(e,f,n);return u.top=ji(g.top,u.top),u.right=kc(g.right,u.right),u.bottom=kc(g.bottom,u.bottom),u.left=ji(g.left,u.left),u},am(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 Zy(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 lr:u={x:l,y:t.y-r.height};break;case jr:u={x:l,y:t.y+t.height};break;case Fr:u={x:t.x+t.width,y:c};break;case cr:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var f=i?wp(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?Fy:f,p=r.elementContext,h=p===void 0?ms:p,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=Uy(typeof y!="number"?y:qy(y,Sa)),w=h===ms?SC:ms,x=e.rects.popper,O=e.elements[S?w:h],_=t5(Wi(O)?O:O.contextElement||vi(e.elements.popper),u,g,l),R=Lo(e.elements.reference),H=Zy({reference:R,element:x,placement:i}),P=Lf(Object.assign({},x,H)),z=h===ms?P:R,U={top:_.top-z.top+m.top,bottom:z.bottom-_.bottom+m.bottom,left:_.left-z.left+m.left,right:z.right-_.right+m.right},$=e.modifiersData.offset;if(h===ms&&$){var M=$[i];Object.keys(U).forEach(function(D){var F=[Fr,jr].indexOf(D)>=0?1:-1,I=[lr,jr].indexOf(D)>=0?"y":"x";U[D]+=M[I]*F})}return U}function r5(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?Hy:u,g=zo(n),p=g?c?nm:nm.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 n5(e){if(wn(e)===mp)return[];var t=sc(e);return[sm(e),t,sm(t)]}function i5(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?[sc(y)]:n5(y)),O=[y].concat(x).reduce(function(X,ue){return X.concat(wn(ue)===mp?r5(t,{placement:ue,boundary:g,rootBoundary:p,padding:f,flipVariations:S,allowedAutoPlacements:v}):ue)},[]),_=t.rects.reference,R=t.rects.popper,H=new Map,P=!0,z=O[0],U=0;U<O.length;U++){var $=O[U],M=wn($),D=zo($)===Mo,F=[lr,jr].indexOf(M)>=0,I=F?"width":"height",K=ca(t,{placement:$,boundary:g,rootBoundary:p,altBoundary:h,padding:f}),te=F?D?Fr:cr:D?jr:lr;_[I]>R[I]&&(te=sc(te));var Y=sc(te),ve=[];if(s&&ve.push(K[M]<=0),c&&ve.push(K[te]<=0,K[Y]<=0),ve.every(function(X){return X})){z=$,P=!1;break}H.set($,ve)}if(P)for(var j=S?3:1,W=function(ue){var ie=O.find(function(ne){var de=H.get(ne);if(de)return de.slice(0,ue).every(function(pe){return pe})});if(ie)return z=ie,"break"},ee=j;ee>0;ee--){var Q=W(ee);if(Q==="break")break}t.placement!==z&&(t.modifiersData[n]._skip=!0,t.placement=z,t.reset=!0)}}const o5={name:"flip",enabled:!0,phase:"main",fn:i5,requiresIfExists:["offset"],data:{_skip:!1}};function lm(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 cm(e){return[lr,Fr,jr,cr].some(function(t){return e[t]>=0})}function s5(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=lm(l,n),f=lm(c,i,s),g=cm(u),p=cm(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 a5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s5};function l5(e,t,r){var n=wn(e),i=[cr,lr].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,[cr,Fr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function c5(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=i===void 0?[0,0]:i,l=Hy.reduce(function(g,p){return g[p]=l5(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 u5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:c5};function d5(e){var t=e.state,r=e.name;t.modifiersData[r]=Zy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const f5={name:"popperOffsets",enabled:!0,phase:"read",fn:d5,data:{}};function p5(e){return e==="x"?"y":"x"}function h5(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=wp(m),_=p5(O),R=t.modifiersData.popperOffsets,H=t.rects.reference,P=t.rects.popper,z=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,U=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(s){var D,F=O==="y"?lr:cr,I=O==="y"?jr:Fr,K=O==="y"?"height":"width",te=R[O],Y=te+y[F],ve=te-y[I],j=b?-P[K]/2:0,W=w===Mo?H[K]:P[K],ee=w===Mo?-P[K]:-H[K],Q=t.elements.arrow,X=b&&Q?yp(Q):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vy(),ie=ue[F],ne=ue[I],de=ra(0,H[K],X[K]),pe=x?H[K]/2-j-de-ie-U.mainAxis:W-de-ie-U.mainAxis,he=x?-H[K]/2+j+de+ne+U.mainAxis:ee+de+ne+U.mainAxis,xe=t.elements.arrow&&Ea(t.elements.arrow),Z=xe?O==="y"?xe.clientTop||0:xe.clientLeft||0:0,Oe=(D=$==null?void 0:$[O])!=null?D:0,ge=te+pe-Oe-Z,at=te+he-Oe,Kt=ra(b?kc(Y,ge):Y,te,b?ji(ve,at):ve);R[O]=Kt,M[O]=Kt-te}if(c){var Or,ur=O==="x"?lr:cr,bi=O==="x"?jr:Fr,xt=R[_],kr=_==="y"?"height":"width",Lt=xt+y[ur],Ct=xt-y[bi],Ut=[lr,cr].indexOf(m)!==-1,yi=(Or=$==null?void 0:$[_])!=null?Or:0,en=Ut?Lt:xt-H[kr]-P[kr]-yi+U.altAxis,wi=Ut?xt+H[kr]+P[kr]-yi-U.altAxis:Ct,Ar=b&&Ut?$C(en,xt,wi):ra(b?en:Lt,xt,b?wi:Ct);R[_]=Ar,M[_]=Ar-xt}t.modifiersData[n]=M}}const g5={name:"preventOverflow",enabled:!0,phase:"main",fn:h5,requiresIfExists:["offset"]};function v5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m5(e){return e===Sr(e)||!$r(e)?xp(e):v5(e)}function b5(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 y5(e,t,r){r===void 0&&(r=!1);var n=$r(t),i=$r(t)&&b5(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"||Ep(s))&&(c=m5(t)),$r(t)?(u=Lo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Sp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function w5(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 x5(e){var t=w5(e);return IC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function S5(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function E5(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 um={placement:"bottom",modifiers:[],strategy:"absolute"};function dm(){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 _5(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,s=i===void 0?um:i;return function(c,u,f){f===void 0&&(f=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},um,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=x5(E5([].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(dm(w,x)){g.rects={reference:y5(w,Ea(x),g.options.strategy==="fixed"),popper:yp(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,P=H===void 0?{}:H,z=_.name;typeof R=="function"&&(g=R({state:g,options:P,name:z,instance:b})||g)}}}},update:S5(function(){return new Promise(function(y){b.forceUpdate(),y(g)})}),destroy:function(){v(),h=!0}};if(!dm(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 O5=[ZC,f5,qC,DC,u5,o5,g5,WC,a5],k5=_5({defaultModifiers:O5}),kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pd,fm;function A5(){if(fm)return Pd;fm=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 Pd=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}},Pd}var T5=A5();const R5=Ky(T5);var C5=[],_p=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||C5},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:tm(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:tm(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 R5(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),p=V.useRef();return rm(function(){p.current&&p.current.setOptions(g)},[g]),rm(function(){if(!(t==null||r==null)){var h=n.createPopper||k5,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 Yy=e=>A.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Xy=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})),P5=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:i})=>{const[s,l]=N.useState(null),{styles:c,attributes:u}=_p(e,s,{placement:t||"bottom-start"}),f=N.useCallback(()=>{i&&i()},[i]);return r?A.jsxs(jy,{children:[A.jsx(Yy,{onClick:()=>f()}),A.jsx(Xy,{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-30:not(#\\#){height:calc(var(--spacing)*30)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-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}.grow:not(#\\#){flex-grow:1}.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-light:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-200)));--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 I5=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"})}),N5=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"})}),M5=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"})}),Wo=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"})}),D5=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"})]}),L5=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"})]}),ac=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"})}),zf=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"})}),z5=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"})]}),$5=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"})}),Jy=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"})]}),j5=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"})}),F5=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"})}),H5=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"})}),W5=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"})}),B5=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"})]}),V5=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"})}),U5=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"})}),Op=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"})}),q5=(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},G5=(e,t)=>({classGroupId:e,validator:t}),Qy=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ac="-",pm=[],Z5="arbitrary..",K5=e=>{const t=X5(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Y5(i);const s=i.split(Ac),l=s[0]===""&&s.length>1?1:0;return ew(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const l=n[i],c=r[i];return l?c?q5(c,l):l:c||pm}return r[i]||pm}}},ew=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],i=r.nextPart.get(n);if(i){const u=ew(e,t+1,i);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(Ac):e.slice(t).join(Ac),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},Y5=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?Z5+n:void 0})(),X5=e=>{const{theme:t,classGroups:r}=e;return J5(r,t)},J5=(e,t)=>{const r=Qy();for(const n in e){const i=e[n];kp(i,r,n,t)}return r},kp=(e,t,r,n)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];Q5(l,t,r,n)}},Q5=(e,t,r,n)=>{if(typeof e=="string"){e2(e,t,r);return}if(typeof e=="function"){t2(e,t,r,n);return}r2(e,t,r,n)},e2=(e,t,r)=>{const n=e===""?t:tw(t,e);n.classGroupId=r},t2=(e,t,r,n)=>{if(n2(e)){kp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(G5(r,e))},r2=(e,t,r,n)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[c,u]=i[l];kp(u,tw(t,c),r,n)}},tw=(e,t)=>{let r=e;const n=t.split(Ac),i=n.length;for(let s=0;s<i;s++){const l=n[s];let c=r.nextPart.get(l);c||(c=Qy(),r.nextPart.set(l,c)),r=c}return r},n2=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,i2=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)}}},$f="!",hm=":",o2=[],gm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),s2=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===hm){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($f)?(h=p.slice(0,-1),b=!0):p.startsWith($f)&&(h=p.slice(1),b=!0);const S=f&&f>u?f-u:void 0;return gm(s,b,h,S)};if(t){const i=t+hm,s=n;n=l=>l.startsWith(i)?s(l.slice(i.length)):gm(o2,!1,l,void 0,!0)}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},a2=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}},l2=e=>({cache:i2(e.cacheSize),parseClassName:s2(e),sortModifiers:a2(e),...K5(e)}),c2=/\s+/,u2=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(c2);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+$f: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},d2=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=rw(r))&&(i&&(i+=" "),i+=n);return i},rw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=rw(e[n]))&&(r&&(r+=" "),r+=t);return r},vm=(e,...t)=>{let r,n,i,s;const l=u=>{const f=t.reduce((g,p)=>p(g),e());return r=l2(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=u2(u,r);return i(u,g),g};return s=l,(...u)=>s(d2(...u))},f2=[],Tt=e=>{const t=r=>r[e]||f2;return t.isThemeGetter=!0,t},nw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,iw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p2=/^\d+\/\d+$/,h2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g2=/\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$/,v2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,b2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vo=e=>p2.test(e),De=e=>!!e&&!Number.isNaN(Number(e)),ni=e=>!!e&&Number.isInteger(Number(e)),Id=e=>e.endsWith("%")&&De(e.slice(0,-1)),Dn=e=>h2.test(e),y2=()=>!0,w2=e=>g2.test(e)&&!v2.test(e),ow=()=>!1,x2=e=>m2.test(e),S2=e=>b2.test(e),E2=e=>!ye(e)&&!we(e),_2=e=>Bo(e,lw,ow),ye=e=>nw.test(e),Pi=e=>Bo(e,cw,w2),Nd=e=>Bo(e,R2,De),mm=e=>Bo(e,sw,ow),O2=e=>Bo(e,aw,S2),Al=e=>Bo(e,uw,x2),we=e=>iw.test(e),bs=e=>Vo(e,cw),k2=e=>Vo(e,C2),bm=e=>Vo(e,sw),A2=e=>Vo(e,lw),T2=e=>Vo(e,aw),Tl=e=>Vo(e,uw,!0),Bo=(e,t,r)=>{const n=nw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Vo=(e,t,r=!1)=>{const n=iw.exec(e);return n?n[1]?t(n[1]):r:!1},sw=e=>e==="position"||e==="percentage",aw=e=>e==="image"||e==="url",lw=e=>e==="length"||e==="size"||e==="bg-size",cw=e=>e==="length",R2=e=>e==="number",C2=e=>e==="family-name",uw=e=>e==="shadow",ym=()=>{const e=Tt("color"),t=Tt("font"),r=Tt("text"),n=Tt("font-weight"),i=Tt("tracking"),s=Tt("leading"),l=Tt("breakpoint"),c=Tt("container"),u=Tt("spacing"),f=Tt("radius"),g=Tt("shadow"),p=Tt("inset-shadow"),h=Tt("text-shadow"),b=Tt("drop-shadow"),S=Tt("blur"),v=Tt("perspective"),y=Tt("aspect"),m=Tt("ease"),w=Tt("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(),we,ye],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],P=()=>[we,ye,u],z=()=>[vo,"full","auto",...P()],U=()=>[ni,"none","subgrid",we,ye],$=()=>["auto",{span:["full",ni,we,ye]},ni,we,ye],M=()=>[ni,"auto",we,ye],D=()=>["auto","min","max","fr",we,ye],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...P()],te=()=>[vo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Y=()=>[e,we,ye],ve=()=>[...O(),bm,mm,{position:[we,ye]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",A2,_2,{size:[we,ye]}],ee=()=>[Id,bs,Pi],Q=()=>["","none","full",f,we,ye],X=()=>["",De,bs,Pi],ue=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[De,Id,bm,mm],de=()=>["","none",S,we,ye],pe=()=>["none",De,we,ye],he=()=>["none",De,we,ye],xe=()=>[De,we,ye],Z=()=>[vo,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dn],breakpoint:[Dn],color:[y2],container:[Dn],"drop-shadow":[Dn],ease:["in","out","in-out"],font:[E2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dn],shadow:[Dn],spacing:["px",De],text:[Dn],"text-shadow":[Dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vo,ye,we,y]}],container:["container"],columns:[{columns:[De,ye,we,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:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ni,"auto",we,ye]}],basis:[{basis:[vo,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,vo,"auto","initial","none",ye]}],grow:[{grow:["",De,we,ye]}],shrink:[{shrink:["",De,we,ye]}],order:[{order:[ni,"first","last","none",we,ye]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m: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":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[c,"screen",...te()]}],"min-w":[{"min-w":[c,"screen","none",...te()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",r,bs,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,we,Nd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Id,ye]}],"font-family":[{font:[k2,ye,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,we,ye]}],"line-clamp":[{"line-clamp":[De,"none",we,Nd]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",we,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,ye]}],"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:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",we,Pi]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[De,"auto",we,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,ye]}],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",we,ye]}],"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:j()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ni,we,ye],radial:["",we,ye],conic:[ni,we,ye]},T2,O2]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"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:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,we,ye]}],"outline-w":[{outline:["",De,bs,Pi]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",g,Tl,Al]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Tl,Al]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:X()}],"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":X()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",h,Tl,Al]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[De,we,ye]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[we,ye]}],"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:j()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,ye]}],filter:[{filter:["","none",we,ye]}],blur:[{blur:de()}],brightness:[{brightness:[De,we,ye]}],contrast:[{contrast:[De,we,ye]}],"drop-shadow":[{"drop-shadow":["","none",b,Tl,Al]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",De,we,ye]}],"hue-rotate":[{"hue-rotate":[De,we,ye]}],invert:[{invert:["",De,we,ye]}],saturate:[{saturate:[De,we,ye]}],sepia:[{sepia:["",De,we,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",we,ye]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[De,we,ye]}],"backdrop-contrast":[{"backdrop-contrast":[De,we,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,we,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,we,ye]}],"backdrop-invert":[{"backdrop-invert":["",De,we,ye]}],"backdrop-opacity":[{"backdrop-opacity":[De,we,ye]}],"backdrop-saturate":[{"backdrop-saturate":[De,we,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",De,we,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",we,ye]}],ease:[{ease:["linear","initial",m,we,ye]}],delay:[{delay:[De,we,ye]}],animate:[{animate:["none",w,we,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,we,ye]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[we,ye,"","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",we,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,ye]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[De,bs,Pi,Nd]}],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"]}},P2=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:s={}})=>(Zs(e,"cacheSize",t),Zs(e,"prefix",r),Zs(e,"experimentalParseClassName",n),Rl(e.theme,s.theme),Rl(e.classGroups,s.classGroups),Rl(e.conflictingClassGroups,s.conflictingClassGroups),Rl(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Zs(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Cl(e.theme,i.theme),Cl(e.classGroups,i.classGroups),Cl(e.conflictingClassGroups,i.conflictingClassGroups),Cl(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),dw(e,i,"orderSensitiveModifiers"),e),Zs=(e,t,r)=>{r!==void 0&&(e[t]=r)},Rl=(e,t)=>{if(t)for(const r in t)Zs(e,r,t[r])},Cl=(e,t)=>{if(t)for(const r in t)dw(e,t,r)},dw=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},I2=(e,...t)=>typeof e=="function"?vm(ym,e,...t):vm(()=>P2(ym(),e),...t);function fw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wm={exports:{}};/*!
|
|
1
|
+
"use strict";var zO=Object.defineProperty;var yh=e=>{throw TypeError(e)};var WO=(e,t,r)=>t in e?zO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ye=(e,t,r)=>WO(e,typeof t!="symbol"?t+"":t,r),xl=(e,t,r)=>t.has(e)||yh("Cannot "+r);var Y=(e,t,r)=>(xl(e,t,"read from private field"),r?r.call(e):t.get(e)),gt=(e,t,r)=>t.has(e)?yh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),je=(e,t,r,i)=>(xl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),de=(e,t,r)=>(xl(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"),dc=require("@emotion/react"),UO=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),BO=ev(zo),tv=({children:e,container:t=document.body})=>zo.createPortal(e,t);var bh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},wh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Mt="top",or="bottom",sr="right",Ft="left",Bc="auto",Wo=[Mt,or,sr,Ft],Si="start",Co="end",HO="clippingParents",rv="viewport",Zi="popper",qO="reference",xh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Co])},[]),nv=[].concat(Wo,[Bc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Co])},[]),ZO="beforeRead",GO="read",KO="afterRead",VO="beforeMain",XO="main",YO="afterMain",JO="beforeWrite",QO="write",eA="afterWrite",tA=[ZO,GO,KO,VO,XO,YO,JO,QO,eA];function Ir(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 Hc(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rA(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)||!Ir(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function nA(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]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=u.reduce(function(f,m){return f[m]="",f},{});!ir(s)||!Ir(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const iA={name:"applyStyles",enabled:!0,phase:"write",fn:rA,effect:nA,requires:["computeStyles"]};function kr(e){return e.split("-")[0]}var Un=Math.max,ba=Math.min,Ei=Math.round;function pc(){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(pc())}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 u=Hn(e)?Gt(e):window,c=u.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 qc(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&&Hc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yr(e){return Gt(e).getComputedStyle(e)}function oA(e){return["table","td","th"].indexOf(Ir(e))>=0}function Sn(e){return((Hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function La(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||(Hc(e)?e.host:null)||Sn(e)}function Sh(e){return!ir(e)||Yr(e).position==="fixed"?null:e.offsetParent}function sA(e){var t=/firefox/i.test(pc()),r=/Trident/i.test(pc());if(r&&ir(e)){var i=Yr(e);if(i.position==="fixed")return null}var s=La(e);for(Hc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf(Ir(s))<0;){var a=Yr(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=Sh(e);r&&oA(r)&&Yr(r).position==="static";)r=Sh(r);return r&&(Ir(r)==="html"||Ir(r)==="body"&&Yr(r).position==="static")?t:r||sA(e)||t}function Zc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e,t,r){return Un(e,ba(t,r))}function aA(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 uA=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 lA(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,c=kr(r.placement),f=Zc(c),m=[Ft,sr].indexOf(c)>=0,y=m?"height":"width";if(!(!a||!u)){var p=uA(s.padding,r),g=qc(a),v=f==="y"?Mt:Ft,x=f==="y"?or:sr,d=r.rects.reference[y]+r.rects.reference[f]-u[f]-r.rects.popper[y],w=u[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 cA(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 fA={name:"arrow",enabled:!0,phase:"main",fn:lA,effect:cA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var dA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pA(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 Eh(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,p=e.isFixed,g=u.x,v=g===void 0?0:g,x=u.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=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Ft,R=Mt,O=window;if(m){var C=Uo(r),U="clientHeight",M="clientWidth";if(C===Gt(r)&&(C=Sn(r),Yr(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&&dA),L=y===!0?pA({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 hA(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,u=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,m={placement:kr(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,Eh(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eh(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 gA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hA,data:{}};var zs={passive:!0};function mA(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,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 vA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mA,data:{}};var yA={left:"right",right:"left",bottom:"top",top:"bottom"};function ua(e){return e.replace(/left|right|bottom|top/g,function(t){return yA[t]})}var bA={start:"end",end:"start"};function _h(e){return e.replace(/start|end/g,function(t){return bA[t]})}function Gc(e){var t=Gt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Kc(e){return _i(Sn(e)).left+Gc(e).scrollLeft}function wA(e,t){var r=Gt(e),i=Sn(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var m=iv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Kc(e),y:f}}function xA(e){var t,r=Sn(e),i=Gc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Un(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Un(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Kc(e),f=-i.scrollTop;return Yr(s||r).direction==="rtl"&&(c+=Un(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Vc(e){var t=Yr(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(Ir(e))>=0?e.ownerDocument.body:ir(e)&&Vc(e)?e:lv(La(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),u=s?[a].concat(a.visualViewport||[],Vc(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(Ao(La(u)))}function hc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function SA(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 Oh(e,t,r){return t===rv?hc(wA(e,r)):Hn(t)?SA(t,r):hc(xA(Sn(e)))}function EA(e){var t=Ao(La(e)),r=["absolute","fixed"].indexOf(Yr(e).position)>=0,i=r&&ir(e)?Uo(e):e;return Hn(i)?t.filter(function(s){return Hn(s)&&ov(s,i)&&Ir(s)!=="body"}):[]}function _A(e,t,r,i){var s=t==="clippingParents"?EA(e):[].concat(t),a=[].concat(s,[r]),u=a[0],c=a.reduce(function(f,m){var y=Oh(e,m,i);return f.top=Un(y.top,f.top),f.right=ba(y.right,f.right),f.bottom=ba(y.bottom,f.bottom),f.left=Un(y.left,f.left),f},Oh(e,u,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?kr(i):null,a=i?Oi(i):null,u=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case Mt:f={x:u,y:t.y-r.height};break;case or:f={x:u,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?Zc(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,u=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?HO: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?qO:Zi,E=e.rects.popper,R=e.elements[x?S:g],O=_A(Hn(R)?R:R.contextElement||Sn(e.elements.popper),f,y,u),C=_i(e.elements.reference),U=cv({reference:C,element:E,placement:s}),M=hc(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 OA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,u=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?nv:f,y=Oi(i),p=y?c?xh:xh.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:u})[kr(d)],x},{});return Object.keys(v).sort(function(x,d){return v[x]-v[d]})}function AA(e){if(kr(e)===Bc)return[];var t=ua(e);return[_h(e),t,_h(t)]}function TA(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,u=r.altAxis,c=u===void 0?!0:u,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=kr(w),S=h===w,E=f||(S||!x?[ua(w)]:AA(w)),R=[w].concat(E).reduce(function(ie,he){return ie.concat(kr(he)===Bc?OA(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=kr(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 RA={name:"flip",enabled:!0,phase:"main",fn:TA,requiresIfExists:["offset"],data:{_skip:!1}};function Ah(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 Th(e){return[Mt,sr,or,Ft].some(function(t){return e[t]>=0})}function PA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=ko(t,{elementContext:"reference"}),c=ko(t,{altBoundary:!0}),f=Ah(u,i),m=Ah(c,s,a),y=Th(f),p=Th(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 CA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PA};function kA(e,t,r){var i=kr(e),s=[Ft,Mt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Ft,sr].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function $A(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,u=nv.reduce(function(y,p){return y[p]=kA(p,t.rects,a),y},{}),c=u[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]=u}const IA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$A};function LA(e){var t=e.state,r=e.name;t.modifiersData[r]=cv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const MA={name:"popperOffsets",enabled:!0,phase:"read",fn:LA,data:{}};function FA(e){return e==="x"?"y":"x"}function DA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!1:u,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=kr(t.placement),S=Oi(t.placement),E=!S,R=Zc(h),O=FA(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?qc(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,Fr=J+Ae-ct-oe,bt=J+_e-ct,Jr=Oo(v?ba(re,Fr):re,J,v?Un(ce,bt):ce);C[R]=Jr,L[R]=Jr-J}if(c){var Vo,ar=R==="x"?Mt:Ft,Xo=R==="x"?or:sr,Dr=C[O],yr=O==="y"?"height":"width",Pt=Dr+w[ar],Qr=Dr-w[Xo],en=[Mt,Ft].indexOf(h)!==-1,Yo=(Vo=N==null?void 0:N[O])!=null?Vo:0,tn=en?Pt:Dr-U[yr]-M[yr]-Yo+q.altAxis,Jo=en?Dr+U[yr]+M[yr]-Yo-q.altAxis:Qr,rn=v&&en?aA(tn,Dr,Jo):Oo(v?tn:Pt,Dr,v?Jo:Qr);C[O]=rn,L[O]=rn-Dr}t.modifiersData[i]=L}}const NA={name:"preventOverflow",enabled:!0,phase:"main",fn:DA,requiresIfExists:["offset"]};function jA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zA(e){return e===Gt(e)||!ir(e)?Gc(e):jA(e)}function WA(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 UA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&WA(t),a=Sn(t),u=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Ir(t)!=="body"||Vc(a))&&(c=zA(t)),ir(t)?(f=_i(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Kc(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function BA(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 u=[].concat(a.requires||[],a.requiresIfExists||[]);u.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 HA(e){var t=BA(e);return tA.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function qA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ZA(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 Rh={placement:"bottom",modifiers:[],strategy:"absolute"};function Ph(){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 GA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Rh:s;return function(c,f,m){m===void 0&&(m=a);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rh,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=HA(ZA([].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(Ph(S,E)){y.rects={reference:UA(S,Uo(E),y.options.strategy==="fixed"),popper:qc(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:qA(function(){return new Promise(function(w){v.forceUpdate(),w(y)})}),destroy:function(){d(),g=!0}};if(!Ph(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 KA=[vA,MA,gA,iA,IA,RA,NA,fA,CA],VA=GA({defaultModifiers:KA}),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 Sl,Ch;function XA(){if(Ch)return Sl;Ch=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var c,f,m;if(Array.isArray(a)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var y;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!u.has(f.value[0]))return!1;for(y=a.entries();!(f=y.next()).done;)if(!s(f.value[1],u.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(y=a.entries();!(f=y.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(m=Object.keys(a),c=m.length,c!==Object.keys(u).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,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]],u[m[f]]))return!1;return!0}return a!==a&&u!==u}return Sl=function(u,c){try{return s(u,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Sl}var YA=XA();const JA=fv(YA);var QA=[],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||QA},u=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=u[0],f=u[1],m=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var x=v.state,d=Object.keys(x.elements);BO.flushSync(function(){f({styles:bh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:bh(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 JA(s.current,g)?s.current||g:(s.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),p=$.useRef();return wh(function(){p.current&&p.current.setOptions(y)},[y]),wh(function(){if(!(t==null||r==null)){var g=i.createPopper||VA,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})),eT=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=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:u,style:c.popper,attributes:f.popper,children:i})]}):null};var El={exports:{}};/*!
|
|
3
2
|
Copyright (c) 2018 Jed Watson.
|
|
4
3
|
Licensed under the MIT License (MIT), see
|
|
5
4
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/var
|
|
7
|
-
|
|
8
|
-
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
9
|
-
relative
|
|
10
|
-
`,$2=(e,t,r)=>{const{isChecked:n,isIndeterminate:i,isDisabled:s,isInvalid:l}=r,c=n||i;return le(z2,_a[e].checkbox,{"cursor-pointer":!s},l?{[Lr.negative.checked]:c,[Lr.negative.unchecked]:!c,[Lr.negative.checkedHover]:!s&&c,[Lr.negative.focus]:!s,"border-input-disable":s}:{[Lr[t].checked]:c&&!s,[Lr[t].unchecked]:!c&&!s,[Lr[t].checkedHover]:!s&&c,[Lr[t].focus]:!s,"border-input-disable":s,"bg-input-disable":s&&c})},j2=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return le(_a[e].text,i?{[Lr.negative.label]:i}:{"text-input-disable":n,[Lr[t].label]:!n,"cursor-pointer":!n})},F2=e=>le("inline-flex items-center ws-group",_a[e].spacing),H2=(e,t,r)=>le("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",_a[e].hoverSquare,{[Lr.negative.hoverSquare]:r,[Lr[t].hoverSquare]:!r}),W2=e=>`${_a[e].icon}`,B2=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"})}),V2=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},_=$2(i,s,O),R=j2(i,s,O),H=F2(i),P=H2(i,s,r),z=W2(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(B2,{className:z}):A.jsx(N5,{className:z})}),!x&&!t&&A.jsx("div",{className:P})]}),e&&A.jsxs("span",{className:R,children:[e,n&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});V2.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"}},U2=`
|
|
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
|
-
`,q2=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return le(U2,Oa[e].radio,i?ua[t].radioInvalid:{[ua[t].radio]:!n,"cursor-not-allowed opacity-60":n})},G2=(e,t,r)=>{const{checked:n,isDisabled:i,isInvalid:s}=r;return le("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})},Z2=(e,t,r)=>le("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}),K2=e=>le("cursor-pointer select-none transition-colors duration-200",Oa[e].label),Y2=(e,t,r,n)=>{const{isDisabled:i,isInvalid:s}=r;return le("inline-flex items-center group",Oa[e].container,s?{"text-negative":s}:{[ua[t].label]:!i,"text-muted":i},n)},X2=N.createContext(null),J2=()=>{const e=N.useContext(X2);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},Q2=N.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:i,isInvalid:s,isRequired:l,className:c,...u},f)=>{const g=J2(),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=q2(p,h,m),x=G2(p,h,m),O=Z2(p,h,S),_=K2(p),R=Y2(p,h,m,c),H=()=>{b||g.onChange(e)};return A.jsxs("label",{"data-qui":"RadioItem",className:R,children:[A.jsxs("div",{className:le("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:"*"})]})]})});Q2.displayName="RadioItem";const pw={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=pw[e],s=eP[r],l=le("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},i.container);return n?le(l,"text-inactive-text pointer-events-none",{"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"}):le(l,s.bg[t],s.text[t],s.hover[t],s.border[t])},rP=e=>le("flex items-center justify-center gap-1",pw[e].text),Wn=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:le(tP(e,t,r,s),rP(e),n),disabled:s,...l,children:i}));Wn.displayName="Button";const hw=N.createContext(null),ka=()=>{const e=N.useContext(hw);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"}},Fi={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=()=>le("flex flex-col relative"),iP=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:i,hasArea:s,isInvalid:l})=>{const c=Fi[l?"negative":t];return le("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})=>le("bg-transparent ring-0 w-full","focus:outline-hidden",[Uo[e].input],Fi[t].placeholder),Sm=({size:e,color:t})=>le("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Uo[e].input,Fi[t].placeholder),sP=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=Fi[t];return le("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})=>le("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":Fi[t].messageText,Fi[t].borderMessage,Fi[t].messageBackground,Uo[e].message,{"opacity-60":r}),lP=({size:e})=>le(Uo[e].icon);function Tc(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,gw=cP||uP||Function("return this")(),Md=function(){return gw.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 Rc=gw.Symbol,vw=Object.prototype,gP=vw.hasOwnProperty,vP=vw.toString,ys=Rc?Rc.toStringTag:void 0;function mP(e){var t=gP.call(e,ys),r=e[ys];try{e[ys]=void 0;var n=!0}catch{}var i=vP.call(e);return n&&(t?e[ys]=r:delete e[ys]),i}var bP=Object.prototype,yP=bP.toString;function wP(e){return yP.call(e)}var xP="[object Null]",SP="[object Undefined]",Em=Rc?Rc.toStringTag:void 0;function EP(e){return e==null?e===void 0?SP:xP:Em&&Em 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 _m=NaN,AP=/^[-+]0x[0-9a-f]+$/i,TP=/^0b[01]+$/i,RP=/^0o[0-7]+$/i,CP=parseInt;function Om(e){if(typeof e=="number")return e;if(kP(e))return _m;if(Tc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tc(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)?_m:+e}var PP="Expected a function",IP=Math.max,NP=Math.min;function lc(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(PP);t=Om(t)||0,Tc(r)&&(g=!!r.leading,p="maxWait"in r,s=p?IP(Om(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function b(R){var H=n,P=i;return n=i=void 0,f=R,l=e.apply(P,H),l}function S(R){return f=R,c=setTimeout(m,t),g?b(R):l}function v(R){var H=R-u,P=R-f,z=t-H;return p?NP(z,s-P):z}function y(R){var H=R-u,P=R-f;return u===void 0||H>=t||H<0||p&&P>=s}function m(){var R=Md();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(Md())}function _(){var R=Md(),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 Tc(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),lc(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 mw(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function bw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var yw=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 ww(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function xw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Sw(e){return".".concat(e.split(" ").join("."))}var Ap=!!(typeof window<"u"&&window.document&&window.document.createElement),LP=Object.freeze({__proto__:null,addClasses:ww,canUseDOM:Ap,classNamesToQuery:Sw,getElementDocument:bw,getElementWindow:mw,getOptions:yw,removeClasses:xw}),_o=null,km=null;Ap&&window.addEventListener("resize",function(){km!==window.devicePixelRatio&&(km=window.devicePixelRatio,_o=null)});function Am(){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=mw,Dd=bw,zP=yw,oi=ww,si=xw,sr=Sw,ws=(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),P=H*(O-_);n.draggedAxis==="x"&&n.isRtl&&(P=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-P:P),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){n.isDragging=!1;var s=Dd(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=lc(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=lc(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=lc(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:Am()}catch{return Am()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Dd(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(){Ap&&(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(sr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(sr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(sr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(sr(this.classNames.offset)),this.maskEl=this.el.querySelector(sr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,sr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(sr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(sr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(sr(this.classNames.track)).concat(sr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(sr(this.classNames.track)).concat(sr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(sr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(sr(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=Dd(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})(),wr=function(){return wr=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},wr.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 Tp=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(ws.defaultOptions,b)?f[b]=s[b]:g[b]=s[b]});var p=wr(wr({},ws.defaultOptions.classNames),f.classNames),h=wr(wr({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:f.tabIndex||ws.defaultOptions.tabIndex,role:"region","aria-label":f.ariaLabel||ws.defaultOptions.ariaLabel});return V.useEffect(function(){var b;return c.current=h.ref?h.ref.current:c.current,l.current&&(b=new ws(l.current,wr(wr(wr({},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",wr({"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:wr(wr({},h),{ref:c}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):V.createElement("div",wr({},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})))});Tp.displayName="SimpleBar";const Ew=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(hw.Provider,{value:b,children:A.jsx("div",{ref:u,"data-qui":"Input",className:le(nP(),s),...c,children:l})})}),_w=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:le(iP({size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}),e),...r,children:t})}),Ow=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:le(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=z=>{const U=R+(z.clientY-_);U>30&&(O.style.height=U+"px")},P=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",P)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",P)},{isDisabled:y,isReadOnly:m,...w}=n;return A.jsxs("div",{ref:h,className:le("w-full relative",!r&&!n.rows&&"h-30",t),children:[r?A.jsx("textarea",{ref:p,rows:1,className:le(Sm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{overflow:"hidden"},...w}):A.jsx(Tp,{style:{height:"100%"},children:A.jsx("textarea",{ref:p,rows:1,className:le(Sm({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(F5,{})})]})}),kw=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:le(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:le(aP({size:s,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&A.jsx("div",{className:le(lP({size:s}),t),children:e}),A.jsx("p",{children:r})]})});Ew.displayName="InputRoot";_w.displayName="InputGroup";Ow.displayName="InputField";jP.displayName="InputArea";kw.displayName="InputIcon";FP.displayName="InputMessage";const xs={Root:Ew,Group:_w,Field:Ow,Icon:kw},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})=>le("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",da[e].container,da[e].icon),WP=({color:e})=>le("text-xs font-medium leading-3",da[e].text),BP=({color:e})=>le("p-0.5 rounded cursor-pointer",da[e].button,da[e].icon),Aw=({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(),I=window.innerWidth,K=window.innerHeight,te=window.scrollX,Y=window.scrollY,ve=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,I),j=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,K),W=4;let ee=r,Q={position:ee,transform:""};const X=de=>{const{top:pe,left:he,width:xe,height:Z}=D,Oe=pe+Y,ge=he+te;switch(de){case"up":return{top:`${Oe-F.height-W}px`,left:`${ge+xe/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${Oe-F.height-W}px`,left:`${ge}px`,transform:"translateX(0)"};case"up-end":return{top:`${Oe-F.height-W}px`,left:`${ge+xe-F.width}px`,transform:"translateX(0)"};case"down":return{top:`${Oe+Z+W}px`,left:`${ge+xe/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${Oe+Z+W}px`,left:`${ge}px`,transform:"translateX(0)"};case"down-end":return{top:`${Oe+Z+W}px`,left:`${ge+xe-F.width}px`,transform:"translateX(0)"};case"left":return{top:`${Oe+Z/2}px`,left:`${ge-F.width-W}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${Oe}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"left-end":return{top:`${Oe+Z-F.height}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"right":return{top:`${Oe+Z/2}px`,left:`${ge+xe+W}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${Oe}px`,left:`${ge+xe+W}px`,transform:"translateY(0)"};case"right-end":return{top:`${Oe+Z-F.height}px`,left:`${ge+xe+W}px`,transform:"translateY(0)"};default:return{}}},ue={up:{fits:D.top-F.height-W>=0},"up-start":{fits:D.top-F.height-W>=0&&D.left+F.width<=I},"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<=j},"down-start":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=j&&D.left+F.width<=I},"down-end":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=j&&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<=I&&D.right+F.width+W<=ve},"right-start":{fits:D.right+F.width+W<=I&&D.right+F.width+W<=ve&&D.top+F.height<=K},"right-end":{fits:D.right+F.width+W<=I&&D.right+F.width+W<=ve&&D.bottom-F.height>=0}},ie=D.left+D.width/2-F.width/2,ne=D.left+D.width/2+F.width/2;if((r==="up"||r==="down")&&(ie<0||ne>I)&&(ue[r].fits=!1),ue[r].fits){const de=X(r);Q={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(pe=>ue[pe].fits);if(de){ee=de;const pe=X(de);Q={position:ee,...pe,transform:pe.transform||""}}else{const pe={up:D.top,"up-start":D.top,"up-end":D.top,down:Math.min(K-D.bottom,j-D.bottom),"down-start":Math.min(K-D.bottom,j-D.bottom),"down-end":Math.min(K-D.bottom,j-D.bottom),left:D.left,"left-start":D.left,"left-end":D.left,right:Math.min(I-D.right,ve-D.right),"right-start":Math.min(I-D.right,ve-D.right),"right-end":Math.min(I-D.right,ve-D.right)},he=Object.entries(pe).reduce((Z,[Oe,ge])=>ge>Z.space?{position:Oe,space:ge}:Z,{position:"up",space:0}).position;ee=he;const xe=X(he);Q={position:ee,...xe,transform:xe.transform||""}}}y(Q)},[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)},P=()=>{S(!0),x.current&&clearTimeout(x.current)},z=()=>{S(!1),p&&(x.current=setTimeout(()=>{h(!1)},l))},U=()=>{c==="hover"&&(h(!0),x.current&&clearTimeout(x.current))},$=()=>{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:$,className:le("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,opacity:v.left?1:0,pointerEvents:n?"auto":"none"},onMouseEnter:n?P:void 0,onMouseLeave:n?z:void 0,children:[i&&A.jsx("span",{"data-testid":"tooltip-icon",children:i}),A.jsx("div",{className:WP({color:t}),children:e}),n&&A.jsx("div",{onClick:H,className:BP({color:t}),role:"button",children:A.jsx(Wo,{})})]}),M)]}):null};var Tm;(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"})(Tm||(Tm={}));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 Rm;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Rm||(Rm={}));var zr;(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"})(zr||(zr={}));zr.Space,zr.Enter,zr.Esc,zr.Space,zr.Enter,zr.Tab;var Cm;(function(e){e[e.RightClick=2]="RightClick"})(Cm||(Cm={}));var Pm;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Pm||(Pm={}));var Im;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Im||(Im={}));Ao.Backward+"",Ao.Forward+"",Ao.Backward+"",Ao.Forward+"";var jf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(jf||(jf={}));var Ff;(function(e){e.Optimized="optimized"})(Ff||(Ff={}));jf.WhileDragging,Ff.Optimized;({...VP});var Nm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Nm||(Nm={}));zr.Down,zr.Right,zr.Up,zr.Left;const Tw={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=Tw[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?le(l,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?le(l,s.padding,s.text,s.gap,i.active.bg,i.active.text,"shadow-xs"):le(l,s.padding,s.text,s.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},GP=(e,t)=>le("flex items-center justify-center",Tw[e].icon,{"opacity-50":t}),ZP=()=>le("whitespace-nowrap"),Rw=(e,t)=>{const r=le("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?le(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?le(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):le(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,onClose:u,closable:f,touched:g,content:p,renderTab:h,...b},S)=>{const v=N.useContext(KP);if(!v)return null;const{activeTab:y,onTabChange:m,variant:w,color:x,size:O,showIcons:_,disabled:R}=v,H=c!==void 0?c:y===e,P=n||R,z=U=>{P||(m(e),l==null||l(U))};return w==="file"?A.jsx("div",{"data-qui":"FileTabItem",className:le(Rw(H,!1),"cursor-pointer",s),onClick:U=>!P&&z(U),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:S,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":H,"aria-disabled":P,className:le(qP(x,O,H,P||!1),s),onClick:z,disabled:P,...b,children:[_&&r&&A.jsx("span",{className:GP(O,P||!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:Rw(e,t),ref:i,...n,children:r}));XP.displayName="TabNavContainer";var _t=function(){return _t=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},_t.apply(this,arguments)},Mm={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Dm={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Pl={width:"20px",height:"20px",position:"absolute",zIndex:1},JP={top:_t(_t({},Mm),{top:"-5px"}),right:_t(_t({},Dm),{left:void 0,right:"-5px"}),bottom:_t(_t({},Mm),{top:void 0,bottom:"-5px"}),left:_t(_t({},Dm),{left:"-5px"}),topRight:_t(_t({},Pl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:_t(_t({},Pl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:_t(_t({},Pl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:_t(_t({},Pl),{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 _t(_t({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})}),eI=(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)},tI={width:"auto",height:"auto"},Il=function(e,t,r){return Math.max(Math.min(e,r),t)},Lm=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)},Nl=function(e){return!!(e.touches&&e.touches.length)},rI=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},zm=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},Ld=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")},Ml=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},nI=function(e,t,r,n,i,s,l){return n=Ml(n,e.width,t,r),i=Ml(i,e.height,t,r),s=Ml(s,e.width,t,r),l=Ml(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)}},iI=function(e){return Array.isArray(e)?e:[e,e]},oI=["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"],$m="__resizable_base__",sI=(function(e){eI(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($m):f.className+=$m,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||tI},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 Ld(r.state[c])},s=n&&typeof n.width<"u"&&!this.state.isResizing?Ld(n.width):i("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Ld(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=iI(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&&rI(r.nativeEvent)?(i=r.nativeEvent.clientX,s=r.nativeEvent.clientY):r.nativeEvent&&Nl(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&&Nl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,l=i.maxHeight,c=i.minWidth,u=i.minHeight,f=Nl(r)?r.touches[0].clientX:r.clientX,g=Nl(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=nI(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=zm(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=zm(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=Lm(O,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=Lm(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),z=this.props.snapGap||0,U=z===0||Math.abs(H-O)<=z?H:O,$=z===0||Math.abs(P-x)<=z?P:x;O=U,x=$}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 I=O/this.window.innerHeight*100;O="".concat(I,"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 I=x/this.window.innerHeight*100;x="".concat(I,"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 te=this.state.width!==K.width,Y=this.state.height!==K.height,ve=this.state.flexBasis!==K.flexBasis,j=te||Y||ve;j&&En.flushSync(function(){n.setState(K)}),this.props.onResize&&j&&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 oI.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 aI={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},lI={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Cw=({depth:e=0,className:t,borderType:r,disabled:n})=>le("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?lI[r]:"border-panel-border",aI[e],t),cI=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},Pw=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:P,snapGap:z,as:U="div",depth:$,disabled:M},D)=>{const F=Cw({depth:$,className:x,disabled:M}),I=cI(x),K=g?{size:g}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},te=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(sI,{"data-qui":"Resizable",ref:Y,...K,...te,minWidth:n??I.minWidth,minHeight:i??I.minHeight,maxWidth:s??I.maxWidth,maxHeight:l??I.maxHeight,grid:p,snap:h,lockAspectRatio:b,enable:S,handleStyles:v,handleClasses:y,handleComponent:m,style:w,className:le("relative box-border",F),onResizeStart:O,onResize:_,onResizeStop:R,scale:H,bounds:P,snapGap:z,as:U,children:e})});Pw.displayName="Resizable";const Iw=({isDragging:e=!1,className:t})=>A.jsx("div",{className:le("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:A.jsx("div",{className:le("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});Iw.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"}},Dl={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"}},uI=(e,t,r,n,i,s)=>({container:le("inline-flex items-center",bo[e].gap,s),track:le("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,{[Dl[t].bg]:r&&!n&&!i,"bg-input-bg":!r&&!n||i,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:le("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,{[Dl[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:le("flex items-center justify-center z-10 w-1/2 p-0.5",{[Dl[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:le("flex items-center justify-center z-10 w-1/2 p-0.5",{[Dl[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:le("font-medium text-body",bo[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Nw=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=uI(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})]})]})});Nw.displayName="Toggle";N.createContext(null);const qi=N.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:i,...s},l)=>{const c=Cw({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})});qi.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"}},cc={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"}},dI=(e,t,r,n)=>le("inline-flex items-center justify-center font-medium border",fa[e].container,cc[t].bg,cc[t].text,cc[t].border,fa[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),fI=(e,t,r)=>le({[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}),pI=e=>le(fa[e].text),Mw=(e,t,r)=>le("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",fa[e].iconButton,cc[t].buttonHover,{"pointer-events-none":r}),Dw=N.createContext(null),Zc=()=>{const e=N.useContext(Dw);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Rp=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(Dw.Provider,{value:u,children:A.jsx("div",{"data-qui":"Pill",ref:c,onClick:s,className:le(dI(e,t,i,f),r),...l,children:n})})});Rp.displayName="Pill.Root";const Cp=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i}=Zc();return A.jsx("span",{ref:n,className:le(pI(i),e),...r,children:t})});Cp.displayName="Pill.Text";const Pp=N.forwardRef(({className:e,children:t,label:r,position:n,...i},s)=>{const{size:l,color:c,disabled:u}=Zc(),f=!!r,g=A.jsx("span",{ref:s,className:le(fI(l,c,f),e,{"opacity-60":u}),...i,children:t});return f&&!u?A.jsx(Aw,{label:r||"",position:n||"up",children:g}):g});Pp.displayName="Pill.Icon";const Lw=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,disabled:l}=Zc();return A.jsx("button",{ref:n,type:"button",disabled:l,className:le(Mw(i,s,l),e),...r,children:t})});Lw.displayName="Pill.Button";const Ip=N.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...i},s)=>{const{size:l,color:c,disabled:u}=Zc();return A.jsx("button",{ref:s,type:"button",disabled:u,className:le(Mw(l,c,u),e),onClick:t,"aria-label":r,...i,children:n||A.jsx(Wo,{})})});Ip.displayName="Pill.Close";const zw=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(Rp,{ref:g,size:e,color:t,className:l,disabled:u,...f,children:[n&&A.jsx(Pp,{children:n}),c||r&&A.jsx(Cp,{children:r}),s&&A.jsx(Ip,{onClose:i})]}));zw.displayName="Pill";Object.assign(zw,{Root:Rp,Text:Cp,Icon:Pp,Button:Lw,Close:Ip});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 jm(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const hI=(e,t)=>Math.abs(e-t)<1.01,gI=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Fm=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},vI=e=>e,mI=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},bI=(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(Fm(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(Fm(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},Hm={passive:!0},Wm=typeof window>"u"?!0:"onscrollend"in window,yI=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const s=e.options.useScrollendEvent&&Wm?()=>{}:gI(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,Hm);const f=e.options.useScrollendEvent&&Wm;return f&&r.addEventListener("scrollend",u,Hm),()=>{r.removeEventListener("scroll",c),f&&r.removeEventListener("scrollend",u)}},wI=(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"]},xI=(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 SI{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:vI,rangeExtractor:mI,onChange:()=>{},measureElement:wI,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?EI({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 jm(n[$w(0,n.length-1,i=>jm(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&&hI(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 $w=(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 EI({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=$w(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 Bm=typeof document<"u"?V.useLayoutEffect:V.useEffect;function _I({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 SI(n));return i.setOptions(n),Bm(()=>i._didMount(),[]),Bm(()=>i._willUpdate()),i}function OI(e){return _I({observeElementRect:bI,observeElementOffset:yI,scrollToFn:xI,...e})}const kI=N.createContext(null),Mt=()=>{const e=N.useContext(kI);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Rt={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"}},AI=({size:e,color:t,isDisabled:r,hasMessage:n,isInvalid:i,isFocused:s,menuPlacement:l})=>{const c=ht[i?"negative":t];return le("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}`],Rt[e].trigger,{"ring-1":n,[c.controlDisabled]:r})},TI=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=ht[t];return le("transition-colors duration-200 rounded max-h-full h-fit px-0.5",Rt[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})},RI=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:i,hasMessage:s,hasGroup:l,menuPlacement:c})=>{const u=ht[i?"negative":t];return l?le("flex items-center justify-between flex-1 min-w-0",Rt[e].control,"bg-transparent border-0",{[u.controlDisabled]:r}):le("flex items-center justify-between",n&&c?c==="top"?"rounded-b":"rounded-t":"rounded",Rt[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})},CI=({isMulti:e})=>le("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),PI=({size:e,color:t})=>le("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",Rt[e].input,ht[t].placeholder),II=({size:e,color:t})=>le("select-none truncate",Rt[e].placeholder,ht[t].placeholder),NI=({size:e,color:t,isDisabled:r})=>le("truncate",Rt[e].singleValue,r?ht[t].singleValueDisabled:ht[t].singleValue),MI=({size:e,color:t,isDisabled:r,isFocused:n})=>le("inline-flex items-center rounded-xs",Rt[e].multiValue,r?ht[t].multiValueDisabled:ht[t].multiValue,{"border border-white":n&&!r}),DI=({size:e})=>le("truncate",Rt[e].multiValueLabel),LI=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center cursor-pointer transition-colors",Rt[e].multiValueRemove,ht[t].multiValueRemove),jw=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center transition-colors rounded",Rt[e].clearIndicator,r?"hidden":[ht[t].clearIndicator,ht[t].clearIndicatorHover]),zI=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center transition-colors rounded",Rt[e].dropdownIndicator,r?"text-grey-200":[ht[t].dropdownIndicator,ht[t].dropdownIndicatorHover]),$I=({size:e,placement:t,hasMessage:r,color:n,hasGroup:i})=>{const s=t==="top";return le("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",Rt[e].menu)},jI=({size:e})=>le("overflow-y-auto",Rt[e].menuList,ht.primary.menuList),FI=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:i})=>le("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Rt[e].option,{[ht[t].optionDisabled]:r,[ht[t].optionSelected]:i&&!r,[ht[t].optionFocused]:n&&!i&&!r,[ht[t].option]:!i&&!n&&!r}),HI=({size:e})=>le(Rt[e].group),WI=({size:e,color:t})=>le(Rt[e].groupHeading,ht[t].groupHeading),BI=({size:e})=>le("text-grey-100",Rt[e].loadingMessage),VI=({size:e})=>le(Rt[e].noOptionsMessage,ht.primary.noOptionsMessage),Vm=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function Ss(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 Hf(e,t){return Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Hf(e,t)}function UI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hf(e,t)}var Ll={exports:{}},zd={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 Um;function qI(){if(Um)return Ge;Um=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 qm;function GI(){return qm||(qm=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 Oe=Z.$$typeof;switch(Oe){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 Oe}}case r:return Oe}}}var _=u,R=f,H=c,P=l,z=t,U=g,$=n,M=S,D=b,F=r,I=s,K=i,te=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.")),j(Z)||O(Z)===u}function j(Z){return O(Z)===f}function W(Z){return O(Z)===c}function ee(Z){return O(Z)===l}function Q(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function X(Z){return O(Z)===g}function ue(Z){return O(Z)===n}function ie(Z){return O(Z)===S}function ne(Z){return O(Z)===b}function de(Z){return O(Z)===r}function pe(Z){return O(Z)===s}function he(Z){return O(Z)===i}function xe(Z){return O(Z)===p}et.AsyncMode=_,et.ConcurrentMode=R,et.ContextConsumer=H,et.ContextProvider=P,et.Element=z,et.ForwardRef=U,et.Fragment=$,et.Lazy=M,et.Memo=D,et.Portal=F,et.Profiler=I,et.StrictMode=K,et.Suspense=te,et.isAsyncMode=ve,et.isConcurrentMode=j,et.isContextConsumer=W,et.isContextProvider=ee,et.isElement=Q,et.isForwardRef=X,et.isFragment=ue,et.isLazy=ie,et.isMemo=ne,et.isPortal=de,et.isProfiler=pe,et.isStrictMode=he,et.isSuspense=xe,et.isValidElementType=x,et.typeOf=O})()),et}var Gm;function Fw(){return Gm||(Gm=1,process.env.NODE_ENV==="production"?zd.exports=qI():zd.exports=GI()),zd.exports}/*
|
|
33
|
-
object-assign
|
|
34
|
-
(c) Sindre Sorhus
|
|
35
|
-
@license MIT
|
|
36
|
-
*/var $d,Zm;function ZI(){if(Zm)return $d;Zm=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 $d=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},$d}var jd,Km;function Np(){if(Km)return jd;Km=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jd=e,jd}var Ym,Xm;function Hw(){return Xm||(Xm=1,Ym=Function.call.bind(Object.prototype.hasOwnProperty)),Ym}var Fd,Jm;function KI(){if(Jm)return Fd;Jm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Np(),r={},n=Hw();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={})},Fd=i,Fd}var Hd,Qm;function YI(){if(Qm)return Hd;Qm=1;var e=Fw(),t=ZI(),r=Np(),n=Hw(),i=KI(),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 Hd=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(j){var W=j&&(f&&j[f]||j[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:P,oneOf:H,oneOfType:z,shape:M,exact:D};function S(j,W){return j===W?j!==0||1/j===1/W:j!==j&&W!==W}function v(j,W){this.message=j,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var W={},ee=0;function Q(ue,ie,ne,de,pe,he,xe){if(de=de||h,he=he||ne,xe!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=de+":"+ne;!W[Oe]&&ee<3&&(s("You are manually calling a React.PropTypes validation function for the `"+he+"` 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[Oe]=!0,ee++)}}return ie[ne]==null?ue?ie[ne]===null?new v("The "+pe+" `"+he+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+pe+" `"+he+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:j(ie,ne,de,pe,he)}var X=Q.bind(null,!1);return X.isRequired=Q.bind(null,!0),X}function m(j){function W(ee,Q,X,ue,ie,ne){var de=ee[Q],pe=K(de);if(pe!==j){var he=te(de);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+he+"` supplied to `"+X+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(W)}function w(){return y(l)}function x(j){function W(ee,Q,X,ue,ie){if(typeof j!="function")return new v("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var ne=ee[Q];if(!Array.isArray(ne)){var de=K(ne);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an array."))}for(var pe=0;pe<ne.length;pe++){var he=j(ne,pe,X,ue,ie+"["+pe+"]",r);if(he instanceof Error)return he}return null}return y(W)}function O(){function j(W,ee,Q,X,ue){var ie=W[ee];if(!c(ie)){var ne=K(ie);return new v("Invalid "+X+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return y(j)}function _(){function j(W,ee,Q,X,ue){var ie=W[ee];if(!e.isValidElementType(ie)){var ne=K(ie);return new v("Invalid "+X+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return y(j)}function R(j){function W(ee,Q,X,ue,ie){if(!(ee[Q]instanceof j)){var ne=j.name||h,de=ve(ee[Q]);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(W)}function H(j){if(!Array.isArray(j))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(ee,Q,X,ue,ie){for(var ne=ee[Q],de=0;de<j.length;de++)if(S(ne,j[de]))return null;var pe=JSON.stringify(j,function(he,xe){var Z=te(xe);return Z==="symbol"?String(xe):xe});return new v("Invalid "+ue+" `"+ie+"` of value `"+String(ne)+"` "+("supplied to `"+X+"`, expected one of "+pe+"."))}return y(W)}function P(j){function W(ee,Q,X,ue,ie){if(typeof j!="function")return new v("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an object."));for(var pe in ne)if(n(ne,pe)){var he=j(ne,pe,X,ue,ie+"."+pe,r);if(he instanceof Error)return he}return null}return y(W)}function z(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<j.length;W++){var ee=j[W];if(typeof ee!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(ee)+" at index "+W+"."),l}function Q(X,ue,ie,ne,de){for(var pe=[],he=0;he<j.length;he++){var xe=j[he],Z=xe(X,ue,ie,ne,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&pe.push(Z.data.expectedType)}var Oe=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new v("Invalid "+ne+" `"+de+"` supplied to "+("`"+ie+"`"+Oe+"."))}return y(Q)}function U(){function j(W,ee,Q,X,ue){return F(W[ee])?null:new v("Invalid "+X+" `"+ue+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return y(j)}function $(j,W,ee,Q,X){return new v((j||"React class")+": "+W+" type `"+ee+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function M(j){function W(ee,Q,X,ue,ie){var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));for(var pe in j){var he=j[pe];if(typeof he!="function")return $(X,ue,ie,pe,te(he));var xe=he(ne,pe,X,ue,ie+"."+pe,r);if(xe)return xe}return null}return y(W)}function D(j){function W(ee,Q,X,ue,ie){var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));var pe=t({},ee[Q],j);for(var he in pe){var xe=j[he];if(n(j,he)&&typeof xe!="function")return $(X,ue,ie,he,te(xe));if(!xe)return new v("Invalid "+ue+" `"+ie+"` key `"+he+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(ee[Q],null," ")+`
|
|
37
|
-
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Z=xe(ne,he,X,ue,ie+"."+he,r);if(Z)return Z}return null}return y(W)}function F(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(F);if(j===null||c(j))return!0;var W=p(j);if(W){var ee=W.call(j),Q;if(W!==j.entries){for(;!(Q=ee.next()).done;)if(!F(Q.value))return!1}else for(;!(Q=ee.next()).done;){var X=Q.value;if(X&&!F(X[1]))return!1}}else return!1;return!0;default:return!1}}function I(j,W){return j==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(j){var W=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":I(W,j)?"symbol":W}function te(j){if(typeof j>"u"||j===null)return""+j;var W=K(j);if(W==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return W}function Y(j){var W=te(j);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Hd}var Wd,e0;function XI(){if(e0)return Wd;e0=1;var e=Np();function t(){}function r(){}return r.resetWarningCache=t,Wd=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},Wd}var t0;function JI(){if(t0)return Ll.exports;if(t0=1,process.env.NODE_ENV!=="production"){var e=Fw(),t=!0;Ll.exports=YI()(e.isElement,t)}else Ll.exports=XI()();return Ll.exports}var QI=JI();const fe=fw(QI);var Bd={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 r0;function eN(){if(r0)return Ze;r0=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 n0;function tN(){return n0||(n0=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 Kt=ge.type;switch(Kt){case r:case i:case n:case f:case g:return Kt;default:var Or=Kt&&Kt.$$typeof;switch(Or){case c:case l:case u:case h:case p:case s:return Or;default:return at}}case t:return at}}}var R=l,H=s,P=e,z=u,U=r,$=h,M=p,D=t,F=i,I=n,K=f,te=g,Y=!1,ve=!1;function j(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 ee(ge){return _(ge)===l}function Q(ge){return _(ge)===s}function X(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function ue(ge){return _(ge)===u}function ie(ge){return _(ge)===r}function ne(ge){return _(ge)===h}function de(ge){return _(ge)===p}function pe(ge){return _(ge)===t}function he(ge){return _(ge)===i}function xe(ge){return _(ge)===n}function Z(ge){return _(ge)===f}function Oe(ge){return _(ge)===g}tt.ContextConsumer=R,tt.ContextProvider=H,tt.Element=P,tt.ForwardRef=z,tt.Fragment=U,tt.Lazy=$,tt.Memo=M,tt.Portal=D,tt.Profiler=F,tt.StrictMode=I,tt.Suspense=K,tt.SuspenseList=te,tt.isAsyncMode=j,tt.isConcurrentMode=W,tt.isContextConsumer=ee,tt.isContextProvider=Q,tt.isElement=X,tt.isForwardRef=ue,tt.isFragment=ie,tt.isLazy=ne,tt.isMemo=de,tt.isPortal=pe,tt.isProfiler=he,tt.isStrictMode=xe,tt.isSuspense=Z,tt.isSuspenseList=Oe,tt.isValidElementType=O,tt.typeOf=_})()),tt}var i0;function rN(){return i0||(i0=1,process.env.NODE_ENV==="production"?Bd.exports=eN():Bd.exports=tN()),Bd.exports}var o0=rN();const s0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,a0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",zl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return a0(r.overflowY,t)||a0(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},$l=(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(!s0(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,p=[];let h=e;for(;s0(h)&&f(h);){if(h=nN(h),h===g){p.push(h);break}h!=null&&h===document.body&&zl(h)&&!zl(document.documentElement)||h!=null&&zl(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:P,left:z}=(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,$=l==="center"?R+w/2-z+P:l==="end"?O+P:R-z;const M=[];for(let D=0;D<p.length;D++){const F=p[D],{height:I,width:K,top:te,right:Y,bottom:ve,left:j}=F.getBoundingClientRect();if(x>=0&&R>=0&&_<=S&&O<=b&&(F===g&&!zl(F)||x>=te&&_<=ve&&R>=j&&O<=Y))return M;const W=getComputedStyle(F),ee=parseInt(W.borderLeftWidth,10),Q=parseInt(W.borderTopWidth,10),X=parseInt(W.borderRightWidth,10),ue=parseInt(W.borderBottomWidth,10);let ie=0,ne=0;const de="offsetWidth"in F?F.offsetWidth-F.clientWidth-ee-X:0,pe="offsetHeight"in F?F.offsetHeight-F.clientHeight-Q-ue:0,he="offsetWidth"in F?F.offsetWidth===0?0:K/F.offsetWidth:0,xe="offsetHeight"in F?F.offsetHeight===0?0:I/F.offsetHeight:0;if(g===F)ie=$l(y,y+S,S,Q,ue,y+U,y+U+m,m),ne=l==="start"?$:l==="center"?$-b/2:l==="end"?$-b:$l(v,v+b,b,ee,X,v+$,v+$+w,w),ie=Math.max(0,ie+y),ne=Math.max(0,ne+v);else{ie=$l(te,ve,I,Q,ue+pe,U,U+m,m),ne=l==="start"?$-j-ee:l==="center"?$-(j+K/2)+de/2:l==="end"?$-Y+X+de:$l(j,Y,K,ee,X+de,$,$+w,w);const{scrollLeft:Z,scrollTop:Oe}=F;ie=xe===0?0:Math.max(0,Math.min(Oe+ie/xe,F.scrollHeight-I/xe+pe)),ne=he===0?0:Math.max(0,Math.min(Z+ne/he,F.scrollWidth-K/he+de)),U+=Oe-ie,$+=Z-ne}M.push({el:F,top:ie,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 l0(e){return typeof e=="function"?e:zn}function zn(){}function Ww(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 c0(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Mp(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 u0(){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 d0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Bw(e){return typeof e.type=="string"}function Vw(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 jl(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]=Wf(t,n)?t[n]:e[n],r},{})}function Wf(e,t){return e[t]!==void 0}function f0(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 Vd(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=Cc(c,t<0,r,n,i);return u===-1?e>=s?-1:e:u}function Cc(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?Cc(t?s-1:0,t,r,n):-1}function p0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(i){return i&&(c0(i,e,r)||n&&c0(i,r.document.activeElement,r))})}var Dp=zn;process.env.NODE_ENV!=="production"&&(Dp=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=Mp(function(e){Uw(e).textContent=""},500);function Uw(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 qw(e,t){if(!(!e||!t)){var r=Uw(t);r.textContent=e,fN(t)}}var Gw=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Zw=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Kw=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,uc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,dc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Yw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Xw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Jw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Qw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,ex=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,tx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,rx=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,nx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Bf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,ix=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,ox=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,sx=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,pN=Object.freeze({__proto__:null,blurButton:ix,blurInput:tx,changeInput:rx,clickButton:Bf,clickItem:ex,controlledPropUpdatedSelectedItem:ox,itemMouseEnter:Kw,keyDownArrowDown:dc,keyDownArrowUp:uc,keyDownEnd:Qw,keyDownEnter:Xw,keyDownEscape:Yw,keyDownHome:Jw,keyDownSpaceButton:nx,mouseUp:Zw,touchEnd:sx,unknown:Gw}),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=jl(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=jl(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(P){var z;P=s.getState(P);var U=H?w(P):w;U=s.props.stateReducer(P,U),O=U.hasOwnProperty("selectedItem");var $={};return O&&U.selectedItem!==P.selectedItem&&(_=U.selectedItem),(z=U).type||(z.type=Gw),Object.keys(U).forEach(function(M){P[M]!==U[M]&&(R[M]=U[M]),M!=="type"&&(U[M],Wf(s.props,M)||($[M]=U[M]))}),H&&U.hasOwnProperty("inputValue")&&s.props.onInputValueChange(U.inputValue,wt({},s.getStateAndHelpers(),U)),$},function(){l0(x)();var P=Object.keys(R).length>1;P&&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,P=_.ref,z=Ss(_,hN),U=x===void 0?{}:x,$=U.suppressRefError,M=$===void 0?!1:$;s.getRootProps.called=!0,s.getRootProps.refKey=H,s.getRootProps.suppressRefError=M;var D=s.getState(),F=D.isOpen;return wt((O={},O[H]=u0(P,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),z)},s.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?5:1;this.moveHighlightedIndex(O,{type:dc})}else this.internalSetState({isOpen:!0,type:dc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),H=R.highlightedIndex,P=Vd(H,1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:dc})}})},ArrowUp: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,P=Vd(H,-1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:uc})}})},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:Xw})}}},Escape:function(w){w.preventDefault(),this.reset(wt({type:Yw},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=wt({},s.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:nx})}}),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=Cc(0,!1,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Jw})}}},End:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Cc(_-1,!0,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Qw})}}}}),s.getToggleButtonProps=function(w){var x=w===void 0?{}:w,O=x.onClick;x.onPress;var _=x.onKeyDown,R=x.onKeyUp,H=x.onBlur,P=Ss(x,gN),z=s.getState(),U=z.isOpen,$={onClick:cn(O,s.buttonHandleClick),onKeyDown:cn(_,s.buttonHandleKeyDown),onKeyUp:cn(R,s.buttonHandleKeyUp),onBlur:cn(H,s.buttonHandleBlur)},M=P.disabled?{}:$;return wt({type:"button",role:"button","aria-label":U?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,P)},s.buttonHandleKeyUp=function(w){w.preventDefault()},s.buttonHandleKeyDown=function(w){var x=f0(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:Bf}):s.internalSetTimeout(function(){return s.toggleMenu({type:Bf})})},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:ix})}})},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 P=Ss(x,vN),z,U={};z="onChange";var $=s.getState(),M=$.inputValue,D=$.isOpen,F=$.highlightedIndex;if(!P.disabled){var I;U=(I={},I[z]=cn(R,H,s.inputHandleChange),I.onKeyDown=cn(O,s.inputHandleKeyDown),I.onBlur=cn(_,s.inputHandleBlur),I)}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":P&&P["aria-label"]?void 0:s.labelId,autoComplete:"off",value:M,id:s.inputId},U,P)},s.inputHandleKeyDown=function(w){var x=f0(w);x&&s.inputKeyDownHandlers[x]&&s.inputKeyDownHandlers[x].call(s,w)},s.inputHandleChange=function(w){s.internalSetState({type:rx,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:tx})}})},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,P=_.ref,z=Ss(_,mN),U=x===void 0?{}:x,$=U.suppressRefError,M=$===void 0?!1:$;return s.getMenuProps.called=!0,s.getMenuProps.refKey=H,s.getMenuProps.suppressRefError=M,wt((O={},O[H]=u0(P,s.menuRef),O.role="listbox",O["aria-labelledby"]=z&&z["aria-label"]?void 0:s.labelId,O.id=s.menuId,O),z)},s.getItemProps=function(w){var x,O=w===void 0?{}:w,_=O.onMouseMove,R=O.onMouseDown,H=O.onClick;O.onPress;var P=O.index,z=O.item,U=z===void 0?process.env.NODE_ENV==="production"?void 0:lN("getItemProps","item"):z,$=Ss(O,bN);P===void 0?(s.items.push(U),P=s.items.indexOf(U)):s.items[P]=U;var M="onClick",D=H,F=(x={onMouseMove:cn(_,function(){P!==s.getState().highlightedIndex&&(s.setHighlightedIndex(P,{type:Kw}),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(P,{type:ex})}),x),I=$.disabled?{onMouseDown:F.onMouseDown}:F;return wt({id:s.getItemId(P),role:"option","aria-selected":s.getState().highlightedIndex===P},I,$)},s.clearItems=function(){s.items=[]},s.reset=function(w,x){w===void 0&&(w={}),w=jl(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=jl(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),l0(x)()})},s.openMenu=function(w){s.internalSetState({isOpen:!0},w)},s.closeMenu=function(w){s.internalSetState({isOpen:!1},w)},s.updateStatus=Mp(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=_,qw(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}UI(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=Vd(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,P=this.clearSelection,z=this.clearItems,U=this.reset,$=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:P,clearItems:z,setItemCount:$,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&&h0(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=p0(p.target,[i._rootNode,i._menuNode],i.props.environment);!h&&i.getState().isOpen&&i.reset({type:Zw},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},c=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},f=function(p){var h=p0(p.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!h&&i.getState().isOpen&&i.reset({type:sx},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"&&(Dp(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&h0(this._menuNode,this.getMenuProps)),Wf(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:ox,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=d0(this.props.children,zn);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=d0(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(Bw(s))return N.cloneElement(s,this.getRootProps(Vw(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:zn,onInputValueChange:zn,onUserAction:zn,onChange:zn,onSelect:zn,onOuterClick:zn,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:Ww},e.stateChangeTypes=pN,e})();process.env.NODE_ENV!=="production"&&(yN.propTypes={children:fe.func,defaultHighlightedIndex:fe.number,defaultIsOpen:fe.bool,initialHighlightedIndex:fe.number,initialSelectedItem:fe.any,initialInputValue:fe.string,initialIsOpen:fe.bool,getA11yStatusMessage:fe.func,itemToString:fe.func,onChange:fe.func,onSelect:fe.func,onStateChange:fe.func,onInputValueChange:fe.func,onUserAction:fe.func,onOuterClick:fe.func,selectedItemChanged:fe.func,stateReducer:fe.func,itemCount:fe.number,id:fe.string,environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),suppressRefError:fe.bool,scrollIntoView:fe.func,selectedItem:fe.any,isOpen:fe.bool,inputValue:fe.string,highlightedIndex:fe.number,labelId:fe.string,inputId:fe.string,menuId:fe.string,getItemId:fe.func});function h0(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=!Bw(e);i&&!n&&!o0.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+'"'),!o0.isForwardRef(e)&&!Vw(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}Mp(function(e,t){qw(e,t)},200);var ia={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:xN,scrollIntoView:Ww,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 fc={environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),itemToString:fe.func,itemToKey:fe.func,stateReducer:fe.func},ax=wt({},fc,{getA11yStatusMessage:fe.func,highlightedIndex:fe.number,defaultHighlightedIndex:fe.number,initialHighlightedIndex:fe.number,isOpen:fe.bool,defaultIsOpen:fe.bool,initialIsOpen:fe.bool,selectedItem:fe.any,initialSelectedItem:fe.any,defaultSelectedItem:fe.any,id:fe.string,labelId:fe.string,menuId:fe.string,getItemId:fe.func,toggleButtonId:fe.string,onSelectedItemChange:fe.func,onHighlightedIndexChange:fe.func,onStateChange:fe.func,onIsOpenChange:fe.func,scrollIntoView:fe.func}),EN=$o($o({},ax),{items:fe.array.isRequired,isItemDisabled:fe.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({},ax,{items:fe.array.isRequired,isItemDisabled:fe.func,inputValue:fe.string,defaultInputValue:fe.string,initialInputValue:fe.string,inputId:fe.string,onInputValueChange:fe.func});process.env.NODE_ENV;wt({},ia,{isItemDisabled:function(){return!1}});var ON={stateReducer:fc.stateReducer,itemToKey:fc.itemToKey,environment:fc.environment,selectedItems:fe.array,initialSelectedItems:fe.array,defaultSelectedItems:fe.array,getA11yStatusMessage:fe.func,activeIndex:fe.number,initialActiveIndex:fe.number,defaultActiveIndex:fe.number,onActiveIndexChange:fe.func,onSelectedItemsChange:fe.func,keyNavigationNext:fe.string,keyNavigationPrevious:fe.string};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}=Mt(),S=n??u,v=r??p.isOpen;return A.jsx("div",{ref:s,className:le(RI({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:le(CI({isMulti:r}),e),children:t}),pc=N.forwardRef(({isHidden:e,inputClassName:t,className:r,...n},i)=>{const{size:s,color:l}=Mt();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","data-qui":"SelectSearchInput",className:le(PI({size:s,color:l}),t,e?"":r),...n})}),TN=({className:e,children:t})=>{const{size:r,color:n}=Mt();return A.jsx("div",{className:le(II({size:r,color:n}),e),children:t})},RN=({className:e,children:t,data:r,isDisabled:n})=>{const{size:i,color:s,getOptionLabel:l}=Mt();return A.jsx("div",{className:le(NI({size:i,color:s,isDisabled:n}),e),children:t||l(r)})},lx=({className:e,children:t,data:r,isDisabled:n,isFocused:i,onRemove:s})=>{const{size:l,color:c,downshift:u,getOptionLabel:f}=Mt(),g=()=>{s?s(r):u.removeItem(r)};return A.jsxs("div",{className:le(MI({size:l,color:c,isDisabled:n,isFocused:i}),e),children:[A.jsx("div",{className:DI({size:l}),children:t||f(r)}),!n&&A.jsx("div",{className:LI({size:l,color:c,isDisabled:!1}),onClick:g,children:A.jsx(Wo,{className:"w-3 h-3"})})]})},cx=({color:e,className:t,children:r,onClick:n,isDisabled:i,...s})=>{const{size:l,color:c,isDisabled:u,downshift:f}=Mt(),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:le(jw({size:l,color:e||c,isDisabled:g}),t),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:r||A.jsx(M5,{})})},CN=({className:e,children:t,onClick:r,isDisabled:n,...i})=>{const{size:s,color:l,isDisabled:c,downshift:u}=Mt(),f=n??c,g=u.inputValue.length>0&&u.isSearchable;if(f||!g)return null;const p=h=>{f||(h.preventDefault(),h.stopPropagation(),r?r(h):(u.setInputValue(""),u.clearSelection()))};return A.jsx("div",{"data-qui":"SelectIndicator",className:le(jw({size:s,color:l,isDisabled:f}),"cursor-pointer",e),onClick:p,onMouseDown:h=>{h.preventDefault(),h.stopPropagation()},role:"button",tabIndex:-1,"aria-label":"Clear selection",...i,children:t||A.jsx(Wo,{})})},ux=N.forwardRef(({color:e,className:t,children:r,onClick:n,isDisabled:i,...s},l)=>{const{size:c,color:u,isDisabled:f,downshift:g}=Mt(),p=i??f,h=g.isOpen,b=v=>{p||(v.preventDefault(),v.stopPropagation(),n?n(v):g.toggleMenu())},S=v=>{v.preventDefault(),v.stopPropagation()};return A.jsx("div",{ref:l,"data-qui":"SelectIndicator",className:le(zI({size:c,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:S,onMouseDown:b,role:"button",tabIndex:-1,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,...s,children:r||A.jsx(ac,{className:le("transition-transform duration-200",{"rotate-180":h})})})}),PN=N.forwardRef(({className:e,children:t,placement:r,...n},i)=>{const{size:s,hasMessage:l,color:c,hasGroup:u}=Mt();return A.jsx("div",{"data-qui":"SelectMenu",ref:i,className:le($I({size:s,placement:r,hasMessage:l,color:c,hasGroup:u}),e),...n,children:t})}),IN=N.forwardRef(({className:e,children:t,maxHeight:r=300,totalHeight:n,...i},s)=>{const{size:l}=Mt();return A.jsx(Tp,{scrollableNodeProps:{ref:s},className:le(jI({size:l}),e),style:{maxHeight:r},...i,children:n!==void 0?A.jsx("div",{style:{height:n,position:"relative",width:"100%"},children:t}):t})}),hc=({className:e,children:t,data:r,isDisabled:n,isFocused:i,isSelected:s,innerProps:l,optionClassName:c,...u})=>{const{size:f,color:g,getOptionLabel:p}=Mt();return A.jsx("div",{"data-qui":"SelectOption",className:le(FI({size:f,color:g,isDisabled:n,isFocused:i,isSelected:s}),c,e),...l,...u,children:t??p(r)})},dx=({className:e,children:t,data:r,label:n,renderGroupHeading:i})=>{const{size:s}=Mt();return A.jsxs("div",{"data-qui":"SelectOptionGroup",className:le(HI({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}=Mt();return A.jsx("div",{className:le(WI({size:r,color:n}),e),children:t})},Ud=({className:e,children:t,inputValue:r})=>{const{size:n}=Mt();return A.jsx("div",{className:le(VI({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}=Mt();return N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]),A.jsx("div",{ref:n,"data-qui":"SelectGroup",className:le(AI({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}=Mt(),g=r||f,p=TI({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"SelectIcon",className:le(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",{"data-qui":"SelectPortal",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},Es=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,isLoading:l=!1,isRequired:c=!1,hideIndicators:u=!1,hideDropdownIndicator:f=!1,searchPlacement:g="trigger",hideSelectedOptions:p=!1,onFocus:h,onBlur:b,renderMenuHeader:S,formatOptionLabel:v,renderOption:y,optionClassName:m,renderValue:w,renderGroupHeading:x,inputRef:O,controlShouldRenderValue:_=!0,name:R,id:H,onSelectionComplete:P,"aria-label":z,"aria-labelledby":U,"aria-describedby":$,children:M,usePortal:D=!1,virtualizeThreshold:F=100,className:I,inputClassName:K,...te},Y)=>{const{size:ve,isInvalid:j,isDisabled:W,hasGroup:ee,downshift:Q,options:X=[],getOptionLabel:ue,getOptionValue:ie,isOptionDisabled:ne,menuPlacement:de,setMenuPlacement:pe,menuVisible:he,setMenuVisible:xe,inputClassName:Z}=Mt(),Oe=K||Z,ge=N.useMemo(()=>{if(y)return y;if(v)return({data:He})=>v(He)},[y,v]),at=N.useRef(null),Kt=O||at,Or=N.useRef(null),ur=N.useRef(null),bi=N.useRef(null),{isOpen:xt,openMenu:kr,selectedItem:Lt,inputValue:Ct,highlightedIndex:Ut,getToggleButtonProps:yi,getMenuProps:en,getInputProps:wi,getItemProps:Ar,isMulti:Wr,isSearchable:dr,multipleSelection:Ko}=Q,{getDropdownProps:Yo}=Ko;N.useLayoutEffect(()=>{if(!xt||!Or.current)return;const He=Or.current.getBoundingClientRect(),St=window.innerHeight-He.bottom;pe(St<300?"top":"bottom")},[xt,pe]),N.useLayoutEffect(()=>{const He=xt&&!(r&&Q.filteredItems.length===0);return xe(He),()=>xe(!1)},[xt,r,Q.filteredItems.length,xe]);const tr=Wr?Q.selectedItems??[]:Lt?[Lt]:[],xi=tr.length>0,Xo=s&&!!Ct&&!W&&!u,Ki=i&&(xi||!!Ct)&&!W&&!u,Yi=!f&&!u,Jo=!xi&&(!dr||!Ct)||!_,Ia={},Na={};Object.entries(te).forEach(([He,St])=>{He.startsWith("data-")||He.startsWith("aria-")||He==="role"?Ia[He]=St:Na[He]=St});const Ma=N.useMemo(()=>Es([Or,Y]),[Y]),Qo=en({},{suppressRefError:!0}),qn=Yo({preventKeyAction:xt}),es={ref:Kt,disabled:W,required:c,name:R,id:H,"aria-label":z,"aria-labelledby":U,"aria-describedby":$,"aria-invalid":j,onFocus:h,onBlur:b,...Na},pu=dr?(wi==null?void 0:wi({...es,...qn}))??es:{...es,...qn},{ref:Da,...ts}=pu,Xi=N.useMemo(()=>Es([Da]),[Da]),hu=He=>tr.some(St=>ie(St)===ie(He)),La=He=>p?He.filter(St=>!hu(St)):He,gu=He=>p?He.map(St=>({...St,options:La(St.options)})).filter(St=>St.options.length>0):He,tn=Vm(X)?[]:La(Q.filteredItems),vu={sm:22,md:28,lg:36}[ve]??28,On=tn.length>=F,Ji=OI({count:On?tn.length:0,getScrollElement:()=>bi.current,estimateSize:()=>vu,overscan:5});N.useEffect(()=>{On&&xt&&Ut>=0&&Ut<tn.length&&Ji.scrollToIndex(Ut,{align:"auto"})},[Ut,On,xt]);const{registerOnSelectionComplete:za}=Mt();N.useEffect(()=>{if(P)return za(P)},[P,za]);const mu=dr?{}:yi({disabled:W,...qn,ref:Es([Ma,qn.ref])});return A.jsxs("div",{className:le({relative:!ee,"flex-1 min-w-0":ee}),children:[A.jsxs(kN,{"data-qui":"SelectControl",className:I,...dr?{ref:Es([Ma,qn.ref])}:mu,...Ia,isFocused:he,isDisabled:W,onClick:He=>{He.defaultPrevented||(dr?kr():Q.toggleMenu())},children:[M||A.jsxs(AN,{isMulti:Wr,children:[Wr&&_&&tr.map((He,St)=>A.jsx(lx,{data:He,index:St,isDisabled:W,children:w?w(He):void 0},ie(He))),!Wr&&xi&&_&&!dr&&A.jsx("div",{className:"flex items-center gap-2",children:A.jsx(RN,{data:tr[0],isDisabled:W,children:w?w(tr[0]):ue(tr[0])})}),dr&&g==="trigger"?A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Oe,placeholder:e}):A.jsxs(A.Fragment,{children:[A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Oe,isHidden:!0,readOnly:!0,value:tr.map(He=>ie(He)).join(",")}),Jo&&A.jsx(TN,{children:e})]})]}),A.jsxs("div",{className:le("flex items-center size-fit gap-1",{hidden:!Ki&&!Yi}),children:[Xo&&A.jsx(CN,{}),Ki&&A.jsx(cx,{}),Yi&&A.jsx(ux,{...dr?yi({disabled:W,"aria-label":xt?"Close menu":"Open menu"}):{}})]})]}),!xt&&A.jsx("div",{ref:Qo.ref,style:{display:"none"},"aria-hidden":"true"}),A.jsx(LN,{isOpen:xt,usePortal:D,controlRef:Or,children:(()=>{const{ref:He,...St}=Qo,$a=Es([ur,He]);return r&&Q.filteredItems.length===0?A.jsx("div",{...St,style:{display:"none"},"aria-hidden":"true"}):A.jsxs(PN,{ref:$a,...St,placement:de,children:[S&&S(Q),dr&&g==="menu"&&A.jsx("div",{className:"p-2",children:A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Oe,autoFocus:!0,placeholder:e,onClick:Pt=>Pt.stopPropagation()})}),A.jsx(IN,{ref:bi,totalHeight:On?Ji.getTotalSize():void 0,children:l?A.jsx("div",{className:BI({size:ve}),children:n}):Q.filteredItems.length===0?A.jsx(Ud,{inputValue:Ct,children:typeof t=="function"?t(Ct):t}):Vm(X)?(()=>{const Pt=gu(X);return Pt.length===0?A.jsx(Ud,{inputValue:Ct,children:typeof t=="function"?t(Ct):t}):Pt.map((zt,kn)=>A.jsx(dx,{data:zt,label:zt.label,options:zt.options,renderGroupHeading:x,children:zt.options.map(Yt=>{const rn=ie(Yt),nn=tr.some(bu=>ie(bu)===rn),on=Q.filteredItems.indexOf(Yt),Gn=Ut===on,Qi=ne(Yt),eo=Ar({item:Yt,index:on});return A.jsx(hc,{...eo,data:Yt,isDisabled:Qi,isFocused:Gn,isSelected:nn,optionClassName:m,children:ge?ge({data:Yt,isFocused:Gn,isSelected:nn,isDisabled:Qi}):void 0},`${rn}-${on}`)})},`${zt.label}-${kn}`))})():tn.length===0?A.jsx(Ud,{inputValue:Ct,children:typeof t=="function"?t(Ct):t}):On?Ji.getVirtualItems().map(Pt=>{const zt=tn[Pt.index],kn=ie(zt),Yt=tr.some(Qi=>ie(Qi)===kn),rn=Q.filteredItems.indexOf(zt),nn=Ut===rn,on=ne(zt),Gn=Ar({item:zt,index:rn});return A.jsx("div",{"data-index":Pt.index,ref:Ji.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${Pt.start}px)`},children:A.jsx(hc,{...Gn,data:zt,isDisabled:on,isFocused:nn,isSelected:Yt,optionClassName:m,children:ge?ge({data:zt,isFocused:nn,isSelected:Yt,isDisabled:on}):void 0})},Pt.key)}):tn.map(Pt=>{const zt=ie(Pt),kn=tr.some(Gn=>ie(Gn)===zt),Yt=Q.filteredItems.indexOf(Pt),rn=Ut===Yt,nn=ne(Pt),on=Ar({item:Pt,index:Yt});return A.jsx(hc,{...on,data:Pt,isDisabled:nn,isFocused:rn,isSelected:kn,optionClassName:m,children:ge?ge({data:Pt,isFocused:rn,isSelected:kn,isDisabled:nn}):void 0},`${zt}-${Yt}`)})})]})})()})]})});MN.displayName="Select.Group";DN.displayName="Select.Icon";pc.displayName="Select.Input";lx.displayName="Select.MultiValue";cx.displayName="Select.ClearIndicator";ux.displayName="Select.DropdownIndicator";hc.displayName="Select.Option";dx.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})=>le("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 qd={exports:{}};/*!
|
|
54
|
-
Copyright (c) 2018 Jed Watson.
|
|
55
|
-
Licensed under the MIT License (MIT), see
|
|
56
|
-
http://jedwatson.github.io/classnames
|
|
57
|
-
*/var g0;function fx(){return g0||(g0=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})()})(qd)),qd.exports}var HN=fx();const st=Ky(HN);function Li(){return Li=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},Li.apply(this,arguments)}const WN=["children","options"],v0=["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"}),m0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},BN=["style","script","pre"],VN=["src","href","data","formAction","srcDoc","action"],UN=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qN=/\n{2,}$/,b0=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GN=/^ *> ?/gm,ZN=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,KN=/^ {2,}\n/,YN=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,y0=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,w0=/^(?: {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)\]/,x0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,E0=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Gd=/^ *(?!<[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,_0=/^<!--[\s\S]*?(?:-->)/,sM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Zd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aM=/^\{.*\}$/,lM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cM=/^<([^ >]+[:@\/][^ >]+)>/,uM=/-([a-z])?/gi,O0=/^(\|.*)\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=/^ *-+: *$/,Kc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Yc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",xM=RegExp(`^([*_])\\1${Kc(1)}${Yc}\\1\\1(?!\\1)`),SM=RegExp(`^([*_])${Kc(0)}${Yc}\\1(?!\\1)`),EM=RegExp(`^(==)${Kc(0)}${Yc}\\1`),_M=RegExp(`^(~~)${Kc(0)}${Yc}\\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]*)/,PM=/(?:^|\n)( *)$/,Lp="(?:\\d+\\.)",zp="(?:[*+-])";function px(e){return"( *)("+(e===1?Lp:zp)+") +"}const hx=px(1),gx=px(2);function vx(e){return RegExp("^"+(e===1?hx:gx))}const IM=vx(1),NM=vx(2);function mx(e){return RegExp("^"+(e===1?hx:gx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Lp:zp)+" )[^\\n]*)*(\\n|$)","gm")}const MM=mx(1),DM=mx(2);function bx(e){const t=e===1?Lp:zp;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const yx=bx(1),wx=bx(2);function k0(e,t){const r=t===1,n=r?yx:wx,i=r?MM:DM,s=r?IM:NM;return{t:l=>s.test(l),o:jo(function(l,c){const u=PM.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(`
|
|
5
|
+
*/var kh;function gv(){return kh||(kh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(a=s(a,i(c)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var c in a)t.call(a,c)&&a[c]&&(u=s(u,c));return u}function s(a,u){return u?a?a+" "+u:a+u:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(El)),El.exports}var tT=gv();const He=fv(tT);function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},jn.apply(this,arguments)}const rT=["children","options"],$h=["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"}),Ih={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},nT=["style","script","pre"],iT=["src","href","data","formAction","srcDoc","action"],oT=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,sT=/\n{2,}$/,Lh=/^(\s*>[\s\S]*?)(?=\n\n|$)/,aT=/^ *> ?/gm,uT=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,lT=/^ {2,}\n/,cT=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Mh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Fh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,fT=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,dT=/^(?:\n *)*\n/,pT=/\r\n?/g,hT=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,gT=/^\[\^([^\]]+)]/,mT=/\f/g,vT=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,yT=/^\s*?\[(x|\s)\]/,Dh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Nh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jh=/^([^\n]+)\n *(=|-)\2{2,} *\n/,_l=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,bT=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,zh=/^<!--[\s\S]*?(?:-->)/,wT=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ol=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,xT=/^\{.*\}$/,ST=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ET=/^<([^ >]+[:@\/][^ >]+)>/,_T=/-([a-z])?/gi,Wh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,OT=/^[^\n]+(?: \n|\n{2,})/,AT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,TT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,RT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,PT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,CT=/\t/g,kT=/(^ *\||\| *$)/g,$T=/^ *:-+: *$/,IT=/^ *:-+ *$/,LT=/^ *-+: *$/,Ma=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Fa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",MT=RegExp(`^([*_])\\1${Ma(1)}${Fa}\\1\\1(?!\\1)`),FT=RegExp(`^([*_])${Ma(0)}${Fa}\\1(?!\\1)`),DT=RegExp(`^(==)${Ma(0)}${Fa}\\1`),NT=RegExp(`^(~~)${Ma(0)}${Fa}\\1`),jT=/^(:[a-zA-Z0-9-_]+:)/,zT=/^\\([^0-9A-Za-z\s])/,WT=/\\([^0-9A-Za-z\s])/g,UT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,BT=/^\n+/,HT=/^([ \t]*)/,qT=/(?:^|\n)( *)$/,Xc="(?:\\d+\\.)",Yc="(?:[*+-])";function mv(e){return"( *)("+(e===1?Xc:Yc)+") +"}const vv=mv(1),yv=mv(2);function bv(e){return RegExp("^"+(e===1?vv:yv))}const ZT=bv(1),GT=bv(2);function wv(e){return RegExp("^"+(e===1?vv:yv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Xc:Yc)+" )[^\\n]*)*(\\n|$)","gm")}const KT=wv(1),VT=wv(2);function xv(e){const t=e===1?Xc:Yc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Sv=xv(1),Ev=xv(2);function Uh(e,t){const r=t===1,i=r?Sv:Ev,s=r?KT:VT,a=r?ZT:GT;return{t:u=>a.test(u),o:Ai(function(u,c){const f=qT.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(u=f[1]+u):null}),i:1,u(u,c,f){const m=r?+u[2]:void 0,y=u[0].replace(sT,`
|
|
6
|
+
`).match(s);let p=!1;return{items:y.map(function(g,v){const x=a.exec(g)[0].length,d=RegExp("^ {1,"+x+"}","gm"),w=g.replace(d,"").replace(a,""),h=v===y.length-1,S=w.indexOf(`
|
|
59
7
|
|
|
60
|
-
`)!==-1||
|
|
8
|
+
`)!==-1||h&&p;p=S;const E=f.inline,R=f.list;let O;f.list=!0,S?(f.inline=!1,O=To(w)+`
|
|
61
9
|
|
|
62
|
-
`):(
|
|
63
|
-
`).map(function(
|
|
10
|
+
`):(f.inline=!0,O=To(w));const C=c(O,f);return f.inline=E,f.list=R,C}),ordered:r,start:m}},l:(u,c,f)=>e(u.ordered?"ol":"ul",{key:f.key,start:u.type==="20"?u.start:void 0},u.items.map(function(m,y){return e("li",{key:y},c(m,f))}))}}const XT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),YT=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Bh(e){return typeof e=="string"}function To(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function la(e,t){return e.startsWith(t)}function JT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(la(e,r[i]))return!0;return!1}return r(e,t)}function Gi(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 QT(e){return LT.test(e)?"right":$T.test(e)?"center":IT.test(e)?"left":null}function Hh(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],u="";function c(){if(!u)return;const f=a[a.length-1];f.push.apply(f,t(u,r)),u=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,m,y)=>{f.trim()==="|"&&(c(),i)?m!==0&&m!==y.length-1&&a.push([]):u+=f}),c(),r.inTable=s,a}function eR(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(kT,"").split("|").map(QT):[],s=e[3]?(function(u,c,f){return u.trim().split(`
|
|
11
|
+
`).map(function(m){return Hh(m,c,f,!0)})})(e[3],t,r):[],a=Hh(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:i,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function qh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ai(e){return e.inline=1,e}function Mn(e){return Ai(function(t,r){return r.inline?e.exec(t):null})}function pn(e){return Ai(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Zr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Us(e){return Ai(function(t){return e.exec(t)})}const tR=/(javascript|vbscript|data(?!:image)):/i;function rR(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(tR.test(t))return null}catch{return null}return e}function Sr(e){return e&&e.replace(WT,"$1")}function ca(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function nR(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function iR(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const Al=(e,t,r)=>({children:ca(t,e[2],r)});function Tl(){return{}}function Rl(){return null}function oR(...e){return e.filter(Boolean).join(" ")}function Pl(e,t,r){let i=e;const s=t.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||r}function sR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?jn({},Ih,t.namedCodesToUnicode):Ih;const r=t.slugify||Gi,i=t.sanitizer||rR,s=t.createElement||$.createElement,a=[Lh,Mh,Fh,t.enforceAtxHeadings?Nh:Dh,jh,Wh,Sv,Ev],u=[...a,OT,_l,zh,Ol];function c(h,S){for(let E=0;E<h.length;E++)if(h[E].test(S))return!0;return!1}function f(h,S,...E){const R=Pl(t.overrides,h+".props",{});return s((function(O,C){const U=Pl(C,O);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:Pl(C,O+".component",O):O})(h,t.overrides),jn({},S,R,{className:oR(S==null?void 0:S.className,R.className)||void 0}),...E)}function m(h){h=h.replace(vT,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=PT.test(h)===!1);const E=d(x(S?h:To(h).replace(BT,"")+`
|
|
64
12
|
|
|
65
|
-
`,{inline:
|
|
66
|
-
`);return
|
|
67
|
-
`],o:
|
|
68
|
-
`},21:{o:
|
|
13
|
+
`,{inline:S}));for(;Bh(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?f("span",{key:"outer"},O):O;O=null}return s(R,{key:"outer"},O)}function y(h,S){if(!S||!S.trim())return null;const E=S.match(oT);return E?E.reduce(function(R,O){const C=O.indexOf("=");if(C!==-1){const U=(function(N){return N.indexOf("-")!==-1&&N.match(wT)===null&&(N=N.replace(_T,function(L,B){return B.toUpperCase()})),N})(O.slice(0,C)).trim(),M=(function(N){const L=N[0];return(L==='"'||L==="'")&&N.length>=2&&N[N.length-1]===L?N.slice(1,-1):N})(O.slice(C+1).trim()),D=$h[U]||U;if(D==="ref")return R;const q=R[D]=(function(N,L,B,Z){return L==="style"?(function(k){const Q=[];let J="",re=!1,ce=!1,G="";if(!k)return Q;for(let ne=0;ne<k.length;ne++){const ue=k[ne];if(ue!=='"'&&ue!=="'"||re||(ce?ue===G&&(ce=!1,G=""):(ce=!0,G=ue)),ue==="("&&J.endsWith("url")?re=!0:ue===")"&&re&&(re=!1),ue!==";"||ce||re)J+=ue;else{const ie=J.trim();if(ie){const he=ie.indexOf(":");if(he>0){const fe=ie.slice(0,he).trim(),ve=ie.slice(he+1).trim();Q.push([fe,ve])}}J=""}}const te=J.trim();if(te){const ne=te.indexOf(":");if(ne>0){const ue=te.slice(0,ne).trim(),ie=te.slice(ne+1).trim();Q.push([ue,ie])}}return Q})(B).reduce(function(k,[Q,J]){return k[Q.replace(/(-[a-z])/g,re=>re[1].toUpperCase())]=Z(J,N,Q),k},{}):iT.indexOf(L)!==-1?Z(Sr(B),N,L):(B.match(xT)&&(B=Sr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(h,U,M,i);typeof q=="string"&&(_l.test(q)||Ol.test(q))&&(R[D]=m(q.trim()))}else O!=="style"&&(R[$h[O]||O]=!0);return R},{}):null}const p=[],g={},v={0:{t:[">"],o:Zr(Lh),i:1,u(h,S,E){const[,R,O]=h[0].replace(aT,"").match(uT);return{alert:R,children:S(O,E)}},l(h,S,E){const R={key:E.key};return h.alert&&(R.className="markdown-alert-"+r(h.alert.toLowerCase(),Gi),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(h.children,E))}},1:{t:[" "],o:Us(lT),i:1,u:Tl,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Zr(cT),i:1,u:Tl,l:(h,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:Zr(Fh),i:0,u:h=>({lang:void 0,text:Sr(To(h[0].replace(/^ {4}/gm,"")))}),l:(h,S,E)=>f("pre",{key:E.key},f("code",jn({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:Zr(Mh),i:0,u:h=>({attrs:y("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:pn(fT),i:3,u:h=>({text:Sr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:Zr(hT),i:0,u:h=>(p.push({footnote:h[2],identifier:h[1]}),{}),l:Rl},7:{t:["[^"],o:Mn(gT),i:1,u:h=>({target:"#"+r(h[1],Gi),text:h[1]}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href")},f("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:Mn(yT),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,S,E)=>f("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Zr(t.enforceAtxHeadings?Nh:Dh),i:1,u:(h,S,E)=>({children:ca(S,h[2],E),id:r(h[2],Gi),level:h[1].length}),l:(h,S,E)=>f("h"+h.level,{id:h.id,key:E.key},S(h.children,E))},10:{t:h=>{const S=h.indexOf(`
|
|
14
|
+
`);return S>0&&S<h.length-1&&(h[S+1]==="="||h[S+1]==="-")},o:Zr(jh),i:1,u:(h,S,E)=>({children:ca(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Us(_l),i:1,u(h,S,E){const[,R]=h[3].match(HT),O=RegExp("^"+R,"gm"),C=h[3].replace(O,""),U=c(u,C)?iR:ca,M=h[1].toLowerCase(),D=nT.indexOf(M)!==-1,q=(D?M:h[1]).trim(),N={attrs:y(q,h[2]),noInnerParse:D,tag:q};if(E.inAnchor=E.inAnchor||M==="a",D)N.text=h[3];else{const L=E.inHTML;E.inHTML=!0,N.children=U(S,C,E),E.inHTML=L}return E.inAnchor=!1,N},l:(h,S,E)=>f(h.tag,jn({key:E.key},h.attrs),h.text||(h.children?S(h.children,E):""))},13:{t:["<"],o:Us(Ol),i:1,u(h){const S=h[1].trim();return{attrs:y(S,h[2]||""),tag:S}},l:(h,S,E)=>f(h.tag,jn({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:Us(zh),i:1,u:()=>({}),l:Rl},14:{t:["!["],o:pn(YT),i:1,u:h=>({alt:Sr(h[1]),target:Sr(h[2]),title:Sr(h[3])}),l:(h,S,E)=>f("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:i(h.target,"img","src")})},15:{t:["["],o:Mn(XT),i:3,u:(h,S,E)=>({children:nR(S,h[1],E),target:Sr(h[2]),title:Sr(h[3])}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href"),title:h.title},S(h.children,E))},16:{t:["<"],o:Mn(ET),i:0,u(h){let S=h[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(h,S)=>!S.inAnchor&&!t.disableAutoLink&&(la(h,"http://")||la(h,"https://")),o:Mn(ST),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:Uh(f,1),33:Uh(f,2),19:{t:[`
|
|
15
|
+
`],o:Zr(dT),i:3,u:Tl,l:()=>`
|
|
16
|
+
`},21:{o:Ai(function(h,S){if(S.inline||S.simple||S.inHTML&&h.indexOf(`
|
|
69
17
|
|
|
70
|
-
`)===-1&&
|
|
18
|
+
`)===-1&&S.prevCapture.indexOf(`
|
|
71
19
|
|
|
72
|
-
`)===-1)return null;let
|
|
73
|
-
`,
|
|
74
|
-
`).replace(rM,"").replace(vM," ")})(O),_)}})(b),v=(function(m,w){return function x(O,_={}){if(Array.isArray(O)){const R=_.key,H=[];let P=!1;for(let z=0;z<O.length;z++){_.key=z;const U=x(O[z],_),$=A0(U);$&&P?H[H.length-1]+=U:U!==null&&H.push(U),P=$}return _.key=R,H}return(function(R,H,P){const z=m[R.type].l;return w?w(()=>z(R,H,P),R,H,P):z(R,H,P)})(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 Pc=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,WN);return V.cloneElement(qM(t,r),n)},C0=({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(B5,{className:st("flex-none size-6",r)});case"info":return A.jsx(A.Fragment,{children:A.jsx(zf,{className:st("flex-none size-6",r)})});case"warning":return A.jsx(A.Fragment,{children:A.jsx(Op,{className:st("flex-none size-6",r)})});case"message":return A.jsx(A.Fragment,{children:A.jsx(zf,{className:st("flex-none size-6",r)})});default:return null}},xx=({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(Wo,{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(C0,{kind:r,customIcon:s})}),A.jsx("div",{className:"flex items-center gap-1 prose",children:i?A.jsx(Pc,{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(C0,{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(Pc,{children:u}):A.jsx(A.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Sx=({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 Qd={},Os={},Hl={},P0;function Ex(){if(P0)return Hl;P0=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.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 Hl}var wo={},ks={},As={},I0;function GM(){if(I0)return As;I0=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 N0;function Xc(){if(N0)return ks;N0=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 M0;function Jc(){if(M0)return wo;M0=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0,wo.unsafeStringify=n;var e=t(Xc());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 D0;function ZM(){if(D0)return Os;D0=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var e=r(Ex()),t=Jc();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={},L0;function _x(){if(L0)return Rs;L0=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e=t(Xc());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 z0;function Ox(){if(z0)return li;z0=1,Object.defineProperty(li,"__esModule",{value:!0}),li.URL=li.DNS=void 0,li.default=l;var e=Jc(),t=r(_x());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={},$0;function KM(){if($0)return Cs;$0=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 j0;function YM(){if(j0)return Ts;j0=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var e=r(Ox()),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 Ps={},Is={},F0;function XM(){if(F0)return Is;F0=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Is.default=t,Is}var H0;function JM(){if(H0)return Ps;H0=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var e=n(XM()),t=n(Ex()),r=Jc();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 Ps.default=s,Ps}var Ns={},Ms={},W0;function QM(){if(W0)return Ms;W0=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 B0;function eD(){if(B0)return Ns;B0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;var e=r(Ox()),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={},V0;function tD(){if(V0)return Ds;V0=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={},U0;function rD(){if(U0)return Ls;U0=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e=t(Xc());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 q0;function nD(){return q0||(q0=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(Xc()),u=g(Jc()),f=g(_x());function g(p){return p&&p.__esModule?p:{default:p}}})(Qd)),Qd}var ef,G0;function iD(){if(G0)return ef;G0=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},ef=e,ef}var tf,Z0;function oD(){if(Z0)return tf;Z0=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",tf=t,tf}var rf,K0;function sD(){if(K0)return rf;K0=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 rf=(()=>{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,P=_.split("").every(z=>h.includes(z));return R===!1?H&&P:H&&P&&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})(),rf}var gi=sD();const kx=({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})]})},Ax=({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(ac,{className:st(["h-3 w-3 transform transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?A.jsx(ac,{}):A.jsx(H5,{});default:return A.jsx(ac,{className:"h-3 w-3 transform transition ease-in-out"})}})()}):A.jsx("div",{className:"flex h-6 w-3 items-center"}),$p=({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 gap-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(Sx,{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)=>OS(p.title,h.title))).map(p=>A.jsx($p,{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(kx,{showLines:!0,depth:t}),A.jsx(Ax,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),aD(e,n)]})},Wl=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(Wl(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(Wl(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(Wl(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(Wl(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(qi,{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($p,{node:m,searchQuery:s||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function mc(e){return e.of&&e.children?A.jsx(A.Fragment,{children:e.children}):null}function Dt(){return Dt=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},Dt.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 Tx(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,Rx=function(t){return t.charCodeAt(1)===45},Y0=function(t){return t!=null&&typeof t!="boolean"},nf=Tx(function(e){return Rx(e)?e:e.replace(pD,"-$&").toLowerCase()}),X0=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&&!Rx(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]+"}":Y0(c)&&(n+=nf(s)+":"+X0(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++)Y0(l[u])&&(n+=nf(s)+":"+X0(s,l[u])+";");else{var f=pa(e,t,l);switch(s){case"animation":case"animationName":{n+=nf(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}return n}var J0=/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]}J0.lastIndex=0;for(var f="",g;(g=J0.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 Cx=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){Cx(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=Tx(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"},Q0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?OD:kD},eb=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 Cx(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=eb(t,r,n),u=c||Q0(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=Mf.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(Mf.ThemeContext)}typeof y.className=="string"?O=xD(m.registered,_,y.className):y.className!=null&&(O=y.className+" ");var P=vD(p.concat(_),m.registered,R);O+=m.key+"-"+P.name,l!==void 0&&(O+=" "+l);var z=f&&c===void 0?Q0(x):u,U={};for(var $ in y)f&&$==="as"||z($)&&(U[$]=y[$]);return U.className=O,w&&(U.ref=w),V.createElement(V.Fragment,null,V.createElement(AD,{cache:m,serialized:P,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,Dt({},r,m,{shouldForwardProp:eb(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,Vl={},of=0,Px=function(e){return e&&(e.host||Px(e.parentNode))},PD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Px(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})},ID=function(e,t,r,n){var i=PD(t,Array.isArray(e)?e:[e]);Vl[r]||(Vl[r]=new WeakMap);var s=Vl[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(),of++,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)}),of--,of||(xo=new WeakMap,xo=new WeakMap,Bl=new WeakMap,Vl={})}},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"))),ID(n,i,r,"aria-hidden")):function(){return null}},Vf=function(e,t){return Vf=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])},Vf(e,t)};function Qc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vf(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 Ix(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 Uf(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 qf(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 Nc(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 bc="right-scroll-bar-position",yc="width-before-scroll-bar",MD="with-scroll-bars-hidden",DD="--removed-body-scroll-bar-size";function sf(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,tb=new WeakMap;function $D(e,t){var r=LD(null,function(n){return e.forEach(function(i){return sf(i,n)})});return zD(function(){var n=tb.get(r);if(n){var i=new Set(n),s=new Set(e),l=r.current;i.forEach(function(c){s.has(c)||sf(c,null)}),s.forEach(function(c){i.has(c)||sf(c,l)})}tb.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 Nx=function(e){var t=e.sideCar,r=Ix(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))};Nx.isSideCarExport=!0;function WD(e,t){return e.useMedium(t),Nx}var Mx=HD(),af=function(){},eu=V.forwardRef(function(e,t){var r=V.useRef(null),n=V.useState({onScrollCapture:af,onWheelCapture:af,onTouchMoveCapture:af}),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=Ix(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:Mx,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))});eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eu.classNames={fullWidth:yc,zeroRight:bc};var BD=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=BD();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])}},Dx=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},lf=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[lf(r),lf(n),lf(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=Dx(),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(
|
|
76
|
-
overflow: hidden `).concat(
|
|
77
|
-
padding-right: `).concat(c,"px ").concat(
|
|
20
|
+
`)===-1)return null;let E="",R=0;for(;;){const C=h.indexOf(`
|
|
21
|
+
`,R),U=h.slice(R,C===-1?void 0:C+1);if(c(a,U)||(E+=U,C===-1||!U.trim()))break;R=C+1}const O=To(E);return O===""?null:[E,,O]}),i:3,u:Al,l:(h,S,E)=>f("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Mn(AT),i:0,u:h=>(g[h[1]]={target:h[2],title:h[4]},{}),l:Rl},23:{t:["!["],o:pn(TT),i:0,u:h=>({alt:h[1]?Sr(h[1]):void 0,ref:h[2]}),l:(h,S,E)=>g[h.ref]?f("img",{key:E.key,alt:h.alt,src:i(g[h.ref].target,"img","src"),title:g[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:Mn(RT),i:0,u:(h,S,E)=>({children:S(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,S,E)=>g[h.ref]?f("a",{key:E.key,href:i(g[h.ref].target,"a","href"),title:g[h.ref].title},S(h.children,E)):f("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:Zr(Wh),i:1,u:eR,l(h,S,E){const R=h;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(O,C){return f("th",{key:C,style:qh(R,C)},S(O,E))}))),f("tbody",null,R.cells.map(function(O,C){return f("tr",{key:C},O.map(function(U,M){return f("td",{key:M,style:qh(R,M)},S(U,E))}))})))}},27:{o:Ai(function(h,S){let E;return la(h,":")&&(E=jT.exec(h)),E||UT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(bT,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:pn(MT),i:2,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("strong",{key:E.key},S(h.children,E))},29:{t:h=>{const S=h[0];return(S==="*"||S==="_")&&h[1]!==S},o:pn(FT),i:3,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("em",{key:E.key},S(h.children,E))},30:{t:["\\"],o:pn(zT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:pn(DT),i:3,u:Al,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:pn(NT),i:3,u:Al,l:(h,S,E)=>f("del",{key:E.key},S(h.children,E))}};t.disableParsingRawHTML===!0&&(delete v[11],delete v[13]);const x=(function(h){var S=Object.keys(h);function E(R,O){var C=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var U=0;U<S.length;){var M=S[U],D=h[M];if(!D.t||JT(R,O,D.t)){var q=D.o(R,O);if(q&&q[0]){R=R.substring(q[0].length);var N=D.u(q,E,O);O.prevCapture+=q[0],N.type||(N.type=M),C.push(N);break}U++}else U++}return O.prevCapture="",C}return S.sort(function(R,O){return h[R].i-h[O].i||(R<O?-1:1)}),function(R,O){return E((function(C){return C.replace(pT,`
|
|
22
|
+
`).replace(mT,"").replace(CT," ")})(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=Bh(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 wa=e=>{let{children:t,options:r}=e,i=(function(s,a){if(s==null)return{};var u,c,f={},m=Object.keys(s);for(c=0;c<m.length;c++)a.indexOf(u=m[c])>=0||(f[u]=s[u]);return f})(e,rT);return $.cloneElement(sR(t??"",r),i)},Zh=({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}},aR=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({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(Zh,{kind:r,customIcon:a})}),F.jsx("div",{className:"flex items-center gap-1 prose",children:s?F.jsx(wa,{children:i}):F.jsx(F.Fragment,{children:i})}),u()]}):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(Zh,{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(wa,{children:f}):F.jsx(F.Fragment,{children:f})}))})]}))}),u({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 Cl={},Ki={},Bs={},Gh;function Ov(){if(Gh)return Bs;Gh=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={},Kh;function uR(){if(Kh)return Xi;Kh=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 Vh;function Da(){if(Vh)return Vi;Vh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;var e=t(uR());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 Xh;function Na(){if(Xh)return di;Xh=1,Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0,di.unsafeStringify=i;var e=t(Da());function t(u){return u&&u.__esModule?u:{default:u}}const r=[];for(let u=0;u<256;++u)r.push((u+256).toString(16).slice(1));function i(u,c=0){return r[u[c+0]]+r[u[c+1]]+r[u[c+2]]+r[u[c+3]]+"-"+r[u[c+4]]+r[u[c+5]]+"-"+r[u[c+6]]+r[u[c+7]]+"-"+r[u[c+8]]+r[u[c+9]]+"-"+r[u[c+10]]+r[u[c+11]]+r[u[c+12]]+r[u[c+13]]+r[u[c+14]]+r[u[c+15]]}function s(u,c=0){const f=i(u,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return di.default=a,di}var Yh;function lR(){if(Yh)return Ki;Yh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=r(Ov()),t=Na();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,u=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:u+1;const S=w-a+(h-u)/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,u=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={},hn={},Ji={},Jh;function Av(){if(Jh)return Ji;Jh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=t(Da());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 u=new Uint8Array(16);return u[0]=(a=parseInt(s.slice(0,8),16))>>>24,u[1]=a>>>16&255,u[2]=a>>>8&255,u[3]=a&255,u[4]=(a=parseInt(s.slice(9,13),16))>>>8,u[5]=a&255,u[6]=(a=parseInt(s.slice(14,18),16))>>>8,u[7]=a&255,u[8]=(a=parseInt(s.slice(19,23),16))>>>8,u[9]=a&255,u[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,u[11]=a/4294967296&255,u[12]=a>>>24&255,u[13]=a>>>16&255,u[14]=a>>>8&255,u[15]=a&255,u}var i=r;return Ji.default=i,Ji}var Qh;function Tv(){if(Qh)return hn;Qh=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.URL=hn.DNS=void 0,hn.default=u;var e=Na(),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";hn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";hn.URL=a;function u(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 hn}var Qi={},eg;function cR(){if(eg)return Qi;eg=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 u(v,x){return v<<x|v>>>32-x}function c(v,x,d,w,h,S){return a(u(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 tg;function fR(){if(tg)return Yi;tg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Tv()),t=r(cR());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={},rg;function dR(){if(rg)return to;rg=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 ng;function pR(){if(ng)return eo;ng=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=i(dR()),t=i(Ov()),r=Na();function i(u){return u&&u.__esModule?u:{default:u}}function s(u,c,f){if(e.default.randomUUID&&!c&&!u)return e.default.randomUUID();u=u||{};const m=u.random||(u.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={},ig;function hR(){if(ig)return no;ig=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;function e(s,a,u,c){switch(s){case 0:return a&u^~a&c;case 1:return a^u^c;case 2:return a&u^a&c^u&c;case 3:return a^u^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],u=[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=u[0],v=u[1],x=u[2],d=u[3],w=u[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}u[0]=u[0]+g>>>0,u[1]=u[1]+v>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+d>>>0,u[4]=u[4]+w>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,u[0]&255,u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,u[1]&255,u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,u[2]&255,u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,u[3]&255,u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,u[4]&255]}var i=r;return no.default=i,no}var og;function gR(){if(og)return ro;og=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=r(Tv()),t=r(hR());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={},sg;function mR(){if(sg)return io;sg=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={},ag;function vR(){if(ag)return oo;ag=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e=t(Da());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 ug;function yR(){return ug||(ug=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 u.default}});var t=y(lR()),r=y(fR()),i=y(pR()),s=y(gR()),a=y(mR()),u=y(vR()),c=y(Da()),f=y(Na()),m=y(Av());function y(p){return p&&p.__esModule?p:{default:p}}})(Cl)),Cl}var kl,lg;function bR(){if(lg)return kl;lg=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={},u=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*u+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},kl=e,kl}var $l,cg;function wR(){if(cg)return $l;cg=1;var e=bR();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",$l=t,$l}var Il,fg;function xR(){if(fg)return Il;fg=1;const{v4:e,validate:t}=yR(),r=wR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(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 Il=(()=>{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=()=>u(e(),w,d),R={alphabet:g,fromUUID:O=>u(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})(),Il}var Jc=xR();const Rv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Jc.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"}),Qc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,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=u&&typeof u=="function"?u(e,t,y,s,a):_R(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),ER(m||[],t,a,r,i,y.expanded,s,c,u)]}):null},SR=function(e,t){var u;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:(u=e.options)==null?void 0:u.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})]})},ER=function(e,t,r,i,s,a,u,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)=>w0(p.title,g.title))).map(p=>F.jsx(Qc,{actions:u,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},p.key)):null},_R=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}),SR(e,i)]})},Hs=e=>t=>e===t,OR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:c="always",encapsulated:f,className:m}){const[y,p]=W.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&y.expandedKeys.length>0||p({...y,expandedKeys:u||y.expandedKeys})},[u]);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(Qc,{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 AR(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TR={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 RR=/[A-Z]|^ms/g,PR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kv=function(t){return t.charCodeAt(1)===45},dg=function(t){return t!=null&&typeof t!="boolean"},Ll=Cv(function(e){return kv(e)?e:e.replace(RR,"-$&").toLowerCase()}),pg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(PR,function(i,s,a){return Rr={name:s,styles:a,next:Rr},s})}return TR[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 Rr={name:s.name,styles:s.styles,next:Rr},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Rr={name:u.name,styles:u.styles,next:Rr},u=u.next;var c=a.styles+";";return c}return CR(e,t,r)}case"function":{if(e!==void 0){var f=Rr,m=r(e);return Rr=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 CR(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 u=r[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":dg(c)&&(i+=Ll(a)+":"+pg(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)dg(u[f])&&(i+=Ll(a)+":"+pg(a,u[f])+";");else{var m=$o(e,t,u);switch(a){case"animation":case"animationName":{i+=Ll(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var hg=/label:\s*([^\s;{]+)\s*(;|$)/g,Rr;function kR(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="";Rr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=$o(r,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=$o(r,t,e[c]),i){var f=a;s+=f[c]}hg.lastIndex=0;for(var m="",y;(y=hg.exec(s))!==null;)m+="-"+y[1];var p=AR(s)+m;return{name:p,styles:s,next:Rr}}var $R=function(t){return t()},IR=$.useInsertionEffect?$.useInsertionEffect:!1,LR=IR||$R,MR=!0;function FR(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||MR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},DR=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)}},NR=/^((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)-.*))$/,jR=Cv(function(e){return NR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zR=jR,WR=function(t){return t!=="theme"},gg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?zR:WR},mg=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},UR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return $v(r,i,s),LR(function(){return DR(r,i,s)}),null},BR=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,u;r!==void 0&&(a=r.label,u=r.target);var c=mg(t,r,i),f=c||gg(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=dc.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(dc.ThemeContext)}typeof w.className=="string"?R=FR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var M=kR(p.concat(O),h.registered,C);R+=h.key+"-"+M.name,u!==void 0&&(R+=" "+u);var D=m&&c===void 0?gg(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(UR,{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"."+u}}),d.withComponent=function(w,h){var S=e(w,Qe({},r,h,{shouldForwardProp:mg(d,h,!0)}));return S.apply(void 0,p)},d}},HR=["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"],xa=BR.bind(null);HR.forEach(function(e){xa[e]=xa(e)});var qR=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={},Ml=0,Iv=function(e){return e&&(e.host||Iv(e.parentNode))},ZR=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})},GR=function(e,t,r,i){var s=ZR(t,Array.isArray(e)?e:[e]);Zs[r]||(Zs[r]=new WeakMap);var a=Zs[r],u=[],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),u.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(),Ml++,function(){u.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)}),Ml--,Ml||(pi=new WeakMap,pi=new WeakMap,qs=new WeakMap,Zs={})}},KR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=qR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),GR(i,s,r,"aria-hidden")):function(){return null}},gc=function(e,t){return gc=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])},gc(e,t)};function ja(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pr=function(){return Pr=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},Pr.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 mc(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 vc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){u={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return a}function Sa(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",VR="with-scroll-bars-hidden",XR="--removed-body-scroll-bar-size";function Fl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function YR(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 JR=typeof window<"u"?$.useLayoutEffect:$.useEffect,vg=new WeakMap;function QR(e,t){var r=YR(null,function(i){return e.forEach(function(s){return Fl(s,i)})});return JR(function(){var i=vg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(c){a.has(c)||Fl(c,null)}),a.forEach(function(c){s.has(c)||Fl(c,u)})}vg.set(r,e)},[e]),r}function eP(e){return e}function tP(e,t){t===void 0&&(t=eP);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 u=t(a,i);return r.push(u),function(){r=r.filter(function(c){return c!==u})}},assignSyncMedium:function(a){for(i=!0;r.length;){var u=r;r=[],u.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var u=[];if(r.length){var c=r;r=[],c.forEach(a),u=r}var f=function(){var y=u;u=[],y.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(y){u.push(y),m()},filter:function(y){return u=u.filter(y),r}}}};return s}function rP(e){e===void 0&&(e={});var t=tP(null);return t.options=Pr({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,Pr({},r))};Mv.isSideCarExport=!0;function nP(e,t){return e.useMedium(t),Mv}var Fv=rP(),Dl=function(){},za=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Dl,onWheelCapture:Dl,onTouchMoveCapture:Dl}),s=i[0],a=i[1],u=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=QR([r,t]),U=Pr(Pr({},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}),u?$.cloneElement($.Children.only(c),Pr(Pr({},U),{ref:C})):$.createElement(S,Pr({},U,{className:f,ref:C}),c))});za.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};za.classNames={fullWidth:pa,zeroRight:da};var iP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=iP();return t&&e.setAttribute("nonce",t),e}function sP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=oP())&&(sP(t,r),aP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lP=function(){var e=uP();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dv=function(){var e=lP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},cP={left:0,top:0,right:0,gap:0},Nl=function(e){return parseInt(e||"",10)||0},fP=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[Nl(r),Nl(i),Nl(s)]},dP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cP;var t=fP(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])}},pP=Dv(),yi="data-scroll-locked",hP=function(e,t,r,i){var s=e.left,a=e.top,u=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
+
.`.concat(VR,` {
|
|
24
|
+
overflow: hidden `).concat(i,`;
|
|
25
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
78
26
|
}
|
|
79
|
-
body[`).concat(
|
|
80
|
-
overflow: hidden `).concat(
|
|
27
|
+
body[`).concat(yi,`] {
|
|
28
|
+
overflow: hidden `).concat(i,`;
|
|
81
29
|
overscroll-behavior: contain;
|
|
82
|
-
`).concat([t&&"position: relative ".concat(
|
|
83
|
-
padding-left: `.concat(
|
|
84
|
-
padding-top: `).concat(
|
|
85
|
-
padding-right: `).concat(
|
|
30
|
+
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
31
|
+
padding-left: `.concat(s,`px;
|
|
32
|
+
padding-top: `).concat(a,`px;
|
|
33
|
+
padding-right: `).concat(u,`px;
|
|
86
34
|
margin-left:0;
|
|
87
35
|
margin-top:0;
|
|
88
|
-
margin-right: `).concat(c,"px ").concat(
|
|
89
|
-
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(
|
|
36
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
37
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
90
38
|
}
|
|
91
39
|
|
|
92
|
-
.`).concat(
|
|
93
|
-
right: `).concat(c,"px ").concat(
|
|
40
|
+
.`).concat(da,` {
|
|
41
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
94
42
|
}
|
|
95
43
|
|
|
96
|
-
.`).concat(
|
|
97
|
-
margin-right: `).concat(c,"px ").concat(
|
|
44
|
+
.`).concat(pa,` {
|
|
45
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
98
46
|
}
|
|
99
47
|
|
|
100
|
-
.`).concat(
|
|
101
|
-
right: 0 `).concat(
|
|
48
|
+
.`).concat(da," .").concat(da,` {
|
|
49
|
+
right: 0 `).concat(i,`;
|
|
102
50
|
}
|
|
103
51
|
|
|
104
|
-
.`).concat(
|
|
105
|
-
margin-right: 0 `).concat(
|
|
52
|
+
.`).concat(pa," .").concat(pa,` {
|
|
53
|
+
margin-right: 0 `).concat(i,`;
|
|
106
54
|
}
|
|
107
55
|
|
|
108
|
-
body[`).concat(
|
|
109
|
-
`).concat(
|
|
56
|
+
body[`).concat(yi,`] {
|
|
57
|
+
`).concat(XR,": ").concat(c,`px;
|
|
110
58
|
}
|
|
111
|
-
`)},
|
|
59
|
+
`)},yg=function(){var e=parseInt(document.body.getAttribute(yi)||"0",10);return isFinite(e)?e:0},gP=function(){$.useEffect(function(){return document.body.setAttribute(yi,(yg()+1).toString()),function(){var e=yg()-1;e<=0?document.body.removeAttribute(yi):document.body.setAttribute(yi,e.toString())}},[])},mP=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;gP();var a=$.useMemo(function(){return dP(s)},[s]);return $.createElement(pP,{styles:hP(a,!t,s,r?"":"!important")})},yc=!1;if(typeof window<"u")try{var Gs=Object.defineProperty({},"passive",{get:function(){return yc=!0,!0}});window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{yc=!1}var hi=yc?{passive:!1}:!1,vP=function(e){return e.tagName==="TEXTAREA"},Nv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!vP(e)&&r[t]==="visible")},yP=function(e){return Nv(e,"overflowY")},bP=function(e){return Nv(e,"overflowX")},bg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=jv(e,i);if(s){var a=zv(e,i),u=a[1],c=a[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},wP=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},xP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},jv=function(e,t){return e==="v"?yP(t):bP(t)},zv=function(e,t){return e==="v"?wP(t):xP(t)},SP=function(e,t){return e==="h"&&t==="rtl"?-1:1},EP=function(e,t,r,i,s){var a=SP(e,window.getComputedStyle(t).direction),u=a*i,c=r.target,f=t.contains(c),m=!1,y=u>0,p=0,g=0;do{if(!c)break;var v=zv(e,c),x=v[0],d=v[1],w=v[2],h=d-w-a*x;(x||h)&&jv(e,c)&&(p+=h,g+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(y&&Math.abs(p)<1||!y&&Math.abs(g)<1)&&(m=!0),m},Ks=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wg=function(e){return[e.deltaX,e.deltaY]},xg=function(e){return e&&"current"in e?e.current:e},_P=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OP=function(e){return`
|
|
112
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
113
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
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(Dx)[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=Nc([e.lockRef.current],(e.shards||[]).map(ob),!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=ql(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 P=window.getSelection(),z=P&&P.anchorNode,U=z?z===R||z.contains(R):!1;if(U)return!1;var $=nb(H,R);if(!$)return!0;if($?_=H:(_=H==="v"?"h":"v",$=nb(H,R)),!$)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?ib(y):ql(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(ob).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=ql(v),n.current=void 0},[]),p=V.useCallback(function(v){f(v.type,ib(v),v.target,c(v,e.lockRef.current))},[]),h=V.useCallback(function(v){f(v.type,ql(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=WD(Mx,f3);var jx=V.forwardRef(function(e,t){return V.createElement(eu,bn({},e,{ref:t,sideCar:h3}))});jx.classNames=eu.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 Fx(...e){return t=>e.forEach((r=>(function(n,i){typeof n=="function"?n(i):n!=null&&(n.current=i)})(r,t)))}function Gi(...e){return V.useCallback(Fx(...e),e)}const Hx=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.Children.toArray(r).some(sb)?V.createElement(V.Fragment,null,V.Children.map(r,(i=>sb(i)?V.createElement(Zf,Dt({},n,{ref:t}),i.props.children):i))):V.createElement(Zf,Dt({},n,{ref:t}),r)}));Hx.displayName="Slot";const Zf=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.isValidElement(r)?V.cloneElement(r,{...w3(n,r.props),ref:Fx(t,r.ref)}):V.Children.count(r)>1?V.Children.only(null):null}));Zf.displayName="SlotClone";const y3=({children:e})=>V.createElement(V.Fragment,null,e);function sb(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?Hx:t;return V.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),V.createElement(l,Dt({},s,{ref:n}))}))})),{}),ab=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},Wx=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=Gl(f.current);p.current=b==="mounted"?v:"none"}),[b]),ab((()=>{const v=f.current,y=g.current;if(y!==l){const m=p.current,w=Gl(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]),ab((()=>{if(c){const v=m=>{const w=Gl(f.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(p.current=Gl(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=Gi(n.ref,i.ref);return typeof r=="function"||n.isPresent?V.cloneElement(i,{ref:s}):null};function Gl(e){return(e==null?void 0:e.animationName)||"none"}Wx.displayName="Presence";let cf=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:lb()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:lb()),cf++,()=>{cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),cf--}}),[])}function lb(){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:()=>{},Bx=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,Dt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Bi(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 cb={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=Bi(i),g=Bi(s),p=V.useRef(null),h=Gi(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:Ni(p.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||Ni(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){fb.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",cb);c.addEventListener("focusScope.autoFocusOnMount",f),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const O=document.activeElement;for(const _ of w)if(Ni(_,{select:x}),document.activeElement!==O)return})((v=ub(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&Ni(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",f),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",cb);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(m),m.defaultPrevented||Ni(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),fb.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=ub(_),H=db(R,_),P=db(R.reverse(),_);return[H,P]})(w);x&&O?v.shiftKey||m!==O?v.shiftKey&&m===x&&(v.preventDefault(),r&&Ni(O,{select:!0})):(v.preventDefault(),r&&Ni(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return V.createElement(qo.div,Dt({tabIndex:-1},l,{ref:h,onKeyDown:S}))}));function ub(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 db(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 Ni(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 fb=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=pb(e,t),e.unshift(t)},remove(t){var r;e=pb(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function pb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function O3(e){const t=Bi(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 hb,Zl=0;function A3({disabled:e}){const t=V.useRef(!1);k3((()=>{if(e){let r=function(){Zl--,Zl===0&&(document.body.style.pointerEvents=hb)},n=function(i){t.current=i.pointerType!=="mouse"};return Zl===0&&(hb=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Zl++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Hi(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=Gi(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=Bi(R),P=V.useRef(!1);return V.useEffect((()=>{const z=$=>{$.target&&!P.current&&vb("dismissableLayer.pointerDownOutside",H,{originalEvent:$}),P.current=!1},U=window.setTimeout((()=>{document.addEventListener("pointerdown",z)}),0);return()=>{window.clearTimeout(U),document.removeEventListener("pointerdown",z)}}),[H]),{onPointerDownCapture:()=>P.current=!0}})((R=>{const H=R.target,P=[...f.branches].some((z=>z.contains(H)));x&&!P&&(i==null||i(R),l==null||l(R),R.defaultPrevented||c==null||c())})),_=(function(R){const H=Bi(R),P=V.useRef(!1);return V.useEffect((()=>{const z=U=>{U.target&&!P.current&&vb("dismissableLayer.focusOutside",H,{originalEvent:U})};return document.addEventListener("focusin",z),()=>document.removeEventListener("focusin",z)}),[H]),{onFocusCapture:()=>P.current=!0,onBlurCapture:()=>P.current=!1}})((R=>{const H=R.target;[...f.branches].some((P=>P.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),gb())}),[g,r,f]),V.useEffect((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),gb())}),[g,f]),V.useEffect((()=>{const R=()=>h({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),V.createElement(qo.div,Dt({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Hi(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Hi(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Hi(e.onPointerDownCapture,O.onPointerDownCapture)}))}));function gb(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function vb(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 mb(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=Mi.get(e);return r===void 0?(Mi.set(e,{rect:{},callbacks:[t]}),Mi.size===1&&(Kf=requestAnimationFrame(Vx))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Mi.get(e);if(n===void 0)return;const i=n.callbacks.indexOf(t);i>-1&&n.callbacks.splice(i,1),n.callbacks.length===0&&(Mi.delete(e),Mi.size===0&&cancelAnimationFrame(Kf))}}let Kf;const Mi=new Map;function Vx(){const e=[];Mi.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)))})),Kf=requestAnimationFrame(Vx)}function P3(e){const[t,r]=V.useState();return V.useEffect((()=>{if(e){const n=C3(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Ux(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}\``)}]},I3(n,...t)]}function I3(...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:uf};const p=(function(H,P,z=0,U=0,$){const M=$?$.height:0,D=bb(P,H,"x"),F=bb(P,H,"y"),I=F.before-z-M,K=F.after+z+M,te=D.before-z-M,Y=D.after+z+M;return{top:{start:{x:D.start+U,y:I},center:{x:D.center,y:I},end:{x:D.end-U,y:I}},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:te,y:F.start+U},center:{x:te,y:F.center},end:{x:te,y:F.end-U}}}})(t,e,s,c,r),h=p[i][l];if(u===!1){const H=yb(h);let P=uf;return r&&(P=xb({popperSize:t,arrowSize:r,arrowOffset:n,side:i,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":wb(t,i,l,n,r)},arrowStyles:P,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=Eb(b,S),w=p[Sb(i)][l],x=(function(H,P,z){const U=Sb(H);return P[H]&&!z[U]?U:H})(i,m,Eb(DOMRect.fromRect({...t,...w}),S)),O=(function(H,P,z,U,$){const M=z==="top"||z==="bottom",D=M?"left":"top",F=M?"right":"bottom",I=M?"width":"height",K=P[I]>H[I];return(U==="start"||U==="center")&&($[D]&&K||$[F]&&!K)?"end":(U==="end"||U==="center")&&($[F]&&K||$[D]&&!K)?"start":U})(t,e,i,l,m),_=yb(p[x][O]);let R=uf;return r&&(R=xb({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:O})),{popperStyles:{..._,"--radix-popper-transform-origin":wb(t,x,O,n,r)},arrowStyles:R,placedSide:x,placedAlign:O}}function bb(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 yb(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 wb(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)"},uf={position:"absolute",opacity:0};function xb({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 Sb(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Eb(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[qx,Gx]=Ux("Popper"),[L3,Zx]=qx("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=Zx("PopperAnchor",r),l=V.useRef(null),c=Gi(t,l);return V.useEffect((()=>{s.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:V.createElement(qo.div,Dt({},i,{ref:c}))})),[j3,Z6]=qx("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=Zx("PopperContent",r),[p,h]=V.useState(),b=P3(g.anchor),[S,v]=V.useState(null),y=mb(S),[m,w]=V.useState(null),x=mb(m),O=Gi(t,(M=>v(M))),_=(function(){const[M,D]=V.useState(void 0);return V.useEffect((()=>{let F;function I(){D({width:window.innerWidth,height:window.innerHeight})}function K(){window.clearTimeout(F),F=window.setTimeout(I,100)}return I(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}),[]),M})(),R=_?DOMRect.fromRect({..._,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:P,placedSide:z,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}),$=z!==void 0;return V.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},V.createElement(j3,{scope:r,arrowStyles:P,onArrowChange:w,onArrowOffsetChange:h},V.createElement(qo.div,Dt({"data-side":z,"data-align":U},f,{style:{...f.style,animation:$?void 0:"none"},ref:O}))))})),H3=z3,W3=$3,B3=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=Bi(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=Bi(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]=Ux("Popover",[Gx]),jp=Gx(),[q3,Aa]=U3("Popover"),G3=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=jp(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=jp(r),l=Gi(t,i.triggerRef),c=V.createElement(qo.button,Dt({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Yx(i.open)},n,{ref:l,onClick:Hi(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:V.createElement(W3,Dt({asChild:!0},s),c)})),K3=V.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,i=Aa("PopoverContent",e.__scopePopover);return V.createElement(Wx,{present:r||i.open},i.modal?V.createElement(Y3,Dt({},n,{ref:t})):V.createElement(X3,Dt({},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=Gi(t,l),u=V.useRef(!1);V.useEffect((()=>{const g=l.current;if(g)return ND(g)}),[]);const f=n?Bx:V.Fragment;return V.createElement(f,null,V.createElement(jx,{allowPinchZoom:r},V.createElement(Kx,Dt({},i,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Hi(e.onCloseAutoFocus,(g=>{var p;g.preventDefault(),u.current||(p=s.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:Hi(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:Hi(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?Bx:V.Fragment;return V.createElement(l,null,V.createElement(Kx,Dt({},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()}})))})),Kx=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=jp(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(B3,Dt({"data-state":Yx(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 Yx(e){return e?"open":"closed"}const J3=G3,Q3=Z3,eL=K3;var wc=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(wc||{}),df={},zs={},Kl={},Yl={},Xl={exports:{}},Jl={exports:{}},Ke={};/** @license React v16.13.1
|
|
62
|
+
`)},AP=0,gi=[];function TP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(AP++)[0],a=$.useState(Dv)[0],u=$.useRef(e);$.useEffect(function(){u.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=Sa([e.lockRef.current],(e.shards||[]).map(xg),!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!u.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=bg(U,C);if(!N)return!0;if(N?O=U:(O=U==="v"?"h":"v",N=bg(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 EP(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?wg(w):Ks(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&_P(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(xg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!u.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:RP(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,wg(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:OP(s)}):null,v?$.createElement(mP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function RP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const PP=nP(Fv,TP);var Wv=$.forwardRef(function(e,t){return $.createElement(za,Pr({},e,{ref:t,sideCar:PP}))});Wv.classNames=za.classNames;const CP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},kP=$.useId||(()=>{});let $P=0;function Uv(e){const[t,r]=$.useState(kP());return CP((()=>{r((i=>i??String($P++)))}),[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 En(...e){return $.useCallback(Bv(...e),e)}const Hv=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(Sg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>Sg(s)?$.createElement(bc,Qe({},i,{ref:t}),s.props.children):s))):$.createElement(bc,Qe({},i,{ref:t}),r)}));Hv.displayName="Slot";const bc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...IP(i,r.props),ref:Bv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));bc.displayName="SlotClone";const qv=({children:e})=>$.createElement($.Fragment,null,e);function Sg(e){return $.isValidElement(e)&&e.type===qv}function IP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...u)=>{a==null||a(...u),s==null||s(...u)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const _n=["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,u=s?Hv:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(u,Qe({},a,{ref:i}))}))})),{}),Eg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},ef=e=>{const{present:t,children:r}=e,i=(function(u){const[c,f]=$.useState(),m=$.useRef({}),y=$.useRef(u),p=$.useRef("none"),g=u?"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]),Eg((()=>{const d=m.current,w=y.current;if(w!==u){const h=p.current,S=Vs(d);u?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),y.current=u}}),[u,x]),Eg((()=>{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=En(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"}ef.displayName="Presence";let jl=0;function LP(){$.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:_g()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:_g()),jl++,()=>{jl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),jl--}}),[])}function _g(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const MP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},tf=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...u}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=$.useState({});return MP((()=>{f({})}),[]),c?zo.createPortal($.createElement(_n.div,Qe({"data-radix-portal":""},u,{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 Og={bubbles:!1,cancelable:!0},FP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[c,f]=$.useState(null),m=qn(s),y=qn(a),p=$.useRef(null),g=En(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:Fn(p.current,{select:!0})},w=function(h){!v.paused&&c&&(c.contains(h.relatedTarget)||Fn(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){Rg.add(v);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",Og);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(Fn(O,{select:E}),document.activeElement!==R)return})((d=Ag(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Fn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",Og);c.addEventListener("focusScope.autoFocusOnUnmount",y),c.dispatchEvent(h),h.defaultPrevented||Fn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",y),Rg.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=Ag(O),U=Tg(C,O),M=Tg(C.reverse(),O);return[U,M]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&Fn(R,{select:!0})):(d.preventDefault(),r&&Fn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,v.paused]);return $.createElement(_n.div,Qe({tabIndex:-1},u,{ref:g,onKeyDown:x}))}));function Ag(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 Tg(e,t){for(const r of e)if(!DP(r,{upTo:t}))return r}function DP(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 Fn(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 Rg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Pg(e,t),e.unshift(t)},remove(t){var r;e=Pg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Pg(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 NP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Cg,Xs=0;function jP({disabled:e}){const t=$.useRef(!1);NP((()=>{if(e){let r=function(){Xs--,Xs===0&&(document.body.style.pointerEvents=Cg)},i=function(s){t.current=s.pointerType!=="mouse"};return Xs===0&&(Cg=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 zP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),WP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,m=$.useContext(zP),[y,p]=$.useState(null),[,g]=$.useState({}),v=En(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&&$g("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),u==null||u(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&&$g("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),u==null||u(C),C.defaultPrevented||c==null||c())}));return Zv((C=>{h===m.layers.size-1&&(i==null||i(C),C.defaultPrevented||c==null||c())})),jP({disabled:r}),$.useEffect((()=>{y&&(r&&m.layersWithOutsidePointerEventsDisabled.add(y),m.layers.add(y),kg())}),[y,r,m]),$.useEffect((()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),kg())}),[y,m]),$.useEffect((()=>{const C=()=>g({});return document.addEventListener("dismissableLayer.update",C),()=>document.removeEventListener("dismissableLayer.update",C)}),[]),$.createElement(_n.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 kg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function $g(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 Ig(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 u,c;if("borderBoxSize"in a){const f=a.borderBoxSize,m=Array.isArray(f)?f[0]:f;u=m.inlineSize,c=m.blockSize}else{const f=e.getBoundingClientRect();u=f.width,c=f.height}r({width:u,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function UP(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(wc=requestAnimationFrame(Gv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(wc))}}let wc;const Dn=new Map;function Gv(){const e=[];Dn.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)))})),wc=requestAnimationFrame(Gv)}function Kv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=UP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function rf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const u=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:u}})),[a,u])}};return i.scopeName=e,[function(s,a){const u=$.createContext(a),c=r.length;function f(m){const{scope:y,children:p,...g}=m,v=(y==null?void 0:y[e][c])||u,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])||u,g=$.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},BP(i,...t)]}function BP(...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(((u,{useScope:c,scopeName:f})=>({...u,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function HP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:u,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:m,collisionTolerance:y=0}){if(!e||!t||!m)return{popperStyles:qP,arrowStyles:zl};const p=(function(U,M,D=0,q=0,N){const L=N?N.height:0,B=Lg(M,U,"x"),Z=Lg(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][u];if(f===!1){const U=Mg(g);let M=zl;return r&&(M=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...U,"--radix-popper-transform-origin":Fg(t,s,u,i,r)},arrowStyles:M,placedSide:s,placedAlign:u}}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=jg(v,x),S=p[Ng(s)][u],E=(function(U,M,D){const q=Ng(U);return M[U]&&!D[q]?q:U})(s,h,jg(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,u,h),O=Mg(p[E][R]);let C=zl;return r&&(C=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Fg(t,E,R,i,r)},arrowStyles:C,placedSide:E,placedAlign:R}}function Lg(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],u=t[s];return{before:i-u,start:i,center:i+(a-u)/2,end:i+a-u,after:i+a}}function Mg(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 Fg(e,t,r,i,s){const a=t==="top"||t==="bottom",u=s?s.width:0,c=s?s.height:0,f=u/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 qP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},zl={position:"absolute",opacity:0};function Dg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,u=(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:ZP(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=`${u}px`),s==="end"&&(m.bottom=`${r}px`)),m}function ZP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Ng(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function jg(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,Wa]=rf("Popper"),[GP,Xv]=Vv("Popper"),KP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(GP,{scope:t,anchor:i,onAnchorChange:s},r)},VP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Xv("PopperAnchor",r),u=$.useRef(null),c=En(t,u);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:$.createElement(_n.div,Qe({},s,{ref:c}))})),[XP,jM]=Vv("PopperContent"),YP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,y=Xv("PopperContent",r),[p,g]=$.useState(),v=Kv(y.anchor),[x,d]=$.useState(null),w=Ig(x),[h,S]=$.useState(null),E=Ig(h),R=En(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}=HP({anchorRect:v,popperSize:w,arrowSize:E,arrowOffset:p,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:C,collisionTolerance:c}),N=D!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(XP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:g},$.createElement(_n.div,Qe({"data-side":D,"data-align":q},m,{style:{...m.style,animation:N?void 0:"none"},ref:R}))))})),Yv=KP,Jv=VP,Qv=YP;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,u=a?e:i,c=qn(r);return[u,$.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[JP]=rf("Popover",[Wa]),nf=Wa(),[QP,Bo]=JP("Popover"),eC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,c=nf(t),f=$.useRef(null),[m,y]=$.useState(!1),[p=!1,g]=ey({prop:i,defaultProp:s,onChange:a});return $.createElement(Yv,c,$.createElement(QP,{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:u},r))},tC=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Bo("PopoverTrigger",r),a=nf(r),u=En(t,s.triggerRef),c=$.createElement(_n.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ry(s.open)},i,{ref:u,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(Jv,Qe({asChild:!0},a),c)})),rC=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Bo("PopoverContent",e.__scopePopover);return $.createElement(ef,{present:r||s.open},s.modal?$.createElement(nC,Qe({},i,{ref:t})):$.createElement(iC,Qe({},i,{ref:t})))})),nC=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Bo("PopoverContent",e.__scopePopover),u=$.useRef(null),c=En(t,u),f=$.useRef(!1);$.useEffect((()=>{const y=u.current;if(y)return KR(y)}),[]);const m=i?tf:$.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})}))))})),iC=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Bo("PopoverContent",e.__scopePopover),a=$.useRef(!1),u=r?tf:$.Fragment;return $.createElement(u,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:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:y,...p}=e,g=Bo("PopoverContent",r),v=nf(r);return LP(),$.createElement(FP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(WP,{asChild:!0,disableOutsidePointerEvents:u,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 oC=eC,sC=tC,aC=rC;var ha=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ha||{}),Wl={},so={},Ys={},Js={},Qs={exports:{}},ea={exports:{}},Fe={};/** @license React v16.13.1
|
|
115
63
|
* react-is.production.min.js
|
|
116
64
|
*
|
|
117
65
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
118
66
|
*
|
|
119
67
|
* This source code is licensed under the MIT license found in the
|
|
120
68
|
* LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/var
|
|
69
|
+
*/var zg;function uC(){if(zg)return Fe;zg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var C=O.$$typeof;switch(C){case t:switch(O=O.type,O){case f:case m:case i:case a:case s:case p:return O;default:switch(O=O&&O.$$typeof,O){case c:case y:case x:case v:case u:return O;default:return C}}case r:return C}}}function R(O){return E(O)===m}return Fe.AsyncMode=f,Fe.ConcurrentMode=m,Fe.ContextConsumer=c,Fe.ContextProvider=u,Fe.Element=t,Fe.ForwardRef=y,Fe.Fragment=i,Fe.Lazy=x,Fe.Memo=v,Fe.Portal=r,Fe.Profiler=a,Fe.StrictMode=s,Fe.Suspense=p,Fe.isAsyncMode=function(O){return R(O)||E(O)===f},Fe.isConcurrentMode=R,Fe.isContextConsumer=function(O){return E(O)===c},Fe.isContextProvider=function(O){return E(O)===u},Fe.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Fe.isForwardRef=function(O){return E(O)===y},Fe.isFragment=function(O){return E(O)===i},Fe.isLazy=function(O){return E(O)===x},Fe.isMemo=function(O){return E(O)===v},Fe.isPortal=function(O){return E(O)===r},Fe.isProfiler=function(O){return E(O)===a},Fe.isStrictMode=function(O){return E(O)===s},Fe.isSuspense=function(O){return E(O)===p},Fe.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===m||O===a||O===s||O===p||O===g||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===v||O.$$typeof===u||O.$$typeof===c||O.$$typeof===y||O.$$typeof===w||O.$$typeof===h||O.$$typeof===S||O.$$typeof===d)},Fe.typeOf=E,Fe}var De={};/** @license React v16.13.1
|
|
122
70
|
* react-is.development.js
|
|
123
71
|
*
|
|
124
72
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
125
73
|
*
|
|
126
74
|
* This source code is licensed under the MIT license found in the
|
|
127
75
|
* LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/var
|
|
76
|
+
*/var Wg;function lC(){return Wg||(Wg=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(oe){return typeof oe=="string"||typeof oe=="function"||oe===i||oe===m||oe===a||oe===s||oe===p||oe===g||typeof oe=="object"&&oe!==null&&(oe.$$typeof===x||oe.$$typeof===v||oe.$$typeof===u||oe.$$typeof===c||oe.$$typeof===y||oe.$$typeof===w||oe.$$typeof===h||oe.$$typeof===S||oe.$$typeof===d)}function R(oe){if(typeof oe=="object"&&oe!==null){var ct=oe.$$typeof;switch(ct){case t:var Fr=oe.type;switch(Fr){case f:case m:case i:case a:case s:case p:return Fr;default:var bt=Fr&&Fr.$$typeof;switch(bt){case c:case y:case x:case v:case u:return bt;default:return ct}}case r:return ct}}}var O=f,C=m,U=c,M=u,D=t,q=y,N=i,L=x,B=v,Z=r,k=a,Q=s,J=p,re=!1;function ce(oe){return re||(re=!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.")),G(oe)||R(oe)===f}function G(oe){return R(oe)===m}function te(oe){return R(oe)===c}function ne(oe){return R(oe)===u}function ue(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function ie(oe){return R(oe)===y}function he(oe){return R(oe)===i}function fe(oe){return R(oe)===x}function ve(oe){return R(oe)===v}function xe(oe){return R(oe)===r}function Ae(oe){return R(oe)===a}function _e(oe){return R(oe)===s}function ot(oe){return R(oe)===p}De.AsyncMode=O,De.ConcurrentMode=C,De.ContextConsumer=U,De.ContextProvider=M,De.Element=D,De.ForwardRef=q,De.Fragment=N,De.Lazy=L,De.Memo=B,De.Portal=Z,De.Profiler=k,De.StrictMode=Q,De.Suspense=J,De.isAsyncMode=ce,De.isConcurrentMode=G,De.isContextConsumer=te,De.isContextProvider=ne,De.isElement=ue,De.isForwardRef=ie,De.isFragment=he,De.isLazy=fe,De.isMemo=ve,De.isPortal=xe,De.isProfiler=Ae,De.isStrictMode=_e,De.isSuspense=ot,De.isValidElementType=E,De.typeOf=R})()),De}var Ug;function ny(){return Ug||(Ug=1,process.env.NODE_ENV==="production"?ea.exports=uC():ea.exports=lC()),ea.exports}/*
|
|
129
77
|
object-assign
|
|
130
78
|
(c) Sindre Sorhus
|
|
131
79
|
@license MIT
|
|
132
|
-
*/var
|
|
133
|
-
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Z=xe(ne,he,X,ue,ie+"."+he,r);if(Z)return Z}return null}return y(W)}function F(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(F);if(j===null||c(j))return!0;var W=p(j);if(W){var ee=W.call(j),Q;if(W!==j.entries){for(;!(Q=ee.next()).done;)if(!F(Q.value))return!1}else for(;!(Q=ee.next()).done;){var X=Q.value;if(X&&!F(X[1]))return!1}}else return!1;return!0;default:return!1}}function I(j,W){return j==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(j){var W=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":I(W,j)?"symbol":W}function te(j){if(typeof j>"u"||j===null)return""+j;var W=K(j);if(W==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return W}function Y(j){var W=te(j);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},vf}var mf,Ib;function sL(){if(Ib)return mf;Ib=1;var e=Fp();function t(){}function r(){}return r.resetWarningCache=t,mf=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},mf}var Nb;function aL(){if(Nb)return Xl.exports;if(Nb=1,process.env.NODE_ENV!=="production"){var e=Xx(),t=!0;Xl.exports=oL()(e.isElement,t)}else Xl.exports=sL()();return Xl.exports}var Mb;function lL(){return Mb||(Mb=1,(function(e){(function(t,r){r(e,N,aL())})(Yl,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 P=p(this,(O=x.__proto__||Object.getPrototypeOf(x)).call.apply(O,[this].concat(R)));return P._handleSwipeStart=P._handleSwipeStart.bind(P),P._handleSwipeMove=P._handleSwipeMove.bind(P),P._handleSwipeEnd=P._handleSwipeEnd.bind(P),P._onMouseDown=P._onMouseDown.bind(P),P._onMouseMove=P._onMouseMove.bind(P),P._onMouseUp=P._onMouseUp.bind(P),P._setSwiperRef=P._setSwiperRef.bind(P),P}return 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,P=R.y;this.moveStart={x:H,y:P},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var R=y(_),H=R.x,P=R.y,z=H-this.moveStart.x,U=P-this.moveStart.y;this.moving=!0;var $=this.props.onSwipeMove({x:z,y:U},_);$&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:z,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,P=_.children;_.allowMouseEvents,_.onSwipeUp,_.onSwipeDown,_.onSwipeLeft,_.onSwipeRight,_.onSwipeStart,_.onSwipeMove,_.onSwipeEnd,_.innerRef,_.tolerance;var z=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},z),P)}}]),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})})(Yl)),Yl}var Db;function Qx(){return Db||(Db=1,(function(e){(function(t,r){r(e,lL())})(Kl,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})})(Kl)),Kl}var $s={},Lb;function e1(){if(Lb)return $s;Lb=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=t(fx());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={},zb;function cL(){if(zb)return Fs;zb=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={},$b;function Hp(){if($b)return Hs;$b=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 Ws={},jb;function t1(){if(jb)return Ws;jb=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=function(){return window};return Ws.default=e,Ws}var Fb;function r1(){if(Fb)return js;Fb=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e=u(N),t=l(e1()),r=cL(),n=l(Hp()),i=l(Qx()),s=l(t1());function l(P){return P&&P.__esModule?P:{default:P}}function c(){if(typeof WeakMap!="function")return null;var P=new WeakMap;return c=function(){return P},P}function u(P){if(P&&P.__esModule)return P;if(P===null||f(P)!=="object"&&typeof P!="function")return{default:P};var z=c();if(z&&z.has(P))return z.get(P);var U={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in P)if(Object.prototype.hasOwnProperty.call(P,M)){var D=$?Object.getOwnPropertyDescriptor(P,M):null;D&&(D.get||D.set)?Object.defineProperty(U,M,D):U[M]=P[M]}return U.default=P,z&&z.set(P,U),U}function f(P){"@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(P)}function g(){return g=Object.assign||function(P){for(var z=1;z<arguments.length;z++){var U=arguments[z];for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&(P[$]=U[$])}return P},g.apply(this,arguments)}function p(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")}function h(P,z){for(var U=0;U<z.length;U++){var $=z[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(P,$.key,$)}}function b(P,z,U){return z&&h(P.prototype,z),P}function S(P,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(z&&z.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),z&&v(P,z)}function v(P,z){return v=Object.setPrototypeOf||function($,M){return $.__proto__=M,$},v(P,z)}function y(P){var z=x();return function(){var $=O(P),M;if(z){var D=O(this).constructor;M=Reflect.construct($,arguments,D)}else M=$.apply(this,arguments);return m(this,M)}}function m(P,z){return z&&(f(z)==="object"||typeof z=="function")?z:w(P)}function w(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(P){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},O(P)}function _(P,z,U){return z in P?Object.defineProperty(P,z,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[z]=U,P}var R=function(z){return z.hasOwnProperty("key")},H=(function(P){S(U,P);var z=y(U);function U($){var M;return p(this,U),M=z.call(this,$),_(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,I=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),K=Math.floor(F/I),te=K<D,Y=te?D-K:0;M.setState(function(ve,j){return{itemSize:I,visibleItems:K,firstItem:te?M.getFirstItem(j.selectedItem):0,lastPosition:Y,showArrows:te}})}}),_(w(M),"handleClickItem",function(D,F,I){if(!R(I)||I.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 I=0,K=e.Children.count(M.props.children),te=-(M.state.firstItem*100)/M.state.visibleItems,Y=Math.max(K-M.state.visibleItems,0),ve=-Y*100/M.state.visibleItems;te===I&&F>0&&(F=0),te===ve&&F<0&&(F=0);var j=M.itemsWrapperRef.clientWidth,W=te+100/(j/F);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ee){M.itemsListRef.style[ee]=(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:$.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 I=t.default.ITEM(!1,F===M.state.selectedItem),K={key:F,ref:function(Y){return M.setThumbsRef(Y,F)},className:I,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,I=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,K={},te=-this.state.firstItem*(this.state.itemSize||0),Y=(0,n.default)(te,"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(!I),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 Bs={},Hb;function uL(){if(Hb)return Bs;Hb=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=function(){return document};return Bs.default=e,Bs}var yr={},Wb;function n1(){if(Wb)return yr;Wb=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.setPosition=yr.getPosition=yr.isKeyboardEvent=yr.defaultStatusFormatter=yr.noop=void 0;var e=N,t=r(Hp());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};yr.noop=n;var i=function(f,g){return"".concat(f," of ").concat(g)};yr.defaultStatusFormatter=i;var s=function(f){return f?f.hasOwnProperty("key"):!1};yr.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};yr.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 yr.setPosition=c,yr}var Zr={},Bb;function dL(){if(Bb)return Zr;Bb=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.fadeAnimationHandler=Zr.slideStopSwipingHandler=Zr.slideSwipeAnimationHandler=Zr.slideAnimationHandler=void 0;var e=N,t=n(Hp()),r=n1();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};Zr.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 P=O+100/(S.itemSize/H),z=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&z&&(S.selectedItem===0&&P>-100?P-=w*100:S.selectedItem===w-1&&P<-w*100&&(P+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||z||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(P,b.axis)),z&&!S.cancelClick&&v({cancelClick:!0}),y};Zr.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}};Zr.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 Zr.fadeAnimationHandler=g,Zr}var Vb;function fL(){if(Vb)return zs;Vb=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=g(N),t=u(Qx()),r=u(e1()),n=u(r1()),i=u(uL()),s=u(t1()),l=n1(),c=dL();function u($){return $&&$.__esModule?$:{default:$}}function f(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return f=function(){return $},$}function g($){if($&&$.__esModule)return $;if($===null||p($)!=="object"&&typeof $!="function")return{default:$};var M=f();if(M&&M.has($))return M.get($);var D={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in $)if(Object.prototype.hasOwnProperty.call($,I)){var K=F?Object.getOwnPropertyDescriptor($,I):null;K&&(K.get||K.set)?Object.defineProperty(D,I,K):D[I]=$[I]}return D.default=$,M&&M.set($,D),D}function p($){"@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($)}function h(){return h=Object.assign||function($){for(var M=1;M<arguments.length;M++){var D=arguments[M];for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&($[F]=D[F])}return $},h.apply(this,arguments)}function b($,M){var D=Object.keys($);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols($);M&&(F=F.filter(function(I){return Object.getOwnPropertyDescriptor($,I).enumerable})),D.push.apply(D,F)}return D}function S($){for(var M=1;M<arguments.length;M++){var D=arguments[M]!=null?arguments[M]:{};M%2?b(Object(D),!0).forEach(function(F){z($,F,D[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(D)):b(Object(D)).forEach(function(F){Object.defineProperty($,F,Object.getOwnPropertyDescriptor(D,F))})}return $}function v($,M){if(!($ instanceof M))throw new TypeError("Cannot call a class as a function")}function y($,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($,F.key,F)}}function m($,M,D){return M&&y($.prototype,M),$}function w($,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(M&&M.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),M&&x($,M)}function x($,M){return x=Object.setPrototypeOf||function(F,I){return F.__proto__=I,F},x($,M)}function O($){var M=H();return function(){var F=P($),I;if(M){var K=P(this).constructor;I=Reflect.construct(F,arguments,K)}else I=F.apply(this,arguments);return _(this,I)}}function _($,M){return M&&(p(M)==="object"||typeof M=="function")?M:R($)}function R($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function 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 P($){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},P($)}function z($,M,D){return M in $?Object.defineProperty($,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):$[M]=D,$}var U=(function($){w(D,$);var M=O(D);function D(F){var I;v(this,D),I=M.call(this,F),z(R(I),"thumbsRef",void 0),z(R(I),"carouselWrapperRef",void 0),z(R(I),"listRef",void 0),z(R(I),"itemsRef",void 0),z(R(I),"timer",void 0),z(R(I),"animationHandler",void 0),z(R(I),"setThumbsRef",function(te){I.thumbsRef=te}),z(R(I),"setCarouselWrapperRef",function(te){I.carouselWrapperRef=te}),z(R(I),"setListRef",function(te){I.listRef=te}),z(R(I),"setItemsRef",function(te,Y){I.itemsRef||(I.itemsRef=[]),I.itemsRef[Y]=te}),z(R(I),"autoPlay",function(){e.Children.count(I.props.children)<=1||(I.clearAutoPlay(),I.props.autoPlay&&(I.timer=setTimeout(function(){I.increment()},I.props.interval)))}),z(R(I),"clearAutoPlay",function(){I.timer&&clearTimeout(I.timer)}),z(R(I),"resetAutoPlay",function(){I.clearAutoPlay(),I.autoPlay()}),z(R(I),"stopOnHover",function(){I.setState({isMouseEntered:!0},I.clearAutoPlay)}),z(R(I),"startOnLeave",function(){I.setState({isMouseEntered:!1},I.autoPlay)}),z(R(I),"isFocusWithinTheCarousel",function(){return I.carouselWrapperRef?!!((0,i.default)().activeElement===I.carouselWrapperRef||I.carouselWrapperRef.contains((0,i.default)().activeElement)):!1}),z(R(I),"navigateWithKeyboard",function(te){if(I.isFocusWithinTheCarousel()){var Y=I.props.axis,ve=Y==="horizontal",j={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},W=ve?j.ArrowRight:j.ArrowDown,ee=ve?j.ArrowLeft:j.ArrowUp;W===te.keyCode?I.increment():ee===te.keyCode&&I.decrement()}}),z(R(I),"updateSizes",function(){if(!(!I.state.initialized||!I.itemsRef||I.itemsRef.length===0)){var te=I.props.axis==="horizontal",Y=I.itemsRef[0];if(Y){var ve=te?Y.clientWidth:Y.clientHeight;I.setState({itemSize:ve}),I.thumbsRef&&I.thumbsRef.updateSizes()}}}),z(R(I),"setMountState",function(){I.setState({hasMount:!0}),I.updateSizes()}),z(R(I),"handleClickItem",function(te,Y){if(e.Children.count(I.props.children)!==0){if(I.state.cancelClick){I.setState({cancelClick:!1});return}I.props.onClickItem(te,Y),te!==I.state.selectedItem&&I.setState({selectedItem:te})}}),z(R(I),"handleOnChange",function(te,Y){e.Children.count(I.props.children)<=1||I.props.onChange(te,Y)}),z(R(I),"handleClickThumb",function(te,Y){I.props.onClickThumb(te,Y),I.moveTo(te)}),z(R(I),"onSwipeStart",function(te){I.setState({swiping:!0}),I.props.onSwipeStart(te)}),z(R(I),"onSwipeEnd",function(te){I.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),I.props.onSwipeEnd(te),I.clearAutoPlay(),I.state.autoPlay&&I.autoPlay()}),z(R(I),"onSwipeMove",function(te,Y){I.props.onSwipeMove(Y);var ve=I.props.swipeAnimationHandler(te,I.props,I.state,I.setState.bind(R(I)));return I.setState(S({},ve)),!!Object.keys(ve).length}),z(R(I),"decrement",function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem-(typeof te=="number"?te:1))}),z(R(I),"increment",function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem+(typeof te=="number"?te:1))}),z(R(I),"moveTo",function(te){if(typeof te=="number"){var Y=e.Children.count(I.props.children)-1;te<0&&(te=I.props.infiniteLoop?Y:0),te>Y&&(te=I.props.infiniteLoop?0:Y),I.selectItem({selectedItem:te}),I.state.autoPlay&&I.state.isMouseEntered===!1&&I.resetAutoPlay()}}),z(R(I),"onClickNext",function(){I.increment(1)}),z(R(I),"onClickPrev",function(){I.decrement(1)}),z(R(I),"onSwipeForward",function(){I.increment(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),z(R(I),"onSwipeBackwards",function(){I.decrement(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),z(R(I),"changeItem",function(te){return function(Y){(!(0,l.isKeyboardEvent)(Y)||Y.key==="Enter")&&I.moveTo(te)}}),z(R(I),"selectItem",function(te){I.setState(S({previousItem:I.state.selectedItem},te),function(){I.setState(I.animationHandler(I.props,I.state))}),I.handleOnChange(te.selectedItem,e.Children.toArray(I.props.children)[te.selectedItem])}),z(R(I),"getInitialImage",function(){var te=I.props.selectedItem,Y=I.itemsRef&&I.itemsRef[te],ve=Y&&Y.getElementsByTagName("img")||[];return ve[0]}),z(R(I),"getVariableItemHeight",function(te){var Y=I.itemsRef&&I.itemsRef[te];if(I.state.hasMount&&Y&&Y.children.length){var ve=Y.children[0].getElementsByTagName("img")||[];if(ve.length>0){var j=ve[0];if(!j.complete){var W=function X(){I.forceUpdate(),j.removeEventListener("load",X)};j.addEventListener("load",W)}}var ee=ve[0]||Y.children[0],Q=ee.clientHeight;return Q>0?Q: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 I.animationHandler=typeof F.animationHandler=="function"&&F.animationHandler||F.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,I.state=S(S({},K),I.animationHandler(F,K)),I}return m(D,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(I,K){!I.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!I.autoFocus&&this.props.autoFocus&&this.forceFocus(),K.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(I.selectedItem!==this.props.selectedItem||I.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),I.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var I=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var K=I.getInitialImage();K&&!K.complete?K.addEventListener("load",I.setMountState):I.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.addEventListener("mouseenter",this.stopOnHover),I.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.removeEventListener("mouseenter",this.stopOnHover),I.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,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 I=this.getInitialImage();I&&I.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,i.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var I;(I=this.carouselWrapperRef)===null||I===void 0||I.focus()}},{key:"renderItems",value:function(I){var K=this;return this.props.children?e.Children.map(this.props.children,function(te,Y){var ve=Y===K.state.selectedItem,j=Y===K.state.previousItem,W=ve&&K.state.selectedStyle||j&&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 ee={ref:function(X){return K.setItemsRef(X,Y)},key:"itemKey"+Y+(I?"clone":""),className:r.default.ITEM(!0,Y===K.state.selectedItem,Y===K.state.previousItem),onClick:K.handleClickItem.bind(K,Y,te),style:W};return e.default.createElement("li",ee,K.props.renderItem(te,{isSelected:Y===K.state.selectedItem,isPrevious:Y===K.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var I=this,K=this.props,te=K.showIndicators,Y=K.labels,ve=K.renderIndicator,j=K.children;return te?e.default.createElement("ul",{className:"control-dots"},e.Children.map(j,function(W,ee){return ve&&ve(I.changeItem(ee),ee===I.state.selectedItem,ee,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 I=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var K=this.props.swipeable&&e.Children.count(this.props.children)>1,te=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,j=Y&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,W=this.renderItems(!0),ee=W.shift(),Q=W.pop(),X={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},ue={};if(te){if(X.onSwipeLeft=this.onSwipeForward,X.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ie=this.getVariableItemHeight(this.state.selectedItem);ue.height=ie||"auto"}}else X.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,X.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,X.style=S(S({},X.style),{},{height:this.state.itemSize}),ue.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:ue},K?e.default.createElement(t.default,h({tagName:"ul",innerRef:this.setListRef},X,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&Q,this.renderItems(),this.props.infiniteLoop&&ee):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(de){return I.setListRef(de)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&Q,this.renderItems(),this.props.infiniteLoop&&ee)),this.props.renderArrowNext(this.onClickNext,j,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),D})(e.default.Component);return zs.default=U,z(U,"displayName","Carousel"),z(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,I){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(I," ").concat(F+1)})},renderItem:function(M){return M},renderThumbs:function(M){var D=e.Children.map(M,function(F){var I=F;if(F.type!=="img"&&(I=e.Children.toArray(F.props.children).find(function(K){return K.type==="img"})),!!I)return I});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 Ub={},qb;function pL(){return qb||(qb=1),Ub}var Gb;function hL(){return Gb||(Gb=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(r1());function i(s){return s&&s.__esModule?s:{default:s}}})(df)),df}var gL=hL();const vL=({tip:e})=>A.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:i1(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(Pc,{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(Jy,{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(Pc,{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(Jy,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),i1=(e,t)=>{switch(e.type){case wc.TEXT:return A.jsx(bL,{body:e.body,isInsideCarousel:t});case wc.VIDEO:return A.jsx(yL,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case wc.CAROUSEL:return A.jsx(mL,{pages:e.pages})}},o1=N.createContext(void 0);function Zb(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)=>Zb(u,p.key).length>1?{...g,[p.key]:{type:"carousel",pages:Zb(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(o1.Provider,{value:{tips:n,toggleTips:l,show:i,enabled:t},children:e})},s1=e=>{const t=N.useContext(o1);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)`
|
|
80
|
+
*/var Ul,Bg;function cC(){if(Bg)return Ul;Bg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(y){return u[y]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ul=s()?Object.assign:function(a,u){for(var c,f=i(a),m,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var p in c)t.call(c,p)&&(f[p]=c[p]);if(e){m=e(c);for(var g=0;g<m.length;g++)r.call(c,m[g])&&(f[m[g]]=c[m[g]])}}return f},Ul}var Bl,Hg;function of(){if(Hg)return Bl;Hg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bl=e,Bl}var Hl,qg;function iy(){return qg||(qg=1,Hl=Function.call.bind(Object.prototype.hasOwnProperty)),Hl}var ql,Zg;function fC(){if(Zg)return ql;Zg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=of(),r={},i=iy();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,m){if(process.env.NODE_ENV!=="production"){for(var y in a)if(i(a,y)){var p;try{if(typeof a[y]!="function"){var g=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=a[y](u,y,f,c,null,t)}catch(x){p=x}if(p&&!(p instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+y+"` 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 v=m?m():"";e("Failed "+c+" type: "+p.message+(v??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ql=s,ql}var Zl,Gg;function dC(){if(Gg)return Zl;Gg=1;var e=ny(),t=cC(),r=of(),i=iy(),s=fC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return Zl=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function p(G){var te=G&&(m&&G[m]||G[y]);if(typeof te=="function")return te}var g="<<anonymous>>",v={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:C,node:q(),objectOf:M,oneOf:U,oneOfType:D,shape:L,exact:B};function x(G,te){return G===te?G!==0||1/G===1/te:G!==G&&te!==te}function d(G,te){this.message=G,this.data=te&&typeof te=="object"?te:{},this.stack=""}d.prototype=Error.prototype;function w(G){if(process.env.NODE_ENV!=="production")var te={},ne=0;function ue(he,fe,ve,xe,Ae,_e,ot){if(xe=xe||g,_e=_e||ve,ot!==r){if(f){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ct=xe+":"+ve;!te[ct]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+_e+"` prop on `"+xe+"`. 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."),te[ct]=!0,ne++)}}return fe[ve]==null?he?fe[ve]===null?new d("The "+Ae+" `"+_e+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new d("The "+Ae+" `"+_e+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:G(fe,ve,xe,Ae,_e)}var ie=ue.bind(null,!1);return ie.isRequired=ue.bind(null,!0),ie}function h(G){function te(ne,ue,ie,he,fe,ve){var xe=ne[ue],Ae=Q(xe);if(Ae!==G){var _e=J(xe);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+_e+"` supplied to `"+ie+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return w(te)}function S(){return w(u)}function E(G){function te(ne,ue,ie,he,fe){if(typeof G!="function")return new d("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside arrayOf.");var ve=ne[ue];if(!Array.isArray(ve)){var xe=Q(ve);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an array."))}for(var Ae=0;Ae<ve.length;Ae++){var _e=G(ve,Ae,ie,he,fe+"["+Ae+"]",r);if(_e instanceof Error)return _e}return null}return w(te)}function R(){function G(te,ne,ue,ie,he){var fe=te[ne];if(!c(fe)){var ve=Q(fe);return new d("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(G)}function O(){function G(te,ne,ue,ie,he){var fe=te[ne];if(!e.isValidElementType(fe)){var ve=Q(fe);return new d("Invalid "+ie+" `"+he+"` of type "+("`"+ve+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(G)}function C(G){function te(ne,ue,ie,he,fe){if(!(ne[ue]instanceof G)){var ve=G.name||g,xe=ce(ne[ue]);return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected ")+("instance of `"+ve+"`."))}return null}return w(te)}function U(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function te(ne,ue,ie,he,fe){for(var ve=ne[ue],xe=0;xe<G.length;xe++)if(x(ve,G[xe]))return null;var Ae=JSON.stringify(G,function(ot,oe){var ct=J(oe);return ct==="symbol"?String(oe):oe});return new d("Invalid "+he+" `"+fe+"` of value `"+String(ve)+"` "+("supplied to `"+ie+"`, expected one of "+Ae+"."))}return w(te)}function M(G){function te(ne,ue,ie,he,fe){if(typeof G!="function")return new d("Property `"+fe+"` of component `"+ie+"` has invalid PropType notation inside objectOf.");var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+ie+"`, expected an object."));for(var Ae in ve)if(i(ve,Ae)){var _e=G(ve,Ae,ie,he,fe+"."+Ae,r);if(_e instanceof Error)return _e}return null}return w(te)}function D(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var te=0;te<G.length;te++){var ne=G[te];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ne)+" at index "+te+"."),u}function ue(ie,he,fe,ve,xe){for(var Ae=[],_e=0;_e<G.length;_e++){var ot=G[_e],oe=ot(ie,he,fe,ve,xe,r);if(oe==null)return null;oe.data&&i(oe.data,"expectedType")&&Ae.push(oe.data.expectedType)}var ct=Ae.length>0?", expected one of type ["+Ae.join(", ")+"]":"";return new d("Invalid "+ve+" `"+xe+"` supplied to "+("`"+fe+"`"+ct+"."))}return w(ue)}function q(){function G(te,ne,ue,ie,he){return Z(te[ne])?null:new d("Invalid "+ie+" `"+he+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(G)}function N(G,te,ne,ue,ie){return new d((G||"React class")+": "+te+" type `"+ne+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ie+"`.")}function L(G){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));for(var Ae in G){var _e=G[Ae];if(typeof _e!="function")return N(ie,he,fe,Ae,J(_e));var ot=_e(ve,Ae,ie,he,fe+"."+Ae,r);if(ot)return ot}return null}return w(te)}function B(G){function te(ne,ue,ie,he,fe){var ve=ne[ue],xe=Q(ve);if(xe!=="object")return new d("Invalid "+he+" `"+fe+"` of type `"+xe+"` "+("supplied to `"+ie+"`, expected `object`."));var Ae=t({},ne[ue],G);for(var _e in Ae){var ot=G[_e];if(i(G,_e)&&typeof ot!="function")return N(ie,he,fe,_e,J(ot));if(!ot)return new d("Invalid "+he+" `"+fe+"` key `"+_e+"` supplied to `"+ie+"`.\nBad object: "+JSON.stringify(ne[ue],null," ")+`
|
|
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},Zl}var Gl,Kg;function pC(){if(Kg)return Gl;Kg=1;var e=of();function t(){}function r(){}return r.resetWarningCache=t,Gl=function(){function i(u,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},Gl}var Vg;function hC(){if(Vg)return Qs.exports;if(Vg=1,process.env.NODE_ENV!=="production"){var e=ny(),t=!0;Qs.exports=dC()(e.isElement,t)}else Qs.exports=pC()();return Qs.exports}var Xg;function gC(){return Xg||(Xg=1,(function(e){(function(t,r){r(e,W,hC())})(Js,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=u(r),a=u(i);function u(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 Yg;function oy(){return Yg||(Yg=1,(function(e){(function(t,r){r(e,gC())})(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={},Jg;function sy(){if(Jg)return ao;Jg=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,u){return a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,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,u){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":u==="horizontal","axis-vertical":u!=="horizontal"})},SLIDER:function(a,u){return(0,e.default)({thumbs:!a,slider:a,animated:!u})},ITEM:function(a,u,c){return(0,e.default)({thumb:!a,slide:a,selected:u,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={},Qg;function mC(){if(Qg)return lo;Qg=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={},em;function sf(){if(em)return co;em=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,u=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+u.join(",")+")";return c+f};return co.default=e,co}var fo={},tm;function ay(){if(tm)return fo;tm=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e=function(){return window};return fo.default=e,fo}var rm;function uy(){if(rm)return uo;rm=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=f(W),t=u(sy()),r=mC(),i=u(sf()),s=u(oy()),a=u(ay());function u(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={},nm;function vC(){if(nm)return po;nm=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=function(){return document};return po.default=e,po}var Ht={},im;function ly(){if(im)return Ht;im=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.setPosition=Ht.getPosition=Ht.isKeyboardEvent=Ht.defaultStatusFormatter=Ht.noop=void 0;var e=W,t=r(sf());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 u=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=u;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={},om;function yC(){if(om)return pr;om=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.fadeAnimationHandler=pr.slideStopSwipingHandler=pr.slideSwipeAnimationHandler=pr.slideAnimationHandler=void 0;var e=W,t=i(sf()),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){u(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 u(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 sm;function bC(){if(sm)return so;sm=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(vC()),a=f(ay()),u=ly(),c=yC();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,u.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:u.noop,onClickThumb:u.noop,onChange:u.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:u.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 am={},um;function wC(){return um||(um=1),am}var lm;function xC(){return lm||(lm=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(bC()),r=wC(),i=s(uy());function s(a){return a&&a.__esModule?a:{default:a}}})(Wl)),Wl}var SC=xC();const EC=({tip:e})=>F.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:cy(e,!0)}),_C=({pages:e})=>F.jsx("div",{className:"min-h-[10rem] w-96",children:F.jsx(SC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>F.jsx(EC,{tip:t},t.key))})}),OC=({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(wa,{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"})]})}}}})}),AC=({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(wa,{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(OC,{body:e.body,isInsideCarousel:t});case ha.VIDEO:return F.jsx(AC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ha.CAROUSEL:return F.jsx(_C,{pages:e.pages})}},fy=W.createContext(void 0);function cm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const TC=({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)=>cm(f,p.key).length>1?{...y,[p.key]:{type:"carousel",pages:cm(f,p.key)}}:{...y,[p.key]:p},{});a(y=>({...y,tips:m}))})}catch{}return()=>{c.abort()}},[]);const u=()=>{a(c=>({...c,show:!s}))};return F.jsx(fy.Provider,{value:{tips:i,toggleTips:u,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}},RC=xa(sC)`
|
|
134
82
|
&[data-state='open'] > * {
|
|
135
83
|
display: block !important;
|
|
136
84
|
}
|
|
137
|
-
`,
|
|
138
|
-
|
|
139
|
-
`)
|
|
140
|
-
`)}var Dc=class{constructor(t){Te(this,"options");Te(this,"rules");Te(this,"lexer");this.options=t||Zi}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
|
-
|
|
142
|
-
`)}}
|
|
85
|
+
`,py=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=dy(e),[u,c]=W.useState(!1),f=W.useRef(null);return W.useEffect(()=>{if(f.current){const m=new IntersectionObserver(y=>{y[0].isIntersecting||c(!1)});return m.observe(f.current),()=>{f.current&&m.unobserve(f.current)}}},[]),s&&a?F.jsxs(oC,{open:u,onOpenChange:c,children:[F.jsx(RC,{ref:f,className:He("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:m=>m.stopPropagation(),children:F.jsx("span",{className:He("group-hover:block",{hidden:!r}),children:F.jsx(tt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),F.jsx(aC,{side:t,sideOffset:5,onClick:m=>m.stopPropagation(),children:F.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:cy(s)})})]}):null};var PC=Object.defineProperty,CC=(e,t,r)=>t in e?PC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kl=(e,t,r)=>(CC(e,typeof t!="symbol"?t+"":t,r),r);let kC=class{constructor(){Kl(this,"current",this.detect()),Kl(this,"handoffState","pending"),Kl(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"}},bi=new kC,Lr=(e,t)=>{bi.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function wi(e){let t=W.useRef(e);return Lr(()=>{t.current=e},[e]),t}let Et=function(e){let t=wi(e);return W.useCallback((...r)=>t.current(...r),[t])};function $C(e,t,r){let[i,s]=W.useState(r),a=e!==void 0,u=W.useRef(a),c=W.useRef(!1),f=W.useRef(!1);return a&&!u.current&&!c.current?(c.current=!0,u.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&u.current&&!f.current&&(f.current=!0,u.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:i,Et(m=>(a||s(m),t==null?void 0:t(m)))]}function IC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ho(){let e=[],t={addEventListener(r,i,s,a){return r.addEventListener(i,s,a),t.add(()=>r.removeEventListener(i,s,a))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return IC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,s){let a=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:s}),this.add(()=>{Object.assign(r.style,{[i]:a})})},group(r){let i=Ho();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function af(){let[e]=W.useState(Ho);return W.useEffect(()=>()=>e.dispose(),[e]),e}function LC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function uf(){let e=LC(),[t,r]=$.useState(bi.isHandoffComplete);return t&&bi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>bi.handoff(),[]),e?!1:t}var fm;let lf=(fm=W.useId)!=null?fm:function(){let e=uf(),[t,r]=W.useState(e?()=>bi.nextId():null);return Lr(()=>{t===null&&r(bi.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Cr),i}function dm(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function MC(e,t){let[r,i]=W.useState(()=>dm(e));return Lr(()=>{i(dm(e))},[e.type,e.as]),Lr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let FC=Symbol();function qo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=Et(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[FC]))?void 0:r}function Ea(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var hy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hy||{}),bn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(bn||{});function Kn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:u,mergeRefs:c}){c=c??DC;let f=gy(t,e);if(a)return ta(f,r,i,u,c);let m=s??0;if(m&2){let{static:y=!1,...p}=f;if(y)return ta(p,r,i,u,c)}if(m&1){let{unmount:y=!0,...p}=f;return Cr(y?0:1,{0(){return null},1(){return ta({...p,hidden:!0,style:{display:"none"}},r,i,u,c)}})}return ta(f,r,i,u,c)}function ta(e,t={},r,i,s){let{as:a=r,children:u,refName:c="ref",...f}=Vl(e,["unmount","static"]),m=e.ref!==void 0?{[c]:e.ref}:{},y=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let p={};if(t){let g=!1,v=[];for(let[x,d]of Object.entries(t))typeof d=="boolean"&&(g=!0),d===!0&&v.push(x);g&&(p["data-headlessui-state"]=v.join(" "))}if(a===W.Fragment&&Object.keys(xc(f)).length>0){if(!W.isValidElement(y)||Array.isArray(y)&&y.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(d=>` - ${d}`).join(`
|
|
86
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
|
87
|
+
`)].join(`
|
|
88
|
+
`));let g=y.props,v=typeof(g==null?void 0:g.className)=="function"?(...d)=>Ea(g==null?void 0:g.className(...d),f.className):Ea(g==null?void 0:g.className,f.className),x=v?{className:v}:{};return W.cloneElement(y,Object.assign({},gy(y.props,xc(Vl(f,["ref"]))),p,m,{ref:s(y.ref,m.ref)},x))}return W.createElement(a,Object.assign({},Vl(f,["ref"]),a!==W.Fragment&&m,a!==W.Fragment&&p),y)}function DC(...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 u=r[i];for(let c of u){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 xc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Vl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let NC="div";var my=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(my||{});function jC(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:NC,name:"Hidden"})}let zC=Vn(jC),cf=W.createContext(null);cf.displayName="OpenClosedContext";var Kr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kr||{});function vy(){return W.useContext(cf)}function WC({value:e,children:t}){return W.createElement(cf.Provider,{value:e},t)}function UC(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&&BC(r)?!1:i}function BC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function HC(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 Sc=(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))(Sc||{});function ff(){let e=W.useRef(!1);return Lr(()=>(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 qC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.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 ZC="p";function GC(e,t){let r=lf(),{id:i=`headlessui-description-${r}`,...s}=e,a=by(),u=qo(t);Lr(()=>a.register(i),[i,a.register]);let c={ref:u,...a.props,id:i};return Kn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:ZC,name:a.name||"Description"})}let KC=Vn(GC),VC=Object.assign(KC,{}),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 XC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=Et(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.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 YC="label";function JC(e,t){let r=lf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=xy(),c=qo(t);Lr(()=>u.register(i),[i,u.register]);let f={ref:c,...u.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:u.slot||{},defaultTag:YC,name:u.name||"Label"})}let QC=Vn(JC),ek=Object.assign(QC,{});function tk(e=0){let[t,r]=W.useState(e),i=ff(),s=W.useCallback(f=>{i.current&&r(m=>m|f)},[t,i]),a=W.useCallback(f=>!!(t&f),[t]),u=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:u,toggleFlag:c}}let df=W.createContext(null);df.displayName="GroupContext";let rk=W.Fragment;function nk(e){var t;let[r,i]=W.useState(null),[s,a]=XC(),[u,c]=qC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),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(df.Provider,{value:f},Kn({ourProps:m,theirProps:y,defaultTag:rk,name:"Switch.Group"}))))}let ik="button";function ok(e,t){var r;let i=lf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:c,disabled:f=!1,name:m,value:y,form:p,...g}=e,v=W.useContext(df),x=W.useRef(null),d=qo(x,t,v===null?null:v.setSwitch),[w,h]=$C(a,c,u),S=Et(()=>h==null?void 0:h(!w)),E=Et(D=>{if(UC(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),R=Et(D=>{D.key===Sc.Space?(D.preventDefault(),S()):D.key===Sc.Enter&&HC(D.currentTarget)}),O=Et(D=>D.preventDefault()),C=W.useMemo(()=>({checked:w}),[w]),U={id:s,ref:d,role:"switch",type:MC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":v==null?void 0:v.labelledby,"aria-describedby":v==null?void 0:v.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=af();return W.useEffect(()=>{var D;let q=(D=x.current)==null?void 0:D.closest("form");q&&u!==void 0&&M.addEventListener(q,"reset",()=>{h(u)})},[x,h]),W.createElement(W.Fragment,null,m!=null&&w&&W.createElement(zC,{features:my.Hidden,...xc({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:ik,name:"Switch"}))}let sk=Vn(ok),ak=nk,uk=Object.assign(sk,{Group:ak,Label:ek,Description:VC});function lk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Xl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ck(e,t){let r=Ho();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,u]=[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+u;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 fk(e,t,r,i){let s=r?"enter":"leave",a=Ho(),u=i!==void 0?lk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Cr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Cr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Cr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Yl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xl(e,...t.base,...c,...m),a.nextFrame(()=>{Yl(e,...t.base,...c,...m),Xl(e,...t.base,...c,...f),ck(e,()=>(Yl(e,...t.base,...c),Xl(e,...t.base,...t.entered),u()))}),a.dispose}function dk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=ff(),c=af(),f=wi(r);Lr(()=>{e&&(f.current="enter")},[e]),Lr(()=>{let m=Ho();c.add(m.dispose);let y=t.current;if(y&&f.current!=="idle"&&u.current)return m.dispose(),s.current(f.current),m.add(fk(y,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function gn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ua=W.createContext(null);Ua.displayName="TransitionContext";var pk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(pk||{});function hk(){let e=W.useContext(Ua);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function gk(){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}let Ba=W.createContext(null);Ba.displayName="NestingContext";function Ha(e){return"children"in e?Ha(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=ff(),a=af(),u=Et((v,x=bn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===v);d!==-1&&(Cr(x,{[bn.Unmount](){i.current.splice(d,1)},[bn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!Ha(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"}),()=>u(v,bn.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:u,onStart:p,onStop:g,wait:m,chains:y}),[c,u,i,p,g,y,m])}function mk(){}let vk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function pm(e){var t;let r={};for(let i of vk)r[i]=(t=e[i])!=null?t:mk;return r}function yk(e){let t=W.useRef(pm(e));return W.useEffect(()=>{t.current=pm(e)},[e]),t}let bk="div",Ey=hy.RenderStrategy;function wk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,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?bn.Unmount:bn.Hidden,{show:E,appear:R,initial:O}=hk(),[C,U]=W.useState(E?"visible":"hidden"),M=gk(),{register:D,unregister:q}=M;W.useEffect(()=>D(w),[D,w]),W.useEffect(()=>{if(S===bn.Hidden&&w.current){if(E&&C!=="visible"){U("visible");return}return Cr(C,{hidden:()=>q(w),visible:()=>D(w)})}},[C,w,D,q,E,S]);let N=wi({base:gn(d.className),enter:gn(f),enterFrom:gn(m),enterTo:gn(y),entered:gn(p),leave:gn(g),leaveFrom:gn(v),leaveTo:gn(x)}),L=yk({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c}),B=uf();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=tk(0),re=Et(ie=>Cr(ie,{enter:()=>{J.addFlag(Kr.Opening),L.current.beforeEnter()},leave:()=>{J.addFlag(Kr.Closing),L.current.beforeLeave()},idle:()=>{}})),ce=Et(ie=>Cr(ie,{enter:()=>{J.removeFlag(Kr.Opening),L.current.afterEnter()},leave:()=>{J.removeFlag(Kr.Closing),L.current.afterLeave()},idle:()=>{}})),G=Sy(()=>{U("hidden"),q(w)},M),te=W.useRef(!1);dk({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"&&!Ha(G)&&(U("hidden"),q(w))})});let ne=d,ue={ref:h};return k?ne={...ne,className:Ea(d.className,...N.current.enter,...N.current.enterFrom)}:te.current&&(ne.className=Ea(d.className,(i=w.current)==null?void 0:i.className),ne.className===""&&delete ne.className),W.createElement(Ba.Provider,{value:G},W.createElement(WC,{value:Cr(C,{visible:Kr.Open,hidden:Kr.Closed})|J.flags},Kn({ourProps:ue,theirProps:ne,defaultTag:bk,features:Ey,visible:C==="visible",name:"Transition.Child"})))}function xk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=W.useRef(null),c=qo(u,t);uf();let f=vy();if(r===void 0&&f!==null&&(r=(f&Kr.Open)===Kr.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]);Lr(()=>{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(!Ha(p))y("hidden");else{let E=u.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(Ba.Provider,{value:p},W.createElement(Ua.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 Sk(e,t){let r=W.useContext(Ua)!==null,i=vy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(Ec,{ref:t,...e}):W.createElement(_y,{ref:t,...e}))}let Ec=Vn(xk),_y=Vn(wk),Ek=Vn(Sk),_a=Object.assign(Ec,{Child:Ek,Root:Ec});const Jl={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 u=c=>{e(c)};return F.jsx("div",{className:He("flex items-center",i),children:F.jsx(uk,{as:"span",ref:a,checked:t,onChange:u,onKeyDown:c=>{c.key==="Enter"&&u(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
+
relative inline-flex shrink-0 ${Jl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:F.jsx("span",{"aria-hidden":"true",className:`${t?Jl[r].translate:"translate-x-0"}
|
|
90
|
+
pointer-events-none inline-block ${Jl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function pf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xn=pf();function Ay(e){Xn=e}var Ro={exec:()=>null};function ke(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let u=typeof a=="string"?a:a.source;return u=u.replace(Rt.caret,"$1"),r=r.replace(s,u),i},getRegex:()=>new RegExp(r,t)};return i}var _k=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ok=/^(?:[ \t]*(?:\n|$))+/,Ak=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Tk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Rk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hf=/(?:[*+-]|\d{1,9}[.)])/,Ty=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ry=ke(Ty).replace(/bull/g,hf).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(),Pk=ke(Ty).replace(/bull/g,hf).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(),gf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ck=/^[^\n]+/,mf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kk=ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$k=ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hf).getRegex(),qa="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",vf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ik=ke("^ {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",vf).replace("tag",qa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Py=ke(gf).replace("hr",Zo).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",qa).getRegex(),Lk=ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Py).getRegex(),yf={blockquote:Lk,code:Ak,def:kk,fences:Tk,heading:Rk,hr:Zo,html:Ik,lheading:Ry,list:$k,newline:Ok,paragraph:Py,table:Ro,text:Ck},hm=ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zo).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",qa).getRegex(),Mk={...yf,lheading:Pk,table:hm,paragraph:ke(gf).replace("hr",Zo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hm).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",qa).getRegex()},Fk={...yf,html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vf).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:Ro,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ke(gf).replace("hr",Zo).replace("heading",` *#{1,6} *[^
|
|
91
|
+
]`).replace("lheading",Ry).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Nk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cy=/^( {2,}|\\)\n(?!\s*$)/,jk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Za=/[\p{P}\p{S}]/u,bf=/[\s\p{P}\p{S}]/u,ky=/[^\s\p{P}\p{S}]/u,zk=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,bf).getRegex(),$y=/(?!~)[\p{P}\p{S}]/u,Wk=/(?!~)[\s\p{P}\p{S}]/u,Uk=/(?:[^\s\p{P}\p{S}]|~)/u,Bk=ke(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_k?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Iy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Hk=ke(Iy,"u").replace(/punct/g,Za).getRegex(),qk=ke(Iy,"u").replace(/punct/g,$y).getRegex(),Ly="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zk=ke(Ly,"gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,bf).replace(/punct/g,Za).getRegex(),Gk=ke(Ly,"gu").replace(/notPunctSpace/g,Uk).replace(/punctSpace/g,Wk).replace(/punct/g,$y).getRegex(),Kk=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ky).replace(/punctSpace/g,bf).replace(/punct/g,Za).getRegex(),Vk=ke(/\\(punct)/,"gu").replace(/punct/g,Za).getRegex(),Xk=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(),Yk=ke(vf).replace("(?:-->|$)","-->").getRegex(),Jk=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",Yk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Oa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Qk=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Oa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),My=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",Oa).replace("ref",mf).getRegex(),Fy=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",mf).getRegex(),e$=ke("reflink|nolink(?!\\()","g").replace("reflink",My).replace("nolink",Fy).getRegex(),gm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wf={_backpedal:Ro,anyPunctuation:Vk,autolink:Xk,blockSkip:Bk,br:Cy,code:Nk,del:Ro,emStrongLDelim:Hk,emStrongRDelimAst:Zk,emStrongRDelimUnd:Kk,escape:Dk,link:Qk,nolink:Fy,punctuation:zk,reflink:My,reflinkSearch:e$,tag:Jk,text:jk,url:Ro},t$={...wf,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Oa).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oa).getRegex()},_c={...wf,emStrongRDelimAst:Gk,emStrongLDelim:qk,url:ke(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gm).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",gm).getRegex()},r$={..._c,br:ke(Cy).replace("{2,}","*").getRegex(),text:ke(_c.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ra={normal:yf,gfm:Mk,pedantic:Fk},ho={normal:wf,gfm:_c,breaks:r$,pedantic:t$},n$={"&":"&","<":"<",">":">",'"':""","'":"'"},mm=e=>n$[e];function _r(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,mm)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,mm);return e}function vm(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function ym(e,t){var a;let r=e.replace(Rt.findPipe,(u,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 i$(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 bm(e,t,r,i,s){let a=t.href,u=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:u,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function o$(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 u=a.match(r.other.beginningSpace);if(u===null)return a;let[c]=u;return c.length>=s.length?a.slice(s.length):a}).join(`
|
|
93
|
+
`)}var Aa=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=o$(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],`
|
|
143
96
|
`).split(`
|
|
144
|
-
`),
|
|
145
|
-
`),p=
|
|
146
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
147
|
-
${
|
|
148
|
-
${p}`:p;let
|
|
149
|
-
`+
|
|
150
|
-
`),
|
|
151
|
-
`+
|
|
152
|
-
`),
|
|
153
|
-
`);continue}}return{type:"blockquote",raw:
|
|
154
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
155
|
-
`,1)[0],
|
|
156
|
-
`,t=t.substring(
|
|
157
|
-
`,1)[0],
|
|
158
|
-
`+
|
|
159
|
-
`+
|
|
160
|
-
`,t=t.substring(
|
|
161
|
-
`):[],
|
|
162
|
-
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:
|
|
163
|
-
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let
|
|
164
|
-
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let
|
|
97
|
+
`),s="",a="",u=[];for(;i.length>0;){let c=!1,f=[],m;for(m=0;m<i.length;m++)if(this.rules.other.blockquoteStart.test(i[m]))f.push(i[m]),c=!0;else if(!c)f.push(i[m]);else break;i=i.slice(m);let y=f.join(`
|
|
98
|
+
`),p=y.replace(this.rules.other.blockquoteSetextReplace,`
|
|
99
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
100
|
+
${y}`:y,a=a?`${a}
|
|
101
|
+
${p}`:p;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,u,!0),this.lexer.state.top=g,i.length===0)break;let v=u.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){let x=v,d=x.raw+`
|
|
102
|
+
`+i.join(`
|
|
103
|
+
`),w=this.blockquote(d);u[u.length-1]=w,s=s.substring(0,s.length-x.raw.length)+w.raw,a=a.substring(0,a.length-x.text.length)+w.text;break}else if((v==null?void 0:v.type)==="list"){let x=v,d=x.raw+`
|
|
104
|
+
`+i.join(`
|
|
105
|
+
`),w=this.list(d);u[u.length-1]=w,s=s.substring(0,s.length-v.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=d.substring(u.at(-1).raw.length).split(`
|
|
106
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let u=this.rules.other.listItemRegex(i),c=!1;for(;t;){let m=!1,y="",p="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;y=r[0],t=t.substring(y.length);let g=r[2].split(`
|
|
107
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),v=t.split(`
|
|
108
|
+
`,1)[0],x=!g.trim(),d=0;if(this.options.pedantic?(d=2,p=g.trimStart()):x?d=r[1].length+1:(d=r[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,p=g.slice(d),d+=r[1].length),x&&this.rules.other.blankLine.test(v)&&(y+=v+`
|
|
109
|
+
`,t=t.substring(v.length+1),m=!0),!m){let S=this.rules.other.nextBulletRegex(d),E=this.rules.other.hrRegex(d),R=this.rules.other.fencesBeginRegex(d),O=this.rules.other.headingBeginRegex(d),C=this.rules.other.htmlBeginRegex(d);for(;t;){let U=t.split(`
|
|
110
|
+
`,1)[0],M;if(v=U,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),M=v):M=v.replace(this.rules.other.tabCharGlobal," "),R.test(v)||O.test(v)||C.test(v)||S.test(v)||E.test(v))break;if(M.search(this.rules.other.nonSpaceChar)>=d||!v.trim())p+=`
|
|
111
|
+
`+M.slice(d);else{if(x||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(g)||O.test(g)||E.test(g))break;p+=`
|
|
112
|
+
`+v}!x&&!v.trim()&&(x=!0),y+=U+`
|
|
113
|
+
`,t=t.substring(U.length+1),g=M.slice(d)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(c=!0));let w=null,h;this.options.gfm&&(w=this.rules.other.listIsTask.exec(p),w&&(h=w[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:y,task:!!w,checked:h,loose:!1,text:p,tokens:[]}),a.raw+=y}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let m=0;m<a.items.length;m++)if(this.lexer.state.top=!1,a.items[m].tokens=this.lexer.blockTokens(a.items[m].text,[]),!a.loose){let y=a.items[m].tokens.filter(g=>g.type==="space"),p=y.length>0&&y.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=p}if(a.loose)for(let m=0;m<a.items.length;m++)a.items[m].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=ym(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
114
|
+
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<i.length;f++)u.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:u.align[f]});for(let f of a)u.rows.push(ym(f,u.header.length).map((m,y)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:u.align[y]})));return u}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
115
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let u=go(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=i$(r[2],"()");if(u===-2)return;if(u>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],a=u[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),bm(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let u=i[0].charAt(0);return{type:"text",raw:u,text:u}}return bm(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,u,c,f=a,m=0,y=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,r=r.slice(-1*t.length+a);(s=y.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(c=[...u].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){m+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+m);let p=[...s[0]][0].length,g=t.slice(0,a+s.index+p+c);if(Math.min(a,c)%2){let x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}let v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let u;do u=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},hr=class Oc{constructor(t){ye(this,"tokens");ye(this,"options");ye(this,"state");ye(this,"tokenizer");ye(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xn,this.options.tokenizer=this.options.tokenizer||new Aa,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rt,block:ra.normal,inline:ho.normal};this.options.pedantic?(r.block=ra.pedantic,r.inline=ho.pedantic):this.options.gfm&&(r.block=ra.gfm,this.options.breaks?r.inline=ho.breaks:r.inline=ho.gfm),this.tokenizer.rules=r}static get rules(){return{block:ra,inline:ho}}static lex(t,r){return new Oc(r).lex(t)}static lexInline(t,r){return new Oc(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
|
|
116
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,u;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(m=>(c=m.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
|
|
117
|
+
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
165
118
|
`)?"":`
|
|
166
|
-
`)+c.raw,
|
|
167
|
-
`+c.text,this.inlineQueue.at(-1).src=
|
|
119
|
+
`)+c.raw,m.text+=`
|
|
120
|
+
`+c.text,this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
168
121
|
`)?"":`
|
|
169
|
-
`)+c.raw,
|
|
170
|
-
`+c.raw,this.inlineQueue.at(-1).src=
|
|
122
|
+
`)+c.raw,m.text+=`
|
|
123
|
+
`+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let m=1/0,y=t.slice(1),p;this.options.extensions.startBlock.forEach(g=>{p=g.call({lexer:this},y),typeof p=="number"&&p>=0&&(m=Math.min(m,p))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let m=r.at(-1);i&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
|
|
171
124
|
`)?"":`
|
|
172
|
-
`)+c.raw,
|
|
173
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
125
|
+
`)+c.raw,m.text+=`
|
|
126
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c),i=f.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
174
127
|
`)?"":`
|
|
175
|
-
`)+c.raw,
|
|
176
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
177
|
-
`;return
|
|
178
|
-
`:"<pre><code>"+(
|
|
128
|
+
`)+c.raw,m.text+=`
|
|
129
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var f,m,y,p,g;let i=t,s=null;if(this.tokens.links){let v=Object.keys(this.tokens.links);if(v.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)v.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=s[2]?s[2].length:0,i=i.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((m=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:m.call({lexer:this},i))??i;let u=!1,c="";for(;t;){u||(c=""),u=!1;let v;if((p=(y=this.options.extensions)==null?void 0:y.inline)!=null&&p.some(d=>(v=d.call({lexer:this},t,r))?(t=t.substring(v.raw.length),r.push(v),!0):!1))continue;if(v=this.tokenizer.escape(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.tag(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.link(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(v.raw.length);let d=r.at(-1);v.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=v.raw,d.text+=v.text):r.push(v);continue}if(v=this.tokenizer.emStrong(t,i,c)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.codespan(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.br(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.del(t)){t=t.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.autolink(t)){t=t.substring(v.raw.length),r.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(t))){t=t.substring(v.raw.length),r.push(v);continue}let x=t;if((g=this.options.extensions)!=null&&g.startInline){let d=1/0,w=t.slice(1),h;this.options.extensions.startInline.forEach(S=>{h=S.call({lexer:this},w),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(x=t.substring(0,d+1))}if(v=this.tokenizer.inlineText(x)){t=t.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(c=v.raw.slice(-1)),u=!0;let d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=v.raw,d.text+=v.text):r.push(v);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},Ta=class{constructor(t){ye(this,"options");ye(this,"parser");this.options=t||Xn}space(t){return""}code({text:t,lang:r,escaped:i}){var u;let s=(u=(r||"").match(Rt.notSpaceStart))==null?void 0:u[0],a=t.replace(Rt.endingNewline,"")+`
|
|
130
|
+
`;return s?'<pre><code class="language-'+_r(s)+'">'+(i?a:_r(a,!0))+`</code></pre>
|
|
131
|
+
`:"<pre><code>"+(i?a:_r(a,!0))+`</code></pre>
|
|
179
132
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
180
133
|
${this.parser.parse(t)}</blockquote>
|
|
181
134
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
182
135
|
`}hr(t){return`<hr>
|
|
183
|
-
`}list(t){let r=t.ordered,
|
|
184
|
-
`+
|
|
185
|
-
`}listitem(t){var
|
|
136
|
+
`}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];s+=this.listitem(f)}let a=r?"ol":"ul",u=r&&i!==1?' start="'+i+'"':"";return"<"+a+u+`>
|
|
137
|
+
`+s+"</"+a+`>
|
|
138
|
+
`}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+_r(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
186
139
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
187
|
-
`}table(t){let r="",
|
|
140
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let u=t.rows[a];i="";for(let c=0;c<u.length;c++)i+=this.tablecell(u[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
188
141
|
<thead>
|
|
189
142
|
`+r+`</thead>
|
|
190
|
-
`+
|
|
143
|
+
`+s+`</table>
|
|
191
144
|
`}tablerow({text:t}){return`<tr>
|
|
192
145
|
${t}</tr>
|
|
193
|
-
`}tablecell(t){let r=this.parser.parseInline(t.tokens),
|
|
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>${
|
|
195
|
-
`+this.renderer.text(
|
|
196
|
-
Please report this to https://github.com/markedjs/marked.`,t){let
|
|
146
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
147
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${_r(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),a=vm(t);if(a===null)return s;t=a;let u='<a href="'+t+'"';return r&&(u+=' title="'+_r(r)+'"'),u+=">"+s+"</a>",u}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=vm(t);if(a===null)return _r(i);t=a;let u=`<img src="${t}" alt="${i}"`;return r&&(u+=` title="${_r(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:_r(t.text)}},xf=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""}},gr=class Ac{constructor(t){ye(this,"options");ye(this,"renderer");ye(this,"textRenderer");this.options=t||Xn,this.options.renderer=this.options.renderer||new Ta,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new xf}static parse(t,r){return new Ac(r).parse(t)}static parseInline(t,r){return new Ac(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=c,y=this.options.extensions.renderers[m.type].call({parser:this},m);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){i+=y||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let m=f,y=this.renderer.text(m);for(;u+1<t.length&&t[u+1].type==="text";)m=t[++u],y+=`
|
|
148
|
+
`+this.renderer.text(m);r?i+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):i+=y;continue}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=m||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}},aa,yo=(aa=class{constructor(t){ye(this,"options");ye(this,"block");this.options=t||Xn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?hr.lex:hr.lexInline}provideParser(){return this.block?gr.parse:gr.parseInline}},ye(aa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ye(aa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),aa),Dy=class{constructor(...t){ye(this,"defaults",pf());ye(this,"options",this.setOptions);ye(this,"parse",this.parseMarkdown(!0));ye(this,"parseInline",this.parseMarkdown(!1));ye(this,"Parser",gr);ye(this,"Renderer",Ta);ye(this,"TextRenderer",xf);ye(this,"Lexer",hr);ye(this,"Tokenizer",Aa);ye(this,"Hooks",yo);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let u of t)switch(i=i.concat(r.call(this,u)),u.type){case"table":{let c=u;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let m of f)i=i.concat(this.walkTokens(m.tokens,r));break}case"list":{let c=u;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=u;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let m=c[f].flat(1/0);i=i.concat(this.walkTokens(m,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=u.apply(this,c)),f}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[a.level];u?u.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Ta(this.defaults);for(let u in i.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,f=i.renderer[c],m=a[c];a[c]=(...y)=>{let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Aa(this.defaults);for(let u in i.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,f=i.tokenizer[c],m=a[c];a[c]=(...y)=>{let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new yo;for(let u in i.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,f=i.hooks[c],m=a[c];yo.passThroughHooks.has(u)?a[c]=y=>{if(this.defaults.async&&yo.passThroughHooksRespectAsync.has(u))return(async()=>{let g=await f.call(a,y);return m.call(a,g)})();let p=f.call(a,y);return m.call(a,p)}:a[c]=(...y)=>{if(this.defaults.async)return(async()=>{let g=await f.apply(a,y);return g===!1&&(g=await m.apply(a,y)),g})();let p=f.apply(a,y);return p===!1&&(p=m.apply(a,y)),p}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(u.call(this,c)),a&&(f=f.concat(a.call(this,c))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return hr.lex(t,r??this.defaults)}parser(t,r){return gr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},u=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return u(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 u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?hr.lex:hr.lexInline)(c,a),m=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(m,a.walkTokens));let y=await(a.hooks?await a.hooks.provideParser():t?gr.parse:gr.parseInline)(m,a);return a.hooks?await a.hooks.postprocess(y):y})().catch(u);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?hr.lex:hr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?gr.parse:gr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return u(c)}}}onError(t,r){return i=>{if(i.message+=`
|
|
149
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+_r(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Zn=new Dy;function ze(e,t){return Zn.parse(e,t)}ze.options=ze.setOptions=function(e){return Zn.setOptions(e),ze.defaults=Zn.defaults,Ay(ze.defaults),ze};ze.getDefaults=pf;ze.defaults=Xn;ze.use=function(...e){return Zn.use(...e),ze.defaults=Zn.defaults,Ay(ze.defaults),ze};ze.walkTokens=function(e,t){return Zn.walkTokens(e,t)};ze.parseInline=Zn.parseInline;ze.Parser=gr;ze.parser=gr.parse;ze.Renderer=Ta;ze.TextRenderer=xf;ze.Lexer=hr;ze.lexer=hr.lex;ze.Tokenizer=Aa;ze.Hooks=yo;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;gr.parse;hr.lex;const s$={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" "," ":" "},Ny=/&(?:amp|lt|gt|quot|nbsp|#(?:0+)?(?:39|160));/g,a$=RegExp(Ny.source),wm=(e="")=>a$.test(e)?e.replace(Ny,t=>s$[t]||"'"):e,xm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var u$=class{constructor(e){this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const u=[];return a.task&&u.push(this.renderer.checkbox(a.checked??!1)),u.push(this.parse(a.tokens)),this.renderer.listItem(u)});return this.renderer.elIdList.pop(),this.renderer.list(s,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const s=i.header.map((m,y)=>this.renderer.tableCell(this.parseInline(m.tokens),{header:!0,align:r.align[y]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),u=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(m=>{this.renderer.elIdList.push(0);const y=m.map((p,g)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(y)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([u,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(wm(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(wm(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}},l$=u$,mn,Be,it,Tc,Qm,c$=(Qm=class{constructor(e={}){gt(this,Be);gt(this,mn);this.elIdList=[];const{renderer:t}=e;je(this,mn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const s=r,a=i;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...u){return de(this,Be,Tc).call(this),a.apply(this,u)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return de(this,Be,it).call(this,`h${t}`,e)}paragraph(e){return de(this,Be,it).call(this,"p",e)}link(e,t){const r=xm(e,Y(this,mn).baseURL),i=Y(this,mn).openLinksInNewTab?"_blank":null;return de(this,Be,it).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=xm(e,Y(this,mn).baseURL);return de(this,Be,it).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${Y(this,mn).langPrefix}${t}`:null;return de(this,Be,it).call(this,"code",e,{className:r})}code(e,t){return de(this,Be,it).call(this,"pre",this.codespan(e,t))}blockquote(e){return de(this,Be,it).call(this,"blockquote",e)}list(e,t,r){return de(this,Be,it).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return de(this,Be,it).call(this,"li",e)}checkbox(e){return de(this,Be,it).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return de(this,Be,it).call(this,"table",e)}tableHeader(e){return de(this,Be,it).call(this,"thead",e)}tableBody(e){return de(this,Be,it).call(this,"tbody",e)}tableRow(e){return de(this,Be,it).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return de(this,Be,it).call(this,r,e,{align:t.align})}strong(e){return de(this,Be,it).call(this,"strong",e)}em(e){return de(this,Be,it).call(this,"em",e)}del(e){return de(this,Be,it).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return de(this,Be,it).call(this,"hr")}br(){return de(this,Be,it).call(this,"br")}},mn=new WeakMap,Be=new WeakSet,it=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return de(this,Be,Tc).call(this),W.createElement(e,{...r,...i},t)},Tc=function(){this.elIdList[this.elIdList.length-1]+=1},Qm),f$=c$;const d$=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}`)},p$={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},h$=new Dy,g$=e=>{d$(e);const t={...p$,...e},r=t.instance??h$,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,i):r.lexer(s,i),u=new l$({renderer:new f$({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})});return W.createElement(W.Fragment,null,t.isInline?u.parseInline(a):u.parse(a))};var m$=g$,v$=m$;const y$=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[u,c]=W.useState(null),f=W.useRef(null),[m,y]=W.useState(null),[p,g]=W.useState(!1),{styles:v,attributes:x}=dv(u,m,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),d=W.Children.map(e,w=>W.isValidElement(w)?W.cloneElement(w,{ref:c,onMouseEnter:()=>g(!0),onMouseLeave:()=>{f.current=setTimeout(()=>g(!1),50)}}):w);return s?F.jsx(F.Fragment,{children:d}):F.jsxs(F.Fragment,{children:[d,p&&t&&zo.createPortal(F.jsx("div",{ref:y,style:v.popper,...x.popper,className:He("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),g(!0)},onMouseLeave:()=>g(!1),children:F.jsx(v$,{openLinksInNewTab:!0,children:t})}),a||document.body)]})},b$=dc.keyframes`
|
|
197
150
|
to {
|
|
198
151
|
fill: url(#d);
|
|
199
152
|
stroke-dashoffset: 0;
|
|
200
153
|
}
|
|
201
|
-
`,
|
|
154
|
+
`,jy=xa.svg`
|
|
202
155
|
& .e {
|
|
203
156
|
fill: url(#d);
|
|
204
157
|
}
|
|
@@ -209,7 +162,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
|
|
|
209
162
|
fill: transparent;
|
|
210
163
|
stroke-dasharray: 700;
|
|
211
164
|
stroke-dashoffset: 700;
|
|
212
|
-
animation: ${
|
|
165
|
+
animation: ${b$} 1.5s ease-in-out infinite alternate-reverse;
|
|
213
166
|
}
|
|
214
167
|
|
|
215
168
|
& #circle {
|
|
@@ -219,39 +172,35 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
|
|
|
219
172
|
stroke-dasharray: 700;
|
|
220
173
|
stroke-dashoffset: 700;
|
|
221
174
|
}
|
|
222
|
-
`,
|
|
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)=>zc(h==null?void 0:h.className(...v),u.className):zc(h==null?void 0:h.className,u.className),S=b?{className:b}:{};return N.cloneElement(g,Object.assign({},A1(g.props,ny(yf(u,["ref"]))),p,f,{ref:i(g.ref,f.ref)},S))}return N.createElement(s,Object.assign({},yf(u,["ref"]),s!==N.Fragment&&f,s!==N.Fragment&&p),g)}function O4(...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 A1(...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 Xp(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ny(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function yf(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Jp=N.createContext(null);Jp.displayName="OpenClosedContext";var jn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(jn||{});function T1(){return N.useContext(Jp)}function k4({value:e,children:t}){return N.createElement(Jp.Provider,{value:e},t)}function Qp(){let e=N.useRef(!1);return ha(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function A4(e=0){let[t,r]=N.useState(e),n=Qp(),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 T4(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function wf(e,...t){e&&t.length>0&&e.classList.add(...t)}function xf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function R4(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 C4(e,t,r,n){let i=r?"enter":"leave",s=Ra(),l=n!==void 0?T4(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 xf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),wf(e,...t.base,...c,...f),s.nextFrame(()=>{xf(e,...t.base,...c,...f),wf(e,...t.base,...c,...u),R4(e,()=>(xf(e,...t.base,...c),wf(e,...t.base,...t.entered),l()))}),s.dispose}function P4({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:s}){let l=Qp(),c=S1(),u=Po(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(C4(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 nu=N.createContext(null);nu.displayName="TransitionContext";var I4=(e=>(e.Visible="visible",e.Hidden="hidden",e))(I4||{});function N4(){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}function M4(){let e=N.useContext(iu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let iu=N.createContext(null);iu.displayName="NestingContext";function ou(e){return"children"in e?ou(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function R1(e,t){let r=Po(e),n=N.useRef([]),i=Qp(),s=S1(),l=Hn((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;!ou(n)&&i.current&&((y=r.current)==null||y.call(r))}))}),c=Hn(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=Hn((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=Hn((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 D4(){}let L4=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function iy(e){var t;let r={};for(let n of L4)r[n]=(t=e[n])!=null?t:D4;return r}function z4(e){let t=N.useRef(iy(e));return N.useEffect(()=>{t.current=iy(e)},[e]),t}let $4="div",C1=O1.RenderStrategy;function j4(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=_1(y,t),w=(r=v.unmount)==null||r?pi.Unmount:pi.Hidden,{show:x,appear:O,initial:_}=N4(),[R,H]=N.useState(x?"visible":"hidden"),P=M4(),{register:z,unregister:U}=P;N.useEffect(()=>z(y),[z,y]),N.useEffect(()=>{if(w===pi.Hidden&&y.current){if(x&&R!=="visible"){H("visible");return}return yn(R,{hidden:()=>U(y),visible:()=>z(y)})}},[R,y,z,U,x,w]);let $=Po({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=z4({beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c}),D=E1();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,I=O&&x&&_,K=!D||F?"idle":x?"enter":"leave",te=A4(0),Y=Hn(X=>yn(X,{enter:()=>{te.addFlag(jn.Opening),M.current.beforeEnter()},leave:()=>{te.addFlag(jn.Closing),M.current.beforeLeave()},idle:()=>{}})),ve=Hn(X=>yn(X,{enter:()=>{te.removeFlag(jn.Opening),M.current.afterEnter()},leave:()=>{te.removeFlag(jn.Closing),M.current.afterLeave()},idle:()=>{}})),j=R1(()=>{H("hidden"),U(y)},P),W=N.useRef(!1);P4({immediate:I,container:y,classes:$,direction:K,onStart:Po(X=>{W.current=!0,j.onStart(y,X,Y)}),onStop:Po(X=>{W.current=!1,j.onStop(y,X,ve),X==="leave"&&!ou(j)&&(H("hidden"),U(y))})});let ee=v,Q={ref:m};return I?ee={...ee,className:zc(v.className,...$.current.enter,...$.current.enterFrom)}:W.current&&(ee.className=zc(v.className,(n=y.current)==null?void 0:n.className),ee.className===""&&delete ee.className),N.createElement(iu.Provider,{value:j},N.createElement(k4,{value:yn(R,{visible:jn.Open,hidden:jn.Closed})|te.flags},k1({ourProps:Q,theirProps:ee,defaultTag:$4,features:C1,visible:R==="visible",name:"Transition.Child"})))}function F4(e,t){let{show:r,appear:n=!1,unmount:i=!0,...s}=e,l=N.useRef(null),c=_1(l,t);E1();let u=T1();if(r===void 0&&u!==null&&(r=(u&jn.Open)===jn.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=R1(()=>{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(!ou(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=Hn(()=>{var x;h&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=Hn(()=>{var x;h&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return N.createElement(iu.Provider,{value:p},N.createElement(nu.Provider,{value:v},k1({ourProps:{...y,as:N.Fragment,children:N.createElement(P1,{ref:c,...y,...s,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:N.Fragment,features:C1,visible:f==="visible",name:"Transition"})))}function H4(e,t){let r=N.useContext(nu)!==null,n=T1()!==null;return N.createElement(N.Fragment,null,!r&&n?N.createElement(ep,{ref:t,...e}):N.createElement(P1,{ref:t,...e}))}let ep=Xp(F4),P1=Xp(j4),W4=Xp(H4),$c=Object.assign(ep,{Child:W4,Root:ep});var Ys={exports:{}};/**
|
|
175
|
+
`,w$=({message:e,version:t})=>F.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:F.jsxs("div",{className:"flex flex-col text-center",children:[F.jsx("div",{className:"relative mr-4 self-center",children:F.jsx("div",{className:"flex items-center justify-center rounded",children:F.jsxs(jy,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[F.jsx("defs",{children:F.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[F.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:F.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),F.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:F.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),F.jsx("g",{id:"a"}),F.jsx("g",{id:"b",children:F.jsx("g",{id:"c",children:F.jsxs("g",{children:[F.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"}),F.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"})]})})})]})})}),F.jsxs("div",{children:[F.jsx("span",{className:"text-xs text-grey-200",children:t}),F.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var bo={exports:{}};/**
|
|
226
176
|
* @license
|
|
227
177
|
* Lodash <https://lodash.com/>
|
|
228
178
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
229
179
|
* Released under MIT license <https://lodash.com/license>
|
|
230
180
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
231
181
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
232
|
-
*/var B4=Ys.exports,oy;function V4(){return oy||(oy=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,P=128,z=256,U=512,$=30,M="...",D=800,F=16,I=1,K=2,te=3,Y=1/0,ve=9007199254740991,j=17976931348623157e292,W=NaN,ee=4294967295,Q=ee-1,X=ee>>>1,ue=[["ary",P],["bind",m],["bindKey",w],["curry",O],["curryRight",_],["flip",U],["partial",R],["partialRight",H],["rearg",z]],ie="[object Arguments]",ne="[object Array]",de="[object AsyncFunction]",pe="[object Boolean]",he="[object Date]",xe="[object DOMException]",Z="[object Error]",Oe="[object Function]",ge="[object GeneratorFunction]",at="[object Map]",Kt="[object Number]",Or="[object Null]",ur="[object Object]",bi="[object Promise]",xt="[object Proxy]",kr="[object RegExp]",Lt="[object Set]",Ct="[object String]",Ut="[object Symbol]",yi="[object Undefined]",en="[object WeakMap]",wi="[object WeakSet]",Ar="[object ArrayBuffer]",Wr="[object DataView]",dr="[object Float32Array]",Ko="[object Float64Array]",Yo="[object Int8Array]",tr="[object Int16Array]",xi="[object Int32Array]",Xo="[object Uint8Array]",Ki="[object Uint8ClampedArray]",Yi="[object Uint16Array]",Jo="[object Uint32Array]",Ia=/\b__p \+= '';/g,Na=/\b(__p \+=) '' \+/g,Ma=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qo=/&(?:amp|lt|gt|quot|#39);/g,qn=/[&<>"']/g,es=RegExp(Qo.source),pu=RegExp(qn.source),Da=/<%-([\s\S]+?)%>/g,ts=/<%([\s\S]+?)%>/g,Xi=/<%=([\s\S]+?)%>/g,hu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,La=/^\w*$/,gu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tn=/[\\^$.*+?()[\]{}|]/g,vu=RegExp(tn.source),On=/^\s+/,Ji=/\s/,za=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mu=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,St=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$a=/[()=,{}\[\]\/\s]/,Pt=/\\(\\)?/g,zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,nn=/^\[object .+?Constructor\]$/,on=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Qi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eo=/($^)/,bu=/['\n\r\u2028\u2029\\]/g,ja="\\ud800-\\udfff",fE="\\u0300-\\u036f",pE="\\ufe20-\\ufe2f",hE="\\u20d0-\\u20ff",Th=fE+pE+hE,Rh="\\u2700-\\u27bf",Ch="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",Ph="A-Z\\xc0-\\xd6\\xd8-\\xde",Ih="\\ufe0e\\ufe0f",Nh=gE+vE+mE+bE,yu="['’]",yE="["+ja+"]",Mh="["+Nh+"]",Fa="["+Th+"]",Dh="\\d+",wE="["+Rh+"]",Lh="["+Ch+"]",zh="[^"+ja+Nh+Dh+Rh+Ch+Ph+"]",wu="\\ud83c[\\udffb-\\udfff]",xE="(?:"+Fa+"|"+wu+")",$h="[^"+ja+"]",xu="(?:\\ud83c[\\udde6-\\uddff]){2}",Su="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+Ph+"]",jh="\\u200d",Fh="(?:"+Lh+"|"+zh+")",SE="(?:"+to+"|"+zh+")",Hh="(?:"+yu+"(?:d|ll|m|re|s|t|ve))?",Wh="(?:"+yu+"(?:D|LL|M|RE|S|T|VE))?",Bh=xE+"?",Vh="["+Ih+"]?",EE="(?:"+jh+"(?:"+[$h,xu,Su].join("|")+")"+Vh+Bh+")*",_E="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Uh=Vh+Bh+EE,kE="(?:"+[wE,xu,Su].join("|")+")"+Uh,AE="(?:"+[$h+Fa+"?",Fa,xu,Su,yE].join("|")+")",TE=RegExp(yu,"g"),RE=RegExp(Fa,"g"),Eu=RegExp(wu+"(?="+wu+")|"+AE+Uh,"g"),CE=RegExp([to+"?"+Lh+"+"+Hh+"(?="+[Mh,to,"$"].join("|")+")",SE+"+"+Wh+"(?="+[Mh,to+Fh,"$"].join("|")+")",to+"?"+Fh+"+"+Hh,to+"+"+Wh,OE,_E,Dh,kE].join("|"),"g"),PE=RegExp("["+jh+ja+Th+Ih+"]"),IE=/[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[dr]=lt[Ko]=lt[Yo]=lt[tr]=lt[xi]=lt[Xo]=lt[Ki]=lt[Yi]=lt[Jo]=!0,lt[ie]=lt[ne]=lt[Ar]=lt[pe]=lt[Wr]=lt[he]=lt[Z]=lt[Oe]=lt[at]=lt[Kt]=lt[ur]=lt[kr]=lt[Lt]=lt[Ct]=lt[en]=!1;var it={};it[ie]=it[ne]=it[Ar]=it[Wr]=it[pe]=it[he]=it[dr]=it[Ko]=it[Yo]=it[tr]=it[xi]=it[at]=it[Kt]=it[ur]=it[kr]=it[Lt]=it[Ct]=it[Ut]=it[Xo]=it[Ki]=it[Yi]=it[Jo]=!0,it[Z]=it[Oe]=it[en]=!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,qh=typeof kl=="object"&&kl&&kl.Object===Object&&kl,HE=typeof self=="object"&&self&&self.Object===Object&&self,$t=qh||HE||Function("return this")(),_u=t&&!t.nodeType&&t,Si=_u&&!0&&e&&!e.nodeType&&e,Gh=Si&&Si.exports===_u,Ou=Gh&&qh.process,Tr=(function(){try{var q=Si&&Si.require&&Si.require("util").types;return q||Ou&&Ou.binding&&Ou.binding("util")}catch{}})(),Zh=Tr&&Tr.isArrayBuffer,Kh=Tr&&Tr.isDate,Yh=Tr&&Tr.isMap,Xh=Tr&&Tr.isRegExp,Jh=Tr&&Tr.isSet,Qh=Tr&&Tr.isTypedArray;function fr(q,re,J){switch(J.length){case 0:return q.call(re);case 1:return q.call(re,J[0]);case 2:return q.call(re,J[0],J[1]);case 3:return q.call(re,J[0],J[1],J[2])}return q.apply(re,J)}function WE(q,re,J,be){for(var Re=-1,We=q==null?0:q.length;++Re<We;){var kt=q[Re];re(be,kt,J(kt),q)}return be}function pr(q,re){for(var J=-1,be=q==null?0:q.length;++J<be&&re(q[J],J,q)!==!1;);return q}function BE(q,re){for(var J=q==null?0:q.length;J--&&re(q[J],J,q)!==!1;);return q}function eg(q,re){for(var J=-1,be=q==null?0:q.length;++J<be;)if(!re(q[J],J,q))return!1;return!0}function Zn(q,re){for(var J=-1,be=q==null?0:q.length,Re=0,We=[];++J<be;){var kt=q[J];re(kt,J,q)&&(We[Re++]=kt)}return We}function Ha(q,re){var J=q==null?0:q.length;return!!J&&ro(q,re,0)>-1}function ku(q,re,J){for(var be=-1,Re=q==null?0:q.length;++be<Re;)if(J(re,q[be]))return!0;return!1}function ut(q,re){for(var J=-1,be=q==null?0:q.length,Re=Array(be);++J<be;)Re[J]=re(q[J],J,q);return Re}function Kn(q,re){for(var J=-1,be=re.length,Re=q.length;++J<be;)q[Re+J]=re[J];return q}function Au(q,re,J,be){var Re=-1,We=q==null?0:q.length;for(be&&We&&(J=q[++Re]);++Re<We;)J=re(J,q[Re],Re,q);return J}function VE(q,re,J,be){var Re=q==null?0:q.length;for(be&&Re&&(J=q[--Re]);Re--;)J=re(J,q[Re],Re,q);return J}function Tu(q,re){for(var J=-1,be=q==null?0:q.length;++J<be;)if(re(q[J],J,q))return!0;return!1}var UE=Ru("length");function qE(q){return q.split("")}function GE(q){return q.match(St)||[]}function tg(q,re,J){var be;return J(q,function(Re,We,kt){if(re(Re,We,kt))return be=We,!1}),be}function Wa(q,re,J,be){for(var Re=q.length,We=J+(be?1:-1);be?We--:++We<Re;)if(re(q[We],We,q))return We;return-1}function ro(q,re,J){return re===re?o_(q,re,J):Wa(q,rg,J)}function ZE(q,re,J,be){for(var Re=J-1,We=q.length;++Re<We;)if(be(q[Re],re))return Re;return-1}function rg(q){return q!==q}function ng(q,re){var J=q==null?0:q.length;return J?Pu(q,re)/J:W}function Ru(q){return function(re){return re==null?r:re[q]}}function Cu(q){return function(re){return q==null?r:q[re]}}function ig(q,re,J,be,Re){return Re(q,function(We,kt,nt){J=be?(be=!1,We):re(J,We,kt,nt)}),J}function KE(q,re){var J=q.length;for(q.sort(re);J--;)q[J]=q[J].value;return q}function Pu(q,re){for(var J,be=-1,Re=q.length;++be<Re;){var We=re(q[be]);We!==r&&(J=J===r?We:J+We)}return J}function Iu(q,re){for(var J=-1,be=Array(q);++J<q;)be[J]=re(J);return be}function YE(q,re){return ut(re,function(J){return[J,q[J]]})}function og(q){return q&&q.slice(0,cg(q)+1).replace(On,"")}function hr(q){return function(re){return q(re)}}function Nu(q,re){return ut(re,function(J){return q[J]})}function rs(q,re){return q.has(re)}function sg(q,re){for(var J=-1,be=q.length;++J<be&&ro(re,q[J],0)>-1;);return J}function ag(q,re){for(var J=q.length;J--&&ro(re,q[J],0)>-1;);return J}function XE(q,re){for(var J=q.length,be=0;J--;)q[J]===re&&++be;return be}var JE=Cu(DE),QE=Cu(LE);function e_(q){return"\\"+$E[q]}function t_(q,re){return q==null?r:q[re]}function no(q){return PE.test(q)}function r_(q){return IE.test(q)}function n_(q){for(var re,J=[];!(re=q.next()).done;)J.push(re.value);return J}function Mu(q){var re=-1,J=Array(q.size);return q.forEach(function(be,Re){J[++re]=[Re,be]}),J}function lg(q,re){return function(J){return q(re(J))}}function Yn(q,re){for(var J=-1,be=q.length,Re=0,We=[];++J<be;){var kt=q[J];(kt===re||kt===p)&&(q[J]=p,We[Re++]=J)}return We}function Ba(q){var re=-1,J=Array(q.size);return q.forEach(function(be){J[++re]=be}),J}function i_(q){var re=-1,J=Array(q.size);return q.forEach(function(be){J[++re]=[be,be]}),J}function o_(q,re,J){for(var be=J-1,Re=q.length;++be<Re;)if(q[be]===re)return be;return-1}function s_(q,re,J){for(var be=J+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 cg(q){for(var re=q.length;re--&&Ji.test(q.charAt(re)););return re}var a_=Cu(zE);function l_(q){for(var re=Eu.lastIndex=0;Eu.test(q);)++re;return re}function c_(q){return q.match(Eu)||[]}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 J=re.Array,be=re.Date,Re=re.Error,We=re.Function,kt=re.Math,nt=re.Object,Du=re.RegExp,f_=re.String,Rr=re.TypeError,Va=J.prototype,p_=We.prototype,so=nt.prototype,Ua=re["__core-js_shared__"],qa=p_.toString,Ue=so.hasOwnProperty,h_=0,ug=(function(){var o=/[^.]+$/.exec(Ua&&Ua.keys&&Ua.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Ga=so.toString,g_=qa.call(nt),v_=$t._,m_=Du("^"+qa.call(Ue).replace(tn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Za=Gh?re.Buffer:r,Xn=re.Symbol,Ka=re.Uint8Array,dg=Za?Za.allocUnsafe:r,Ya=lg(nt.getPrototypeOf,nt),fg=nt.create,pg=so.propertyIsEnumerable,Xa=Va.splice,hg=Xn?Xn.isConcatSpreadable:r,ns=Xn?Xn.iterator:r,Ei=Xn?Xn.toStringTag:r,Ja=(function(){try{var o=Ti(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,Qa=kt.ceil,el=kt.floor,Lu=nt.getOwnPropertySymbols,x_=Za?Za.isBuffer:r,gg=re.isFinite,S_=Va.join,E_=lg(nt.keys,nt),At=kt.max,qt=kt.min,__=be.now,O_=re.parseInt,vg=kt.random,k_=Va.reverse,zu=Ti(re,"DataView"),is=Ti(re,"Map"),$u=Ti(re,"Promise"),ao=Ti(re,"Set"),os=Ti(re,"WeakMap"),ss=Ti(nt,"create"),tl=os&&new os,lo={},A_=Ri(zu),T_=Ri(is),R_=Ri($u),C_=Ri(ao),P_=Ri(os),rl=Xn?Xn.prototype:r,as=rl?rl.valueOf:r,mg=rl?rl.toString:r;function T(o){if(vt(o)&&!Pe(o)&&!(o instanceof ze)){if(o instanceof Cr)return o;if(Ue.call(o,"__wrapped__"))return bv(o)}return new Cr(o)}var co=(function(){function o(){}return function(a){if(!pt(a))return{};if(fg)return fg(a);o.prototype=a;var d=new o;return o.prototype=r,d}})();function nl(){}function Cr(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}T.templateSettings={escape:Da,evaluate:ts,interpolate:Xi,variable:"",imports:{_:T}},T.prototype=nl.prototype,T.prototype.constructor=T,Cr.prototype=co(nl.prototype),Cr.prototype.constructor=Cr;function ze(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function I_(){var o=new ze(this.__wrapped__);return o.__actions__=rr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=rr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=rr(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=Pe(o),E=a<0,k=d?o.length:0,C=qO(0,k,this.__views__),L=C.start,B=C.end,G=B-L,oe=E?B:L-1,se=this.__iteratees__,ce=se.length,me=0,Se=qt(G,this.__takeCount__);if(!d||!E&&k==G&&Se==G)return Hg(o,this.__actions__);var Ae=[];e:for(;G--&&me<Se;){oe+=a;for(var Ne=-1,_e=o[oe];++Ne<ce;){var Le=se[Ne],$e=Le.iteratee,mr=Le.type,Qt=$e(_e);if(mr==K)_e=Qt;else if(!Qt){if(mr==I)continue e;break e}}Ae[me++]=_e}return Ae}ze.prototype=co(nl.prototype),ze.prototype.constructor=ze;function _i(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__=ss?ss(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(ss){var d=a[o];return d===f?r:d}return Ue.call(a,o)?a[o]:r}function $_(o){var a=this.__data__;return ss?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]=ss&&a===r?f:a,this}_i.prototype.clear=D_,_i.prototype.delete=L_,_i.prototype.get=z_,_i.prototype.has=$_,_i.prototype.set=j_;function An(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=il(a,o);if(d<0)return!1;var E=a.length-1;return d==E?a.pop():Xa.call(a,d,1),--this.size,!0}function W_(o){var a=this.__data__,d=il(a,o);return d<0?r:a[d][1]}function B_(o){return il(this.__data__,o)>-1}function V_(o,a){var d=this.__data__,E=il(d,o);return E<0?(++this.size,d.push([o,a])):d[E][1]=a,this}An.prototype.clear=F_,An.prototype.delete=H_,An.prototype.get=W_,An.prototype.has=B_,An.prototype.set=V_;function Tn(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 _i,map:new(is||An),string:new _i}}function q_(o){var a=vl(this,o).delete(o);return this.size-=a?1:0,a}function G_(o){return vl(this,o).get(o)}function Z_(o){return vl(this,o).has(o)}function K_(o,a){var d=vl(this,o),E=d.size;return d.set(o,a),this.size+=d.size==E?0:1,this}Tn.prototype.clear=U_,Tn.prototype.delete=q_,Tn.prototype.get=G_,Tn.prototype.has=Z_,Tn.prototype.set=K_;function Oi(o){var a=-1,d=o==null?0:o.length;for(this.__data__=new Tn;++a<d;)this.add(o[a])}function Y_(o){return this.__data__.set(o,f),this}function X_(o){return this.__data__.has(o)}Oi.prototype.add=Oi.prototype.push=Y_,Oi.prototype.has=X_;function Vr(o){var a=this.__data__=new An(o);this.size=a.size}function J_(){this.__data__=new An,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 An){var E=d.__data__;if(!is||E.length<i-1)return E.push([o,a]),this.size=++d.size,this;d=this.__data__=new Tn(E)}return d.set(o,a),this.size=d.size,this}Vr.prototype.clear=J_,Vr.prototype.delete=Q_,Vr.prototype.get=eO,Vr.prototype.has=tO,Vr.prototype.set=rO;function bg(o,a){var d=Pe(o),E=!d&&Ci(o),k=!d&&!E&&ri(o),C=!d&&!E&&!k&&ho(o),L=d||E||k||C,B=L?Iu(o.length,f_):[],G=B.length;for(var oe in o)(a||Ue.call(o,oe))&&!(L&&(oe=="length"||k&&(oe=="offset"||oe=="parent")||C&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||Pn(oe,G)))&&B.push(oe);return B}function yg(o){var a=o.length;return a?o[Ku(0,a-1)]:r}function nO(o,a){return ml(rr(o),ki(a,0,o.length))}function iO(o){return ml(rr(o))}function ju(o,a,d){(d!==r&&!qr(o[a],d)||d===r&&!(a in o))&&sn(o,a,d)}function ls(o,a,d){var E=o[a];(!(Ue.call(o,a)&&qr(E,d))||d===r&&!(a in o))&&sn(o,a,d)}function il(o,a){for(var d=o.length;d--;)if(qr(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 wg(o,a){return o&&ln(a,It(a),o)}function sO(o,a){return o&&ln(a,ir(a),o)}function sn(o,a,d){a=="__proto__"&&Ja?Ja(o,a,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[a]=d}function Fu(o,a){for(var d=-1,E=a.length,k=J(E),C=o==null;++d<E;)k[d]=C?r:xd(o,a[d]);return k}function ki(o,a,d){return o===o&&(d!==r&&(o=o<=d?o:d),a!==r&&(o=o>=a?o:a)),o}function Pr(o,a,d,E,k,C){var L,B=a&h,G=a&b,oe=a&S;if(d&&(L=k?d(o,E,k,C):d(o)),L!==r)return L;if(!pt(o))return o;var se=Pe(o);if(se){if(L=ZO(o),!B)return rr(o,L)}else{var ce=Gt(o),me=ce==Oe||ce==ge;if(ri(o))return Vg(o,B);if(ce==ur||ce==ie||me&&!k){if(L=G||me?{}:cv(o),!B)return G?zO(o,sO(L,o)):LO(o,wg(L,o))}else{if(!it[ce])return k?o:{};L=KO(o,ce,B)}}C||(C=new Vr);var Se=C.get(o);if(Se)return Se;C.set(o,L),$v(o)?o.forEach(function(_e){L.add(Pr(_e,a,d,_e,o,C))}):Lv(o)&&o.forEach(function(_e,Le){L.set(Le,Pr(_e,a,d,Le,o,C))});var Ae=oe?G?sd:od:G?ir:It,Ne=se?r:Ae(o);return pr(Ne||o,function(_e,Le){Ne&&(Le=_e,_e=o[Le]),ls(L,Le,Pr(_e,a,d,Le,o,C))}),L}function aO(o){var a=It(o);return function(d){return xg(d,o,a)}}function xg(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 Sg(o,a,d){if(typeof o!="function")throw new Rr(l);return gs(function(){o.apply(r,d)},a)}function cs(o,a,d,E){var k=-1,C=Ha,L=!0,B=o.length,G=[],oe=a.length;if(!B)return G;d&&(a=ut(a,hr(d))),E?(C=ku,L=!1):a.length>=i&&(C=rs,L=!1,a=new Oi(a));e:for(;++k<B;){var se=o[k],ce=d==null?se:d(se);if(se=E||se!==0?se:0,L&&ce===ce){for(var me=oe;me--;)if(a[me]===ce)continue e;G.push(se)}else C(a,ce,E)||G.push(se)}return G}var Jn=Kg(an),Eg=Kg(Wu,!0);function lO(o,a){var d=!0;return Jn(o,function(E,k,C){return d=!!a(E,k,C),d}),d}function ol(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&&!vr(L):d(L,B)))var B=L,G=C}return G}function cO(o,a,d,E){var k=o.length;for(d=Ie(d),d<0&&(d=-d>k?0:k+d),E=E===r||E>k?k:Ie(E),E<0&&(E+=k),E=d>E?0:Fv(E);d<E;)o[d++]=a;return o}function _g(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 Hu=Yg(),Og=Yg(!0);function an(o,a){return o&&Hu(o,a,It)}function Wu(o,a){return o&&Og(o,a,It)}function sl(o,a){return Zn(a,function(d){return In(o[d])})}function Ai(o,a){a=ei(a,o);for(var d=0,E=a.length;o!=null&&d<E;)o=o[Ur(a[d++])];return d&&d==E?o:r}function kg(o,a,d){var E=a(o);return Pe(o)?E:Kn(E,d(o))}function Xt(o){return o==null?o===r?yi:Or:Ei&&Ei in nt(o)?UO(o):ik(o)}function Bu(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>=qt(a,d)&&o<At(a,d)}function Vu(o,a,d){for(var E=d?ku:Ha,k=o[0].length,C=o.length,L=C,B=J(C),G=1/0,oe=[];L--;){var se=o[L];L&&a&&(se=ut(se,hr(a))),G=qt(se.length,G),B[L]=!d&&(a||k>=120&&se.length>=120)?new Oi(L&&se):r}se=o[0];var ce=-1,me=B[0];e:for(;++ce<k&&oe.length<G;){var Se=se[ce],Ae=a?a(Se):Se;if(Se=d||Se!==0?Se:0,!(me?rs(me,Ae):E(oe,Ae,d))){for(L=C;--L;){var Ne=B[L];if(!(Ne?rs(Ne,Ae):E(o[L],Ae,d)))continue e}me&&me.push(Ae),oe.push(Se)}}return oe}function pO(o,a,d,E){return an(o,function(k,C,L){a(E,d(k),C,L)}),E}function us(o,a,d){a=ei(a,o),o=pv(o,a);var E=o==null?o:o[Ur(Nr(a))];return E==null?r:fr(E,o,d)}function Ag(o){return vt(o)&&Xt(o)==ie}function hO(o){return vt(o)&&Xt(o)==Ar}function gO(o){return vt(o)&&Xt(o)==he}function ds(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,ds,k)}function vO(o,a,d,E,k,C){var L=Pe(o),B=Pe(a),G=L?ne:Gt(o),oe=B?ne:Gt(a);G=G==ie?ur:G,oe=oe==ie?ur:oe;var se=G==ur,ce=oe==ur,me=G==oe;if(me&&ri(o)){if(!ri(a))return!1;L=!0,se=!1}if(me&&!se)return C||(C=new Vr),L||ho(o)?sv(o,a,d,E,k,C):BO(o,a,G,d,E,k,C);if(!(d&v)){var Se=se&&Ue.call(o,"__wrapped__"),Ae=ce&&Ue.call(a,"__wrapped__");if(Se||Ae){var Ne=Se?o.value():o,_e=Ae?a.value():a;return C||(C=new Vr),k(Ne,_e,d,E,C)}}return me?(C||(C=new Vr),VO(o,a,d,E,k,C)):!1}function mO(o){return vt(o)&&Gt(o)==at}function Uu(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],oe=o[G],se=B[1];if(L&&B[2]){if(oe===r&&!(G in o))return!1}else{var ce=new Vr;if(E)var me=E(oe,se,G,o,a,ce);if(!(me===r?ds(se,oe,v|y,E,ce):me))return!1}}return!0}function Tg(o){if(!pt(o)||QO(o))return!1;var a=In(o)?m_:nn;return a.test(Ri(o))}function bO(o){return vt(o)&&Xt(o)==kr}function yO(o){return vt(o)&&Gt(o)==Lt}function wO(o){return vt(o)&&El(o.length)&&!!lt[Xt(o)]}function Rg(o){return typeof o=="function"?o:o==null?or:typeof o=="object"?Pe(o)?Ig(o[0],o[1]):Pg(o):Jv(o)}function qu(o){if(!hs(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=hs(o),d=[];for(var E in o)E=="constructor"&&(a||!Ue.call(o,E))||d.push(E);return d}function Gu(o,a){return o<a}function Cg(o,a){var d=-1,E=nr(o)?J(o.length):[];return Jn(o,function(k,C,L){E[++d]=a(k,C,L)}),E}function Pg(o){var a=ld(o);return a.length==1&&a[0][2]?dv(a[0][0],a[0][1]):function(d){return d===o||Uu(d,o,a)}}function Ig(o,a){return ud(o)&&uv(a)?dv(Ur(o),a):function(d){var E=xd(d,o);return E===r&&E===a?Sd(d,o):ds(a,E,v|y)}}function al(o,a,d,E,k){o!==a&&Hu(a,function(C,L){if(k||(k=new Vr),pt(C))SO(o,a,L,d,al,E,k);else{var B=E?E(fd(o,L),C,L+"",o,a,k):r;B===r&&(B=C),ju(o,L,B)}},ir)}function SO(o,a,d,E,k,C,L){var B=fd(o,d),G=fd(a,d),oe=L.get(G);if(oe){ju(o,d,oe);return}var se=C?C(B,G,d+"",o,a,L):r,ce=se===r;if(ce){var me=Pe(G),Se=!me&&ri(G),Ae=!me&&!Se&&ho(G);se=G,me||Se||Ae?Pe(B)?se=B:mt(B)?se=rr(B):Se?(ce=!1,se=Vg(G,!0)):Ae?(ce=!1,se=Ug(G,!0)):se=[]:vs(G)||Ci(G)?(se=B,Ci(B)?se=Hv(B):(!pt(B)||In(B))&&(se=cv(G))):ce=!1}ce&&(L.set(G,se),k(se,G,E,C,L),L.delete(G)),ju(o,d,se)}function Ng(o,a){var d=o.length;if(d)return a+=a<0?d:0,Pn(a,d)?o[a]:r}function Mg(o,a,d){a.length?a=ut(a,function(C){return Pe(C)?function(L){return Ai(L,C.length===1?C[0]:C)}:C}):a=[or];var E=-1;a=ut(a,hr(ke()));var k=Cg(o,function(C,L,B){var G=ut(a,function(oe){return oe(C)});return{criteria:G,index:++E,value:C}});return KE(k,function(C,L){return DO(C,L,d)})}function EO(o,a){return Dg(o,a,function(d,E){return Sd(o,E)})}function Dg(o,a,d){for(var E=-1,k=a.length,C={};++E<k;){var L=a[E],B=Ai(o,L);d(B,L)&&fs(C,ei(L,o),B)}return C}function _O(o){return function(a){return Ai(a,o)}}function Zu(o,a,d,E){var k=E?ZE:ro,C=-1,L=a.length,B=o;for(o===a&&(a=rr(a)),d&&(B=ut(o,hr(d)));++C<L;)for(var G=0,oe=a[C],se=d?d(oe):oe;(G=k(B,se,G,E))>-1;)B!==o&&Xa.call(B,G,1),Xa.call(o,G,1);return o}function Lg(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;Pn(k)?Xa.call(o,k,1):Ju(o,k)}}return o}function Ku(o,a){return o+el(vg()*(a-o+1))}function OO(o,a,d,E){for(var k=-1,C=At(Qa((a-o)/(d||1)),0),L=J(C);C--;)L[E?C:++k]=o,o+=d;return L}function Yu(o,a){var d="";if(!o||a<1||a>ve)return d;do a%2&&(d+=o),a=el(a/2),a&&(o+=o);while(a);return d}function Me(o,a){return pd(fv(o,a,or),o+"")}function kO(o){return yg(go(o))}function AO(o,a){var d=go(o);return ml(d,ki(a,0,d.length))}function fs(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=Ur(a[k]),oe=d;if(G==="__proto__"||G==="constructor"||G==="prototype")return o;if(k!=L){var se=B[G];oe=E?E(se,G,B):r,oe===r&&(oe=pt(se)?se:Pn(a[k+1])?[]:{})}ls(B,G,oe),B=B[G]}return o}var zg=tl?function(o,a){return tl.set(o,a),o}:or,TO=Ja?function(o,a){return Ja(o,"toString",{configurable:!0,enumerable:!1,value:_d(a),writable:!0})}:or;function RO(o){return ml(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=J(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 ll(o,a,d){var E=0,k=o==null?E:o.length;if(typeof a=="number"&&a===a&&k<=X){for(;E<k;){var C=E+k>>>1,L=o[C];L!==null&&!vr(L)&&(d?L<=a:L<a)?E=C+1:k=C}return k}return Xu(o,a,or,d)}function Xu(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=vr(a),oe=a===r;k<C;){var se=el((k+C)/2),ce=d(o[se]),me=ce!==r,Se=ce===null,Ae=ce===ce,Ne=vr(ce);if(L)var _e=E||Ae;else oe?_e=Ae&&(E||me):B?_e=Ae&&me&&(E||!Se):G?_e=Ae&&me&&!Se&&(E||!Ne):Se||Ne?_e=!1:_e=E?ce<=a:ce<a;_e?k=se+1:C=se}return qt(C,Q)}function $g(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||!qr(B,G)){var G=B;C[k++]=L===0?0:L}}return C}function jg(o){return typeof o=="number"?o:vr(o)?W:+o}function gr(o){if(typeof o=="string")return o;if(Pe(o))return ut(o,gr)+"";if(vr(o))return mg?mg.call(o):"";var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Qn(o,a,d){var E=-1,k=Ha,C=o.length,L=!0,B=[],G=B;if(d)L=!1,k=ku;else if(C>=i){var oe=a?null:HO(o);if(oe)return Ba(oe);L=!1,k=rs,G=new Oi}else G=a?[]:B;e:for(;++E<C;){var se=o[E],ce=a?a(se):se;if(se=d||se!==0?se:0,L&&ce===ce){for(var me=G.length;me--;)if(G[me]===ce)continue e;a&&G.push(ce),B.push(se)}else k(G,ce,d)||(G!==B&&G.push(ce),B.push(se))}return B}function Ju(o,a){a=ei(a,o);var d=-1,E=a.length;if(!E)return!0;for(;++d<E;){var k=Ur(a[d]);if(k==="__proto__"&&!Ue.call(o,"__proto__")||(k==="constructor"||k==="prototype")&&d<E-1)return!1}var C=pv(o,a);return C==null||delete C[Ur(Nr(a))]}function Fg(o,a,d,E){return fs(o,a,d(Ai(o,a)),E)}function cl(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 Hg(o,a){var d=o;return d instanceof ze&&(d=d.value()),Au(a,function(E,k){return k.func.apply(k.thisArg,Kn([E],k.args))},d)}function Qu(o,a,d){var E=o.length;if(E<2)return E?Qn(o[0]):[];for(var k=-1,C=J(E);++k<E;)for(var L=o[k],B=-1;++B<E;)B!=k&&(C[k]=cs(C[k]||L,o[B],a,d));return Qn(jt(C,1),a,d)}function Wg(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 ed(o){return mt(o)?o:[]}function td(o){return typeof o=="function"?o:or}function ei(o,a){return Pe(o)?o:ud(o,a)?[o]:mv(qe(o))}var PO=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 Bg=b_||function(o){return $t.clearTimeout(o)};function Vg(o,a){if(a)return o.slice();var d=o.length,E=dg?dg(d):new o.constructor(d);return o.copy(E),E}function rd(o){var a=new o.constructor(o.byteLength);return new Ka(a).set(new Ka(o)),a}function IO(o,a){var d=a?rd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function NO(o){var a=new o.constructor(o.source,kn.exec(o));return a.lastIndex=o.lastIndex,a}function MO(o){return as?nt(as.call(o)):{}}function Ug(o,a){var d=a?rd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function qg(o,a){if(o!==a){var d=o!==r,E=o===null,k=o===o,C=vr(o),L=a!==r,B=a===null,G=a===a,oe=vr(a);if(!B&&!oe&&!C&&o>a||C&&L&&G&&!B&&!oe||E&&L&&G||!d&&G||!k)return 1;if(!E&&!C&&!oe&&o<a||oe&&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=qg(k[E],C[E]);if(G){if(E>=B)return G;var oe=d[E];return G*(oe=="desc"?-1:1)}}return o.index-a.index}function Gg(o,a,d,E){for(var k=-1,C=o.length,L=d.length,B=-1,G=a.length,oe=At(C-L,0),se=J(G+oe),ce=!E;++B<G;)se[B]=a[B];for(;++k<L;)(ce||k<C)&&(se[d[k]]=o[k]);for(;oe--;)se[B++]=o[k++];return se}function Zg(o,a,d,E){for(var k=-1,C=o.length,L=-1,B=d.length,G=-1,oe=a.length,se=At(C-B,0),ce=J(se+oe),me=!E;++k<se;)ce[k]=o[k];for(var Se=k;++G<oe;)ce[Se+G]=a[G];for(;++L<B;)(me||k<C)&&(ce[Se+d[L]]=o[k++]);return ce}function rr(o,a){var d=-1,E=o.length;for(a||(a=J(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):ls(d,B,G)}return d}function LO(o,a){return ln(o,cd(o),a)}function zO(o,a){return ln(o,av(o),a)}function ul(o,a){return function(d,E){var k=Pe(d)?WE:oO,C=a?a():{};return k(d,o,ke(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&&Jt(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 Kg(o,a){return function(d,E){if(d==null)return d;if(!nr(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 Yg(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=ps(o);function C(){var L=this&&this!==$t&&this instanceof C?k:o;return L.apply(E?d:this,arguments)}return C}function Xg(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 Au(Yv(Kv(a).replace(TE,"")),o,"")}}function ps(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=ps(o);function k(){for(var C=arguments.length,L=J(C),B=C,G=po(k);B--;)L[B]=arguments[B];var oe=C<3&&L[0]!==G&&L[C-1]!==G?[]:Yn(L,G);if(C-=oe.length,C<d)return rv(o,a,dl,k.placeholder,r,L,oe,r,r,d-C);var se=this&&this!==$t&&this instanceof k?E:o;return fr(se,this,L)}return k}function Jg(o){return function(a,d,E){var k=nt(a);if(!nr(a)){var C=ke(d,3);a=It(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 Qg(o){return Cn(function(a){var d=a.length,E=d,k=Cr.prototype.thru;for(o&&a.reverse();E--;){var C=a[E];if(typeof C!="function")throw new Rr(l);if(k&&!L&&gl(C)=="wrapper")var L=new Cr([],!0)}for(E=L?E:d;++E<d;){C=a[E];var B=gl(C),G=B=="wrapper"?ad(C):r;G&&dd(G[0])&&G[1]==(P|O|R|z)&&!G[4].length&&G[9]==1?L=L[gl(G[0])].apply(L,G[3]):L=C.length==1&&dd(C)?L[B]():L.thru(C)}return function(){var oe=arguments,se=oe[0];if(L&&oe.length==1&&Pe(se))return L.plant(se).value();for(var ce=0,me=d?a[ce].apply(this,oe):se;++ce<d;)me=a[ce].call(this,me);return me}})}function dl(o,a,d,E,k,C,L,B,G,oe){var se=a&P,ce=a&m,me=a&w,Se=a&(O|_),Ae=a&U,Ne=me?r:ps(o);function _e(){for(var Le=arguments.length,$e=J(Le),mr=Le;mr--;)$e[mr]=arguments[mr];if(Se)var Qt=po(_e),br=XE($e,Qt);if(E&&($e=Gg($e,E,k,Se)),C&&($e=Zg($e,C,L,Se)),Le-=br,Se&&Le<oe){var bt=Yn($e,Qt);return rv(o,a,dl,_e.placeholder,d,$e,bt,B,G,oe-Le)}var Gr=ce?d:this,Mn=me?Gr[o]:o;return Le=$e.length,B?$e=ok($e,B):Ae&&Le>1&&$e.reverse(),se&&G<Le&&($e.length=G),this&&this!==$t&&this instanceof _e&&(Mn=Ne||ps(Mn)),Mn.apply(Gr,$e)}return _e}function ev(o,a){return function(d,E){return pO(d,o,a(E),{})}}function fl(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=gr(d),E=gr(E)):(d=jg(d),E=jg(E)),k=o(d,E)}return k}}function nd(o){return Cn(function(a){return a=ut(a,hr(ke())),Me(function(d){var E=this;return o(a,function(k){return fr(k,E,d)})})})}function pl(o,a){a=a===r?" ":gr(a);var d=a.length;if(d<2)return d?Yu(a,o):a;var E=Yu(a,Qa(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=ps(o);function L(){for(var B=-1,G=arguments.length,oe=-1,se=E.length,ce=J(se+G),me=this&&this!==$t&&this instanceof L?C:o;++oe<se;)ce[oe]=E[oe];for(;G--;)ce[oe++]=arguments[++B];return fr(me,k?d:this,ce)}return L}function tv(o){return function(a,d,E){return E&&typeof E!="number"&&Jt(a,d,E)&&(d=E=r),a=Nn(a),d===r?(d=a,a=0):d=Nn(d),E=E===r?a<d?1:-1:Nn(E),OO(a,d,E,o)}}function hl(o){return function(a,d){return typeof a=="string"&&typeof d=="string"||(a=Mr(a),d=Mr(d)),o(a,d)}}function rv(o,a,d,E,k,C,L,B,G,oe){var se=a&O,ce=se?L:r,me=se?r:L,Se=se?C:r,Ae=se?r:C;a|=se?R:H,a&=~(se?H:R),a&x||(a&=-4);var Ne=[o,a,k,Se,ce,Ae,me,B,G,oe],_e=d.apply(r,Ne);return dd(o)&&hv(_e,Ne),_e.placeholder=E,gv(_e,o,a)}function id(o){var a=kt[o];return function(d,E){if(d=Mr(d),E=E==null?0:qt(Ie(E),292),E&&gg(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)}:Ad;function nv(o){return function(a){var d=Gt(a);return d==at?Mu(a):d==Lt?i_(a):YE(a,o(a))}}function Rn(o,a,d,E,k,C,L,B){var G=a&w;if(!G&&typeof o!="function")throw new Rr(l);var oe=E?E.length:0;if(oe||(a&=-97,E=k=r),L=L===r?L:At(Ie(L),0),B=B===r?B:Ie(B),oe-=k?k.length:0,a&H){var se=E,ce=k;E=k=r}var me=G?r:ad(o),Se=[o,a,d,E,k,se,ce,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:At(Se[9]-oe,0),!B&&a&(O|_)&&(a&=-25),!a||a==m)var Ae=$O(o,a,d);else a==O||a==_?Ae=jO(o,a,B):(a==R||a==(m|R))&&!k.length?Ae=FO(o,a,d,E):Ae=dl.apply(r,Se);var Ne=me?zg:hv;return gv(Ne(Ae,Se),o,a)}function iv(o,a,d,E){return o===r||qr(o,so[d])&&!Ue.call(E,d)?a:o}function ov(o,a,d,E,k,C){return pt(o)&&pt(a)&&(C.set(a,o),al(o,a,r,ov,C),C.delete(a)),o}function WO(o){return vs(o)?r:o}function sv(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 oe=C.get(o),se=C.get(a);if(oe&&se)return oe==a&&se==o;var ce=-1,me=!0,Se=d&y?new Oi:r;for(C.set(o,a),C.set(a,o);++ce<B;){var Ae=o[ce],Ne=a[ce];if(E)var _e=L?E(Ne,Ae,ce,a,o,C):E(Ae,Ne,ce,o,a,C);if(_e!==r){if(_e)continue;me=!1;break}if(Se){if(!Tu(a,function(Le,$e){if(!rs(Se,$e)&&(Ae===Le||k(Ae,Le,d,E,C)))return Se.push($e)})){me=!1;break}}else if(!(Ae===Ne||k(Ae,Ne,d,E,C))){me=!1;break}}return C.delete(o),C.delete(a),me}function BO(o,a,d,E,k,C,L){switch(d){case Wr:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case Ar:return!(o.byteLength!=a.byteLength||!C(new Ka(o),new Ka(a)));case pe:case he:case Kt:return qr(+o,+a);case Z:return o.name==a.name&&o.message==a.message;case kr:case Ct:return o==a+"";case at:var B=Mu;case Lt:var G=E&v;if(B||(B=Ba),o.size!=a.size&&!G)return!1;var oe=L.get(o);if(oe)return oe==a;E|=y,L.set(o,a);var se=sv(B(o),B(a),E,k,C,L);return L.delete(o),se;case Ut:if(as)return as.call(o)==as.call(a)}return!1}function VO(o,a,d,E,k,C){var L=d&v,B=od(o),G=B.length,oe=od(a),se=oe.length;if(G!=se&&!L)return!1;for(var ce=G;ce--;){var me=B[ce];if(!(L?me in a:Ue.call(a,me)))return!1}var Se=C.get(o),Ae=C.get(a);if(Se&&Ae)return Se==a&&Ae==o;var Ne=!0;C.set(o,a),C.set(a,o);for(var _e=L;++ce<G;){me=B[ce];var Le=o[me],$e=a[me];if(E)var mr=L?E($e,Le,me,a,o,C):E(Le,$e,me,o,a,C);if(!(mr===r?Le===$e||k(Le,$e,d,E,C):mr)){Ne=!1;break}_e||(_e=me=="constructor")}if(Ne&&!_e){var Qt=o.constructor,br=a.constructor;Qt!=br&&"constructor"in o&&"constructor"in a&&!(typeof Qt=="function"&&Qt instanceof Qt&&typeof br=="function"&&br instanceof br)&&(Ne=!1)}return C.delete(o),C.delete(a),Ne}function Cn(o){return pd(fv(o,r,xv),o+"")}function od(o){return kg(o,It,cd)}function sd(o){return kg(o,ir,av)}var ad=tl?function(o){return tl.get(o)}:Ad;function gl(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 ke(){var o=T.iteratee||Od;return o=o===Od?Rg:o,arguments.length?o(arguments[0],arguments[1]):o}function vl(o,a){var d=o.__data__;return JO(a)?d[typeof a=="string"?"string":"hash"]:d.map}function ld(o){for(var a=It(o),d=a.length;d--;){var E=a[d],k=o[E];a[d]=[E,k,uv(k)]}return a}function Ti(o,a){var d=t_(o,a);return Tg(d)?d:r}function UO(o){var a=Ue.call(o,Ei),d=o[Ei];try{o[Ei]=r;var E=!0}catch{}var k=Ga.call(o);return E&&(a?o[Ei]=d:delete o[Ei]),k}var cd=Lu?function(o){return o==null?[]:(o=nt(o),Zn(Lu(o),function(a){return pg.call(o,a)}))}:Td,av=Lu?function(o){for(var a=[];o;)Kn(a,cd(o)),o=Ya(o);return a}:Td,Gt=Xt;(zu&&Gt(new zu(new ArrayBuffer(1)))!=Wr||is&&Gt(new is)!=at||$u&&Gt($u.resolve())!=bi||ao&&Gt(new ao)!=Lt||os&&Gt(new os)!=en)&&(Gt=function(o){var a=Xt(o),d=a==ur?o.constructor:r,E=d?Ri(d):"";if(E)switch(E){case A_:return Wr;case T_:return at;case R_:return bi;case C_:return Lt;case P_:return en}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=qt(a,o+L);break;case"takeRight":o=At(o,a-L);break}}return{start:o,end:a}}function GO(o){var a=o.match(mu);return a?a[1].split(He):[]}function lv(o,a,d){a=ei(a,o);for(var E=-1,k=a.length,C=!1;++E<k;){var L=Ur(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&&El(k)&&Pn(L,k)&&(Pe(o)||Ci(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 cv(o){return typeof o.constructor=="function"&&!hs(o)?co(Ya(o)):{}}function KO(o,a,d){var E=o.constructor;switch(a){case Ar:return rd(o);case pe:case he:return new E(+o);case Wr:return IO(o,d);case dr:case Ko:case Yo:case tr:case xi:case Xo:case Ki:case Yi:case Jo:return Ug(o,d);case at:return new E;case Kt:case Ct:return new E(o);case kr:return NO(o);case Lt:return new E;case Ut: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(za,`{
|
|
233
|
-
/* [wrapped with `+
|
|
234
|
-
`)}function XO(o){return Pe(o)||Ci(o)||!!(hg&&o&&o[hg])}function Pn(o,a){var d=typeof o;return a=a??ve,!!a&&(d=="number"||d!="symbol"&&Gn.test(o))&&o>-1&&o%1==0&&o<a}function Jt(o,a,d){if(!pt(d))return!1;var E=typeof a;return(E=="number"?nr(d)&&Pn(a,d.length):E=="string"&&a in d)?qr(d[a],o):!1}function ud(o,a){if(Pe(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||vr(o)?!0:La.test(o)||!hu.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 dd(o){var a=gl(o),d=T[a];if(typeof d!="function"||!(a in ze.prototype))return!1;if(o===d)return!0;var E=ad(d);return!!E&&o===E[0]}function QO(o){return!!ug&&ug in o}var ek=Ua?In:Rd;function hs(o){var a=o&&o.constructor,d=typeof a=="function"&&a.prototype||so;return o===d}function uv(o){return o===o&&!pt(o)}function dv(o,a){return function(d){return d==null?!1:d[o]===a&&(a!==r||o in nt(d))}}function tk(o){var a=xl(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|P),L=E==P&&d==O||E==P&&d==z&&o[7].length<=a[8]||E==(P|z)&&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?Gg(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?Zg(G,B,a[6]):B,o[6]=G?Yn(o[5],p):a[6]),B=a[7],B&&(o[7]=B),E&P&&(o[8]=o[8]==null?a[8]:qt(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 Ga.call(o)}function fv(o,a,d){return a=At(a===r?o.length-1:a,0),function(){for(var E=arguments,k=-1,C=At(E.length-a,0),L=J(C);++k<C;)L[k]=E[a+k];k=-1;for(var B=J(a+1);++k<a;)B[k]=E[k];return B[a]=d(L),fr(o,this,B)}}function pv(o,a){return a.length<2?o:Ai(o,Ir(a,0,-1))}function ok(o,a){for(var d=o.length,E=qt(a.length,d),k=rr(o);E--;){var C=a[E];o[E]=Pn(C,d)?k[C]:r}return o}function fd(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var hv=vv(zg),gs=w_||function(o,a){return $t.setTimeout(o,a)},pd=vv(TO);function gv(o,a,d){var E=a+"";return pd(o,YO(E,sk(GO(E),d)))}function vv(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 ml(o,a){var d=-1,E=o.length,k=E-1;for(a=a===r?E:a;++d<a;){var C=Ku(d,k),L=o[C];o[C]=o[d],o[d]=L}return o.length=a,o}var mv=tk(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(gu,function(d,E,k,C){a.push(k?C.replace(Pt,"$1"):E||d)}),a});function Ur(o){if(typeof o=="string"||vr(o))return o;var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Ri(o){if(o!=null){try{return qa.call(o)}catch{}try{return o+""}catch{}}return""}function sk(o,a){return pr(ue,function(d){var E="_."+d[0];a&d[1]&&!Ha(o,E)&&o.push(E)}),o.sort()}function bv(o){if(o instanceof ze)return o.clone();var a=new Cr(o.__wrapped__,o.__chain__);return a.__actions__=rr(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function ak(o,a,d){(d?Jt(o,a,d):a===r)?a=1:a=At(Ie(a),0);var E=o==null?0:o.length;if(!E||a<1)return[];for(var k=0,C=0,L=J(Qa(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=J(o-1),d=arguments[0],E=o;E--;)a[E-1]=arguments[E];return Kn(Pe(d)?rr(d):[d],jt(a,1))}var uk=Me(function(o,a){return mt(o)?cs(o,jt(a,1,mt,!0)):[]}),dk=Me(function(o,a){var d=Nr(a);return mt(d)&&(d=r),mt(o)?cs(o,jt(a,1,mt,!0),ke(d,2)):[]}),fk=Me(function(o,a){var d=Nr(a);return mt(d)&&(d=r),mt(o)?cs(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:Ie(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:Ie(a),a=E-a,Ir(o,0,a<0?0:a)):[]}function gk(o,a){return o&&o.length?cl(o,ke(a,3),!0,!0):[]}function vk(o,a){return o&&o.length?cl(o,ke(a,3),!0):[]}function mk(o,a,d,E){var k=o==null?0:o.length;return k?(d&&typeof d!="number"&&Jt(o,a,d)&&(d=0,E=k),cO(o,a,d,E)):[]}function yv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Ie(d);return k<0&&(k=At(E+k,0)),Wa(o,ke(a,3),k)}function wv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E-1;return d!==r&&(k=Ie(d),k=d<0?At(E+k,0):qt(k,E-1)),Wa(o,ke(a,3),k,!0)}function xv(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:Ie(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 Sv(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:Ie(d);return k<0&&(k=At(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,ed);return a.length&&a[0]===o[0]?Vu(a):[]}),_k=Me(function(o){var a=Nr(o),d=ut(o,ed);return a===Nr(d)?a=r:d.pop(),d.length&&d[0]===o[0]?Vu(d,ke(a,2)):[]}),Ok=Me(function(o){var a=Nr(o),d=ut(o,ed);return a=typeof a=="function"?a:r,a&&d.pop(),d.length&&d[0]===o[0]?Vu(d,r,a):[]});function kk(o,a){return o==null?"":S_.call(o,a)}function Nr(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=Ie(d),k=k<0?At(E+k,0):qt(k,E-1)),a===a?s_(o,a,k):Wa(o,rg,k,!0)}function Tk(o,a){return o&&o.length?Ng(o,Ie(a)):r}var Rk=Me(Ev);function Ev(o,a){return o&&o.length&&a&&a.length?Zu(o,a):o}function Ck(o,a,d){return o&&o.length&&a&&a.length?Zu(o,a,ke(d,2)):o}function Pk(o,a,d){return o&&o.length&&a&&a.length?Zu(o,a,r,d):o}var Ik=Cn(function(o,a){var d=o==null?0:o.length,E=Fu(o,a);return Lg(o,ut(a,function(k){return Pn(k,d)?+k:k}).sort(qg)),E});function Nk(o,a){var d=[];if(!(o&&o.length))return d;var E=-1,k=[],C=o.length;for(a=ke(a,3);++E<C;){var L=o[E];a(L,E,o)&&(d.push(L),k.push(E))}return Lg(o,k),d}function hd(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"&&Jt(o,a,d)?(a=0,d=E):(a=a==null?0:Ie(a),d=d===r?E:Ie(d)),Ir(o,a,d)):[]}function Dk(o,a){return ll(o,a)}function Lk(o,a,d){return Xu(o,a,ke(d,2))}function zk(o,a){var d=o==null?0:o.length;if(d){var E=ll(o,a);if(E<d&&qr(o[E],a))return E}return-1}function $k(o,a){return ll(o,a,!0)}function jk(o,a,d){return Xu(o,a,ke(d,2),!0)}function Fk(o,a){var d=o==null?0:o.length;if(d){var E=ll(o,a,!0)-1;if(qr(o[E],a))return E}return-1}function Hk(o){return o&&o.length?$g(o):[]}function Wk(o,a){return o&&o.length?$g(o,ke(a,2)):[]}function Bk(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:Ie(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:Ie(a),a=E-a,Ir(o,a<0?0:a,E)):[]}function qk(o,a){return o&&o.length?cl(o,ke(a,3),!1,!0):[]}function Gk(o,a){return o&&o.length?cl(o,ke(a,3)):[]}var Zk=Me(function(o){return Qn(jt(o,1,mt,!0))}),Kk=Me(function(o){var a=Nr(o);return mt(a)&&(a=r),Qn(jt(o,1,mt,!0),ke(a,2))}),Yk=Me(function(o){var a=Nr(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,ke(a,2)):[]}function Qk(o,a){return a=typeof a=="function"?a:r,o&&o.length?Qn(o,r,a):[]}function gd(o){if(!(o&&o.length))return[];var a=0;return o=Zn(o,function(d){if(mt(d))return a=At(d.length,a),!0}),Iu(a,function(d){return ut(o,Ru(d))})}function _v(o,a){if(!(o&&o.length))return[];var d=gd(o);return a==null?d:ut(d,function(E){return fr(a,r,E)})}var eA=Me(function(o,a){return mt(o)?cs(o,a):[]}),tA=Me(function(o){return Qu(Zn(o,mt))}),rA=Me(function(o){var a=Nr(o);return mt(a)&&(a=r),Qu(Zn(o,mt),ke(a,2))}),nA=Me(function(o){var a=Nr(o);return a=typeof a=="function"?a:r,Qu(Zn(o,mt),r,a)}),iA=Me(gd);function oA(o,a){return Wg(o||[],a||[],ls)}function sA(o,a){return Wg(o||[],a||[],fs)}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,_v(o,d)});function Ov(o){var a=T(o);return a.__chain__=!0,a}function lA(o,a){return a(o),o}function bl(o,a){return a(o)}var cA=Cn(function(o){var a=o.length,d=a?o[0]:0,E=this.__wrapped__,k=function(C){return Fu(C,o)};return a>1||this.__actions__.length||!(E instanceof ze)||!Pn(d)?this.thru(k):(E=E.slice(d,+d+(a?1:0)),E.__actions__.push({func:bl,args:[k],thisArg:r}),new Cr(E,this.__chain__).thru(function(C){return a&&!C.length&&C.push(r),C}))});function uA(){return Ov(this)}function dA(){return new Cr(this.value(),this.__chain__)}function fA(){this.__values__===r&&(this.__values__=jv(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 nl;){var E=bv(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:bl,args:[hd],thisArg:r}),new Cr(a,this.__chain__)}return this.thru(hd)}function vA(){return Hg(this.__wrapped__,this.__actions__)}var mA=ul(function(o,a,d){Ue.call(o,d)?++o[d]:sn(o,d,1)});function bA(o,a,d){var E=Pe(o)?eg:lO;return d&&Jt(o,a,d)&&(a=r),E(o,ke(a,3))}function yA(o,a){var d=Pe(o)?Zn:_g;return d(o,ke(a,3))}var wA=Jg(yv),xA=Jg(wv);function SA(o,a){return jt(yl(o,a),1)}function EA(o,a){return jt(yl(o,a),Y)}function _A(o,a,d){return d=d===r?1:Ie(d),jt(yl(o,a),d)}function kv(o,a){var d=Pe(o)?pr:Jn;return d(o,ke(a,3))}function Av(o,a){var d=Pe(o)?BE:Eg;return d(o,ke(a,3))}var OA=ul(function(o,a,d){Ue.call(o,d)?o[d].push(a):sn(o,d,[a])});function kA(o,a,d,E){o=nr(o)?o:go(o),d=d&&!E?Ie(d):0;var k=o.length;return d<0&&(d=At(k+d,0)),_l(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=nr(o)?J(o.length):[];return Jn(o,function(L){C[++E]=k?fr(a,L,d):us(L,a,d)}),C}),TA=ul(function(o,a,d){sn(o,d,a)});function yl(o,a){var d=Pe(o)?ut:Cg;return d(o,ke(a,3))}function RA(o,a,d,E){return o==null?[]:(Pe(a)||(a=a==null?[]:[a]),d=E?r:d,Pe(d)||(d=d==null?[]:[d]),Mg(o,a,d))}var CA=ul(function(o,a,d){o[d?0:1].push(a)},function(){return[[],[]]});function PA(o,a,d){var E=Pe(o)?Au:ig,k=arguments.length<3;return E(o,ke(a,4),d,k,Jn)}function IA(o,a,d){var E=Pe(o)?VE:ig,k=arguments.length<3;return E(o,ke(a,4),d,k,Eg)}function NA(o,a){var d=Pe(o)?Zn:_g;return d(o,Sl(ke(a,3)))}function MA(o){var a=Pe(o)?yg:kO;return a(o)}function DA(o,a,d){(d?Jt(o,a,d):a===r)?a=1:a=Ie(a);var E=Pe(o)?nO:AO;return E(o,a)}function LA(o){var a=Pe(o)?iO:RO;return a(o)}function zA(o){if(o==null)return 0;if(nr(o))return _l(o)?io(o):o.length;var a=Gt(o);return a==at||a==Lt?o.size:qu(o).length}function $A(o,a,d){var E=Pe(o)?Tu:CO;return d&&Jt(o,a,d)&&(a=r),E(o,ke(a,3))}var jA=Me(function(o,a){if(o==null)return[];var d=a.length;return d>1&&Jt(o,a[0],a[1])?a=[]:d>2&&Jt(a[0],a[1],a[2])&&(a=[a[0]]),Mg(o,jt(a,1),[])}),wl=y_||function(){return $t.Date.now()};function FA(o,a){if(typeof a!="function")throw new Rr(l);return o=Ie(o),function(){if(--o<1)return a.apply(this,arguments)}}function Tv(o,a,d){return a=d?r:a,a=o&&a==null?o.length:a,Rn(o,P,r,r,r,r,a)}function Rv(o,a){var d;if(typeof a!="function")throw new Rr(l);return o=Ie(o),function(){return--o>0&&(d=a.apply(this,arguments)),o<=1&&(a=r),d}}var vd=Me(function(o,a,d){var E=m;if(d.length){var k=Yn(d,po(vd));E|=R}return Rn(o,E,a,d,k)}),Cv=Me(function(o,a,d){var E=m|w;if(d.length){var k=Yn(d,po(Cv));E|=R}return Rn(a,E,o,d,k)});function Pv(o,a,d){a=d?r:a;var E=Rn(o,O,r,r,r,r,r,a);return E.placeholder=Pv.placeholder,E}function Iv(o,a,d){a=d?r:a;var E=Rn(o,_,r,r,r,r,r,a);return E.placeholder=Iv.placeholder,E}function Nv(o,a,d){var E,k,C,L,B,G,oe=0,se=!1,ce=!1,me=!0;if(typeof o!="function")throw new Rr(l);a=Mr(a)||0,pt(d)&&(se=!!d.leading,ce="maxWait"in d,C=ce?At(Mr(d.maxWait)||0,a):C,me="trailing"in d?!!d.trailing:me);function Se(bt){var Gr=E,Mn=k;return E=k=r,oe=bt,L=o.apply(Mn,Gr),L}function Ae(bt){return oe=bt,B=gs(Le,a),se?Se(bt):L}function Ne(bt){var Gr=bt-G,Mn=bt-oe,Qv=a-Gr;return ce?qt(Qv,C-Mn):Qv}function _e(bt){var Gr=bt-G,Mn=bt-oe;return G===r||Gr>=a||Gr<0||ce&&Mn>=C}function Le(){var bt=wl();if(_e(bt))return $e(bt);B=gs(Le,Ne(bt))}function $e(bt){return B=r,me&&E?Se(bt):(E=k=r,L)}function mr(){B!==r&&Bg(B),oe=0,E=G=k=B=r}function Qt(){return B===r?L:$e(wl())}function br(){var bt=wl(),Gr=_e(bt);if(E=arguments,k=this,G=bt,Gr){if(B===r)return Ae(G);if(ce)return Bg(B),B=gs(Le,a),Se(G)}return B===r&&(B=gs(Le,a)),L}return br.cancel=mr,br.flush=Qt,br}var HA=Me(function(o,a){return Sg(o,1,a)}),WA=Me(function(o,a,d){return Sg(o,Mr(a)||0,d)});function BA(o){return Rn(o,U)}function xl(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Rr(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(xl.Cache||Tn),d}xl.Cache=Tn;function Sl(o){if(typeof o!="function")throw new Rr(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 Rv(2,o)}var UA=PO(function(o,a){a=a.length==1&&Pe(a[0])?ut(a[0],hr(ke())):ut(jt(a,1),hr(ke()));var d=a.length;return Me(function(E){for(var k=-1,C=qt(E.length,d);++k<C;)E[k]=a[k].call(this,E[k]);return fr(o,this,E)})}),md=Me(function(o,a){var d=Yn(a,po(md));return Rn(o,R,r,a,d)}),Mv=Me(function(o,a){var d=Yn(a,po(Mv));return Rn(o,H,r,a,d)}),qA=Cn(function(o,a){return Rn(o,z,r,r,r,a)});function GA(o,a){if(typeof o!="function")throw new Rr(l);return a=a===r?a:Ie(a),Me(o,a)}function ZA(o,a){if(typeof o!="function")throw new Rr(l);return a=a==null?0:At(Ie(a),0),Me(function(d){var E=d[a],k=ti(d,0,a);return E&&Kn(k,E),fr(o,this,k)})}function KA(o,a,d){var E=!0,k=!0;if(typeof o!="function")throw new Rr(l);return pt(d)&&(E="leading"in d?!!d.leading:E,k="trailing"in d?!!d.trailing:k),Nv(o,a,{leading:E,maxWait:a,trailing:k})}function YA(o){return Tv(o,1)}function XA(o,a){return md(td(a),o)}function JA(){if(!arguments.length)return[];var o=arguments[0];return Pe(o)?o:[o]}function QA(o){return Pr(o,S)}function eT(o,a){return a=typeof a=="function"?a:r,Pr(o,S,a)}function tT(o){return Pr(o,h|S)}function rT(o,a){return a=typeof a=="function"?a:r,Pr(o,h|S,a)}function nT(o,a){return a==null||xg(o,a,It(a))}function qr(o,a){return o===a||o!==o&&a!==a}var iT=hl(Bu),oT=hl(function(o,a){return o>=a}),Ci=Ag((function(){return arguments})())?Ag:function(o){return vt(o)&&Ue.call(o,"callee")&&!pg.call(o,"callee")},Pe=J.isArray,sT=Zh?hr(Zh):hO;function nr(o){return o!=null&&El(o.length)&&!In(o)}function mt(o){return vt(o)&&nr(o)}function aT(o){return o===!0||o===!1||vt(o)&&Xt(o)==pe}var ri=x_||Rd,lT=Kh?hr(Kh):gO;function cT(o){return vt(o)&&o.nodeType===1&&!vs(o)}function uT(o){if(o==null)return!0;if(nr(o)&&(Pe(o)||typeof o=="string"||typeof o.splice=="function"||ri(o)||ho(o)||Ci(o)))return!o.length;var a=Gt(o);if(a==at||a==Lt)return!o.size;if(hs(o))return!qu(o).length;for(var d in o)if(Ue.call(o,d))return!1;return!0}function dT(o,a){return ds(o,a)}function fT(o,a,d){d=typeof d=="function"?d:r;var E=d?d(o,a):r;return E===r?ds(o,a,r,d):!!E}function bd(o){if(!vt(o))return!1;var a=Xt(o);return a==Z||a==xe||typeof o.message=="string"&&typeof o.name=="string"&&!vs(o)}function pT(o){return typeof o=="number"&&gg(o)}function In(o){if(!pt(o))return!1;var a=Xt(o);return a==Oe||a==ge||a==de||a==xt}function Dv(o){return typeof o=="number"&&o==Ie(o)}function El(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 Lv=Yh?hr(Yh):mO;function hT(o,a){return o===a||Uu(o,a,ld(a))}function gT(o,a,d){return d=typeof d=="function"?d:r,Uu(o,a,ld(a),d)}function vT(o){return zv(o)&&o!=+o}function mT(o){if(ek(o))throw new Re(s);return Tg(o)}function bT(o){return o===null}function yT(o){return o==null}function zv(o){return typeof o=="number"||vt(o)&&Xt(o)==Kt}function vs(o){if(!vt(o)||Xt(o)!=ur)return!1;var a=Ya(o);if(a===null)return!0;var d=Ue.call(a,"constructor")&&a.constructor;return typeof d=="function"&&d instanceof d&&qa.call(d)==g_}var yd=Xh?hr(Xh):bO;function wT(o){return Dv(o)&&o>=-ve&&o<=ve}var $v=Jh?hr(Jh):yO;function _l(o){return typeof o=="string"||!Pe(o)&&vt(o)&&Xt(o)==Ct}function vr(o){return typeof o=="symbol"||vt(o)&&Xt(o)==Ut}var ho=Qh?hr(Qh):wO;function xT(o){return o===r}function ST(o){return vt(o)&&Gt(o)==en}function ET(o){return vt(o)&&Xt(o)==wi}var _T=hl(Gu),OT=hl(function(o,a){return o<=a});function jv(o){if(!o)return[];if(nr(o))return _l(o)?Br(o):rr(o);if(ns&&o[ns])return n_(o[ns]());var a=Gt(o),d=a==at?Mu:a==Lt?Ba:go;return d(o)}function Nn(o){if(!o)return o===0?o:0;if(o=Mr(o),o===Y||o===-Y){var a=o<0?-1:1;return a*j}return o===o?o:0}function Ie(o){var a=Nn(o),d=a%1;return a===a?d?a-d:a:0}function Fv(o){return o?ki(Ie(o),0,ee):0}function Mr(o){if(typeof o=="number")return o;if(vr(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=og(o);var d=rn.test(o);return d||on.test(o)?FE(o.slice(2),d?2:8):Yt.test(o)?W:+o}function Hv(o){return ln(o,ir(o))}function kT(o){return o?ki(Ie(o),-ve,ve):o===0?o:0}function qe(o){return o==null?"":gr(o)}var AT=uo(function(o,a){if(hs(a)||nr(a)){ln(a,It(a),o);return}for(var d in a)Ue.call(a,d)&&ls(o,d,a[d])}),Wv=uo(function(o,a){ln(a,ir(a),o)}),Bv=uo(function(o,a,d,E){ln(a,ir(a),o,E)}),wd=uo(function(o,a,d,E){ln(a,It(a),o,E)}),TT=Cn(Fu);function RT(o,a){var d=co(o);return a==null?d:wg(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&&Jt(a[0],a[1],k)&&(E=1);++d<E;)for(var C=a[d],L=ir(C),B=-1,G=L.length;++B<G;){var oe=L[B],se=o[oe];(se===r||qr(se,so[oe])&&!Ue.call(o,oe))&&(o[oe]=C[oe])}return o}),PT=Me(function(o){return o.push(r,ov),fr(Vv,r,o)});function IT(o,a){return tg(o,ke(a,3),an)}function NT(o,a){return tg(o,ke(a,3),Wu)}function MT(o,a){return o==null?o:Hu(o,ke(a,3),ir)}function DT(o,a){return o==null?o:Og(o,ke(a,3),ir)}function LT(o,a){return o&&an(o,ke(a,3))}function zT(o,a){return o&&Wu(o,ke(a,3))}function $T(o){return o==null?[]:sl(o,It(o))}function jT(o){return o==null?[]:sl(o,ir(o))}function xd(o,a,d){var E=o==null?r:Ai(o,a);return E===r?d:E}function FT(o,a){return o!=null&&lv(o,a,uO)}function Sd(o,a){return o!=null&&lv(o,a,dO)}var HT=ev(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=Ga.call(a)),o[a]=d},_d(or)),WT=ev(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=Ga.call(a)),Ue.call(o,a)?o[a].push(d):o[a]=[d]},ke),BT=Me(us);function It(o){return nr(o)?bg(o):qu(o)}function ir(o){return nr(o)?bg(o,!0):xO(o)}function VT(o,a){var d={};return a=ke(a,3),an(o,function(E,k,C){sn(d,a(E,k,C),E)}),d}function UT(o,a){var d={};return a=ke(a,3),an(o,function(E,k,C){sn(d,k,a(E,k,C))}),d}var qT=uo(function(o,a,d){al(o,a,d)}),Vv=uo(function(o,a,d,E){al(o,a,d,E)}),GT=Cn(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,sd(o),d),E&&(d=Pr(d,h|b|S,WO));for(var k=a.length;k--;)Ju(d,a[k]);return d});function ZT(o,a){return Uv(o,Sl(ke(a)))}var KT=Cn(function(o,a){return o==null?{}:EO(o,a)});function Uv(o,a){if(o==null)return{};var d=ut(sd(o),function(E){return[E]});return a=ke(a),Dg(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[Ur(a[E])];C===r&&(E=k,C=d),o=In(C)?C.call(o):C}return o}function XT(o,a,d){return o==null?o:fs(o,a,d)}function JT(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:fs(o,a,d,E)}var qv=nv(It),Gv=nv(ir);function QT(o,a,d){var E=Pe(o),k=E||ri(o)||ho(o);if(a=ke(a,4),d==null){var C=o&&o.constructor;k?d=E?new C:[]:pt(o)?d=In(C)?co(Ya(o)):{}:d={}}return(k?pr:an)(o,function(L,B,G){return a(d,L,B,G)}),d}function eR(o,a){return o==null?!0:Ju(o,a)}function tR(o,a,d){return o==null?o:Fg(o,a,td(d))}function rR(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:Fg(o,a,td(d),E)}function go(o){return o==null?[]:Nu(o,It(o))}function nR(o){return o==null?[]:Nu(o,ir(o))}function iR(o,a,d){return d===r&&(d=a,a=r),d!==r&&(d=Mr(d),d=d===d?d:0),a!==r&&(a=Mr(a),a=a===a?a:0),ki(Mr(o),a,d)}function oR(o,a,d){return a=Nn(a),d===r?(d=a,a=0):d=Nn(d),o=Mr(o),fO(o,a,d)}function sR(o,a,d){if(d&&typeof d!="boolean"&&Jt(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=Nn(o),a===r?(a=o,o=0):a=Nn(a)),o>a){var E=o;o=a,a=E}if(d||o%1||a%1){var k=vg();return qt(o+k*(a-o+jE("1e-"+((k+"").length-1))),a)}return Ku(o,a)}var aR=fo(function(o,a,d){return a=a.toLowerCase(),o+(d?Zv(a):a)});function Zv(o){return Ed(qe(o).toLowerCase())}function Kv(o){return o=qe(o),o&&o.replace(Qi,JE).replace(RE,"")}function lR(o,a,d){o=qe(o),a=gr(a);var E=o.length;d=d===r?E:ki(Ie(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&&pu.test(o)?o.replace(qn,QE):o}function uR(o){return o=qe(o),o&&vu.test(o)?o.replace(tn,"\\$&"):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=Xg("toLowerCase");function hR(o,a,d){o=qe(o),a=Ie(a);var E=a?io(o):0;if(!a||E>=a)return o;var k=(a-E)/2;return pl(el(k),d)+o+pl(Qa(k),d)}function gR(o,a,d){o=qe(o),a=Ie(a);var E=a?io(o):0;return a&&E<a?o+pl(a-E,d):o}function vR(o,a,d){o=qe(o),a=Ie(a);var E=a?io(o):0;return a&&E<a?pl(a-E,d)+o:o}function mR(o,a,d){return d||a==null?a=0:a&&(a=+a),O_(qe(o).replace(On,""),a||0)}function bR(o,a,d){return(d?Jt(o,a,d):a===r)?a=1:a=Ie(a),Yu(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"&&Jt(o,a,d)&&(a=d=r),d=d===r?ee:d>>>0,d?(o=qe(o),o&&(typeof a=="string"||a!=null&&!yd(a))&&(a=gr(a),!a&&no(o))?ti(Br(o),0,d):o.split(a,d)):[]}var SR=fo(function(o,a,d){return o+(d?" ":"")+Ed(a)});function ER(o,a,d){return o=qe(o),d=d==null?0:ki(Ie(d),0,o.length),a=gr(a),o.slice(d,d+a.length)==a}function _R(o,a,d){var E=T.templateSettings;d&&Jt(o,a,d)&&(a=r),o=qe(o),a=wd({},a,E,iv);var k=wd({},a.imports,E.imports,iv),C=It(k),L=Nu(k,C);pr(C,function(_e){if($a.test(_e))throw new Re(u)});var B,G,oe=0,se=a.interpolate||eo,ce="__p += '",me=Du((a.escape||eo).source+"|"+se.source+"|"+(se===Xi?zt:eo).source+"|"+(a.evaluate||eo).source+"|$","g"),Se="//# sourceURL="+(Ue.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ME+"]")+`
|
|
235
|
-
`;
|
|
236
|
-
__e(`+
|
|
237
|
-
'`),
|
|
238
|
-
`+
|
|
239
|
-
__p += '`)
|
|
240
|
-
((__t = (
|
|
241
|
-
'`),
|
|
242
|
-
`;var
|
|
243
|
-
`+
|
|
182
|
+
*/var x$=bo.exports,Sm;function S$(){return Sm||(Sm=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.",u="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]",Fr="[object GeneratorFunction]",bt="[object Map]",Jr="[object Number]",Vo="[object Null]",ar="[object Object]",Xo="[object Promise]",Dr="[object Proxy]",yr="[object RegExp]",Pt="[object Set]",Qr="[object String]",en="[object Symbol]",Yo="[object Undefined]",tn="[object WeakMap]",Jo="[object WeakSet]",rn="[object ArrayBuffer]",Yn="[object DataView]",Qa="[object Float32Array]",eu="[object Float64Array]",tu="[object Int8Array]",ru="[object Int16Array]",nu="[object Int32Array]",iu="[object Uint8Array]",ou="[object Uint8ClampedArray]",su="[object Uint16Array]",au="[object Uint32Array]",lb=/\b__p \+= '';/g,cb=/\b(__p \+=) '' \+/g,fb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wf=/&(?:amp|lt|gt|quot|#39);/g,Uf=/[&<>"']/g,db=RegExp(Wf.source),pb=RegExp(Uf.source),hb=/<%-([\s\S]+?)%>/g,gb=/<%([\s\S]+?)%>/g,Bf=/<%=([\s\S]+?)%>/g,mb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vb=/^\w*$/,yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uu=/[\\^$.*+?()[\]{}|]/g,bb=RegExp(uu.source),lu=/^\s+/,wb=/\s/,xb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sb=/\{\n\/\* \[wrapped with (.+)\] \*/,Eb=/,? & /,_b=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hf=/[()=,{}\[\]\/\s]/,Ob=/\\(\\)?/g,Ab=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qf=/\w*$/,Tb=/^[-+]0x[0-9a-f]+$/i,Rb=/^0b[01]+$/i,Pb=/^\[object .+?Constructor\]$/,Cb=/^0o[0-7]+$/i,kb=/^(?:0|[1-9]\d*)$/,$b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qo=/($^)/,Ib=/['\n\r\u2028\u2029\\]/g,es="\\ud800-\\udfff",Lb="\\u0300-\\u036f",Mb="\\ufe20-\\ufe2f",Fb="\\u20d0-\\u20ff",Zf=Lb+Mb+Fb,Gf="\\u2700-\\u27bf",Kf="a-z\\xdf-\\xf6\\xf8-\\xff",Db="\\xac\\xb1\\xd7\\xf7",Nb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jb="\\u2000-\\u206f",zb=" \\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",Vf="A-Z\\xc0-\\xd6\\xd8-\\xde",Xf="\\ufe0e\\ufe0f",Yf=Db+Nb+jb+zb,cu="['’]",Wb="["+es+"]",Jf="["+Yf+"]",ts="["+Zf+"]",Qf="\\d+",Ub="["+Gf+"]",ed="["+Kf+"]",td="[^"+es+Yf+Qf+Gf+Kf+Vf+"]",fu="\\ud83c[\\udffb-\\udfff]",Bb="(?:"+ts+"|"+fu+")",rd="[^"+es+"]",du="(?:\\ud83c[\\udde6-\\uddff]){2}",pu="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+Vf+"]",nd="\\u200d",id="(?:"+ed+"|"+td+")",Hb="(?:"+Jn+"|"+td+")",od="(?:"+cu+"(?:d|ll|m|re|s|t|ve))?",sd="(?:"+cu+"(?:D|LL|M|RE|S|T|VE))?",ad=Bb+"?",ud="["+Xf+"]?",qb="(?:"+nd+"(?:"+[rd,du,pu].join("|")+")"+ud+ad+")*",Zb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ld=ud+ad+qb,Kb="(?:"+[Ub,du,pu].join("|")+")"+ld,Vb="(?:"+[rd+ts+"?",ts,du,pu,Wb].join("|")+")",Xb=RegExp(cu,"g"),Yb=RegExp(ts,"g"),hu=RegExp(fu+"(?="+fu+")|"+Vb+ld,"g"),Jb=RegExp([Jn+"?"+ed+"+"+od+"(?="+[Jf,Jn,"$"].join("|")+")",Hb+"+"+sd+"(?="+[Jf,Jn+id,"$"].join("|")+")",Jn+"?"+id+"+"+od,Jn+"+"+sd,Gb,Zb,Qf,Kb].join("|"),"g"),Qb=RegExp("["+nd+es+Zf+Xf+"]"),ew=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tw=["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"],rw=-1,qe={};qe[Qa]=qe[eu]=qe[tu]=qe[ru]=qe[nu]=qe[iu]=qe[ou]=qe[su]=qe[au]=!0,qe[fe]=qe[ve]=qe[rn]=qe[Ae]=qe[Yn]=qe[_e]=qe[oe]=qe[ct]=qe[bt]=qe[Jr]=qe[ar]=qe[yr]=qe[Pt]=qe[Qr]=qe[tn]=!1;var Ue={};Ue[fe]=Ue[ve]=Ue[rn]=Ue[Yn]=Ue[Ae]=Ue[_e]=Ue[Qa]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=Ue[bt]=Ue[Jr]=Ue[ar]=Ue[yr]=Ue[Pt]=Ue[Qr]=Ue[en]=Ue[iu]=Ue[ou]=Ue[su]=Ue[au]=!0,Ue[oe]=Ue[ct]=Ue[tn]=!1;var nw={À:"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"},iw={"&":"&","<":"<",">":">",'"':""","'":"'"},ow={"&":"&","<":"<",">":">",""":'"',"'":"'"},sw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},aw=parseFloat,uw=parseInt,cd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,lw=typeof self=="object"&&self&&self.Object===Object&&self,pt=cd||lw||Function("return this")(),gu=t&&!t.nodeType&&t,An=gu&&!0&&e&&!e.nodeType&&e,fd=An&&An.exports===gu,mu=fd&&cd.process,Xt=(function(){try{var j=An&&An.require&&An.require("util").types;return j||mu&&mu.binding&&mu.binding("util")}catch{}})(),dd=Xt&&Xt.isArrayBuffer,pd=Xt&&Xt.isDate,hd=Xt&&Xt.isMap,gd=Xt&&Xt.isRegExp,md=Xt&&Xt.isSet,vd=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 cw(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 fw(j,K){for(var H=j==null?0:j.length;H--&&K(j[H],H,j)!==!1;);return j}function yd(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 nn(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 vu(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 on(j,K){for(var H=-1,ae=K.length,be=j.length;++H<ae;)j[be+H]=K[H];return j}function yu(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 dw(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 bu(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 pw=wu("length");function hw(j){return j.split("")}function gw(j){return j.match(_b)||[]}function bd(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?Tw(j,K,H):ns(j,wd,H)}function mw(j,K,H,ae){for(var be=H-1,$e=j.length;++be<$e;)if(ae(j[be],K))return be;return-1}function wd(j){return j!==j}function xd(j,K){var H=j==null?0:j.length;return H?Su(j,K)/H:te}function wu(j){return function(K){return K==null?r:K[j]}}function xu(j){return function(K){return j==null?r:j[K]}}function Sd(j,K,H,ae,be){return be(j,function($e,ut,We){H=ae?(ae=!1,$e):K(H,$e,ut,We)}),H}function vw(j,K){var H=j.length;for(j.sort(K);H--;)j[H]=j[H].value;return j}function Su(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 Eu(j,K){for(var H=-1,ae=Array(j);++H<j;)ae[H]=K(H);return ae}function yw(j,K){return Ze(K,function(H){return[H,j[H]]})}function Ed(j){return j&&j.slice(0,Td(j)+1).replace(lu,"")}function jt(j){return function(K){return j(K)}}function _u(j,K){return Ze(K,function(H){return j[H]})}function ki(j,K){return j.has(K)}function _d(j,K){for(var H=-1,ae=j.length;++H<ae&&Qn(K,j[H],0)>-1;);return H}function Od(j,K){for(var H=j.length;H--&&Qn(K,j[H],0)>-1;);return H}function bw(j,K){for(var H=j.length,ae=0;H--;)j[H]===K&&++ae;return ae}var ww=xu(nw),xw=xu(iw);function Sw(j){return"\\"+sw[j]}function Ew(j,K){return j==null?r:j[K]}function ei(j){return Qb.test(j)}function _w(j){return ew.test(j)}function Ow(j){for(var K,H=[];!(K=j.next()).done;)H.push(K.value);return H}function Ou(j){var K=-1,H=Array(j.size);return j.forEach(function(ae,be){H[++K]=[be,ae]}),H}function Ad(j,K){return function(H){return j(K(H))}}function sn(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 Aw(j){var K=-1,H=Array(j.size);return j.forEach(function(ae){H[++K]=[ae,ae]}),H}function Tw(j,K,H){for(var ae=H-1,be=j.length;++ae<be;)if(j[ae]===K)return ae;return-1}function Rw(j,K,H){for(var ae=H+1;ae--;)if(j[ae]===K)return ae;return ae}function ti(j){return ei(j)?Cw(j):pw(j)}function ur(j){return ei(j)?kw(j):hw(j)}function Td(j){for(var K=j.length;K--&&wb.test(j.charAt(K)););return K}var Pw=xu(ow);function Cw(j){for(var K=hu.lastIndex=0;hu.test(j);)++K;return K}function kw(j){return j.match(hu)||[]}function $w(j){return j.match(Jb)||[]}var Iw=(function j(K){K=K==null?pt:ri.defaults(pt.Object(),K,ri.pick(pt,tw));var H=K.Array,ae=K.Date,be=K.Error,$e=K.Function,ut=K.Math,We=K.Object,Au=K.RegExp,Lw=K.String,Yt=K.TypeError,os=H.prototype,Mw=$e.prototype,ni=We.prototype,ss=K["__core-js_shared__"],as=Mw.toString,Le=ni.hasOwnProperty,Fw=0,Rd=(function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),us=ni.toString,Dw=as.call(We),Nw=pt._,jw=Au("^"+as.call(Le).replace(uu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ls=fd?K.Buffer:r,an=K.Symbol,cs=K.Uint8Array,Pd=ls?ls.allocUnsafe:r,fs=Ad(We.getPrototypeOf,We),Cd=We.create,kd=ni.propertyIsEnumerable,ds=os.splice,$d=an?an.isConcatSpreadable:r,$i=an?an.iterator:r,Tn=an?an.toStringTag:r,ps=(function(){try{var n=$n(We,"defineProperty");return n({},"",{}),n}catch{}})(),zw=K.clearTimeout!==pt.clearTimeout&&K.clearTimeout,Ww=ae&&ae.now!==pt.Date.now&&ae.now,Uw=K.setTimeout!==pt.setTimeout&&K.setTimeout,hs=ut.ceil,gs=ut.floor,Tu=We.getOwnPropertySymbols,Bw=ls?ls.isBuffer:r,Id=K.isFinite,Hw=os.join,qw=Ad(We.keys,We),lt=ut.max,wt=ut.min,Zw=ae.now,Gw=K.parseInt,Ld=ut.random,Kw=os.reverse,Ru=$n(K,"DataView"),Ii=$n(K,"Map"),Pu=$n(K,"Promise"),ii=$n(K,"Set"),Li=$n(K,"WeakMap"),Mi=$n(We,"create"),ms=Li&&new Li,oi={},Vw=In(Ru),Xw=In(Ii),Yw=In(Pu),Jw=In(ii),Qw=In(Li),vs=an?an.prototype:r,Fi=vs?vs.valueOf:r,Md=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 Fp(n)}return new Jt(n)}var si=(function(){function n(){}return function(o){if(!Ve(o))return{};if(Cd)return Cd(o);n.prototype=o;var l=new n;return n.prototype=r,l}})();function ys(){}function Jt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:hb,evaluate:gb,interpolate:Bf,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 e1(){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 t1(){if(this.__filtered__){var n=new Pe(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function r1(){var n=this.__wrapped__.value(),o=this.__dir__,l=Se(n),b=o<0,_=l?n.length:0,T=hx(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(!l||!b&&_==z&&le==z)return op(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 Rn(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function n1(){this.__data__=Mi?Mi(null):{},this.size=0}function i1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function o1(n){var o=this.__data__;if(Mi){var l=o[n];return l===m?r:l}return Le.call(o,n)?o[n]:r}function s1(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function a1(n,o){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=Mi&&o===r?m:o,this}Rn.prototype.clear=n1,Rn.prototype.delete=i1,Rn.prototype.get=o1,Rn.prototype.has=s1,Rn.prototype.set=a1;function Nr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function u1(){this.__data__=[],this.size=0}function l1(n){var o=this.__data__,l=bs(o,n);if(l<0)return!1;var b=o.length-1;return l==b?o.pop():ds.call(o,l,1),--this.size,!0}function c1(n){var o=this.__data__,l=bs(o,n);return l<0?r:o[l][1]}function f1(n){return bs(this.__data__,n)>-1}function d1(n,o){var l=this.__data__,b=bs(l,n);return b<0?(++this.size,l.push([n,o])):l[b][1]=o,this}Nr.prototype.clear=u1,Nr.prototype.delete=l1,Nr.prototype.get=c1,Nr.prototype.has=f1,Nr.prototype.set=d1;function jr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function p1(){this.size=0,this.__data__={hash:new Rn,map:new(Ii||Nr),string:new Rn}}function h1(n){var o=ks(this,n).delete(n);return this.size-=o?1:0,o}function g1(n){return ks(this,n).get(n)}function m1(n){return ks(this,n).has(n)}function v1(n,o){var l=ks(this,n),b=l.size;return l.set(n,o),this.size+=l.size==b?0:1,this}jr.prototype.clear=p1,jr.prototype.delete=h1,jr.prototype.get=g1,jr.prototype.has=m1,jr.prototype.set=v1;function Pn(n){var o=-1,l=n==null?0:n.length;for(this.__data__=new jr;++o<l;)this.add(n[o])}function y1(n){return this.__data__.set(n,m),this}function b1(n){return this.__data__.has(n)}Pn.prototype.add=Pn.prototype.push=y1,Pn.prototype.has=b1;function lr(n){var o=this.__data__=new Nr(n);this.size=o.size}function w1(){this.__data__=new Nr,this.size=0}function x1(n){var o=this.__data__,l=o.delete(n);return this.size=o.size,l}function S1(n){return this.__data__.get(n)}function E1(n){return this.__data__.has(n)}function _1(n,o){var l=this.__data__;if(l instanceof Nr){var b=l.__data__;if(!Ii||b.length<s-1)return b.push([n,o]),this.size=++l.size,this;l=this.__data__=new jr(b)}return l.set(n,o),this.size=l.size,this}lr.prototype.clear=w1,lr.prototype.delete=x1,lr.prototype.get=S1,lr.prototype.has=E1,lr.prototype.set=_1;function Fd(n,o){var l=Se(n),b=!l&&Ln(n),_=!l&&!b&&dn(n),T=!l&&!b&&!_&&ci(n),P=l||b||_||T,I=P?Eu(n.length,Lw):[],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")||Ur(V,z)))&&I.push(V);return I}function Dd(n){var o=n.length;return o?n[zu(0,o-1)]:r}function O1(n,o){return $s(Ct(n),Cn(o,0,n.length))}function A1(n){return $s(Ct(n))}function Cu(n,o,l){(l!==r&&!fr(n[o],l)||l===r&&!(o in n))&&br(n,o,l)}function Di(n,o,l){var b=n[o];(!(Le.call(n,o)&&fr(b,l))||l===r&&!(o in n))&&br(n,o,l)}function bs(n,o){for(var l=n.length;l--;)if(fr(n[l][0],o))return l;return-1}function T1(n,o,l,b){return un(n,function(_,T,P){o(b,_,l(_),P)}),b}function Nd(n,o){return n&&xr(o,ft(o),n)}function R1(n,o){return n&&xr(o,$t(o),n)}function br(n,o,l){o=="__proto__"&&ps?ps(n,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[o]=l}function ku(n,o){for(var l=-1,b=o.length,_=H(b),T=n==null;++l<b;)_[l]=T?r:dl(n,o[l]);return _}function Cn(n,o,l){return n===n&&(l!==r&&(n=n<=l?n:l),o!==r&&(n=n>=o?n:o)),n}function Qt(n,o,l,b,_,T){var P,I=o&g,z=o&v,V=o&x;if(l&&(P=_?l(n,b,_,T):l(n)),P!==r)return P;if(!Ve(n))return n;var X=Se(n);if(X){if(P=mx(n),!I)return Ct(n,P)}else{var ee=xt(n),se=ee==ct||ee==Fr;if(dn(n))return up(n,I);if(ee==ar||ee==fe||se&&!_){if(P=z||se?{}:Tp(n),!I)return z?ox(n,R1(P,n)):ix(n,Nd(P,n))}else{if(!Ue[ee])return _?n:{};P=vx(n,ee,I)}}T||(T=new lr);var le=T.get(n);if(le)return le;T.set(n,P),rh(n)?n.forEach(function(pe){P.add(Qt(pe,o,l,pe,n,T))}):eh(n)&&n.forEach(function(pe,Re){P.set(Re,Qt(pe,o,l,Re,n,T))});var me=V?z?Yu:Xu: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,l,Re,n,T))}),P}function P1(n){var o=ft(n);return function(l){return jd(l,n,o)}}function jd(n,o,l){var b=l.length;if(n==null)return!b;for(n=We(n);b--;){var _=l[b],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function zd(n,o,l){if(typeof n!="function")throw new Yt(u);return Hi(function(){n.apply(r,l)},o)}function Ni(n,o,l,b){var _=-1,T=rs,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;l&&(o=Ze(o,jt(l))),b?(T=vu,P=!1):o.length>=s&&(T=ki,P=!1,o=new Pn(o));e:for(;++_<I;){var X=n[_],ee=l==null?X:l(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 un=pp(wr),Wd=pp(Iu,!0);function C1(n,o){var l=!0;return un(n,function(b,_,T){return l=!!o(b,_,T),l}),l}function ws(n,o,l){for(var b=-1,_=n.length;++b<_;){var T=n[b],P=o(T);if(P!=null&&(I===r?P===P&&!Wt(P):l(P,I)))var I=P,z=T}return z}function k1(n,o,l,b){var _=n.length;for(l=Ee(l),l<0&&(l=-l>_?0:_+l),b=b===r||b>_?_:Ee(b),b<0&&(b+=_),b=l>b?0:ih(b);l<b;)n[l++]=o;return n}function Ud(n,o){var l=[];return un(n,function(b,_,T){o(b,_,T)&&l.push(b)}),l}function ht(n,o,l,b,_){var T=-1,P=n.length;for(l||(l=bx),_||(_=[]);++T<P;){var I=n[T];o>0&&l(I)?o>1?ht(I,o-1,l,b,_):on(_,I):b||(_[_.length]=I)}return _}var $u=hp(),Bd=hp(!0);function wr(n,o){return n&&$u(n,o,ft)}function Iu(n,o){return n&&Bd(n,o,ft)}function xs(n,o){return nn(o,function(l){return Br(n[l])})}function kn(n,o){o=cn(o,n);for(var l=0,b=o.length;n!=null&&l<b;)n=n[cr(o[l++])];return l&&l==b?n:r}function Hd(n,o,l){var b=o(n);return Se(n)?b:on(b,l(n))}function Ot(n){return n==null?n===r?Yo:Vo:Tn&&Tn in We(n)?px(n):Ax(n)}function Lu(n,o){return n>o}function $1(n,o){return n!=null&&Le.call(n,o)}function I1(n,o){return n!=null&&o in We(n)}function L1(n,o,l){return n>=wt(o,l)&&n<lt(o,l)}function Mu(n,o,l){for(var b=l?vu: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]=!l&&(o||_>=120&&X.length>=120)?new Pn(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=l||le!==0?le:0,!(se?ki(se,me):b(V,me,l))){for(P=T;--P;){var Oe=I[P];if(!(Oe?ki(Oe,me):b(n[P],me,l)))continue e}se&&se.push(me),V.push(le)}}return V}function M1(n,o,l,b){return wr(n,function(_,T,P){o(b,l(_),T,P)}),b}function ji(n,o,l){o=cn(o,n),n=kp(n,o);var b=n==null?n:n[cr(tr(o))];return b==null?r:Dt(b,n,l)}function qd(n){return et(n)&&Ot(n)==fe}function F1(n){return et(n)&&Ot(n)==rn}function D1(n){return et(n)&&Ot(n)==_e}function zi(n,o,l,b,_){return n===o?!0:n==null||o==null||!et(n)&&!et(o)?n!==n&&o!==o:N1(n,o,l,b,zi,_)}function N1(n,o,l,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&&dn(n)){if(!dn(o))return!1;P=!0,X=!1}if(se&&!X)return T||(T=new lr),P||ci(n)?_p(n,o,l,b,_,T):fx(n,o,z,l,b,_,T);if(!(l&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,l,b,T)}}return se?(T||(T=new lr),dx(n,o,l,b,_,T)):!1}function j1(n){return et(n)&&xt(n)==bt}function Fu(n,o,l,b){var _=l.length,T=_,P=!b;if(n==null)return!T;for(n=We(n);_--;){var I=l[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=l[_];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 Zd(n){if(!Ve(n)||xx(n))return!1;var o=Br(n)?jw:Pb;return o.test(In(n))}function z1(n){return et(n)&&Ot(n)==yr}function W1(n){return et(n)&&xt(n)==Pt}function U1(n){return et(n)&&Ns(n.length)&&!!qe[Ot(n)]}function Gd(n){return typeof n=="function"?n:n==null?It:typeof n=="object"?Se(n)?Xd(n[0],n[1]):Vd(n):mh(n)}function Du(n){if(!Bi(n))return qw(n);var o=[];for(var l in We(n))Le.call(n,l)&&l!="constructor"&&o.push(l);return o}function B1(n){if(!Ve(n))return Ox(n);var o=Bi(n),l=[];for(var b in n)b=="constructor"&&(o||!Le.call(n,b))||l.push(b);return l}function Nu(n,o){return n<o}function Kd(n,o){var l=-1,b=kt(n)?H(n.length):[];return un(n,function(_,T,P){b[++l]=o(_,T,P)}),b}function Vd(n){var o=Qu(n);return o.length==1&&o[0][2]?Pp(o[0][0],o[0][1]):function(l){return l===n||Fu(l,n,o)}}function Xd(n,o){return tl(n)&&Rp(o)?Pp(cr(n),o):function(l){var b=dl(l,n);return b===r&&b===o?pl(l,n):zi(o,b,d|w)}}function Ss(n,o,l,b,_){n!==o&&$u(o,function(T,P){if(_||(_=new lr),Ve(T))H1(n,o,P,l,Ss,b,_);else{var I=b?b(nl(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Cu(n,P,I)}},$t)}function H1(n,o,l,b,_,T,P){var I=nl(n,l),z=nl(o,l),V=P.get(z);if(V){Cu(n,l,V);return}var X=T?T(I,z,l+"",n,o,P):r,ee=X===r;if(ee){var se=Se(z),le=!se&&dn(z),me=!se&&!le&&ci(z);X=z,se||le||me?Se(I)?X=I:rt(I)?X=Ct(I):le?(ee=!1,X=up(z,!0)):me?(ee=!1,X=lp(z,!0)):X=[]:qi(z)||Ln(z)?(X=I,Ln(I)?X=oh(I):(!Ve(I)||Br(I))&&(X=Tp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,b,T,P),P.delete(z)),Cu(n,l,X)}function Yd(n,o){var l=n.length;if(l)return o+=o<0?l:0,Ur(o,l)?n[o]:r}function Jd(n,o,l){o.length?o=Ze(o,function(T){return Se(T)?function(P){return kn(P,T.length===1?T[0]:T)}:T}):o=[It];var b=-1;o=Ze(o,jt(ge()));var _=Kd(n,function(T,P,I){var z=Ze(o,function(V){return V(T)});return{criteria:z,index:++b,value:T}});return vw(_,function(T,P){return nx(T,P,l)})}function q1(n,o){return Qd(n,o,function(l,b){return pl(n,b)})}function Qd(n,o,l){for(var b=-1,_=o.length,T={};++b<_;){var P=o[b],I=kn(n,P);l(I,P)&&Wi(T,cn(P,n),I)}return T}function Z1(n){return function(o){return kn(o,n)}}function ju(n,o,l,b){var _=b?mw:Qn,T=-1,P=o.length,I=n;for(n===o&&(o=Ct(o)),l&&(I=Ze(n,jt(l)));++T<P;)for(var z=0,V=o[T],X=l?l(V):V;(z=_(I,X,z,b))>-1;)I!==n&&ds.call(I,z,1),ds.call(n,z,1);return n}function ep(n,o){for(var l=n?o.length:0,b=l-1;l--;){var _=o[l];if(l==b||_!==T){var T=_;Ur(_)?ds.call(n,_,1):Bu(n,_)}}return n}function zu(n,o){return n+gs(Ld()*(o-n+1))}function G1(n,o,l,b){for(var _=-1,T=lt(hs((o-n)/(l||1)),0),P=H(T);T--;)P[b?T:++_]=n,n+=l;return P}function Wu(n,o){var l="";if(!n||o<1||o>ce)return l;do o%2&&(l+=n),o=gs(o/2),o&&(n+=n);while(o);return l}function Te(n,o){return il(Cp(n,o,It),n+"")}function K1(n){return Dd(fi(n))}function V1(n,o){var l=fi(n);return $s(l,Cn(o,0,l.length))}function Wi(n,o,l,b){if(!Ve(n))return n;o=cn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=cr(o[_]),V=l;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:Ur(o[_+1])?[]:{})}Di(I,z,V),I=I[z]}return n}var tp=ms?function(n,o){return ms.set(n,o),n}:It,X1=ps?function(n,o){return ps(n,"toString",{configurable:!0,enumerable:!1,value:gl(o),writable:!0})}:It;function Y1(n){return $s(fi(n))}function er(n,o,l){var b=-1,_=n.length;o<0&&(o=-o>_?0:_+o),l=l>_?_:l,l<0&&(l+=_),_=o>l?0:l-o>>>0,o>>>=0;for(var T=H(_);++b<_;)T[b]=n[b+o];return T}function J1(n,o){var l;return un(n,function(b,_,T){return l=o(b,_,T),!l}),!!l}function Es(n,o,l){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)&&(l?P<=o:P<o)?b=T+1:_=T}return _}return Uu(n,o,It,l)}function Uu(n,o,l,b){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=l(o);for(var P=o!==o,I=o===null,z=Wt(o),V=o===r;_<T;){var X=gs((_+T)/2),ee=l(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 rp(n,o){for(var l=-1,b=n.length,_=0,T=[];++l<b;){var P=n[l],I=o?o(P):P;if(!l||!fr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function np(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 Md?Md.call(n):"";var o=n+"";return o=="0"&&1/n==-re?"-0":o}function ln(n,o,l){var b=-1,_=rs,T=n.length,P=!0,I=[],z=I;if(l)P=!1,_=vu;else if(T>=s){var V=o?null:lx(n);if(V)return is(V);P=!1,_=ki,z=new Pn}else z=o?[]:I;e:for(;++b<T;){var X=n[b],ee=o?o(X):X;if(X=l||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,l)||(z!==I&&z.push(ee),I.push(X))}return I}function Bu(n,o){o=cn(o,n);var l=-1,b=o.length;if(!b)return!0;for(;++l<b;){var _=cr(o[l]);if(_==="__proto__"&&!Le.call(n,"__proto__")||(_==="constructor"||_==="prototype")&&l<b-1)return!1}var T=kp(n,o);return T==null||delete T[cr(tr(o))]}function ip(n,o,l,b){return Wi(n,o,l(kn(n,o)),b)}function _s(n,o,l,b){for(var _=n.length,T=b?_:-1;(b?T--:++T<_)&&o(n[T],T,n););return l?er(n,b?0:T,b?T+1:_):er(n,b?T+1:0,b?_:T)}function op(n,o){var l=n;return l instanceof Pe&&(l=l.value()),yu(o,function(b,_){return _.func.apply(_.thisArg,on([b],_.args))},l)}function Hu(n,o,l){var b=n.length;if(b<2)return b?ln(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,l));return ln(ht(T,1),o,l)}function sp(n,o,l){for(var b=-1,_=n.length,T=o.length,P={};++b<_;){var I=b<T?o[b]:r;l(P,n[b],I)}return P}function qu(n){return rt(n)?n:[]}function Zu(n){return typeof n=="function"?n:It}function cn(n,o){return Se(n)?n:tl(n,o)?[n]:Mp(Me(n))}var Q1=Te;function fn(n,o,l){var b=n.length;return l=l===r?b:l,!o&&l>=b?n:er(n,o,l)}var ap=zw||function(n){return pt.clearTimeout(n)};function up(n,o){if(o)return n.slice();var l=n.length,b=Pd?Pd(l):new n.constructor(l);return n.copy(b),b}function Gu(n){var o=new n.constructor(n.byteLength);return new cs(o).set(new cs(n)),o}function ex(n,o){var l=o?Gu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}function tx(n){var o=new n.constructor(n.source,qf.exec(n));return o.lastIndex=n.lastIndex,o}function rx(n){return Fi?We(Fi.call(n)):{}}function lp(n,o){var l=o?Gu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}function cp(n,o){if(n!==o){var l=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||!l&&z||!_)return 1;if(!b&&!T&&!V&&n<o||V&&l&&_&&!b&&!T||I&&l&&_||!P&&_||!z)return-1}return 0}function nx(n,o,l){for(var b=-1,_=n.criteria,T=o.criteria,P=_.length,I=l.length;++b<P;){var z=cp(_[b],T[b]);if(z){if(b>=I)return z;var V=l[b];return z*(V=="desc"?-1:1)}}return n.index-o.index}function fp(n,o,l,b){for(var _=-1,T=n.length,P=l.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[l[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function dp(n,o,l,b){for(var _=-1,T=n.length,P=-1,I=l.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+l[P]]=n[_++]);return ee}function Ct(n,o){var l=-1,b=n.length;for(o||(o=H(b));++l<b;)o[l]=n[l];return o}function xr(n,o,l,b){var _=!l;l||(l={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=b?b(l[I],n[I],I,l,n):r;z===r&&(z=n[I]),_?br(l,I,z):Di(l,I,z)}return l}function ix(n,o){return xr(n,el(n),o)}function ox(n,o){return xr(n,Op(n),o)}function Os(n,o){return function(l,b){var _=Se(l)?cw:T1,T=o?o():{};return _(l,n,ge(b,2),T)}}function ai(n){return Te(function(o,l){var b=-1,_=l.length,T=_>1?l[_-1]:r,P=_>2?l[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&At(l[0],l[1],P)&&(T=_<3?r:T,_=1),o=We(o);++b<_;){var I=l[b];I&&n(o,I,b,T)}return o})}function pp(n,o){return function(l,b){if(l==null)return l;if(!kt(l))return n(l,b);for(var _=l.length,T=o?_:-1,P=We(l);(o?T--:++T<_)&&b(P[T],T,P)!==!1;);return l}}function hp(n){return function(o,l,b){for(var _=-1,T=We(o),P=b(o),I=P.length;I--;){var z=P[n?I:++_];if(l(T[z],z,T)===!1)break}return o}}function sx(n,o,l){var b=o&h,_=Ui(n);function T(){var P=this&&this!==pt&&this instanceof T?_:n;return P.apply(b?l:this,arguments)}return T}function gp(n){return function(o){o=Me(o);var l=ei(o)?ur(o):r,b=l?l[0]:o.charAt(0),_=l?fn(l,1).join(""):o.slice(1);return b[n]()+_}}function ui(n){return function(o){return yu(hh(ph(o).replace(Xb,"")),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 l=si(n.prototype),b=n.apply(l,o);return Ve(b)?b:l}}function ax(n,o,l){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?[]:sn(P,z);if(T-=V.length,T<l)return wp(n,o,As,_.placeholder,r,P,V,r,r,l-T);var X=this&&this!==pt&&this instanceof _?b:n;return Dt(X,this,P)}return _}function mp(n){return function(o,l,b){var _=We(o);if(!kt(o)){var T=ge(l,3);o=ft(o),l=function(I){return T(_[I],I,_)}}var P=n(o,l,b);return P>-1?_[T?o[P]:P]:r}}function vp(n){return Wr(function(o){var l=o.length,b=l,_=Jt.prototype.thru;for(n&&o.reverse();b--;){var T=o[b];if(typeof T!="function")throw new Yt(u);if(_&&!P&&Cs(T)=="wrapper")var P=new Jt([],!0)}for(b=P?b:l;++b<l;){T=o[b];var I=Cs(T),z=I=="wrapper"?Ju(T):r;z&&rl(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&&rl(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=l?o[ee].apply(this,V):X;++ee<l;)se=o[ee].call(this,se);return se}})}function As(n,o,l,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=bw(Ce,Tt);if(b&&(Ce=fp(Ce,b,_,le)),T&&(Ce=dp(Ce,T,P,le)),Re-=Bt,le&&Re<V){var nt=sn(Ce,Tt);return wp(n,o,As,pe.placeholder,l,Ce,nt,I,z,V-Re)}var dr=ee?l:this,qr=se?dr[n]:n;return Re=Ce.length,I?Ce=Tx(Ce,I):me&&Re>1&&Ce.reverse(),X&&z<Re&&(Ce.length=z),this&&this!==pt&&this instanceof pe&&(qr=Oe||Ui(qr)),qr.apply(dr,Ce)}return pe}function yp(n,o){return function(l,b){return M1(l,n,o(b),{})}}function Ts(n,o){return function(l,b){var _;if(l===r&&b===r)return o;if(l!==r&&(_=l),b!==r){if(_===r)return b;typeof l=="string"||typeof b=="string"?(l=zt(l),b=zt(b)):(l=np(l),b=np(b)),_=n(l,b)}return _}}function Ku(n){return Wr(function(o){return o=Ze(o,jt(ge())),Te(function(l){var b=this;return n(o,function(_){return Dt(_,b,l)})})})}function Rs(n,o){o=o===r?" ":zt(o);var l=o.length;if(l<2)return l?Wu(o,n):o;var b=Wu(o,hs(n/ti(o)));return ei(o)?fn(ur(b),0,n).join(""):b.slice(0,n)}function ux(n,o,l,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,_?l:this,ee)}return P}function bp(n){return function(o,l,b){return b&&typeof b!="number"&&At(o,l,b)&&(l=b=r),o=Hr(o),l===r?(l=o,o=0):l=Hr(l),b=b===r?o<l?1:-1:Hr(b),G1(o,l,b,n)}}function Ps(n){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=rr(o),l=rr(l)),n(o,l)}}function wp(n,o,l,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=l.apply(r,Oe);return rl(n)&&$p(pe,Oe),pe.placeholder=b,Ip(pe,n,o)}function Vu(n){var o=ut[n];return function(l,b){if(l=rr(l),b=b==null?0:wt(Ee(b),292),b&&Id(l)){var _=(Me(l)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+b));return _=(Me(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(l)}}var lx=ii&&1/is(new ii([,-0]))[1]==re?function(n){return new ii(n)}:yl;function xp(n){return function(o){var l=xt(o);return l==bt?Ou(o):l==Pt?Aw(o):yw(o,n(o))}}function zr(n,o,l,b,_,T,P,I){var z=o&S;if(!z&&typeof n!="function")throw new Yt(u);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:Ju(n),le=[n,o,l,b,_,X,ee,T,P,I];if(se&&_x(le,se),n=le[0],o=le[1],l=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=sx(n,o,l);else o==R||o==O?me=ax(n,o,I):(o==C||o==(h|C))&&!_.length?me=ux(n,o,l,b):me=As.apply(r,le);var Oe=se?tp:$p;return Ip(Oe(me,le),n,o)}function Sp(n,o,l,b){return n===r||fr(n,ni[l])&&!Le.call(b,l)?o:n}function Ep(n,o,l,b,_,T){return Ve(n)&&Ve(o)&&(T.set(o,n),Ss(n,o,r,Ep,T),T.delete(o)),n}function cx(n){return qi(n)?r:n}function _p(n,o,l,b,_,T){var P=l&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=l&w?new Pn: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(!bu(o,function(Re,Ce){if(!ki(le,Ce)&&(me===Re||_(me,Re,l,b,T)))return le.push(Ce)})){se=!1;break}}else if(!(me===Oe||_(me,Oe,l,b,T))){se=!1;break}}return T.delete(n),T.delete(o),se}function fx(n,o,l,b,_,T,P){switch(l){case Yn:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case rn:return!(n.byteLength!=o.byteLength||!T(new cs(n),new cs(o)));case Ae:case _e:case Jr:return fr(+n,+o);case oe:return n.name==o.name&&n.message==o.message;case yr:case Qr:return n==o+"";case bt:var I=Ou;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=_p(I(n),I(o),b,_,T,P);return P.delete(n),X;case en:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function dx(n,o,l,b,_,T){var P=l&d,I=Xu(n),z=I.length,V=Xu(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,l,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 Wr(n){return il(Cp(n,r,jp),n+"")}function Xu(n){return Hd(n,ft,el)}function Yu(n){return Hd(n,$t,Op)}var Ju=ms?function(n){return ms.get(n)}:yl;function Cs(n){for(var o=n.name+"",l=oi[o],b=Le.call(oi,o)?l.length:0;b--;){var _=l[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||ml;return n=n===ml?Gd:n,arguments.length?n(arguments[0],arguments[1]):n}function ks(n,o){var l=n.__data__;return wx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function Qu(n){for(var o=ft(n),l=o.length;l--;){var b=o[l],_=n[b];o[l]=[b,_,Rp(_)]}return o}function $n(n,o){var l=Ew(n,o);return Zd(l)?l:r}function px(n){var o=Le.call(n,Tn),l=n[Tn];try{n[Tn]=r;var b=!0}catch{}var _=us.call(n);return b&&(o?n[Tn]=l:delete n[Tn]),_}var el=Tu?function(n){return n==null?[]:(n=We(n),nn(Tu(n),function(o){return kd.call(n,o)}))}:bl,Op=Tu?function(n){for(var o=[];n;)on(o,el(n)),n=fs(n);return o}:bl,xt=Ot;(Ru&&xt(new Ru(new ArrayBuffer(1)))!=Yn||Ii&&xt(new Ii)!=bt||Pu&&xt(Pu.resolve())!=Xo||ii&&xt(new ii)!=Pt||Li&&xt(new Li)!=tn)&&(xt=function(n){var o=Ot(n),l=o==ar?n.constructor:r,b=l?In(l):"";if(b)switch(b){case Vw:return Yn;case Xw:return bt;case Yw:return Xo;case Jw:return Pt;case Qw:return tn}return o});function hx(n,o,l){for(var b=-1,_=l.length;++b<_;){var T=l[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 gx(n){var o=n.match(Sb);return o?o[1].split(Eb):[]}function Ap(n,o,l){o=cn(o,n);for(var b=-1,_=o.length,T=!1;++b<_;){var P=cr(o[b]);if(!(T=n!=null&&l(n,P)))break;n=n[P]}return T||++b!=_?T:(_=n==null?0:n.length,!!_&&Ns(_)&&Ur(P,_)&&(Se(n)||Ln(n)))}function mx(n){var o=n.length,l=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(l.index=n.index,l.input=n.input),l}function Tp(n){return typeof n.constructor=="function"&&!Bi(n)?si(fs(n)):{}}function vx(n,o,l){var b=n.constructor;switch(o){case rn:return Gu(n);case Ae:case _e:return new b(+n);case Yn:return ex(n,l);case Qa:case eu:case tu:case ru:case nu:case iu:case ou:case su:case au:return lp(n,l);case bt:return new b;case Jr:case Qr:return new b(n);case yr:return tx(n);case Pt:return new b;case en:return rx(n)}}function yx(n,o){var l=o.length;if(!l)return n;var b=l-1;return o[b]=(l>1?"& ":"")+o[b],o=o.join(l>2?", ":" "),n.replace(xb,`{
|
|
183
|
+
/* [wrapped with `+o+`] */
|
|
184
|
+
`)}function bx(n){return Se(n)||Ln(n)||!!($d&&n&&n[$d])}function Ur(n,o){var l=typeof n;return o=o??ce,!!o&&(l=="number"||l!="symbol"&&kb.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,l){if(!Ve(l))return!1;var b=typeof o;return(b=="number"?kt(l)&&Ur(o,l.length):b=="string"&&o in l)?fr(l[o],n):!1}function tl(n,o){if(Se(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||Wt(n)?!0:vb.test(n)||!mb.test(n)||o!=null&&n in We(o)}function wx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function rl(n){var o=Cs(n),l=A[o];if(typeof l!="function"||!(o in Pe.prototype))return!1;if(n===l)return!0;var b=Ju(l);return!!b&&n===b[0]}function xx(n){return!!Rd&&Rd in n}var Sx=ss?Br:wl;function Bi(n){var o=n&&n.constructor,l=typeof o=="function"&&o.prototype||ni;return n===l}function Rp(n){return n===n&&!Ve(n)}function Pp(n,o){return function(l){return l==null?!1:l[n]===o&&(o!==r||n in We(l))}}function Ex(n){var o=Fs(n,function(b){return l.size===y&&l.clear(),b}),l=o.cache;return o}function _x(n,o){var l=n[1],b=o[1],_=l|b,T=_<(h|S|M),P=b==M&&l==R||b==M&&l==D&&n[7].length<=o[8]||b==(M|D)&&o[7].length<=o[8]&&l==R;if(!(T||P))return n;b&h&&(n[2]=o[2],_|=l&h?0:E);var I=o[3];if(I){var z=n[3];n[3]=z?fp(z,I,o[4]):I,n[4]=z?sn(n[3],p):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?dp(z,I,o[6]):I,n[6]=z?sn(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 Ox(n){var o=[];if(n!=null)for(var l in We(n))o.push(l);return o}function Ax(n){return us.call(n)}function Cp(n,o,l){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]=l(P),Dt(n,this,I)}}function kp(n,o){return o.length<2?n:kn(n,er(o,0,-1))}function Tx(n,o){for(var l=n.length,b=wt(o.length,l),_=Ct(n);b--;){var T=o[b];n[b]=Ur(T,l)?_[T]:r}return n}function nl(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var $p=Lp(tp),Hi=Uw||function(n,o){return pt.setTimeout(n,o)},il=Lp(X1);function Ip(n,o,l){var b=o+"";return il(n,yx(b,Rx(gx(b),l)))}function Lp(n){var o=0,l=0;return function(){var b=Zw(),_=Z-(b-l);if(l=b,_>0){if(++o>=B)return arguments[0]}else o=0;return n.apply(r,arguments)}}function $s(n,o){var l=-1,b=n.length,_=b-1;for(o=o===r?b:o;++l<o;){var T=zu(l,_),P=n[T];n[T]=n[l],n[l]=P}return n.length=o,n}var Mp=Ex(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(yb,function(l,b,_,T){o.push(_?T.replace(Ob,"$1"):b||l)}),o});function cr(n){if(typeof n=="string"||Wt(n))return n;var o=n+"";return o=="0"&&1/n==-re?"-0":o}function In(n){if(n!=null){try{return as.call(n)}catch{}try{return n+""}catch{}}return""}function Rx(n,o){return Nt(he,function(l){var b="_."+l[0];o&l[1]&&!rs(n,b)&&n.push(b)}),n.sort()}function Fp(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 Px(n,o,l){(l?At(n,o,l):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 Cx(n){for(var o=-1,l=n==null?0:n.length,b=0,_=[];++o<l;){var T=n[o];T&&(_[b++]=T)}return _}function kx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),l=arguments[0],b=n;b--;)o[b-1]=arguments[b];return on(Se(l)?Ct(l):[l],ht(o,1))}var $x=Te(function(n,o){return rt(n)?Ni(n,ht(o,1,rt,!0)):[]}),Ix=Te(function(n,o){var l=tr(o);return rt(l)&&(l=r),rt(n)?Ni(n,ht(o,1,rt,!0),ge(l,2)):[]}),Lx=Te(function(n,o){var l=tr(o);return rt(l)&&(l=r),rt(n)?Ni(n,ht(o,1,rt,!0),r,l):[]});function Mx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),er(n,o<0?0:o,b)):[]}function Fx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),o=b-o,er(n,0,o<0?0:o)):[]}function Dx(n,o){return n&&n.length?_s(n,ge(o,3),!0,!0):[]}function Nx(n,o){return n&&n.length?_s(n,ge(o,3),!0):[]}function jx(n,o,l,b){var _=n==null?0:n.length;return _?(l&&typeof l!="number"&&At(n,o,l)&&(l=0,b=_),k1(n,o,l,b)):[]}function Dp(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:Ee(l);return _<0&&(_=lt(b+_,0)),ns(n,ge(o,3),_)}function Np(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return l!==r&&(_=Ee(l),_=l<0?lt(b+_,0):wt(_,b-1)),ns(n,ge(o,3),_,!0)}function jp(n){var o=n==null?0:n.length;return o?ht(n,1):[]}function zx(n){var o=n==null?0:n.length;return o?ht(n,re):[]}function Wx(n,o){var l=n==null?0:n.length;return l?(o=o===r?1:Ee(o),ht(n,o)):[]}function Ux(n){for(var o=-1,l=n==null?0:n.length,b={};++o<l;){var _=n[o];br(b,_[0],_[1])}return b}function zp(n){return n&&n.length?n[0]:r}function Bx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:Ee(l);return _<0&&(_=lt(b+_,0)),Qn(n,o,_)}function Hx(n){var o=n==null?0:n.length;return o?er(n,0,-1):[]}var qx=Te(function(n){var o=Ze(n,qu);return o.length&&o[0]===n[0]?Mu(o):[]}),Zx=Te(function(n){var o=tr(n),l=Ze(n,qu);return o===tr(l)?o=r:l.pop(),l.length&&l[0]===n[0]?Mu(l,ge(o,2)):[]}),Gx=Te(function(n){var o=tr(n),l=Ze(n,qu);return o=typeof o=="function"?o:r,o&&l.pop(),l.length&&l[0]===n[0]?Mu(l,r,o):[]});function Kx(n,o){return n==null?"":Hw.call(n,o)}function tr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Vx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b;return l!==r&&(_=Ee(l),_=_<0?lt(b+_,0):wt(_,b-1)),o===o?Rw(n,o,_):ns(n,wd,_,!0)}function Xx(n,o){return n&&n.length?Yd(n,Ee(o)):r}var Yx=Te(Wp);function Wp(n,o){return n&&n.length&&o&&o.length?ju(n,o):n}function Jx(n,o,l){return n&&n.length&&o&&o.length?ju(n,o,ge(l,2)):n}function Qx(n,o,l){return n&&n.length&&o&&o.length?ju(n,o,r,l):n}var eS=Wr(function(n,o){var l=n==null?0:n.length,b=ku(n,o);return ep(n,Ze(o,function(_){return Ur(_,l)?+_:_}).sort(cp)),b});function tS(n,o){var l=[];if(!(n&&n.length))return l;var b=-1,_=[],T=n.length;for(o=ge(o,3);++b<T;){var P=n[b];o(P,b,n)&&(l.push(P),_.push(b))}return ep(n,_),l}function ol(n){return n==null?n:Kw.call(n)}function rS(n,o,l){var b=n==null?0:n.length;return b?(l&&typeof l!="number"&&At(n,o,l)?(o=0,l=b):(o=o==null?0:Ee(o),l=l===r?b:Ee(l)),er(n,o,l)):[]}function nS(n,o){return Es(n,o)}function iS(n,o,l){return Uu(n,o,ge(l,2))}function oS(n,o){var l=n==null?0:n.length;if(l){var b=Es(n,o);if(b<l&&fr(n[b],o))return b}return-1}function sS(n,o){return Es(n,o,!0)}function aS(n,o,l){return Uu(n,o,ge(l,2),!0)}function uS(n,o){var l=n==null?0:n.length;if(l){var b=Es(n,o,!0)-1;if(fr(n[b],o))return b}return-1}function lS(n){return n&&n.length?rp(n):[]}function cS(n,o){return n&&n.length?rp(n,ge(o,2)):[]}function fS(n){var o=n==null?0:n.length;return o?er(n,1,o):[]}function dS(n,o,l){return n&&n.length?(o=l||o===r?1:Ee(o),er(n,0,o<0?0:o)):[]}function pS(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:Ee(o),o=b-o,er(n,o<0?0:o,b)):[]}function hS(n,o){return n&&n.length?_s(n,ge(o,3),!1,!0):[]}function gS(n,o){return n&&n.length?_s(n,ge(o,3)):[]}var mS=Te(function(n){return ln(ht(n,1,rt,!0))}),vS=Te(function(n){var o=tr(n);return rt(o)&&(o=r),ln(ht(n,1,rt,!0),ge(o,2))}),yS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,ln(ht(n,1,rt,!0),r,o)});function bS(n){return n&&n.length?ln(n):[]}function wS(n,o){return n&&n.length?ln(n,ge(o,2)):[]}function xS(n,o){return o=typeof o=="function"?o:r,n&&n.length?ln(n,r,o):[]}function sl(n){if(!(n&&n.length))return[];var o=0;return n=nn(n,function(l){if(rt(l))return o=lt(l.length,o),!0}),Eu(o,function(l){return Ze(n,wu(l))})}function Up(n,o){if(!(n&&n.length))return[];var l=sl(n);return o==null?l:Ze(l,function(b){return Dt(o,r,b)})}var SS=Te(function(n,o){return rt(n)?Ni(n,o):[]}),ES=Te(function(n){return Hu(nn(n,rt))}),_S=Te(function(n){var o=tr(n);return rt(o)&&(o=r),Hu(nn(n,rt),ge(o,2))}),OS=Te(function(n){var o=tr(n);return o=typeof o=="function"?o:r,Hu(nn(n,rt),r,o)}),AS=Te(sl);function TS(n,o){return sp(n||[],o||[],Di)}function RS(n,o){return sp(n||[],o||[],Wi)}var PS=Te(function(n){var o=n.length,l=o>1?n[o-1]:r;return l=typeof l=="function"?(n.pop(),l):r,Up(n,l)});function Bp(n){var o=A(n);return o.__chain__=!0,o}function CS(n,o){return o(n),n}function Is(n,o){return o(n)}var kS=Wr(function(n){var o=n.length,l=o?n[0]:0,b=this.__wrapped__,_=function(T){return ku(T,n)};return o>1||this.__actions__.length||!(b instanceof Pe)||!Ur(l)?this.thru(_):(b=b.slice(l,+l+(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 $S(){return Bp(this)}function IS(){return new Jt(this.value(),this.__chain__)}function LS(){this.__values__===r&&(this.__values__=nh(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function MS(){return this}function FS(n){for(var o,l=this;l instanceof ys;){var b=Fp(l);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;l=l.__wrapped__}return _.__wrapped__=n,o}function DS(){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:[ol],thisArg:r}),new Jt(o,this.__chain__)}return this.thru(ol)}function NS(){return op(this.__wrapped__,this.__actions__)}var jS=Os(function(n,o,l){Le.call(n,l)?++n[l]:br(n,l,1)});function zS(n,o,l){var b=Se(n)?yd:C1;return l&&At(n,o,l)&&(o=r),b(n,ge(o,3))}function WS(n,o){var l=Se(n)?nn:Ud;return l(n,ge(o,3))}var US=mp(Dp),BS=mp(Np);function HS(n,o){return ht(Ls(n,o),1)}function qS(n,o){return ht(Ls(n,o),re)}function ZS(n,o,l){return l=l===r?1:Ee(l),ht(Ls(n,o),l)}function Hp(n,o){var l=Se(n)?Nt:un;return l(n,ge(o,3))}function qp(n,o){var l=Se(n)?fw:Wd;return l(n,ge(o,3))}var GS=Os(function(n,o,l){Le.call(n,l)?n[l].push(o):br(n,l,[o])});function KS(n,o,l,b){n=kt(n)?n:fi(n),l=l&&!b?Ee(l):0;var _=n.length;return l<0&&(l=lt(_+l,0)),js(n)?l<=_&&n.indexOf(o,l)>-1:!!_&&Qn(n,o,l)>-1}var VS=Te(function(n,o,l){var b=-1,_=typeof o=="function",T=kt(n)?H(n.length):[];return un(n,function(P){T[++b]=_?Dt(o,P,l):ji(P,o,l)}),T}),XS=Os(function(n,o,l){br(n,l,o)});function Ls(n,o){var l=Se(n)?Ze:Kd;return l(n,ge(o,3))}function YS(n,o,l,b){return n==null?[]:(Se(o)||(o=o==null?[]:[o]),l=b?r:l,Se(l)||(l=l==null?[]:[l]),Jd(n,o,l))}var JS=Os(function(n,o,l){n[l?0:1].push(o)},function(){return[[],[]]});function QS(n,o,l){var b=Se(n)?yu:Sd,_=arguments.length<3;return b(n,ge(o,4),l,_,un)}function eE(n,o,l){var b=Se(n)?dw:Sd,_=arguments.length<3;return b(n,ge(o,4),l,_,Wd)}function tE(n,o){var l=Se(n)?nn:Ud;return l(n,Ds(ge(o,3)))}function rE(n){var o=Se(n)?Dd:K1;return o(n)}function nE(n,o,l){(l?At(n,o,l):o===r)?o=1:o=Ee(o);var b=Se(n)?O1:V1;return b(n,o)}function iE(n){var o=Se(n)?A1:Y1;return o(n)}function oE(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:Du(n).length}function sE(n,o,l){var b=Se(n)?bu:J1;return l&&At(n,o,l)&&(o=r),b(n,ge(o,3))}var aE=Te(function(n,o){if(n==null)return[];var l=o.length;return l>1&&At(n,o[0],o[1])?o=[]:l>2&&At(o[0],o[1],o[2])&&(o=[o[0]]),Jd(n,ht(o,1),[])}),Ms=Ww||function(){return pt.Date.now()};function uE(n,o){if(typeof o!="function")throw new Yt(u);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function Zp(n,o,l){return o=l?r:o,o=n&&o==null?n.length:o,zr(n,M,r,r,r,r,o)}function Gp(n,o){var l;if(typeof o!="function")throw new Yt(u);return n=Ee(n),function(){return--n>0&&(l=o.apply(this,arguments)),n<=1&&(o=r),l}}var al=Te(function(n,o,l){var b=h;if(l.length){var _=sn(l,li(al));b|=C}return zr(n,b,o,l,_)}),Kp=Te(function(n,o,l){var b=h|S;if(l.length){var _=sn(l,li(Kp));b|=C}return zr(o,b,n,l,_)});function Vp(n,o,l){o=l?r:o;var b=zr(n,R,r,r,r,r,r,o);return b.placeholder=Vp.placeholder,b}function Xp(n,o,l){o=l?r:o;var b=zr(n,O,r,r,r,r,r,o);return b.placeholder=Xp.placeholder,b}function Yp(n,o,l){var b,_,T,P,I,z,V=0,X=!1,ee=!1,se=!0;if(typeof n!="function")throw new Yt(u);o=rr(o)||0,Ve(l)&&(X=!!l.leading,ee="maxWait"in l,T=ee?lt(rr(l.maxWait)||0,o):T,se="trailing"in l?!!l.trailing:se);function le(nt){var dr=b,qr=_;return b=_=r,V=nt,P=n.apply(qr,dr),P}function me(nt){return V=nt,I=Hi(Re,o),X?le(nt):P}function Oe(nt){var dr=nt-z,qr=nt-V,vh=o-dr;return ee?wt(vh,T-qr):vh}function pe(nt){var dr=nt-z,qr=nt-V;return z===r||dr>=o||dr<0||ee&&qr>=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&&ap(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 ap(I),I=Hi(Re,o),le(z)}return I===r&&(I=Hi(Re,o)),P}return Bt.cancel=Ut,Bt.flush=Tt,Bt}var lE=Te(function(n,o){return zd(n,1,o)}),cE=Te(function(n,o,l){return zd(n,rr(o)||0,l)});function fE(n){return zr(n,q)}function Fs(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(u);var l=function(){var b=arguments,_=o?o.apply(this,b):b[0],T=l.cache;if(T.has(_))return T.get(_);var P=n.apply(this,b);return l.cache=T.set(_,P)||T,P};return l.cache=new(Fs.Cache||jr),l}Fs.Cache=jr;function Ds(n){if(typeof n!="function")throw new Yt(u);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 dE(n){return Gp(2,n)}var pE=Q1(function(n,o){o=o.length==1&&Se(o[0])?Ze(o[0],jt(ge())):Ze(ht(o,1),jt(ge()));var l=o.length;return Te(function(b){for(var _=-1,T=wt(b.length,l);++_<T;)b[_]=o[_].call(this,b[_]);return Dt(n,this,b)})}),ul=Te(function(n,o){var l=sn(o,li(ul));return zr(n,C,r,o,l)}),Jp=Te(function(n,o){var l=sn(o,li(Jp));return zr(n,U,r,o,l)}),hE=Wr(function(n,o){return zr(n,D,r,r,r,o)});function gE(n,o){if(typeof n!="function")throw new Yt(u);return o=o===r?o:Ee(o),Te(n,o)}function mE(n,o){if(typeof n!="function")throw new Yt(u);return o=o==null?0:lt(Ee(o),0),Te(function(l){var b=l[o],_=fn(l,0,o);return b&&on(_,b),Dt(n,this,_)})}function vE(n,o,l){var b=!0,_=!0;if(typeof n!="function")throw new Yt(u);return Ve(l)&&(b="leading"in l?!!l.leading:b,_="trailing"in l?!!l.trailing:_),Yp(n,o,{leading:b,maxWait:o,trailing:_})}function yE(n){return Zp(n,1)}function bE(n,o){return ul(Zu(o),n)}function wE(){if(!arguments.length)return[];var n=arguments[0];return Se(n)?n:[n]}function xE(n){return Qt(n,x)}function SE(n,o){return o=typeof o=="function"?o:r,Qt(n,x,o)}function EE(n){return Qt(n,g|x)}function _E(n,o){return o=typeof o=="function"?o:r,Qt(n,g|x,o)}function OE(n,o){return o==null||jd(n,o,ft(o))}function fr(n,o){return n===o||n!==n&&o!==o}var AE=Ps(Lu),TE=Ps(function(n,o){return n>=o}),Ln=qd((function(){return arguments})())?qd:function(n){return et(n)&&Le.call(n,"callee")&&!kd.call(n,"callee")},Se=H.isArray,RE=dd?jt(dd):F1;function kt(n){return n!=null&&Ns(n.length)&&!Br(n)}function rt(n){return et(n)&&kt(n)}function PE(n){return n===!0||n===!1||et(n)&&Ot(n)==Ae}var dn=Bw||wl,CE=pd?jt(pd):D1;function kE(n){return et(n)&&n.nodeType===1&&!qi(n)}function $E(n){if(n==null)return!0;if(kt(n)&&(Se(n)||typeof n=="string"||typeof n.splice=="function"||dn(n)||ci(n)||Ln(n)))return!n.length;var o=xt(n);if(o==bt||o==Pt)return!n.size;if(Bi(n))return!Du(n).length;for(var l in n)if(Le.call(n,l))return!1;return!0}function IE(n,o){return zi(n,o)}function LE(n,o,l){l=typeof l=="function"?l:r;var b=l?l(n,o):r;return b===r?zi(n,o,r,l):!!b}function ll(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 ME(n){return typeof n=="number"&&Id(n)}function Br(n){if(!Ve(n))return!1;var o=Ot(n);return o==ct||o==Fr||o==xe||o==Dr}function Qp(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 eh=hd?jt(hd):j1;function FE(n,o){return n===o||Fu(n,o,Qu(o))}function DE(n,o,l){return l=typeof l=="function"?l:r,Fu(n,o,Qu(o),l)}function NE(n){return th(n)&&n!=+n}function jE(n){if(Sx(n))throw new be(a);return Zd(n)}function zE(n){return n===null}function WE(n){return n==null}function th(n){return typeof n=="number"||et(n)&&Ot(n)==Jr}function qi(n){if(!et(n)||Ot(n)!=ar)return!1;var o=fs(n);if(o===null)return!0;var l=Le.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&as.call(l)==Dw}var cl=gd?jt(gd):z1;function UE(n){return Qp(n)&&n>=-ce&&n<=ce}var rh=md?jt(md):W1;function js(n){return typeof n=="string"||!Se(n)&&et(n)&&Ot(n)==Qr}function Wt(n){return typeof n=="symbol"||et(n)&&Ot(n)==en}var ci=vd?jt(vd):U1;function BE(n){return n===r}function HE(n){return et(n)&&xt(n)==tn}function qE(n){return et(n)&&Ot(n)==Jo}var ZE=Ps(Nu),GE=Ps(function(n,o){return n<=o});function nh(n){if(!n)return[];if(kt(n))return js(n)?ur(n):Ct(n);if($i&&n[$i])return Ow(n[$i]());var o=xt(n),l=o==bt?Ou:o==Pt?is:fi;return l(n)}function Hr(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=Hr(n),l=o%1;return o===o?l?o-l:o:0}function ih(n){return n?Cn(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=Ed(n);var l=Rb.test(n);return l||Cb.test(n)?uw(n.slice(2),l?2:8):Tb.test(n)?te:+n}function oh(n){return xr(n,$t(n))}function KE(n){return n?Cn(Ee(n),-ce,ce):n===0?n:0}function Me(n){return n==null?"":zt(n)}var VE=ai(function(n,o){if(Bi(o)||kt(o)){xr(o,ft(o),n);return}for(var l in o)Le.call(o,l)&&Di(n,l,o[l])}),sh=ai(function(n,o){xr(o,$t(o),n)}),ah=ai(function(n,o,l,b){xr(o,$t(o),n,b)}),fl=ai(function(n,o,l,b){xr(o,ft(o),n,b)}),XE=Wr(ku);function YE(n,o){var l=si(n);return o==null?l:Nd(l,o)}var JE=Te(function(n,o){n=We(n);var l=-1,b=o.length,_=b>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(b=1);++l<b;)for(var T=o[l],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}),QE=Te(function(n){return n.push(r,Ep),Dt(uh,r,n)});function e_(n,o){return bd(n,ge(o,3),wr)}function t_(n,o){return bd(n,ge(o,3),Iu)}function r_(n,o){return n==null?n:$u(n,ge(o,3),$t)}function n_(n,o){return n==null?n:Bd(n,ge(o,3),$t)}function i_(n,o){return n&&wr(n,ge(o,3))}function o_(n,o){return n&&Iu(n,ge(o,3))}function s_(n){return n==null?[]:xs(n,ft(n))}function a_(n){return n==null?[]:xs(n,$t(n))}function dl(n,o,l){var b=n==null?r:kn(n,o);return b===r?l:b}function u_(n,o){return n!=null&&Ap(n,o,$1)}function pl(n,o){return n!=null&&Ap(n,o,I1)}var l_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),n[o]=l},gl(It)),c_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),Le.call(n,o)?n[o].push(l):n[o]=[l]},ge),f_=Te(ji);function ft(n){return kt(n)?Fd(n):Du(n)}function $t(n){return kt(n)?Fd(n,!0):B1(n)}function d_(n,o){var l={};return o=ge(o,3),wr(n,function(b,_,T){br(l,o(b,_,T),b)}),l}function p_(n,o){var l={};return o=ge(o,3),wr(n,function(b,_,T){br(l,_,o(b,_,T))}),l}var h_=ai(function(n,o,l){Ss(n,o,l)}),uh=ai(function(n,o,l,b){Ss(n,o,l,b)}),g_=Wr(function(n,o){var l={};if(n==null)return l;var b=!1;o=Ze(o,function(T){return T=cn(T,n),b||(b=T.length>1),T}),xr(n,Yu(n),l),b&&(l=Qt(l,g|v|x,cx));for(var _=o.length;_--;)Bu(l,o[_]);return l});function m_(n,o){return lh(n,Ds(ge(o)))}var v_=Wr(function(n,o){return n==null?{}:q1(n,o)});function lh(n,o){if(n==null)return{};var l=Ze(Yu(n),function(b){return[b]});return o=ge(o),Qd(n,l,function(b,_){return o(b,_[0])})}function y_(n,o,l){o=cn(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=l),n=Br(T)?T.call(n):T}return n}function b_(n,o,l){return n==null?n:Wi(n,o,l)}function w_(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:Wi(n,o,l,b)}var ch=xp(ft),fh=xp($t);function x_(n,o,l){var b=Se(n),_=b||dn(n)||ci(n);if(o=ge(o,4),l==null){var T=n&&n.constructor;_?l=b?new T:[]:Ve(n)?l=Br(T)?si(fs(n)):{}:l={}}return(_?Nt:wr)(n,function(P,I,z){return o(l,P,I,z)}),l}function S_(n,o){return n==null?!0:Bu(n,o)}function E_(n,o,l){return n==null?n:ip(n,o,Zu(l))}function __(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:ip(n,o,Zu(l),b)}function fi(n){return n==null?[]:_u(n,ft(n))}function O_(n){return n==null?[]:_u(n,$t(n))}function A_(n,o,l){return l===r&&(l=o,o=r),l!==r&&(l=rr(l),l=l===l?l:0),o!==r&&(o=rr(o),o=o===o?o:0),Cn(rr(n),o,l)}function T_(n,o,l){return o=Hr(o),l===r?(l=o,o=0):l=Hr(l),n=rr(n),L1(n,o,l)}function R_(n,o,l){if(l&&typeof l!="boolean"&&At(n,o,l)&&(o=l=r),l===r&&(typeof o=="boolean"?(l=o,o=r):typeof n=="boolean"&&(l=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Hr(n),o===r?(o=n,n=0):o=Hr(o)),n>o){var b=n;n=o,o=b}if(l||n%1||o%1){var _=Ld();return wt(n+_*(o-n+aw("1e-"+((_+"").length-1))),o)}return zu(n,o)}var P_=ui(function(n,o,l){return o=o.toLowerCase(),n+(l?dh(o):o)});function dh(n){return hl(Me(n).toLowerCase())}function ph(n){return n=Me(n),n&&n.replace($b,ww).replace(Yb,"")}function C_(n,o,l){n=Me(n),o=zt(o);var b=n.length;l=l===r?b:Cn(Ee(l),0,b);var _=l;return l-=o.length,l>=0&&n.slice(l,_)==o}function k_(n){return n=Me(n),n&&pb.test(n)?n.replace(Uf,xw):n}function $_(n){return n=Me(n),n&&bb.test(n)?n.replace(uu,"\\$&"):n}var I_=ui(function(n,o,l){return n+(l?"-":"")+o.toLowerCase()}),L_=ui(function(n,o,l){return n+(l?" ":"")+o.toLowerCase()}),M_=gp("toLowerCase");function F_(n,o,l){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(_),l)+n+Rs(hs(_),l)}function D_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?n+Rs(o-b,l):n}function N_(n,o,l){n=Me(n),o=Ee(o);var b=o?ti(n):0;return o&&b<o?Rs(o-b,l)+n:n}function j_(n,o,l){return l||o==null?o=0:o&&(o=+o),Gw(Me(n).replace(lu,""),o||0)}function z_(n,o,l){return(l?At(n,o,l):o===r)?o=1:o=Ee(o),Wu(Me(n),o)}function W_(){var n=arguments,o=Me(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var U_=ui(function(n,o,l){return n+(l?"_":"")+o.toLowerCase()});function B_(n,o,l){return l&&typeof l!="number"&&At(n,o,l)&&(o=l=r),l=l===r?ne:l>>>0,l?(n=Me(n),n&&(typeof o=="string"||o!=null&&!cl(o))&&(o=zt(o),!o&&ei(n))?fn(ur(n),0,l):n.split(o,l)):[]}var H_=ui(function(n,o,l){return n+(l?" ":"")+hl(o)});function q_(n,o,l){return n=Me(n),l=l==null?0:Cn(Ee(l),0,n.length),o=zt(o),n.slice(l,l+o.length)==o}function Z_(n,o,l){var b=A.templateSettings;l&&At(n,o,l)&&(o=r),n=Me(n),o=fl({},o,b,Sp);var _=fl({},o.imports,b.imports,Sp),T=ft(_),P=_u(_,T);Nt(T,function(pe){if(Hf.test(pe))throw new be(f)});var I,z,V=0,X=o.interpolate||Qo,ee="__p += '",se=Au((o.escape||Qo).source+"|"+X.source+"|"+(X===Bf?Ab:Qo).source+"|"+(o.evaluate||Qo).source+"|$","g"),le="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rw+"]")+`
|
|
185
|
+
`;n.replace(se,function(pe,Re,Ce,Ut,Tt,Bt){return Ce||(Ce=Ut),ee+=n.slice(V,Bt).replace(Ib,Sw),Re&&(I=!0,ee+=`' +
|
|
186
|
+
__e(`+Re+`) +
|
|
187
|
+
'`),Tt&&(z=!0,ee+=`';
|
|
188
|
+
`+Tt+`;
|
|
189
|
+
__p += '`),Ce&&(ee+=`' +
|
|
190
|
+
((__t = (`+Ce+`)) == null ? '' : __t) +
|
|
191
|
+
'`),V=Bt+pe.length,pe}),ee+=`';
|
|
192
|
+
`;var me=Le.call(o,"variable")&&o.variable;if(!me)ee=`with (obj) {
|
|
193
|
+
`+ee+`
|
|
244
194
|
}
|
|
245
|
-
`;else if(
|
|
246
|
-
`+(
|
|
247
|
-
`)+"var __t, __p = ''"+(
|
|
195
|
+
`;else if(Hf.test(me))throw new be(c);ee=(z?ee.replace(lb,""):ee).replace(cb,"$1").replace(fb,"$1;"),ee="function("+(me||"obj")+`) {
|
|
196
|
+
`+(me?"":`obj || (obj = {});
|
|
197
|
+
`)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
|
|
248
198
|
function print() { __p += __j.call(arguments, '') }
|
|
249
199
|
`:`;
|
|
250
|
-
`)+
|
|
251
|
-
}`;var Ne=Xv(function(){return We(C,Se+"return "+ce).apply(r,L)});if(Ne.source=ce,bd(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 og(o);if(!o||!(a=gr(a)))return o;var E=Br(o),k=Br(a),C=sg(E,k),L=ag(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,cg(o)+1);if(!o||!(a=gr(a)))return o;var E=Br(o),k=ag(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(On,"");if(!o||!(a=gr(a)))return o;var E=Br(o),k=sg(E,Br(a));return ti(E,k).join("")}function CR(o,a){var d=$,E=M;if(pt(a)){var k="separator"in a?a.separator:k;d="length"in a?Ie(a.length):d,E="omission"in a?gr(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),yd(k)){if(o.slice(B).search(k)){var oe,se=G;for(k.global||(k=Du(k.source,qe(kn.exec(k))+"g")),k.lastIndex=0;oe=k.exec(se);)var ce=oe.index;G=G.slice(0,ce===r?B:ce)}}else if(o.indexOf(gr(k),B)!=B){var me=G.lastIndexOf(k);me>-1&&(G=G.slice(0,me))}return G+E}function PR(o){return o=qe(o),o&&es.test(o)?o.replace(Qo,a_):o}var IR=fo(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),Ed=Xg("toUpperCase");function Yv(o,a,d){return o=qe(o),a=d?r:a,a===r?r_(o)?u_(o):GE(o):o.match(a)||[]}var Xv=Me(function(o,a){try{return fr(o,r,a)}catch(d){return bd(d)?d:new Re(d)}}),NR=Cn(function(o,a){return pr(a,function(d){d=Ur(d),sn(o,d,vd(o[d],o))}),o});function MR(o){var a=o==null?0:o.length,d=ke();return o=a?ut(o,function(E){if(typeof E[1]!="function")throw new Rr(l);return[d(E[0]),E[1]]}):[],Me(function(E){for(var k=-1;++k<a;){var C=o[k];if(fr(C[0],this,E))return fr(C[1],this,E)}})}function DR(o){return aO(Pr(o,h))}function _d(o){return function(){return o}}function LR(o,a){return o==null||o!==o?a:o}var zR=Qg(),$R=Qg(!0);function or(o){return o}function Od(o){return Rg(typeof o=="function"?o:Pr(o,h))}function jR(o){return Pg(Pr(o,h))}function FR(o,a){return Ig(o,Pr(a,h))}var HR=Me(function(o,a){return function(d){return us(d,o,a)}}),WR=Me(function(o,a){return function(d){return us(o,d,a)}});function kd(o,a,d){var E=It(a),k=sl(a,E);d==null&&!(pt(a)&&(k.length||!E.length))&&(d=a,a=o,o=this,k=sl(a,It(a)));var C=!(pt(d)&&"chain"in d)||!!d.chain,L=In(o);return pr(k,function(B){var G=a[B];o[B]=G,L&&(o.prototype[B]=function(){var oe=this.__chain__;if(C||oe){var se=o(this.__wrapped__),ce=se.__actions__=rr(this.__actions__);return ce.push({func:G,args:arguments,thisArg:o}),se.__chain__=oe,se}return G.apply(o,Kn([this.value()],arguments))})}),o}function BR(){return $t._===this&&($t._=v_),this}function Ad(){}function VR(o){return o=Ie(o),Me(function(a){return Ng(a,o)})}var UR=nd(ut),qR=nd(eg),GR=nd(Tu);function Jv(o){return ud(o)?Ru(Ur(o)):_O(o)}function ZR(o){return function(a){return o==null?r:Ai(o,a)}}var KR=tv(),YR=tv(!0);function Td(){return[]}function Rd(){return!1}function XR(){return{}}function JR(){return""}function QR(){return!0}function eC(o,a){if(o=Ie(o),o<1||o>ve)return[];var d=ee,E=qt(o,ee);a=ke(a),o-=ee;for(var k=Iu(E,a);++d<o;)a(d);return k}function tC(o){return Pe(o)?ut(o,Ur):vr(o)?[o]:rr(mv(qe(o)))}function rC(o){var a=++h_;return qe(o)+a}var nC=fl(function(o,a){return o+a},0),iC=id("ceil"),oC=fl(function(o,a){return o/a},1),sC=id("floor");function aC(o){return o&&o.length?ol(o,or,Bu):r}function lC(o,a){return o&&o.length?ol(o,ke(a,2),Bu):r}function cC(o){return ng(o,or)}function uC(o,a){return ng(o,ke(a,2))}function dC(o){return o&&o.length?ol(o,or,Gu):r}function fC(o,a){return o&&o.length?ol(o,ke(a,2),Gu):r}var pC=fl(function(o,a){return o*a},1),hC=id("round"),gC=fl(function(o,a){return o-a},0);function vC(o){return o&&o.length?Pu(o,or):0}function mC(o,a){return o&&o.length?Pu(o,ke(a,2)):0}return T.after=FA,T.ary=Tv,T.assign=AT,T.assignIn=Wv,T.assignInWith=Bv,T.assignWith=wd,T.at=TT,T.before=Rv,T.bind=vd,T.bindAll=NR,T.bindKey=Cv,T.castArray=JA,T.chain=Ov,T.chunk=ak,T.compact=lk,T.concat=ck,T.cond=MR,T.conforms=DR,T.constant=_d,T.countBy=mA,T.create=RT,T.curry=Pv,T.curryRight=Iv,T.debounce=Nv,T.defaults=CT,T.defaultsDeep=PT,T.defer=HA,T.delay=WA,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=xv,T.flattenDeep=bk,T.flattenDepth=yk,T.flip=BA,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=WT,T.invokeMap=AA,T.iteratee=Od,T.keyBy=TA,T.keys=It,T.keysIn=ir,T.map=yl,T.mapKeys=VT,T.mapValues=UT,T.matches=jR,T.matchesProperty=FR,T.memoize=xl,T.merge=qT,T.mergeWith=Vv,T.method=HR,T.methodOf=WR,T.mixin=kd,T.negate=Sl,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=md,T.partialRight=Mv,T.partition=CA,T.pick=KT,T.pickBy=Uv,T.property=Jv,T.propertyOf=ZR,T.pull=Rk,T.pullAll=Ev,T.pullAllBy=Ck,T.pullAllWith=Pk,T.pullAt=Ik,T.range=KR,T.rangeRight=YR,T.rearg=qA,T.reject=NA,T.remove=Nk,T.rest=GA,T.reverse=hd,T.sampleSize=DA,T.set=XT,T.setWith=JT,T.shuffle=LA,T.slice=Mk,T.sortBy=jA,T.sortedUniq=Hk,T.sortedUniqBy=Wk,T.split=xR,T.spread=ZA,T.tail=Bk,T.take=Vk,T.takeRight=Uk,T.takeRightWhile=qk,T.takeWhile=Gk,T.tap=lA,T.throttle=KA,T.thru=bl,T.toArray=jv,T.toPairs=qv,T.toPairsIn=Gv,T.toPath=tC,T.toPlainObject=Hv,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=gd,T.unzipWith=_v,T.update=tR,T.updateWith=rR,T.values=go,T.valuesIn=nR,T.without=eA,T.words=Yv,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=qv,T.entriesIn=Gv,T.extend=Wv,T.extendWith=Bv,kd(T,T),T.add=nC,T.attempt=Xv,T.camelCase=aR,T.capitalize=Zv,T.ceil=iC,T.clamp=iR,T.clone=QA,T.cloneDeep=tT,T.cloneDeepWith=rT,T.cloneWith=eT,T.conformsTo=nT,T.deburr=Kv,T.defaultTo=LR,T.divide=oC,T.endsWith=lR,T.eq=qr,T.escape=cR,T.escapeRegExp=uR,T.every=bA,T.find=wA,T.findIndex=yv,T.findKey=IT,T.findLast=xA,T.findLastIndex=wv,T.findLastKey=NT,T.floor=sC,T.forEach=kv,T.forEachRight=Av,T.forIn=MT,T.forInRight=DT,T.forOwn=LT,T.forOwnRight=zT,T.get=xd,T.gt=iT,T.gte=oT,T.has=FT,T.hasIn=Sd,T.head=Sv,T.identity=or,T.includes=kA,T.indexOf=xk,T.inRange=oR,T.invoke=BT,T.isArguments=Ci,T.isArray=Pe,T.isArrayBuffer=sT,T.isArrayLike=nr,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=bd,T.isFinite=pT,T.isFunction=In,T.isInteger=Dv,T.isLength=El,T.isMap=Lv,T.isMatch=hT,T.isMatchWith=gT,T.isNaN=vT,T.isNative=mT,T.isNil=yT,T.isNull=bT,T.isNumber=zv,T.isObject=pt,T.isObjectLike=vt,T.isPlainObject=vs,T.isRegExp=yd,T.isSafeInteger=wT,T.isSet=$v,T.isString=_l,T.isSymbol=vr,T.isTypedArray=ho,T.isUndefined=xT,T.isWeakMap=ST,T.isWeakSet=ET,T.join=kk,T.kebabCase=dR,T.last=Nr,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=Td,T.stubFalse=Rd,T.stubObject=XR,T.stubString=JR,T.stubTrue=QR,T.multiply=pC,T.nth=Tk,T.noConflict=BR,T.noop=Ad,T.now=wl,T.pad=hR,T.padEnd=gR,T.padStart=vR,T.parseInt=mR,T.random=sR,T.reduce=PA,T.reduceRight=IA,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=Nn,T.toInteger=Ie,T.toLength=Fv,T.toLower=OR,T.toNumber=Mr,T.toSafeInteger=kT,T.toString=qe,T.toUpper=kR,T.trim=AR,T.trimEnd=TR,T.trimStart=RR,T.truncate=CR,T.unescape=PR,T.uniqueId=rC,T.upperCase=IR,T.upperFirst=Ed,T.each=kv,T.eachRight=Av,T.first=Sv,kd(T,(function(){var o={};return an(T,function(a,d){Ue.call(T.prototype,d)||(o[d]=a)}),o})(),{chain:!1}),T.VERSION=n,pr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){T[o].placeholder=T}),pr(["drop","take"],function(o,a){ze.prototype[o]=function(d){d=d===r?1:At(Ie(d),0);var E=this.__filtered__&&!a?new ze(this):this.clone();return E.__filtered__?E.__takeCount__=qt(d,E.__takeCount__):E.__views__.push({size:qt(d,ee),type:o+(E.__dir__<0?"Right":"")}),E},ze.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),pr(["filter","map","takeWhile"],function(o,a){var d=a+1,E=d==I||d==te;ze.prototype[o]=function(k){var C=this.clone();return C.__iteratees__.push({iteratee:ke(k,3),type:d}),C.__filtered__=C.__filtered__||E,C}}),pr(["head","last"],function(o,a){var d="take"+(a?"Right":"");ze.prototype[o]=function(){return this[d](1).value()[0]}}),pr(["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(or)},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 us(d,o,a)})}),ze.prototype.reject=function(o){return this.filter(Sl(ke(o)))},ze.prototype.slice=function(o,a){o=Ie(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=Ie(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(ee)},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,oe=B[0],se=G||Pe(L),ce=function(Le){var $e=k.apply(T,Kn([Le],B));return E&&me?$e[0]:$e};se&&d&&typeof oe=="function"&&oe.length!=1&&(G=se=!1);var me=this.__chain__,Se=!!this.__actions__.length,Ae=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:bl,args:[ce],thisArg:r}),new Cr(_e,me)}return Ae&&Ne?o.apply(this,B):(_e=this.thru(ce),Ae?E?_e.value()[0]:_e.value():_e)})}),pr(["pop","push","shift","sort","splice","unshift"],function(o){var a=Va[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(Pe(C)?C:[],k)}return this[d](function(L){return a.apply(Pe(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[dl(r,w).name]=[{name:"wrapper",func:r}],ze.prototype.clone=I_,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,ns&&(T.prototype[ns]=pA),T}),oo=d_();Si?((Si.exports=oo)._=oo,_u._=oo):$t._=oo}).call(B4)})(Ys,Ys.exports)),Ys.exports}var Fe=V4();const tp={FdSave:V5,FdWarningDanger:Op,FdInfoCircle:z5,FdInfoBold:zf};var eh=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(eh||{}),Io=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Io||{}),To=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(To||{});const U4={[Io.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Io.DANGER]:{icon:"red-500",button:"primary-dark"},[Io.WARNING]:{icon:"yellow-400",button:"primary-dark"}},q4=({name:e,color:t=Io.PRIMARY,className:r="w-8 h-8"})=>{const n=tp[e]||tp.FdInfoCircle,i=`text-${U4[t].icon}`;return A.jsx(n,{className:st(r,i)})},G4=({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=Fe.merge(Fe.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=Fe.cloneDeep(c);(x=w.toggles)!=null&&x[y]&&(w.toggles[y].value=m),h({id:e,views:w})};return En.createPortal(A.jsx($c,{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($c.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(qi,{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(q4,{name:n,color:s,className:"w-6 h-6"})}):null,A.jsx(Z4,{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:Fe.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(Nw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),A.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),A.jsx(K4,{warnings:S}),A.jsx("div",{className:"flex items-center gap-4",children:i===eh.CONFIRM?A.jsxs(A.Fragment,{children:[A.jsx(Wn,{autoFocus:!0,color:"primary",onClick:()=>b(To.CONFIRMED),children:"Confirm"}),A.jsx(Wn,{color:"white",variant:"outline",onClick:()=>b(To.CANCELED),children:"Cancel"})]}):A.jsx(Wn,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),g||document.body)},Z4=e=>e.condition?A.jsx(A.Fragment,{children:e.children}):null,K4=e=>e.warnings?A.jsx($c,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:A.jsx(qi,{depth:1,className:"flex flex-col gap-1 rounded-sm p-2 text-xs",children:e.warnings.map((t,r)=>A.jsx($c.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(Op,{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 I1=(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))(I1||{});const Y4=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:i})=>A.jsxs(qi,{depth:4,className:"flex items-center rounded p-1",children:[A.jsx($5,{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(j5,{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,N1=.3,M1=.6,X4=()=>typeof window>"u"?400:Math.round(window.innerHeight*N1),D1=()=>typeof window>"u"?600:Math.round(window.innerHeight*M1),sy=e=>{const t=D1();return Math.min(Math.max(e,hn),t)},J4=e=>{const[t,r]=N.useState(hn),n=N.useRef(),i=N.useRef(null),s=D1(),l=X4(),c=t>hn;N.useEffect(()=>{r(e.isOpen?l:hn)},[e.isOpen,l]),N.useEffect(()=>{const f=()=>{r(g=>g<=hn?hn:sy(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(Pw,{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=>sy(b+h.height))},handleComponent:{top:A.jsx(Iw,{})},depth:1,children:A.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Fe.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(a1,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,A.jsx(Wn,{variant:"ghost",color:"white","data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,onClick:u,children:c?A.jsx(D5,{className:"h-4 w-4"}):A.jsx(L5,{className:"h-4 w-4"})})]}),e.headerRightSide]}),A.jsxs(mc,{of:c,children:[A.jsx(mc,{of:e.render,children:e.render}),A.jsx(mc,{of:!e.render,children:e.children})]})]})})},Q4=({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(qi,{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(W5,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),A.jsx("div",{className:"size-full absolute inset-0 rounded-full 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(Wn,{onClick:n,children:"Open in Text Editor"}),i&&A.jsx(Wn,{color:"negative",onClick:i,children:"Reset Page"}),r&&A.jsx(Wn,{color:"white",variant:"outline",onClick:r,children:"Close"})]})]})}),ez=({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(xs.Root,{className:st("w-full",i),children:A.jsxs(xs.Group,{children:[A.jsx(xs.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(U5,{})}),A.jsx(xs.Field,{ref:g,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:p=>{f(p.currentTarget.value);const h=Fe.escapeRegExp(p.target.value);if(!r)return e(h);Fe.debounce(e,r)(h)},value:u,onFocus:()=>s&&s(),onDrop:p=>p.preventDefault()}),t&&A.jsx(xs.Icon,{isAction:!0,onClick:()=>{e(""),f("")},children:A.jsx(Wo,{})})]})})},tz=N.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:i,...s},l)=>A.jsx(A.Fragment,{children:A.jsx(Aw,{label:e,children:A.jsx(Wn,{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 rz({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 nz({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 iz({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 L1=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)}})});L1.displayName="Image";function oz(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Sf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ef(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 z1(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 $1(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 sz(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,"-":Sf?173:189,"=":Sf?61:187,";":Sf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Qr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Xs={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Wt={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,j1="all";const $n=new Map,Go=e=>ga[e.toLowerCase()]||Qr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),az=e=>Object.keys(ga).find(t=>ga[t]===e),lz=e=>Object.keys(Qr).find(t=>Qr[t]===e);function F1(e){j1=e||"all"}function va(){return j1||"all"}function cz(){return ft.slice(0)}function uz(){return ft.map(e=>az(e)||lz(e)||String.fromCharCode(e))}function dz(){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 fz(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 pz(e){return typeof e=="string"&&(e=Go(e)),ft.indexOf(e)!==-1}function hz(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 th(c)}):n++;va()===e&&F1(t||"all")}function gz(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 Wt){Wt[t]=!1;for(const n in Qr)Qr[n]===t&&(Xr[n]=!1)}}function H1(e){if(typeof e>"u")Object.keys(gt).forEach(i=>{Array.isArray(gt[i])&>[i].forEach(s=>tc(s)),delete gt[i]}),th(null);else if(Array.isArray(e))e.forEach(i=>{i.key&&tc(i)});else if(typeof e=="object")e.key&&tc(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=""),tc({key:e,scope:i,method:s,splitKey:"+"})}}const tc=e=>{let{key:t,scope:r,method:n,splitKey:i="+"}=e;$1(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?z1(Qr,c):[],h=[];gt[g]=gt[g].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&sz(b.mods,p);return v&&h.push(b.element),!v}),h.forEach(b=>th(b))})};function ay(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 Wt)Object.prototype.hasOwnProperty.call(Wt,s)&&(!Wt[s]&&t.mods.indexOf(+s)>-1||Wt[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!Wt[16]&&!Wt[18]&&!Wt[17]&&!Wt[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 ly(e,t){const r=gt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Xr.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 Wt){Wt[n]=!0;for(const c in Qr)if(Object.prototype.hasOwnProperty.call(Qr,c)){const u=Xs[Qr[c]];Xr[c]=e[u]}if(!r)return}for(const c in Wt)Object.prototype.hasOwnProperty.call(Wt,c)&&(Wt[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),Wt[17]=!0,Wt[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)&&ay(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("")&&ay(e,u,i,t)}}function Xr(e,t,r){ft=[];const n=$1(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&&H1(e,s);c<n.length;c++)e=n[c].split(g),i=[],e.length>1&&(i=z1(Qr,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(!$n.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return ly(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;ly(v,l),gz(v)};$n.set(l,{keydownListener:b,keyupListenr:S,capture:p}),Ef(l,"keydown",b,p),Ef(l,"keyup",S,p)}if(!aa){const b=()=>{ft=[]};aa={listener:b,capture:p},Ef(window,"focus",b,p)}}}function vz(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 th(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}=$n.get(e)||{};n&&i&&(qs(e,"keyup",i,s),qs(e,"keydown",n,s),$n.delete(e))}if((t.length<=0||$n.size<=0)&&(Object.keys($n).forEach(i=>{const{keydownListener:s,keyupListenr:l,capture:c}=$n.get(i)||{};s&&l&&(qs(i,"keyup",l,c),qs(i,"keydown",s,c),$n.delete(i))}),$n.clear(),Object.keys(gt).forEach(i=>delete gt[i]),aa)){const{listener:i,capture:s}=aa;qs(window,"focus",i,s),aa=null}}const _f={getPressedKeyString:uz,setScope:F1,getScope:va,deleteScope:hz,getPressedKeyCodes:cz,getAllKeyCodes:dz,isPressed:pz,filter:fz,trigger:vz,unbind:H1,keyMap:ga,modifier:Qr,modifierMap:Xs};for(const e in _f)Object.prototype.hasOwnProperty.call(_f,e)&&(Xr[e]=_f[e]);if(typeof window<"u"){const e=window.hotkeys;Xr.noConflict=t=>(t&&window.hotkeys===Xr&&(window.hotkeys=e),Xr),window.hotkeys=Xr}Xr.filter=()=>!0;function mz(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=()=>{Xr.unbind(e,s)};N.useEffect(()=>(Xr(e,r,s),l),[e,r,s])}const bz=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 yz(e){const t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}function wz(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function xz(e){const t=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function Sz(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 W1=N.createContext(""),Ez=e=>A.jsx(W1.Provider,{value:e.value,children:e.children}),_z=()=>{const e=N.useContext(W1);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Oz(e){const[t,r]=N.useState(e),n=N.useMemo(()=>kz(t,r),[]);return{state:t,actions:{...n,set:i=>{r(typeof i=="function"?i:s=>({...s,...i}))}}}}function kz(e,t=()=>{}){return Object.keys(e).reduce((n,i)=>({...n,[`set${Fe.upperFirst(i)}`]:s=>t(l=>({...l,[i]:s}))}),{})}const Az=(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 Bt(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=Mz[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[Er]}function Ui(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)===Dz})(e)||Array.isArray(e)||!!e[vy]||!!(!((t=e.constructor)===null||t===void 0)&&t[vy])||rh(e)||nh(e))}function ma(e,t,r){r===void 0&&(r=!1),Zo(e)===0?(r?Object.keys:ah)(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[Er];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rh(e)?2:nh(e)?3:0}function rp(e,t){return Zo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tz(e,t){return Zo(e)===2?e.get(t):e[t]}function B1(e,t,r){var n=Zo(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Rz(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rh(e){return Iz&&e instanceof Map}function nh(e){return Nz&&e instanceof Set}function Di(e){return e.o||e.t}function ih(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Lz(e);delete t[Er];for(var r=ah(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),oh(e)||Fo(e)||!Ui(e)||(Zo(e)>1&&(e.set=e.add=e.clear=e.delete=Cz),Object.freeze(e),t&&ma(e,(function(r,n){return ba(n,!0)}),!0)),e}function Cz(){Bt(2)}function oh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=zz[e];return t||Bt(18,e),t}function cy(){return process.env.NODE_ENV==="production"||Ho||Bt(0),Ho}function Of(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function jc(e){np(e),e.p.forEach(Pz),e.p=null}function np(e){e===Ho&&(Ho=e.l)}function uy(e){return Ho={p:[],l:Ho,h:e,m:!0,_:0}}function Pz(e){var t=e[Er];t.i===0||t.i===1?t.j():t.g=!0}function kf(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[Er].P&&(jc(t),Bt(4)),Ui(e)&&(e=Fc(t,e),t.l||Hc(t,e)),t.u&&xn("Patches").M(r[Er].t,e,t.u,t.s)):e=Fc(t,r,[]),jc(t),t.u&&t.v(t.u,t.s),e!==U1?e:void 0}function Fc(e,t,r){if(oh(t))return t;var n=t[Er];if(!n)return ma(t,(function(c,u){return dy(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Hc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ih(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 dy(e,n,i,c,u,r,l)})),Hc(e,i,!1),r&&e.u&&xn("Patches").N(n,r,e.u,e.s)}return n.o}function dy(e,t,r,n,i,s,l){if(process.env.NODE_ENV!=="production"&&i===r&&Bt(5),Fo(i)){var c=Fc(e,i,s&&t&&t.i!==3&&!rp(t.R,n)?s.concat(n):void 0);if(B1(r,n,c),!Fo(c))return;e.m=!1}else l&&r.add(i);if(Ui(i)&&!oh(i)){if(!e.h.D&&e._<1)return;Fc(e,i),t&&t.A.l||Hc(e,i)}}function Hc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ba(t,r)}function Af(e,t){var r=e[Er];return(r?Di(r):e)[t]}function fy(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 ip(e){e.P||(e.P=!0,e.l&&ip(e.l))}function Tf(e){e.o||(e.o=ih(e.t))}function op(e,t,r){var n=rh(t)?xn("MapSet").F(t,r):nh(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:cy(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=c,f=sp;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:cy()).p.push(n),n}function V1(e){return Fo(e)||Bt(22,e),(function t(r){if(!Ui(r))return r;var n,i=r[Er],s=Zo(r);if(i){if(!i.P&&(i.i<4||!xn("ES5").K(i)))return i.t;i.I=!0,n=py(r,s),i.I=!1}else n=py(r,s);return ma(n,(function(l,c){i&&Tz(i.t,l)===c||B1(n,l,t(c))})),s===3?new Set(n):n})(e)}function py(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ih(e)}var hy,Ho,sh=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Iz=typeof Map<"u",Nz=typeof Set<"u",gy=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",U1=sh?Symbol.for("immer-nothing"):((hy={})["immer-nothing"]=!0,hy),vy=sh?Symbol.for("immer-draftable"):"__$immer_draftable",Er=sh?Symbol.for("immer-state"):"__$immer_state",Mz={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"},Dz=""+Object.prototype.constructor,ah=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Lz=Object.getOwnPropertyDescriptors||function(e){var t={};return ah(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},zz={},sp={get:function(e,t){if(t===Er)return e;var r=Di(e);if(!rp(r,t))return(function(i,s,l){var c,u=fy(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||!Ui(n)?n:n===Af(e.t,t)?(Tf(e),e.o[t]=op(e.A.h,n,e)):n},has:function(e,t){return t in Di(e)},ownKeys:function(e){return Reflect.ownKeys(Di(e))},set:function(e,t,r){var n=fy(Di(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Af(Di(e),t),s=i==null?void 0:i[Er];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Rz(r,i)&&(r!==void 0||rp(e.t,t)))return!0;Tf(e),ip(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 Af(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Tf(e),ip(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Di(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Bt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Bt(12)}},Js={};ma(sp,(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))&&Bt(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))&&Bt(14),sp.set.call(this,e[0],t,r,e[0])};var $z=(function(){function e(r){var n=this;this.O=gy,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"&&Bt(6),l!==void 0&&typeof l!="function"&&Bt(7),Ui(i)){var g=uy(n),p=op(n,i,void 0),h=!0;try{f=s(p),h=!1}finally{h?jc(g):np(g)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return Of(g,l),kf(v,g)}),(function(v){throw jc(g),v})):(Of(g,l),kf(f,g))}if(!i||typeof i!="object"){if((f=s(i))===void 0&&(f=i),f===U1&&(f=void 0),n.D&&ba(f,!0),l){var b=[],S=[];xn("Patches").M(i,f,b,S),l(b,S)}return f}Bt(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){Ui(r)||Bt(8),Fo(r)&&(r=V1(r));var n=uy(this),i=op(this,r,void 0);return i[Er].C=!0,np(n),i},t.finishDraft=function(r,n){var i=r&&r[Er];process.env.NODE_ENV!=="production"&&(i&&i.C||Bt(9),i.I&&Bt(10));var s=i.A;return Of(s,n),kf(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!gy&&Bt(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})(),_r=new $z,jz=_r.produce;_r.produceWithPatches.bind(_r);_r.setAutoFreeze.bind(_r);_r.setUseProxies.bind(_r);_r.applyPatches.bind(_r);_r.createDraft.bind(_r);_r.finishDraft.bind(_r);function Fz(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"?jz(n):ba(n))},[])]}const Hz=process.env.NODE_ENV==="development",Rf=Hz&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,Wz=(e,t,r)=>{const[n,i]=Fz(e),s=N.useRef(null);N.useEffect(()=>{var u;return r&&(s.current=Rf==null?void 0:Rf.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},V1(p))}),c)}),{}),[i]);return{state:n,dispatch:c}},Bz=e=>{const t=xh(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()}}},Vz=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:i}=xh(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 Uz(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 qz(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 q1(e,t){const r=e!==void 0;return[r,r?e:t]}function Gz({value:e,defaultValue:t,onChange:r}){const[n,i]=N.useState(t),[s,l]=q1(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 Zz=typeof window<"u"?N.useLayoutEffect:N.useEffect;function Kz(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function Yz(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function Bn(e){return typeof e=="function"}function G1(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 Cf=G1(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
252
|
-
`+r.map(function(
|
|
253
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function ap(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var su=(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=Uf(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(Bn(g))try{g()}catch(v){s=v instanceof Cf?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=Uf(p),b=h.next();!b.done;b=h.next()){var S=b.value;try{my(S)}catch(v){s=s??[],v instanceof Cf?s=Nc(Nc([],qf(s)),qf(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 Cf(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)my(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)&&ap(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ap(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Z1=su.EMPTY;function K1(e){return e instanceof su||e&&"closed"in e&&Bn(e.remove)&&Bn(e.add)&&Bn(e.unsubscribe)}function my(e){Bn(e)?e():e.unsubscribe()}var Xz={Promise:void 0},Jz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Nc([e,t],qf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Qz(e){Jz.setTimeout(function(){throw e})}function by(){}function Sc(e){e()}var Y1=(function(e){Qc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,K1(r)&&r.add(n)):n.destination=r$,n}return t.create=function(r,n,i){return new lp(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})(su),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){rc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){rc(n)}else rc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){rc(r)}},e})(),lp=(function(e){Qc(t,e);function t(r,n,i){var s=e.call(this)||this,l;return Bn(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})(Y1);function rc(e){Qz(e)}function t$(e){throw e}var r$={closed:!0,next:by,error:t$,complete:by},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 yy=(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 lp(t,r,n);return Sc(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=wy(r),new r(function(i,s){var l=new lp({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=wy(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 wy(e){var t;return(t=e??Xz.Promise)!==null&&t!==void 0?t:Promise}function s$(e){return e&&Bn(e.next)&&Bn(e.error)&&Bn(e.complete)}function a$(e){return e&&e instanceof Y1||s$(e)&&K1(e)}var l$=G1(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_n=(function(e){Qc(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 xy(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;Sc(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Uf(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;Sc(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;Sc(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?Z1:(this.currentObservers=null,c.push(r),new su(function(){n.currentObservers=null,ap(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 yy;return r.source=this,r},t.create=function(r,n){return new xy(r,n)},t})(yy),xy=(function(e){Qc(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:Z1},t})(_n),X1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(X1||{}),J1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(J1||{});const c$=new _n,u$=new _n,lh=new _n;var Q1=(e=>(e.SAVE_ALL="save-all",e))(Q1||{});const d$=new _n;var eS=(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))(eS||{});const f$=new _n;var tS=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(tS||{});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 Wc=new _n,g$=new _n,ch=255;var uh=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${ch} 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))(uh||{});function au(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>ch)throw new Error(uh.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{au(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)||!Fe.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Fe.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 lu(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 rS=(e,t,r)=>{const n=e instanceof RegExp?Sy(e,r):e,i=t instanceof RegExp?Sy(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)}},Sy=(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},nS="\0SLASH"+Math.random()+"\0",iS="\0OPEN"+Math.random()+"\0",dh="\0CLOSE"+Math.random()+"\0",oS="\0COMMA"+Math.random()+"\0",sS="\0PERIOD"+Math.random()+"\0",w$=new RegExp(nS,"g"),x$=new RegExp(iS,"g"),S$=new RegExp(dh,"g"),E$=new RegExp(oS,"g"),_$=new RegExp(sS,"g"),O$=/\\\\/g,k$=/\\{/g,A$=/\\}/g,T$=/\\,/g,R$=/\\\./g,C$=1e5;function Pf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function P$(e){return e.replace(O$,nS).replace(k$,iS).replace(A$,dh).replace(T$,oS).replace(R$,sS)}function I$(e){return e.replace(w$,"\\").replace(x$,"{").replace(S$,"}").replace(E$,",").replace(_$,".")}function aS(e){if(!e)return[""];const t=[],r=rS("{","}",e);if(!r)return e.split(",");const{pre:n,body:i,post:s}=r,l=n.split(",");l[l.length-1]+="{"+i+"}";const c=aS(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(P$(e),r,!0).map(I$)}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=rS("{","}",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+dh+i.post,Qs(e,t,!0)):[e];let p;if(f)p=i.body.split(/\.\./);else if(p=aS(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=Pf(p[0]),S=Pf(p[1]),v=Math.max(p[0].length,p[1].length);let y=p.length===3&&p[2]!==void 0?Math.max(Math.abs(Pf(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,"\\$&"),Ey=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?"^":"")+Ey(n)+"]",b="["+(f?"":"^")+Ey(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 ar;const W$=new Set(["!","?","+","*","@"]),cp=e=>W$.has(e),_y=e=>cp(e.type),B$=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),V$=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),U$=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Oy=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),q$="(?!(?:^|/)\\.\\.?(?:$|/))",nc="(?!\\.)",G$=new Set(["[","."]),Z$=new Set(["..","."]),K$=new Set("().*{}+?[]^$\\!"),Y$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fh="[^/]",ky=fh+"*?",Ay=fh+"+?";let X$=0;var Et,Nt,Fn,Ce,dt,di,$i,fi,gn,vn,No,Be,lS,hi,Ec,cS,up,_c,uS,dp,dS,fS,pS,Oc,fp,hS;class cu{constructor(t,r,n={}){Ft(this,Be);Te(this,"type");Ft(this,Et);Ft(this,Nt);Ft(this,Fn,!1);Ft(this,Ce,[]);Ft(this,dt);Ft(this,di);Ft(this,$i);Ft(this,fi,!1);Ft(this,gn);Ft(this,vn);Ft(this,No,!1);Te(this,"id",++X$);this.type=t,t&&Qe(this,Nt,!0),Qe(this,dt,r),Qe(this,Et,ae(this,dt)?ae(ae(this,dt),Et):this),Qe(this,gn,ae(this,Et)===this?n:ae(ae(this,Et),gn)),Qe(this,$i,ae(this,Et)===this?[]:ae(ae(this,Et),$i)),t==="!"&&!ae(ae(this,Et),fi)&&ae(this,$i).push(this),Qe(this,di,ae(this,dt)?ae(ae(this,dt),Ce).length:0)}get depth(){var t;return(((t=ae(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:ae(this,Et).id,parent:(t=ae(this,dt))==null?void 0:t.id,depth:this.depth,partsLength:ae(this,Ce).length,parts:ae(this,Ce)}}get hasMagic(){if(ae(this,Nt)!==void 0)return ae(this,Nt);for(const t of ae(this,Ce))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,Nt,!0);return ae(this,Nt)}toString(){return ae(this,vn)!==void 0?ae(this,vn):this.type?Qe(this,vn,this.type+"("+ae(this,Ce).map(t=>String(t)).join("|")+")"):Qe(this,vn,ae(this,Ce).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof ar&&ae(r,dt)===this))throw new Error("invalid part: "+r);ae(this,Ce).push(r)}}toJSON(){var r;const t=this.type===null?ae(this,Ce).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...ae(this,Ce).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===ae(this,Et)||ae(ae(this,Et),fi)&&((r=ae(this,dt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(ae(this,Et)===this)return!0;if(!((r=ae(this,dt))!=null&&r.isStart()))return!1;if(ae(this,di)===0)return!0;const t=ae(this,dt);for(let n=0;n<ae(this,di);n++){const i=ae(t,Ce)[n];if(!(i instanceof ar&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(ae(this,Et)===this||((r=ae(this,dt))==null?void 0:r.type)==="!")return!0;if(!((n=ae(this,dt))!=null&&n.isEnd()))return!1;if(!this.type)return(i=ae(this,dt))==null?void 0:i.isEnd();const t=ae(this,dt)?ae(ae(this,dt),Ce).length:0;return ae(this,di)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new ar(this.type,t);for(const n of ae(this,Ce))r.copyIn(n);return r}static fromGlob(t,r={}){var i;const n=new ar(null,void 0,r);return Ee(i=ar,hi,Ec).call(i,t,n,0,r,0),n}toMMPattern(){if(this!==ae(this,Et))return ae(this,Et).toMMPattern();const t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||ae(this,Nt)||ae(this,gn).nocase&&!ae(this,gn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(ae(this,gn).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return ae(this,gn)}toRegExpSource(t){var u;const r=t??!!ae(this,gn).dot;if(ae(this,Et)===this&&(Ee(this,Be,Oc).call(this),Ee(this,Be,lS).call(this)),!_y(this)){const f=this.isStart()&&this.isEnd()&&!ae(this,Ce).some(S=>typeof S!="string"),g=ae(this,Ce).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?Ee(x=ar,hi,hS).call(x,S,ae(this,Nt),f):S.toRegExpSource(t);return Qe(this,Nt,ae(this,Nt)||m),Qe(this,Fn,ae(this,Fn)||w),v}).join("");let p="";if(this.isStart()&&typeof ae(this,Ce)[0]=="string"&&!(ae(this,Ce).length===1&&Z$.has(ae(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?nc:""}let h="";return this.isEnd()&&ae(ae(this,Et),fi)&&((u=ae(this,dt))==null?void 0:u.type)==="!"&&(h="(?:$|\\/)"),[p+g+h,ea(g),Qe(this,Nt,!!ae(this,Nt)),ae(this,Fn)]}const n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let s=Ee(this,Be,fp).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||!nc?"":Ee(this,Be,fp).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&ae(this,No))c=(this.isStart()&&!r?nc:"")+Ay;else{const f=this.type==="!"?"))"+(this.isStart()&&!r&&!t?nc:"")+ky+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=i+s+f}return[c,ea(s),Qe(this,Nt,!!ae(this,Nt)),ae(this,Fn)]}}Et=new WeakMap,Nt=new WeakMap,Fn=new WeakMap,Ce=new WeakMap,dt=new WeakMap,di=new WeakMap,$i=new WeakMap,fi=new WeakMap,gn=new WeakMap,vn=new WeakMap,No=new WeakMap,Be=new WeakSet,lS=function(){if(this!==ae(this,Et))throw new Error("should only call on root");if(ae(this,fi))return this;this.toString(),Qe(this,fi,!0);let t;for(;t=ae(this,$i).pop();){if(t.type!=="!")continue;let r=t,n=ae(r,dt);for(;n;){for(let i=ae(r,di)+1;!n.type&&i<ae(n,Ce).length;i++)for(const s of ae(t,Ce)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(ae(n,Ce)[i])}r=n,n=ae(r,dt)}}return this},hi=new WeakSet,Ec=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&&cp(_)&&t.charAt(x)==="("&&s<=l){r.push(O),O="";const H=new ar(_,r);x=Ee(v=ar,hi,Ec).call(v,t,H,x,i,s+1),r.push(H);continue}O+=_}return r.push(O),x}let p=n+1,h=new ar(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&&cp(x)&&t.charAt(p)==="("&&(s<=l||r&&Ee(y=r,Be,_c).call(y,x))){const _=r&&Ee(m=r,Be,_c).call(m,x)?0:1;h.push(S),S="";const R=new ar(x,h);h.push(R),p=Ee(w=ar,hi,Ec).call(w,t,R,p,i,s+_);continue}if(x==="|"){h.push(S),S="",b.push(h),h=new ar(null,r);continue}if(x===")")return S===""&&ae(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},cS=function(t){return Ee(this,Be,up).call(this,t,V$)},up=function(t,r=B$){if(!t||typeof t!="object"||t.type!==null||ae(t,Ce).length!==1||this.type===null)return!1;const n=ae(t,Ce)[0];return!n||typeof n!="object"||n.type===null?!1:Ee(this,Be,_c).call(this,n.type,r)},_c=function(t,r=U$){var n;return!!((n=r.get(this.type))!=null&&n.includes(t))},uS=function(t,r){const n=ae(t,Ce)[0],i=new ar(null,n,this.options);ae(i,Ce).push(""),n.push(i),Ee(this,Be,dp).call(this,t,r)},dp=function(t,r){const n=ae(t,Ce)[0];ae(this,Ce).splice(r,1,...ae(n,Ce));for(const i of ae(n,Ce))typeof i=="object"&&Qe(i,dt,this);Qe(this,vn,void 0)},dS=function(t){const r=Oy.get(this.type);return!!(r!=null&&r.has(t))},fS=function(t){if(!t||typeof t!="object"||t.type!==null||ae(t,Ce).length!==1||this.type===null||ae(this,Ce).length!==1)return!1;const r=ae(t,Ce)[0];return!r||typeof r!="object"||r.type===null?!1:Ee(this,Be,dS).call(this,r.type)},pS=function(t){const r=Oy.get(this.type),n=ae(t,Ce)[0],i=r==null?void 0:r.get(n.type);if(!i)return!1;Qe(this,Ce,ae(n,Ce));for(const s of ae(this,Ce))typeof s=="object"&&Qe(s,dt,this);this.type=i,Qe(this,vn,void 0),Qe(this,No,!1)},Oc=function(){var t,r;if(_y(this)){let n=0,i=!1;do{i=!0;for(let s=0;s<ae(this,Ce).length;s++){const l=ae(this,Ce)[s];typeof l=="object"&&(Ee(r=l,Be,Oc).call(r),Ee(this,Be,up).call(this,l)?(i=!1,Ee(this,Be,dp).call(this,l,s)):Ee(this,Be,cS).call(this,l)?(i=!1,Ee(this,Be,uS).call(this,l,s)):Ee(this,Be,fS).call(this,l)&&(i=!1,Ee(this,Be,pS).call(this,l)))}}while(!i&&++n<10)}else for(const n of ae(this,Ce))typeof n=="object"&&Ee(t=n,Be,Oc).call(t);Qe(this,vn,void 0)},fp=function(t){return ae(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,Fn,ae(this,Fn)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},hS=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)?Ay:ky,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+=fh,r=!0;continue}s+=Y$(f)}return[s,ea(t),!!r,l]},Ft(cu,hi);ar=cu;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 uu(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=gS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},hj=([e,t=""])=>{const r=vS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},gj=([e,t=""])=>{const r=vS([e]);return t?n=>r(n)&&n.endsWith(t):r},vj=([e,t=""])=>{const r=gS([e]);return t?n=>r(n)&&n.endsWith(t):r},gS=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},vS=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},mS=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ty={win32:{sep:"\\"},posix:{sep:"/"}},mj=mS==="win32"?Ty.win32.sep:Ty.posix.sep;Vt.sep=mj;const Zt=Symbol("globstar **");Vt.GLOBSTAR=Zt;const bj="[^/]",yj=bj+"*?",wj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",xj="(?:(?!(?:\\/|^)\\.).)*?",Sj=(e,t={})=>r=>Vt(r,e,t);Vt.filter=Sj;const Dr=(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,Dr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,Dr(e,s))}static defaults(i){return t.defaults(Dr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,l={}){super(i,s,Dr(e,l))}static fromGlob(i,s={}){return t.AST.fromGlob(i,Dr(e,s))}},unescape:(n,i={})=>t.unescape(n,Dr(e,i)),escape:(n,i={})=>t.escape(n,Dr(e,i)),filter:(n,i={})=>t.filter(n,Dr(e,i)),defaults:n=>t.defaults(Dr(e,n)),makeRe:(n,i={})=>t.makeRe(n,Dr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,Dr(e,i)),match:(n,i,s={})=>t.match(n,i,Dr(e,s)),sep:t.sep,GLOBSTAR:Zt})};Vt.defaults=Ej;const bS=(e,t={})=>(Bc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:N$(e,{max:t.braceExpandMax}));Vt.braceExpand=bS;const _j=(e,t={})=>new uu(e,t).makeRe();Vt.makeRe=_j;const Oj=(e,t,r={})=>{const n=new uu(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};Vt.match=Oj;const Ry=/[?*]|[+@!]\(.*?\)|\[|\]/,kj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var xr,yS,pp,Oo;class uu{constructor(t,r={}){Ft(this,xr);Te(this,"options");Te(this,"set");Te(this,"pattern");Te(this,"windowsPathsNoEscape");Te(this,"nonegate");Te(this,"negate");Te(this,"comment");Te(this,"empty");Te(this,"preserveMultipleSlashes");Te(this,"partial");Te(this,"globSet");Te(this,"globParts");Te(this,"nocase");Te(this,"isWindows");Te(this,"platform");Te(this,"windowsNoMagicRoot");Te(this,"maxGlobstarRecursion");Te(this,"regexp");Bc(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||mS,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]==="?"||!Ry.test(s[2]))&&!Ry.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(Zt)?Ee(this,xr,yS).call(this,t,r,n,i,s):Ee(this,xr,Oo).call(this,t,r,n,i,s)}braceExpand(){return bS(this.pattern,this.options)}parse(t){Bc(t);const r=this.options;if(t==="**")return Zt;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=cu.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===Zt?Zt:p._src});f.forEach((p,h)=>{const b=f[h+1],S=f[h-1];p!==Zt||S===Zt||(S===void 0?b!==void 0&&b!==Zt?f[h+1]="(?:\\/|"+n+"\\/)?"+b:f[h]=n:b===void 0?f[h-1]=S+"(?:\\/|\\/"+n+")?":b!==Zt&&(f[h-1]=S+"(?:\\/|\\/"+n+"\\/)"+b,f[h+1]=Zt))});const g=f.filter(p=>p!==Zt);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}}xr=new WeakSet,yS=function(t,r,n,i,s){const l=r.indexOf(Zt,s),c=r.lastIndexOf(Zt),[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,xr,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,xr,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,xr,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===Zt?(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,xr,pp).call(this,t,h,i,0,n,0,!!p)},pp=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,xr,Oo).call(this,t.slice(0,n+f.length),f,s,n,0)&&l<this.maxGlobstarRecursion){const b=Ee(this,xr,pp).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===Zt)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=cu;Vt.Minimatch=uu;Vt.escape=J$;Vt.unescape=ea;var ph=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(ph||{});const Jr={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||{}),hh=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(hh||{});const gh="roles.json",vh="qodlyApp.json",wS="model.4DModel",mh="HTTPHandlers.json",bh="Shared/i18n.json",xS=[{pattern:vh,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:gh,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:mh,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:bh,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:wS,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=yh(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=xS.find(({pattern:r})=>Vt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function yh(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===Jr.METHODS):return je.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Jr.CLASSES):return je.CLASS;case e===gh:return je.ROLES;case e===mh:return je.HTTP_HANDLERS;case e===vh:return je.SETTINGS;case e===bh:return je.LOCALIZATION;default:return je.TEXT}}function SS(e,t=!1){switch(e){case Jr.REPORTS:case"report":return"QoDoc";case Jr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Jr.CLASSES:case Jr.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 ES{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 wh(){const e=new ES;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const Pj="4DWS_PREFS",_S=Fe.curry((e,t,r)=>e&&Fe.get(r,e)===t),Ij=Fe.curry((e,t,r)=>Fe.get(r,e)!==t),Nj=Fe.curry((e,t)=>Fe.get(t,"id")!==e),Mj=Fe.curry((e,t)=>Fe.get(t,"id")===e),Dj=Fe.curry((e,t)=>Fe.get(t,"path")===e);function Lj(e="id",t,r){return r.findIndex(_S(e,t))!==-1}function OS(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function zj(){try{const e=localStorage.getItem(Pj);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 xh(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 kS(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 AS(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function TS(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!kS(e)}function Fj(e){return AS(e)||TS(e)}function Hj(e){return e.applyTo==="dataStore"}function Wj(e){return e.applyTo==="dataClass"}function Bj(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 RS(e){return e.dataType==="array"}function CS(e){return e.dataType==="object"}function PS(e){return e.type==="scalar"}function Gj(e){return RS(e)||CS(e)||PS(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",IS="Location",NS="UserLanguage",MS="Title",Vc={[ta]:[{id:MS,dataType:"string",type:"scalar",namespace:ta,initialValue:""},{id:IS,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:NS,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||{}),DS=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(DS||{}),Sh=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Sh||{});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:Sh.table}},...n}}function LS(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=Fe.isString(t)?t:LS(t);if(!r&&zS(e))return e;const i=$S(e);return`//%attributes = ${n}\r
|
|
254
|
-
${i}`}function zS(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function $S(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const hp=()=>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=hp()),u.attributes){const f=["storage","relatedEntity"];u.attributes=u.attributes.map(g=>f.includes(g.kind)&&!g.uuid?{...g,uuid:hp()}: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],Cy=e=>[ct.DS_METHOD,ct.ENTITY_METHOD,ct.DATACLASS_METHOD].includes(e)?Xe.METHOD:e,Uc="guest",Eh=[{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 Hr(e,...t){return Array.from(new Set([...e,...t]))}function jS(e){const t={},r=new Map;e.forEach(u=>{const f=u.id||gi.generate();t[f]={...u,id:f,parents:[],includes:Hr(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=Hr(t[h].parents,h),h):""}).filter(Boolean);t[u]={...f,includes:g}});const n=FS(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===Uc))return t;const c=gi.generate();return{[c]:{id:c,privilege:Uc,includes:[],parents:[],resources:[]},...t}}function FS(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function du(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(i=>{n=Hr(n,...du(i,t),i)}),n}function qc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(i=>{n=Hr(n,...qc(i,t),i)}),n}function lF(e,t){const r=t[e];if(!r)return[];const n=[e,...du(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:Hr(n.includes,t)},[t]:{...r[t],parents:Hr(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){au(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=>Un(r,t))}function Un(e,t){return t[e]?t[e]:null}function HS({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[i,s])=>{const l=Fe.find(Eh,["key",i]);return!l||!l.canApplyTo.includes(t)||(typeof s=="string"?s.split(","):s).forEach(u=>{n[u]=Hr(n[u]||[],i)}),n},{})}const Py=(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 _h(e){return{permissions:Eh.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:Py(r,!0)};case Xe.DATACLASS:return{...n,info:Py(r)};default:return n}}),resource:e.applyTo,type:e.type}}function WS(e,t){const r=BS(t),n={};return e.filter(({type:i})=>aF.includes(i)).forEach(i=>{const s=HS(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=Fe.find(n[u].resources,{resource:i.applyTo,type:i.type});f||(f=_h(i),n[u].resources.push(f)),f.permissions=f.permissions.map(p=>({...p,checked:p.checked||c.includes(p.name)}))})}),{...t,...n}}function BS(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=jS(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:WS(((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:Hr(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=>du(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=Fe.find(n,{applyTo:l,type:Cy(c)});u||(u={applyTo:l,type:Cy(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!==Uc).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(Hr(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=Un(e,r);if(!n||Fe.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const i={...n,resources:[...n.resources,_h(t)]};return{...r,[e]:i}}function yF(e,t,r){const n=Un(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=Un(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=Un(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=Un(e,n);if(!i)return n;const l=Fe.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=VS(e,t)||[],n=((u=Un(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]=Hr(f[b]||[],g))}),f),{})}function VS(e,t){var l;const r=Un(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===Uc))==null?void 0:l.id;return(n&&n!==e?Hr(qc(e,t),n):qc(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=Fe.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),Fe.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(au(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 US(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 qS(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function AF(e,t){const r=US(e);return qS(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 GS=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(GS||{}),ZS=(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))(ZS||{}),KS=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(KS||{}),Oh=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Oh||{}),YS=(e=>(e.GRID="grid",e.COMPACT="compact",e))(YS||{}),XS=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(XS||{}),JS=(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))(JS||{});const RF={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var QS=(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))(QS||{});const eE={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"],PF=e=>e.id===eE.id,kh=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(n=>kh(n,t,r))}:e:e;function IF(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:kh(i.conditions,n)}:i)}}}const tE=(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=>tE(n,t,r))}}return e},rE=(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=>rE(n,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},nE=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(nE)}: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"]===Oh.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 Fe.isEqual(e,t)}function DF(e,t){const{qodly:r=!0,withExtension:n=!0}=t||{},i=SS(e.type,r);let s="";switch(e.type){case je.WEBFORM:s=`${Jr.WEBFORMS}/${e.name}`;break;case je.METHOD:s=`${Jr.METHODS}/${e.name}`;break;case je.CLASS:s=`${Jr.CLASSES}/${e.name}`;break;default:return""}return`${s}${n?`.${i}`:""}`}function iE(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const LF=iE;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 WF(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function BF(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function VF(e){e.preventDefault(),e.stopPropagation()}const Ot="/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 gp 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;Wc.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))&&Wc.next({action:ya.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new gp(e,r,l)}catch{s=new gp(e,r)}throw s.log(),s}return await r.json()}function qF(e){return Wc.next({action:ya.REQUEST_SENT}),e}var dn={},Ht={},Iy;function zi(){if(Iy)return Ht;Iy=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 If,Ny;function GF(){if(Ny)return If;Ny=1;var e=zi(),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},If=n,If}var ic={},My;function vp(){if(My)return ic;My=1;var e=zi();ic.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return ic.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)},ic}var Nf,Dy;function ZF(){if(Dy)return Nf;Dy=1;var e=GF(),t=zi(),r=vp().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,P=this.attributes[R];if(P)H=P.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 z=S.rewrite.call(this,h,b,S,v);y.instance=z}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)},Nf=u,Nf}var Ly;function KF(){if(Ly)return dn;Ly=1;var e=dn.Validator=ZF();return dn.ValidatorResult=zi().ValidatorResult,dn.ValidatorResultError=zi().ValidatorResultError,dn.ValidationError=zi().ValidationError,dn.SchemaError=zi().SchemaError,dn.SchemaScanResult=vp().SchemaScanResult,dn.scan=vp().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 oE(e){const t=Object.entries(XF).find(([r])=>Vt(e,r));return t==null?void 0:t[1]}function fu(e){var n;const t=(n=oE(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${xa}/`,"Shared/");Ah({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){sE(r)&&fu(`${xa}/${t}`)}}function Pa({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=oE(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(sE(n)&&t){const i=QF(n,e);lh.next({message:i,kind:"warning"}),fu(r)}throw n})}function sE(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 aE=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:hh.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(Ot,{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),aE()}}async function lE(e){return await Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function n6(...e){return(await Promise.all(e.map(n=>lE({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:Fe.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=Fe.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(Ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[je.METHOD,je.CLASS].includes(t.type)?lu(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(Ot,{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(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function l6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function c6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function u6(e){return(await Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function d6(...e){return await Je(Ot,{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(Ot,{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 Pa({path:"shared_datasources.json",...e}),...Vc}}catch{return{...Vc}}}async function m6(e={}){try{return await Pa({path:"shared_app_events.json",...e})}catch{return[]}}async function b6(e={}){try{return await Pa({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function y6(e={}){try{return await Pa({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=wh(),E6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Fe.omit(e,Fe.keys(Vc))};return S6(()=>Je(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},_6=wh(),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(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Ah=async e=>{const t=await Je(Ot,{method:"POST",body:JSON.stringify({...e,verb:mi.SET_FILE_CONTENT,root:ph.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=yh(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},k6=async e=>await Ah({name:"crafted_components.json",path:Jr.WEBFORMS,content:e});function A6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function T6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function C6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?lu(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&&fu(e.path),t})}function P6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function I6(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=I6(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(Ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});i.content=lu(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 cE=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(cE||{});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"}},uE=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(uE.Provider,{value:n,children:e})});function H6(){const e=N.useContext(uE);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const dE=N.createContext(null),W6=5e3,B6={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??W6,position:c.position??"bottom",render:c.render};return r(p=>[...p,g]),f},[]);N.useEffect(()=>{const c=lh.subscribe(u=>{s({position:"bottom",render:({onClose:f})=>A.jsx(xx,{...u,onClose:f})})});return()=>{c.unsubscribe()}},[s]);const l=N.useMemo(()=>({pushToast:s,removeToast:i}),[s,i]);return A.jsxs(dE.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 ${B6[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(dE);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=Ot;exports.AppLoader=b4;exports.DATASOURCE_THEMES=$6;exports.DatasourcesActions=J1;exports.DebuggerActions=tS;exports.DesignerRequestVerb=mi;exports.Dialog=P5;exports.DialogBody=Xy;exports.EActivity=cE;exports.ECustomStylePropsViewMode=YS;exports.EDITOR=j6;exports.EDisplayMode=Oh;exports.EIDENTIFIERS=JS;exports.EPermissionType=Xe;exports.ERROR_CODES=QS;exports.ESetting=ZS;exports.ESubPermissionType=ct;exports.ETooltipBehavior=KS;exports.EWebFormStyleClassScope=GS;exports.EXT_API_PREFIX=Ca;exports.FileFolderType=je;exports.FolderRootPath=Jr;exports.FolderRootType=ph;exports.Grid=rz;exports.GridItem=nz;exports.HTTPError=gp;exports.HTTP_HANDLERS_TAB_PATH=mh;exports.IPreemptive=wa;exports.IPublished=DS;exports.IPublishedRestScope=Sh;exports.IdentityProvider=Ez;exports.Image=L1;exports.Incase=mc;exports.IndentLines=kx;exports.InvalidJsonError=Q4;exports.LOCALIZATION_TAB_PATH=bh;exports.LOCATION_DATASOURCE_ID=IS;exports.LogoSVG=x1;exports.LspActions=eS;exports.MAX_FILE_NAME_LENGTH=ch;exports.MODEL_TAB_PATH=wS;exports.Modal=G4;exports.ModalCloseReason=To;exports.ModalColor=Io;exports.ModalIcons=tp;exports.ModalType=eh;exports.Mutex=ES;exports.NameError=uh;exports.Overlay=Yy;exports.PANEL_COLLAPSED_HEIGHT=hn;exports.PANEL_INITIAL_OPEN_RATIO=N1;exports.PANEL_MAX_RATIO=M1;exports.PERMISSIONS=Eh;exports.Panel=J4;exports.PopperTooltip=v4;exports.Portal=jy;exports.PublishOptions=rF;exports.QODLY_NAMESPACE=ta;exports.ROLES_TAB_PATH=gh;exports.ROOT_WEBFORM_STATE=eE;exports.RemoteDebuggerMode=hh;exports.SETTINGS_TAB_PATH=vh;exports.SHARED_API_PREFIX=xa;exports.SHARED_USER_NAMESPACE=Vc;exports.SearchInput=ez;exports.SimpleGrid=iz;exports.SourceCodeDescriptor=XS;exports.StudioContextProvider=F6;exports.Switcher=Ax;exports.THEME_CLASSES=CF;exports.TITLE_DATASOURCE_ID=MS;exports.TabEventsActions=Q1;exports.Tip=a1;exports.TipsProvider=wL;exports.Toast=xx;exports.ToastProvider=V6;exports.ToolbarIcon=tz;exports.Tooltip=g4;exports.Tree=uD;exports.TreeIcon=Sx;exports.TreeNode=$p;exports.USER_LANGUAGE_DATASOURCE_ID=NS;exports.WT_FLAGS_KEYS=RF;exports.WebformActions=X1;exports.WebformEventsActions=ya;exports.ZoomComponent=Y4;exports.ZoomLevel=I1;exports._isArrayDatasource=Yj;exports._isObjectDatasource=Xj;exports.actionsToPrivs=HS;exports.addAttributesToContent=iF;exports.addFolder=l6;exports.addItem=WF;exports.addPermission=bF;exports.addPrivilegeIn=uF;exports.allowed=lF;exports.by=_S;exports.byId=Mj;exports.byPath=Dj;exports.callAll=iE;exports.callAllHandlers=LF;exports.callServerSideParser=qF;exports.checkUpdates=e6;exports.children=qc;exports.createFolder=A6;exports.createPrivilege=fF;exports.createRole=_F;exports.dataAttr=zF;exports.datasourcesSubject=c$;exports.debuggerSubject=p$;exports.deepDeleteCondition=rE;exports.deepSanitizeCondition=nE;exports.dropFile=a6;exports.dropFolder=u6;exports.editors=xS;exports.exists=Lj;exports.extractWebformName=Rj;exports.filterBySeriousError=qS;exports.focus=$F;exports.formatErrorsAsBulletToast=TF;exports.generateUUID=hp;exports.getAppSettings=r6;exports.getCashedPrefrences=zj;exports.getCatalog=p6;exports.getDatasourceId=$j;exports.getDefaultAppSettings=aE;exports.getDefaultContent=NF;exports.getDictByName=BS;exports.getDisplayableFeedbackErrors=AF;exports.getEditors=Tj;exports.getErrorListFromPayload=US;exports.getFile=o6;exports.getFileContent=g6;exports.getFileExtentionFromType=SS;exports.getFilePath=DF;exports.getFilenameAndTypeFromPath=Aj;exports.getFilenameFromType=Cj;exports.getFilesInfo=d6;exports.getFolder=lE;exports.getFolders=n6;exports.getFunctionContent=D6;exports.getGraphData=mF;exports.getInheritedResources=VS;exports.getMonacoTheme=x6;exports.getNodeInfo=C6;exports.getPrivilegeById=Un;exports.getPromotions=EF;exports.getResourceFromType=_h;exports.getSavedConditions=y6;exports.getSharedAppEvents=m6;exports.getSharedCSS=b6;exports.getSharedDatasources=v6;exports.getSharedResource=Pa;exports.getSupportedLanguages=h6;exports.getTypeFromExtension=yh;exports.getUserPrivileges=w6;exports.getWebForm=i6;exports.hasAttributesString=zS;exports.http=Je;exports.i18nSubject=g$;exports.initializeDefaultProjectFiles=JF;exports.installUpdates=t6;exports.isArrayDatasource=RS;exports.isBaseState=PF;exports.isDataClassMethod=Wj;exports.isDataStoreMethod=Hj;exports.isDateDatasource=Jj;exports.isEntity=Zj;exports.isEntityDatasource=Uj;exports.isEntityMethod=Bj;exports.isEntitySelection=Kj;exports.isEntitySelectionDatasource=qj;exports.isEntitySelectionMethod=Vj;exports.isInputEvent=BF;exports.isObjectAttribute=jj;exports.isObjectDatasource=CS;exports.isRelatedAttribute=Fj;exports.isRelatedEntitiesAttribute=AS;exports.isRelatedEntityAttribute=TS;exports.isSameNamespace=Qj;exports.isScalarDatasource=PS;exports.isSimpleAttribute=kS;exports.isSimpleDatasource=Gj;exports.loadDS=eF;exports.loadI18n=tF;exports.localeCompare=OS;exports.log=L6;exports.login=f6;exports.lspSubject=f$;exports.mergeRefs=jF;exports.moveItem=R6;exports.outBy=Ij;exports.outById=Nj;exports.parents=du;exports.parseAttributes=nF;exports.parseCatalog=oF;exports.populateShallow=hF;exports.queue=wh;exports.refactorConditions=kh;exports.refactorWebform=IF;exports.removeAttributesString=$S;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=lu;exports.sanitizeNameCY=sF;exports.sanitizePermissions=WS;exports.sanitizePrivileges=jS;exports.sanitizeRoles=gF;exports.saveContent=P6;exports.saveRole=kF;exports.selectorEqualityFn=MF;exports.setCraftedComponents=k6;exports.setFileContent=Ah;exports.setSharedAppEvents=O6;exports.setSharedSources=E6;exports.sortPrivileges=FS;exports.splitDatasourceID=xh;exports.stopEvent=VF;exports.stringifyAttributes=LS;exports.tabEventsSubject=d$;exports.tasksManagerSubject=h$;exports.toastSubject=lh;exports.togglePermission=SF;exports.trackEvent=z6;exports.transformDates=UF;exports.tryCreateSharedResource=fu;exports.uniquePush=Hr;exports.updateDsCondition=tE;exports.useBoolean=Uz;exports.useCallbackRef=qz;exports.useControllableProp=q1;exports.useControllableState=Gz;exports.useDidMountEffect=oz;exports.useDoubleClick=Az;exports.useDsChangeRenderer=Vz;exports.useDsRendererAdapter=Bz;exports.useEnhancedState=Wz;exports.useFeatureFlags=Sz;exports.useFormControlProps=Yz;exports.useForwardedRef=xz;exports.useHotkeys=mz;exports.useIdentity=_z;exports.useOutsideClick=bz;exports.usePrevious=yz;exports.useSafeLayoutEffect=Zz;exports.useStateObject=Oz;exports.useStateRef=wz;exports.useStudioContext=H6;exports.useTip=s1;exports.useToast=q6;exports.useUpdateEffect=Kz;exports.validateName=au;exports.validateServerSide=v$;exports.validateValue=m$;exports.visuallyHiddenStyle=HF;exports.warn=FF;exports.webformEventsSubject=Wc;exports.webformSubject=u$;
|
|
200
|
+
`)+ee+`return __p
|
|
201
|
+
}`;var Oe=gh(function(){return $e(T,le+"return "+ee).apply(r,P)});if(Oe.source=ee,ll(Oe))throw Oe;return Oe}function G_(n){return Me(n).toLowerCase()}function K_(n){return Me(n).toUpperCase()}function V_(n,o,l){if(n=Me(n),n&&(l||o===r))return Ed(n);if(!n||!(o=zt(o)))return n;var b=ur(n),_=ur(o),T=_d(b,_),P=Od(b,_)+1;return fn(b,T,P).join("")}function X_(n,o,l){if(n=Me(n),n&&(l||o===r))return n.slice(0,Td(n)+1);if(!n||!(o=zt(o)))return n;var b=ur(n),_=Od(b,ur(o))+1;return fn(b,0,_).join("")}function Y_(n,o,l){if(n=Me(n),n&&(l||o===r))return n.replace(lu,"");if(!n||!(o=zt(o)))return n;var b=ur(n),_=_d(b,ur(o));return fn(b,_).join("")}function J_(n,o){var l=N,b=L;if(Ve(o)){var _="separator"in o?o.separator:_;l="length"in o?Ee(o.length):l,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(l>=T)return n;var I=l-ti(b);if(I<1)return b;var z=P?fn(P,0,I).join(""):n.slice(0,I);if(_===r)return z+b;if(P&&(I+=z.length-I),cl(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Au(_.source,Me(qf.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 Q_(n){return n=Me(n),n&&db.test(n)?n.replace(Wf,Pw):n}var eO=ui(function(n,o,l){return n+(l?" ":"")+o.toUpperCase()}),hl=gp("toUpperCase");function hh(n,o,l){return n=Me(n),o=l?r:o,o===r?_w(n)?$w(n):gw(n):n.match(o)||[]}var gh=Te(function(n,o){try{return Dt(n,r,o)}catch(l){return ll(l)?l:new be(l)}}),tO=Wr(function(n,o){return Nt(o,function(l){l=cr(l),br(n,l,al(n[l],n))}),n});function rO(n){var o=n==null?0:n.length,l=ge();return n=o?Ze(n,function(b){if(typeof b[1]!="function")throw new Yt(u);return[l(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 nO(n){return P1(Qt(n,g))}function gl(n){return function(){return n}}function iO(n,o){return n==null||n!==n?o:n}var oO=vp(),sO=vp(!0);function It(n){return n}function ml(n){return Gd(typeof n=="function"?n:Qt(n,g))}function aO(n){return Vd(Qt(n,g))}function uO(n,o){return Xd(n,Qt(o,g))}var lO=Te(function(n,o){return function(l){return ji(l,n,o)}}),cO=Te(function(n,o){return function(l){return ji(n,l,o)}});function vl(n,o,l){var b=ft(o),_=xs(o,b);l==null&&!(Ve(o)&&(_.length||!b.length))&&(l=o,o=n,n=this,_=xs(o,ft(o)));var T=!(Ve(l)&&"chain"in l)||!!l.chain,P=Br(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,on([this.value()],arguments))})}),n}function fO(){return pt._===this&&(pt._=Nw),this}function yl(){}function dO(n){return n=Ee(n),Te(function(o){return Yd(o,n)})}var pO=Ku(Ze),hO=Ku(yd),gO=Ku(bu);function mh(n){return tl(n)?wu(cr(n)):Z1(n)}function mO(n){return function(o){return n==null?r:kn(n,o)}}var vO=bp(),yO=bp(!0);function bl(){return[]}function wl(){return!1}function bO(){return{}}function wO(){return""}function xO(){return!0}function SO(n,o){if(n=Ee(n),n<1||n>ce)return[];var l=ne,b=wt(n,ne);o=ge(o),n-=ne;for(var _=Eu(b,o);++l<n;)o(l);return _}function EO(n){return Se(n)?Ze(n,cr):Wt(n)?[n]:Ct(Mp(Me(n)))}function _O(n){var o=++Fw;return Me(n)+o}var OO=Ts(function(n,o){return n+o},0),AO=Vu("ceil"),TO=Ts(function(n,o){return n/o},1),RO=Vu("floor");function PO(n){return n&&n.length?ws(n,It,Lu):r}function CO(n,o){return n&&n.length?ws(n,ge(o,2),Lu):r}function kO(n){return xd(n,It)}function $O(n,o){return xd(n,ge(o,2))}function IO(n){return n&&n.length?ws(n,It,Nu):r}function LO(n,o){return n&&n.length?ws(n,ge(o,2),Nu):r}var MO=Ts(function(n,o){return n*o},1),FO=Vu("round"),DO=Ts(function(n,o){return n-o},0);function NO(n){return n&&n.length?Su(n,It):0}function jO(n,o){return n&&n.length?Su(n,ge(o,2)):0}return A.after=uE,A.ary=Zp,A.assign=VE,A.assignIn=sh,A.assignInWith=ah,A.assignWith=fl,A.at=XE,A.before=Gp,A.bind=al,A.bindAll=tO,A.bindKey=Kp,A.castArray=wE,A.chain=Bp,A.chunk=Px,A.compact=Cx,A.concat=kx,A.cond=rO,A.conforms=nO,A.constant=gl,A.countBy=jS,A.create=YE,A.curry=Vp,A.curryRight=Xp,A.debounce=Yp,A.defaults=JE,A.defaultsDeep=QE,A.defer=lE,A.delay=cE,A.difference=$x,A.differenceBy=Ix,A.differenceWith=Lx,A.drop=Mx,A.dropRight=Fx,A.dropRightWhile=Dx,A.dropWhile=Nx,A.fill=jx,A.filter=WS,A.flatMap=HS,A.flatMapDeep=qS,A.flatMapDepth=ZS,A.flatten=jp,A.flattenDeep=zx,A.flattenDepth=Wx,A.flip=fE,A.flow=oO,A.flowRight=sO,A.fromPairs=Ux,A.functions=s_,A.functionsIn=a_,A.groupBy=GS,A.initial=Hx,A.intersection=qx,A.intersectionBy=Zx,A.intersectionWith=Gx,A.invert=l_,A.invertBy=c_,A.invokeMap=VS,A.iteratee=ml,A.keyBy=XS,A.keys=ft,A.keysIn=$t,A.map=Ls,A.mapKeys=d_,A.mapValues=p_,A.matches=aO,A.matchesProperty=uO,A.memoize=Fs,A.merge=h_,A.mergeWith=uh,A.method=lO,A.methodOf=cO,A.mixin=vl,A.negate=Ds,A.nthArg=dO,A.omit=g_,A.omitBy=m_,A.once=dE,A.orderBy=YS,A.over=pO,A.overArgs=pE,A.overEvery=hO,A.overSome=gO,A.partial=ul,A.partialRight=Jp,A.partition=JS,A.pick=v_,A.pickBy=lh,A.property=mh,A.propertyOf=mO,A.pull=Yx,A.pullAll=Wp,A.pullAllBy=Jx,A.pullAllWith=Qx,A.pullAt=eS,A.range=vO,A.rangeRight=yO,A.rearg=hE,A.reject=tE,A.remove=tS,A.rest=gE,A.reverse=ol,A.sampleSize=nE,A.set=b_,A.setWith=w_,A.shuffle=iE,A.slice=rS,A.sortBy=aE,A.sortedUniq=lS,A.sortedUniqBy=cS,A.split=B_,A.spread=mE,A.tail=fS,A.take=dS,A.takeRight=pS,A.takeRightWhile=hS,A.takeWhile=gS,A.tap=CS,A.throttle=vE,A.thru=Is,A.toArray=nh,A.toPairs=ch,A.toPairsIn=fh,A.toPath=EO,A.toPlainObject=oh,A.transform=x_,A.unary=yE,A.union=mS,A.unionBy=vS,A.unionWith=yS,A.uniq=bS,A.uniqBy=wS,A.uniqWith=xS,A.unset=S_,A.unzip=sl,A.unzipWith=Up,A.update=E_,A.updateWith=__,A.values=fi,A.valuesIn=O_,A.without=SS,A.words=hh,A.wrap=bE,A.xor=ES,A.xorBy=_S,A.xorWith=OS,A.zip=AS,A.zipObject=TS,A.zipObjectDeep=RS,A.zipWith=PS,A.entries=ch,A.entriesIn=fh,A.extend=sh,A.extendWith=ah,vl(A,A),A.add=OO,A.attempt=gh,A.camelCase=P_,A.capitalize=dh,A.ceil=AO,A.clamp=A_,A.clone=xE,A.cloneDeep=EE,A.cloneDeepWith=_E,A.cloneWith=SE,A.conformsTo=OE,A.deburr=ph,A.defaultTo=iO,A.divide=TO,A.endsWith=C_,A.eq=fr,A.escape=k_,A.escapeRegExp=$_,A.every=zS,A.find=US,A.findIndex=Dp,A.findKey=e_,A.findLast=BS,A.findLastIndex=Np,A.findLastKey=t_,A.floor=RO,A.forEach=Hp,A.forEachRight=qp,A.forIn=r_,A.forInRight=n_,A.forOwn=i_,A.forOwnRight=o_,A.get=dl,A.gt=AE,A.gte=TE,A.has=u_,A.hasIn=pl,A.head=zp,A.identity=It,A.includes=KS,A.indexOf=Bx,A.inRange=T_,A.invoke=f_,A.isArguments=Ln,A.isArray=Se,A.isArrayBuffer=RE,A.isArrayLike=kt,A.isArrayLikeObject=rt,A.isBoolean=PE,A.isBuffer=dn,A.isDate=CE,A.isElement=kE,A.isEmpty=$E,A.isEqual=IE,A.isEqualWith=LE,A.isError=ll,A.isFinite=ME,A.isFunction=Br,A.isInteger=Qp,A.isLength=Ns,A.isMap=eh,A.isMatch=FE,A.isMatchWith=DE,A.isNaN=NE,A.isNative=jE,A.isNil=WE,A.isNull=zE,A.isNumber=th,A.isObject=Ve,A.isObjectLike=et,A.isPlainObject=qi,A.isRegExp=cl,A.isSafeInteger=UE,A.isSet=rh,A.isString=js,A.isSymbol=Wt,A.isTypedArray=ci,A.isUndefined=BE,A.isWeakMap=HE,A.isWeakSet=qE,A.join=Kx,A.kebabCase=I_,A.last=tr,A.lastIndexOf=Vx,A.lowerCase=L_,A.lowerFirst=M_,A.lt=ZE,A.lte=GE,A.max=PO,A.maxBy=CO,A.mean=kO,A.meanBy=$O,A.min=IO,A.minBy=LO,A.stubArray=bl,A.stubFalse=wl,A.stubObject=bO,A.stubString=wO,A.stubTrue=xO,A.multiply=MO,A.nth=Xx,A.noConflict=fO,A.noop=yl,A.now=Ms,A.pad=F_,A.padEnd=D_,A.padStart=N_,A.parseInt=j_,A.random=R_,A.reduce=QS,A.reduceRight=eE,A.repeat=z_,A.replace=W_,A.result=y_,A.round=FO,A.runInContext=j,A.sample=rE,A.size=oE,A.snakeCase=U_,A.some=sE,A.sortedIndex=nS,A.sortedIndexBy=iS,A.sortedIndexOf=oS,A.sortedLastIndex=sS,A.sortedLastIndexBy=aS,A.sortedLastIndexOf=uS,A.startCase=H_,A.startsWith=q_,A.subtract=DO,A.sum=NO,A.sumBy=jO,A.template=Z_,A.times=SO,A.toFinite=Hr,A.toInteger=Ee,A.toLength=ih,A.toLower=G_,A.toNumber=rr,A.toSafeInteger=KE,A.toString=Me,A.toUpper=K_,A.trim=V_,A.trimEnd=X_,A.trimStart=Y_,A.truncate=J_,A.unescape=Q_,A.uniqueId=_O,A.upperCase=eO,A.upperFirst=hl,A.each=Hp,A.eachRight=qp,A.first=zp,vl(A,(function(){var n={};return wr(A,function(o,l){Le.call(A.prototype,l)||(n[l]=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(l){l=l===r?1:lt(Ee(l),0);var b=this.__filtered__&&!o?new Pe(this):this.clone();return b.__filtered__?b.__takeCount__=wt(l,b.__takeCount__):b.__views__.push({size:wt(l,ne),type:n+(b.__dir__<0?"Right":"")}),b},Pe.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Nt(["filter","map","takeWhile"],function(n,o){var l=o+1,b=l==k||l==J;Pe.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:ge(_,3),type:l}),T.__filtered__=T.__filtered__||b,T}}),Nt(["head","last"],function(n,o){var l="take"+(o?"Right":"");Pe.prototype[n]=function(){return this[l](1).value()[0]}}),Nt(["initial","tail"],function(n,o){var l="drop"+(o?"":"Right");Pe.prototype[n]=function(){return this.__filtered__?new Pe(this):this[l](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(l){return ji(l,n,o)})}),Pe.prototype.reject=function(n){return this.filter(Ds(ge(n)))},Pe.prototype.slice=function(n,o){n=Ee(n);var l=this;return l.__filtered__&&(n>0||o<0)?new Pe(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),o!==r&&(o=Ee(o),l=o<0?l.dropRight(-o):l.take(o-n)),l)},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 l=/^(?: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,on([Re],I));return b&&se?Ce[0]:Ce};X&&l&&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],l=/^(?: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[l](function(P){return o.apply(Se(P)?P:[],_)})}}),wr(Pe.prototype,function(n,o){var l=A[o];if(l){var b=l.name+"";Le.call(oi,b)||(oi[b]=[]),oi[b].push({name:o,func:l})}}),oi[As(r,S).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=e1,Pe.prototype.reverse=t1,Pe.prototype.value=r1,A.prototype.at=kS,A.prototype.chain=$S,A.prototype.commit=IS,A.prototype.next=LS,A.prototype.plant=FS,A.prototype.reverse=DS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=NS,A.prototype.first=A.prototype.head,$i&&(A.prototype[$i]=MS),A}),ri=Iw();An?((An.exports=ri)._=ri,gu._=ri):pt._=ri}).call(x$)})(bo,bo.exports)),bo.exports}var Ye=S$();const Rc={FdSave:tt.FdSave,FdWarningDanger:tt.FdWarningDanger,FdInfoCircle:tt.FdInfoCircle,FdInfoBold:tt.FdInfoBold};var Sf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Sf||{}),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"}},Ql=({color:e=Bn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=zy[e].button,u=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",u),...s,children:r})},E$=({name:e,color:t=Bn.PRIMARY,className:r="w-8 h-8"})=>{const i=Rc[e]||Rc.FdInfoCircle,s=`text-${zy[t].icon}`;return F.jsx(i,{className:He(r,s)})},_$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=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(_a,{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:u},onClick:()=>v(vi.CANCELED),children:F.jsx(_a.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(E$,{name:i,color:a,className:"w-6 h-6"})}):null,F.jsx(O$,{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(A$,{warnings:x}),F.jsx("div",{className:"flex items-center gap-4",children:s===Sf.CONFIRM?F.jsxs(F.Fragment,{children:[F.jsx(Ql,{autoFocus:!0,color:a,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),F.jsx(Ql,{color:a,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):F.jsx(Ql,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),y||document.body)},O$=e=>e.condition?F.jsx(F.Fragment,{children:e.children}):null,A$=e=>e.warnings?F.jsx(_a,{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(_a.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 T$=({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})})]}),R$=$.forwardRef(((e,t)=>$.createElement(_n.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}})))),P$=R$;function Em(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]=rf("Tooltip",[Wa]),Ef=Wa(),C$=700,[qM,k$]=Uy("TooltipProvider",{isOpenDelayed:!0,delayDuration:C$,onOpen:()=>{},onClose:()=>{}}),[$$,Ga]=Uy("Tooltip"),I$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,c=k$("Tooltip",t),f=Ef(t),[m,y]=$.useState(null),p=Uv(),g=$.useRef(0),v=u??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($$,{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))},L$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ga("TooltipTrigger",r),a=Ef(r),u=En(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(_n.button,Qe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:u,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()}))})))})),M$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ga("TooltipContent",e.__scopeTooltip);return $.createElement(ef,{present:r||s.open},$.createElement(F$,Qe({ref:t},i)))})),F$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,c=Ga("TooltipContent",r),f=Ef(r),m=a?tf:$.Fragment,{onClose:y}=c;return Zv((()=>y())),$.useEffect((()=>(document.addEventListener("tooltip.open",y),()=>document.removeEventListener("tooltip.open",y))),[y]),$.createElement(m,null,$.createElement(D$,{__scopeTooltip:r}),$.createElement(Qv,Qe({"data-state":c.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(qv,null,i),$.createElement(P$,{id:c.contentId,role:"tooltip"},s||i)))}));function D$(e){const{__scopeTooltip:t}=e,r=Ga("CheckTriggerMoved",t),i=Kv(r.trigger),s=i==null?void 0:i.left,a=Em(s),u=i==null?void 0:i.top,c=Em(u),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==u)&&f()}),[f,a,c,s,u]),null}const N$=I$,j$=L$,z$=M$;function W$(e){return F.jsxs(N$,{delayDuration:e.delayDuration,open:e.open,children:[F.jsx(j$,{tabIndex:-1,asChild:!0,children:F.jsx("span",{children:e.children})}),F.jsxs(z$,{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 Or=30,By=.3,Hy=.6,U$=()=>typeof window>"u"?400:Math.round(window.innerHeight*By),qy=()=>typeof window>"u"?600:Math.round(window.innerHeight*Hy),_m=e=>{const t=qy();return Math.min(Math.max(e,Or),t)},B$=()=>F.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),H$=e=>{const[t,r]=W.useState(Or),i=W.useRef(),s=W.useRef(null),a=qy(),u=U$(),c=t>Or;W.useEffect(()=>{r(e.isOpen?u:Or)},[e.isOpen,u]),W.useEffect(()=>{const m=()=>{r(y=>y<=Or?Or:_m(y))};return window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m),s.current&&cancelAnimationFrame(s.current)}},[]);const f=()=>{if(c){r(Or),e.onClose();return}r(u),e.onOpen()};return F.jsx("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:F.jsx(UO.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:a,minHeight:Or,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(c?Or:u):i.current=Date.now()},onResize:(m,y,p)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var g;(g=e.onResize)==null||g.call(e),s.current=null})},onResizeStop:(m,y,p,g)=>{r(v=>_m(v+g.height))},handleComponent:{top:F.jsx(B$,{})},children: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":!c}),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"}),e.tipKey?F.jsx(py,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,F.jsx("button",{"data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:f,children:c?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:c,children:[F.jsx(fa,{of:e.render,children:e.render}),F.jsx(fa,{of:!e.render,children:e.children})]})]})})})};function Zy({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 Gy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return F.jsx(Zy,{viewBox:"0 0 24 24",...e,children:F.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function q$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...c}){const f=W.useRef(null),m=i||F.jsx(Gy,{}),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:u,"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 Z$=({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 G$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const ec=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function tc(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 Ky(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function Vy(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 K$(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,"-":ec?173:189,"=":ec?61:187,";":ec?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,Xy="all";const Gr=new Map,Pi=e=>Io[e.toLowerCase()]||vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),V$=e=>Object.keys(Io).find(t=>Io[t]===e),X$=e=>Object.keys(vr).find(t=>vr[t]===e);function Yy(e){Xy=e||"all"}function Lo(){return Xy||"all"}function Y$(){return Ke.slice(0)}function J$(){return Ke.map(e=>V$(e)||X$(e)||String.fromCharCode(e))}function Q$(){const e=[];return Object.keys(Je).forEach(t=>{Je[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:u}=r;e.push({scope:s,shortcut:u,mods:a,keys:i.split("+").map(c=>Pi(c))})})}),e}function eI(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 tI(e){return typeof e=="string"&&(e=Pi(e)),Ke.indexOf(e)!==-1}function rI(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(u=>{let{element:c}=u;return _f(c)}):i++;Lo()===e&&Yy(t||"all")}function nI(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 Jy(e){if(typeof e>"u")Object.keys(Je).forEach(s=>{Array.isArray(Je[s])&&Je[s].forEach(a=>na(a)),delete Je[s]}),_f(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;Vy(t).forEach(u=>{const c=u.split(s),f=c.length,m=c[f-1],y=m==="*"?"*":Pi(m);if(!Je[y])return;r||(r=Lo());const p=f>1?Ky(vr,c):[],g=[];Je[y]=Je[y].filter(v=>{const d=(i?v.method===i:!0)&&v.scope===r&&K$(v.mods,p);return d&&g.push(v.element),!d}),g.forEach(v=>_f(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],u=a.length;for(let c=0;c<u;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=Vy(e);let s=[],a="all",u=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&&(u=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&&Jy(e,a);c<i.length;c++)e=i[c].split(y),s=[],e.length>1&&(s=Ky(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:u});if(typeof u<"u"&&window){if(!Gr.has(u)){const v=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Am(d,u)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Am(d,u),nI(d)};Gr.set(u,{keydownListener:v,keyupListenr:x,capture:p}),tc(u,"keydown",v,p),tc(u,"keyup",x,p)}if(!Po){const v=()=>{Ke=[]};Po={listener:v,capture:p},tc(window,"focus",v,p)}}}function iI(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 _f(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}=Gr.get(e)||{};i&&s&&(mo(e,"keyup",s,a),mo(e,"keydown",i,a),Gr.delete(e))}if((t.length<=0||Gr.size<=0)&&(Object.keys(Gr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:c}=Gr.get(s)||{};a&&u&&(mo(s,"keyup",u,c),mo(s,"keydown",a,c),Gr.delete(s))}),Gr.clear(),Object.keys(Je).forEach(s=>delete Je[s]),Po)){const{listener:s,capture:a}=Po;mo(window,"focus",s,a),Po=null}}const rc={getPressedKeyString:J$,setScope:Yy,getScope:Lo,deleteScope:rI,getPressedKeyCodes:Y$,getAllKeyCodes:Q$,isPressed:tI,filter:eI,trigger:iI,unbind:Jy,keyMap:Io,modifier:vr,modifierMap:wo};for(const e in rc)Object.prototype.hasOwnProperty.call(rc,e)&&(mr[e]=rc[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 oI(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),u=()=>{mr.unbind(e,a)};W.useEffect(()=>(mr(e,r,a),u),[e,r,a])}const sI=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 aI(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function uI(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function lI(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function cI(e){const[t,r]=W.useState(e),i=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:u}}}))},s=W.useCallback((...a)=>a.every(u=>{var c;return(c=t.features[u])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Qy=W.createContext(""),fI=e=>F.jsx(Qy.Provider,{value:e.value,children:e.children}),dI=()=>{const e=W.useContext(Qy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function pI(e){const[t,r]=W.useState(e),i=W.useMemo(()=>hI(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function hI(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ye.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const gI=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((a,...u)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...u)},r.timeout)),a.detail%2===0&&e(a,...u)},[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=SI[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(u){return"'"+u+"'"})).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)===EI})(e)||Array.isArray(e)||!!e[Lm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Lm])||Of(e)||Af(e))}function Mo(e,t,r){r===void 0&&(r=!1),Ci(e)===0?(r?Object.keys:Cf)(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:Of(e)?2:Af(e)?3:0}function Pc(e,t){return Ci(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function mI(e,t){return Ci(e)===2?e.get(t):e[t]}function e0(e,t,r){var i=Ci(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function vI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Of(e){return wI&&e instanceof Map}function Af(e){return xI&&e instanceof Set}function Nn(e){return e.o||e.t}function Tf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_I(e);delete t[Kt];for(var r=Cf(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),Rf(e)||Ti(e)||!Gn(e)||(Ci(e)>1&&(e.set=e.add=e.clear=e.delete=yI),Object.freeze(e),t&&Mo(e,(function(r,i){return Fo(i,!0)}),!0)),e}function yI(){yt(2)}function Rf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $r(e){var t=OI[e];return t||yt(18,e),t}function Tm(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function nc(e,t){t&&($r("Patches"),e.u=[],e.s=[],e.v=t)}function Ra(e){Cc(e),e.p.forEach(bI),e.p=null}function Cc(e){e===Ri&&(Ri=e.l)}function Rm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function bI(e){var t=e[Kt];t.i===0||t.i===1?t.j():t.g=!0}function ic(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||$r("ES5").S(t,e,i),i?(r[Kt].P&&(Ra(t),yt(4)),Gn(e)&&(e=Pa(t,e),t.l||Ca(t,e)),t.u&&$r("Patches").M(r[Kt].t,e,t.u,t.s)):e=Pa(t,r,[]),Ra(t),t.u&&t.v(t.u,t.s),e!==r0?e:void 0}function Pa(e,t,r){if(Rf(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 Ca(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Tf(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),Mo(a,(function(c,f){return Pm(e,i,s,c,f,r,u)})),Ca(e,s,!1),r&&e.u&&$r("Patches").N(i,r,e.u,e.s)}return i.o}function Pm(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ti(s)){var c=Pa(e,s,a&&t&&t.i!==3&&!Pc(t.R,i)?a.concat(i):void 0);if(e0(r,i,c),!Ti(c))return;e.m=!1}else u&&r.add(s);if(Gn(s)&&!Rf(s)){if(!e.h.D&&e._<1)return;Pa(e,s),t&&t.A.l||Ca(e,s)}}function Ca(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function oc(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 kc(e){e.P||(e.P=!0,e.l&&kc(e.l))}function sc(e){e.o||(e.o=Tf(e.t))}function $c(e,t,r){var i=Of(t)?$r("MapSet").F(t,r):Af(t)?$r("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),c={i:u?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=Ic;u&&(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):$r("ES5").J(t,r);return(r?r.A:Tm()).p.push(i),i}function t0(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||!$r("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(u,c){s&&mI(s.t,u)===c||e0(i,u,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 Tf(e)}var $m,Ri,Pf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wI=typeof Map<"u",xI=typeof Set<"u",Im=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",r0=Pf?Symbol.for("immer-nothing"):(($m={})["immer-nothing"]=!0,$m),Lm=Pf?Symbol.for("immer-draftable"):"__$immer_draftable",Kt=Pf?Symbol.for("immer-state"):"__$immer_state",SI={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"},EI=""+Object.prototype.constructor,Cf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,_I=Object.getOwnPropertyDescriptors||function(e){var t={};return Cf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},OI={},Ic={get:function(e,t){if(t===Kt)return e;var r=Nn(e);if(!Pc(r,t))return(function(s,a,u){var c,f=Cm(a,u);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===oc(e.t,t)?(sc(e),e.o[t]=$c(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=oc(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(vI(r,s)&&(r!==void 0||Pc(e.t,t)))return!0;sc(e),kc(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 oc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,sc(e),kc(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(Ic,(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),Ic.set.call(this,e[0],t,r,e[0])};var AI=(function(){function e(r){var i=this;this.O=Im,this.D=!0,this.produce=function(s,a,u){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),u!==void 0&&typeof u!="function"&&yt(7),Gn(s)){var y=Rm(i),p=$c(i,s,void 0),g=!0;try{m=a(p),g=!1}finally{g?Ra(y):Cc(y)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(d){return nc(y,u),ic(d,y)}),(function(d){throw Ra(y),d})):(nc(y,u),ic(m,y))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===r0&&(m=void 0),i.D&&Fo(m,!0),u){var v=[],x=[];$r("Patches").M(s,m,v,x),u(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 u,c,f=i.produce(s,a,(function(m,y){u=m,c=y}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(m){return[m,u,c]})):[f,u,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=t0(r));var i=Rm(this),s=$c(this,r,void 0);return s[Kt].C=!0,Cc(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 nc(a,i),ic(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 u=$r("Patches").$;return Ti(r)?u(r,i):this.produce(r,(function(c){return u(c,i)}))},e})(),Vt=new AI,TI=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 RI(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"?TI(i):Fo(i))},[])]}const PI=process.env.NODE_ENV==="development",ac=PI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,CI=(e,t,r)=>{const[i,s]=RI(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=ac==null?void 0:ac.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 u=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(u).reduce((f,m)=>({...f,[m]:y=>(s(p=>{var g;u[m](p,y),(g=a.current)==null||g.send({type:u[m].name},t0(p))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Xr(e){return typeof e=="function"}function n0(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 uc=n0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
202
|
+
`+r.map(function(i,s){return s+1+") "+i.toString()}).join(`
|
|
203
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Lc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ka=(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 u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=mc(u),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 u.remove(this);var y=this.initialTeardown;if(Xr(y))try{y()}catch(d){a=d instanceof uc?d.errors:[d]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var g=mc(p),v=g.next();!v.done;v=g.next()){var x=v.value;try{Mm(x)}catch(d){a=a??[],d instanceof uc?a=Sa(Sa([],vc(a)),vc(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 uc(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)&&Lc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Lc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),i0=Ka.EMPTY;function o0(e){return e instanceof Ka||e&&"closed"in e&&Xr(e.remove)&&Xr(e.add)&&Xr(e.unsubscribe)}function Mm(e){Xr(e)?e():e.unsubscribe()}var kI={Promise:void 0},$I={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Sa([e,t],vc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function II(e){$I.setTimeout(function(){throw e})}function Fm(){}function ga(e){e()}var s0=(function(e){ja(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,o0(r)&&r.add(i)):i.destination=FI,i}return t.create=function(r,i,s){return new Mc(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})(Ka),LI=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){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})(),Mc=(function(e){ja(t,e);function t(r,i,s){var a=e.call(this)||this,u;return Xr(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new LI(u),a}return t})(s0);function ia(e){II(e)}function MI(e){throw e}var FI={closed:!0,next:Fm,error:MI,complete:Fm},DI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function NI(e){return e}function jI(e){return e.length===0?NI: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=WI(t)?t:new Mc(t,r,i);return ga(function(){var u=s,c=u.operator,f=u.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 u=new Mc({next:function(c){try{t(c)}catch(f){a(f),u.unsubscribe()}},error:a,complete:s});i.subscribe(u)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[DI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return jI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Nm(t),new t(function(i,s){var a;r.subscribe(function(u){return a=u},function(u){return s(u)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Nm(e){var t;return(t=e??kI.Promise)!==null&&t!==void 0?t:Promise}function zI(e){return e&&Xr(e.next)&&Xr(e.error)&&Xr(e.complete)}function WI(e){return e&&e instanceof s0||zI(e)&&o0(e)}var UI=n0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Mr=(function(e){ja(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 UI},t.prototype.next=function(r){var i=this;ga(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=mc(i.currentObservers),c=u.next();!c.done;c=u.next()){var f=c.value;f.next(r)}}catch(m){s={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;ga(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;ga(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,u=s.isStopped,c=s.observers;return a||u?i0:(this.currentObservers=null,c.push(r),new Ka(function(){i.currentObservers=null,Lc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,u=i.isStopped;s?r.error(a):u&&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){ja(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:i0},t})(Mr),a0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(a0||{}),u0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(u0||{});const BI=new Mr,HI=new Mr,l0=new Mr;var c0=(e=>(e.SAVE_ALL="save-all",e))(c0||{});const qI=new Mr;var f0=(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))(f0||{});const ZI=new Mr;var d0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(d0||{});const GI=new Mr,KI=new Mr;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 ka=new Mr,VI=new Mr,kf=255;var $f=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${kf} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))($f||{});function p0(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>kf)throw new Error($f.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function XI(e){if(!e)return null;if(typeof e=="string")try{p0(e)}catch(t){return t.message}}function YI(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 JI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Va(e){const{PLACEHOLDER_PREFIX:t,counter:r}=JI();let i=r;const s=[],a="@!",u=y=>(s.push(y),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(y,p,g)=>p+u(g)),c=c.replace(/:\d{2}:\d{2}/g,u);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 If=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(If||{});const wn={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||{}),On=(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))(On||{}),Lf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Lf||{});const h0="roles.json",g0="qodlyApp.json",QI="model.4DModel",m0="HTTPHandlers.json",v0="Shared/i18n.json";function eL(e){const t=Mf(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 Mf(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===wn.METHODS):return Xe.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wn.CLASSES):return Xe.CLASS;case e===h0:return Xe.ROLES;case e===m0:return Xe.HTTP_HANDLERS;case e===g0:return Xe.SETTINGS;case e===v0:return Xe.LOCALIZATION;default:return Xe.TEXT}}function tL(e,t=!1){switch(e){case wn.REPORTS:case"report":return"QoDoc";case wn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wn.CLASSES:case wn.METHODS:return t?"4qs":"4dm";default:return""}}function rL(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function nL(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 y0{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 Ff(){const e=new y0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const b0=Ye.curry((e,t,r)=>e&&Ye.get(r,e)===t),iL=Ye.curry((e,t,r)=>Ye.get(r,e)!==t),oL=Ye.curry((e,t)=>Ye.get(t,"id")!==e),sL=Ye.curry((e,t)=>Ye.get(t,"id")===e),aL=Ye.curry((e,t)=>Ye.get(t,"path")===e);function uL(e="id",t,r){return r.findIndex(b0(e,t))!==-1}function w0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function lL(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function cL(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 x0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function fL(e){return e.type==="object"}function S0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function E0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!x0(e)}function dL(e){return S0(e)||E0(e)}function pL(e){return e.applyTo==="dataStore"}function hL(e){return e.applyTo==="dataClass"}function gL(e){return e.applyTo==="entity"}function mL(e){return e.applyTo==="entityCollection"}function vL(e){return e.type==="entity"}function yL(e){return e.type==="entitysel"}function _0(e){return e.dataType==="array"}function O0(e){return e.dataType==="object"}function A0(e){return e.type==="scalar"}function bL(e){return _0(e)||O0(e)||A0(e)}const wL=e=>e!=null&&e.type==="entity",xL=e=>e.type==="entitysel",SL=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",EL=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",_L=e=>e.type==="scalar"&&e.dataType==="date",OL=(e,t)=>(e||"")===(t||"");function AL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function TL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const So="Qodly",T0="Location",R0="UserLanguage",P0="Title",$a={[So]:[{id:P0,dataType:"string",type:"scalar",namespace:So,initialValue:""},{id:T0,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:R0,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||{}),C0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(C0||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const RL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function PL(e){var a;let t={};try{const u=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(u)}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:Df.table}},...i}}function k0(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 CL(e,t,r=!1){const i=Ye.isString(t)?t:k0(t);if(!r&&$0(e))return e;const s=I0(e);return`//%attributes = ${i}\r
|
|
204
|
+
${s}`}function $0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function I0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const kL=()=>Jc.uuid().replaceAll("-","").toUpperCase(),$L=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");function L0(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 M0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function IL(e,t){const r=L0(e);return M0(r,t)}function LL(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 ML(...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 Fc 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;ka.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 u=await r.json();((s=u==null?void 0:u.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&ka.next({action:Do.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Fc(e,r,u)}catch{a=new Fc(e,r)}throw a.log(),a}return await r.json()}function FL(e){return ka.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 u=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]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],mt.isFormat=function(d,w,h){if(typeof d=="string"&&u[w]!==void 0){if(u[w]instanceof RegExp)return u[w].test(d);if(typeof u[w]=="function")return u[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 lc,Wm;function DL(){if(Wm)return lc;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 u(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(u(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=u(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){u(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},lc=i,lc}var oa={},Um;function Dc(){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)}u(x+"/items",Array.isArray(p.items)?p.items:[p.items]),u(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),u(x+"/disallow",p.disallow),u(x+"/allOf",p.allOf),u(x+"/anyOf",p.anyOf),u(x+"/oneOf",p.oneOf),a(x+"/not",p.not)}function u(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 cc,Bm;function NL(){if(Bm)return cc;Bm=1;var e=DL(),t=zn(),r=Dc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=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 u(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 u(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)},cc=f,cc}var Hm;function jL(){if(Hm)return Er;Hm=1;var e=Er.Validator=NL();return Er.ValidatorResult=zn().ValidatorResult,Er.ValidatorResultError=zn().ValidatorResultError,Er.ValidationError=zn().ValidationError,Er.SchemaError=zn().SchemaError,Er.SchemaScanResult=Dc().SchemaScanResult,Er.scan=Dc().scan,Er.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},Er}var zL=jL();const F0=(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&&WL(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},WL=(e,t,r)=>{let i,s,a,u,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,u=m),m=r.indexOf(t,y+1);y=f<m&&f>=0?f:m}i.length&&u!==void 0&&(c=[a,u])}return c},D0="\0SLASH"+Math.random()+"\0",N0="\0OPEN"+Math.random()+"\0",Nf="\0CLOSE"+Math.random()+"\0",j0="\0COMMA"+Math.random()+"\0",z0="\0PERIOD"+Math.random()+"\0",UL=new RegExp(D0,"g"),BL=new RegExp(N0,"g"),HL=new RegExp(Nf,"g"),qL=new RegExp(j0,"g"),ZL=new RegExp(z0,"g"),GL=/\\\\/g,KL=/\\{/g,VL=/\\}/g,XL=/\\,/g,YL=/\\\./g,JL=1e5;function fc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function QL(e){return e.replace(GL,D0).replace(KL,N0).replace(VL,Nf).replace(XL,j0).replace(YL,z0)}function e2(e){return e.replace(UL,"\\").replace(BL,"{").replace(HL,"}").replace(qL,",").replace(ZL,".")}function W0(e){if(!e)return[""];const t=[],r=F0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const c=W0(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),t.push.apply(t,u),t}function t2(e,t={}){if(!e)return[];const{max:r=JL}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Eo(QL(e),r,!0).map(e2)}function r2(e){return"{"+e+"}"}function n2(e){return/^-?0\d/.test(e)}function i2(e,t){return e<=t}function o2(e,t){return e>=t}function Eo(e,t,r){const i=[],s=F0("{","}",e);if(!s)return[e];const a=s.pre,u=s.post.length?Eo(s.post,t,!1):[""];if(/\$$/.test(s.pre))for(let c=0;c<u.length&&c<t;c++){const f=a+"{"+s.body+"}"+u[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+Nf+s.post,Eo(e,t,!0)):[e];let p;if(m)p=s.body.split(/\.\./);else if(p=W0(s.body),p.length===1&&p[0]!==void 0&&(p=Eo(p[0],t,!1).map(r2),p.length===1))return u.map(v=>s.pre+p[0]+v);let g;if(m&&p[0]!==void 0&&p[1]!==void 0){const v=fc(p[0]),x=fc(p[1]),d=Math.max(p[0].length,p[1].length);let w=p.length===3&&p[2]!==void 0?Math.max(Math.abs(fc(p[2])),1):1,h=i2;x<v&&(w*=-1,h=o2);const E=p.some(n2);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<u.length&&i.length<t;x++){const d=a+g[v]+u[x];(!r||m||d)&&i.push(d)}}return i}const s2=1024*64,Ia=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>s2)throw new TypeError("pattern is too long")},a2={"[: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,"\\$&"),u2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zm=e=>e.join(""),l2=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,u=!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==="]"&&u&&!f){y=a+1;break}if(u=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(a2))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[u2(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 c2=new Set(["!","?","+","*","@"]),Nc=e=>c2.has(e),Gm=e=>Nc(e.type),f2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),d2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),p2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Km=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),h2="(?!(?:^|/)\\.\\.?(?:$|/))",sa="(?!\\.)",g2=new Set(["[","."]),m2=new Set(["..","."]),v2=new Set("().*{}+?[]^$\\!"),y2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jf="[^/]",Vm=jf+"*?",Xm=jf+"+?";let b2=0;var st,dt,Vr,we,Ge,vn,Wn,yn,Ar,Tr,xi,Ie,U0,xn,ma,B0,jc,va,H0,zc,q0,Z0,G0,ya,Wc,K0;class Xa{constructor(t,r,i={}){gt(this,Ie);ye(this,"type");gt(this,st);gt(this,dt);gt(this,Vr,!1);gt(this,we,[]);gt(this,Ge);gt(this,vn);gt(this,Wn);gt(this,yn,!1);gt(this,Ar);gt(this,Tr);gt(this,xi,!1);ye(this,"id",++b2);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,Ar,Y(this,st)===this?i:Y(Y(this,st),Ar)),je(this,Wn,Y(this,st)===this?[]:Y(Y(this,st),Wn)),t==="!"&&!Y(Y(this,st),yn)&&Y(this,Wn).push(this),je(this,vn,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,Tr)!==void 0?Y(this,Tr):this.type?je(this,Tr,this.type+"("+Y(this,we).map(t=>String(t)).join("|")+")"):je(this,Tr,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),yn)&&((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,vn)===0)return!0;const t=Y(this,Ge);for(let i=0;i<Y(this,vn);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,vn)===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,xn,ma).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,Ar).nocase&&!Y(this,Ar).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(Y(this,Ar).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return Y(this,Ar)}toRegExpSource(t){var f;const r=t??!!Y(this,Ar).dot;if(Y(this,st)===this&&(de(this,Ie,ya).call(this),de(this,Ie,U0).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,xn,K0).call(E,x,Y(this,dt),m):x.toRegExpSource(t);return je(this,dt,Y(this,dt)||h),je(this,Vr,Y(this,Vr)||S),d}).join("");let p="";if(this.isStart()&&typeof Y(this,we)[0]=="string"&&!(Y(this,we).length===1&&m2.has(Y(this,we)[0]))){const d=g2,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?h2:h?sa:""}let g="";return this.isEnd()&&Y(Y(this,st),yn)&&((f=Y(this,Ge))==null?void 0:f.type)==="!"&&(g="(?:$|\\/)"),[p+y+g,_o(y),je(this,dt,!!Y(this,dt)),Y(this,Vr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=de(this,Ie,Wc).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 u=!i||t||r||!sa?"":de(this,Ie,Wc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);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==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;c=s+a+m}return[c,_o(a),je(this,dt,!!Y(this,dt)),Y(this,Vr)]}}st=new WeakMap,dt=new WeakMap,Vr=new WeakMap,we=new WeakMap,Ge=new WeakMap,vn=new WeakMap,Wn=new WeakMap,yn=new WeakMap,Ar=new WeakMap,Tr=new WeakMap,xi=new WeakMap,Ie=new WeakSet,U0=function(){if(this!==Y(this,st))throw new Error("should only call on root");if(Y(this,yn))return this;this.toString(),je(this,yn,!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,vn)+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},xn=new WeakSet,ma=function(t,r,i,s,a){var d,w,h,S;const u=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&&Nc(O)&&t.charAt(E)==="("&&a<=u){r.push(R),R="";const U=new Lt(O,r);E=de(d=Lt,xn,ma).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&&Nc(E)&&t.charAt(p)==="("&&(a<=u||r&&de(w=r,Ie,va).call(w,E))){const O=r&&de(h=r,Ie,va).call(h,E)?0:1;g.push(x),x="";const C=new Lt(E,g);g.push(C),p=de(S=Lt,xn,ma).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},B0=function(t){return de(this,Ie,jc).call(this,t,d2)},jc=function(t,r=f2){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,va).call(this,i.type,r)},va=function(t,r=p2){var i;return!!((i=r.get(this.type))!=null&&i.includes(t))},H0=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,zc).call(this,t,r)},zc=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,Tr,void 0)},q0=function(t){const r=Km.get(this.type);return!!(r!=null&&r.has(t))},Z0=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,q0).call(this,r.type)},G0=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,Tr,void 0),je(this,xi,!1)},ya=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 u=Y(this,we)[a];typeof u=="object"&&(de(r=u,Ie,ya).call(r),de(this,Ie,jc).call(this,u)?(s=!1,de(this,Ie,zc).call(this,u,a)):de(this,Ie,B0).call(this,u)?(s=!1,de(this,Ie,H0).call(this,u,a)):de(this,Ie,Z0).call(this,u)&&(s=!1,de(this,Ie,G0).call(this,u)))}}while(!s&&++i<10)}else for(const i of Y(this,we))typeof i=="object"&&de(t=i,Ie,ya).call(t);je(this,Tr,void 0)},Wc=function(t){return Y(this,we).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return je(this,Vr,Y(this,Vr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},K0=function(t,r,i=!1){let s=!1,a="",u=!1,c=!1;for(let f=0;f<t.length;f++){const m=t.charAt(f);if(s){s=!1,a+=(v2.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]=l2(t,f);if(g){a+=y,u=u||p,f+=g-1,r=r||v;continue}}if(m==="?"){a+=jf,r=!0;continue}a+=y2(m)}return[a,_o(t),!!r,u]},gt(Xa,xn);Lt=Xa;const w2=(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={})=>(Ia(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ya(t,r).match(e)),x2=/^\*+([^+@!?*[(]*)$/,S2=e=>t=>!t.startsWith(".")&&t.endsWith(e),E2=e=>t=>t.endsWith(e),_2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),O2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),A2=/^\*+\.\*+$/,T2=e=>!e.startsWith(".")&&e.includes("."),R2=e=>e!=="."&&e!==".."&&e.includes("."),P2=/^\.\*+$/,C2=e=>e!=="."&&e!==".."&&e.startsWith("."),k2=/^\*+$/,$2=e=>e.length!==0&&!e.startsWith("."),I2=e=>e.length!==0&&e!=="."&&e!=="..",L2=/^\?+([^+@!?*[(]*)?$/,M2=([e,t=""])=>{const r=V0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},F2=([e,t=""])=>{const r=X0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},D2=([e,t=""])=>{const r=X0([e]);return t?i=>r(i)&&i.endsWith(t):r},N2=([e,t=""])=>{const r=V0([e]);return t?i=>r(i)&&i.endsWith(t):r},V0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},X0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Y0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ym={win32:{sep:"\\"},posix:{sep:"/"}},j2=Y0==="win32"?Ym.win32.sep:Ym.posix.sep;_t.sep=j2;const St=Symbol("globstar **");_t.GLOBSTAR=St;const z2="[^/]",W2=z2+"*?",U2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",B2="(?:(?!(?:\\/|^)\\.).)*?",H2=(e,t={})=>r=>_t(r,e,t);_t.filter=H2;const nr=(e,t={})=>Object.assign({},e,t),q2=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,u={}){super(s,a,nr(e,u))}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=q2;const J0=(e,t={})=>(Ia(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:t2(e,{max:t.braceExpandMax}));_t.braceExpand=J0;const Z2=(e,t={})=>new Ya(e,t).makeRe();_t.makeRe=Z2;const G2=(e,t,r={})=>{const i=new Ya(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};_t.match=G2;const Jm=/[?*]|[+@!]\(.*?\)|\[|\]/,K2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Zt,Q0,Uc,mi;class Ya{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");Ia(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||Y0,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,u,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 u=this.set[a];u[0]===""&&u[1]===""&&this.globParts[a][2]==="?"&&typeof u[3]=="string"&&/^[a-z]:$/i.test(u[3])&&(u[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 u=s;for(;i[u+1]==="**";)u++;u>s&&i.splice(s+1,u-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 u=1;u<i.length-1;u++){const c=i[u];u===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(u,1),u--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const u=i[a-1];if(u&&u!=="."&&u!==".."&&u!=="**"){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,u=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])u.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])u.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])u.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",u.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",u.push(r[a]),s++,a++}else return!1;return t.length===r.length&&u}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:u=1}=this.options;return u>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(St)?de(this,Zt,Q0).call(this,t,r,i,s,a):de(this,Zt,mi).call(this,t,r,i,s,a)}braceExpand(){return J0(this.pattern,this.options)}parse(t){Ia(t);const r=this.options;if(t==="**")return St;if(t==="")return"";let i,s=null;(i=t.match(k2))?s=r.dot?I2:$2:(i=t.match(x2))?s=(r.nocase?r.dot?O2:_2:r.dot?E2:S2)(i[1]):(i=t.match(L2))?s=(r.nocase?r.dot?F2:M2:r.dot?D2:N2)(i):(i=t.match(A2))?s=r.dot?R2:T2:(i=t.match(P2))&&(s=C2);const a=Xa.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?W2:r.dot?U2:B2,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"?K2(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[u,c]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+c+"$",this.partial&&(a="^(?:\\/|"+u+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 u=s[s.length-1];if(!u)for(let c=s.length-2;!u&&c>=0;c--)u=s[c];for(const c of a){let f=s;if(i.matchBase&&c.length===1&&(f=[u]),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,Q0=function(t,r,i,s,a){const u=r.indexOf(St,a),c=r.lastIndexOf(St),[f,m,y]=i?[r.slice(a,u),r.slice(u+1),[]]:[r.slice(a,u),r.slice(u+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,Uc).call(this,t,g,s,0,i,0,!!p)},Uc=function(t,r,i,s,a,u,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)&&u<this.maxGlobstarRecursion){const v=de(this,Zt,Uc).call(this,t,r,i+m.length,s+1,a,u+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 u,c,f,m;for(u=s,c=a,m=t.length,f=r.length;u<m&&c<f;u++,c++){this.debug("matchOne loop");let y=r[c],p=t[u];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(u===m&&c===f)return!0;if(u===m)return i;if(c===f)return u===m-1&&t[u]==="";throw new Error("wtf?")};_t.AST=Xa;_t.Minimatch=Ya;_t.escape=w2;_t.unescape=_o;const jo="/$shared",V2={"**/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 eb(e){const t=Object.entries(V2).find(([r])=>_t(e,r));return t==null?void 0:t[1]}function Ja(e){var i;const t=(i=eb(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${jo}/`,"Shared/");zf({name:r,content:t,asText:typeof t=="string"})}async function X2(){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){tb(r)&&Ja(`${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=eb(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 zL.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(tb(i)&&t){const s=Y2(i,e);l0.next({message:s,kind:"warning"}),Ja(r)}throw i})}function tb(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function Y2(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function J2(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Q2(e){return Ne(Go,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const rb=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Lf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function eM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:On.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const u=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:u:s.webServerHTTPPort?u: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),rb()}}async function nb(e){return await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function tM(...e){return(await Promise.all(e.map(i=>nb({root:i,verb:On.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function rM(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,u])=>{const c=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const m=Jc.generate();s.set(a,m),a=m}return[a,u,c]}).reduce((a,[u,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,[u]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function nM(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)?Va(t.content):t.content}))}function iM(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 oM(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 sM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function aM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function uM(e){return(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function lM(...e){return await Ne(at,{method:"POST",body:JSON.stringify({verb:On.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function cM(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 fM(){return await Ne("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function dM(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 pM({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 hM(e={}){try{return{...await Ko({path:"shared_datasources.json",...e}),...$a}}catch{return{...$a}}}async function gM(e={}){try{return await Ko({path:"shared_app_events.json",...e})}catch{return[]}}async function mM(e={}){try{return await Ko({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function vM(e={}){try{return await Ko({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function yM(){try{return await Ne("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function bM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const wM=Ff(),xM=async e=>{const t={verb:On.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ye.omit(e,Ye.keys($a))};return wM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},SM=Ff(),EM=async e=>{const t={verb:On.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return SM(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},zf=async e=>{const t=await Ne(at,{method:"POST",body:JSON.stringify({...e,verb:On.SET_FILE_CONTENT,root:If.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Mf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},_M=async e=>await zf({name:"crafted_components.json",path:wn.WEBFORMS,content:e});function OM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function TM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function RM(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)?Va(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&&Ja(e.path),t})}function PM(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function CM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function kM(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 $M(e){const t=CM(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=kM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function IM(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=Va(s.content);const{params:a,result:u}=$M(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var ib=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(ib||{});function LM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function MM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var ob=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(ob||{}),sb=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(sb||{}),ab=(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))(ab||{}),ub=(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))(ub||{});const FM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},DM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=w$;exports.BaseCheckboxIcon=Zy;exports.Checkbox=q$;exports.ControlledSwitch=Oy;exports.DATASOURCE_THEMES=FM;exports.DatasourcesActions=u0;exports.DebuggerActions=d0;exports.DefaultCheckboxIcon=Gy;exports.DesignerRequestVerb=On;exports.Dialog=eT;exports.DialogBody=hv;exports.EActivity=ib;exports.EDITOR=DM;exports.EIDENTIFIERS=ab;exports.ERROR_CODES=ub;exports.EWebFormStyleClassScope=ob;exports.EXT_API_PREFIX=Go;exports.FileFolderType=Xe;exports.FloatingTooltip=W$;exports.FolderRootPath=wn;exports.FolderRootType=If;exports.HTTPError=Fc;exports.HTTP_HANDLERS_TAB_PATH=m0;exports.IPreemptive=No;exports.IPublished=C0;exports.IPublishedRestScope=Df;exports.IdentityProvider=fI;exports.Incase=fa;exports.IndentLines=Rv;exports.InvalidJsonError=Z$;exports.LOCALIZATION_TAB_PATH=v0;exports.LOCATION_DATASOURCE_ID=T0;exports.LogoSVG=jy;exports.LspActions=f0;exports.MAX_FILE_NAME_LENGTH=kf;exports.MODEL_TAB_PATH=QI;exports.Modal=_$;exports.ModalCloseReason=vi;exports.ModalColor=Bn;exports.ModalIcons=Rc;exports.ModalType=Sf;exports.Mutex=y0;exports.NameError=$f;exports.Overlay=pv;exports.PANEL_COLLAPSED_HEIGHT=Or;exports.PANEL_INITIAL_OPEN_RATIO=By;exports.PANEL_MAX_RATIO=Hy;exports.Panel=H$;exports.Portal=tv;exports.PublishOptions=RL;exports.QODLY_NAMESPACE=So;exports.ROLES_TAB_PATH=h0;exports.RemoteDebuggerMode=Lf;exports.SETTINGS_TAB_PATH=g0;exports.SHARED_API_PREFIX=jo;exports.SHARED_USER_NAMESPACE=$a;exports.SourceCodeDescriptor=sb;exports.Switcher=Pv;exports.TITLE_DATASOURCE_ID=P0;exports.TabEventsActions=c0;exports.Tip=py;exports.TipsProvider=TC;exports.Toast=aR;exports.Tooltip=y$;exports.Tree=OR;exports.TreeIcon=_v;exports.TreeNode=Qc;exports.USER_LANGUAGE_DATASOURCE_ID=R0;exports.WebformActions=a0;exports.WebformEventsActions=Do;exports.ZoomComponent=T$;exports.ZoomLevel=Wy;exports._isArrayDatasource=SL;exports._isObjectDatasource=EL;exports.addAttributesToContent=CL;exports.addFolder=sM;exports.by=b0;exports.byId=sL;exports.byPath=aL;exports.callServerSideParser=FL;exports.checkUpdates=J2;exports.createFolder=OM;exports.datasourcesSubject=BI;exports.debuggerSubject=GI;exports.dropFile=oM;exports.dropFolder=uM;exports.exists=uL;exports.extractWebformName=rL;exports.filterBySeriousError=M0;exports.formatErrorsAsBulletToast=LL;exports.generateUUID=kL;exports.getAppSettings=eM;exports.getCatalog=fM;exports.getDatasourceId=lL;exports.getDefaultAppSettings=rb;exports.getDisplayableFeedbackErrors=IL;exports.getErrorListFromPayload=L0;exports.getFile=nM;exports.getFileContent=pM;exports.getFileExtentionFromType=tL;exports.getFilenameAndTypeFromPath=eL;exports.getFilenameFromType=nL;exports.getFilesInfo=lM;exports.getFolder=nb;exports.getFolders=tM;exports.getFunctionContent=IM;exports.getMonacoTheme=bM;exports.getNodeInfo=RM;exports.getSavedConditions=vM;exports.getSharedAppEvents=gM;exports.getSharedCSS=mM;exports.getSharedDatasources=hM;exports.getSharedResource=Ko;exports.getSupportedLanguages=dM;exports.getTypeFromExtension=Mf;exports.getUserPrivileges=yM;exports.getWebForm=rM;exports.hasAttributesString=$0;exports.http=Ne;exports.i18nSubject=VI;exports.initializeDefaultProjectFiles=X2;exports.installUpdates=Q2;exports.isArrayDatasource=_0;exports.isDataClassMethod=hL;exports.isDataStoreMethod=pL;exports.isDateDatasource=_L;exports.isEntity=wL;exports.isEntityDatasource=vL;exports.isEntityMethod=gL;exports.isEntitySelection=xL;exports.isEntitySelectionDatasource=yL;exports.isEntitySelectionMethod=mL;exports.isObjectAttribute=fL;exports.isObjectDatasource=O0;exports.isRelatedAttribute=dL;exports.isRelatedEntitiesAttribute=S0;exports.isRelatedEntityAttribute=E0;exports.isSameNamespace=OL;exports.isScalarDatasource=A0;exports.isSimpleAttribute=x0;exports.isSimpleDatasource=bL;exports.loadDS=AL;exports.loadI18n=TL;exports.localeCompare=w0;exports.log=LM;exports.login=cM;exports.lspSubject=ZI;exports.moveItem=TM;exports.outBy=iL;exports.outById=oL;exports.parseAttributes=PL;exports.queue=Ff;exports.removeAttributesString=I0;exports.removeItem=AM;exports.renameFile=iM;exports.renameFolder=aM;exports.sanitizeContent=Va;exports.sanitizeNameCY=$L;exports.saveContent=PM;exports.setCraftedComponents=_M;exports.setFileContent=zf;exports.setSharedAppEvents=EM;exports.setSharedSources=xM;exports.splitDatasourceID=cL;exports.stringifyAttributes=k0;exports.tabEventsSubject=qI;exports.tasksManagerSubject=KI;exports.toastSubject=l0;exports.trackEvent=MM;exports.transformDates=ML;exports.tryCreateSharedResource=Ja;exports.useDidMountEffect=G$;exports.useDoubleClick=gI;exports.useEnhancedState=CI;exports.useFeatureFlags=cI;exports.useForwardedRef=lI;exports.useHotkeys=oI;exports.useIdentity=dI;exports.useOutsideClick=sI;exports.usePrevious=aI;exports.useStateObject=pI;exports.useStateRef=uI;exports.useTip=dy;exports.validateName=p0;exports.validateServerSide=XI;exports.validateValue=YI;exports.webformEventsSubject=ka;exports.webformSubject=HI;
|
|
257
206
|
//# sourceMappingURL=index.cjs.js.map
|