@ws-ui/shared 1.6.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,98 +1,157 @@
1
- "use strict";var n_=Object.defineProperty;var kd=e=>{throw TypeError(e)};var r_=(e,n,r)=>n in e?n_(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Qe=(e,n,r)=>r_(e,typeof n!="symbol"?n+"":n,r),xu=(e,n,r)=>n.has(e)||kd("Cannot "+r);var ne=(e,n,r)=>(xu(e,n,"read from private field"),r?r.call(e):n.get(e)),Ot=(e,n,r)=>n.has(e)?kd("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,r),Ze=(e,n,r,o)=>(xu(e,n,"write to private field"),o?o.call(e,r):n.set(e,r),r),Gn=(e,n,r)=>(xu(e,n,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),B=require("react"),ao=require("react-dom"),tt=require("@ws-ui/icons"),fl=require("@emotion/react");function ev(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const N=ev(B),i_=ev(ao),tv=({children:e})=>ao.createPortal(e,document.querySelector("body"));var jd=function(n){return n.reduce(function(r,o){var a=o[0],u=o[1];return r[a]=u,r},{})},Wd=typeof window<"u"&&window.document&&window.document.createElement?N.useLayoutEffect:N.useEffect,At="top",Vt="bottom",Yt="right",Tt="left",Pl="auto",so=[At,Vt,Yt,Tt],Jr="start",Ji="end",o_="clippingParents",nv="viewport",Si="popper",a_="reference",Ud=so.reduce(function(e,n){return e.concat([n+"-"+Jr,n+"-"+Ji])},[]),rv=[].concat(so,[Pl]).reduce(function(e,n){return e.concat([n,n+"-"+Jr,n+"-"+Ji])},[]),s_="beforeRead",u_="read",l_="afterRead",f_="beforeMain",c_="main",d_="afterMain",p_="beforeWrite",h_="write",v_="afterWrite",m_=[s_,u_,l_,f_,c_,d_,p_,h_,v_];function mn(e){return e?(e.nodeName||"").toLowerCase():null}function $t(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function xr(e){var n=$t(e).Element;return e instanceof n||e instanceof Element}function Kt(e){var n=$t(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function Cl(e){if(typeof ShadowRoot>"u")return!1;var n=$t(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}function g_(e){var n=e.state;Object.keys(n.elements).forEach(function(r){var o=n.styles[r]||{},a=n.attributes[r]||{},u=n.elements[r];!Kt(u)||!mn(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(l){var d=a[l];d===!1?u.removeAttribute(l):u.setAttribute(l,d===!0?"":d)}))})}function y_(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(o){var a=n.elements[o],u=n.attributes[o]||{},l=Object.keys(n.styles.hasOwnProperty(o)?n.styles[o]:r[o]),d=l.reduce(function(m,E){return m[E]="",m},{});!Kt(a)||!mn(a)||(Object.assign(a.style,d),Object.keys(u).forEach(function(m){a.removeAttribute(m)}))})}}const w_={name:"applyStyles",enabled:!0,phase:"write",fn:g_,effect:y_,requires:["computeStyles"]};function vn(e){return e.split("-")[0]}var Sr=Math.max,La=Math.min,Qr=Math.round;function cl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function iv(){return!/^((?!chrome|android).)*safari/i.test(cl())}function ei(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),a=1,u=1;n&&Kt(e)&&(a=e.offsetWidth>0&&Qr(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Qr(o.height)/e.offsetHeight||1);var l=xr(e)?$t(e):window,d=l.visualViewport,m=!iv()&&r,E=(o.left+(m&&d?d.offsetLeft:0))/a,g=(o.top+(m&&d?d.offsetTop:0))/u,p=o.width/a,v=o.height/u;return{width:p,height:v,top:g,right:E+p,bottom:g+v,left:E,x:E,y:g}}function Rl(e){var n=ei(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(n.width-r)<=1&&(r=n.width),Math.abs(n.height-o)<=1&&(o=n.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ov(e,n){var r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&Cl(r)){var o=n;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Fn(e){return $t(e).getComputedStyle(e)}function b_(e){return["table","td","th"].indexOf(mn(e))>=0}function nr(e){return((xr(e)?e.ownerDocument:e.document)||window.document).documentElement}function za(e){return mn(e)==="html"?e:e.assignedSlot||e.parentNode||(Cl(e)?e.host:null)||nr(e)}function Bd(e){return!Kt(e)||Fn(e).position==="fixed"?null:e.offsetParent}function S_(e){var n=/firefox/i.test(cl()),r=/Trident/i.test(cl());if(r&&Kt(e)){var o=Fn(e);if(o.position==="fixed")return null}var a=za(e);for(Cl(a)&&(a=a.host);Kt(a)&&["html","body"].indexOf(mn(a))<0;){var u=Fn(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||n&&u.willChange==="filter"||n&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function uo(e){for(var n=$t(e),r=Bd(e);r&&b_(r)&&Fn(r).position==="static";)r=Bd(r);return r&&(mn(r)==="html"||mn(r)==="body"&&Fn(r).position==="static")?n:r||S_(e)||n}function Il(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ki(e,n,r){return Sr(e,La(n,r))}function E_(e,n,r){var o=Ki(e,n,r);return o>r?r:o}function av(){return{top:0,right:0,bottom:0,left:0}}function sv(e){return Object.assign({},av(),e)}function uv(e,n){return n.reduce(function(r,o){return r[o]=e,r},{})}var __=function(n,r){return n=typeof n=="function"?n(Object.assign({},r.rects,{placement:r.placement})):n,sv(typeof n!="number"?n:uv(n,so))};function x_(e){var n,r=e.state,o=e.name,a=e.options,u=r.elements.arrow,l=r.modifiersData.popperOffsets,d=vn(r.placement),m=Il(d),E=[Tt,Yt].indexOf(d)>=0,g=E?"height":"width";if(!(!u||!l)){var p=__(a.padding,r),v=Rl(u),y=m==="y"?At:Tt,b=m==="y"?Vt:Yt,f=r.rects.reference[g]+r.rects.reference[m]-l[m]-r.rects.popper[g],w=l[m]-r.rects.reference[m],c=uo(u),S=c?m==="y"?c.clientHeight||0:c.clientWidth||0:0,_=f/2-w/2,P=p[y],A=S-v[g]-p[b],I=S/2-v[g]/2+_,z=Ki(P,I,A),L=m;r.modifiersData[o]=(n={},n[L]=z,n.centerOffset=z-I,n)}}function O_(e){var n=e.state,r=e.options,o=r.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=n.elements.popper.querySelector(a),!a)||ov(n.elements.popper,a)&&(n.elements.arrow=a))}const A_={name:"arrow",enabled:!0,phase:"main",fn:x_,effect:O_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(e){return e.split("-")[1]}var T_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function P_(e,n){var r=e.x,o=e.y,a=n.devicePixelRatio||1;return{x:Qr(r*a)/a||0,y:Qr(o*a)/a||0}}function zd(e){var n,r=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,d=e.position,m=e.gpuAcceleration,E=e.adaptive,g=e.roundOffsets,p=e.isFixed,v=l.x,y=v===void 0?0:v,b=l.y,f=b===void 0?0:b,w=typeof g=="function"?g({x:y,y:f}):{x:y,y:f};y=w.x,f=w.y;var c=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),_=Tt,P=At,A=window;if(E){var I=uo(r),z="clientHeight",L="clientWidth";if(I===$t(r)&&(I=nr(r),Fn(I).position!=="static"&&d==="absolute"&&(z="scrollHeight",L="scrollWidth")),I=I,a===At||(a===Tt||a===Yt)&&u===Ji){P=Vt;var D=p&&I===A&&A.visualViewport?A.visualViewport.height:I[z];f-=D-o.height,f*=m?1:-1}if(a===Tt||(a===At||a===Vt)&&u===Ji){_=Yt;var G=p&&I===A&&A.visualViewport?A.visualViewport.width:I[L];y-=G-o.width,y*=m?1:-1}}var k=Object.assign({position:d},E&&T_),F=g===!0?P_({x:y,y:f},$t(r)):{x:y,y:f};if(y=F.x,f=F.y,m){var U;return Object.assign({},k,(U={},U[P]=S?"0":"",U[_]=c?"0":"",U.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",U))}return Object.assign({},k,(n={},n[P]=S?f+"px":"",n[_]=c?y+"px":"",n.transform="",n))}function C_(e){var n=e.state,r=e.options,o=r.gpuAcceleration,a=o===void 0?!0:o,u=r.adaptive,l=u===void 0?!0:u,d=r.roundOffsets,m=d===void 0?!0:d,E={placement:vn(n.placement),variation:ti(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,zd(Object.assign({},E,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:l,roundOffsets:m})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,zd(Object.assign({},E,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const R_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C_,data:{}};var aa={passive:!0};function I_(e){var n=e.state,r=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,l=o.resize,d=l===void 0?!0:l,m=$t(n.elements.popper),E=[].concat(n.scrollParents.reference,n.scrollParents.popper);return u&&E.forEach(function(g){g.addEventListener("scroll",r.update,aa)}),d&&m.addEventListener("resize",r.update,aa),function(){u&&E.forEach(function(g){g.removeEventListener("scroll",r.update,aa)}),d&&m.removeEventListener("resize",r.update,aa)}}const M_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I_,data:{}};var F_={left:"right",right:"left",bottom:"top",top:"bottom"};function Aa(e){return e.replace(/left|right|bottom|top/g,function(n){return F_[n]})}var L_={start:"end",end:"start"};function Hd(e){return e.replace(/start|end/g,function(n){return L_[n]})}function Ml(e){var n=$t(e),r=n.pageXOffset,o=n.pageYOffset;return{scrollLeft:r,scrollTop:o}}function Fl(e){return ei(nr(e)).left+Ml(e).scrollLeft}function D_(e,n){var r=$t(e),o=nr(e),a=r.visualViewport,u=o.clientWidth,l=o.clientHeight,d=0,m=0;if(a){u=a.width,l=a.height;var E=iv();(E||!E&&n==="fixed")&&(d=a.offsetLeft,m=a.offsetTop)}return{width:u,height:l,x:d+Fl(e),y:m}}function $_(e){var n,r=nr(e),o=Ml(e),a=(n=e.ownerDocument)==null?void 0:n.body,u=Sr(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Sr(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-o.scrollLeft+Fl(e),m=-o.scrollTop;return Fn(a||r).direction==="rtl"&&(d+=Sr(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:d,y:m}}function Ll(e){var n=Fn(e),r=n.overflow,o=n.overflowX,a=n.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+o)}function lv(e){return["html","body","#document"].indexOf(mn(e))>=0?e.ownerDocument.body:Kt(e)&&Ll(e)?e:lv(za(e))}function Vi(e,n){var r;n===void 0&&(n=[]);var o=lv(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),u=$t(o),l=a?[u].concat(u.visualViewport||[],Ll(o)?o:[]):o,d=n.concat(l);return a?d:d.concat(Vi(za(l)))}function dl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function N_(e,n){var r=ei(e,!1,n==="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 qd(e,n,r){return n===nv?dl(D_(e,r)):xr(n)?N_(n,r):dl($_(nr(e)))}function k_(e){var n=Vi(za(e)),r=["absolute","fixed"].indexOf(Fn(e).position)>=0,o=r&&Kt(e)?uo(e):e;return xr(o)?n.filter(function(a){return xr(a)&&ov(a,o)&&mn(a)!=="body"}):[]}function j_(e,n,r,o){var a=n==="clippingParents"?k_(e):[].concat(n),u=[].concat(a,[r]),l=u[0],d=u.reduce(function(m,E){var g=qd(e,E,o);return m.top=Sr(g.top,m.top),m.right=La(g.right,m.right),m.bottom=La(g.bottom,m.bottom),m.left=Sr(g.left,m.left),m},qd(e,l,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function fv(e){var n=e.reference,r=e.element,o=e.placement,a=o?vn(o):null,u=o?ti(o):null,l=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,m;switch(a){case At:m={x:l,y:n.y-r.height};break;case Vt:m={x:l,y:n.y+n.height};break;case Yt:m={x:n.x+n.width,y:d};break;case Tt:m={x:n.x-r.width,y:d};break;default:m={x:n.x,y:n.y}}var E=a?Il(a):null;if(E!=null){var g=E==="y"?"height":"width";switch(u){case Jr:m[E]=m[E]-(n[g]/2-r[g]/2);break;case Ji:m[E]=m[E]+(n[g]/2-r[g]/2);break}}return m}function Qi(e,n){n===void 0&&(n={});var r=n,o=r.placement,a=o===void 0?e.placement:o,u=r.strategy,l=u===void 0?e.strategy:u,d=r.boundary,m=d===void 0?o_:d,E=r.rootBoundary,g=E===void 0?nv:E,p=r.elementContext,v=p===void 0?Si:p,y=r.altBoundary,b=y===void 0?!1:y,f=r.padding,w=f===void 0?0:f,c=sv(typeof w!="number"?w:uv(w,so)),S=v===Si?a_:Si,_=e.rects.popper,P=e.elements[b?S:v],A=j_(xr(P)?P:P.contextElement||nr(e.elements.popper),m,g,l),I=ei(e.elements.reference),z=fv({reference:I,element:_,placement:a}),L=dl(Object.assign({},_,z)),D=v===Si?L:I,G={top:A.top-D.top+c.top,bottom:D.bottom-A.bottom+c.bottom,left:A.left-D.left+c.left,right:D.right-A.right+c.right},k=e.modifiersData.offset;if(v===Si&&k){var F=k[a];Object.keys(G).forEach(function(U){var q=[Yt,Vt].indexOf(U)>=0?1:-1,R=[At,Vt].indexOf(U)>=0?"y":"x";G[U]+=F[R]*q})}return G}function W_(e,n){n===void 0&&(n={});var r=n,o=r.placement,a=r.boundary,u=r.rootBoundary,l=r.padding,d=r.flipVariations,m=r.allowedAutoPlacements,E=m===void 0?rv:m,g=ti(o),p=g?d?Ud:Ud.filter(function(b){return ti(b)===g}):so,v=p.filter(function(b){return E.indexOf(b)>=0});v.length===0&&(v=p);var y=v.reduce(function(b,f){return b[f]=Qi(e,{placement:f,boundary:a,rootBoundary:u,padding:l})[vn(f)],b},{});return Object.keys(y).sort(function(b,f){return y[b]-y[f]})}function U_(e){if(vn(e)===Pl)return[];var n=Aa(e);return[Hd(e),n,Hd(n)]}function B_(e){var n=e.state,r=e.options,o=e.name;if(!n.modifiersData[o]._skip){for(var a=r.mainAxis,u=a===void 0?!0:a,l=r.altAxis,d=l===void 0?!0:l,m=r.fallbackPlacements,E=r.padding,g=r.boundary,p=r.rootBoundary,v=r.altBoundary,y=r.flipVariations,b=y===void 0?!0:y,f=r.allowedAutoPlacements,w=n.options.placement,c=vn(w),S=c===w,_=m||(S||!b?[Aa(w)]:U_(w)),P=[w].concat(_).reduce(function(re,fe){return re.concat(vn(fe)===Pl?W_(n,{placement:fe,boundary:g,rootBoundary:p,padding:E,flipVariations:b,allowedAutoPlacements:f}):fe)},[]),A=n.rects.reference,I=n.rects.popper,z=new Map,L=!0,D=P[0],G=0;G<P.length;G++){var k=P[G],F=vn(k),U=ti(k)===Jr,q=[At,Vt].indexOf(F)>=0,R=q?"width":"height",J=Qi(n,{placement:k,boundary:g,rootBoundary:p,altBoundary:v,padding:E}),Y=q?U?Yt:Tt:U?Vt:At;A[R]>I[R]&&(Y=Aa(Y));var te=Aa(Y),de=[];if(u&&de.push(J[F]<=0),d&&de.push(J[Y]<=0,J[te]<=0),de.every(function(re){return re})){D=k,L=!1;break}z.set(k,de)}if(L)for(var Z=b?3:1,Q=function(fe){var ce=P.find(function(ge){var me=z.get(ge);if(me)return me.slice(0,fe).every(function(Ee){return Ee})});if(ce)return D=ce,"break"},ae=Z;ae>0;ae--){var ue=Q(ae);if(ue==="break")break}n.placement!==D&&(n.modifiersData[o]._skip=!0,n.placement=D,n.reset=!0)}}const z_={name:"flip",enabled:!0,phase:"main",fn:B_,requiresIfExists:["offset"],data:{_skip:!1}};function Zd(e,n,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-n.height-r.y,right:e.right-n.width+r.x,bottom:e.bottom-n.height+r.y,left:e.left-n.width-r.x}}function Gd(e){return[At,Yt,Vt,Tt].some(function(n){return e[n]>=0})}function H_(e){var n=e.state,r=e.name,o=n.rects.reference,a=n.rects.popper,u=n.modifiersData.preventOverflow,l=Qi(n,{elementContext:"reference"}),d=Qi(n,{altBoundary:!0}),m=Zd(l,o),E=Zd(d,a,u),g=Gd(m),p=Gd(E);n.modifiersData[r]={referenceClippingOffsets:m,popperEscapeOffsets:E,isReferenceHidden:g,hasPopperEscaped:p},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":p})}const q_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H_};function Z_(e,n,r){var o=vn(e),a=[Tt,At].indexOf(o)>=0?-1:1,u=typeof r=="function"?r(Object.assign({},n,{placement:e})):r,l=u[0],d=u[1];return l=l||0,d=(d||0)*a,[Tt,Yt].indexOf(o)>=0?{x:d,y:l}:{x:l,y:d}}function G_(e){var n=e.state,r=e.options,o=e.name,a=r.offset,u=a===void 0?[0,0]:a,l=rv.reduce(function(g,p){return g[p]=Z_(p,n.rects,u),g},{}),d=l[n.placement],m=d.x,E=d.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=m,n.modifiersData.popperOffsets.y+=E),n.modifiersData[o]=l}const K_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G_};function V_(e){var n=e.state,r=e.name;n.modifiersData[r]=fv({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}const Y_={name:"popperOffsets",enabled:!0,phase:"read",fn:V_,data:{}};function X_(e){return e==="x"?"y":"x"}function J_(e){var n=e.state,r=e.options,o=e.name,a=r.mainAxis,u=a===void 0?!0:a,l=r.altAxis,d=l===void 0?!1:l,m=r.boundary,E=r.rootBoundary,g=r.altBoundary,p=r.padding,v=r.tether,y=v===void 0?!0:v,b=r.tetherOffset,f=b===void 0?0:b,w=Qi(n,{boundary:m,rootBoundary:E,padding:p,altBoundary:g}),c=vn(n.placement),S=ti(n.placement),_=!S,P=Il(c),A=X_(P),I=n.modifiersData.popperOffsets,z=n.rects.reference,L=n.rects.popper,D=typeof f=="function"?f(Object.assign({},n.rects,{placement:n.placement})):f,G=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),k=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,F={x:0,y:0};if(I){if(u){var U,q=P==="y"?At:Tt,R=P==="y"?Vt:Yt,J=P==="y"?"height":"width",Y=I[P],te=Y+w[q],de=Y-w[R],Z=y?-L[J]/2:0,Q=S===Jr?z[J]:L[J],ae=S===Jr?-L[J]:-z[J],ue=n.elements.arrow,re=y&&ue?Rl(ue):{width:0,height:0},fe=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:av(),ce=fe[q],ge=fe[R],me=Ki(0,z[J],re[J]),Ee=_?z[J]/2-Z-me-ce-G.mainAxis:Q-me-ce-G.mainAxis,Oe=_?-z[J]/2+Z+me+ge+G.mainAxis:ae+me+ge+G.mainAxis,We=n.elements.arrow&&uo(n.elements.arrow),ie=We?P==="y"?We.clientTop||0:We.clientLeft||0:0,ct=(U=k==null?void 0:k[P])!=null?U:0,nt=Y+Ee-ct-ie,on=Y+Oe-ct,vo=Ki(y?La(te,nt):te,Y,y?Sr(de,on):de);I[P]=vo,F[P]=vo-Y}if(d){var Nt,mo=P==="x"?At:Tt,ns=P==="x"?Vt:Yt,Pt=I[A],dt=A==="y"?"height":"width",Dn=Pt+w[mo],ir=Pt-w[ns],oi=[At,Tt].indexOf(c)!==-1,$n=(Nt=k==null?void 0:k[A])!=null?Nt:0,go=oi?Dn:Pt-z[dt]-L[dt]-$n+G.altAxis,Nn=oi?Pt+z[dt]+L[dt]-$n-G.altAxis:ir,yn=y&&oi?E_(go,Pt,Nn):Ki(y?go:Dn,Pt,y?Nn:ir);I[A]=yn,F[A]=yn-Pt}n.modifiersData[o]=F}}const Q_={name:"preventOverflow",enabled:!0,phase:"main",fn:J_,requiresIfExists:["offset"]};function ex(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function tx(e){return e===$t(e)||!Kt(e)?Ml(e):ex(e)}function nx(e){var n=e.getBoundingClientRect(),r=Qr(n.width)/e.offsetWidth||1,o=Qr(n.height)/e.offsetHeight||1;return r!==1||o!==1}function rx(e,n,r){r===void 0&&(r=!1);var o=Kt(n),a=Kt(n)&&nx(n),u=nr(n),l=ei(e,a,r),d={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(o||!o&&!r)&&((mn(n)!=="body"||Ll(u))&&(d=tx(n)),Kt(n)?(m=ei(n,!0),m.x+=n.clientLeft,m.y+=n.clientTop):u&&(m.x=Fl(u))),{x:l.left+d.scrollLeft-m.x,y:l.top+d.scrollTop-m.y,width:l.width,height:l.height}}function ix(e){var n=new Map,r=new Set,o=[];e.forEach(function(u){n.set(u.name,u)});function a(u){r.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(d){if(!r.has(d)){var m=n.get(d);m&&a(m)}}),o.push(u)}return e.forEach(function(u){r.has(u.name)||a(u)}),o}function ox(e){var n=ix(e);return m_.reduce(function(r,o){return r.concat(n.filter(function(a){return a.phase===o}))},[])}function ax(e){var n;return function(){return n||(n=new Promise(function(r){Promise.resolve().then(function(){n=void 0,r(e())})})),n}}function sx(e){var n=e.reduce(function(r,o){var a=r[o.name];return r[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,r},{});return Object.keys(n).map(function(r){return n[r]})}var Kd={placement:"bottom",modifiers:[],strategy:"absolute"};function Vd(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return!n.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ux(e){e===void 0&&(e={});var n=e,r=n.defaultModifiers,o=r===void 0?[]:r,a=n.defaultOptions,u=a===void 0?Kd:a;return function(d,m,E){E===void 0&&(E=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kd,u),modifiersData:{},elements:{reference:d,popper:m},attributes:{},styles:{}},p=[],v=!1,y={state:g,setOptions:function(c){var S=typeof c=="function"?c(g.options):c;f(),g.options=Object.assign({},u,g.options,S),g.scrollParents={reference:xr(d)?Vi(d):d.contextElement?Vi(d.contextElement):[],popper:Vi(m)};var _=ox(sx([].concat(o,g.options.modifiers)));return g.orderedModifiers=_.filter(function(P){return P.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var c=g.elements,S=c.reference,_=c.popper;if(Vd(S,_)){g.rects={reference:rx(S,uo(_),g.options.strategy==="fixed"),popper:Rl(_)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(G){return g.modifiersData[G.name]=Object.assign({},G.data)});for(var P=0;P<g.orderedModifiers.length;P++){if(g.reset===!0){g.reset=!1,P=-1;continue}var A=g.orderedModifiers[P],I=A.fn,z=A.options,L=z===void 0?{}:z,D=A.name;typeof I=="function"&&(g=I({state:g,options:L,name:D,instance:y})||g)}}}},update:ax(function(){return new Promise(function(w){y.forceUpdate(),w(g)})}),destroy:function(){f(),v=!0}};if(!Vd(d,m))return y;y.setOptions(E).then(function(w){!v&&E.onFirstUpdate&&E.onFirstUpdate(w)});function b(){g.orderedModifiers.forEach(function(w){var c=w.name,S=w.options,_=S===void 0?{}:S,P=w.effect;if(typeof P=="function"){var A=P({state:g,name:c,instance:y,options:_}),I=function(){};p.push(A||I)}})}function f(){p.forEach(function(w){return w()}),p=[]}return y}}var lx=[M_,Y_,R_,w_,K_,z_,Q_,A_,q_],fx=ux({defaultModifiers:lx}),sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ou,Yd;function cx(){if(Yd)return Ou;Yd=1;var e=typeof Element<"u",n=typeof Map=="function",r=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(u,l){if(u===l)return!0;if(u&&l&&typeof u=="object"&&typeof l=="object"){if(u.constructor!==l.constructor)return!1;var d,m,E;if(Array.isArray(u)){if(d=u.length,d!=l.length)return!1;for(m=d;m--!==0;)if(!a(u[m],l[m]))return!1;return!0}var g;if(n&&u instanceof Map&&l instanceof Map){if(u.size!==l.size)return!1;for(g=u.entries();!(m=g.next()).done;)if(!l.has(m.value[0]))return!1;for(g=u.entries();!(m=g.next()).done;)if(!a(m.value[1],l.get(m.value[0])))return!1;return!0}if(r&&u instanceof Set&&l instanceof Set){if(u.size!==l.size)return!1;for(g=u.entries();!(m=g.next()).done;)if(!l.has(m.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(l)){if(d=u.length,d!=l.length)return!1;for(m=d;m--!==0;)if(u[m]!==l[m])return!1;return!0}if(u.constructor===RegExp)return u.source===l.source&&u.flags===l.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof l.valueOf=="function")return u.valueOf()===l.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof l.toString=="function")return u.toString()===l.toString();if(E=Object.keys(u),d=E.length,d!==Object.keys(l).length)return!1;for(m=d;m--!==0;)if(!Object.prototype.hasOwnProperty.call(l,E[m]))return!1;if(e&&u instanceof Element)return!1;for(m=d;m--!==0;)if(!((E[m]==="_owner"||E[m]==="__v"||E[m]==="__o")&&u.$$typeof)&&!a(u[E[m]],l[E[m]]))return!1;return!0}return u!==u&&l!==l}return Ou=function(l,d){try{return a(l,d)}catch(m){if((m.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw m}},Ou}var dx=cx();const px=cv(dx);var hx=[],dv=function(n,r,o){o===void 0&&(o={});var a=N.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||hx},l=N.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],m=l[1],E=N.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var b=y.state,f=Object.keys(b.elements);i_.flushSync(function(){m({styles:jd(f.map(function(w){return[w,b.styles[w]||{}]})),attributes:jd(f.map(function(w){return[w,b.attributes[w]]}))})})},requires:["computeStyles"]}},[]),g=N.useMemo(function(){var v={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[E,{name:"applyStyles",enabled:!1}])};return px(a.current,v)?a.current||v:(a.current=v,v)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,E]),p=N.useRef();return Wd(function(){p.current&&p.current.setOptions(g)},[g]),Wd(function(){if(!(n==null||r==null)){var v=o.createPopper||fx,y=v(n,r,g);return p.current=y,function(){y.destroy(),p.current=null}}},[n,r,o.createPopper]),{state:p.current?p.current.state:null,styles:d.styles,attributes:d.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const pv=e=>W.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),hv=B.forwardRef(({children:e,style:n,attributes:r},o)=>W.jsx("div",{style:{...n,zIndex:2e3},...r,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),vx=({referenceElement:e,placement:n,isOpen:r,children:o,onClose:a})=>{const[u,l]=B.useState(null),{styles:d,attributes:m}=dv(e,u,{placement:n||"bottom-start"}),E=B.useCallback(()=>{a&&a()},[a]);return r?W.jsxs(tv,{children:[W.jsx(pv,{onClick:()=>E()}),W.jsx(hv,{ref:l,style:d.popper,attributes:m.popper,children:o})]}):null};var Au={exports:{}};/*!
1
+ "use strict";var s_=Object.defineProperty;var bp=e=>{throw TypeError(e)};var a_=(e,t,r)=>t in e?s_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var me=(e,t,r)=>a_(e,typeof t!="symbol"?t+"":t,r),Gu=(e,t,r)=>t.has(e)||bp("Cannot "+r);var re=(e,t,r)=>(Gu(e,t,"read from private field"),r?r.call(e):t.get(e)),bt=(e,t,r)=>t.has(e)?bp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ve=(e,t,r,o)=>(Gu(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(Gu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),W=require("react"),So=require("react-dom"),st=require("@ws-ui/icons"),Il=require("@emotion/react");function qg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const D=qg(W),u_=qg(So),Zg=({children:e})=>So.createPortal(e,document.querySelector("body"));var xp=function(t){return t.reduce(function(r,o){var s=o[0],a=o[1];return r[s]=a,r},{})},Sp=typeof window<"u"&&window.document&&window.document.createElement?D.useLayoutEffect:D.useEffect,$t="top",tr="bottom",rr="right",It="left",tc="auto",Eo=[$t,tr,rr,It],li="start",ho="end",l_="clippingParents",Gg="viewport",$i="popper",c_="reference",Ep=Eo.reduce(function(e,t){return e.concat([t+"-"+li,t+"-"+ho])},[]),Kg=[].concat(Eo,[tc]).reduce(function(e,t){return e.concat([t,t+"-"+li,t+"-"+ho])},[]),f_="beforeRead",d_="read",p_="afterRead",h_="beforeMain",g_="main",v_="afterMain",m_="beforeWrite",y_="write",w_="afterWrite",b_=[f_,d_,p_,h_,g_,v_,m_,y_,w_];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function In(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function er(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rc(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function x_(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!er(a)||!_r(a)||(Object.assign(a.style,o),Object.keys(s).forEach(function(l){var c=s[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function S_(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(o){var s=t.elements[o],a=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),c=l.reduce(function(h,y){return h[y]="",h},{});!er(s)||!_r(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(h){s.removeAttribute(h)}))})}}const E_={name:"applyStyles",enabled:!0,phase:"write",fn:x_,effect:S_,requires:["computeStyles"]};function Er(e){return e.split("-")[0]}var Cn=Math.max,Js=Math.min,ci=Math.round;function Ll(){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 Vg(){return!/^((?!chrome|android).)*safari/i.test(Ll())}function fi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),s=1,a=1;t&&er(e)&&(s=e.offsetWidth>0&&ci(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ci(o.height)/e.offsetHeight||1);var l=In(e)?Bt(e):window,c=l.visualViewport,h=!Vg()&&r,y=(o.left+(h&&c?c.offsetLeft:0))/s,v=(o.top+(h&&c?c.offsetTop:0))/a,g=o.width/s,p=o.height/a;return{width:g,height:p,top:v,right:y+g,bottom:v+p,left:y,x:y,y:v}}function nc(e){var t=fi(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Yg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&rc(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Wr(e){return Bt(e).getComputedStyle(e)}function __(e){return["table","td","th"].indexOf(_r(e))>=0}function fn(e){return((In(e)?e.ownerDocument:e.document)||window.document).documentElement}function ca(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(rc(e)?e.host:null)||fn(e)}function _p(e){return!er(e)||Wr(e).position==="fixed"?null:e.offsetParent}function A_(e){var t=/firefox/i.test(Ll()),r=/Trident/i.test(Ll());if(r&&er(e)){var o=Wr(e);if(o.position==="fixed")return null}var s=ca(e);for(rc(s)&&(s=s.host);er(s)&&["html","body"].indexOf(_r(s))<0;){var a=Wr(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 _o(e){for(var t=Bt(e),r=_p(e);r&&__(r)&&Wr(r).position==="static";)r=_p(r);return r&&(_r(r)==="html"||_r(r)==="body"&&Wr(r).position==="static")?t:r||A_(e)||t}function ic(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uo(e,t,r){return Cn(e,Js(t,r))}function O_(e,t,r){var o=uo(e,t,r);return o>r?r:o}function Xg(){return{top:0,right:0,bottom:0,left:0}}function Jg(e){return Object.assign({},Xg(),e)}function Qg(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var T_=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Jg(typeof t!="number"?t:Qg(t,Eo))};function R_(e){var t,r=e.state,o=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Er(r.placement),h=ic(c),y=[It,rr].indexOf(c)>=0,v=y?"height":"width";if(!(!a||!l)){var g=T_(s.padding,r),p=nc(a),w=h==="y"?$t:It,x=h==="y"?tr:rr,f=r.rects.reference[v]+r.rects.reference[h]-l[h]-r.rects.popper[v],b=l[h]-r.rects.reference[h],d=_o(a),S=d?h==="y"?d.clientHeight||0:d.clientWidth||0:0,E=f/2-b/2,R=g[w],O=S-p[v]-g[x],k=S/2-p[v]/2+E,B=uo(R,k,O),L=h;r.modifiersData[o]=(t={},t[L]=B,t.centerOffset=B-k,t)}}function P_(e){var t=e.state,r=e.options,o=r.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Yg(t.elements.popper,s)&&(t.elements.arrow=s))}const C_={name:"arrow",enabled:!0,phase:"main",fn:R_,effect:P_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function di(e){return e.split("-")[1]}var k_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $_(e,t){var r=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:ci(r*s)/s||0,y:ci(o*s)/s||0}}function Ap(e){var t,r=e.popper,o=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,c=e.position,h=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,g=e.isFixed,p=l.x,w=p===void 0?0:p,x=l.y,f=x===void 0?0:x,b=typeof v=="function"?v({x:w,y:f}):{x:w,y:f};w=b.x,f=b.y;var d=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=It,R=$t,O=window;if(y){var k=_o(r),B="clientHeight",L="clientWidth";if(k===Bt(r)&&(k=fn(r),Wr(k).position!=="static"&&c==="absolute"&&(B="scrollHeight",L="scrollWidth")),k=k,s===$t||(s===It||s===rr)&&a===ho){R=tr;var M=g&&k===O&&O.visualViewport?O.visualViewport.height:k[B];f-=M-o.height,f*=h?1:-1}if(s===It||(s===$t||s===tr)&&a===ho){E=rr;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[L];w-=G-o.width,w*=h?1:-1}}var N=Object.assign({position:c},y&&k_),I=v===!0?$_({x:w,y:f},Bt(r)):{x:w,y:f};if(w=I.x,f=I.y,h){var U;return Object.assign({},N,(U={},U[R]=S?"0":"",U[E]=d?"0":"",U.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+f+"px)":"translate3d("+w+"px, "+f+"px, 0)",U))}return Object.assign({},N,(t={},t[R]=S?f+"px":"",t[E]=d?w+"px":"",t.transform="",t))}function I_(e){var t=e.state,r=e.options,o=r.gpuAcceleration,s=o===void 0?!0:o,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,h=c===void 0?!0:c,y={placement:Er(t.placement),variation:di(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,Ap(Object.assign({},y,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ap(Object.assign({},y,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const L_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:I_,data:{}};var Ss={passive:!0};function M_(e){var t=e.state,r=e.instance,o=e.options,s=o.scroll,a=s===void 0?!0:s,l=o.resize,c=l===void 0?!0:l,h=Bt(t.elements.popper),y=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&y.forEach(function(v){v.addEventListener("scroll",r.update,Ss)}),c&&h.addEventListener("resize",r.update,Ss),function(){a&&y.forEach(function(v){v.removeEventListener("scroll",r.update,Ss)}),c&&h.removeEventListener("resize",r.update,Ss)}}const F_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M_,data:{}};var D_={left:"right",right:"left",bottom:"top",top:"bottom"};function Hs(e){return e.replace(/left|right|bottom|top/g,function(t){return D_[t]})}var N_={start:"end",end:"start"};function Op(e){return e.replace(/start|end/g,function(t){return N_[t]})}function oc(e){var t=Bt(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function sc(e){return fi(fn(e)).left+oc(e).scrollLeft}function j_(e,t){var r=Bt(e),o=fn(e),s=r.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,h=0;if(s){a=s.width,l=s.height;var y=Vg();(y||!y&&t==="fixed")&&(c=s.offsetLeft,h=s.offsetTop)}return{width:a,height:l,x:c+sc(e),y:h}}function z_(e){var t,r=fn(e),o=oc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Cn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Cn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-o.scrollLeft+sc(e),h=-o.scrollTop;return Wr(s||r).direction==="rtl"&&(c+=Cn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:c,y:h}}function ac(e){var t=Wr(e),r=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+o)}function ev(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:er(e)&&ac(e)?e:ev(ca(e))}function lo(e,t){var r;t===void 0&&(t=[]);var o=ev(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Bt(o),l=s?[a].concat(a.visualViewport||[],ac(o)?o:[]):o,c=t.concat(l);return s?c:c.concat(lo(ca(l)))}function Ml(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function W_(e,t){var r=fi(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 Tp(e,t,r){return t===Gg?Ml(j_(e,r)):In(t)?W_(t,r):Ml(z_(fn(e)))}function B_(e){var t=lo(ca(e)),r=["absolute","fixed"].indexOf(Wr(e).position)>=0,o=r&&er(e)?_o(e):e;return In(o)?t.filter(function(s){return In(s)&&Yg(s,o)&&_r(s)!=="body"}):[]}function U_(e,t,r,o){var s=t==="clippingParents"?B_(e):[].concat(t),a=[].concat(s,[r]),l=a[0],c=a.reduce(function(h,y){var v=Tp(e,y,o);return h.top=Cn(v.top,h.top),h.right=Js(v.right,h.right),h.bottom=Js(v.bottom,h.bottom),h.left=Cn(v.left,h.left),h},Tp(e,l,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function tv(e){var t=e.reference,r=e.element,o=e.placement,s=o?Er(o):null,a=o?di(o):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,h;switch(s){case $t:h={x:l,y:t.y-r.height};break;case tr:h={x:l,y:t.y+t.height};break;case rr:h={x:t.x+t.width,y:c};break;case It:h={x:t.x-r.width,y:c};break;default:h={x:t.x,y:t.y}}var y=s?ic(s):null;if(y!=null){var v=y==="y"?"height":"width";switch(a){case li:h[y]=h[y]-(t[v]/2-r[v]/2);break;case ho:h[y]=h[y]+(t[v]/2-r[v]/2);break}}return h}function go(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=o===void 0?e.placement:o,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,h=c===void 0?l_:c,y=r.rootBoundary,v=y===void 0?Gg:y,g=r.elementContext,p=g===void 0?$i:g,w=r.altBoundary,x=w===void 0?!1:w,f=r.padding,b=f===void 0?0:f,d=Jg(typeof b!="number"?b:Qg(b,Eo)),S=p===$i?c_:$i,E=e.rects.popper,R=e.elements[x?S:p],O=U_(In(R)?R:R.contextElement||fn(e.elements.popper),h,v,l),k=fi(e.elements.reference),B=tv({reference:k,element:E,placement:s}),L=Ml(Object.assign({},E,B)),M=p===$i?L:k,G={top:O.top-M.top+d.top,bottom:M.bottom-O.bottom+d.bottom,left:O.left-M.left+d.left,right:M.right-O.right+d.right},N=e.modifiersData.offset;if(p===$i&&N){var I=N[s];Object.keys(G).forEach(function(U){var q=[rr,tr].indexOf(U)>=0?1:-1,C=[$t,tr].indexOf(U)>=0?"y":"x";G[U]+=I[C]*q})}return G}function H_(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,h=r.allowedAutoPlacements,y=h===void 0?Kg:h,v=di(o),g=v?c?Ep:Ep.filter(function(x){return di(x)===v}):Eo,p=g.filter(function(x){return y.indexOf(x)>=0});p.length===0&&(p=g);var w=p.reduce(function(x,f){return x[f]=go(e,{placement:f,boundary:s,rootBoundary:a,padding:l})[Er(f)],x},{});return Object.keys(w).sort(function(x,f){return w[x]-w[f]})}function q_(e){if(Er(e)===tc)return[];var t=Hs(e);return[Op(e),t,Op(t)]}function Z_(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!0:l,h=r.fallbackPlacements,y=r.padding,v=r.boundary,g=r.rootBoundary,p=r.altBoundary,w=r.flipVariations,x=w===void 0?!0:w,f=r.allowedAutoPlacements,b=t.options.placement,d=Er(b),S=d===b,E=h||(S||!x?[Hs(b)]:q_(b)),R=[b].concat(E).reduce(function(ne,ce){return ne.concat(Er(ce)===tc?H_(t,{placement:ce,boundary:v,rootBoundary:g,padding:y,flipVariations:x,allowedAutoPlacements:f}):ce)},[]),O=t.rects.reference,k=t.rects.popper,B=new Map,L=!0,M=R[0],G=0;G<R.length;G++){var N=R[G],I=Er(N),U=di(N)===li,q=[$t,tr].indexOf(I)>=0,C=q?"width":"height",J=go(t,{placement:N,boundary:v,rootBoundary:g,altBoundary:p,padding:y}),Y=q?U?rr:It:U?tr:$t;O[C]>k[C]&&(Y=Hs(Y));var te=Hs(Y),de=[];if(a&&de.push(J[I]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){M=N,L=!1;break}B.set(N,de)}if(L)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var ve=B.get(ye);if(ve)return ve.slice(0,ce).every(function(Ee){return Ee})});if(fe)return M=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==M&&(t.modifiersData[o]._skip=!0,t.placement=M,t.reset=!0)}}const G_={name:"flip",enabled:!0,phase:"main",fn:Z_,requiresIfExists:["offset"],data:{_skip:!1}};function Rp(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pp(e){return[$t,rr,tr,It].some(function(t){return e[t]>=0})}function K_(e){var t=e.state,r=e.name,o=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=go(t,{elementContext:"reference"}),c=go(t,{altBoundary:!0}),h=Rp(l,o),y=Rp(c,s,a),v=Pp(h),g=Pp(y);t.modifiersData[r]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:v,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}const V_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:K_};function Y_(e,t,r){var o=Er(e),s=[It,$t].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*s,[It,rr].indexOf(o)>=0?{x:c,y:l}:{x:l,y:c}}function X_(e){var t=e.state,r=e.options,o=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=Kg.reduce(function(v,g){return v[g]=Y_(g,t.rects,a),v},{}),c=l[t.placement],h=c.x,y=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=y),t.modifiersData[o]=l}const J_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:X_};function Q_(e){var t=e.state,r=e.name;t.modifiersData[r]=tv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const eA={name:"popperOffsets",enabled:!0,phase:"read",fn:Q_,data:{}};function tA(e){return e==="x"?"y":"x"}function rA(e){var t=e.state,r=e.options,o=e.name,s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!1:l,h=r.boundary,y=r.rootBoundary,v=r.altBoundary,g=r.padding,p=r.tether,w=p===void 0?!0:p,x=r.tetherOffset,f=x===void 0?0:x,b=go(t,{boundary:h,rootBoundary:y,padding:g,altBoundary:v}),d=Er(t.placement),S=di(t.placement),E=!S,R=ic(d),O=tA(R),k=t.modifiersData.popperOffsets,B=t.rects.reference,L=t.rects.popper,M=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,G=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(a){var U,q=R==="y"?$t:It,C=R==="y"?tr:rr,J=R==="y"?"height":"width",Y=k[R],te=Y+b[q],de=Y-b[C],Z=w?-L[J]/2:0,Q=S===li?B[J]:L[J],se=S===li?-L[J]:-B[J],ue=t.elements.arrow,ne=w&&ue?nc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xg(),fe=ce[q],ye=ce[C],ve=uo(0,B[J],ne[J]),Ee=E?B[J]/2-Z-ve-fe-G.mainAxis:Q-ve-fe-G.mainAxis,Oe=E?-B[J]/2+Z+ve+ye+G.mainAxis:se+ve+ye+G.mainAxis,qe=t.elements.arrow&&_o(t.elements.arrow),ie=qe?R==="y"?qe.clientTop||0:qe.clientLeft||0:0,vt=(U=N==null?void 0:N[R])!=null?U:0,at=Y+Ee-vt-ie,dr=Y+Oe-vt,ko=uo(w?Js(te,at):te,Y,w?Cn(de,dr):de);k[R]=ko,I[R]=ko-Y}if(c){var Ut,$o=R==="x"?$t:It,Aa=R==="x"?tr:rr,Lt=k[O],mt=O==="y"?"height":"width",Ur=Lt+b[$o],pn=Lt-b[Aa],vi=[$t,It].indexOf(d)!==-1,Hr=(Ut=N==null?void 0:N[O])!=null?Ut:0,Io=vi?Ur:Lt-B[mt]-L[mt]-Hr+G.altAxis,qr=vi?Lt+B[mt]+L[mt]-Hr-G.altAxis:pn,Or=w&&vi?O_(Io,Lt,qr):uo(w?Io:Ur,Lt,w?qr:pn);k[O]=Or,I[O]=Or-Lt}t.modifiersData[o]=I}}const nA={name:"preventOverflow",enabled:!0,phase:"main",fn:rA,requiresIfExists:["offset"]};function iA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oA(e){return e===Bt(e)||!er(e)?oc(e):iA(e)}function sA(e){var t=e.getBoundingClientRect(),r=ci(t.width)/e.offsetWidth||1,o=ci(t.height)/e.offsetHeight||1;return r!==1||o!==1}function aA(e,t,r){r===void 0&&(r=!1);var o=er(t),s=er(t)&&sA(t),a=fn(t),l=fi(e,s,r),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!r)&&((_r(t)!=="body"||ac(a))&&(c=oA(t)),er(t)?(h=fi(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):a&&(h.x=sc(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function uA(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var h=t.get(c);h&&s(h)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),o}function lA(e){var t=uA(e);return b_.reduce(function(r,o){return r.concat(t.filter(function(s){return s.phase===o}))},[])}function cA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fA(e){var t=e.reduce(function(r,o){var s=r[o.name];return r[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var Cp={placement:"bottom",modifiers:[],strategy:"absolute"};function kp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function dA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Cp:s;return function(c,h,y){y===void 0&&(y=a);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cp,a),modifiersData:{},elements:{reference:c,popper:h},attributes:{},styles:{}},g=[],p=!1,w={state:v,setOptions:function(d){var S=typeof d=="function"?d(v.options):d;f(),v.options=Object.assign({},a,v.options,S),v.scrollParents={reference:In(c)?lo(c):c.contextElement?lo(c.contextElement):[],popper:lo(h)};var E=lA(fA([].concat(o,v.options.modifiers)));return v.orderedModifiers=E.filter(function(R){return R.enabled}),x(),w.update()},forceUpdate:function(){if(!p){var d=v.elements,S=d.reference,E=d.popper;if(kp(S,E)){v.rects={reference:aA(S,_o(E),v.options.strategy==="fixed"),popper:nc(E)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(G){return v.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<v.orderedModifiers.length;R++){if(v.reset===!0){v.reset=!1,R=-1;continue}var O=v.orderedModifiers[R],k=O.fn,B=O.options,L=B===void 0?{}:B,M=O.name;typeof k=="function"&&(v=k({state:v,options:L,name:M,instance:w})||v)}}}},update:cA(function(){return new Promise(function(b){w.forceUpdate(),b(v)})}),destroy:function(){f(),p=!0}};if(!kp(c,h))return w;w.setOptions(y).then(function(b){!p&&y.onFirstUpdate&&y.onFirstUpdate(b)});function x(){v.orderedModifiers.forEach(function(b){var d=b.name,S=b.options,E=S===void 0?{}:S,R=b.effect;if(typeof R=="function"){var O=R({state:v,name:d,instance:w,options:E}),k=function(){};g.push(O||k)}})}function f(){g.forEach(function(b){return b()}),g=[]}return w}}var pA=[F_,eA,L_,E_,J_,G_,nA,C_,V_],hA=dA({defaultModifiers:pA}),Es=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ku,$p;function gA(){if($p)return Ku;$p=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,h,y;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(h=c;h--!==0;)if(!s(a[h],l[h]))return!1;return!0}var v;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(v=a.entries();!(h=v.next()).done;)if(!l.has(h.value[0]))return!1;for(v=a.entries();!(h=v.next()).done;)if(!s(h.value[1],l.get(h.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(v=a.entries();!(h=v.next()).done;)if(!l.has(h.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(h=c;h--!==0;)if(a[h]!==l[h])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(y=Object.keys(a),c=y.length,c!==Object.keys(l).length)return!1;for(h=c;h--!==0;)if(!Object.prototype.hasOwnProperty.call(l,y[h]))return!1;if(e&&a instanceof Element)return!1;for(h=c;h--!==0;)if(!((y[h]==="_owner"||y[h]==="__v"||y[h]==="__o")&&a.$$typeof)&&!s(a[y[h]],l[y[h]]))return!1;return!0}return a!==a&&l!==l}return Ku=function(l,c){try{return s(l,c)}catch(h){if((h.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw h}},Ku}var vA=gA();const mA=rv(vA);var yA=[],nv=function(t,r,o){o===void 0&&(o={});var s=D.useRef(null),a={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||yA},l=D.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],h=l[1],y=D.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var x=w.state,f=Object.keys(x.elements);u_.flushSync(function(){h({styles:xp(f.map(function(b){return[b,x.styles[b]||{}]})),attributes:xp(f.map(function(b){return[b,x.attributes[b]]}))})})},requires:["computeStyles"]}},[]),v=D.useMemo(function(){var p={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[y,{name:"applyStyles",enabled:!1}])};return mA(s.current,p)?s.current||p:(s.current=p,p)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,y]),g=D.useRef();return Sp(function(){g.current&&g.current.setOptions(v)},[v]),Sp(function(){if(!(t==null||r==null)){var p=o.createPopper||hA,w=p(t,r,v);return g.current=w,function(){w.destroy(),g.current=null}}},[t,r,o.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};const iv=e=>z.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),ov=W.forwardRef(({children:e,style:t,attributes:r},o)=>z.jsx("div",{style:{...t,zIndex:2e3},...r,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),wA=({referenceElement:e,placement:t,isOpen:r,children:o,onClose:s})=>{const[a,l]=W.useState(null),{styles:c,attributes:h}=nv(e,a,{placement:t||"bottom-start"}),y=W.useCallback(()=>{s&&s()},[s]);return r?z.jsxs(Zg,{children:[z.jsx(iv,{onClick:()=>y()}),z.jsx(ov,{ref:l,style:c.popper,attributes:h.popper,children:o})]}):null};var Vu={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var Xd;function vv(){return Xd||(Xd=1,(function(e){(function(){var n={}.hasOwnProperty;function r(){for(var u="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(u=a(u,o(d)))}return u}function o(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return r.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var l="";for(var d in u)n.call(u,d)&&u[d]&&(l=a(l,d));return l}function a(u,l){return l?u?u+" "+l:u+l:u}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Au)),Au.exports}var mx=vv();const Ve=cv(mx);function gr(){return gr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},gr.apply(this,arguments)}const gx=["children","options"],Jd=["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,n)=>(e[n.toLowerCase()]=n,e),{class:"className",for:"htmlFor"}),Qd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},yx=["style","script","pre"],wx=["src","href","data","formAction","srcDoc","action"],bx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Sx=/\n{2,}$/,ep=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Ex=/^ *> ?/gm,_x=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,xx=/^ {2,}\n/,Ox=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,tp=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,np=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Ax=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Tx=/^(?:\n *)*\n/,Px=/\r\n?/g,Cx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Rx=/^\[\^([^\]]+)]/,Ix=/\f/g,Mx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Fx=/^\s*?\[(x|\s)\]/,rp=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ip=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,op=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Tu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Lx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ap=/^<!--[\s\S]*?(?:-->)/,Dx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Pu=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,$x=/^\{.*\}$/,Nx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,kx=/^<([^ >]+[:@\/][^ >]+)>/,jx=/-([a-z])?/gi,sp=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Wx=/^[^\n]+(?: \n|\n{2,})/,Ux=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Bx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,zx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Hx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,qx=/\t/g,Zx=/(^ *\||\| *$)/g,Gx=/^ *:-+: *$/,Kx=/^ *:-+ *$/,Vx=/^ *-+: *$/,Ha=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,qa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Yx=RegExp(`^([*_])\\1${Ha(1)}${qa}\\1\\1(?!\\1)`),Xx=RegExp(`^([*_])${Ha(0)}${qa}\\1(?!\\1)`),Jx=RegExp(`^(==)${Ha(0)}${qa}\\1`),Qx=RegExp(`^(~~)${Ha(0)}${qa}\\1`),eO=/^(:[a-zA-Z0-9-_]+:)/,tO=/^\\([^0-9A-Za-z\s])/,nO=/\\([^0-9A-Za-z\s])/g,rO=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,iO=/^\n+/,oO=/^([ \t]*)/,aO=/(?:^|\n)( *)$/,Dl="(?:\\d+\\.)",$l="(?:[*+-])";function mv(e){return"( *)("+(e===1?Dl:$l)+") +"}const gv=mv(1),yv=mv(2);function wv(e){return RegExp("^"+(e===1?gv:yv))}const sO=wv(1),uO=wv(2);function bv(e){return RegExp("^"+(e===1?gv:yv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Dl:$l)+" )[^\\n]*)*(\\n|$)","gm")}const lO=bv(1),fO=bv(2);function Sv(e){const n=e===1?Dl:$l;return RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const Ev=Sv(1),_v=Sv(2);function up(e,n){const r=n===1,o=r?Ev:_v,a=r?lO:fO,u=r?sO:uO;return{t:l=>u.test(l),o:ni(function(l,d){const m=aO.exec(d.prevCapture);return m&&(d.list||!d.inline&&!d.simple)?o.exec(l=m[1]+l):null}),i:1,u(l,d,m){const E=r?+l[2]:void 0,g=l[0].replace(Sx,`
6
- `).match(a);let p=!1;return{items:g.map(function(v,y){const b=u.exec(v)[0].length,f=RegExp("^ {1,"+b+"}","gm"),w=v.replace(f,"").replace(u,""),c=y===g.length-1,S=w.indexOf(`
5
+ */var Ip;function sv(){return Ip||(Ip=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=s(a,o(c)))}return a}function o(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=s(l,c));return l}function s(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Vu)),Vu.exports}var bA=sv();const tt=rv(bA);function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},On.apply(this,arguments)}const xA=["children","options"],Lp=["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"}),Mp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},SA=["style","script","pre"],EA=["src","href","data","formAction","srcDoc","action"],_A=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,AA=/\n{2,}$/,Fp=/^(\s*>[\s\S]*?)(?=\n\n|$)/,OA=/^ *> ?/gm,TA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,RA=/^ {2,}\n/,PA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Dp=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Np=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,CA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,kA=/^(?:\n *)*\n/,$A=/\r\n?/g,IA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,LA=/^\[\^([^\]]+)]/,MA=/\f/g,FA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,DA=/^\s*?\[(x|\s)\]/,jp=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zp=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Wp=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Yu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,NA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Bp=/^<!--[\s\S]*?(?:-->)/,jA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Xu=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,zA=/^\{.*\}$/,WA=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,BA=/^<([^ >]+[:@\/][^ >]+)>/,UA=/-([a-z])?/gi,Up=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,HA=/^[^\n]+(?: \n|\n{2,})/,qA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,ZA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,GA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,KA=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,VA=/\t/g,YA=/(^ *\||\| *$)/g,XA=/^ *:-+: *$/,JA=/^ *:-+ *$/,QA=/^ *-+: *$/,fa=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,da="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",eO=RegExp(`^([*_])\\1${fa(1)}${da}\\1\\1(?!\\1)`),tO=RegExp(`^([*_])${fa(0)}${da}\\1(?!\\1)`),rO=RegExp(`^(==)${fa(0)}${da}\\1`),nO=RegExp(`^(~~)${fa(0)}${da}\\1`),iO=/^(:[a-zA-Z0-9-_]+:)/,oO=/^\\([^0-9A-Za-z\s])/,sO=/\\([^0-9A-Za-z\s])/g,aO=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,uO=/^\n+/,lO=/^([ \t]*)/,cO=/(?:^|\n)( *)$/,uc="(?:\\d+\\.)",lc="(?:[*+-])";function av(e){return"( *)("+(e===1?uc:lc)+") +"}const uv=av(1),lv=av(2);function cv(e){return RegExp("^"+(e===1?uv:lv))}const fO=cv(1),dO=cv(2);function fv(e){return RegExp("^"+(e===1?uv:lv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?uc:lc)+" )[^\\n]*)*(\\n|$)","gm")}const pO=fv(1),hO=fv(2);function dv(e){const t=e===1?uc:lc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const pv=dv(1),hv=dv(2);function Hp(e,t){const r=t===1,o=r?pv:hv,s=r?pO:hO,a=r?fO:dO;return{t:l=>a.test(l),o:pi(function(l,c){const h=cO.exec(c.prevCapture);return h&&(c.list||!c.inline&&!c.simple)?o.exec(l=h[1]+l):null}),i:1,u(l,c,h){const y=r?+l[2]:void 0,v=l[0].replace(AA,`
6
+ `).match(s);let g=!1;return{items:v.map(function(p,w){const x=a.exec(p)[0].length,f=RegExp("^ {1,"+x+"}","gm"),b=p.replace(f,"").replace(a,""),d=w===v.length-1,S=b.indexOf(`
7
7
 
8
- `)!==-1||c&&p;p=S;const _=m.inline,P=m.list;let A;m.list=!0,S?(m.inline=!1,A=Yi(w)+`
8
+ `)!==-1||d&&g;g=S;const E=h.inline,R=h.list;let O;h.list=!0,S?(h.inline=!1,O=co(b)+`
9
9
 
10
- `):(m.inline=!0,A=Yi(w));const I=d(A,m);return m.inline=_,m.list=P,I}),ordered:r,start:E}},l:(l,d,m)=>e(l.ordered?"ol":"ul",{key:m.key,start:l.type==="20"?l.start:void 0},l.items.map(function(E,g){return e("li",{key:g},d(E,m))}))}}const cO=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),dO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function lp(e){return typeof e=="string"}function Yi(e){let n=e.length;for(;n>0&&e[n-1]<=" ";)n--;return e.slice(0,n)}function Ta(e,n){return e.startsWith(n)}function pO(e,n,r){if(Array.isArray(r)){for(let o=0;o<r.length;o++)if(Ta(e,r[o]))return!0;return!1}return r(e,n)}function Ei(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 hO(e){return Vx.test(e)?"right":Gx.test(e)?"center":Kx.test(e)?"left":null}function fp(e,n,r,o){const a=r.inTable;r.inTable=!0;let u=[[]],l="";function d(){if(!l)return;const m=u[u.length-1];m.push.apply(m,n(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,E,g)=>{m.trim()==="|"&&(d(),o)?E!==0&&E!==g.length-1&&u.push([]):l+=m}),d(),r.inTable=a,u}function vO(e,n,r){r.inline=!0;const o=e[2]?e[2].replace(Zx,"").split("|").map(hO):[],a=e[3]?(function(l,d,m){return l.trim().split(`
11
- `).map(function(E){return fp(E,d,m,!0)})})(e[3],n,r):[],u=fp(e[1],n,r,!!a.length);return r.inline=!1,a.length?{align:o,cells:a,header:u,type:"25"}:{children:u,type:"21"}}function cp(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function ni(e){return e.inline=1,e}function hr(e){return ni(function(n,r){return r.inline?e.exec(n):null})}function Kn(e){return ni(function(n,r){return r.inline||r.simple?e.exec(n):null})}function Pn(e){return function(n,r){return r.inline||r.simple?null:e.exec(n)}}function ua(e){return ni(function(n){return e.exec(n)})}const mO=/(javascript|vbscript|data(?!:image)):/i;function gO(e){try{const n=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(mO.test(n))return null}catch{return null}return e}function ln(e){return e&&e.replace(nO,"$1")}function Pa(e,n,r){const o=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const u=e(n,r);return r.inline=o,r.simple=a,u}function yO(e,n,r){const o=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const u=e(n,r);return r.inline=o,r.simple=a,u}function wO(e,n,r){const o=r.inline||!1;r.inline=!1;const a=e(n,r);return r.inline=o,a}const Cu=(e,n,r)=>({children:Pa(n,e[2],r)});function Ru(){return{}}function Iu(){return null}function bO(...e){return e.filter(Boolean).join(" ")}function Mu(e,n,r){let o=e;const a=n.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||r}function SO(e="",n={}){n.overrides=n.overrides||{},n.namedCodesToUnicode=n.namedCodesToUnicode?gr({},Qd,n.namedCodesToUnicode):Qd;const r=n.slugify||Ei,o=n.sanitizer||gO,a=n.createElement||N.createElement,u=[ep,tp,np,n.enforceAtxHeadings?ip:rp,op,sp,Ev,_v],l=[...u,Wx,Tu,ap,Pu];function d(c,S){for(let _=0;_<c.length;_++)if(c[_].test(S))return!0;return!1}function m(c,S,..._){const P=Mu(n.overrides,c+".props",{});return a((function(A,I){const z=Mu(I,A);return z?typeof z=="function"||typeof z=="object"&&"render"in z?z:Mu(I,A+".component",A):A})(c,n.overrides),gr({},S,P,{className:bO(S==null?void 0:S.className,P.className)||void 0}),..._)}function E(c){c=c.replace(Mx,"");let S=!1;n.forceInline?S=!0:n.forceBlock||(S=Hx.test(c)===!1);const _=f(b(S?c:Yi(c).replace(iO,"")+`
10
+ `):(h.inline=!0,O=co(b));const k=c(O,h);return h.inline=E,h.list=R,k}),ordered:r,start:y}},l:(l,c,h)=>e(l.ordered?"ol":"ul",{key:h.key,start:l.type==="20"?l.start:void 0},l.items.map(function(y,v){return e("li",{key:v},c(y,h))}))}}const gO=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),vO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function qp(e){return typeof e=="string"}function co(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function qs(e,t){return e.startsWith(t)}function mO(e,t,r){if(Array.isArray(r)){for(let o=0;o<r.length;o++)if(qs(e,r[o]))return!0;return!1}return r(e,t)}function Ii(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 yO(e){return QA.test(e)?"right":XA.test(e)?"center":JA.test(e)?"left":null}function Zp(e,t,r,o){const s=r.inTable;r.inTable=!0;let a=[[]],l="";function c(){if(!l)return;const h=a[a.length-1];h.push.apply(h,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((h,y,v)=>{h.trim()==="|"&&(c(),o)?y!==0&&y!==v.length-1&&a.push([]):l+=h}),c(),r.inTable=s,a}function wO(e,t,r){r.inline=!0;const o=e[2]?e[2].replace(YA,"").split("|").map(yO):[],s=e[3]?(function(l,c,h){return l.trim().split(`
11
+ `).map(function(y){return Zp(y,c,h,!0)})})(e[3],t,r):[],a=Zp(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:o,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function Gp(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function pi(e){return e.inline=1,e}function En(e){return pi(function(t,r){return r.inline?e.exec(t):null})}function tn(e){return pi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Fr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function _s(e){return pi(function(t){return e.exec(t)})}const bO=/(javascript|vbscript|data(?!:image)):/i;function xO(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(bO.test(t))return null}catch{return null}return e}function vr(e){return e&&e.replace(sO,"$1")}function Zs(e,t,r){const o=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=o,r.simple=s,a}function SO(e,t,r){const o=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=o,r.simple=s,a}function EO(e,t,r){const o=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=o,s}const Ju=(e,t,r)=>({children:Zs(t,e[2],r)});function Qu(){return{}}function el(){return null}function _O(...e){return e.filter(Boolean).join(" ")}function tl(e,t,r){let o=e;const s=t.split(".");for(;s.length&&(o=o[s[0]],o!==void 0);)s.shift();return o||r}function AO(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?On({},Mp,t.namedCodesToUnicode):Mp;const r=t.slugify||Ii,o=t.sanitizer||xO,s=t.createElement||D.createElement,a=[Fp,Dp,Np,t.enforceAtxHeadings?zp:jp,Wp,Up,pv,hv],l=[...a,HA,Yu,Bp,Xu];function c(d,S){for(let E=0;E<d.length;E++)if(d[E].test(S))return!0;return!1}function h(d,S,...E){const R=tl(t.overrides,d+".props",{});return s((function(O,k){const B=tl(k,O);return B?typeof B=="function"||typeof B=="object"&&"render"in B?B:tl(k,O+".component",O):O})(d,t.overrides),On({},S,R,{className:_O(S==null?void 0:S.className,R.className)||void 0}),...E)}function y(d){d=d.replace(FA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=KA.test(d)===!1);const E=f(x(S?d:co(d).replace(uO,"")+`
12
12
 
13
- `,{inline:S}));for(;lp(_[_.length-1])&&!_[_.length-1].trim();)_.pop();if(n.wrapper===null)return _;const P=n.wrapper||(S?"span":"div");let A;if(_.length>1||n.forceWrapper)A=_;else{if(_.length===1)return A=_[0],typeof A=="string"?m("span",{key:"outer"},A):A;A=null}return a(P,{key:"outer"},A)}function g(c,S){if(!S||!S.trim())return null;const _=S.match(bx);return _?_.reduce(function(P,A){const I=A.indexOf("=");if(I!==-1){const z=(function(k){return k.indexOf("-")!==-1&&k.match(Dx)===null&&(k=k.replace(jx,function(F,U){return U.toUpperCase()})),k})(A.slice(0,I)).trim(),L=(function(k){const F=k[0];return(F==='"'||F==="'")&&k.length>=2&&k[k.length-1]===F?k.slice(1,-1):k})(A.slice(I+1).trim()),D=Jd[z]||z;if(D==="ref")return P;const G=P[D]=(function(k,F,U,q){return F==="style"?(function(R){const J=[];let Y="",te=!1,de=!1,Z="";if(!R)return J;for(let ae=0;ae<R.length;ae++){const ue=R[ae];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&Y.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)Y+=ue;else{const re=Y.trim();if(re){const fe=re.indexOf(":");if(fe>0){const ce=re.slice(0,fe).trim(),ge=re.slice(fe+1).trim();J.push([ce,ge])}}Y=""}}const Q=Y.trim();if(Q){const ae=Q.indexOf(":");if(ae>0){const ue=Q.slice(0,ae).trim(),re=Q.slice(ae+1).trim();J.push([ue,re])}}return J})(U).reduce(function(R,[J,Y]){return R[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(Y,k,J),R},{}):wx.indexOf(F)!==-1?q(ln(U),k,F):(U.match($x)&&(U=ln(U.slice(1,U.length-1))),U==="true"||U!=="false"&&U)})(c,z,L,o);typeof G=="string"&&(Tu.test(G)||Pu.test(G))&&(P[D]=E(G.trim()))}else A!=="style"&&(P[Jd[A]||A]=!0);return P},{}):null}const p=[],v={},y={0:{t:[">"],o:Pn(ep),i:1,u(c,S,_){const[,P,A]=c[0].replace(Ex,"").match(_x);return{alert:P,children:S(A,_)}},l(c,S,_){const P={key:_.key};return c.alert&&(P.className="markdown-alert-"+r(c.alert.toLowerCase(),Ei),c.children.unshift({attrs:{},children:[{type:"27",text:c.alert}],noInnerParse:!0,type:"11",tag:"header"})),m("blockquote",P,S(c.children,_))}},1:{t:[" "],o:ua(xx),i:1,u:Ru,l:(c,S,_)=>m("br",{key:_.key})},2:{t:["--","__","**","- ","* ","_ "],o:Pn(Ox),i:1,u:Ru,l:(c,S,_)=>m("hr",{key:_.key})},3:{t:[" "],o:Pn(np),i:0,u:c=>({lang:void 0,text:ln(Yi(c[0].replace(/^ {4}/gm,"")))}),l:(c,S,_)=>m("pre",{key:_.key},m("code",gr({},c.attrs,{className:c.lang?"lang-"+c.lang:""}),c.text))},4:{t:["```","~~~"],o:Pn(tp),i:0,u:c=>({attrs:g("code",c[3]||""),lang:c[2]||void 0,text:c[4],type:"3"})},5:{t:["`"],o:Kn(Ax),i:3,u:c=>({text:ln(c[2])}),l:(c,S,_)=>m("code",{key:_.key},c.text)},6:{t:["[^"],o:Pn(Cx),i:0,u:c=>(p.push({footnote:c[2],identifier:c[1]}),{}),l:Iu},7:{t:["[^"],o:hr(Rx),i:1,u:c=>({target:"#"+r(c[1],Ei),text:c[1]}),l:(c,S,_)=>m("a",{key:_.key,href:o(c.target,"a","href")},m("sup",{key:_.key},c.text))},8:{t:["[ ]","[x]"],o:hr(Fx),i:1,u:c=>({completed:c[1].toLowerCase()==="x"}),l:(c,S,_)=>m("input",{checked:c.completed,key:_.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Pn(n.enforceAtxHeadings?ip:rp),i:1,u:(c,S,_)=>({children:Pa(S,c[2],_),id:r(c[2],Ei),level:c[1].length}),l:(c,S,_)=>m("h"+c.level,{id:c.id,key:_.key},S(c.children,_))},10:{t:c=>{const S=c.indexOf(`
14
- `);return S>0&&S<c.length-1&&(c[S+1]==="="||c[S+1]==="-")},o:Pn(op),i:0,u:(c,S,_)=>({children:Pa(S,c[1],_),level:c[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ua(Tu),i:1,u(c,S,_){const[,P]=c[3].match(oO),A=RegExp("^"+P,"gm"),I=c[3].replace(A,""),z=d(l,I)?wO:Pa,L=c[1].toLowerCase(),D=yx.indexOf(L)!==-1,G=(D?L:c[1]).trim(),k={attrs:g(G,c[2]),noInnerParse:D,tag:G};if(_.inAnchor=_.inAnchor||L==="a",D)k.text=c[3];else{const F=_.inHTML;_.inHTML=!0,k.children=z(S,I,_),_.inHTML=F}return _.inAnchor=!1,k},l:(c,S,_)=>m(c.tag,gr({key:_.key},c.attrs),c.text||(c.children?S(c.children,_):""))},13:{t:["<"],o:ua(Pu),i:1,u(c){const S=c[1].trim();return{attrs:g(S,c[2]||""),tag:S}},l:(c,S,_)=>m(c.tag,gr({},c.attrs,{key:_.key}))},12:{t:["<!--"],o:ua(ap),i:1,u:()=>({}),l:Iu},14:{t:["!["],o:Kn(dO),i:1,u:c=>({alt:ln(c[1]),target:ln(c[2]),title:ln(c[3])}),l:(c,S,_)=>m("img",{key:_.key,alt:c.alt||void 0,title:c.title||void 0,src:o(c.target,"img","src")})},15:{t:["["],o:hr(cO),i:3,u:(c,S,_)=>({children:yO(S,c[1],_),target:ln(c[2]),title:ln(c[3])}),l:(c,S,_)=>m("a",{key:_.key,href:o(c.target,"a","href"),title:c.title},S(c.children,_))},16:{t:["<"],o:hr(kx),i:0,u(c){let S=c[1],_=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(_=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:_?"mailto:"+S:S,type:"15"}}},17:{t:(c,S)=>!S.inAnchor&&!n.disableAutoLink&&(Ta(c,"http://")||Ta(c,"https://")),o:hr(Nx),i:0,u:c=>({children:[{text:c[1],type:"27"}],target:c[1],title:void 0,type:"15"})},20:up(m,1),33:up(m,2),19:{t:[`
15
- `],o:Pn(Tx),i:3,u:Ru,l:()=>`
16
- `},21:{o:ni(function(c,S){if(S.inline||S.simple||S.inHTML&&c.indexOf(`
13
+ `,{inline:S}));for(;qp(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"?h("span",{key:"outer"},O):O;O=null}return s(R,{key:"outer"},O)}function v(d,S){if(!S||!S.trim())return null;const E=S.match(_A);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const B=(function(N){return N.indexOf("-")!==-1&&N.match(jA)===null&&(N=N.replace(UA,function(I,U){return U.toUpperCase()})),N})(O.slice(0,k)).trim(),L=(function(N){const I=N[0];return(I==='"'||I==="'")&&N.length>=2&&N[N.length-1]===I?N.slice(1,-1):N})(O.slice(k+1).trim()),M=Lp[B]||B;if(M==="ref")return R;const G=R[M]=(function(N,I,U,q){return I==="style"?(function(C){const J=[];let Y="",te=!1,de=!1,Z="";if(!C)return J;for(let se=0;se<C.length;se++){const ue=C[se];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&Y.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)Y+=ue;else{const ne=Y.trim();if(ne){const ce=ne.indexOf(":");if(ce>0){const fe=ne.slice(0,ce).trim(),ye=ne.slice(ce+1).trim();J.push([fe,ye])}}Y=""}}const Q=Y.trim();if(Q){const se=Q.indexOf(":");if(se>0){const ue=Q.slice(0,se).trim(),ne=Q.slice(se+1).trim();J.push([ue,ne])}}return J})(U).reduce(function(C,[J,Y]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(Y,N,J),C},{}):EA.indexOf(I)!==-1?q(vr(U),N,I):(U.match(zA)&&(U=vr(U.slice(1,U.length-1))),U==="true"||U!=="false"&&U)})(d,B,L,o);typeof G=="string"&&(Yu.test(G)||Xu.test(G))&&(R[M]=y(G.trim()))}else O!=="style"&&(R[Lp[O]||O]=!0);return R},{}):null}const g=[],p={},w={0:{t:[">"],o:Fr(Fp),i:1,u(d,S,E){const[,R,O]=d[0].replace(OA,"").match(TA);return{alert:R,children:S(O,E)}},l(d,S,E){const R={key:E.key};return d.alert&&(R.className="markdown-alert-"+r(d.alert.toLowerCase(),Ii),d.children.unshift({attrs:{},children:[{type:"27",text:d.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",R,S(d.children,E))}},1:{t:[" "],o:_s(RA),i:1,u:Qu,l:(d,S,E)=>h("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Fr(PA),i:1,u:Qu,l:(d,S,E)=>h("hr",{key:E.key})},3:{t:[" "],o:Fr(Np),i:0,u:d=>({lang:void 0,text:vr(co(d[0].replace(/^ {4}/gm,"")))}),l:(d,S,E)=>h("pre",{key:E.key},h("code",On({},d.attrs,{className:d.lang?"lang-"+d.lang:""}),d.text))},4:{t:["```","~~~"],o:Fr(Dp),i:0,u:d=>({attrs:v("code",d[3]||""),lang:d[2]||void 0,text:d[4],type:"3"})},5:{t:["`"],o:tn(CA),i:3,u:d=>({text:vr(d[2])}),l:(d,S,E)=>h("code",{key:E.key},d.text)},6:{t:["[^"],o:Fr(IA),i:0,u:d=>(g.push({footnote:d[2],identifier:d[1]}),{}),l:el},7:{t:["[^"],o:En(LA),i:1,u:d=>({target:"#"+r(d[1],Ii),text:d[1]}),l:(d,S,E)=>h("a",{key:E.key,href:o(d.target,"a","href")},h("sup",{key:E.key},d.text))},8:{t:["[ ]","[x]"],o:En(DA),i:1,u:d=>({completed:d[1].toLowerCase()==="x"}),l:(d,S,E)=>h("input",{checked:d.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Fr(t.enforceAtxHeadings?zp:jp),i:1,u:(d,S,E)=>({children:Zs(S,d[2],E),id:r(d[2],Ii),level:d[1].length}),l:(d,S,E)=>h("h"+d.level,{id:d.id,key:E.key},S(d.children,E))},10:{t:d=>{const S=d.indexOf(`
14
+ `);return S>0&&S<d.length-1&&(d[S+1]==="="||d[S+1]==="-")},o:Fr(Wp),i:0,u:(d,S,E)=>({children:Zs(S,d[1],E),level:d[2]==="="?1:2,type:"9"})},11:{t:["<"],o:_s(Yu),i:1,u(d,S,E){const[,R]=d[3].match(lO),O=RegExp("^"+R,"gm"),k=d[3].replace(O,""),B=c(l,k)?EO:Zs,L=d[1].toLowerCase(),M=SA.indexOf(L)!==-1,G=(M?L:d[1]).trim(),N={attrs:v(G,d[2]),noInnerParse:M,tag:G};if(E.inAnchor=E.inAnchor||L==="a",M)N.text=d[3];else{const I=E.inHTML;E.inHTML=!0,N.children=B(S,k,E),E.inHTML=I}return E.inAnchor=!1,N},l:(d,S,E)=>h(d.tag,On({key:E.key},d.attrs),d.text||(d.children?S(d.children,E):""))},13:{t:["<"],o:_s(Xu),i:1,u(d){const S=d[1].trim();return{attrs:v(S,d[2]||""),tag:S}},l:(d,S,E)=>h(d.tag,On({},d.attrs,{key:E.key}))},12:{t:["<!--"],o:_s(Bp),i:1,u:()=>({}),l:el},14:{t:["!["],o:tn(vO),i:1,u:d=>({alt:vr(d[1]),target:vr(d[2]),title:vr(d[3])}),l:(d,S,E)=>h("img",{key:E.key,alt:d.alt||void 0,title:d.title||void 0,src:o(d.target,"img","src")})},15:{t:["["],o:En(gO),i:3,u:(d,S,E)=>({children:SO(S,d[1],E),target:vr(d[2]),title:vr(d[3])}),l:(d,S,E)=>h("a",{key:E.key,href:o(d.target,"a","href"),title:d.title},S(d.children,E))},16:{t:["<"],o:En(BA),i:0,u(d){let S=d[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:(d,S)=>!S.inAnchor&&!t.disableAutoLink&&(qs(d,"http://")||qs(d,"https://")),o:En(WA),i:0,u:d=>({children:[{text:d[1],type:"27"}],target:d[1],title:void 0,type:"15"})},20:Hp(h,1),33:Hp(h,2),19:{t:[`
15
+ `],o:Fr(kA),i:3,u:Qu,l:()=>`
16
+ `},21:{o:pi(function(d,S){if(S.inline||S.simple||S.inHTML&&d.indexOf(`
17
17
 
18
18
  `)===-1&&S.prevCapture.indexOf(`
19
19
 
20
- `)===-1)return null;let _="",P=0;for(;;){const I=c.indexOf(`
21
- `,P),z=c.slice(P,I===-1?void 0:I+1);if(d(u,z)||(_+=z,I===-1||!z.trim()))break;P=I+1}const A=Yi(_);return A===""?null:[_,,A]}),i:3,u:Cu,l:(c,S,_)=>m("p",{key:_.key},S(c.children,_))},22:{t:["["],o:hr(Ux),i:0,u:c=>(v[c[1]]={target:c[2],title:c[4]},{}),l:Iu},23:{t:["!["],o:Kn(Bx),i:0,u:c=>({alt:c[1]?ln(c[1]):void 0,ref:c[2]}),l:(c,S,_)=>v[c.ref]?m("img",{key:_.key,alt:c.alt,src:o(v[c.ref].target,"img","src"),title:v[c.ref].title}):null},24:{t:c=>c[0]==="["&&c.indexOf("](")===-1,o:hr(zx),i:0,u:(c,S,_)=>({children:S(c[1],_),fallbackChildren:c[0],ref:c[2]}),l:(c,S,_)=>v[c.ref]?m("a",{key:_.key,href:o(v[c.ref].target,"a","href"),title:v[c.ref].title},S(c.children,_)):m("span",{key:_.key},c.fallbackChildren)},25:{t:["|"],o:Pn(sp),i:1,u:vO,l(c,S,_){const P=c;return m("table",{key:_.key},m("thead",null,m("tr",null,P.header.map(function(A,I){return m("th",{key:I,style:cp(P,I)},S(A,_))}))),m("tbody",null,P.cells.map(function(A,I){return m("tr",{key:I},A.map(function(z,L){return m("td",{key:L,style:cp(P,L)},S(z,_))}))})))}},27:{o:ni(function(c,S){let _;return Ta(c,":")&&(_=eO.exec(c)),_||rO.exec(c)}),i:4,u(c){const S=c[0];return{text:S.indexOf("&")===-1?S:S.replace(Lx,(_,P)=>n.namedCodesToUnicode[P]||_)}},l:c=>c.text},28:{t:["**","__"],o:Kn(Yx),i:2,u:(c,S,_)=>({children:S(c[2],_)}),l:(c,S,_)=>m("strong",{key:_.key},S(c.children,_))},29:{t:c=>{const S=c[0];return(S==="*"||S==="_")&&c[1]!==S},o:Kn(Xx),i:3,u:(c,S,_)=>({children:S(c[2],_)}),l:(c,S,_)=>m("em",{key:_.key},S(c.children,_))},30:{t:["\\"],o:Kn(tO),i:1,u:c=>({text:c[1],type:"27"})},31:{t:["=="],o:Kn(Jx),i:3,u:Cu,l:(c,S,_)=>m("mark",{key:_.key},S(c.children,_))},32:{t:["~~"],o:Kn(Qx),i:3,u:Cu,l:(c,S,_)=>m("del",{key:_.key},S(c.children,_))}};n.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const b=(function(c){var S=Object.keys(c);function _(P,A){var I=[];if(A.prevCapture=A.prevCapture||"",P.trim())for(;P;)for(var z=0;z<S.length;){var L=S[z],D=c[L];if(!D.t||pO(P,A,D.t)){var G=D.o(P,A);if(G&&G[0]){P=P.substring(G[0].length);var k=D.u(G,_,A);A.prevCapture+=G[0],k.type||(k.type=L),I.push(k);break}z++}else z++}return A.prevCapture="",I}return S.sort(function(P,A){return c[P].i-c[A].i||(P<A?-1:1)}),function(P,A){return _((function(I){return I.replace(Px,`
22
- `).replace(Ix,"").replace(qx," ")})(P),A)}})(y),f=(function(c,S){return function _(P,A={}){if(Array.isArray(P)){const I=A.key,z=[];let L=!1;for(let D=0;D<P.length;D++){A.key=D;const G=_(P[D],A),k=lp(G);k&&L?z[z.length-1]+=G:G!==null&&z.push(G),L=k}return A.key=I,z}return(function(I,z,L){const D=c[I.type].l;return S?S(()=>D(I,z,L),I,z,L):D(I,z,L)})(P,_,A)}})(y,n.renderRule),w=E(e);return p.length?m("div",null,w,m("footer",{key:"footer"},p.map(function(c){return m("div",{id:r(c.identifier,Ei),key:c.identifier},c.identifier,f(b(c.footnote,{inline:!0})))}))):w}const Da=e=>{let{children:n="",options:r}=e,o=(function(a,u){if(a==null)return{};var l,d,m={},E=Object.keys(a);for(d=0;d<E.length;d++)u.indexOf(l=E[d])>=0||(m[l]=a[l]);return m})(e,gx);return N.cloneElement(SO(n,r),o)},dp=({kind:e,customIcon:n})=>{if(n)return W.jsx(n,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return W.jsx(tt.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return W.jsx(W.Fragment,{children:W.jsx(tt.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return W.jsx(W.Fragment,{children:W.jsx(tt.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return W.jsx(W.Fragment,{children:W.jsx(tt.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},EO=({id:e,onClose:n,kind:r,message:o,markdown:a,customIcon:u})=>{const l=({className:d}={})=>W.jsx("button",{onClick:n,className:Ve("flex items-center justify-center p-1",d),children:W.jsx(tt.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return W.jsx("div",{className:Ve("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof o=="string"?W.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[W.jsxs("div",{className:"flex items-center gap-1",children:[W.jsx(dp,{kind:r,customIcon:u}),a?W.jsx(Da,{children:o}):W.jsx(W.Fragment,{children:o})]}),l()]}):W.jsxs("div",{className:"flex items-start",children:[W.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(d=>d.messages.length>0).map(d=>W.jsxs(W.Fragment,{children:[d.title&&W.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[W.jsx(dp,{kind:r,customIcon:u}),W.jsxs("span",{children:[d.title," :"]})]}),W.jsx("ul",{className:Ve("list-disc",{"px-12":d.title,"px-6":!d.title}),children:d.messages.map(m=>W.jsx("li",{children:a?W.jsx(Da,{children:m}):W.jsx(W.Fragment,{children:m})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},xv=({children:e,size:n,className:r,...o})=>W.jsx("div",{style:{"--width":`${n||24}px`},className:Ve("h-6 flex items-center pr-1 w-[--width]",r),...o,children:e});var Fu={},_i={},la={},pp;function Ov(){if(pp)return la;pp=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=r;let e;const n=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(n)}return la}var Hr={},xi={},Oi={},hp;function _O(){if(hp)return Oi;hp=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.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 Oi.default=e,Oi}var vp;function Za(){if(vp)return xi;vp=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.default=void 0;var e=n(_O());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){return typeof a=="string"&&e.default.test(a)}var o=r;return xi.default=o,xi}var mp;function Ga(){if(mp)return Hr;mp=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.default=void 0,Hr.unsafeStringify=o;var e=n(Za());function n(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 o(l,d=0){return r[l[d+0]]+r[l[d+1]]+r[l[d+2]]+r[l[d+3]]+"-"+r[l[d+4]]+r[l[d+5]]+"-"+r[l[d+6]]+r[l[d+7]]+"-"+r[l[d+8]]+r[l[d+9]]+"-"+r[l[d+10]]+r[l[d+11]]+r[l[d+12]]+r[l[d+13]]+r[l[d+14]]+r[l[d+15]]}function a(l,d=0){const m=o(l,d);if(!(0,e.default)(m))throw TypeError("Stringified UUID is invalid");return m}var u=a;return Hr.default=u,Hr}var gp;function xO(){if(gp)return _i;gp=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.default=void 0;var e=r(Ov()),n=Ga();function r(E){return E&&E.__esModule?E:{default:E}}let o,a,u=0,l=0;function d(E,g,p){let v=g&&p||0;const y=g||new Array(16);E=E||{};let b=E.node||o,f=E.clockseq!==void 0?E.clockseq:a;if(b==null||f==null){const A=E.random||(E.rng||e.default)();b==null&&(b=o=[A[0]|1,A[1],A[2],A[3],A[4],A[5]]),f==null&&(f=a=(A[6]<<8|A[7])&16383)}let w=E.msecs!==void 0?E.msecs:Date.now(),c=E.nsecs!==void 0?E.nsecs:l+1;const S=w-u+(c-l)/1e4;if(S<0&&E.clockseq===void 0&&(f=f+1&16383),(S<0||w>u)&&E.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=w,l=c,a=f,w+=122192928e5;const _=((w&268435455)*1e4+c)%4294967296;y[v++]=_>>>24&255,y[v++]=_>>>16&255,y[v++]=_>>>8&255,y[v++]=_&255;const P=w/4294967296*1e4&268435455;y[v++]=P>>>8&255,y[v++]=P&255,y[v++]=P>>>24&15|16,y[v++]=P>>>16&255,y[v++]=f>>>8|128,y[v++]=f&255;for(let A=0;A<6;++A)y[v+A]=b[A];return g||(0,n.unsafeStringify)(y)}var m=d;return _i.default=m,_i}var Ai={},Vn={},Ti={},yp;function Av(){if(yp)return Ti;yp=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=void 0;var e=n(Za());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let u;const l=new Uint8Array(16);return l[0]=(u=parseInt(a.slice(0,8),16))>>>24,l[1]=u>>>16&255,l[2]=u>>>8&255,l[3]=u&255,l[4]=(u=parseInt(a.slice(9,13),16))>>>8,l[5]=u&255,l[6]=(u=parseInt(a.slice(14,18),16))>>>8,l[7]=u&255,l[8]=(u=parseInt(a.slice(19,23),16))>>>8,l[9]=u&255,l[10]=(u=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=u/4294967296&255,l[12]=u>>>24&255,l[13]=u>>>16&255,l[14]=u>>>8&255,l[15]=u&255,l}var o=r;return Ti.default=o,Ti}var wp;function Tv(){if(wp)return Vn;wp=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.URL=Vn.DNS=void 0,Vn.default=l;var e=Ga(),n=r(Av());function r(d){return d&&d.__esModule?d:{default:d}}function o(d){d=unescape(encodeURIComponent(d));const m=[];for(let E=0;E<d.length;++E)m.push(d.charCodeAt(E));return m}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Vn.DNS=a;const u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Vn.URL=u;function l(d,m,E){function g(p,v,y,b){var f;if(typeof p=="string"&&(p=o(p)),typeof v=="string"&&(v=(0,n.default)(v)),((f=v)===null||f===void 0?void 0:f.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(v),w.set(p,v.length),w=E(w),w[6]=w[6]&15|m,w[8]=w[8]&63|128,y){b=b||0;for(let c=0;c<16;++c)y[b+c]=w[c];return y}return(0,e.unsafeStringify)(w)}try{g.name=d}catch{}return g.DNS=a,g.URL=u,g}return Vn}var Pi={},bp;function OO(){if(bp)return Pi;bp=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=void 0;function e(y){if(typeof y=="string"){const b=unescape(encodeURIComponent(y));y=new Uint8Array(b.length);for(let f=0;f<b.length;++f)y[f]=b.charCodeAt(f)}return n(o(a(y),y.length*8))}function n(y){const b=[],f=y.length*32,w="0123456789abcdef";for(let c=0;c<f;c+=8){const S=y[c>>5]>>>c%32&255,_=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);b.push(_)}return b}function r(y){return(y+64>>>9<<4)+14+1}function o(y,b){y[b>>5]|=128<<b%32,y[r(b)-1]=b;let f=1732584193,w=-271733879,c=-1732584194,S=271733878;for(let _=0;_<y.length;_+=16){const P=f,A=w,I=c,z=S;f=m(f,w,c,S,y[_],7,-680876936),S=m(S,f,w,c,y[_+1],12,-389564586),c=m(c,S,f,w,y[_+2],17,606105819),w=m(w,c,S,f,y[_+3],22,-1044525330),f=m(f,w,c,S,y[_+4],7,-176418897),S=m(S,f,w,c,y[_+5],12,1200080426),c=m(c,S,f,w,y[_+6],17,-1473231341),w=m(w,c,S,f,y[_+7],22,-45705983),f=m(f,w,c,S,y[_+8],7,1770035416),S=m(S,f,w,c,y[_+9],12,-1958414417),c=m(c,S,f,w,y[_+10],17,-42063),w=m(w,c,S,f,y[_+11],22,-1990404162),f=m(f,w,c,S,y[_+12],7,1804603682),S=m(S,f,w,c,y[_+13],12,-40341101),c=m(c,S,f,w,y[_+14],17,-1502002290),w=m(w,c,S,f,y[_+15],22,1236535329),f=E(f,w,c,S,y[_+1],5,-165796510),S=E(S,f,w,c,y[_+6],9,-1069501632),c=E(c,S,f,w,y[_+11],14,643717713),w=E(w,c,S,f,y[_],20,-373897302),f=E(f,w,c,S,y[_+5],5,-701558691),S=E(S,f,w,c,y[_+10],9,38016083),c=E(c,S,f,w,y[_+15],14,-660478335),w=E(w,c,S,f,y[_+4],20,-405537848),f=E(f,w,c,S,y[_+9],5,568446438),S=E(S,f,w,c,y[_+14],9,-1019803690),c=E(c,S,f,w,y[_+3],14,-187363961),w=E(w,c,S,f,y[_+8],20,1163531501),f=E(f,w,c,S,y[_+13],5,-1444681467),S=E(S,f,w,c,y[_+2],9,-51403784),c=E(c,S,f,w,y[_+7],14,1735328473),w=E(w,c,S,f,y[_+12],20,-1926607734),f=g(f,w,c,S,y[_+5],4,-378558),S=g(S,f,w,c,y[_+8],11,-2022574463),c=g(c,S,f,w,y[_+11],16,1839030562),w=g(w,c,S,f,y[_+14],23,-35309556),f=g(f,w,c,S,y[_+1],4,-1530992060),S=g(S,f,w,c,y[_+4],11,1272893353),c=g(c,S,f,w,y[_+7],16,-155497632),w=g(w,c,S,f,y[_+10],23,-1094730640),f=g(f,w,c,S,y[_+13],4,681279174),S=g(S,f,w,c,y[_],11,-358537222),c=g(c,S,f,w,y[_+3],16,-722521979),w=g(w,c,S,f,y[_+6],23,76029189),f=g(f,w,c,S,y[_+9],4,-640364487),S=g(S,f,w,c,y[_+12],11,-421815835),c=g(c,S,f,w,y[_+15],16,530742520),w=g(w,c,S,f,y[_+2],23,-995338651),f=p(f,w,c,S,y[_],6,-198630844),S=p(S,f,w,c,y[_+7],10,1126891415),c=p(c,S,f,w,y[_+14],15,-1416354905),w=p(w,c,S,f,y[_+5],21,-57434055),f=p(f,w,c,S,y[_+12],6,1700485571),S=p(S,f,w,c,y[_+3],10,-1894986606),c=p(c,S,f,w,y[_+10],15,-1051523),w=p(w,c,S,f,y[_+1],21,-2054922799),f=p(f,w,c,S,y[_+8],6,1873313359),S=p(S,f,w,c,y[_+15],10,-30611744),c=p(c,S,f,w,y[_+6],15,-1560198380),w=p(w,c,S,f,y[_+13],21,1309151649),f=p(f,w,c,S,y[_+4],6,-145523070),S=p(S,f,w,c,y[_+11],10,-1120210379),c=p(c,S,f,w,y[_+2],15,718787259),w=p(w,c,S,f,y[_+9],21,-343485551),f=u(f,P),w=u(w,A),c=u(c,I),S=u(S,z)}return[f,w,c,S]}function a(y){if(y.length===0)return[];const b=y.length*8,f=new Uint32Array(r(b));for(let w=0;w<b;w+=8)f[w>>5]|=(y[w/8]&255)<<w%32;return f}function u(y,b){const f=(y&65535)+(b&65535);return(y>>16)+(b>>16)+(f>>16)<<16|f&65535}function l(y,b){return y<<b|y>>>32-b}function d(y,b,f,w,c,S){return u(l(u(u(b,y),u(w,S)),c),f)}function m(y,b,f,w,c,S,_){return d(b&f|~b&w,y,b,c,S,_)}function E(y,b,f,w,c,S,_){return d(b&w|f&~w,y,b,c,S,_)}function g(y,b,f,w,c,S,_){return d(b^f^w,y,b,c,S,_)}function p(y,b,f,w,c,S,_){return d(f^(b|~w),y,b,c,S,_)}var v=e;return Pi.default=v,Pi}var Sp;function AO(){if(Sp)return Ai;Sp=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=void 0;var e=r(Tv()),n=r(OO());function r(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v3",48,n.default);return Ai.default=a,Ai}var Ci={},Ri={},Ep;function TO(){if(Ep)return Ri;Ep=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.default=void 0;var n={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Ri.default=n,Ri}var _p;function PO(){if(_p)return Ci;_p=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=void 0;var e=o(TO()),n=o(Ov()),r=Ga();function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d,m){if(e.default.randomUUID&&!d&&!l)return e.default.randomUUID();l=l||{};const E=l.random||(l.rng||n.default)();if(E[6]=E[6]&15|64,E[8]=E[8]&63|128,d){m=m||0;for(let g=0;g<16;++g)d[m+g]=E[g];return d}return(0,r.unsafeStringify)(E)}var u=a;return Ci.default=u,Ci}var Ii={},Mi={},xp;function CO(){if(xp)return Mi;xp=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;function e(a,u,l,d){switch(a){case 0:return u&l^~u&d;case 1:return u^l^d;case 2:return u&l^u&d^l&d;case 3:return u^l^d}}function n(a,u){return a<<u|a>>>32-u}function r(a){const u=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const g=unescape(encodeURIComponent(a));a=[];for(let p=0;p<g.length;++p)a.push(g.charCodeAt(p))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const d=a.length/4+2,m=Math.ceil(d/16),E=new Array(m);for(let g=0;g<m;++g){const p=new Uint32Array(16);for(let v=0;v<16;++v)p[v]=a[g*64+v*4]<<24|a[g*64+v*4+1]<<16|a[g*64+v*4+2]<<8|a[g*64+v*4+3];E[g]=p}E[m-1][14]=(a.length-1)*8/Math.pow(2,32),E[m-1][14]=Math.floor(E[m-1][14]),E[m-1][15]=(a.length-1)*8&4294967295;for(let g=0;g<m;++g){const p=new Uint32Array(80);for(let c=0;c<16;++c)p[c]=E[g][c];for(let c=16;c<80;++c)p[c]=n(p[c-3]^p[c-8]^p[c-14]^p[c-16],1);let v=l[0],y=l[1],b=l[2],f=l[3],w=l[4];for(let c=0;c<80;++c){const S=Math.floor(c/20),_=n(v,5)+e(S,y,b,f)+w+u[S]+p[c]>>>0;w=f,f=b,b=n(y,30)>>>0,y=v,v=_}l[0]=l[0]+v>>>0,l[1]=l[1]+y>>>0,l[2]=l[2]+b>>>0,l[3]=l[3]+f>>>0,l[4]=l[4]+w>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var o=r;return Mi.default=o,Mi}var Op;function RO(){if(Op)return Ii;Op=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var e=r(Tv()),n=r(CO());function r(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v5",80,n.default);return Ii.default=a,Ii}var Fi={},Ap;function IO(){if(Ap)return Fi;Ap=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Fi.default=e,Fi}var Li={},Tp;function MO(){if(Tp)return Li;Tp=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=void 0;var e=n(Za());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var o=r;return Li.default=o,Li}var Pp;function FO(){return Pp||(Pp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var n=g(xO()),r=g(AO()),o=g(PO()),a=g(RO()),u=g(IO()),l=g(MO()),d=g(Za()),m=g(Ga()),E=g(Av());function g(p){return p&&p.__esModule?p:{default:p}}})(Fu)),Fu}var Lu,Cp;function LO(){if(Cp)return Lu;Cp=1;function e(n,r){if(!n||!r||!n.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=n,this.dstAlphabet=r}return e.prototype.convert=function(n){var r,o,a,u={},l=this.srcAlphabet.length,d=this.dstAlphabet.length,m=n.length,E=typeof n=="string"?"":[];if(!this.isValid(n))throw new Error('Number "'+n+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return n;for(r=0;r<m;r++)u[r]=this.srcAlphabet.indexOf(n[r]);do{for(o=0,a=0,r=0;r<m;r++)o=o*l+u[r],o>=d?(u[a++]=parseInt(o/d,10),o=o%d):a>0&&(u[a++]=0);m=a,E=this.dstAlphabet.slice(o,o+1).concat(E)}while(a!==0);return E},e.prototype.isValid=function(n){for(var r=0;r<n.length;++r)if(this.srcAlphabet.indexOf(n[r])===-1)return!1;return!0},Lu=e,Lu}var Du,Rp;function DO(){if(Rp)return Du;Rp=1;var e=LO();function n(r,o){var a=new e(r,o);return function(u){return a.convert(u)}}return n.BIN="01",n.OCT="01234567",n.DEC="0123456789",n.HEX="0123456789abcdef",Du=n,Du}var $u,Ip;function $O(){if(Ip)return $u;Ip=1;const{v4:e,validate:n}=FO(),r=DO(),o={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let u;const l=(E,g,p)=>{const v=g(E.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?v:v.padStart(p.shortIdLength,p.paddingChar)},d=(E,g)=>{const v=g(E).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[v[1],v[2],v[3],v[4],v[5]].join("-")},m=E=>Math.ceil(Math.log(2**128)/Math.log(E));return $u=(()=>{const E=(g,p)=>{const v=g||o.flickrBase58,y={...a,...p};if([...new Set(Array.from(v))].length!==v.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const b=m(v.length),f={shortIdLength:b,consistentLength:y.consistentLength,paddingChar:v[0]},w=r(r.HEX,v),c=r(v,r.HEX),S=()=>l(e(),w,f),P={alphabet:v,fromUUID:A=>l(A,w,f),maxLength:b,generate:S,new:S,toUUID:A=>d(A,c),uuid:e,validate:(A,I=!1)=>{if(!A||typeof A!="string")return!1;const z=y.consistentLength?A.length===b:A.length<=b,L=A.split("").every(D=>v.includes(D));return I===!1?z&&L:z&&L&&n(d(A,c))}};return Object.freeze(P),P};return E.constants=o,E.uuid=e,E.generate=()=>(u||(u=E(o.flickrBase58).generate),u()),E})(),$u}var Nl=$O();const Pv=({depth:e,height:n=24,width:r=11,showLines:o=!0,stroke:a="rgb(241, 245, 249)"})=>{const u=`indent_line_${Nl.generate()}`;return W.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:n,children:[W.jsx("defs",{children:W.jsx("pattern",{id:u,x:"0",y:"0",width:r,height:n,patternUnits:"userSpaceOnUse",children:W.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:n,stroke:a})})}),o?W.jsx("rect",{fill:`url(#${u})`,x:"0",y:"0",width:`${11*e}`,height:n}):W.jsx("rect",{fill:o?`url(#${u})`:"",x:"0",y:"0",width:0,height:n})]})},Cv=({show:e,expanded:n,onClick:r,variant:o="arrow"})=>e?W.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(o){case"arrow":return W.jsx(tt.FdDown,{className:Ve(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":n,"-rotate-90":!n}])});case"caret":return n?W.jsx(tt.FdDown,{}):W.jsx(tt.FdRight,{});default:return W.jsx(tt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):W.jsx("div",{className:"flex h-6 w-3 items-center"}),kl=({node:e,depth:n,expandedKeys:r,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:d})=>{var y;const{key:m,children:E}=e,g=B.useMemo(()=>({expanded:r.includes(e.key),selected:o.includes(e.key)}),[r,e.key,o]),p=l&&typeof l=="function"?l(e,n,g,a,u):jO(e,n,g,d);return!((y=e.options)!=null&&y.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"flex items-center space-x-2",children:p},m),kO(E||[],n,u,r,o,g.expanded,a,d,l)]}):null},NO=function(e,n){var l;const{title:r,icon:o,subtitle:a}=e;let u=null;return o&&(u=W.jsx(xv,{children:o})),W.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:()=>{n&&n(e)},children:[u,W.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&W.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},kO=function(e,n,r,o,a,u,l,d,m){return e.length&&u?e.map(E=>W.jsx(kl,{actions:l,node:E,searchQuery:r,depth:n+1,expandedKeys:o,selectedKeys:a,onNodeClick:d,renderNode:m},E.key)):null},jO=function(e,n,r,o){return W.jsxs(W.Fragment,{children:[W.jsx(Pv,{showLines:!0,depth:n}),W.jsx(Cv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),NO(e,o)]})},fa=e=>n=>e===n,WO=function({treeData:n,renderNode:r,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:l,expandCondition:d="always",encapsulated:m,className:E}){const[g,p]=B.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));B.useEffect(()=>{d==="when-collapsed"&&g.expandedKeys.length>0||p({...g,expandedKeys:l||g.expandedKeys})},[l]);const v=B.useCallback(c=>{if(!c)return;const S=g.expandedKeys.findIndex(fa(c.key));let _=[];S===-1?(_=[...g.expandedKeys,c.key],p(()=>({...g,expandedKeys:_})),a&&a(_)):(_=g.expandedKeys.filter(P=>P!==c.key),p(()=>({...g,expandedKeys:_})),a&&a(_))},[g]),y=B.useCallback(c=>{var _;if(!((_=c==null?void 0:c.options)!=null&&_.selectable))return;g.selectedKeys.findIndex(fa(c.key))===-1&&p({...g,selectedKeys:[...g.selectedKeys,c.key]})},[g]),b=B.useCallback(c=>{var _;if(!((_=c==null?void 0:c.options)!=null&&_.selectable))return;g.selectedKeys.findIndex(fa(c.key))===-1&&p({...g,selectedKeys:[c.key]})},[g]),f=B.useCallback(c=>{var _;if(!((_=c==null?void 0:c.options)!=null&&_.selectable)){p({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(fa(c.key))!==-1&&p({...g,selectedKeys:g.selectedKeys.filter(P=>P!==c.key)})},[g]),w=B.useMemo(()=>({expand:v,select:y,selectSingle:b,deselect:f}),[f,v,y,b]);return W.jsx("div",{className:Ve("fd-tree",E,{"pl-2 mb-1 rounded border bg-grey-900 p-1":m}),children:n.map(c=>W.jsx(kl,{node:c,searchQuery:u||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:w,renderNode:r,onNodeClick:o},c.key))})};function UO(e){return e.of&&e.children?W.jsx(W.Fragment,{children:e.children}):null}function ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ot.apply(null,arguments)}function BO(e){for(var n=0,r,o=0,a=e.length;a>=4;++o,a-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(e.charCodeAt(o+2)&255)<<16;case 2:n^=(e.charCodeAt(o+1)&255)<<8;case 1:n^=e.charCodeAt(o)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var zO={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 Rv(e){var n=Object.create(null);return function(r){return n[r]===void 0&&(n[r]=e(r)),n[r]}}var HO=/[A-Z]|^ms/g,qO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Iv=function(n){return n.charCodeAt(1)===45},Mp=function(n){return n!=null&&typeof n!="boolean"},Nu=Rv(function(e){return Iv(e)?e:e.replace(HO,"-$&").toLowerCase()}),Fp=function(n,r){switch(n){case"animation":case"animationName":if(typeof r=="string")return r.replace(qO,function(o,a,u){return dn={name:a,styles:u,next:dn},a})}return zO[n]!==1&&!Iv(n)&&typeof r=="number"&&r!==0?r+"px":r};function eo(e,n,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return dn={name:a.name,styles:a.styles,next:dn},a.name;var u=r;if(u.styles!==void 0){var l=u.next;if(l!==void 0)for(;l!==void 0;)dn={name:l.name,styles:l.styles,next:dn},l=l.next;var d=u.styles+";";return d}return ZO(e,n,r)}case"function":{if(e!==void 0){var m=dn,E=r(e);return dn=m,eo(e,n,E)}break}}var g=r;if(n==null)return g;var p=n[g];return p!==void 0?p:g}function ZO(e,n,r){var o="";if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=eo(e,n,r[a])+";";else for(var u in r){var l=r[u];if(typeof l!="object"){var d=l;n!=null&&n[d]!==void 0?o+=u+"{"+n[d]+"}":Mp(d)&&(o+=Nu(u)+":"+Fp(u,d)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(n==null||n[l[0]]===void 0))for(var m=0;m<l.length;m++)Mp(l[m])&&(o+=Nu(u)+":"+Fp(u,l[m])+";");else{var E=eo(e,n,l);switch(u){case"animation":case"animationName":{o+=Nu(u)+":"+E+";";break}default:o+=u+"{"+E+"}"}}}return o}var Lp=/label:\s*([^\s;{]+)\s*(;|$)/g,dn;function GO(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";dn=void 0;var u=e[0];if(u==null||u.raw===void 0)o=!1,a+=eo(r,n,u);else{var l=u;a+=l[0]}for(var d=1;d<e.length;d++)if(a+=eo(r,n,e[d]),o){var m=u;a+=m[d]}Lp.lastIndex=0;for(var E="",g;(g=Lp.exec(a))!==null;)E+="-"+g[1];var p=BO(a)+E;return{name:p,styles:a,next:dn}}var KO=function(n){return n()},VO=N.useInsertionEffect?N.useInsertionEffect:!1,YO=VO||KO,XO=!0;function JO(e,n,r){var o="";return r.split(" ").forEach(function(a){e[a]!==void 0?n.push(e[a]+";"):a&&(o+=a+" ")}),o}var Mv=function(n,r,o){var a=n.key+"-"+r.name;(o===!1||XO===!1)&&n.registered[a]===void 0&&(n.registered[a]=r.styles)},QO=function(n,r,o){Mv(n,r,o);var a=n.key+"-"+r.name;if(n.inserted[r.name]===void 0){var u=r;do n.insert(r===u?"."+a:"",u,n.sheet,!0),u=u.next;while(u!==void 0)}},eA=/^((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)-.*))$/,tA=Rv(function(e){return eA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),nA=tA,rA=function(n){return n!=="theme"},Dp=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?nA:rA},$p=function(n,r,o){var a;if(r){var u=r.shouldForwardProp;a=n.__emotion_forwardProp&&u?function(l){return n.__emotion_forwardProp(l)&&u(l)}:u}return typeof a!="function"&&o&&(a=n.__emotion_forwardProp),a},iA=function(n){var r=n.cache,o=n.serialized,a=n.isStringTag;return Mv(r,o,a),YO(function(){return QO(r,o,a)}),null},oA=function e(n,r){var o=n.__emotion_real===n,a=o&&n.__emotion_base||n,u,l;r!==void 0&&(u=r.label,l=r.target);var d=$p(n,r,o),m=d||Dp(a),E=!m("as");return function(){var g=arguments,p=o&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(u!==void 0&&p.push("label:"+u+";"),g[0]==null||g[0].raw===void 0)p.push.apply(p,g);else{var v=g[0];p.push(v[0]);for(var y=g.length,b=1;b<y;b++)p.push(g[b],v[b])}var f=fl.withEmotionCache(function(w,c,S){var _=E&&w.as||a,P="",A=[],I=w;if(w.theme==null){I={};for(var z in w)I[z]=w[z];I.theme=N.useContext(fl.ThemeContext)}typeof w.className=="string"?P=JO(c.registered,A,w.className):w.className!=null&&(P=w.className+" ");var L=GO(p.concat(A),c.registered,I);P+=c.key+"-"+L.name,l!==void 0&&(P+=" "+l);var D=E&&d===void 0?Dp(_):m,G={};for(var k in w)E&&k==="as"||D(k)&&(G[k]=w[k]);return G.className=P,S&&(G.ref=S),N.createElement(N.Fragment,null,N.createElement(iA,{cache:c,serialized:L,isStringTag:typeof _=="string"}),N.createElement(_,G))});return f.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",f.defaultProps=n.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=p,f.__emotion_forwardProp=d,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(w,c){var S=e(w,ot({},r,c,{shouldForwardProp:$p(f,c,!0)}));return S.apply(void 0,p)},f}},aA=["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"],$a=oA.bind(null);aA.forEach(function(e){$a[e]=$a(e)});var sA=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},qr=new WeakMap,ca=new WeakMap,da={},ku=0,Fv=function(e){return e&&(e.host||Fv(e.parentNode))},uA=function(e,n){return n.map(function(r){if(e.contains(r))return r;var o=Fv(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},lA=function(e,n,r,o){var a=uA(n,Array.isArray(e)?e:[e]);da[r]||(da[r]=new WeakMap);var u=da[r],l=[],d=new Set,m=new Set(a),E=function(p){!p||d.has(p)||(d.add(p),E(p.parentNode))};a.forEach(E);var g=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(v){if(d.has(v))g(v);else try{var y=v.getAttribute(o),b=y!==null&&y!=="false",f=(qr.get(v)||0)+1,w=(u.get(v)||0)+1;qr.set(v,f),u.set(v,w),l.push(v),f===1&&b&&ca.set(v,!0),w===1&&v.setAttribute(r,"true"),b||v.setAttribute(o,"true")}catch(c){console.error("aria-hidden: cannot operate on ",v,c)}})};return g(n),d.clear(),ku++,function(){l.forEach(function(p){var v=qr.get(p)-1,y=u.get(p)-1;qr.set(p,v),u.set(p,y),v||(ca.has(p)||p.removeAttribute(o),ca.delete(p)),y||p.removeAttribute(r)}),ku--,ku||(qr=new WeakMap,qr=new WeakMap,ca=new WeakMap,da={})}},fA=function(e,n,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=sA(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),lA(o,a,r,"aria-hidden")):function(){return null}},pl=function(e,n){return pl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},pl(e,n)};function Ka(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");pl(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var pn=function(){return pn=Object.assign||function(n){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},pn.apply(this,arguments)};function Lv(e,n){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(r[o[a]]=e[o[a]]);return r}function hl(e){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&e[n],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function vl(e,n){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),a,u=[],l;try{for(;(n===void 0||n-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(d){l={error:d}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(l)throw l.error}}return u}function Na(e,n,r){if(r||arguments.length===2)for(var o=0,a=n.length,u;o<a;o++)(u||!(o in n))&&(u||(u=Array.prototype.slice.call(n,0,o)),u[o]=n[o]);return e.concat(u||Array.prototype.slice.call(n))}var Ca="right-scroll-bar-position",Ra="width-before-scroll-bar",cA="with-scroll-bars-hidden",dA="--removed-body-scroll-bar-size";function ju(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function pA(e,n){var r=B.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(o){var a=r.value;a!==o&&(r.value=o,r.callback(o,a))}}}})[0];return r.callback=n,r.facade}var hA=typeof window<"u"?N.useLayoutEffect:N.useEffect,Np=new WeakMap;function vA(e,n){var r=pA(null,function(o){return e.forEach(function(a){return ju(a,o)})});return hA(function(){var o=Np.get(r);if(o){var a=new Set(o),u=new Set(e),l=r.current;a.forEach(function(d){u.has(d)||ju(d,null)}),u.forEach(function(d){a.has(d)||ju(d,l)})}Np.set(r,e)},[e]),r}function mA(e){return e}function gA(e,n){n===void 0&&(n=mA);var r=[],o=!1,a={read:function(){if(o)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(u){var l=n(u,o);return r.push(l),function(){r=r.filter(function(d){return d!==l})}},assignSyncMedium:function(u){for(o=!0;r.length;){var l=r;r=[],l.forEach(u)}r={push:function(d){return u(d)},filter:function(){return r}}},assignMedium:function(u){o=!0;var l=[];if(r.length){var d=r;r=[],d.forEach(u),l=r}var m=function(){var g=l;l=[],g.forEach(u)},E=function(){return Promise.resolve().then(m)};E(),r={push:function(g){l.push(g),E()},filter:function(g){return l=l.filter(g),r}}}};return a}function yA(e){e===void 0&&(e={});var n=gA(null);return n.options=pn({async:!0,ssr:!1},e),n}var Dv=function(e){var n=e.sideCar,r=Lv(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return N.createElement(o,pn({},r))};Dv.isSideCarExport=!0;function wA(e,n){return e.useMedium(n),Dv}var $v=yA(),Wu=function(){},Va=N.forwardRef(function(e,n){var r=N.useRef(null),o=N.useState({onScrollCapture:Wu,onWheelCapture:Wu,onTouchMoveCapture:Wu}),a=o[0],u=o[1],l=e.forwardProps,d=e.children,m=e.className,E=e.removeScrollBar,g=e.enabled,p=e.shards,v=e.sideCar,y=e.noRelative,b=e.noIsolation,f=e.inert,w=e.allowPinchZoom,c=e.as,S=c===void 0?"div":c,_=e.gapMode,P=Lv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=v,I=vA([r,n]),z=pn(pn({},P),a);return N.createElement(N.Fragment,null,g&&N.createElement(A,{sideCar:$v,removeScrollBar:E,shards:p,noRelative:y,noIsolation:b,inert:f,setCallbacks:u,allowPinchZoom:!!w,lockRef:r,gapMode:_}),l?N.cloneElement(N.Children.only(d),pn(pn({},z),{ref:I})):N.createElement(S,pn({},z,{className:m,ref:I}),d))});Va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Va.classNames={fullWidth:Ra,zeroRight:Ca};var bA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=bA();return n&&e.setAttribute("nonce",n),e}function EA(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function _A(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var xA=function(){var e=0,n=null;return{add:function(r){e==0&&(n=SA())&&(EA(n,r),_A(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},OA=function(){var e=xA();return function(n,r){N.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},Nv=function(){var e=OA(),n=function(r){var o=r.styles,a=r.dynamic;return e(o,a),null};return n},AA={left:0,top:0,right:0,gap:0},Uu=function(e){return parseInt(e||"",10)||0},TA=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],a=n[e==="padding"?"paddingRight":"marginRight"];return[Uu(r),Uu(o),Uu(a)]},PA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return AA;var n=TA(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-r+n[2]-n[0])}},CA=Nv(),Vr="data-scroll-locked",RA=function(e,n,r,o){var a=e.left,u=e.top,l=e.right,d=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(cA,` {
20
+ `)===-1)return null;let E="",R=0;for(;;){const k=d.indexOf(`
21
+ `,R),B=d.slice(R,k===-1?void 0:k+1);if(c(a,B)||(E+=B,k===-1||!B.trim()))break;R=k+1}const O=co(E);return O===""?null:[E,,O]}),i:3,u:Ju,l:(d,S,E)=>h("p",{key:E.key},S(d.children,E))},22:{t:["["],o:En(qA),i:0,u:d=>(p[d[1]]={target:d[2],title:d[4]},{}),l:el},23:{t:["!["],o:tn(ZA),i:0,u:d=>({alt:d[1]?vr(d[1]):void 0,ref:d[2]}),l:(d,S,E)=>p[d.ref]?h("img",{key:E.key,alt:d.alt,src:o(p[d.ref].target,"img","src"),title:p[d.ref].title}):null},24:{t:d=>d[0]==="["&&d.indexOf("](")===-1,o:En(GA),i:0,u:(d,S,E)=>({children:S(d[1],E),fallbackChildren:d[0],ref:d[2]}),l:(d,S,E)=>p[d.ref]?h("a",{key:E.key,href:o(p[d.ref].target,"a","href"),title:p[d.ref].title},S(d.children,E)):h("span",{key:E.key},d.fallbackChildren)},25:{t:["|"],o:Fr(Up),i:1,u:wO,l(d,S,E){const R=d;return h("table",{key:E.key},h("thead",null,h("tr",null,R.header.map(function(O,k){return h("th",{key:k,style:Gp(R,k)},S(O,E))}))),h("tbody",null,R.cells.map(function(O,k){return h("tr",{key:k},O.map(function(B,L){return h("td",{key:L,style:Gp(R,L)},S(B,E))}))})))}},27:{o:pi(function(d,S){let E;return qs(d,":")&&(E=iO.exec(d)),E||aO.exec(d)}),i:4,u(d){const S=d[0];return{text:S.indexOf("&")===-1?S:S.replace(NA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:d=>d.text},28:{t:["**","__"],o:tn(eO),i:2,u:(d,S,E)=>({children:S(d[2],E)}),l:(d,S,E)=>h("strong",{key:E.key},S(d.children,E))},29:{t:d=>{const S=d[0];return(S==="*"||S==="_")&&d[1]!==S},o:tn(tO),i:3,u:(d,S,E)=>({children:S(d[2],E)}),l:(d,S,E)=>h("em",{key:E.key},S(d.children,E))},30:{t:["\\"],o:tn(oO),i:1,u:d=>({text:d[1],type:"27"})},31:{t:["=="],o:tn(rO),i:3,u:Ju,l:(d,S,E)=>h("mark",{key:E.key},S(d.children,E))},32:{t:["~~"],o:tn(nO),i:3,u:Ju,l:(d,S,E)=>h("del",{key:E.key},S(d.children,E))}};t.disableParsingRawHTML===!0&&(delete w[11],delete w[13]);const x=(function(d){var S=Object.keys(d);function E(R,O){var k=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var B=0;B<S.length;){var L=S[B],M=d[L];if(!M.t||mO(R,O,M.t)){var G=M.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var N=M.u(G,E,O);O.prevCapture+=G[0],N.type||(N.type=L),k.push(N);break}B++}else B++}return O.prevCapture="",k}return S.sort(function(R,O){return d[R].i-d[O].i||(R<O?-1:1)}),function(R,O){return E((function(k){return k.replace($A,`
22
+ `).replace(MA,"").replace(VA," ")})(R),O)}})(w),f=(function(d,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,B=[];let L=!1;for(let M=0;M<R.length;M++){O.key=M;const G=E(R[M],O),N=qp(G);N&&L?B[B.length-1]+=G:G!==null&&B.push(G),L=N}return O.key=k,B}return(function(k,B,L){const M=d[k.type].l;return S?S(()=>M(k,B,L),k,B,L):M(k,B,L)})(R,E,O)}})(w,t.renderRule),b=y(e);return g.length?h("div",null,b,h("footer",{key:"footer"},g.map(function(d){return h("div",{id:r(d.identifier,Ii),key:d.identifier},d.identifier,f(x(d.footnote,{inline:!0})))}))):b}const Qs=e=>{let{children:t="",options:r}=e,o=(function(s,a){if(s==null)return{};var l,c,h={},y=Object.keys(s);for(c=0;c<y.length;c++)a.indexOf(l=y[c])>=0||(h[l]=s[l]);return h})(e,xA);return D.cloneElement(AO(t,r),o)},Kp=({kind:e,customIcon:t})=>{if(t)return z.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return z.jsx(st.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return z.jsx(z.Fragment,{children:z.jsx(st.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return z.jsx(z.Fragment,{children:z.jsx(st.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return z.jsx(z.Fragment,{children:z.jsx(st.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},OO=({id:e,onClose:t,kind:r,message:o,markdown:s,customIcon:a})=>{const l=({className:c}={})=>z.jsx("button",{onClick:t,className:tt("flex items-center justify-center p-1",c),children:z.jsx(st.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return z.jsx("div",{className:tt("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof o=="string"?z.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[z.jsxs("div",{className:"flex items-center gap-1",children:[z.jsx(Kp,{kind:r,customIcon:a}),s?z.jsx(Qs,{children:o}):z.jsx(z.Fragment,{children:o})]}),l()]}):z.jsxs("div",{className:"flex items-start",children:[z.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(c=>c.messages.length>0).map(c=>z.jsxs(z.Fragment,{children:[c.title&&z.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[z.jsx(Kp,{kind:r,customIcon:a}),z.jsxs("span",{children:[c.title," :"]})]}),z.jsx("ul",{className:tt("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(h=>z.jsx("li",{children:s?z.jsx(Qs,{children:h}):z.jsx(z.Fragment,{children:h})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},gv=({children:e,size:t,className:r,...o})=>z.jsx("div",{style:{"--width":`${t||24}px`},className:tt("h-6 flex items-center pr-1 w-[--width]",r),...o,children:e});var rl={},Li={},As={},Vp;function vv(){if(Vp)return As;Vp=1,Object.defineProperty(As,"__esModule",{value:!0}),As.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 As}var ti={},Mi={},Fi={},Yp;function TO(){if(Yp)return Fi;Yp=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.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 Fi.default=e,Fi}var Xp;function pa(){if(Xp)return Mi;Xp=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var e=t(TO());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var o=r;return Mi.default=o,Mi}var Jp;function ha(){if(Jp)return ti;Jp=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=void 0,ti.unsafeStringify=o;var e=t(pa());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 o(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function s(l,c=0){const h=o(l,c);if(!(0,e.default)(h))throw TypeError("Stringified UUID is invalid");return h}var a=s;return ti.default=a,ti}var Qp;function RO(){if(Qp)return Li;Qp=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=void 0;var e=r(vv()),t=ha();function r(y){return y&&y.__esModule?y:{default:y}}let o,s,a=0,l=0;function c(y,v,g){let p=v&&g||0;const w=v||new Array(16);y=y||{};let x=y.node||o,f=y.clockseq!==void 0?y.clockseq:s;if(x==null||f==null){const O=y.random||(y.rng||e.default)();x==null&&(x=o=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),f==null&&(f=s=(O[6]<<8|O[7])&16383)}let b=y.msecs!==void 0?y.msecs:Date.now(),d=y.nsecs!==void 0?y.nsecs:l+1;const S=b-a+(d-l)/1e4;if(S<0&&y.clockseq===void 0&&(f=f+1&16383),(S<0||b>a)&&y.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=b,l=d,s=f,b+=122192928e5;const E=((b&268435455)*1e4+d)%4294967296;w[p++]=E>>>24&255,w[p++]=E>>>16&255,w[p++]=E>>>8&255,w[p++]=E&255;const R=b/4294967296*1e4&268435455;w[p++]=R>>>8&255,w[p++]=R&255,w[p++]=R>>>24&15|16,w[p++]=R>>>16&255,w[p++]=f>>>8|128,w[p++]=f&255;for(let O=0;O<6;++O)w[p+O]=x[O];return v||(0,t.unsafeStringify)(w)}var h=c;return Li.default=h,Li}var Di={},rn={},Ni={},eh;function mv(){if(eh)return Ni;eh=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var e=t(pa());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(s.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(s.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(s.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(s.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var o=r;return Ni.default=o,Ni}var th;function yv(){if(th)return rn;th=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.URL=rn.DNS=void 0,rn.default=l;var e=ha(),t=r(mv());function r(c){return c&&c.__esModule?c:{default:c}}function o(c){c=unescape(encodeURIComponent(c));const h=[];for(let y=0;y<c.length;++y)h.push(c.charCodeAt(y));return h}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";rn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";rn.URL=a;function l(c,h,y){function v(g,p,w,x){var f;if(typeof g=="string"&&(g=o(g)),typeof p=="string"&&(p=(0,t.default)(p)),((f=p)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+g.length);if(b.set(p),b.set(g,p.length),b=y(b),b[6]=b[6]&15|h,b[8]=b[8]&63|128,w){x=x||0;for(let d=0;d<16;++d)w[x+d]=b[d];return w}return(0,e.unsafeStringify)(b)}try{v.name=c}catch{}return v.DNS=s,v.URL=a,v}return rn}var ji={},rh;function PO(){if(rh)return ji;rh=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=void 0;function e(w){if(typeof w=="string"){const x=unescape(encodeURIComponent(w));w=new Uint8Array(x.length);for(let f=0;f<x.length;++f)w[f]=x.charCodeAt(f)}return t(o(s(w),w.length*8))}function t(w){const x=[],f=w.length*32,b="0123456789abcdef";for(let d=0;d<f;d+=8){const S=w[d>>5]>>>d%32&255,E=parseInt(b.charAt(S>>>4&15)+b.charAt(S&15),16);x.push(E)}return x}function r(w){return(w+64>>>9<<4)+14+1}function o(w,x){w[x>>5]|=128<<x%32,w[r(x)-1]=x;let f=1732584193,b=-271733879,d=-1732584194,S=271733878;for(let E=0;E<w.length;E+=16){const R=f,O=b,k=d,B=S;f=h(f,b,d,S,w[E],7,-680876936),S=h(S,f,b,d,w[E+1],12,-389564586),d=h(d,S,f,b,w[E+2],17,606105819),b=h(b,d,S,f,w[E+3],22,-1044525330),f=h(f,b,d,S,w[E+4],7,-176418897),S=h(S,f,b,d,w[E+5],12,1200080426),d=h(d,S,f,b,w[E+6],17,-1473231341),b=h(b,d,S,f,w[E+7],22,-45705983),f=h(f,b,d,S,w[E+8],7,1770035416),S=h(S,f,b,d,w[E+9],12,-1958414417),d=h(d,S,f,b,w[E+10],17,-42063),b=h(b,d,S,f,w[E+11],22,-1990404162),f=h(f,b,d,S,w[E+12],7,1804603682),S=h(S,f,b,d,w[E+13],12,-40341101),d=h(d,S,f,b,w[E+14],17,-1502002290),b=h(b,d,S,f,w[E+15],22,1236535329),f=y(f,b,d,S,w[E+1],5,-165796510),S=y(S,f,b,d,w[E+6],9,-1069501632),d=y(d,S,f,b,w[E+11],14,643717713),b=y(b,d,S,f,w[E],20,-373897302),f=y(f,b,d,S,w[E+5],5,-701558691),S=y(S,f,b,d,w[E+10],9,38016083),d=y(d,S,f,b,w[E+15],14,-660478335),b=y(b,d,S,f,w[E+4],20,-405537848),f=y(f,b,d,S,w[E+9],5,568446438),S=y(S,f,b,d,w[E+14],9,-1019803690),d=y(d,S,f,b,w[E+3],14,-187363961),b=y(b,d,S,f,w[E+8],20,1163531501),f=y(f,b,d,S,w[E+13],5,-1444681467),S=y(S,f,b,d,w[E+2],9,-51403784),d=y(d,S,f,b,w[E+7],14,1735328473),b=y(b,d,S,f,w[E+12],20,-1926607734),f=v(f,b,d,S,w[E+5],4,-378558),S=v(S,f,b,d,w[E+8],11,-2022574463),d=v(d,S,f,b,w[E+11],16,1839030562),b=v(b,d,S,f,w[E+14],23,-35309556),f=v(f,b,d,S,w[E+1],4,-1530992060),S=v(S,f,b,d,w[E+4],11,1272893353),d=v(d,S,f,b,w[E+7],16,-155497632),b=v(b,d,S,f,w[E+10],23,-1094730640),f=v(f,b,d,S,w[E+13],4,681279174),S=v(S,f,b,d,w[E],11,-358537222),d=v(d,S,f,b,w[E+3],16,-722521979),b=v(b,d,S,f,w[E+6],23,76029189),f=v(f,b,d,S,w[E+9],4,-640364487),S=v(S,f,b,d,w[E+12],11,-421815835),d=v(d,S,f,b,w[E+15],16,530742520),b=v(b,d,S,f,w[E+2],23,-995338651),f=g(f,b,d,S,w[E],6,-198630844),S=g(S,f,b,d,w[E+7],10,1126891415),d=g(d,S,f,b,w[E+14],15,-1416354905),b=g(b,d,S,f,w[E+5],21,-57434055),f=g(f,b,d,S,w[E+12],6,1700485571),S=g(S,f,b,d,w[E+3],10,-1894986606),d=g(d,S,f,b,w[E+10],15,-1051523),b=g(b,d,S,f,w[E+1],21,-2054922799),f=g(f,b,d,S,w[E+8],6,1873313359),S=g(S,f,b,d,w[E+15],10,-30611744),d=g(d,S,f,b,w[E+6],15,-1560198380),b=g(b,d,S,f,w[E+13],21,1309151649),f=g(f,b,d,S,w[E+4],6,-145523070),S=g(S,f,b,d,w[E+11],10,-1120210379),d=g(d,S,f,b,w[E+2],15,718787259),b=g(b,d,S,f,w[E+9],21,-343485551),f=a(f,R),b=a(b,O),d=a(d,k),S=a(S,B)}return[f,b,d,S]}function s(w){if(w.length===0)return[];const x=w.length*8,f=new Uint32Array(r(x));for(let b=0;b<x;b+=8)f[b>>5]|=(w[b/8]&255)<<b%32;return f}function a(w,x){const f=(w&65535)+(x&65535);return(w>>16)+(x>>16)+(f>>16)<<16|f&65535}function l(w,x){return w<<x|w>>>32-x}function c(w,x,f,b,d,S){return a(l(a(a(x,w),a(b,S)),d),f)}function h(w,x,f,b,d,S,E){return c(x&f|~x&b,w,x,d,S,E)}function y(w,x,f,b,d,S,E){return c(x&b|f&~b,w,x,d,S,E)}function v(w,x,f,b,d,S,E){return c(x^f^b,w,x,d,S,E)}function g(w,x,f,b,d,S,E){return c(f^(x|~b),w,x,d,S,E)}var p=e;return ji.default=p,ji}var nh;function CO(){if(nh)return Di;nh=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var e=r(yv()),t=r(PO());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Di.default=s,Di}var zi={},Wi={},ih;function kO(){if(ih)return Wi;ih=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Wi.default=t,Wi}var oh;function $O(){if(oh)return zi;oh=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=void 0;var e=o(kO()),t=o(vv()),r=ha();function o(l){return l&&l.__esModule?l:{default:l}}function s(l,c,h){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const y=l.random||(l.rng||t.default)();if(y[6]=y[6]&15|64,y[8]=y[8]&63|128,c){h=h||0;for(let v=0;v<16;++v)c[h+v]=y[v];return c}return(0,r.unsafeStringify)(y)}var a=s;return zi.default=a,zi}var Bi={},Ui={},sh;function IO(){if(sh)return Ui;sh=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0;function e(s,a,l,c){switch(s){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const v=unescape(encodeURIComponent(s));s=[];for(let g=0;g<v.length;++g)s.push(v.charCodeAt(g))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,h=Math.ceil(c/16),y=new Array(h);for(let v=0;v<h;++v){const g=new Uint32Array(16);for(let p=0;p<16;++p)g[p]=s[v*64+p*4]<<24|s[v*64+p*4+1]<<16|s[v*64+p*4+2]<<8|s[v*64+p*4+3];y[v]=g}y[h-1][14]=(s.length-1)*8/Math.pow(2,32),y[h-1][14]=Math.floor(y[h-1][14]),y[h-1][15]=(s.length-1)*8&4294967295;for(let v=0;v<h;++v){const g=new Uint32Array(80);for(let d=0;d<16;++d)g[d]=y[v][d];for(let d=16;d<80;++d)g[d]=t(g[d-3]^g[d-8]^g[d-14]^g[d-16],1);let p=l[0],w=l[1],x=l[2],f=l[3],b=l[4];for(let d=0;d<80;++d){const S=Math.floor(d/20),E=t(p,5)+e(S,w,x,f)+b+a[S]+g[d]>>>0;b=f,f=x,x=t(w,30)>>>0,w=p,p=E}l[0]=l[0]+p>>>0,l[1]=l[1]+w>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+f>>>0,l[4]=l[4]+b>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var o=r;return Ui.default=o,Ui}var ah;function LO(){if(ah)return Bi;ah=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=void 0;var e=r(yv()),t=r(IO());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return Bi.default=s,Bi}var Hi={},uh;function MO(){if(uh)return Hi;uh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Hi.default=e,Hi}var qi={},lh;function FO(){if(lh)return qi;lh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(pa());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 o=r;return qi.default=o,qi}var ch;function DO(){return ch||(ch=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 y.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return h.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 o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=v(RO()),r=v(CO()),o=v($O()),s=v(LO()),a=v(MO()),l=v(FO()),c=v(pa()),h=v(ha()),y=v(mv());function v(g){return g&&g.__esModule?g:{default:g}}})(rl)),rl}var nl,fh;function NO(){if(fh)return nl;fh=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,o,s,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,h=t.length,y=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<h;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(o=0,s=0,r=0;r<h;r++)o=o*l+a[r],o>=c?(a[s++]=parseInt(o/c,10),o=o%c):s>0&&(a[s++]=0);h=s,y=this.dstAlphabet.slice(o,o+1).concat(y)}while(s!==0);return y},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},nl=e,nl}var il,dh;function jO(){if(dh)return il;dh=1;var e=NO();function t(r,o){var s=new e(r,o);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",il=t,il}var ol,ph;function zO(){if(ph)return ol;ph=1;const{v4:e,validate:t}=DO(),r=jO(),o={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const l=(y,v,g)=>{const p=v(y.toLowerCase().replace(/-/g,""));return!g||!g.consistentLength?p:p.padStart(g.shortIdLength,g.paddingChar)},c=(y,v)=>{const p=v(y).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[p[1],p[2],p[3],p[4],p[5]].join("-")},h=y=>Math.ceil(Math.log(2**128)/Math.log(y));return ol=(()=>{const y=(v,g)=>{const p=v||o.flickrBase58,w={...s,...g};if([...new Set(Array.from(p))].length!==p.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=h(p.length),f={shortIdLength:x,consistentLength:w.consistentLength,paddingChar:p[0]},b=r(r.HEX,p),d=r(p,r.HEX),S=()=>l(e(),b,f),R={alphabet:p,fromUUID:O=>l(O,b,f),maxLength:x,generate:S,new:S,toUUID:O=>c(O,d),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const B=w.consistentLength?O.length===x:O.length<=x,L=O.split("").every(M=>p.includes(M));return k===!1?B&&L:B&&L&&t(c(O,d))}};return Object.freeze(R),R};return y.constants=o,y.uuid=e,y.generate=()=>(a||(a=y(o.flickrBase58).generate),a()),y})(),ol}var cc=zO();const wv=({depth:e,height:t=24,width:r=11,showLines:o=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${cc.generate()}`;return z.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[z.jsx("defs",{children:z.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:z.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),o?z.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):z.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},bv=({show:e,expanded:t,onClick:r,variant:o="arrow"})=>e?z.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(o){case"arrow":return z.jsx(st.FdDown,{className:tt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?z.jsx(st.FdDown,{}):z.jsx(st.FdRight,{});default:return z.jsx(st.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):z.jsx("div",{className:"flex h-6 w-3 items-center"}),fc=({node:e,depth:t,expandedKeys:r,selectedKeys:o,actions:s,searchQuery:a,renderNode:l,onNodeClick:c})=>{var w;const{key:h,children:y}=e,v=W.useMemo(()=>({expanded:r.includes(e.key),selected:o.includes(e.key)}),[r,e.key,o]),g=l&&typeof l=="function"?l(e,t,v,s,a):UO(e,t,v,c);return!((w=e.options)!=null&&w.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"flex items-center space-x-2",children:g},h),BO(y||[],t,a,r,o,v.expanded,s,c,l)]}):null},WO=function(e,t){var l;const{title:r,icon:o,subtitle:s}=e;let a=null;return o&&(a=z.jsx(gv,{children:o})),z.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,z.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&z.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},BO=function(e,t,r,o,s,a,l,c,h){return e.length&&a?e.map(y=>z.jsx(fc,{actions:l,node:y,searchQuery:r,depth:t+1,expandedKeys:o,selectedKeys:s,onNodeClick:c,renderNode:h},y.key)):null},UO=function(e,t,r,o){return z.jsxs(z.Fragment,{children:[z.jsx(wv,{showLines:!0,depth:t}),z.jsx(bv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),WO(e,o)]})},Os=e=>t=>e===t,HO=function({treeData:t,renderNode:r,onNodeClick:o,onExpandNode:s,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:h,className:y}){const[v,g]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&v.expandedKeys.length>0||g({...v,expandedKeys:l||v.expandedKeys})},[l]);const p=W.useCallback(d=>{if(!d)return;const S=v.expandedKeys.findIndex(Os(d.key));let E=[];S===-1?(E=[...v.expandedKeys,d.key],g(()=>({...v,expandedKeys:E})),s&&s(E)):(E=v.expandedKeys.filter(R=>R!==d.key),g(()=>({...v,expandedKeys:E})),s&&s(E))},[v]),w=W.useCallback(d=>{var E;if(!((E=d==null?void 0:d.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(Os(d.key))===-1&&g({...v,selectedKeys:[...v.selectedKeys,d.key]})},[v]),x=W.useCallback(d=>{var E;if(!((E=d==null?void 0:d.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(Os(d.key))===-1&&g({...v,selectedKeys:[d.key]})},[v]),f=W.useCallback(d=>{var E;if(!((E=d==null?void 0:d.options)!=null&&E.selectable)){g({...v,selectedKeys:[]});return}v.selectedKeys.findIndex(Os(d.key))!==-1&&g({...v,selectedKeys:v.selectedKeys.filter(R=>R!==d.key)})},[v]),b=W.useMemo(()=>({expand:p,select:w,selectSingle:x,deselect:f}),[f,p,w,x]);return z.jsx("div",{className:tt("fd-tree",y,{"pl-2 mb-1 rounded border bg-grey-900 p-1":h}),children:t.map(d=>z.jsx(fc,{node:d,searchQuery:a||"",depth:0,expandedKeys:v.expandedKeys,selectedKeys:v.selectedKeys,actions:b,renderNode:r,onNodeClick:o},d.key))})};function qO(e){return e.of&&e.children?z.jsx(z.Fragment,{children:e.children}):null}function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ct.apply(null,arguments)}function ZO(e){for(var t=0,r,o=0,s=e.length;s>=4;++o,s-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 GO={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 xv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var KO=/[A-Z]|^ms/g,VO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sv=function(t){return t.charCodeAt(1)===45},hh=function(t){return t!=null&&typeof t!="boolean"},sl=xv(function(e){return Sv(e)?e:e.replace(KO,"-$&").toLowerCase()}),gh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(VO,function(o,s,a){return br={name:s,styles:a,next:br},s})}return GO[t]!==1&&!Sv(t)&&typeof r=="number"&&r!==0?r+"px":r};function vo(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return br={name:s.name,styles:s.styles,next:br},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)br={name:l.name,styles:l.styles,next:br},l=l.next;var c=a.styles+";";return c}return YO(e,t,r)}case"function":{if(e!==void 0){var h=br,y=r(e);return br=h,vo(e,t,y)}break}}var v=r;if(t==null)return v;var g=t[v];return g!==void 0?g:v}function YO(e,t,r){var o="";if(Array.isArray(r))for(var s=0;s<r.length;s++)o+=vo(e,t,r[s])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":hh(c)&&(o+=sl(a)+":"+gh(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var h=0;h<l.length;h++)hh(l[h])&&(o+=sl(a)+":"+gh(a,l[h])+";");else{var y=vo(e,t,l);switch(a){case"animation":case"animationName":{o+=sl(a)+":"+y+";";break}default:o+=a+"{"+y+"}"}}}return o}var vh=/label:\s*([^\s;{]+)\s*(;|$)/g,br;function XO(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";br=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=vo(r,t,a);else{var l=a;s+=l[0]}for(var c=1;c<e.length;c++)if(s+=vo(r,t,e[c]),o){var h=a;s+=h[c]}vh.lastIndex=0;for(var y="",v;(v=vh.exec(s))!==null;)y+="-"+v[1];var g=ZO(s)+y;return{name:g,styles:s,next:br}}var JO=function(t){return t()},QO=D.useInsertionEffect?D.useInsertionEffect:!1,eT=QO||JO,tT=!0;function rT(e,t,r){var o="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var Ev=function(t,r,o){var s=t.key+"-"+r.name;(o===!1||tT===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},nT=function(t,r,o){Ev(t,r,o);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)}},iT=/^((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)-.*))$/,oT=xv(function(e){return iT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sT=oT,aT=function(t){return t!=="theme"},mh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?sT:aT},yh=function(t,r,o){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},uT=function(t){var r=t.cache,o=t.serialized,s=t.isStringTag;return Ev(r,o,s),eT(function(){return nT(r,o,s)}),null},lT=function e(t,r){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=yh(t,r,o),h=c||mh(s),y=!h("as");return function(){var v=arguments,g=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),v[0]==null||v[0].raw===void 0)g.push.apply(g,v);else{var p=v[0];g.push(p[0]);for(var w=v.length,x=1;x<w;x++)g.push(v[x],p[x])}var f=Il.withEmotionCache(function(b,d,S){var E=y&&b.as||s,R="",O=[],k=b;if(b.theme==null){k={};for(var B in b)k[B]=b[B];k.theme=D.useContext(Il.ThemeContext)}typeof b.className=="string"?R=rT(d.registered,O,b.className):b.className!=null&&(R=b.className+" ");var L=XO(g.concat(O),d.registered,k);R+=d.key+"-"+L.name,l!==void 0&&(R+=" "+l);var M=y&&c===void 0?mh(E):h,G={};for(var N in b)y&&N==="as"||M(N)&&(G[N]=b[N]);return G.className=R,S&&(G.ref=S),D.createElement(D.Fragment,null,D.createElement(uT,{cache:d,serialized:L,isStringTag:typeof E=="string"}),D.createElement(E,G))});return f.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=g,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(b,d){var S=e(b,ct({},r,d,{shouldForwardProp:yh(f,d,!0)}));return S.apply(void 0,g)},f}},cT=["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"],ea=lT.bind(null);cT.forEach(function(e){ea[e]=ea(e)});var fT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ri=new WeakMap,Ts=new WeakMap,Rs={},al=0,_v=function(e){return e&&(e.host||_v(e.parentNode))},dT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=_v(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pT=function(e,t,r,o){var s=dT(t,Array.isArray(e)?e:[e]);Rs[r]||(Rs[r]=new WeakMap);var a=Rs[r],l=[],c=new Set,h=new Set(s),y=function(g){!g||c.has(g)||(c.add(g),y(g.parentNode))};s.forEach(y);var v=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(p){if(c.has(p))v(p);else try{var w=p.getAttribute(o),x=w!==null&&w!=="false",f=(ri.get(p)||0)+1,b=(a.get(p)||0)+1;ri.set(p,f),a.set(p,b),l.push(p),f===1&&x&&Ts.set(p,!0),b===1&&p.setAttribute(r,"true"),x||p.setAttribute(o,"true")}catch(d){console.error("aria-hidden: cannot operate on ",p,d)}})};return v(t),c.clear(),al++,function(){l.forEach(function(g){var p=ri.get(g)-1,w=a.get(g)-1;ri.set(g,p),a.set(g,w),p||(Ts.has(g)||g.removeAttribute(o),Ts.delete(g)),w||g.removeAttribute(r)}),al--,al||(ri=new WeakMap,ri=new WeakMap,Ts=new WeakMap,Rs={})}},hT=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=fT(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),pT(o,s,r,"aria-hidden")):function(){return null}},Fl=function(e,t){return Fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},Fl(e,t)};function ga(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xr=function(){return xr=Object.assign||function(t){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},xr.apply(this,arguments)};function Av(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function Dl(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),s,a=[],l;try{for(;(t===void 0||t-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(l)throw l.error}}return a}function ta(e,t,r){if(r||arguments.length===2)for(var o=0,s=t.length,a;o<s;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Gs="right-scroll-bar-position",Ks="width-before-scroll-bar",gT="with-scroll-bars-hidden",vT="--removed-body-scroll-bar-size";function ul(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mT(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=t,r.facade}var yT=typeof window<"u"?D.useLayoutEffect:D.useEffect,wh=new WeakMap;function wT(e,t){var r=mT(null,function(o){return e.forEach(function(s){return ul(s,o)})});return yT(function(){var o=wh.get(r);if(o){var s=new Set(o),a=new Set(e),l=r.current;s.forEach(function(c){a.has(c)||ul(c,null)}),a.forEach(function(c){s.has(c)||ul(c,l)})}wh.set(r,e)},[e]),r}function bT(e){return e}function xT(e,t){t===void 0&&(t=bT);var r=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,o);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(o=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){o=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var h=function(){var v=l;l=[],v.forEach(a)},y=function(){return Promise.resolve().then(h)};y(),r={push:function(v){l.push(v),y()},filter:function(v){return l=l.filter(v),r}}}};return s}function ST(e){e===void 0&&(e={});var t=xT(null);return t.options=xr({async:!0,ssr:!1},e),t}var Ov=function(e){var t=e.sideCar,r=Av(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return D.createElement(o,xr({},r))};Ov.isSideCarExport=!0;function ET(e,t){return e.useMedium(t),Ov}var Tv=ST(),ll=function(){},va=D.forwardRef(function(e,t){var r=D.useRef(null),o=D.useState({onScrollCapture:ll,onWheelCapture:ll,onTouchMoveCapture:ll}),s=o[0],a=o[1],l=e.forwardProps,c=e.children,h=e.className,y=e.removeScrollBar,v=e.enabled,g=e.shards,p=e.sideCar,w=e.noRelative,x=e.noIsolation,f=e.inert,b=e.allowPinchZoom,d=e.as,S=d===void 0?"div":d,E=e.gapMode,R=Av(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=wT([r,t]),B=xr(xr({},R),s);return D.createElement(D.Fragment,null,v&&D.createElement(O,{sideCar:Tv,removeScrollBar:y,shards:g,noRelative:w,noIsolation:x,inert:f,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:E}),l?D.cloneElement(D.Children.only(c),xr(xr({},B),{ref:k})):D.createElement(S,xr({},B,{className:h,ref:k}),c))});va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};va.classNames={fullWidth:Ks,zeroRight:Gs};var _T=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_T();return t&&e.setAttribute("nonce",t),e}function OT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function TT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var RT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=AT())&&(OT(t,r),TT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},PT=function(){var e=RT();return function(t,r){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Rv=function(){var e=PT(),t=function(r){var o=r.styles,s=r.dynamic;return e(o,s),null};return t},CT={left:0,top:0,right:0,gap:0},cl=function(e){return parseInt(e||"",10)||0},kT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[cl(r),cl(o),cl(s)]},$T=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CT;var t=kT(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},IT=Rv(),si="data-scroll-locked",LT=function(e,t,r,o){var s=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
+ .`.concat(gT,` {
24
24
  overflow: hidden `).concat(o,`;
25
- padding-right: `).concat(d,"px ").concat(o,`;
25
+ padding-right: `).concat(c,"px ").concat(o,`;
26
26
  }
27
- body[`).concat(Vr,`] {
27
+ body[`).concat(si,`] {
28
28
  overflow: hidden `).concat(o,`;
29
29
  overscroll-behavior: contain;
30
- `).concat([n&&"position: relative ".concat(o,";"),r==="margin"&&`
31
- padding-left: `.concat(a,`px;
32
- padding-top: `).concat(u,`px;
30
+ `).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
31
+ padding-left: `.concat(s,`px;
32
+ padding-top: `).concat(a,`px;
33
33
  padding-right: `).concat(l,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
- margin-right: `).concat(d,"px ").concat(o,`;
37
- `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(o,";")].filter(Boolean).join(""),`
36
+ margin-right: `).concat(c,"px ").concat(o,`;
37
+ `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),`
38
38
  }
39
39
 
40
- .`).concat(Ca,` {
41
- right: `).concat(d,"px ").concat(o,`;
40
+ .`).concat(Gs,` {
41
+ right: `).concat(c,"px ").concat(o,`;
42
42
  }
43
43
 
44
- .`).concat(Ra,` {
45
- margin-right: `).concat(d,"px ").concat(o,`;
44
+ .`).concat(Ks,` {
45
+ margin-right: `).concat(c,"px ").concat(o,`;
46
46
  }
47
47
 
48
- .`).concat(Ca," .").concat(Ca,` {
48
+ .`).concat(Gs," .").concat(Gs,` {
49
49
  right: 0 `).concat(o,`;
50
50
  }
51
51
 
52
- .`).concat(Ra," .").concat(Ra,` {
52
+ .`).concat(Ks," .").concat(Ks,` {
53
53
  margin-right: 0 `).concat(o,`;
54
54
  }
55
55
 
56
- body[`).concat(Vr,`] {
57
- `).concat(dA,": ").concat(d,`px;
56
+ body[`).concat(si,`] {
57
+ `).concat(vT,": ").concat(c,`px;
58
58
  }
59
- `)},kp=function(){var e=parseInt(document.body.getAttribute(Vr)||"0",10);return isFinite(e)?e:0},IA=function(){N.useEffect(function(){return document.body.setAttribute(Vr,(kp()+1).toString()),function(){var e=kp()-1;e<=0?document.body.removeAttribute(Vr):document.body.setAttribute(Vr,e.toString())}},[])},MA=function(e){var n=e.noRelative,r=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;IA();var u=N.useMemo(function(){return PA(a)},[a]);return N.createElement(CA,{styles:RA(u,!n,a,r?"":"!important")})},ml=!1;if(typeof window<"u")try{var pa=Object.defineProperty({},"passive",{get:function(){return ml=!0,!0}});window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{ml=!1}var Zr=ml?{passive:!1}:!1,FA=function(e){return e.tagName==="TEXTAREA"},kv=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!FA(e)&&r[n]==="visible")},LA=function(e){return kv(e,"overflowY")},DA=function(e){return kv(e,"overflowX")},jp=function(e,n){var r=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=jv(e,o);if(a){var u=Wv(e,o),l=u[1],d=u[2];if(l>d)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},$A=function(e){var n=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[n,r,o]},NA=function(e){var n=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[n,r,o]},jv=function(e,n){return e==="v"?LA(n):DA(n)},Wv=function(e,n){return e==="v"?$A(n):NA(n)},kA=function(e,n){return e==="h"&&n==="rtl"?-1:1},jA=function(e,n,r,o,a){var u=kA(e,window.getComputedStyle(n).direction),l=u*o,d=r.target,m=n.contains(d),E=!1,g=l>0,p=0,v=0;do{if(!d)break;var y=Wv(e,d),b=y[0],f=y[1],w=y[2],c=f-w-u*b;(b||c)&&jv(e,d)&&(p+=c,v+=b);var S=d.parentNode;d=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!m&&d!==document.body||m&&(n.contains(d)||n===d));return(g&&Math.abs(p)<1||!g&&Math.abs(v)<1)&&(E=!0),E},ha=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wp=function(e){return[e.deltaX,e.deltaY]},Up=function(e){return e&&"current"in e?e.current:e},WA=function(e,n){return e[0]===n[0]&&e[1]===n[1]},UA=function(e){return`
59
+ `)},bh=function(){var e=parseInt(document.body.getAttribute(si)||"0",10);return isFinite(e)?e:0},MT=function(){D.useEffect(function(){return document.body.setAttribute(si,(bh()+1).toString()),function(){var e=bh()-1;e<=0?document.body.removeAttribute(si):document.body.setAttribute(si,e.toString())}},[])},FT=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;MT();var a=D.useMemo(function(){return $T(s)},[s]);return D.createElement(IT,{styles:LT(a,!t,s,r?"":"!important")})},jl=!1;if(typeof window<"u")try{var Ps=Object.defineProperty({},"passive",{get:function(){return jl=!0,!0}});window.addEventListener("test",Ps,Ps),window.removeEventListener("test",Ps,Ps)}catch{jl=!1}var ni=jl?{passive:!1}:!1,DT=function(e){return e.tagName==="TEXTAREA"},Pv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!DT(e)&&r[t]==="visible")},NT=function(e){return Pv(e,"overflowY")},jT=function(e){return Pv(e,"overflowX")},xh=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Cv(e,o);if(s){var a=kv(e,o),l=a[1],c=a[2];if(l>c)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},zT=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},WT=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},Cv=function(e,t){return e==="v"?NT(t):jT(t)},kv=function(e,t){return e==="v"?zT(t):WT(t)},BT=function(e,t){return e==="h"&&t==="rtl"?-1:1},UT=function(e,t,r,o,s){var a=BT(e,window.getComputedStyle(t).direction),l=a*o,c=r.target,h=t.contains(c),y=!1,v=l>0,g=0,p=0;do{if(!c)break;var w=kv(e,c),x=w[0],f=w[1],b=w[2],d=f-b-a*x;(x||d)&&Cv(e,c)&&(g+=d,p+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!h&&c!==document.body||h&&(t.contains(c)||t===c));return(v&&Math.abs(g)<1||!v&&Math.abs(p)<1)&&(y=!0),y},Cs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sh=function(e){return[e.deltaX,e.deltaY]},Eh=function(e){return e&&"current"in e?e.current:e},HT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qT=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},BA=0,Gr=[];function zA(e){var n=N.useRef([]),r=N.useRef([0,0]),o=N.useRef(),a=N.useState(BA++)[0],u=N.useState(Nv)[0],l=N.useRef(e);N.useEffect(function(){l.current=e},[e]),N.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var f=Na([e.lockRef.current],(e.shards||[]).map(Up),!0).filter(Boolean);return f.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),f.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=N.useCallback(function(f,w){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!l.current.allowPinchZoom;var c=ha(f),S=r.current,_="deltaX"in f?f.deltaX:S[0]-c[0],P="deltaY"in f?f.deltaY:S[1]-c[1],A,I=f.target,z=Math.abs(_)>Math.abs(P)?"h":"v";if("touches"in f&&z==="h"&&I.type==="range")return!1;var L=jp(z,I);if(!L)return!0;if(L?A=z:(A=z==="v"?"h":"v",L=jp(z,I)),!L)return!1;if(!o.current&&"changedTouches"in f&&(_||P)&&(o.current=A),!A)return!0;var D=o.current||A;return jA(D,w,f,D==="h"?_:P)},[]),m=N.useCallback(function(f){var w=f;if(!(!Gr.length||Gr[Gr.length-1]!==u)){var c="deltaY"in w?Wp(w):ha(w),S=n.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&WA(A.delta,c)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var _=(l.current.shards||[]).map(Up).filter(Boolean).filter(function(A){return A.contains(w.target)}),P=_.length>0?d(w,_[0]):!l.current.noIsolation;P&&w.cancelable&&w.preventDefault()}}},[]),E=N.useCallback(function(f,w,c,S){var _={name:f,delta:w,target:c,should:S,shadowParent:HA(c)};n.current.push(_),setTimeout(function(){n.current=n.current.filter(function(P){return P!==_})},1)},[]),g=N.useCallback(function(f){r.current=ha(f),o.current=void 0},[]),p=N.useCallback(function(f){E(f.type,Wp(f),f.target,d(f,e.lockRef.current))},[]),v=N.useCallback(function(f){E(f.type,ha(f),f.target,d(f,e.lockRef.current))},[]);N.useEffect(function(){return Gr.push(u),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Zr),document.addEventListener("touchmove",m,Zr),document.addEventListener("touchstart",g,Zr),function(){Gr=Gr.filter(function(f){return f!==u}),document.removeEventListener("wheel",m,Zr),document.removeEventListener("touchmove",m,Zr),document.removeEventListener("touchstart",g,Zr)}},[]);var y=e.removeScrollBar,b=e.inert;return N.createElement(N.Fragment,null,b?N.createElement(u,{styles:UA(a)}):null,y?N.createElement(MA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function HA(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const qA=wA($v,zA);var Uv=N.forwardRef(function(e,n){return N.createElement(Va,pn({},e,{ref:n,sideCar:qA}))});Uv.classNames=Va.classNames;const ZA=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},GA=N.useId||(()=>{});let KA=0;function VA(e){const[n,r]=N.useState(GA());return ZA((()=>{r((o=>o??String(KA++)))}),[e]),e||(n?`radix-${n}`:"")}function Bv(...e){return n=>e.forEach((r=>(function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)})(r,n)))}function Tr(...e){return N.useCallback(Bv(...e),e)}const zv=N.forwardRef(((e,n)=>{const{children:r,...o}=e;return N.Children.toArray(r).some(Bp)?N.createElement(N.Fragment,null,N.Children.map(r,(a=>Bp(a)?N.createElement(gl,ot({},o,{ref:n}),a.props.children):a))):N.createElement(gl,ot({},o,{ref:n}),r)}));zv.displayName="Slot";const gl=N.forwardRef(((e,n)=>{const{children:r,...o}=e;return N.isValidElement(r)?N.cloneElement(r,{...XA(o,r.props),ref:Bv(n,r.ref)}):N.Children.count(r)>1?N.Children.only(null):null}));gl.displayName="SlotClone";const YA=({children:e})=>N.createElement(N.Fragment,null,e);function Bp(e){return N.isValidElement(e)&&e.type===YA}function XA(e,n){const r={...n};for(const o in n){const a=e[o],u=n[o];/^on[A-Z]/.test(o)?r[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?r[o]={...a,...u}:o==="className"&&(r[o]=[a,u].filter(Boolean).join(" "))}return{...e,...r}}const ri=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>({...e,[n]:N.forwardRef(((r,o)=>{const{asChild:a,...u}=r,l=a?zv:n;return N.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),N.createElement(l,ot({},u,{ref:o}))}))})),{}),zp=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},Hv=e=>{const{present:n,children:r}=e,o=(function(l){const[d,m]=N.useState(),E=N.useRef({}),g=N.useRef(l),p=N.useRef("none"),v=l?"mounted":"unmounted",[y,b]=(function(f,w){return N.useReducer(((c,S)=>{const _=w[c][S];return _??c}),f)})(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect((()=>{const f=va(E.current);p.current=y==="mounted"?f:"none"}),[y]),zp((()=>{const f=E.current,w=g.current;if(w!==l){const c=p.current,S=va(f);l?b("MOUNT"):S==="none"||(f==null?void 0:f.display)==="none"?b("UNMOUNT"):b(w&&c!==S?"ANIMATION_OUT":"UNMOUNT"),g.current=l}}),[l,b]),zp((()=>{if(d){const f=c=>{const S=va(E.current).includes(c.animationName);c.target===d&&S&&b("ANIMATION_END")},w=c=>{c.target===d&&(p.current=va(E.current))};return d.addEventListener("animationstart",w),d.addEventListener("animationcancel",f),d.addEventListener("animationend",f),()=>{d.removeEventListener("animationstart",w),d.removeEventListener("animationcancel",f),d.removeEventListener("animationend",f)}}b("ANIMATION_END")}),[d,b]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:N.useCallback((f=>{f&&(E.current=getComputedStyle(f)),m(f)}),[])}})(n),a=typeof r=="function"?r({present:o.isPresent}):N.Children.only(r),u=Tr(o.ref,a.ref);return typeof r=="function"||o.isPresent?N.cloneElement(a,{ref:u}):null};function va(e){return(e==null?void 0:e.animationName)||"none"}Hv.displayName="Presence";let Bu=0;function JA(){N.useEffect((()=>{var e,n;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Hp()),document.body.insertAdjacentElement("beforeend",(n=r[1])!==null&&n!==void 0?n:Hp()),Bu++,()=>{Bu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((o=>o.remove())),Bu--}}),[])}function Hp(){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 QA=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{},qv=N.forwardRef(((e,n)=>{var r,o;const{containerRef:a,style:u,...l}=e,d=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,m]=N.useState({});return QA((()=>{m({})}),[]),d?ao.createPortal(N.createElement(ri.div,ot({"data-radix-portal":""},l,{ref:n,style:d===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),d):null}));function Or(e){const n=N.useRef(e);return N.useEffect((()=>{n.current=e})),N.useMemo((()=>(...r)=>{var o;return(o=n.current)===null||o===void 0?void 0:o.call(n,...r)}),[])}const qp={bubbles:!1,cancelable:!0},eT=N.forwardRef(((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[d,m]=N.useState(null),E=Or(a),g=Or(u),p=N.useRef(null),v=Tr(n,(f=>m(f))),y=N.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;N.useEffect((()=>{if(o){let f=function(c){if(y.paused||!d)return;const S=c.target;d.contains(S)?p.current=S:vr(p.current,{select:!0})},w=function(c){!y.paused&&d&&(d.contains(c.relatedTarget)||vr(p.current,{select:!0}))};return document.addEventListener("focusin",f),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",w)}}}),[o,d,y.paused]),N.useEffect((()=>{if(d){Kp.add(y);const w=document.activeElement;if(!d.contains(w)){const c=new Event("focusScope.autoFocusOnMount",qp);d.addEventListener("focusScope.autoFocusOnMount",E),d.dispatchEvent(c),c.defaultPrevented||((function(S,{select:_=!1}={}){const P=document.activeElement;for(const A of S)if(vr(A,{select:_}),document.activeElement!==P)return})((f=Zp(d),f.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&vr(d))}return()=>{d.removeEventListener("focusScope.autoFocusOnMount",E),setTimeout((()=>{const c=new Event("focusScope.autoFocusOnUnmount",qp);d.addEventListener("focusScope.autoFocusOnUnmount",g),d.dispatchEvent(c),c.defaultPrevented||vr(w??document.body,{select:!0}),d.removeEventListener("focusScope.autoFocusOnUnmount",g),Kp.remove(y)}),0)}}var f}),[d,E,g,y]);const b=N.useCallback((f=>{if(!r&&!o||y.paused)return;const w=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,c=document.activeElement;if(w&&c){const S=f.currentTarget,[_,P]=(function(A){const I=Zp(A),z=Gp(I,A),L=Gp(I.reverse(),A);return[z,L]})(S);_&&P?f.shiftKey||c!==P?f.shiftKey&&c===_&&(f.preventDefault(),r&&vr(P,{select:!0})):(f.preventDefault(),r&&vr(_,{select:!0})):c===S&&f.preventDefault()}}),[r,o,y.paused]);return N.createElement(ri.div,ot({tabIndex:-1},l,{ref:v,onKeyDown:b}))}));function Zp(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Gp(e,n){for(const r of e)if(!tT(r,{upTo:n}))return r}function tT(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vr(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(o){return o instanceof HTMLInputElement&&"select"in o})(e)&&n&&e.select()}}const Kp=(function(){let e=[];return{add(n){const r=e[0];n!==r&&(r==null||r.pause()),e=Vp(e,n),e.unshift(n)},remove(n){var r;e=Vp(e,n),(r=e[0])===null||r===void 0||r.resume()}}})();function Vp(e,n){const r=[...e],o=r.indexOf(n);return o!==-1&&r.splice(o,1),r}function nT(e){const n=Or(e);N.useEffect((()=>{const r=o=>{o.key==="Escape"&&n(o)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[n])}const rT=globalThis!=null&&globalThis.document?N.useLayoutEffect:()=>{};let Yp,ma=0;function iT({disabled:e}){const n=N.useRef(!1);rT((()=>{if(e){let r=function(){ma--,ma===0&&(document.body.style.pointerEvents=Yp)},o=function(a){n.current=a.pointerType!=="mouse"};return ma===0&&(Yp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ma++,document.addEventListener("pointerup",o),()=>{n.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",o)}}}),[e])}function Er(e,n,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}const oT=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),aT=N.forwardRef(((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:d,...m}=e,E=N.useContext(oT),[g,p]=N.useState(null),[,v]=N.useState({}),y=Tr(n,(I=>p(I))),b=Array.from(E.layers),[f]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(f),c=g?b.indexOf(g):-1,S=E.layersWithOutsidePointerEventsDisabled.size>0,_=c>=w,P=(function(I){const z=Or(I),L=N.useRef(!1);return N.useEffect((()=>{const D=k=>{k.target&&!L.current&&Jp("dismissableLayer.pointerDownOutside",z,{originalEvent:k}),L.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",D)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",D)}}),[z]),{onPointerDownCapture:()=>L.current=!0}})((I=>{const z=I.target,L=[...E.branches].some((D=>D.contains(z)));_&&!L&&(a==null||a(I),l==null||l(I),I.defaultPrevented||d==null||d())})),A=(function(I){const z=Or(I),L=N.useRef(!1);return N.useEffect((()=>{const D=G=>{G.target&&!L.current&&Jp("dismissableLayer.focusOutside",z,{originalEvent:G})};return document.addEventListener("focusin",D),()=>document.removeEventListener("focusin",D)}),[z]),{onFocusCapture:()=>L.current=!0,onBlurCapture:()=>L.current=!1}})((I=>{const z=I.target;[...E.branches].some((L=>L.contains(z)))||(u==null||u(I),l==null||l(I),I.defaultPrevented||d==null||d())}));return nT((I=>{c===E.layers.size-1&&(o==null||o(I),I.defaultPrevented||d==null||d())})),iT({disabled:r}),N.useEffect((()=>{g&&(r&&E.layersWithOutsidePointerEventsDisabled.add(g),E.layers.add(g),Xp())}),[g,r,E]),N.useEffect((()=>()=>{g&&(E.layers.delete(g),E.layersWithOutsidePointerEventsDisabled.delete(g),Xp())}),[g,E]),N.useEffect((()=>{const I=()=>v({});return document.addEventListener("dismissableLayer.update",I),()=>document.removeEventListener("dismissableLayer.update",I)}),[]),N.createElement(ri.div,ot({},m,{ref:y,style:{pointerEvents:S?_?"auto":"none":void 0,...e.style},onFocusCapture:Er(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Er(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Er(e.onPointerDownCapture,P.onPointerDownCapture)}))}));function Xp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Jp(e,n,r){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return n&&o.addEventListener(e,n,{once:!0}),!o.dispatchEvent(a)}function Qp(e){const[n,r]=N.useState(void 0);return N.useEffect((()=>{if(e){const o=new ResizeObserver((a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,d;if("borderBoxSize"in u){const m=u.borderBoxSize,E=Array.isArray(m)?m[0]:m;l=E.inlineSize,d=E.blockSize}else{const m=e.getBoundingClientRect();l=m.width,d=m.height}r({width:l,height:d})}));return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}r(void 0)}),[e]),n}function sT(e,n){const r=mr.get(e);return r===void 0?(mr.set(e,{rect:{},callbacks:[n]}),mr.size===1&&(yl=requestAnimationFrame(Zv))):(r.callbacks.push(n),n(e.getBoundingClientRect())),()=>{const o=mr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(n);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(mr.delete(e),mr.size===0&&cancelAnimationFrame(yl))}}let yl;const mr=new Map;function Zv(){const e=[];mr.forEach(((n,r)=>{const o=r.getBoundingClientRect();var a,u;a=n.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(n.rect=o,e.push(n))})),e.forEach((n=>{n.callbacks.forEach((r=>r(n.rect)))})),yl=requestAnimationFrame(Zv)}function uT(e){const[n,r]=N.useState();return N.useEffect((()=>{if(e){const o=sT(e,r);return()=>{r(void 0),o()}}}),[e]),n}function Gv(e,n=[]){let r=[];const o=()=>{const a=r.map((u=>N.createContext(u)));return function(u){const l=(u==null?void 0:u[e])||a;return N.useMemo((()=>({[`__scope${e}`]:{...u,[e]:l}})),[u,l])}};return o.scopeName=e,[function(a,u){const l=N.createContext(u),d=r.length;function m(E){const{scope:g,children:p,...v}=E,y=(g==null?void 0:g[e][d])||l,b=N.useMemo((()=>v),Object.values(v));return N.createElement(y.Provider,{value:b},p)}return r=[...r,u],m.displayName=a+"Provider",[m,function(E,g){const p=(g==null?void 0:g[e][d])||l,v=N.useContext(p);if(v)return v;if(u!==void 0)return u;throw new Error(`\`${E}\` must be used within \`${a}\``)}]},lT(o,...n)]}function lT(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const o=e.map((a=>({useScope:a(),scopeName:a.scopeName})));return function(a){const u=o.reduce(((l,{useScope:d,scopeName:m})=>({...l,...d(a)[`__scope${m}`]})),{});return N.useMemo((()=>({[`__scope${n.scopeName}`]:u})),[u])}};return r.scopeName=n.scopeName,r}function fT({anchorRect:e,popperSize:n,arrowSize:r,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:d=0,shouldAvoidCollisions:m=!0,collisionBoundariesRect:E,collisionTolerance:g=0}){if(!e||!n||!E)return{popperStyles:cT,arrowStyles:zu};const p=(function(z,L,D=0,G=0,k){const F=k?k.height:0,U=eh(L,z,"x"),q=eh(L,z,"y"),R=q.before-D-F,J=q.after+D+F,Y=U.before-D-F,te=U.after+D+F;return{top:{start:{x:U.start+G,y:R},center:{x:U.center,y:R},end:{x:U.end-G,y:R}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:U.start+G,y:J},center:{x:U.center,y:J},end:{x:U.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(n,e,u,d,r),v=p[a][l];if(m===!1){const z=th(v);let L=zu;return r&&(L=rh({popperSize:n,arrowSize:r,arrowOffset:o,side:a,align:l})),{popperStyles:{...z,"--radix-popper-transform-origin":nh(n,a,l,o,r)},arrowStyles:L,placedSide:a,placedAlign:l}}const y=DOMRect.fromRect({...n,...v}),b=(f=E,w=g,DOMRect.fromRect({width:f.width-2*w,height:f.height-2*w,x:f.left+w,y:f.top+w}));var f,w;const c=oh(y,b),S=p[ih(a)][l],_=(function(z,L,D){const G=ih(z);return L[z]&&!D[G]?G:z})(a,c,oh(DOMRect.fromRect({...n,...S}),b)),P=(function(z,L,D,G,k){const F=D==="top"||D==="bottom",U=F?"left":"top",q=F?"right":"bottom",R=F?"width":"height",J=L[R]>z[R];return(G==="start"||G==="center")&&(k[U]&&J||k[q]&&!J)?"end":(G==="end"||G==="center")&&(k[q]&&J||k[U]&&!J)?"start":G})(n,e,a,l,c),A=th(p[_][P]);let I=zu;return r&&(I=rh({popperSize:n,arrowSize:r,arrowOffset:o,side:_,align:P})),{popperStyles:{...A,"--radix-popper-transform-origin":nh(n,_,P,o,r)},arrowStyles:I,placedSide:_,placedAlign:P}}function eh(e,n,r){const o=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",u=e[a],l=n[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function th(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 nh(e,n,r,o,a){const u=n==="top"||n==="bottom",l=a?a.width:0,d=a?a.height:0,m=l/2+o;let E="",g="";return u?(E={start:`${m}px`,center:"center",end:e.width-m+"px"}[r],g=n==="top"?`${e.height+d}px`:-d+"px"):(E=n==="left"?`${e.width+d}px`:-d+"px",g={start:`${m}px`,center:"center",end:e.height-m+"px"}[r]),`${E} ${g}`}const cT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},zu={position:"absolute",opacity:0};function rh({popperSize:e,arrowSize:n,arrowOffset:r,side:o,align:a}){const u=(e.width-n.width)/2,l=(e.height-n.width)/2,d={top:0,right:90,bottom:180,left:-90}[o],m=Math.max(n.width,n.height),E={width:`${m}px`,height:`${m}px`,transform:`rotate(${d}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:dT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(E.left=`${r}px`),a==="center"&&(E.left=`${u}px`),a==="end"&&(E.right=`${r}px`)),o!=="left"&&o!=="right"||(a==="start"&&(E.top=`${r}px`),a==="center"&&(E.top=`${l}px`),a==="end"&&(E.bottom=`${r}px`)),E}function dT(e,n){return(e!=="top"&&e!=="right"||n!=="end")&&(e!=="bottom"&&e!=="left"||n==="end")?"ltr":"rtl"}function ih(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function oh(e,n){return{top:e.top<n.top,right:e.right>n.right,bottom:e.bottom>n.bottom,left:e.left<n.left}}const[Kv,Vv]=Gv("Popper"),[pT,Yv]=Kv("Popper"),hT=e=>{const{__scopePopper:n,children:r}=e,[o,a]=N.useState(null);return N.createElement(pT,{scope:n,anchor:o,onAnchorChange:a},r)},vT=N.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:o,...a}=e,u=Yv("PopperAnchor",r),l=N.useRef(null),d=Tr(n,l);return N.useEffect((()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)})),o?null:N.createElement(ri.div,ot({},a,{ref:d}))})),[mT,_M]=Kv("PopperContent"),gT=N.forwardRef(((e,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:d,avoidCollisions:m=!0,...E}=e,g=Yv("PopperContent",r),[p,v]=N.useState(),y=uT(g.anchor),[b,f]=N.useState(null),w=Qp(b),[c,S]=N.useState(null),_=Qp(c),P=Tr(n,(F=>f(F))),A=(function(){const[F,U]=N.useState(void 0);return N.useEffect((()=>{let q;function R(){U({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(R,100)}return R(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),F})(),I=A?DOMRect.fromRect({...A,x:0,y:0}):void 0,{popperStyles:z,arrowStyles:L,placedSide:D,placedAlign:G}=fT({anchorRect:y,popperSize:w,arrowSize:_,arrowOffset:p,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:m,collisionBoundariesRect:I,collisionTolerance:d}),k=D!==void 0;return N.createElement("div",{style:z,"data-radix-popper-content-wrapper":""},N.createElement(mT,{scope:r,arrowStyles:L,onArrowChange:S,onArrowOffsetChange:v},N.createElement(ri.div,ot({"data-side":D,"data-align":G},E,{style:{...E.style,animation:k?void 0:"none"},ref:P}))))})),yT=hT,wT=vT,bT=gT;function ST({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,a]=(function({defaultProp:m,onChange:E}){const g=N.useState(m),[p]=g,v=N.useRef(p),y=Or(E);return N.useEffect((()=>{v.current!==p&&(y(p),v.current=p)}),[p,v,y]),g})({defaultProp:n,onChange:r}),u=e!==void 0,l=u?e:o,d=Or(r);return[l,N.useCallback((m=>{if(u){const E=m,g=typeof m=="function"?E(e):m;g!==e&&d(g)}else a(m)}),[u,e,a,d])]}const[ET]=Gv("Popover",[Vv]),jl=Vv(),[_T,lo]=ET("Popover"),xT=e=>{const{__scopePopover:n,children:r,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,d=jl(n),m=N.useRef(null),[E,g]=N.useState(!1),[p=!1,v]=ST({prop:o,defaultProp:a,onChange:u});return N.createElement(yT,d,N.createElement(_T,{scope:n,contentId:VA(),triggerRef:m,open:p,onOpenChange:v,onOpenToggle:N.useCallback((()=>v((y=>!y))),[v]),hasCustomAnchor:E,onCustomAnchorAdd:N.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:N.useCallback((()=>g(!1)),[]),modal:l},r))},OT=N.forwardRef(((e,n)=>{const{__scopePopover:r,...o}=e,a=lo("PopoverTrigger",r),u=jl(r),l=Tr(n,a.triggerRef),d=N.createElement(ri.button,ot({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Jv(a.open)},o,{ref:l,onClick:Er(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?d:N.createElement(wT,ot({asChild:!0},u),d)})),AT=N.forwardRef(((e,n)=>{const{forceMount:r,...o}=e,a=lo("PopoverContent",e.__scopePopover);return N.createElement(Hv,{present:r||a.open},a.modal?N.createElement(TT,ot({},o,{ref:n})):N.createElement(PT,ot({},o,{ref:n})))})),TT=N.forwardRef(((e,n)=>{const{allowPinchZoom:r,portalled:o=!0,...a}=e,u=lo("PopoverContent",e.__scopePopover),l=N.useRef(null),d=Tr(n,l),m=N.useRef(!1);N.useEffect((()=>{const g=l.current;if(g)return fA(g)}),[]);const E=o?qv:N.Fragment;return N.createElement(E,null,N.createElement(Uv,{allowPinchZoom:r},N.createElement(Xv,ot({},a,{ref:d,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Er(e.onCloseAutoFocus,(g=>{var p;g.preventDefault(),m.current||(p=u.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:Er(e.onPointerDownOutside,(g=>{const p=g.detail.originalEvent,v=p.button===0&&p.ctrlKey===!0,y=p.button===2||v;m.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:Er(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),PT=N.forwardRef(((e,n)=>{const{portalled:r=!0,...o}=e,a=lo("PopoverContent",e.__scopePopover),u=N.useRef(!1),l=r?qv:N.Fragment;return N.createElement(l,null,N.createElement(Xv,ot({},o,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,E;(m=e.onCloseAutoFocus)===null||m===void 0||m.call(e,d),d.defaultPrevented||(u.current||(E=a.triggerRef.current)===null||E===void 0||E.focus(),d.preventDefault()),u.current=!1},onInteractOutside:d=>{var m,E;(m=e.onInteractOutside)===null||m===void 0||m.call(e,d),d.defaultPrevented||(u.current=!0);const g=d.target;!((E=a.triggerRef.current)===null||E===void 0)&&E.contains(g)&&d.preventDefault()}})))})),Xv=N.forwardRef(((e,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:E,onInteractOutside:g,...p}=e,v=lo("PopoverContent",r),y=jl(r);return JA(),N.createElement(eT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},N.createElement(aT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:E,onDismiss:()=>v.onOpenChange(!1)},N.createElement(bT,ot({"data-state":Jv(v.open),role:"dialog",id:v.contentId},y,p,{ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Jv(e){return e?"open":"closed"}const CT=xT,RT=OT,IT=AT;var Ia=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ia||{}),Hu={},Di={},ga={},ya={},wa={exports:{}},ba={exports:{}},Re={};/** @license React v16.13.1
62
+ `)},ZT=0,ii=[];function GT(e){var t=D.useRef([]),r=D.useRef([0,0]),o=D.useRef(),s=D.useState(ZT++)[0],a=D.useState(Rv)[0],l=D.useRef(e);D.useEffect(function(){l.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var f=ta([e.lockRef.current],(e.shards||[]).map(Eh),!0).filter(Boolean);return f.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),f.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=D.useCallback(function(f,b){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!l.current.allowPinchZoom;var d=Cs(f),S=r.current,E="deltaX"in f?f.deltaX:S[0]-d[0],R="deltaY"in f?f.deltaY:S[1]-d[1],O,k=f.target,B=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in f&&B==="h"&&k.type==="range")return!1;var L=xh(B,k);if(!L)return!0;if(L?O=B:(O=B==="v"?"h":"v",L=xh(B,k)),!L)return!1;if(!o.current&&"changedTouches"in f&&(E||R)&&(o.current=O),!O)return!0;var M=o.current||O;return UT(M,b,f,M==="h"?E:R)},[]),h=D.useCallback(function(f){var b=f;if(!(!ii.length||ii[ii.length-1]!==a)){var d="deltaY"in b?Sh(b):Cs(b),S=t.current.filter(function(O){return O.name===b.type&&(O.target===b.target||b.target===O.shadowParent)&&HT(O.delta,d)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(Eh).filter(Boolean).filter(function(O){return O.contains(b.target)}),R=E.length>0?c(b,E[0]):!l.current.noIsolation;R&&b.cancelable&&b.preventDefault()}}},[]),y=D.useCallback(function(f,b,d,S){var E={name:f,delta:b,target:d,should:S,shadowParent:KT(d)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),v=D.useCallback(function(f){r.current=Cs(f),o.current=void 0},[]),g=D.useCallback(function(f){y(f.type,Sh(f),f.target,c(f,e.lockRef.current))},[]),p=D.useCallback(function(f){y(f.type,Cs(f),f.target,c(f,e.lockRef.current))},[]);D.useEffect(function(){return ii.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:p}),document.addEventListener("wheel",h,ni),document.addEventListener("touchmove",h,ni),document.addEventListener("touchstart",v,ni),function(){ii=ii.filter(function(f){return f!==a}),document.removeEventListener("wheel",h,ni),document.removeEventListener("touchmove",h,ni),document.removeEventListener("touchstart",v,ni)}},[]);var w=e.removeScrollBar,x=e.inert;return D.createElement(D.Fragment,null,x?D.createElement(a,{styles:qT(s)}):null,w?D.createElement(FT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function KT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const VT=ET(Tv,GT);var $v=D.forwardRef(function(e,t){return D.createElement(va,xr({},e,{ref:t,sideCar:VT}))});$v.classNames=va.classNames;const YT=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},XT=D.useId||(()=>{});let JT=0;function QT(e){const[t,r]=D.useState(XT());return YT((()=>{r((o=>o??String(JT++)))}),[e]),e||(t?`radix-${t}`:"")}function Iv(...e){return t=>e.forEach((r=>(function(o,s){typeof o=="function"?o(s):o!=null&&(o.current=s)})(r,t)))}function Dn(...e){return D.useCallback(Iv(...e),e)}const Lv=D.forwardRef(((e,t)=>{const{children:r,...o}=e;return D.Children.toArray(r).some(_h)?D.createElement(D.Fragment,null,D.Children.map(r,(s=>_h(s)?D.createElement(zl,ct({},o,{ref:t}),s.props.children):s))):D.createElement(zl,ct({},o,{ref:t}),r)}));Lv.displayName="Slot";const zl=D.forwardRef(((e,t)=>{const{children:r,...o}=e;return D.isValidElement(r)?D.cloneElement(r,{...tR(o,r.props),ref:Iv(t,r.ref)}):D.Children.count(r)>1?D.Children.only(null):null}));zl.displayName="SlotClone";const eR=({children:e})=>D.createElement(D.Fragment,null,e);function _h(e){return D.isValidElement(e)&&e.type===eR}function tR(e,t){const r={...t};for(const o in t){const s=e[o],a=t[o];/^on[A-Z]/.test(o)?r[o]=(...l)=>{a==null||a(...l),s==null||s(...l)}:o==="style"?r[o]={...s,...a}:o==="className"&&(r[o]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const hi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:D.forwardRef(((r,o)=>{const{asChild:s,...a}=r,l=s?Lv:t;return D.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),D.createElement(l,ct({},a,{ref:o}))}))})),{}),Ah=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},Mv=e=>{const{present:t,children:r}=e,o=(function(l){const[c,h]=D.useState(),y=D.useRef({}),v=D.useRef(l),g=D.useRef("none"),p=l?"mounted":"unmounted",[w,x]=(function(f,b){return D.useReducer(((d,S)=>{const E=b[d][S];return E??d}),f)})(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect((()=>{const f=ks(y.current);g.current=w==="mounted"?f:"none"}),[w]),Ah((()=>{const f=y.current,b=v.current;if(b!==l){const d=g.current,S=ks(f);l?x("MOUNT"):S==="none"||(f==null?void 0:f.display)==="none"?x("UNMOUNT"):x(b&&d!==S?"ANIMATION_OUT":"UNMOUNT"),v.current=l}}),[l,x]),Ah((()=>{if(c){const f=d=>{const S=ks(y.current).includes(d.animationName);d.target===c&&S&&x("ANIMATION_END")},b=d=>{d.target===c&&(g.current=ks(y.current))};return c.addEventListener("animationstart",b),c.addEventListener("animationcancel",f),c.addEventListener("animationend",f),()=>{c.removeEventListener("animationstart",b),c.removeEventListener("animationcancel",f),c.removeEventListener("animationend",f)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:D.useCallback((f=>{f&&(y.current=getComputedStyle(f)),h(f)}),[])}})(t),s=typeof r=="function"?r({present:o.isPresent}):D.Children.only(r),a=Dn(o.ref,s.ref);return typeof r=="function"||o.isPresent?D.cloneElement(s,{ref:a}):null};function ks(e){return(e==null?void 0:e.animationName)||"none"}Mv.displayName="Presence";let fl=0;function rR(){D.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:Oh()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Oh()),fl++,()=>{fl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((o=>o.remove())),fl--}}),[])}function Oh(){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 nR=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},Fv=D.forwardRef(((e,t)=>{var r,o;const{containerRef:s,style:a,...l}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,h]=D.useState({});return nR((()=>{h({})}),[]),c?So.createPortal(D.createElement(hi.div,ct({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Ln(e){const t=D.useRef(e);return D.useEffect((()=>{t.current=e})),D.useMemo((()=>(...r)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...r)}),[])}const Th={bubbles:!1,cancelable:!0},iR=D.forwardRef(((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,h]=D.useState(null),y=Ln(s),v=Ln(a),g=D.useRef(null),p=Dn(t,(f=>h(f))),w=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect((()=>{if(o){let f=function(d){if(w.paused||!c)return;const S=d.target;c.contains(S)?g.current=S:_n(g.current,{select:!0})},b=function(d){!w.paused&&c&&(c.contains(d.relatedTarget)||_n(g.current,{select:!0}))};return document.addEventListener("focusin",f),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",b)}}}),[o,c,w.paused]),D.useEffect((()=>{if(c){Ch.add(w);const b=document.activeElement;if(!c.contains(b)){const d=new Event("focusScope.autoFocusOnMount",Th);c.addEventListener("focusScope.autoFocusOnMount",y),c.dispatchEvent(d),d.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(_n(O,{select:E}),document.activeElement!==R)return})((f=Rh(c),f.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===b&&_n(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",y),setTimeout((()=>{const d=new Event("focusScope.autoFocusOnUnmount",Th);c.addEventListener("focusScope.autoFocusOnUnmount",v),c.dispatchEvent(d),d.defaultPrevented||_n(b??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",v),Ch.remove(w)}),0)}}var f}),[c,y,v,w]);const x=D.useCallback((f=>{if(!r&&!o||w.paused)return;const b=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,d=document.activeElement;if(b&&d){const S=f.currentTarget,[E,R]=(function(O){const k=Rh(O),B=Ph(k,O),L=Ph(k.reverse(),O);return[B,L]})(S);E&&R?f.shiftKey||d!==R?f.shiftKey&&d===E&&(f.preventDefault(),r&&_n(R,{select:!0})):(f.preventDefault(),r&&_n(E,{select:!0})):d===S&&f.preventDefault()}}),[r,o,w.paused]);return D.createElement(hi.div,ct({tabIndex:-1},l,{ref:p,onKeyDown:x}))}));function Rh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ph(e,t){for(const r of e)if(!oR(r,{upTo:t}))return r}function oR(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 _n(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(o){return o instanceof HTMLInputElement&&"select"in o})(e)&&t&&e.select()}}const Ch=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=kh(e,t),e.unshift(t)},remove(t){var r;e=kh(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function kh(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function sR(e){const t=Ln(e);D.useEffect((()=>{const r=o=>{o.key==="Escape"&&t(o)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const aR=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{};let $h,$s=0;function uR({disabled:e}){const t=D.useRef(!1);aR((()=>{if(e){let r=function(){$s--,$s===0&&(document.body.style.pointerEvents=$h)},o=function(s){t.current=s.pointerType!=="mouse"};return $s===0&&($h=document.body.style.pointerEvents),document.body.style.pointerEvents="none",$s++,document.addEventListener("pointerup",o),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",o)}}}),[e])}function kn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}const lR=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cR=D.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...h}=e,y=D.useContext(lR),[v,g]=D.useState(null),[,p]=D.useState({}),w=Dn(t,(k=>g(k))),x=Array.from(y.layers),[f]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(f),d=v?x.indexOf(v):-1,S=y.layersWithOutsidePointerEventsDisabled.size>0,E=d>=b,R=(function(k){const B=Ln(k),L=D.useRef(!1);return D.useEffect((()=>{const M=N=>{N.target&&!L.current&&Lh("dismissableLayer.pointerDownOutside",B,{originalEvent:N}),L.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",M)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",M)}}),[B]),{onPointerDownCapture:()=>L.current=!0}})((k=>{const B=k.target,L=[...y.branches].some((M=>M.contains(B)));E&&!L&&(s==null||s(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const B=Ln(k),L=D.useRef(!1);return D.useEffect((()=>{const M=G=>{G.target&&!L.current&&Lh("dismissableLayer.focusOutside",B,{originalEvent:G})};return document.addEventListener("focusin",M),()=>document.removeEventListener("focusin",M)}),[B]),{onFocusCapture:()=>L.current=!0,onBlurCapture:()=>L.current=!1}})((k=>{const B=k.target;[...y.branches].some((L=>L.contains(B)))||(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())}));return sR((k=>{d===y.layers.size-1&&(o==null||o(k),k.defaultPrevented||c==null||c())})),uR({disabled:r}),D.useEffect((()=>{v&&(r&&y.layersWithOutsidePointerEventsDisabled.add(v),y.layers.add(v),Ih())}),[v,r,y]),D.useEffect((()=>()=>{v&&(y.layers.delete(v),y.layersWithOutsidePointerEventsDisabled.delete(v),Ih())}),[v,y]),D.useEffect((()=>{const k=()=>p({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),D.createElement(hi.div,ct({},h,{ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:kn(e.onFocusCapture,O.onFocusCapture),onBlurCapture:kn(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:kn(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function Ih(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Lh(e,t,r){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&o.addEventListener(e,t,{once:!0}),!o.dispatchEvent(s)}function Mh(e){const[t,r]=D.useState(void 0);return D.useEffect((()=>{if(e){const o=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const h=a.borderBoxSize,y=Array.isArray(h)?h[0]:h;l=y.inlineSize,c=y.blockSize}else{const h=e.getBoundingClientRect();l=h.width,c=h.height}r({width:l,height:c})}));return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}r(void 0)}),[e]),t}function fR(e,t){const r=An.get(e);return r===void 0?(An.set(e,{rect:{},callbacks:[t]}),An.size===1&&(Wl=requestAnimationFrame(Dv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const o=An.get(e);if(o===void 0)return;const s=o.callbacks.indexOf(t);s>-1&&o.callbacks.splice(s,1),o.callbacks.length===0&&(An.delete(e),An.size===0&&cancelAnimationFrame(Wl))}}let Wl;const An=new Map;function Dv(){const e=[];An.forEach(((t,r)=>{const o=r.getBoundingClientRect();var s,a;s=t.rect,a=o,(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=o,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Wl=requestAnimationFrame(Dv)}function dR(e){const[t,r]=D.useState();return D.useEffect((()=>{if(e){const o=fR(e,r);return()=>{r(void 0),o()}}}),[e]),t}function Nv(e,t=[]){let r=[];const o=()=>{const s=r.map((a=>D.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||s;return D.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return o.scopeName=e,[function(s,a){const l=D.createContext(a),c=r.length;function h(y){const{scope:v,children:g,...p}=y,w=(v==null?void 0:v[e][c])||l,x=D.useMemo((()=>p),Object.values(p));return D.createElement(w.Provider,{value:x},g)}return r=[...r,a],h.displayName=s+"Provider",[h,function(y,v){const g=(v==null?void 0:v[e][c])||l,p=D.useContext(g);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${y}\` must be used within \`${s}\``)}]},pR(o,...t)]}function pR(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=o.reduce(((l,{useScope:c,scopeName:h})=>({...l,...c(s)[`__scope${h}`]})),{});return D.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function hR({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:o=0,side:s,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:h=!0,collisionBoundariesRect:y,collisionTolerance:v=0}){if(!e||!t||!y)return{popperStyles:gR,arrowStyles:dl};const g=(function(B,L,M=0,G=0,N){const I=N?N.height:0,U=Fh(L,B,"x"),q=Fh(L,B,"y"),C=q.before-M-I,J=q.after+M+I,Y=U.before-M-I,te=U.after+M+I;return{top:{start:{x:U.start+G,y:C},center:{x:U.center,y:C},end:{x:U.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:U.start+G,y:J},center:{x:U.center,y:J},end:{x:U.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(t,e,a,c,r),p=g[s][l];if(h===!1){const B=Dh(p);let L=dl;return r&&(L=jh({popperSize:t,arrowSize:r,arrowOffset:o,side:s,align:l})),{popperStyles:{...B,"--radix-popper-transform-origin":Nh(t,s,l,o,r)},arrowStyles:L,placedSide:s,placedAlign:l}}const w=DOMRect.fromRect({...t,...p}),x=(f=y,b=v,DOMRect.fromRect({width:f.width-2*b,height:f.height-2*b,x:f.left+b,y:f.top+b}));var f,b;const d=Wh(w,x),S=g[zh(s)][l],E=(function(B,L,M){const G=zh(B);return L[B]&&!M[G]?G:B})(s,d,Wh(DOMRect.fromRect({...t,...S}),x)),R=(function(B,L,M,G,N){const I=M==="top"||M==="bottom",U=I?"left":"top",q=I?"right":"bottom",C=I?"width":"height",J=L[C]>B[C];return(G==="start"||G==="center")&&(N[U]&&J||N[q]&&!J)?"end":(G==="end"||G==="center")&&(N[q]&&J||N[U]&&!J)?"start":G})(t,e,s,l,d),O=Dh(g[E][R]);let k=dl;return r&&(k=jh({popperSize:t,arrowSize:r,arrowOffset:o,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Nh(t,E,R,o,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function Fh(e,t,r){const o=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],l=t[s];return{before:o-l,start:o,center:o+(a-l)/2,end:o+a-l,after:o+a}}function Dh(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 Nh(e,t,r,o,s){const a=t==="top"||t==="bottom",l=s?s.width:0,c=s?s.height:0,h=l/2+o;let y="",v="";return a?(y={start:`${h}px`,center:"center",end:e.width-h+"px"}[r],v=t==="top"?`${e.height+c}px`:-c+"px"):(y=t==="left"?`${e.width+c}px`:-c+"px",v={start:`${h}px`,center:"center",end:e.height-h+"px"}[r]),`${y} ${v}`}const gR={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},dl={position:"absolute",opacity:0};function jh({popperSize:e,arrowSize:t,arrowOffset:r,side:o,align:s}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[o],h=Math.max(t.width,t.height),y={width:`${h}px`,height:`${h}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:vR(o,s)};return o!=="top"&&o!=="bottom"||(s==="start"&&(y.left=`${r}px`),s==="center"&&(y.left=`${a}px`),s==="end"&&(y.right=`${r}px`)),o!=="left"&&o!=="right"||(s==="start"&&(y.top=`${r}px`),s==="center"&&(y.top=`${l}px`),s==="end"&&(y.bottom=`${r}px`)),y}function vR(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function zh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Wh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[jv,zv]=Nv("Popper"),[mR,Wv]=jv("Popper"),yR=e=>{const{__scopePopper:t,children:r}=e,[o,s]=D.useState(null);return D.createElement(mR,{scope:t,anchor:o,onAnchorChange:s},r)},wR=D.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:o,...s}=e,a=Wv("PopperAnchor",r),l=D.useRef(null),c=Dn(t,l);return D.useEffect((()=>{a.onAnchorChange((o==null?void 0:o.current)||l.current)})),o?null:D.createElement(hi.div,ct({},s,{ref:c}))})),[bR,bL]=jv("PopperContent"),xR=D.forwardRef(((e,t)=>{const{__scopePopper:r,side:o="bottom",sideOffset:s,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:h=!0,...y}=e,v=Wv("PopperContent",r),[g,p]=D.useState(),w=dR(v.anchor),[x,f]=D.useState(null),b=Mh(x),[d,S]=D.useState(null),E=Mh(d),R=Dn(t,(I=>f(I))),O=(function(){const[I,U]=D.useState(void 0);return D.useEffect((()=>{let q;function C(){U({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),I})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:B,arrowStyles:L,placedSide:M,placedAlign:G}=hR({anchorRect:w,popperSize:b,arrowSize:E,arrowOffset:g,side:o,sideOffset:s,align:a,alignOffset:l,shouldAvoidCollisions:h,collisionBoundariesRect:k,collisionTolerance:c}),N=M!==void 0;return D.createElement("div",{style:B,"data-radix-popper-content-wrapper":""},D.createElement(bR,{scope:r,arrowStyles:L,onArrowChange:S,onArrowOffsetChange:p},D.createElement(hi.div,ct({"data-side":M,"data-align":G},y,{style:{...y.style,animation:N?void 0:"none"},ref:R}))))})),SR=yR,ER=wR,_R=xR;function AR({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[o,s]=(function({defaultProp:h,onChange:y}){const v=D.useState(h),[g]=v,p=D.useRef(g),w=Ln(y);return D.useEffect((()=>{p.current!==g&&(w(g),p.current=g)}),[g,p,w]),v})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o,c=Ln(r);return[l,D.useCallback((h=>{if(a){const y=h,v=typeof h=="function"?y(e):h;v!==e&&c(v)}else s(h)}),[a,e,s,c])]}const[OR]=Nv("Popover",[zv]),dc=zv(),[TR,Ao]=OR("Popover"),RR=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=dc(t),h=D.useRef(null),[y,v]=D.useState(!1),[g=!1,p]=AR({prop:o,defaultProp:s,onChange:a});return D.createElement(SR,c,D.createElement(TR,{scope:t,contentId:QT(),triggerRef:h,open:g,onOpenChange:p,onOpenToggle:D.useCallback((()=>p((w=>!w))),[p]),hasCustomAnchor:y,onCustomAnchorAdd:D.useCallback((()=>v(!0)),[]),onCustomAnchorRemove:D.useCallback((()=>v(!1)),[]),modal:l},r))},PR=D.forwardRef(((e,t)=>{const{__scopePopover:r,...o}=e,s=Ao("PopoverTrigger",r),a=dc(r),l=Dn(t,s.triggerRef),c=D.createElement(hi.button,ct({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Uv(s.open)},o,{ref:l,onClick:kn(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:D.createElement(ER,ct({asChild:!0},a),c)})),CR=D.forwardRef(((e,t)=>{const{forceMount:r,...o}=e,s=Ao("PopoverContent",e.__scopePopover);return D.createElement(Mv,{present:r||s.open},s.modal?D.createElement(kR,ct({},o,{ref:t})):D.createElement($R,ct({},o,{ref:t})))})),kR=D.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:o=!0,...s}=e,a=Ao("PopoverContent",e.__scopePopover),l=D.useRef(null),c=Dn(t,l),h=D.useRef(!1);D.useEffect((()=>{const v=l.current;if(v)return hT(v)}),[]);const y=o?Fv:D.Fragment;return D.createElement(y,null,D.createElement($v,{allowPinchZoom:r},D.createElement(Bv,ct({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:kn(e.onCloseAutoFocus,(v=>{var g;v.preventDefault(),h.current||(g=a.triggerRef.current)===null||g===void 0||g.focus()})),onPointerDownOutside:kn(e.onPointerDownOutside,(v=>{const g=v.detail.originalEvent,p=g.button===0&&g.ctrlKey===!0,w=g.button===2||p;h.current=w}),{checkForDefaultPrevented:!1}),onFocusOutside:kn(e.onFocusOutside,(v=>v.preventDefault()),{checkForDefaultPrevented:!1})}))))})),$R=D.forwardRef(((e,t)=>{const{portalled:r=!0,...o}=e,s=Ao("PopoverContent",e.__scopePopover),a=D.useRef(!1),l=r?Fv:D.Fragment;return D.createElement(l,null,D.createElement(Bv,ct({},o,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,y;(h=e.onCloseAutoFocus)===null||h===void 0||h.call(e,c),c.defaultPrevented||(a.current||(y=s.triggerRef.current)===null||y===void 0||y.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var h,y;(h=e.onInteractOutside)===null||h===void 0||h.call(e,c),c.defaultPrevented||(a.current=!0);const v=c.target;!((y=s.triggerRef.current)===null||y===void 0)&&y.contains(v)&&c.preventDefault()}})))})),Bv=D.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:y,onInteractOutside:v,...g}=e,p=Ao("PopoverContent",r),w=dc(r);return rR(),D.createElement(iR,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:a},D.createElement(cR,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:v,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:y,onDismiss:()=>p.onOpenChange(!1)},D.createElement(_R,ct({"data-state":Uv(p.open),role:"dialog",id:p.contentId},w,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Uv(e){return e?"open":"closed"}const IR=RR,LR=PR,MR=CR;var Vs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Vs||{}),pl={},Zi={},Is={},Ls={},Ms={exports:{}},Fs={exports:{}},Ie={};/** @license React v16.13.1
63
63
  * react-is.production.min.js
64
64
  *
65
65
  * Copyright (c) Facebook, Inc. and its affiliates.
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var ah;function MT(){if(ah)return Re;ah=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,E=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,c=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(A){if(typeof A=="object"&&A!==null){var I=A.$$typeof;switch(I){case n:switch(A=A.type,A){case m:case E:case o:case u:case a:case p:return A;default:switch(A=A&&A.$$typeof,A){case d:case g:case b:case y:case l:return A;default:return I}}case r:return I}}}function P(A){return _(A)===E}return Re.AsyncMode=m,Re.ConcurrentMode=E,Re.ContextConsumer=d,Re.ContextProvider=l,Re.Element=n,Re.ForwardRef=g,Re.Fragment=o,Re.Lazy=b,Re.Memo=y,Re.Portal=r,Re.Profiler=u,Re.StrictMode=a,Re.Suspense=p,Re.isAsyncMode=function(A){return P(A)||_(A)===m},Re.isConcurrentMode=P,Re.isContextConsumer=function(A){return _(A)===d},Re.isContextProvider=function(A){return _(A)===l},Re.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},Re.isForwardRef=function(A){return _(A)===g},Re.isFragment=function(A){return _(A)===o},Re.isLazy=function(A){return _(A)===b},Re.isMemo=function(A){return _(A)===y},Re.isPortal=function(A){return _(A)===r},Re.isProfiler=function(A){return _(A)===u},Re.isStrictMode=function(A){return _(A)===a},Re.isSuspense=function(A){return _(A)===p},Re.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===o||A===E||A===u||A===a||A===p||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===b||A.$$typeof===y||A.$$typeof===l||A.$$typeof===d||A.$$typeof===g||A.$$typeof===w||A.$$typeof===c||A.$$typeof===S||A.$$typeof===f)},Re.typeOf=_,Re}var Ie={};/** @license React v16.13.1
69
+ */var Bh;function FR(){if(Bh)return Ie;Bh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case t:switch(O=O.type,O){case h:case y:case o:case a:case s:case g:return O;default:switch(O=O&&O.$$typeof,O){case c:case v:case x:case w:case l:return O;default:return k}}case r:return k}}}function R(O){return E(O)===y}return Ie.AsyncMode=h,Ie.ConcurrentMode=y,Ie.ContextConsumer=c,Ie.ContextProvider=l,Ie.Element=t,Ie.ForwardRef=v,Ie.Fragment=o,Ie.Lazy=x,Ie.Memo=w,Ie.Portal=r,Ie.Profiler=a,Ie.StrictMode=s,Ie.Suspense=g,Ie.isAsyncMode=function(O){return R(O)||E(O)===h},Ie.isConcurrentMode=R,Ie.isContextConsumer=function(O){return E(O)===c},Ie.isContextProvider=function(O){return E(O)===l},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ie.isForwardRef=function(O){return E(O)===v},Ie.isFragment=function(O){return E(O)===o},Ie.isLazy=function(O){return E(O)===x},Ie.isMemo=function(O){return E(O)===w},Ie.isPortal=function(O){return E(O)===r},Ie.isProfiler=function(O){return E(O)===a},Ie.isStrictMode=function(O){return E(O)===s},Ie.isSuspense=function(O){return E(O)===g},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===o||O===y||O===a||O===s||O===g||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===w||O.$$typeof===l||O.$$typeof===c||O.$$typeof===v||O.$$typeof===b||O.$$typeof===d||O.$$typeof===S||O.$$typeof===f)},Ie.typeOf=E,Ie}var Le={};/** @license React v16.13.1
70
70
  * react-is.development.js
71
71
  *
72
72
  * Copyright (c) Facebook, Inc. and its affiliates.
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var sh;function FT(){return sh||(sh=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,E=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,c=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(ie){return typeof ie=="string"||typeof ie=="function"||ie===o||ie===E||ie===u||ie===a||ie===p||ie===v||typeof ie=="object"&&ie!==null&&(ie.$$typeof===b||ie.$$typeof===y||ie.$$typeof===l||ie.$$typeof===d||ie.$$typeof===g||ie.$$typeof===w||ie.$$typeof===c||ie.$$typeof===S||ie.$$typeof===f)}function P(ie){if(typeof ie=="object"&&ie!==null){var ct=ie.$$typeof;switch(ct){case n:var nt=ie.type;switch(nt){case m:case E:case o:case u:case a:case p:return nt;default:var on=nt&&nt.$$typeof;switch(on){case d:case g:case b:case y:case l:return on;default:return ct}}case r:return ct}}}var A=m,I=E,z=d,L=l,D=n,G=g,k=o,F=b,U=y,q=r,R=u,J=a,Y=p,te=!1;function de(ie){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ie)||P(ie)===m}function Z(ie){return P(ie)===E}function Q(ie){return P(ie)===d}function ae(ie){return P(ie)===l}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===n}function re(ie){return P(ie)===g}function fe(ie){return P(ie)===o}function ce(ie){return P(ie)===b}function ge(ie){return P(ie)===y}function me(ie){return P(ie)===r}function Ee(ie){return P(ie)===u}function Oe(ie){return P(ie)===a}function We(ie){return P(ie)===p}Ie.AsyncMode=A,Ie.ConcurrentMode=I,Ie.ContextConsumer=z,Ie.ContextProvider=L,Ie.Element=D,Ie.ForwardRef=G,Ie.Fragment=k,Ie.Lazy=F,Ie.Memo=U,Ie.Portal=q,Ie.Profiler=R,Ie.StrictMode=J,Ie.Suspense=Y,Ie.isAsyncMode=de,Ie.isConcurrentMode=Z,Ie.isContextConsumer=Q,Ie.isContextProvider=ae,Ie.isElement=ue,Ie.isForwardRef=re,Ie.isFragment=fe,Ie.isLazy=ce,Ie.isMemo=ge,Ie.isPortal=me,Ie.isProfiler=Ee,Ie.isStrictMode=Oe,Ie.isSuspense=We,Ie.isValidElementType=_,Ie.typeOf=P})()),Ie}var uh;function Qv(){return uh||(uh=1,process.env.NODE_ENV==="production"?ba.exports=MT():ba.exports=FT()),ba.exports}/*
76
+ */var Uh;function DR(){return Uh||(Uh=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,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===o||ie===y||ie===a||ie===s||ie===g||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===w||ie.$$typeof===l||ie.$$typeof===c||ie.$$typeof===v||ie.$$typeof===b||ie.$$typeof===d||ie.$$typeof===S||ie.$$typeof===f)}function R(ie){if(typeof ie=="object"&&ie!==null){var vt=ie.$$typeof;switch(vt){case t:var at=ie.type;switch(at){case h:case y:case o:case a:case s:case g:return at;default:var dr=at&&at.$$typeof;switch(dr){case c:case v:case x:case w:case l:return dr;default:return vt}}case r:return vt}}}var O=h,k=y,B=c,L=l,M=t,G=v,N=o,I=x,U=w,q=r,C=a,J=s,Y=g,te=!1;function de(ie){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ie)||R(ie)===h}function Z(ie){return R(ie)===y}function Q(ie){return R(ie)===c}function se(ie){return R(ie)===l}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===v}function ce(ie){return R(ie)===o}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===w}function ve(ie){return R(ie)===r}function Ee(ie){return R(ie)===a}function Oe(ie){return R(ie)===s}function qe(ie){return R(ie)===g}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=B,Le.ContextProvider=L,Le.Element=M,Le.ForwardRef=G,Le.Fragment=N,Le.Lazy=I,Le.Memo=U,Le.Portal=q,Le.Profiler=C,Le.StrictMode=J,Le.Suspense=Y,Le.isAsyncMode=de,Le.isConcurrentMode=Z,Le.isContextConsumer=Q,Le.isContextProvider=se,Le.isElement=ue,Le.isForwardRef=ne,Le.isFragment=ce,Le.isLazy=fe,Le.isMemo=ye,Le.isPortal=ve,Le.isProfiler=Ee,Le.isStrictMode=Oe,Le.isSuspense=qe,Le.isValidElementType=E,Le.typeOf=R})()),Le}var Hh;function Hv(){return Hh||(Hh=1,process.env.NODE_ENV==="production"?Fs.exports=FR():Fs.exports=DR()),Fs.exports}/*
77
77
  object-assign
78
78
  (c) Sindre Sorhus
79
79
  @license MIT
80
- */var qu,lh;function LT(){if(lh)return qu;lh=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var l={},d=0;d<10;d++)l["_"+String.fromCharCode(d)]=d;var m=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(m.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(g){E[g]=g}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return qu=a()?Object.assign:function(u,l){for(var d,m=o(u),E,g=1;g<arguments.length;g++){d=Object(arguments[g]);for(var p in d)n.call(d,p)&&(m[p]=d[p]);if(e){E=e(d);for(var v=0;v<E.length;v++)r.call(d,E[v])&&(m[E[v]]=d[E[v]])}}return m},qu}var Zu,fh;function Wl(){if(fh)return Zu;fh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zu=e,Zu}var Gu,ch;function em(){return ch||(ch=1,Gu=Function.call.bind(Object.prototype.hasOwnProperty)),Gu}var Ku,dh;function DT(){if(dh)return Ku;dh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Wl(),r={},o=em();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,d,m,E){if(process.env.NODE_ENV!=="production"){for(var g in u)if(o(u,g)){var p;try{if(typeof u[g]!="function"){var v=Error((m||"React class")+": "+d+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}p=u[g](l,g,m,d,null,n)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((m||"React class")+": type specification of "+d+" `"+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 y=E?E():"";e("Failed "+d+" type: "+p.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ku=a,Ku}var Vu,ph;function $T(){if(ph)return Vu;ph=1;var e=Qv(),n=LT(),r=Wl(),o=em(),a=DT(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(d){var m="Warning: "+d;typeof console<"u"&&console.error(m);try{throw new Error(m)}catch{}});function l(){return null}return Vu=function(d,m){var E=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(Z){var Q=Z&&(E&&Z[E]||Z[g]);if(typeof Q=="function")return Q}var v="<<anonymous>>",y={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:S(),arrayOf:_,element:P(),elementType:A(),instanceOf:I,node:G(),objectOf:L,oneOf:z,oneOfType:D,shape:F,exact:U};function b(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function f(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}f.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var Q={},ae=0;function ue(fe,ce,ge,me,Ee,Oe,We){if(me=me||v,Oe=Oe||ge,We!==r){if(m){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ct=me+":"+ge;!Q[ct]&&ae<3&&(u("You are manually calling a React.PropTypes validation function for the `"+Oe+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[ct]=!0,ae++)}}return ce[ge]==null?fe?ce[ge]===null?new f("The "+Ee+" `"+Oe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new f("The "+Ee+" `"+Oe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:Z(ce,ge,me,Ee,Oe)}var re=ue.bind(null,!1);return re.isRequired=ue.bind(null,!0),re}function c(Z){function Q(ae,ue,re,fe,ce,ge){var me=ae[ue],Ee=J(me);if(Ee!==Z){var Oe=Y(me);return new f("Invalid "+fe+" `"+ce+"` of type "+("`"+Oe+"` supplied to `"+re+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(Q)}function S(){return w(l)}function _(Z){function Q(ae,ue,re,fe,ce){if(typeof Z!="function")return new f("Property `"+ce+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var ge=ae[ue];if(!Array.isArray(ge)){var me=J(ge);return new f("Invalid "+fe+" `"+ce+"` of type "+("`"+me+"` supplied to `"+re+"`, expected an array."))}for(var Ee=0;Ee<ge.length;Ee++){var Oe=Z(ge,Ee,re,fe,ce+"["+Ee+"]",r);if(Oe instanceof Error)return Oe}return null}return w(Q)}function P(){function Z(Q,ae,ue,re,fe){var ce=Q[ae];if(!d(ce)){var ge=J(ce);return new f("Invalid "+re+" `"+fe+"` of type "+("`"+ge+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function A(){function Z(Q,ae,ue,re,fe){var ce=Q[ae];if(!e.isValidElementType(ce)){var ge=J(ce);return new f("Invalid "+re+" `"+fe+"` of type "+("`"+ge+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(Z)}function I(Z){function Q(ae,ue,re,fe,ce){if(!(ae[ue]instanceof Z)){var ge=Z.name||v,me=de(ae[ue]);return new f("Invalid "+fe+" `"+ce+"` of type "+("`"+me+"` supplied to `"+re+"`, expected ")+("instance of `"+ge+"`."))}return null}return w(Q)}function z(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("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])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function Q(ae,ue,re,fe,ce){for(var ge=ae[ue],me=0;me<Z.length;me++)if(b(ge,Z[me]))return null;var Ee=JSON.stringify(Z,function(We,ie){var ct=Y(ie);return ct==="symbol"?String(ie):ie});return new f("Invalid "+fe+" `"+ce+"` of value `"+String(ge)+"` "+("supplied to `"+re+"`, expected one of "+Ee+"."))}return w(Q)}function L(Z){function Q(ae,ue,re,fe,ce){if(typeof Z!="function")return new f("Property `"+ce+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var ge=ae[ue],me=J(ge);if(me!=="object")return new f("Invalid "+fe+" `"+ce+"` of type "+("`"+me+"` supplied to `"+re+"`, expected an object."));for(var Ee in ge)if(o(ge,Ee)){var Oe=Z(ge,Ee,re,fe,ce+"."+Ee,r);if(Oe instanceof Error)return Oe}return null}return w(Q)}function D(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Q=0;Q<Z.length;Q++){var ae=Z[Q];if(typeof ae!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" at index "+Q+"."),l}function ue(re,fe,ce,ge,me){for(var Ee=[],Oe=0;Oe<Z.length;Oe++){var We=Z[Oe],ie=We(re,fe,ce,ge,me,r);if(ie==null)return null;ie.data&&o(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var ct=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new f("Invalid "+ge+" `"+me+"` supplied to "+("`"+ce+"`"+ct+"."))}return w(ue)}function G(){function Z(Q,ae,ue,re,fe){return q(Q[ae])?null:new f("Invalid "+re+" `"+fe+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function k(Z,Q,ae,ue,re){return new f((Z||"React class")+": "+Q+" type `"+ae+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function F(Z){function Q(ae,ue,re,fe,ce){var ge=ae[ue],me=J(ge);if(me!=="object")return new f("Invalid "+fe+" `"+ce+"` of type `"+me+"` "+("supplied to `"+re+"`, expected `object`."));for(var Ee in Z){var Oe=Z[Ee];if(typeof Oe!="function")return k(re,fe,ce,Ee,Y(Oe));var We=Oe(ge,Ee,re,fe,ce+"."+Ee,r);if(We)return We}return null}return w(Q)}function U(Z){function Q(ae,ue,re,fe,ce){var ge=ae[ue],me=J(ge);if(me!=="object")return new f("Invalid "+fe+" `"+ce+"` of type `"+me+"` "+("supplied to `"+re+"`, expected `object`."));var Ee=n({},ae[ue],Z);for(var Oe in Ee){var We=Z[Oe];if(o(Z,Oe)&&typeof We!="function")return k(re,fe,ce,Oe,Y(We));if(!We)return new f("Invalid "+fe+" `"+ce+"` key `"+Oe+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(ae[ue],null," ")+`
81
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=We(ge,Oe,re,fe,ce+"."+Oe,r);if(ie)return ie}return null}return w(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||d(Z))return!0;var Q=p(Z);if(Q){var ae=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=ae.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=ae.next()).done;){var re=ue.value;if(re&&!q(re[1]))return!1}}else return!1;return!0;default:return!1}}function R(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":R(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?v:Z.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},Vu}var Yu,hh;function NT(){if(hh)return Yu;hh=1;var e=Wl();function n(){}function r(){}return r.resetWarningCache=n,Yu=function(){function o(l,d,m,E,g,p){if(p!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:n};return u.PropTypes=u,u},Yu}var vh;function kT(){if(vh)return wa.exports;if(vh=1,process.env.NODE_ENV!=="production"){var e=Qv(),n=!0;wa.exports=$T()(e.isElement,n)}else wa.exports=NT()();return wa.exports}var mh;function jT(){return mh||(mh=1,(function(e){(function(n,r){r(e,B,kT())})(ya,function(n,r,o){Object.defineProperty(n,"__esModule",{value:!0}),n.setHasSupportToCaptureOption=b;var a=l(r),u=l(o);function l(S){return S&&S.__esModule?S:{default:S}}var d=Object.assign||function(S){for(var _=1;_<arguments.length;_++){var P=arguments[_];for(var A in P)Object.prototype.hasOwnProperty.call(P,A)&&(S[A]=P[A])}return S};function m(S,_){var P={};for(var A in S)_.indexOf(A)>=0||Object.prototype.hasOwnProperty.call(S,A)&&(P[A]=S[A]);return P}function E(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}var g=(function(){function S(_,P){for(var A=0;A<P.length;A++){var I=P[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}return function(_,P,A){return P&&S(_.prototype,P),A&&S(_,A),_}})();function p(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function v(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var y=!1;function b(S){y=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){b(!0)}}))}catch{}function f(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?S:S.capture}function w(S){if("touches"in S){var _=S.touches[0],P=_.pageX,A=_.pageY;return{x:P,y:A}}var I=S.screenX,z=S.screenY;return{x:I,y:z}}var c=(function(S){v(_,S);function _(){var P;E(this,_);for(var A=arguments.length,I=Array(A),z=0;z<A;z++)I[z]=arguments[z];var L=p(this,(P=_.__proto__||Object.getPrototypeOf(_)).call.apply(P,[this].concat(I)));return L._handleSwipeStart=L._handleSwipeStart.bind(L),L._handleSwipeMove=L._handleSwipeMove.bind(L),L._handleSwipeEnd=L._handleSwipeEnd.bind(L),L._onMouseDown=L._onMouseDown.bind(L),L._onMouseMove=L._onMouseMove.bind(L),L._onMouseUp=L._onMouseUp.bind(L),L._setSwiperRef=L._setSwiperRef.bind(L),L}return g(_,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(A){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(A))}},{key:"_onMouseMove",value:function(A){this.mouseDown&&this._handleSwipeMove(A)}},{key:"_onMouseUp",value:function(A){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(A)}},{key:"_handleSwipeStart",value:function(A){var I=w(A),z=I.x,L=I.y;this.moveStart={x:z,y:L},this.props.onSwipeStart(A)}},{key:"_handleSwipeMove",value:function(A){if(this.moveStart){var I=w(A),z=I.x,L=I.y,D=z-this.moveStart.x,G=L-this.moveStart.y;this.moving=!0;var k=this.props.onSwipeMove({x:D,y:G},A);k&&A.cancelable&&A.preventDefault(),this.movePosition={deltaX:D,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(A){this.props.onSwipeEnd(A);var I=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-I?this.props.onSwipeLeft(1,A):this.movePosition.deltaX>I&&this.props.onSwipeRight(1,A),this.movePosition.deltaY<-I?this.props.onSwipeUp(1,A):this.movePosition.deltaY>I&&this.props.onSwipeDown(1,A)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(A){this.swiper=A,this.props.innerRef(A)}},{key:"render",value:function(){var A=this.props;A.tagName;var I=A.className,z=A.style,L=A.children;A.allowMouseEvents,A.onSwipeUp,A.onSwipeDown,A.onSwipeLeft,A.onSwipeRight,A.onSwipeStart,A.onSwipeMove,A.onSwipeEnd,A.innerRef,A.tolerance;var D=m(A,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:I,style:z},D),L)}}]),_})(r.Component);c.displayName="ReactSwipe",c.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},c.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},n.default=c})})(ya)),ya}var gh;function tm(){return gh||(gh=1,(function(e){(function(n,r){r(e,jT())})(ga,function(n,r){Object.defineProperty(n,"__esModule",{value:!0});var o=a(r);function a(u){return u&&u.__esModule?u:{default:u}}n.default=o.default})})(ga)),ga}var $i={},yh;function nm(){if(yh)return $i;yh=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.default=void 0;var e=n(vv());function n(a){return a&&a.__esModule?a:{default:a}}function r(a,u,l){return u in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l,a}var o={ROOT:function(u){return(0,e.default)(r({"carousel-root":!0},u||"",!!u))},CAROUSEL:function(u){return(0,e.default)({carousel:!0,"carousel-slider":u})},WRAPPER:function(u,l){return(0,e.default)({"thumbs-wrapper":!u,"slider-wrapper":u,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(u,l){return(0,e.default)({thumbs:!u,slider:u,animated:!l})},ITEM:function(u,l,d){return(0,e.default)({thumb:!u,slide:u,selected:l,previous:d})},ARROW_PREV:function(u){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":u})},ARROW_NEXT:function(u){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":u})},DOT:function(u){return(0,e.default)({dot:!0,selected:u})}};return $i.default=o,$i}var Ni={},ki={},wh;function WT(){if(wh)return ki;wh=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.outerWidth=void 0;var e=function(r){var o=r.offsetWidth,a=getComputedStyle(r);return o+=parseInt(a.marginLeft)+parseInt(a.marginRight),o};return ki.outerWidth=e,ki}var ji={},bh;function Ul(){if(bh)return ji;bh=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=void 0;var e=function(r,o,a){var u=r===0?r:r+o,l=a==="horizontal"?[u,0,0]:[0,u,0],d="translate3d",m="("+l.join(",")+")";return d+m};return ji.default=e,ji}var Wi={},Sh;function rm(){if(Sh)return Wi;Sh=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=void 0;var e=function(){return window};return Wi.default=e,Wi}var Eh;function im(){if(Eh)return Ni;Eh=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var e=m(B),n=l(nm()),r=WT(),o=l(Ul()),a=l(tm()),u=l(rm());function l(L){return L&&L.__esModule?L:{default:L}}function d(){if(typeof WeakMap!="function")return null;var L=new WeakMap;return d=function(){return L},L}function m(L){if(L&&L.__esModule)return L;if(L===null||E(L)!=="object"&&typeof L!="function")return{default:L};var D=d();if(D&&D.has(L))return D.get(L);var G={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in L)if(Object.prototype.hasOwnProperty.call(L,F)){var U=k?Object.getOwnPropertyDescriptor(L,F):null;U&&(U.get||U.set)?Object.defineProperty(G,F,U):G[F]=L[F]}return G.default=L,D&&D.set(L,G),G}function E(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(G){return typeof G}:E=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},E(L)}function g(){return g=Object.assign||function(L){for(var D=1;D<arguments.length;D++){var G=arguments[D];for(var k in G)Object.prototype.hasOwnProperty.call(G,k)&&(L[k]=G[k])}return L},g.apply(this,arguments)}function p(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}function v(L,D){for(var G=0;G<D.length;G++){var k=D[G];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(L,k.key,k)}}function y(L,D,G){return D&&v(L.prototype,D),L}function b(L,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),D&&f(L,D)}function f(L,D){return f=Object.setPrototypeOf||function(k,F){return k.__proto__=F,k},f(L,D)}function w(L){var D=_();return function(){var k=P(L),F;if(D){var U=P(this).constructor;F=Reflect.construct(k,arguments,U)}else F=k.apply(this,arguments);return c(this,F)}}function c(L,D){return D&&(E(D)==="object"||typeof D=="function")?D:S(L)}function S(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function _(){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(L){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},P(L)}function A(L,D,G){return D in L?Object.defineProperty(L,D,{value:G,enumerable:!0,configurable:!0,writable:!0}):L[D]=G,L}var I=function(D){return D.hasOwnProperty("key")},z=(function(L){b(G,L);var D=w(G);function G(k){var F;return p(this,G),F=D.call(this,k),A(S(F),"itemsWrapperRef",void 0),A(S(F),"itemsListRef",void 0),A(S(F),"thumbsRef",void 0),A(S(F),"setItemsWrapperRef",function(U){F.itemsWrapperRef=U}),A(S(F),"setItemsListRef",function(U){F.itemsListRef=U}),A(S(F),"setThumbsRef",function(U,q){F.thumbsRef||(F.thumbsRef=[]),F.thumbsRef[q]=U}),A(S(F),"updateSizes",function(){if(!(!F.props.children||!F.itemsWrapperRef||!F.thumbsRef)){var U=e.Children.count(F.props.children),q=F.itemsWrapperRef.clientWidth,R=F.props.thumbWidth?F.props.thumbWidth:(0,r.outerWidth)(F.thumbsRef[0]),J=Math.floor(q/R),Y=J<U,te=Y?U-J:0;F.setState(function(de,Z){return{itemSize:R,visibleItems:J,firstItem:Y?F.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),A(S(F),"handleClickItem",function(U,q,R){if(!I(R)||R.key==="Enter"){var J=F.props.onSelectItem;typeof J=="function"&&J(U,q)}}),A(S(F),"onSwipeStart",function(){F.setState({swiping:!0})}),A(S(F),"onSwipeEnd",function(){F.setState({swiping:!1})}),A(S(F),"onSwipeMove",function(U){var q=U.x;if(!F.state.itemSize||!F.itemsWrapperRef||!F.state.visibleItems)return!1;var R=0,J=e.Children.count(F.props.children),Y=-(F.state.firstItem*100)/F.state.visibleItems,te=Math.max(J-F.state.visibleItems,0),de=-te*100/F.state.visibleItems;Y===R&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=F.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return F.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ae){F.itemsListRef.style[ae]=(0,o.default)(Q,"%",F.props.axis)}),!0}),A(S(F),"slideRight",function(U){F.moveTo(F.state.firstItem-(typeof U=="number"?U:1))}),A(S(F),"slideLeft",function(U){F.moveTo(F.state.firstItem+(typeof U=="number"?U:1))}),A(S(F),"moveTo",function(U){U=U<0?0:U,U=U>=F.state.lastPosition?F.state.lastPosition:U,F.setState({firstItem:U})}),F.state={selectedItem:k.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},F}return y(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(F){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==F.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(F){var U=F;return F>=this.state.lastPosition&&(U=this.state.lastPosition),F<this.state.firstItem+this.state.visibleItems&&(U=this.state.firstItem),F<this.state.firstItem&&(U=F),U}},{key:"renderItems",value:function(){var F=this;return this.props.children.map(function(U,q){var R=n.default.ITEM(!1,q===F.state.selectedItem),J={key:q,ref:function(te){return F.setThumbsRef(te,q)},className:R,onClick:F.handleClickItem.bind(F,q,F.props.children[q]),onKeyDown:F.handleClickItem.bind(F,q,F.props.children[q]),"aria-label":"".concat(F.props.labels.item," ").concat(q+1),style:{width:F.props.thumbWidth}};return e.default.createElement("li",g({},J,{role:"button",tabIndex:0}),U)})}},{key:"render",value:function(){var F=this;if(!this.props.children)return null;var U=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,R=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,o.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},e.default.createElement("div",{className:n.default.CAROUSEL(!1)},e.default.createElement("div",{className:n.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:n.default.ARROW_PREV(!q),onClick:function(){return F.slideRight()},"aria-label":this.props.labels.leftArrow}),U?e.default.createElement(a.default,{tagName:"ul",className:n.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:n.default.SLIDER(!1,this.state.swiping),ref:function(Q){return F.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:n.default.ARROW_NEXT(!R),onClick:function(){return F.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return Ni.default=z,A(z,"displayName","Thumbs"),A(z,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),Ni}var Ui={},_h;function UT(){if(_h)return Ui;_h=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0;var e=function(){return document};return Ui.default=e,Ui}var Dt={},xh;function om(){if(xh)return Dt;xh=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.setPosition=Dt.getPosition=Dt.isKeyboardEvent=Dt.defaultStatusFormatter=Dt.noop=void 0;var e=B,n=r(Ul());function r(m){return m&&m.__esModule?m:{default:m}}var o=function(){};Dt.noop=o;var a=function(E,g){return"".concat(E," of ").concat(g)};Dt.defaultStatusFormatter=a;var u=function(E){return E?E.hasOwnProperty("key"):!1};Dt.isKeyboardEvent=u;var l=function(E,g){if(g.infiniteLoop&&++E,E===0)return 0;var p=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var v=-E*g.centerSlidePercentage,y=p-1;return E&&(E!==y||g.infiniteLoop)?v+=(100-g.centerSlidePercentage)/2:E===y&&(v+=100-g.centerSlidePercentage),v}return-E*100};Dt.getPosition=l;var d=function(E,g){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(v){p[v]=(0,n.default)(E,"%",g)}),p};return Dt.setPosition=d,Dt}var tn={},Oh;function BT(){if(Oh)return tn;Oh=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.fadeAnimationHandler=tn.slideStopSwipingHandler=tn.slideSwipeAnimationHandler=tn.slideAnimationHandler=void 0;var e=B,n=o(Ul()),r=om();function o(p){return p&&p.__esModule?p:{default:p}}function a(p,v){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);v&&(b=b.filter(function(f){return Object.getOwnPropertyDescriptor(p,f).enumerable})),y.push.apply(y,b)}return y}function u(p){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{};v%2?a(Object(y),!0).forEach(function(b){l(p,b,y[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(y)):a(Object(y)).forEach(function(b){Object.defineProperty(p,b,Object.getOwnPropertyDescriptor(y,b))})}return p}function l(p,v,y){return v in p?Object.defineProperty(p,v,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[v]=y,p}var d=function(v,y){var b={},f=y.selectedItem,w=f,c=e.Children.count(v.children)-1,S=v.infiniteLoop&&(f<0||f>c);if(S)return w<0?v.centerMode&&v.centerSlidePercentage&&v.axis==="horizontal"?b.itemListStyle=(0,r.setPosition)(-(c+2)*v.centerSlidePercentage-(100-v.centerSlidePercentage)/2,v.axis):b.itemListStyle=(0,r.setPosition)(-(c+2)*100,v.axis):w>c&&(b.itemListStyle=(0,r.setPosition)(0,v.axis)),b;var _=(0,r.getPosition)(f,v),P=(0,n.default)(_,"%",v.axis),A=v.transitionTime+"ms";return b.itemListStyle={WebkitTransform:P,msTransform:P,OTransform:P,transform:P},y.swiping||(b.itemListStyle=u(u({},b.itemListStyle),{},{WebkitTransitionDuration:A,MozTransitionDuration:A,OTransitionDuration:A,transitionDuration:A,msTransitionDuration:A})),b};tn.slideAnimationHandler=d;var m=function(v,y,b,f){var w={},c=y.axis==="horizontal",S=e.Children.count(y.children),_=0,P=(0,r.getPosition)(b.selectedItem,y),A=y.infiniteLoop?(0,r.getPosition)(S-1,y)-100:(0,r.getPosition)(S-1,y),I=c?v.x:v.y,z=I;P===_&&I>0&&(z=0),P===A&&I<0&&(z=0);var L=P+100/(b.itemSize/z),D=Math.abs(I)>y.swipeScrollTolerance;return y.infiniteLoop&&D&&(b.selectedItem===0&&L>-100?L-=S*100:b.selectedItem===S-1&&L<-S*100&&(L+=S*100)),(!y.preventMovementUntilSwipeScrollTolerance||D||b.swipeMovementStarted)&&(b.swipeMovementStarted||f({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(L,y.axis)),D&&!b.cancelClick&&f({cancelClick:!0}),w};tn.slideSwipeAnimationHandler=m;var E=function(v,y){var b=(0,r.getPosition)(y.selectedItem,v),f=(0,r.setPosition)(b,v.axis);return{itemListStyle:f}};tn.slideStopSwipingHandler=E;var g=function(v,y){var b=v.transitionTime+"ms",f="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:f,msTransitionTimingFunction:f,MozTransitionTimingFunction:f,WebkitTransitionTimingFunction:f,OTransitionTimingFunction:f};return y.swiping||(w=u(u({},w),{},{WebkitTransitionDuration:b,MozTransitionDuration:b,OTransitionDuration:b,transitionDuration:b,msTransitionDuration:b})),{slideStyle:w,selectedStyle:u(u({},w),{},{opacity:1,position:"relative"}),prevStyle:u({},w)}};return tn.fadeAnimationHandler=g,tn}var Ah;function zT(){if(Ah)return Di;Ah=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var e=g(B),n=m(tm()),r=m(nm()),o=m(im()),a=m(UT()),u=m(rm()),l=om(),d=BT();function m(k){return k&&k.__esModule?k:{default:k}}function E(){if(typeof WeakMap!="function")return null;var k=new WeakMap;return E=function(){return k},k}function g(k){if(k&&k.__esModule)return k;if(k===null||p(k)!=="object"&&typeof k!="function")return{default:k};var F=E();if(F&&F.has(k))return F.get(k);var U={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in k)if(Object.prototype.hasOwnProperty.call(k,R)){var J=q?Object.getOwnPropertyDescriptor(k,R):null;J&&(J.get||J.set)?Object.defineProperty(U,R,J):U[R]=k[R]}return U.default=k,F&&F.set(k,U),U}function p(k){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(U){return typeof U}:p=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},p(k)}function v(){return v=Object.assign||function(k){for(var F=1;F<arguments.length;F++){var U=arguments[F];for(var q in U)Object.prototype.hasOwnProperty.call(U,q)&&(k[q]=U[q])}return k},v.apply(this,arguments)}function y(k,F){var U=Object.keys(k);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(k);F&&(q=q.filter(function(R){return Object.getOwnPropertyDescriptor(k,R).enumerable})),U.push.apply(U,q)}return U}function b(k){for(var F=1;F<arguments.length;F++){var U=arguments[F]!=null?arguments[F]:{};F%2?y(Object(U),!0).forEach(function(q){D(k,q,U[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(U)):y(Object(U)).forEach(function(q){Object.defineProperty(k,q,Object.getOwnPropertyDescriptor(U,q))})}return k}function f(k,F){if(!(k instanceof F))throw new TypeError("Cannot call a class as a function")}function w(k,F){for(var U=0;U<F.length;U++){var q=F[U];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(k,q.key,q)}}function c(k,F,U){return F&&w(k.prototype,F),k}function S(k,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(F&&F.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),F&&_(k,F)}function _(k,F){return _=Object.setPrototypeOf||function(q,R){return q.__proto__=R,q},_(k,F)}function P(k){var F=z();return function(){var q=L(k),R;if(F){var J=L(this).constructor;R=Reflect.construct(q,arguments,J)}else R=q.apply(this,arguments);return A(this,R)}}function A(k,F){return F&&(p(F)==="object"||typeof F=="function")?F:I(k)}function I(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function z(){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 L(k){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},L(k)}function D(k,F,U){return F in k?Object.defineProperty(k,F,{value:U,enumerable:!0,configurable:!0,writable:!0}):k[F]=U,k}var G=(function(k){S(U,k);var F=P(U);function U(q){var R;f(this,U),R=F.call(this,q),D(I(R),"thumbsRef",void 0),D(I(R),"carouselWrapperRef",void 0),D(I(R),"listRef",void 0),D(I(R),"itemsRef",void 0),D(I(R),"timer",void 0),D(I(R),"animationHandler",void 0),D(I(R),"setThumbsRef",function(Y){R.thumbsRef=Y}),D(I(R),"setCarouselWrapperRef",function(Y){R.carouselWrapperRef=Y}),D(I(R),"setListRef",function(Y){R.listRef=Y}),D(I(R),"setItemsRef",function(Y,te){R.itemsRef||(R.itemsRef=[]),R.itemsRef[te]=Y}),D(I(R),"autoPlay",function(){e.Children.count(R.props.children)<=1||(R.clearAutoPlay(),R.props.autoPlay&&(R.timer=setTimeout(function(){R.increment()},R.props.interval)))}),D(I(R),"clearAutoPlay",function(){R.timer&&clearTimeout(R.timer)}),D(I(R),"resetAutoPlay",function(){R.clearAutoPlay(),R.autoPlay()}),D(I(R),"stopOnHover",function(){R.setState({isMouseEntered:!0},R.clearAutoPlay)}),D(I(R),"startOnLeave",function(){R.setState({isMouseEntered:!1},R.autoPlay)}),D(I(R),"isFocusWithinTheCarousel",function(){return R.carouselWrapperRef?!!((0,a.default)().activeElement===R.carouselWrapperRef||R.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),D(I(R),"navigateWithKeyboard",function(Y){if(R.isFocusWithinTheCarousel()){var te=R.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,ae=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?R.increment():ae===Y.keyCode&&R.decrement()}}),D(I(R),"updateSizes",function(){if(!(!R.state.initialized||!R.itemsRef||R.itemsRef.length===0)){var Y=R.props.axis==="horizontal",te=R.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;R.setState({itemSize:de}),R.thumbsRef&&R.thumbsRef.updateSizes()}}}),D(I(R),"setMountState",function(){R.setState({hasMount:!0}),R.updateSizes()}),D(I(R),"handleClickItem",function(Y,te){if(e.Children.count(R.props.children)!==0){if(R.state.cancelClick){R.setState({cancelClick:!1});return}R.props.onClickItem(Y,te),Y!==R.state.selectedItem&&R.setState({selectedItem:Y})}}),D(I(R),"handleOnChange",function(Y,te){e.Children.count(R.props.children)<=1||R.props.onChange(Y,te)}),D(I(R),"handleClickThumb",function(Y,te){R.props.onClickThumb(Y,te),R.moveTo(Y)}),D(I(R),"onSwipeStart",function(Y){R.setState({swiping:!0}),R.props.onSwipeStart(Y)}),D(I(R),"onSwipeEnd",function(Y){R.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),R.props.onSwipeEnd(Y),R.clearAutoPlay(),R.state.autoPlay&&R.autoPlay()}),D(I(R),"onSwipeMove",function(Y,te){R.props.onSwipeMove(te);var de=R.props.swipeAnimationHandler(Y,R.props,R.state,R.setState.bind(I(R)));return R.setState(b({},de)),!!Object.keys(de).length}),D(I(R),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem-(typeof Y=="number"?Y:1))}),D(I(R),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem+(typeof Y=="number"?Y:1))}),D(I(R),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(R.props.children)-1;Y<0&&(Y=R.props.infiniteLoop?te:0),Y>te&&(Y=R.props.infiniteLoop?0:te),R.selectItem({selectedItem:Y}),R.state.autoPlay&&R.state.isMouseEntered===!1&&R.resetAutoPlay()}}),D(I(R),"onClickNext",function(){R.increment(1)}),D(I(R),"onClickPrev",function(){R.decrement(1)}),D(I(R),"onSwipeForward",function(){R.increment(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),D(I(R),"onSwipeBackwards",function(){R.decrement(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),D(I(R),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&R.moveTo(Y)}}),D(I(R),"selectItem",function(Y){R.setState(b({previousItem:R.state.selectedItem},Y),function(){R.setState(R.animationHandler(R.props,R.state))}),R.handleOnChange(Y.selectedItem,e.Children.toArray(R.props.children)[Y.selectedItem])}),D(I(R),"getInitialImage",function(){var Y=R.props.selectedItem,te=R.itemsRef&&R.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),D(I(R),"getVariableItemHeight",function(Y){var te=R.itemsRef&&R.itemsRef[Y];if(R.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function re(){R.forceUpdate(),Z.removeEventListener("load",re)};Z.addEventListener("load",Q)}}var ae=de[0]||te.children[0],ue=ae.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return R.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&d.fadeAnimationHandler||d.slideAnimationHandler,R.state=b(b({},J),R.animationHandler(q,J)),R}return c(U,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(R,J){!R.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!R.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(b({},this.props.stopSwipingHandler(this.props,this.state))),(R.selectedItem!==this.props.selectedItem||R.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),R.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 R=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=R.getInitialImage();J&&!J.complete?J.addEventListener("load",R.setMountState):R.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.addEventListener("mouseenter",this.stopOnHover),R.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.removeEventListener("mouseenter",this.stopOnHover),R.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var R=this.getInitialImage();R&&R.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var R;(R=this.carouselWrapperRef)===null||R===void 0||R.focus()}},{key:"renderItems",value:function(R){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=b(b({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=b(b({},Q),{},{pointerEvents:"none"}));var ae={ref:function(re){return J.setItemsRef(re,te)},key:"itemKey"+te+(R?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",ae,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var R=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,ae){return de&&de(R.changeItem(ae),ae===R.state.selectedItem,ae,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(o.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 R=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),ae=Q.shift(),ue=Q.pop(),re={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},fe={};if(Y){if(re.onSwipeLeft=this.onSwipeForward,re.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ce=this.getVariableItemHeight(this.state.selectedItem);fe.height=ce||"auto"}}else re.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,re.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,re.style=b(b({},re.style),{},{height:this.state.itemSize}),fe.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:fe},J?e.default.createElement(n.default,v({tagName:"ul",innerRef:this.setListRef},re,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ae):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(me){return R.setListRef(me)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),U})(e.default.Component);return Di.default=G,D(G,"displayName","Carousel"),D(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(F,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!U),onClick:F})},renderArrowNext:function(F,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!U),onClick:F})},renderIndicator:function(F,U,q,R){return e.default.createElement("li",{className:r.default.DOT(U),onClick:F,onKeyDown:F,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(R," ").concat(q+1)})},renderItem:function(F){return F},renderThumbs:function(F){var U=e.Children.map(F,function(q){var R=q;if(q.type!=="img"&&(R=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!R)return R});return U.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):U},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:d.slideSwipeAnimationHandler,stopSwipingHandler:d.slideStopSwipingHandler}),Di}var Th={},Ph;function HT(){return Ph||(Ph=1),Th}var Ch;function qT(){return Ch||(Ch=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var n=a(zT()),r=HT(),o=a(im());function a(u){return u&&u.__esModule?u:{default:u}}})(Hu)),Hu}var ZT=qT();const GT=({tip:e})=>W.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:am(e,!0)}),KT=({pages:e})=>W.jsx("div",{className:"min-h-[10rem] w-96",children:W.jsx(ZT.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(n=>W.jsx(GT,{tip:n},n.key))})}),VT=({body:e,isInsideCarousel:n})=>W.jsx("article",{className:Ve(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!n}]),children:W.jsx(Da,{children:e,options:{overrides:{a:{component:({children:r,...o})=>W.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,W.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),YT=({video:e,body:n,title:r,isInsideCarousel:o})=>W.jsxs("div",{className:Ve([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[W.jsx("div",{className:Ve([{"mr-1":!o,"mb-1":o}]),children:W.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),W.jsx("article",{className:Ve(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:W.jsx(Da,{children:n||"",options:{overrides:{a:{component:({children:a,...u})=>W.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,W.jsx(tt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),am=(e,n)=>{switch(e.type){case Ia.TEXT:return W.jsx(VT,{body:e.body,isInsideCarousel:n});case Ia.VIDEO:return W.jsx(YT,{video:e.video,body:e.body,title:e.title,isInsideCarousel:n});case Ia.CAROUSEL:return W.jsx(KT,{pages:e.pages})}},sm=B.createContext(void 0);function Rh(e,n){const r=[];return e.forEach(o=>{o.key===n&&r.push(o)}),r}const XT=({children:e,enabled:n,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=B.useState({tips:{},show:!0});B.useEffect(()=>{const d=new AbortController;try{fetch(`${r}/tips.json`,{signal:d.signal}).then(m=>m.json()).then(m=>{const E=m.reduce((g,p)=>Rh(m,p.key).length>1?{...g,[p.key]:{type:"carousel",pages:Rh(m,p.key)}}:{...g,[p.key]:p},{});u(g=>({...g,tips:E}))})}catch{}return()=>{d.abort()}},[]);const l=()=>{u(d=>({...d,show:!a}))};return W.jsx(sm.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:n},children:e})},um=e=>{const n=B.useContext(sm);if(n===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?n.tips[e]:null,toggleTips:n.toggleTips,show:n.show,enabled:n.enabled}},JT=$a(RT)`
80
+ */var hl,qh;function NR(){if(qh)return hl;qh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(l).map(function(v){return l[v]});if(h.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(v){y[v]=v}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hl=s()?Object.assign:function(a,l){for(var c,h=o(a),y,v=1;v<arguments.length;v++){c=Object(arguments[v]);for(var g in c)t.call(c,g)&&(h[g]=c[g]);if(e){y=e(c);for(var p=0;p<y.length;p++)r.call(c,y[p])&&(h[y[p]]=c[y[p]])}}return h},hl}var gl,Zh;function pc(){if(Zh)return gl;Zh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gl=e,gl}var vl,Gh;function qv(){return Gh||(Gh=1,vl=Function.call.bind(Object.prototype.hasOwnProperty)),vl}var ml,Kh;function jR(){if(Kh)return ml;Kh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=pc(),r={},o=qv();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(a,l,c,h,y){if(process.env.NODE_ENV!=="production"){for(var v in a)if(o(a,v)){var g;try{if(typeof a[v]!="function"){var p=Error((h||"React class")+": "+c+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=a[v](l,v,h,c,null,t)}catch(x){g=x}if(g&&!(g instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var w=y?y():"";e("Failed "+c+" type: "+g.message+(w??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ml=s,ml}var yl,Vh;function zR(){if(Vh)return yl;Vh=1;var e=Hv(),t=NR(),r=pc(),o=qv(),s=jR(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function l(){return null}return yl=function(c,h){var y=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function g(Z){var Q=Z&&(y&&Z[y]||Z[v]);if(typeof Q=="function")return Q}var p="<<anonymous>>",w={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:k,node:G(),objectOf:L,oneOf:B,oneOfType:M,shape:I,exact:U};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function f(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}f.prototype=Error.prototype;function b(Z){if(process.env.NODE_ENV!=="production")var Q={},se=0;function ue(ce,fe,ye,ve,Ee,Oe,qe){if(ve=ve||p,Oe=Oe||ye,qe!==r){if(h){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var vt=ve+":"+ye;!Q[vt]&&se<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Oe+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[vt]=!0,se++)}}return fe[ye]==null?ce?fe[ye]===null?new f("The "+Ee+" `"+Oe+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new f("The "+Ee+" `"+Oe+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:Z(fe,ye,ve,Ee,Oe)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function d(Z){function Q(se,ue,ne,ce,fe,ye){var ve=se[ue],Ee=J(ve);if(Ee!==Z){var Oe=Y(ve);return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+Oe+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return b(Q)}function S(){return b(l)}function E(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new f("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=se[ue];if(!Array.isArray(ye)){var ve=J(ye);return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Oe=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Oe instanceof Error)return Oe}return null}return b(Q)}function R(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!c(fe)){var ye=J(fe);return new f("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return b(Z)}function O(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!e.isValidElementType(fe)){var ye=J(fe);return new f("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return b(Z)}function k(Z){function Q(se,ue,ne,ce,fe){if(!(se[ue]instanceof Z)){var ye=Z.name||p,ve=de(se[ue]);return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return b(Q)}function B(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function Q(se,ue,ne,ce,fe){for(var ye=se[ue],ve=0;ve<Z.length;ve++)if(x(ye,Z[ve]))return null;var Ee=JSON.stringify(Z,function(qe,ie){var vt=Y(ie);return vt==="symbol"?String(ie):ie});return new f("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return b(Q)}function L(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new f("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=se[ue],ve=J(ye);if(ve!=="object")return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(o(ye,Ee)){var Oe=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Oe instanceof Error)return Oe}return null}return b(Q)}function M(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Q=0;Q<Z.length;Q++){var se=Z[Q];if(typeof se!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(se)+" at index "+Q+"."),l}function ue(ne,ce,fe,ye,ve){for(var Ee=[],Oe=0;Oe<Z.length;Oe++){var qe=Z[Oe],ie=qe(ne,ce,fe,ye,ve,r);if(ie==null)return null;ie.data&&o(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var vt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new f("Invalid "+ye+" `"+ve+"` supplied to "+("`"+fe+"`"+vt+"."))}return b(ue)}function G(){function Z(Q,se,ue,ne,ce){return q(Q[se])?null:new f("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return b(Z)}function N(Z,Q,se,ue,ne){return new f((Z||"React class")+": "+Q+" type `"+se+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function I(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],ve=J(ye);if(ve!=="object")return new f("Invalid "+ce+" `"+fe+"` of type `"+ve+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Oe=Z[Ee];if(typeof Oe!="function")return N(ne,ce,fe,Ee,Y(Oe));var qe=Oe(ye,Ee,ne,ce,fe+"."+Ee,r);if(qe)return qe}return null}return b(Q)}function U(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],ve=J(ye);if(ve!=="object")return new f("Invalid "+ce+" `"+fe+"` of type `"+ve+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},se[ue],Z);for(var Oe in Ee){var qe=Z[Oe];if(o(Z,Oe)&&typeof qe!="function")return N(ne,ce,fe,Oe,Y(qe));if(!qe)return new f("Invalid "+ce+" `"+fe+"` key `"+Oe+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(se[ue],null," ")+`
81
+ Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=qe(ye,Oe,ne,ce,fe+"."+Oe,r);if(ie)return ie}return null}return b(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=g(Z);if(Q){var se=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=se.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=se.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?p:Z.constructor.name}return w.checkPropTypes=s,w.resetWarningCache=s.resetWarningCache,w.PropTypes=w,w},yl}var wl,Yh;function WR(){if(Yh)return wl;Yh=1;var e=pc();function t(){}function r(){}return r.resetWarningCache=t,wl=function(){function o(l,c,h,y,v,g){if(g!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},wl}var Xh;function BR(){if(Xh)return Ms.exports;if(Xh=1,process.env.NODE_ENV!=="production"){var e=Hv(),t=!0;Ms.exports=zR()(e.isElement,t)}else Ms.exports=WR()();return Ms.exports}var Jh;function UR(){return Jh||(Jh=1,(function(e){(function(t,r){r(e,W,BR())})(Ls,function(t,r,o){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=l(r),a=l(o);function l(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function h(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 y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var v=(function(){function S(E,R){for(var O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function g(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function p(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var w=!1;function x(S){w=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function f(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?S:S.capture}function b(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var k=S.screenX,B=S.screenY;return{x:k,y:B}}var d=(function(S){p(E,S);function E(){var R;y(this,E);for(var O=arguments.length,k=Array(O),B=0;B<O;B++)k[B]=arguments[B];var L=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return L._handleSwipeStart=L._handleSwipeStart.bind(L),L._handleSwipeMove=L._handleSwipeMove.bind(L),L._handleSwipeEnd=L._handleSwipeEnd.bind(L),L._onMouseDown=L._onMouseDown.bind(L),L._onMouseMove=L._onMouseMove.bind(L),L._onMouseUp=L._onMouseUp.bind(L),L._setSwiperRef=L._setSwiperRef.bind(L),L}return v(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var k=b(O),B=k.x,L=k.y;this.moveStart={x:B,y:L},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=b(O),B=k.x,L=k.y,M=B-this.moveStart.x,G=L-this.moveStart.y;this.moving=!0;var N=this.props.onSwipeMove({x:M,y:G},O);N&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:M,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var k=O.className,B=O.style,L=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var M=h(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:B},M),L)}}]),E})(r.Component);d.displayName="ReactSwipe",d.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},d.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=d})})(Ls)),Ls}var Qh;function Zv(){return Qh||(Qh=1,(function(e){(function(t,r){r(e,UR())})(Is,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=o.default})})(Is)),Is}var Gi={},eg;function Gv(){if(eg)return Gi;eg=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=t(sv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,l){return a in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,s}var o={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return Gi.default=o,Gi}var Ki={},Vi={},tg;function HR(){if(tg)return Vi;tg=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.outerWidth=void 0;var e=function(r){var o=r.offsetWidth,s=getComputedStyle(r);return o+=parseInt(s.marginLeft)+parseInt(s.marginRight),o};return Vi.outerWidth=e,Vi}var Yi={},rg;function hc(){if(rg)return Yi;rg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=function(r,o,s){var a=r===0?r:r+o,l=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",h="("+l.join(",")+")";return c+h};return Yi.default=e,Yi}var Xi={},ng;function Kv(){if(ng)return Xi;ng=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=function(){return window};return Xi.default=e,Xi}var ig;function Vv(){if(ig)return Ki;ig=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=h(W),t=l(Gv()),r=HR(),o=l(hc()),s=l(Zv()),a=l(Kv());function l(L){return L&&L.__esModule?L:{default:L}}function c(){if(typeof WeakMap!="function")return null;var L=new WeakMap;return c=function(){return L},L}function h(L){if(L&&L.__esModule)return L;if(L===null||y(L)!=="object"&&typeof L!="function")return{default:L};var M=c();if(M&&M.has(L))return M.get(L);var G={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in L)if(Object.prototype.hasOwnProperty.call(L,I)){var U=N?Object.getOwnPropertyDescriptor(L,I):null;U&&(U.get||U.set)?Object.defineProperty(G,I,U):G[I]=L[I]}return G.default=L,M&&M.set(L,G),G}function y(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(G){return typeof G}:y=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},y(L)}function v(){return v=Object.assign||function(L){for(var M=1;M<arguments.length;M++){var G=arguments[M];for(var N in G)Object.prototype.hasOwnProperty.call(G,N)&&(L[N]=G[N])}return L},v.apply(this,arguments)}function g(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function p(L,M){for(var G=0;G<M.length;G++){var N=M[G];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(L,N.key,N)}}function w(L,M,G){return M&&p(L.prototype,M),L}function x(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),M&&f(L,M)}function f(L,M){return f=Object.setPrototypeOf||function(N,I){return N.__proto__=I,N},f(L,M)}function b(L){var M=E();return function(){var N=R(L),I;if(M){var U=R(this).constructor;I=Reflect.construct(N,arguments,U)}else I=N.apply(this,arguments);return d(this,I)}}function d(L,M){return M&&(y(M)==="object"||typeof M=="function")?M:S(L)}function S(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}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(L){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(L)}function O(L,M,G){return M in L?Object.defineProperty(L,M,{value:G,enumerable:!0,configurable:!0,writable:!0}):L[M]=G,L}var k=function(M){return M.hasOwnProperty("key")},B=(function(L){x(G,L);var M=b(G);function G(N){var I;return g(this,G),I=M.call(this,N),O(S(I),"itemsWrapperRef",void 0),O(S(I),"itemsListRef",void 0),O(S(I),"thumbsRef",void 0),O(S(I),"setItemsWrapperRef",function(U){I.itemsWrapperRef=U}),O(S(I),"setItemsListRef",function(U){I.itemsListRef=U}),O(S(I),"setThumbsRef",function(U,q){I.thumbsRef||(I.thumbsRef=[]),I.thumbsRef[q]=U}),O(S(I),"updateSizes",function(){if(!(!I.props.children||!I.itemsWrapperRef||!I.thumbsRef)){var U=e.Children.count(I.props.children),q=I.itemsWrapperRef.clientWidth,C=I.props.thumbWidth?I.props.thumbWidth:(0,r.outerWidth)(I.thumbsRef[0]),J=Math.floor(q/C),Y=J<U,te=Y?U-J:0;I.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?I.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),O(S(I),"handleClickItem",function(U,q,C){if(!k(C)||C.key==="Enter"){var J=I.props.onSelectItem;typeof J=="function"&&J(U,q)}}),O(S(I),"onSwipeStart",function(){I.setState({swiping:!0})}),O(S(I),"onSwipeEnd",function(){I.setState({swiping:!1})}),O(S(I),"onSwipeMove",function(U){var q=U.x;if(!I.state.itemSize||!I.itemsWrapperRef||!I.state.visibleItems)return!1;var C=0,J=e.Children.count(I.props.children),Y=-(I.state.firstItem*100)/I.state.visibleItems,te=Math.max(J-I.state.visibleItems,0),de=-te*100/I.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=I.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return I.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){I.itemsListRef.style[se]=(0,o.default)(Q,"%",I.props.axis)}),!0}),O(S(I),"slideRight",function(U){I.moveTo(I.state.firstItem-(typeof U=="number"?U:1))}),O(S(I),"slideLeft",function(U){I.moveTo(I.state.firstItem+(typeof U=="number"?U:1))}),O(S(I),"moveTo",function(U){U=U<0?0:U,U=U>=I.state.lastPosition?I.state.lastPosition:U,I.setState({firstItem:U})}),I.state={selectedItem:N.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},I}return w(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(I){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==I.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(I){var U=I;return I>=this.state.lastPosition&&(U=this.state.lastPosition),I<this.state.firstItem+this.state.visibleItems&&(U=this.state.firstItem),I<this.state.firstItem&&(U=I),U}},{key:"renderItems",value:function(){var I=this;return this.props.children.map(function(U,q){var C=t.default.ITEM(!1,q===I.state.selectedItem),J={key:q,ref:function(te){return I.setThumbsRef(te,q)},className:C,onClick:I.handleClickItem.bind(I,q,I.props.children[q]),onKeyDown:I.handleClickItem.bind(I,q,I.props.children[q]),"aria-label":"".concat(I.props.labels.item," ").concat(q+1),style:{width:I.props.thumbWidth}};return e.default.createElement("li",v({},J,{role:"button",tabIndex:0}),U)})}},{key:"render",value:function(){var I=this;if(!this.props.children)return null;var U=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,o.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!q),onClick:function(){return I.slideRight()},"aria-label":this.props.labels.leftArrow}),U?e.default.createElement(s.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return I.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return I.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return Ki.default=B,O(B,"displayName","Thumbs"),O(B,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),Ki}var Ji={},og;function qR(){if(og)return Ji;og=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=function(){return document};return Ji.default=e,Ji}var Wt={},sg;function Yv(){if(sg)return Wt;sg=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.setPosition=Wt.getPosition=Wt.isKeyboardEvent=Wt.defaultStatusFormatter=Wt.noop=void 0;var e=W,t=r(hc());function r(h){return h&&h.__esModule?h:{default:h}}var o=function(){};Wt.noop=o;var s=function(y,v){return"".concat(y," of ").concat(v)};Wt.defaultStatusFormatter=s;var a=function(y){return y?y.hasOwnProperty("key"):!1};Wt.isKeyboardEvent=a;var l=function(y,v){if(v.infiniteLoop&&++y,y===0)return 0;var g=e.Children.count(v.children);if(v.centerMode&&v.axis==="horizontal"){var p=-y*v.centerSlidePercentage,w=g-1;return y&&(y!==w||v.infiniteLoop)?p+=(100-v.centerSlidePercentage)/2:y===w&&(p+=100-v.centerSlidePercentage),p}return-y*100};Wt.getPosition=l;var c=function(y,v){var g={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(p){g[p]=(0,t.default)(y,"%",v)}),g};return Wt.setPosition=c,Wt}var ar={},ag;function ZR(){if(ag)return ar;ag=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.fadeAnimationHandler=ar.slideStopSwipingHandler=ar.slideSwipeAnimationHandler=ar.slideAnimationHandler=void 0;var e=W,t=o(hc()),r=Yv();function o(g){return g&&g.__esModule?g:{default:g}}function s(g,p){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);p&&(x=x.filter(function(f){return Object.getOwnPropertyDescriptor(g,f).enumerable})),w.push.apply(w,x)}return w}function a(g){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?s(Object(w),!0).forEach(function(x){l(g,x,w[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):s(Object(w)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(w,x))})}return g}function l(g,p,w){return p in g?Object.defineProperty(g,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[p]=w,g}var c=function(p,w){var x={},f=w.selectedItem,b=f,d=e.Children.count(p.children)-1,S=p.infiniteLoop&&(f<0||f>d);if(S)return b<0?p.centerMode&&p.centerSlidePercentage&&p.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(d+2)*p.centerSlidePercentage-(100-p.centerSlidePercentage)/2,p.axis):x.itemListStyle=(0,r.setPosition)(-(d+2)*100,p.axis):b>d&&(x.itemListStyle=(0,r.setPosition)(0,p.axis)),x;var E=(0,r.getPosition)(f,p),R=(0,t.default)(E,"%",p.axis),O=p.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},w.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};ar.slideAnimationHandler=c;var h=function(p,w,x,f){var b={},d=w.axis==="horizontal",S=e.Children.count(w.children),E=0,R=(0,r.getPosition)(x.selectedItem,w),O=w.infiniteLoop?(0,r.getPosition)(S-1,w)-100:(0,r.getPosition)(S-1,w),k=d?p.x:p.y,B=k;R===E&&k>0&&(B=0),R===O&&k<0&&(B=0);var L=R+100/(x.itemSize/B),M=Math.abs(k)>w.swipeScrollTolerance;return w.infiniteLoop&&M&&(x.selectedItem===0&&L>-100?L-=S*100:x.selectedItem===S-1&&L<-S*100&&(L+=S*100)),(!w.preventMovementUntilSwipeScrollTolerance||M||x.swipeMovementStarted)&&(x.swipeMovementStarted||f({swipeMovementStarted:!0}),b.itemListStyle=(0,r.setPosition)(L,w.axis)),M&&!x.cancelClick&&f({cancelClick:!0}),b};ar.slideSwipeAnimationHandler=h;var y=function(p,w){var x=(0,r.getPosition)(w.selectedItem,p),f=(0,r.setPosition)(x,p.axis);return{itemListStyle:f}};ar.slideStopSwipingHandler=y;var v=function(p,w){var x=p.transitionTime+"ms",f="ease-in-out",b={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:f,msTransitionTimingFunction:f,MozTransitionTimingFunction:f,WebkitTransitionTimingFunction:f,OTransitionTimingFunction:f};return w.swiping||(b=a(a({},b),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:b,selectedStyle:a(a({},b),{},{opacity:1,position:"relative"}),prevStyle:a({},b)}};return ar.fadeAnimationHandler=v,ar}var ug;function GR(){if(ug)return Zi;ug=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=void 0;var e=v(W),t=h(Zv()),r=h(Gv()),o=h(Vv()),s=h(qR()),a=h(Kv()),l=Yv(),c=ZR();function h(N){return N&&N.__esModule?N:{default:N}}function y(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return y=function(){return N},N}function v(N){if(N&&N.__esModule)return N;if(N===null||g(N)!=="object"&&typeof N!="function")return{default:N};var I=y();if(I&&I.has(N))return I.get(N);var U={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in N)if(Object.prototype.hasOwnProperty.call(N,C)){var J=q?Object.getOwnPropertyDescriptor(N,C):null;J&&(J.get||J.set)?Object.defineProperty(U,C,J):U[C]=N[C]}return U.default=N,I&&I.set(N,U),U}function g(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(U){return typeof U}:g=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},g(N)}function p(){return p=Object.assign||function(N){for(var I=1;I<arguments.length;I++){var U=arguments[I];for(var q in U)Object.prototype.hasOwnProperty.call(U,q)&&(N[q]=U[q])}return N},p.apply(this,arguments)}function w(N,I){var U=Object.keys(N);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(N);I&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(N,C).enumerable})),U.push.apply(U,q)}return U}function x(N){for(var I=1;I<arguments.length;I++){var U=arguments[I]!=null?arguments[I]:{};I%2?w(Object(U),!0).forEach(function(q){M(N,q,U[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(U)):w(Object(U)).forEach(function(q){Object.defineProperty(N,q,Object.getOwnPropertyDescriptor(U,q))})}return N}function f(N,I){if(!(N instanceof I))throw new TypeError("Cannot call a class as a function")}function b(N,I){for(var U=0;U<I.length;U++){var q=I[U];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(N,q.key,q)}}function d(N,I,U){return I&&b(N.prototype,I),N}function S(N,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),I&&E(N,I)}function E(N,I){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(N,I)}function R(N){var I=B();return function(){var q=L(N),C;if(I){var J=L(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(N,I){return I&&(g(I)==="object"||typeof I=="function")?I:k(N)}function k(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function L(N){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},L(N)}function M(N,I,U){return I in N?Object.defineProperty(N,I,{value:U,enumerable:!0,configurable:!0,writable:!0}):N[I]=U,N}var G=(function(N){S(U,N);var I=R(U);function U(q){var C;f(this,U),C=I.call(this,q),M(k(C),"thumbsRef",void 0),M(k(C),"carouselWrapperRef",void 0),M(k(C),"listRef",void 0),M(k(C),"itemsRef",void 0),M(k(C),"timer",void 0),M(k(C),"animationHandler",void 0),M(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),M(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),M(k(C),"setListRef",function(Y){C.listRef=Y}),M(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),M(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),M(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),M(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),M(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),M(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),M(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),M(k(C),"navigateWithKeyboard",function(Y){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,se=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():se===Y.keyCode&&C.decrement()}}),M(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var Y=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),M(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),M(k(C),"handleClickItem",function(Y,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(Y,te),Y!==C.state.selectedItem&&C.setState({selectedItem:Y})}}),M(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),M(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),M(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),M(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),M(k(C),"onSwipeMove",function(Y,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(Y,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),M(k(C),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof Y=="number"?Y:1))}),M(k(C),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof Y=="number"?Y:1))}),M(k(C),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(C.props.children)-1;Y<0&&(Y=C.props.infiniteLoop?te:0),Y>te&&(Y=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:Y}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),M(k(C),"onClickNext",function(){C.increment(1)}),M(k(C),"onClickPrev",function(){C.decrement(1)}),M(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),M(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),M(k(C),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),M(k(C),"selectItem",function(Y){C.setState(x({previousItem:C.state.selectedItem},Y),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(Y.selectedItem,e.Children.toArray(C.props.children)[Y.selectedItem])}),M(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),M(k(C),"getVariableItemHeight",function(Y){var te=C.itemsRef&&C.itemsRef[Y];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var se=de[0]||te.children[0],ue=se.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return d(U,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var se={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",se,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,se){return de&&de(C.changeItem(se),se===C.state.selectedItem,se,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(o.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),se=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(Y){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,p({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(ve){return C.setListRef(ve)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),U})(e.default.Component);return Zi.default=G,M(G,"displayName","Carousel"),M(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(I,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!U),onClick:I})},renderArrowNext:function(I,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!U),onClick:I})},renderIndicator:function(I,U,q,C){return e.default.createElement("li",{className:r.default.DOT(U),onClick:I,onKeyDown:I,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(I){return I},renderThumbs:function(I){var U=e.Children.map(I,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return U.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):U},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),Zi}var lg={},cg;function KR(){return cg||(cg=1),lg}var fg;function VR(){return fg||(fg=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 o.default}});var t=s(GR()),r=KR(),o=s(Vv());function s(a){return a&&a.__esModule?a:{default:a}}})(pl)),pl}var YR=VR();const XR=({tip:e})=>z.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Xv(e,!0)}),JR=({pages:e})=>z.jsx("div",{className:"min-h-[10rem] w-96",children:z.jsx(YR.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>z.jsx(XR,{tip:t},t.key))})}),QR=({body:e,isInsideCarousel:t})=>z.jsx("article",{className:tt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:z.jsx(Qs,{children:e,options:{overrides:{a:{component:({children:r,...o})=>z.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,z.jsx(st.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),eP=({video:e,body:t,title:r,isInsideCarousel:o})=>z.jsxs("div",{className:tt([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[z.jsx("div",{className:tt([{"mr-1":!o,"mb-1":o}]),children:z.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),z.jsx("article",{className:tt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:z.jsx(Qs,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>z.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,z.jsx(st.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Xv=(e,t)=>{switch(e.type){case Vs.TEXT:return z.jsx(QR,{body:e.body,isInsideCarousel:t});case Vs.VIDEO:return z.jsx(eP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Vs.CAROUSEL:return z.jsx(JR,{pages:e.pages})}},Jv=W.createContext(void 0);function dg(e,t){const r=[];return e.forEach(o=>{o.key===t&&r.push(o)}),r}const tP=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:s},a]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(h=>h.json()).then(h=>{const y=h.reduce((v,g)=>dg(h,g.key).length>1?{...v,[g.key]:{type:"carousel",pages:dg(h,g.key)}}:{...v,[g.key]:g},{});a(v=>({...v,tips:y}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!s}))};return z.jsx(Jv.Provider,{value:{tips:o,toggleTips:l,show:s,enabled:t},children:e})},Qv=e=>{const t=W.useContext(Jv);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}},rP=ea(LR)`
82
82
  &[data-state='open'] > * {
83
83
  display: block !important;
84
84
  }
85
- `,QT=({tipKey:e,side:n="right",alwaysOn:r,asButton:o=!1})=>{const{tip:a,enabled:u}=um(e),[l,d]=B.useState(!1),m=B.useRef(null);return B.useEffect(()=>{if(m.current){const E=new IntersectionObserver(g=>{g[0].isIntersecting||d(!1)});return E.observe(m.current),()=>{m.current&&E.unobserve(m.current)}}},[]),a&&u?W.jsxs(CT,{open:l,onOpenChange:d,children:[W.jsx(JT,{ref:m,className:Ve("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:E=>E.stopPropagation(),children:W.jsx("span",{className:Ve("group-hover:block",{hidden:!r}),children:W.jsx(tt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),W.jsx(IT,{side:n,sideOffset:5,onClick:E=>E.stopPropagation(),children:W.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:am(a)})})]}):null};var eP=Object.defineProperty,tP=(e,n,r)=>n in e?eP(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Xu=(e,n,r)=>(tP(e,typeof n!="symbol"?n+"":n,r),r);let nP=class{constructor(){Xu(this,"current",this.detect()),Xu(this,"handoffState","pending"),Xu(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}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"}},Yr=new nP,gn=(e,n)=>{Yr.isServer?B.useEffect(e,n):B.useLayoutEffect(e,n)};function Xr(e){let n=B.useRef(e);return gn(()=>{n.current=e},[e]),n}let vt=function(e){let n=Xr(e);return B.useCallback((...r)=>n.current(...r),[n])};function rP(e,n,r){let[o,a]=B.useState(r),u=e!==void 0,l=B.useRef(u),d=B.useRef(!1),m=B.useRef(!1);return u&&!l.current&&!d.current?(d.current=!0,l.current=u,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.")):!u&&l.current&&!m.current&&(m.current=!0,l.current=u,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.")),[u?e:o,vt(E=>(u||a(E),n==null?void 0:n(E)))]}function iP(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function fo(){let e=[],n={addEventListener(r,o,a,u){return r.addEventListener(o,a,u),n.add(()=>r.removeEventListener(o,a,u))},requestAnimationFrame(...r){let o=requestAnimationFrame(...r);return n.add(()=>cancelAnimationFrame(o))},nextFrame(...r){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...r))},setTimeout(...r){let o=setTimeout(...r);return n.add(()=>clearTimeout(o))},microTask(...r){let o={current:!0};return iP(()=>{o.current&&r[0]()}),n.add(()=>{o.current=!1})},style(r,o,a){let u=r.style.getPropertyValue(o);return Object.assign(r.style,{[o]:a}),this.add(()=>{Object.assign(r.style,{[o]:u})})},group(r){let o=fo();return r(o),this.add(()=>o.dispose())},add(r){return e.push(r),()=>{let o=e.indexOf(r);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let r of e.splice(0))r()}};return n}function Bl(){let[e]=B.useState(fo);return B.useEffect(()=>()=>e.dispose(),[e]),e}function oP(){let e=typeof document>"u";return"useSyncExternalStore"in N?(n=>n.useSyncExternalStore)(N)(()=>()=>{},()=>!1,()=>!e):!1}function zl(){let e=oP(),[n,r]=N.useState(Yr.isHandoffComplete);return n&&Yr.isHandoffComplete===!1&&r(!1),N.useEffect(()=>{n!==!0&&r(!0)},[n]),N.useEffect(()=>Yr.handoff(),[]),e?!1:n}var Ih;let Hl=(Ih=B.useId)!=null?Ih:function(){let e=zl(),[n,r]=B.useState(e?()=>Yr.nextId():null);return gn(()=>{n===null&&r(Yr.nextId())},[n]),n!=null?""+n:void 0};function hn(e,n,...r){if(e in n){let a=n[e];return typeof a=="function"?a(...r):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,hn),o}function Mh(e){var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function aP(e,n){let[r,o]=B.useState(()=>Mh(e));return gn(()=>{o(Mh(e))},[e.type,e.as]),gn(()=>{r||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&o("button")},[r,n]),r}let sP=Symbol();function co(...e){let n=B.useRef(e);B.useEffect(()=>{n.current=e},[e]);let r=vt(o=>{for(let a of n.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[sP]))?void 0:r}function ka(...e){return Array.from(new Set(e.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}var lm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(lm||{}),Qn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qn||{});function Pr({ourProps:e,theirProps:n,slot:r,defaultTag:o,features:a,visible:u=!0,name:l,mergeRefs:d}){d=d??uP;let m=fm(n,e);if(u)return Sa(m,r,o,l,d);let E=a??0;if(E&2){let{static:g=!1,...p}=m;if(g)return Sa(p,r,o,l,d)}if(E&1){let{unmount:g=!0,...p}=m;return hn(g?0:1,{0(){return null},1(){return Sa({...p,hidden:!0,style:{display:"none"}},r,o,l,d)}})}return Sa(m,r,o,l,d)}function Sa(e,n={},r,o,a){let{as:u=r,children:l,refName:d="ref",...m}=Ju(e,["unmount","static"]),E=e.ref!==void 0?{[d]:e.ref}:{},g=typeof l=="function"?l(n):l;"className"in m&&m.className&&typeof m.className=="function"&&(m.className=m.className(n));let p={};if(n){let v=!1,y=[];for(let[b,f]of Object.entries(n))typeof f=="boolean"&&(v=!0),f===!0&&y.push(b);v&&(p["data-headlessui-state"]=y.join(" "))}if(u===B.Fragment&&Object.keys(wl(m)).length>0){if(!B.isValidElement(g)||Array.isArray(g)&&g.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(m).map(f=>` - ${f}`).join(`
85
+ `,nP=({tipKey:e,side:t="right",alwaysOn:r,asButton:o=!1})=>{const{tip:s,enabled:a}=Qv(e),[l,c]=W.useState(!1),h=W.useRef(null);return W.useEffect(()=>{if(h.current){const y=new IntersectionObserver(v=>{v[0].isIntersecting||c(!1)});return y.observe(h.current),()=>{h.current&&y.unobserve(h.current)}}},[]),s&&a?z.jsxs(IR,{open:l,onOpenChange:c,children:[z.jsx(rP,{ref:h,className:tt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:y=>y.stopPropagation(),children:z.jsx("span",{className:tt("group-hover:block",{hidden:!r}),children:z.jsx(st.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),z.jsx(MR,{side:t,sideOffset:5,onClick:y=>y.stopPropagation(),children:z.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Xv(s)})})]}):null};var iP=Object.defineProperty,oP=(e,t,r)=>t in e?iP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bl=(e,t,r)=>(oP(e,typeof t!="symbol"?t+"":t,r),r);let sP=class{constructor(){bl(this,"current",this.detect()),bl(this,"handoffState","pending"),bl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ai=new sP,Ar=(e,t)=>{ai.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function ui(e){let t=W.useRef(e);return Ar(()=>{t.current=e},[e]),t}let xt=function(e){let t=ui(e);return W.useCallback((...r)=>t.current(...r),[t])};function aP(e,t,r){let[o,s]=W.useState(r),a=e!==void 0,l=W.useRef(a),c=W.useRef(!1),h=W.useRef(!1);return a&&!l.current&&!c.current?(c.current=!0,l.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&l.current&&!h.current&&(h.current=!0,l.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:o,xt(y=>(a||s(y),t==null?void 0:t(y)))]}function uP(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Oo(){let e=[],t={addEventListener(r,o,s,a){return r.addEventListener(o,s,a),t.add(()=>r.removeEventListener(o,s,a))},requestAnimationFrame(...r){let o=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(o))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let o=setTimeout(...r);return t.add(()=>clearTimeout(o))},microTask(...r){let o={current:!0};return uP(()=>{o.current&&r[0]()}),t.add(()=>{o.current=!1})},style(r,o,s){let a=r.style.getPropertyValue(o);return Object.assign(r.style,{[o]:s}),this.add(()=>{Object.assign(r.style,{[o]:a})})},group(r){let o=Oo();return r(o),this.add(()=>o.dispose())},add(r){return e.push(r),()=>{let o=e.indexOf(r);if(o>=0)for(let s of e.splice(o,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function gc(){let[e]=W.useState(Oo);return W.useEffect(()=>()=>e.dispose(),[e]),e}function lP(){let e=typeof document>"u";return"useSyncExternalStore"in D?(t=>t.useSyncExternalStore)(D)(()=>()=>{},()=>!1,()=>!e):!1}function vc(){let e=lP(),[t,r]=D.useState(ai.isHandoffComplete);return t&&ai.isHandoffComplete===!1&&r(!1),D.useEffect(()=>{t!==!0&&r(!0)},[t]),D.useEffect(()=>ai.handoff(),[]),e?!1:t}var pg;let mc=(pg=W.useId)!=null?pg:function(){let e=vc(),[t,r]=W.useState(e?()=>ai.nextId():null);return Ar(()=>{t===null&&r(ai.nextId())},[t]),t!=null?""+t:void 0};function Sr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let o=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(o,Sr),o}function hg(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 cP(e,t){let[r,o]=W.useState(()=>hg(e));return Ar(()=>{o(hg(e))},[e.type,e.as]),Ar(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[r,t]),r}let fP=Symbol();function To(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=xt(o=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(o):s.current=o)});return e.every(o=>o==null||(o==null?void 0:o[fP]))?void 0:r}function ra(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var em=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(em||{}),un=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(un||{});function Nn({ourProps:e,theirProps:t,slot:r,defaultTag:o,features:s,visible:a=!0,name:l,mergeRefs:c}){c=c??dP;let h=tm(t,e);if(a)return Ds(h,r,o,l,c);let y=s??0;if(y&2){let{static:v=!1,...g}=h;if(v)return Ds(g,r,o,l,c)}if(y&1){let{unmount:v=!0,...g}=h;return Sr(v?0:1,{0(){return null},1(){return Ds({...g,hidden:!0,style:{display:"none"}},r,o,l,c)}})}return Ds(h,r,o,l,c)}function Ds(e,t={},r,o,s){let{as:a=r,children:l,refName:c="ref",...h}=xl(e,["unmount","static"]),y=e.ref!==void 0?{[c]:e.ref}:{},v=typeof l=="function"?l(t):l;"className"in h&&h.className&&typeof h.className=="function"&&(h.className=h.className(t));let g={};if(t){let p=!1,w=[];for(let[x,f]of Object.entries(t))typeof f=="boolean"&&(p=!0),f===!0&&w.push(x);p&&(g["data-headlessui-state"]=w.join(" "))}if(a===W.Fragment&&Object.keys(Bl(h)).length>0){if(!W.isValidElement(v)||Array.isArray(v)&&v.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(h).map(f=>` - ${f}`).join(`
86
86
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
87
87
  `)].join(`
88
- `));let v=g.props,y=typeof(v==null?void 0:v.className)=="function"?(...f)=>ka(v==null?void 0:v.className(...f),m.className):ka(v==null?void 0:v.className,m.className),b=y?{className:y}:{};return B.cloneElement(g,Object.assign({},fm(g.props,wl(Ju(m,["ref"]))),p,E,{ref:a(g.ref,E.ref)},b))}return B.createElement(u,Object.assign({},Ju(m,["ref"]),u!==B.Fragment&&E,u!==B.Fragment&&p),g)}function uP(...e){return e.every(n=>n==null)?void 0:n=>{for(let r of e)r!=null&&(typeof r=="function"?r(n):r.current=n)}}function fm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},r={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(o[a])):n[a]=o[a];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(r).map(o=>[o,void 0])));for(let o in r)Object.assign(n,{[o](a,...u){let l=r[o];for(let d of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;d(a,...u)}}});return n}function Cr(e){var n;return Object.assign(B.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function wl(e){let n=Object.assign({},e);for(let r in n)n[r]===void 0&&delete n[r];return n}function Ju(e,n=[]){let r=Object.assign({},e);for(let o of n)o in r&&delete r[o];return r}let lP="div";var cm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cm||{});function fP(e,n){var r;let{features:o=1,...a}=e,u={ref:n,"aria-hidden":(o&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(o&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",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Pr({ourProps:u,theirProps:a,slot:{},defaultTag:lP,name:"Hidden"})}let cP=Cr(fP),ql=B.createContext(null);ql.displayName="OpenClosedContext";var Rn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Rn||{});function dm(){return B.useContext(ql)}function dP({value:e,children:n}){return B.createElement(ql.Provider,{value:e},n)}function pP(e){let n=e.parentElement,r=null;for(;n&&!(n instanceof HTMLFieldSetElement);)n instanceof HTMLLegendElement&&(r=n),n=n.parentElement;let o=(n==null?void 0:n.getAttribute("disabled"))==="";return o&&hP(r)?!1:o}function hP(e){if(!e)return!1;let n=e.previousElementSibling;for(;n!==null;){if(n instanceof HTMLLegendElement)return!1;n=n.previousElementSibling}return!0}function vP(e){var n,r;let o=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(o){for(let a of o.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=o.requestSubmit)==null||r.call(o)}}var bl=(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))(bl||{});function Zl(){let e=B.useRef(!1);return gn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let pm=B.createContext(null);function hm(){let e=B.useContext(pm);if(e===null){let n=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,hm),n}return e}function mP(){let[e,n]=B.useState([]);return[e.length>0?e.join(" "):void 0,B.useMemo(()=>function(r){let o=vt(u=>(n(l=>[...l,u]),()=>n(l=>{let d=l.slice(),m=d.indexOf(u);return m!==-1&&d.splice(m,1),d}))),a=B.useMemo(()=>({register:o,slot:r.slot,name:r.name,props:r.props}),[o,r.slot,r.name,r.props]);return B.createElement(pm.Provider,{value:a},r.children)},[n])]}let gP="p";function yP(e,n){let r=Hl(),{id:o=`headlessui-description-${r}`,...a}=e,u=hm(),l=co(n);gn(()=>u.register(o),[o,u.register]);let d={ref:l,...u.props,id:o};return Pr({ourProps:d,theirProps:a,slot:u.slot||{},defaultTag:gP,name:u.name||"Description"})}let wP=Cr(yP),bP=Object.assign(wP,{}),vm=B.createContext(null);function mm(){let e=B.useContext(vm);if(e===null){let n=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,mm),n}return e}function SP(){let[e,n]=B.useState([]);return[e.length>0?e.join(" "):void 0,B.useMemo(()=>function(r){let o=vt(u=>(n(l=>[...l,u]),()=>n(l=>{let d=l.slice(),m=d.indexOf(u);return m!==-1&&d.splice(m,1),d}))),a=B.useMemo(()=>({register:o,slot:r.slot,name:r.name,props:r.props}),[o,r.slot,r.name,r.props]);return B.createElement(vm.Provider,{value:a},r.children)},[n])]}let EP="label";function _P(e,n){let r=Hl(),{id:o=`headlessui-label-${r}`,passive:a=!1,...u}=e,l=mm(),d=co(n);gn(()=>l.register(o),[o,l.register]);let m={ref:d,...l.props,id:o};return a&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in u&&delete u.onClick),Pr({ourProps:m,theirProps:u,slot:l.slot||{},defaultTag:EP,name:l.name||"Label"})}let xP=Cr(_P),OP=Object.assign(xP,{});function AP(e=0){let[n,r]=B.useState(e),o=Zl(),a=B.useCallback(m=>{o.current&&r(E=>E|m)},[n,o]),u=B.useCallback(m=>!!(n&m),[n]),l=B.useCallback(m=>{o.current&&r(E=>E&~m)},[r,o]),d=B.useCallback(m=>{o.current&&r(E=>E^m)},[r]);return{flags:n,addFlag:a,hasFlag:u,removeFlag:l,toggleFlag:d}}let Gl=B.createContext(null);Gl.displayName="GroupContext";let TP=B.Fragment;function PP(e){var n;let[r,o]=B.useState(null),[a,u]=SP(),[l,d]=mP(),m=B.useMemo(()=>({switch:r,setSwitch:o,labelledby:a,describedby:l}),[r,o,a,l]),E={},g=e;return B.createElement(d,{name:"Switch.Description"},B.createElement(u,{name:"Switch.Label",props:{htmlFor:(n=m.switch)==null?void 0:n.id,onClick(p){r&&(p.currentTarget.tagName==="LABEL"&&p.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},B.createElement(Gl.Provider,{value:m},Pr({ourProps:E,theirProps:g,defaultTag:TP,name:"Switch.Group"}))))}let CP="button";function RP(e,n){var r;let o=Hl(),{id:a=`headlessui-switch-${o}`,checked:u,defaultChecked:l=!1,onChange:d,disabled:m=!1,name:E,value:g,form:p,...v}=e,y=B.useContext(Gl),b=B.useRef(null),f=co(b,n,y===null?null:y.setSwitch),[w,c]=rP(u,d,l),S=vt(()=>c==null?void 0:c(!w)),_=vt(D=>{if(pP(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),P=vt(D=>{D.key===bl.Space?(D.preventDefault(),S()):D.key===bl.Enter&&vP(D.currentTarget)}),A=vt(D=>D.preventDefault()),I=B.useMemo(()=>({checked:w}),[w]),z={id:a,ref:f,role:"switch",type:aP(e,b),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":y==null?void 0:y.labelledby,"aria-describedby":y==null?void 0:y.describedby,disabled:m,onClick:_,onKeyUp:P,onKeyPress:A},L=Bl();return B.useEffect(()=>{var D;let G=(D=b.current)==null?void 0:D.closest("form");G&&l!==void 0&&L.addEventListener(G,"reset",()=>{c(l)})},[b,c]),B.createElement(B.Fragment,null,E!=null&&w&&B.createElement(cP,{features:cm.Hidden,...wl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:m,form:p,checked:w,name:E,value:g})}),Pr({ourProps:z,theirProps:v,slot:I,defaultTag:CP,name:"Switch"}))}let IP=Cr(RP),MP=PP,FP=Object.assign(IP,{Group:MP,Label:OP,Description:bP});function LP(e){let n={called:!1};return(...r)=>{if(!n.called)return n.called=!0,e(...r)}}function Qu(e,...n){e&&n.length>0&&e.classList.add(...n)}function el(e,...n){e&&n.length>0&&e.classList.remove(...n)}function DP(e,n){let r=fo();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,l]=[o,a].map(m=>{let[E=0]=m.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,p)=>p-g);return E}),d=u+l;if(d!==0){r.group(E=>{E.setTimeout(()=>{n(),E.dispose()},d),E.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&E.dispose()})});let m=r.addEventListener(e,"transitionend",E=>{E.target===E.currentTarget&&(n(),m())})}else n();return r.add(()=>n()),r.dispose}function $P(e,n,r,o){let a=r?"enter":"leave",u=fo(),l=o!==void 0?LP(o):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let d=hn(a,{enter:()=>n.enter,leave:()=>n.leave}),m=hn(a,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),E=hn(a,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return el(e,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),Qu(e,...n.base,...d,...E),u.nextFrame(()=>{el(e,...n.base,...d,...E),Qu(e,...n.base,...d,...m),DP(e,()=>(el(e,...n.base,...d),Qu(e,...n.base,...n.entered),l()))}),u.dispose}function NP({immediate:e,container:n,direction:r,classes:o,onStart:a,onStop:u}){let l=Zl(),d=Bl(),m=Xr(r);gn(()=>{e&&(m.current="enter")},[e]),gn(()=>{let E=fo();d.add(E.dispose);let g=n.current;if(g&&m.current!=="idle"&&l.current)return E.dispose(),a.current(m.current),E.add($P(g,o.current,m.current==="enter",()=>{E.dispose(),u.current(m.current)})),E.dispose},[r])}function Yn(e=""){return e.split(/\s+/).filter(n=>n.length>1)}let Ya=B.createContext(null);Ya.displayName="TransitionContext";var kP=(e=>(e.Visible="visible",e.Hidden="hidden",e))(kP||{});function jP(){let e=B.useContext(Ya);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function WP(){let e=B.useContext(Xa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Xa=B.createContext(null);Xa.displayName="NestingContext";function Ja(e){return"children"in e?Ja(e.children):e.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function gm(e,n){let r=Xr(e),o=B.useRef([]),a=Zl(),u=Bl(),l=vt((y,b=Qn.Hidden)=>{let f=o.current.findIndex(({el:w})=>w===y);f!==-1&&(hn(b,{[Qn.Unmount](){o.current.splice(f,1)},[Qn.Hidden](){o.current[f].state="hidden"}}),u.microTask(()=>{var w;!Ja(o)&&a.current&&((w=r.current)==null||w.call(r))}))}),d=vt(y=>{let b=o.current.find(({el:f})=>f===y);return b?b.state!=="visible"&&(b.state="visible"):o.current.push({el:y,state:"visible"}),()=>l(y,Qn.Unmount)}),m=B.useRef([]),E=B.useRef(Promise.resolve()),g=B.useRef({enter:[],leave:[],idle:[]}),p=vt((y,b,f)=>{m.current.splice(0),n&&(n.chains.current[b]=n.chains.current[b].filter(([w])=>w!==y)),n==null||n.chains.current[b].push([y,new Promise(w=>{m.current.push(w)})]),n==null||n.chains.current[b].push([y,new Promise(w=>{Promise.all(g.current[b].map(([c,S])=>S)).then(()=>w())})]),b==="enter"?E.current=E.current.then(()=>n==null?void 0:n.wait.current).then(()=>f(b)):f(b)}),v=vt((y,b,f)=>{Promise.all(g.current[b].splice(0).map(([w,c])=>c)).then(()=>{var w;(w=m.current.shift())==null||w()}).then(()=>f(b))});return B.useMemo(()=>({children:o,register:d,unregister:l,onStart:p,onStop:v,wait:E,chains:g}),[d,l,o,p,v,g,E])}function UP(){}let BP=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Fh(e){var n;let r={};for(let o of BP)r[o]=(n=e[o])!=null?n:UP;return r}function zP(e){let n=B.useRef(Fh(e));return B.useEffect(()=>{n.current=Fh(e)},[e]),n}let HP="div",ym=lm.RenderStrategy;function qP(e,n){var r,o;let{beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:d,enter:m,enterFrom:E,enterTo:g,entered:p,leave:v,leaveFrom:y,leaveTo:b,...f}=e,w=B.useRef(null),c=co(w,n),S=(r=f.unmount)==null||r?Qn.Unmount:Qn.Hidden,{show:_,appear:P,initial:A}=jP(),[I,z]=B.useState(_?"visible":"hidden"),L=WP(),{register:D,unregister:G}=L;B.useEffect(()=>D(w),[D,w]),B.useEffect(()=>{if(S===Qn.Hidden&&w.current){if(_&&I!=="visible"){z("visible");return}return hn(I,{hidden:()=>G(w),visible:()=>D(w)})}},[I,w,D,G,_,S]);let k=Xr({base:Yn(f.className),enter:Yn(m),enterFrom:Yn(E),enterTo:Yn(g),entered:Yn(p),leave:Yn(v),leaveFrom:Yn(y),leaveTo:Yn(b)}),F=zP({beforeEnter:a,afterEnter:u,beforeLeave:l,afterLeave:d}),U=zl();B.useEffect(()=>{if(U&&I==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,I,U]);let q=A&&!P,R=P&&_&&A,J=!U||q?"idle":_?"enter":"leave",Y=AP(0),te=vt(re=>hn(re,{enter:()=>{Y.addFlag(Rn.Opening),F.current.beforeEnter()},leave:()=>{Y.addFlag(Rn.Closing),F.current.beforeLeave()},idle:()=>{}})),de=vt(re=>hn(re,{enter:()=>{Y.removeFlag(Rn.Opening),F.current.afterEnter()},leave:()=>{Y.removeFlag(Rn.Closing),F.current.afterLeave()},idle:()=>{}})),Z=gm(()=>{z("hidden"),G(w)},L),Q=B.useRef(!1);NP({immediate:R,container:w,classes:k,direction:J,onStart:Xr(re=>{Q.current=!0,Z.onStart(w,re,te)}),onStop:Xr(re=>{Q.current=!1,Z.onStop(w,re,de),re==="leave"&&!Ja(Z)&&(z("hidden"),G(w))})});let ae=f,ue={ref:c};return R?ae={...ae,className:ka(f.className,...k.current.enter,...k.current.enterFrom)}:Q.current&&(ae.className=ka(f.className,(o=w.current)==null?void 0:o.className),ae.className===""&&delete ae.className),B.createElement(Xa.Provider,{value:Z},B.createElement(dP,{value:hn(I,{visible:Rn.Open,hidden:Rn.Closed})|Y.flags},Pr({ourProps:ue,theirProps:ae,defaultTag:HP,features:ym,visible:I==="visible",name:"Transition.Child"})))}function ZP(e,n){let{show:r,appear:o=!1,unmount:a=!0,...u}=e,l=B.useRef(null),d=co(l,n);zl();let m=dm();if(r===void 0&&m!==null&&(r=(m&Rn.Open)===Rn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[E,g]=B.useState(r?"visible":"hidden"),p=gm(()=>{g("hidden")}),[v,y]=B.useState(!0),b=B.useRef([r]);gn(()=>{v!==!1&&b.current[b.current.length-1]!==r&&(b.current.push(r),y(!1))},[b,r]);let f=B.useMemo(()=>({show:r,appear:o,initial:v}),[r,o,v]);B.useEffect(()=>{if(r)g("visible");else if(!Ja(p))g("hidden");else{let _=l.current;if(!_)return;let P=_.getBoundingClientRect();P.x===0&&P.y===0&&P.width===0&&P.height===0&&g("hidden")}},[r,p]);let w={unmount:a},c=vt(()=>{var _;v&&y(!1),(_=e.beforeEnter)==null||_.call(e)}),S=vt(()=>{var _;v&&y(!1),(_=e.beforeLeave)==null||_.call(e)});return B.createElement(Xa.Provider,{value:p},B.createElement(Ya.Provider,{value:f},Pr({ourProps:{...w,as:B.Fragment,children:B.createElement(wm,{ref:d,...w,...u,beforeEnter:c,beforeLeave:S})},theirProps:{},defaultTag:B.Fragment,features:ym,visible:E==="visible",name:"Transition"})))}function GP(e,n){let r=B.useContext(Ya)!==null,o=dm()!==null;return B.createElement(B.Fragment,null,!r&&o?B.createElement(Sl,{ref:n,...e}):B.createElement(wm,{ref:n,...e}))}let Sl=Cr(ZP),wm=Cr(qP),KP=Cr(GP),ja=Object.assign(Sl,{Child:KP,Root:Sl});const tl={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"}},bm=B.forwardRef(({onChange:e,value:n,size:r="md",className:o="ml-auto"},a)=>{const u=l=>{e(l)};return W.jsx("div",{className:Ve("flex items-center",o),children:W.jsx(FP,{as:"span",ref:a,checked:n,onChange:u,onKeyDown:l=>{l.key==="Enter"&&u(!n)},className:`${n?"bg-primary-dark":"bg-grey-200"}
89
- relative inline-flex shrink-0 ${tl[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:W.jsx("span",{"aria-hidden":"true",className:`${n?tl[r].translate:"translate-x-0"}
90
- pointer-events-none inline-block ${tl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),VP=({children:e,label:n,placement:r="top",className:o})=>{const[a,u]=B.useState(null),[l,d]=B.useState(null),[m,E]=B.useState(!1),{styles:g,attributes:p}=dv(a,l,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),v=B.Children.map(e,y=>B.isValidElement(y)?B.cloneElement(y,{ref:u,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1)}):y);return W.jsxs(W.Fragment,{children:[v,m&&ao.createPortal(W.jsx("div",{ref:d,style:g.popper,...p.popper,className:Ve("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:n}),document.querySelector("body"))]})},YP=fl.keyframes`
88
+ `));let p=v.props,w=typeof(p==null?void 0:p.className)=="function"?(...f)=>ra(p==null?void 0:p.className(...f),h.className):ra(p==null?void 0:p.className,h.className),x=w?{className:w}:{};return W.cloneElement(v,Object.assign({},tm(v.props,Bl(xl(h,["ref"]))),g,y,{ref:s(v.ref,y.ref)},x))}return W.createElement(a,Object.assign({},xl(h,["ref"]),a!==W.Fragment&&y,a!==W.Fragment&&g),v)}function dP(...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 tm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let o of e)for(let s in o)s.startsWith("on")&&typeof o[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(o[s])):t[s]=o[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(o=>[o,void 0])));for(let o in r)Object.assign(t,{[o](s,...a){let l=r[o];for(let c of l){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function jn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Bl(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function xl(e,t=[]){let r=Object.assign({},e);for(let o of t)o in r&&delete r[o];return r}let pP="div";var rm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(rm||{});function hP(e,t){var r;let{features:o=1,...s}=e,a={ref:t,"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(o&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",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Nn({ourProps:a,theirProps:s,slot:{},defaultTag:pP,name:"Hidden"})}let gP=jn(hP),yc=W.createContext(null);yc.displayName="OpenClosedContext";var Nr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Nr||{});function nm(){return W.useContext(yc)}function vP({value:e,children:t}){return W.createElement(yc.Provider,{value:e},t)}function mP(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let o=(t==null?void 0:t.getAttribute("disabled"))==="";return o&&yP(r)?!1:o}function yP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function wP(e){var t,r;let o=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(o){for(let s of o.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=o.requestSubmit)==null||r.call(o)}}var Ul=(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))(Ul||{});function wc(){let e=W.useRef(!1);return Ar(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let im=W.createContext(null);function om(){let e=W.useContext(im);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,om),t}return e}function bP(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let o=xt(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),h=c.indexOf(a);return h!==-1&&c.splice(h,1),c}))),s=W.useMemo(()=>({register:o,slot:r.slot,name:r.name,props:r.props}),[o,r.slot,r.name,r.props]);return W.createElement(im.Provider,{value:s},r.children)},[t])]}let xP="p";function SP(e,t){let r=mc(),{id:o=`headlessui-description-${r}`,...s}=e,a=om(),l=To(t);Ar(()=>a.register(o),[o,a.register]);let c={ref:l,...a.props,id:o};return Nn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:xP,name:a.name||"Description"})}let EP=jn(SP),_P=Object.assign(EP,{}),sm=W.createContext(null);function am(){let e=W.useContext(sm);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,am),t}return e}function AP(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let o=xt(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),h=c.indexOf(a);return h!==-1&&c.splice(h,1),c}))),s=W.useMemo(()=>({register:o,slot:r.slot,name:r.name,props:r.props}),[o,r.slot,r.name,r.props]);return W.createElement(sm.Provider,{value:s},r.children)},[t])]}let OP="label";function TP(e,t){let r=mc(),{id:o=`headlessui-label-${r}`,passive:s=!1,...a}=e,l=am(),c=To(t);Ar(()=>l.register(o),[o,l.register]);let h={ref:c,...l.props,id:o};return s&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in a&&delete a.onClick),Nn({ourProps:h,theirProps:a,slot:l.slot||{},defaultTag:OP,name:l.name||"Label"})}let RP=jn(TP),PP=Object.assign(RP,{});function CP(e=0){let[t,r]=W.useState(e),o=wc(),s=W.useCallback(h=>{o.current&&r(y=>y|h)},[t,o]),a=W.useCallback(h=>!!(t&h),[t]),l=W.useCallback(h=>{o.current&&r(y=>y&~h)},[r,o]),c=W.useCallback(h=>{o.current&&r(y=>y^h)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:l,toggleFlag:c}}let bc=W.createContext(null);bc.displayName="GroupContext";let kP=W.Fragment;function $P(e){var t;let[r,o]=W.useState(null),[s,a]=AP(),[l,c]=bP(),h=W.useMemo(()=>({switch:r,setSwitch:o,labelledby:s,describedby:l}),[r,o,s,l]),y={},v=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=h.switch)==null?void 0:t.id,onClick(g){r&&(g.currentTarget.tagName==="LABEL"&&g.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(bc.Provider,{value:h},Nn({ourProps:y,theirProps:v,defaultTag:kP,name:"Switch.Group"}))))}let IP="button";function LP(e,t){var r;let o=mc(),{id:s=`headlessui-switch-${o}`,checked:a,defaultChecked:l=!1,onChange:c,disabled:h=!1,name:y,value:v,form:g,...p}=e,w=W.useContext(bc),x=W.useRef(null),f=To(x,t,w===null?null:w.setSwitch),[b,d]=aP(a,c,l),S=xt(()=>d==null?void 0:d(!b)),E=xt(M=>{if(mP(M.currentTarget))return M.preventDefault();M.preventDefault(),S()}),R=xt(M=>{M.key===Ul.Space?(M.preventDefault(),S()):M.key===Ul.Enter&&wP(M.currentTarget)}),O=xt(M=>M.preventDefault()),k=W.useMemo(()=>({checked:b}),[b]),B={id:s,ref:f,role:"switch",type:cP(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":b,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:h,onClick:E,onKeyUp:R,onKeyPress:O},L=gc();return W.useEffect(()=>{var M;let G=(M=x.current)==null?void 0:M.closest("form");G&&l!==void 0&&L.addEventListener(G,"reset",()=>{d(l)})},[x,d]),W.createElement(W.Fragment,null,y!=null&&b&&W.createElement(gP,{features:rm.Hidden,...Bl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:h,form:g,checked:b,name:y,value:v})}),Nn({ourProps:B,theirProps:p,slot:k,defaultTag:IP,name:"Switch"}))}let MP=jn(LP),FP=$P,DP=Object.assign(MP,{Group:FP,Label:PP,Description:_P});function NP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Sl(e,...t){e&&t.length>0&&e.classList.add(...t)}function El(e,...t){e&&t.length>0&&e.classList.remove(...t)}function jP(e,t){let r=Oo();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:s}=getComputedStyle(e),[a,l]=[o,s].map(h=>{let[y=0]=h.split(",").filter(Boolean).map(v=>v.includes("ms")?parseFloat(v):parseFloat(v)*1e3).sort((v,g)=>g-v);return y}),c=a+l;if(c!==0){r.group(y=>{y.setTimeout(()=>{t(),y.dispose()},c),y.addEventListener(e,"transitionrun",v=>{v.target===v.currentTarget&&y.dispose()})});let h=r.addEventListener(e,"transitionend",y=>{y.target===y.currentTarget&&(t(),h())})}else t();return r.add(()=>t()),r.dispose}function zP(e,t,r,o){let s=r?"enter":"leave",a=Oo(),l=o!==void 0?NP(o):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Sr(s,{enter:()=>t.enter,leave:()=>t.leave}),h=Sr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),y=Sr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return El(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Sl(e,...t.base,...c,...y),a.nextFrame(()=>{El(e,...t.base,...c,...y),Sl(e,...t.base,...c,...h),jP(e,()=>(El(e,...t.base,...c),Sl(e,...t.base,...t.entered),l()))}),a.dispose}function WP({immediate:e,container:t,direction:r,classes:o,onStart:s,onStop:a}){let l=wc(),c=gc(),h=ui(r);Ar(()=>{e&&(h.current="enter")},[e]),Ar(()=>{let y=Oo();c.add(y.dispose);let v=t.current;if(v&&h.current!=="idle"&&l.current)return y.dispose(),s.current(h.current),y.add(zP(v,o.current,h.current==="enter",()=>{y.dispose(),a.current(h.current)})),y.dispose},[r])}function nn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ma=W.createContext(null);ma.displayName="TransitionContext";var BP=(e=>(e.Visible="visible",e.Hidden="hidden",e))(BP||{});function UP(){let e=W.useContext(ma);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function HP(){let e=W.useContext(ya);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ya=W.createContext(null);ya.displayName="NestingContext";function wa(e){return"children"in e?wa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function um(e,t){let r=ui(e),o=W.useRef([]),s=wc(),a=gc(),l=xt((w,x=un.Hidden)=>{let f=o.current.findIndex(({el:b})=>b===w);f!==-1&&(Sr(x,{[un.Unmount](){o.current.splice(f,1)},[un.Hidden](){o.current[f].state="hidden"}}),a.microTask(()=>{var b;!wa(o)&&s.current&&((b=r.current)==null||b.call(r))}))}),c=xt(w=>{let x=o.current.find(({el:f})=>f===w);return x?x.state!=="visible"&&(x.state="visible"):o.current.push({el:w,state:"visible"}),()=>l(w,un.Unmount)}),h=W.useRef([]),y=W.useRef(Promise.resolve()),v=W.useRef({enter:[],leave:[],idle:[]}),g=xt((w,x,f)=>{h.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([b])=>b!==w)),t==null||t.chains.current[x].push([w,new Promise(b=>{h.current.push(b)})]),t==null||t.chains.current[x].push([w,new Promise(b=>{Promise.all(v.current[x].map(([d,S])=>S)).then(()=>b())})]),x==="enter"?y.current=y.current.then(()=>t==null?void 0:t.wait.current).then(()=>f(x)):f(x)}),p=xt((w,x,f)=>{Promise.all(v.current[x].splice(0).map(([b,d])=>d)).then(()=>{var b;(b=h.current.shift())==null||b()}).then(()=>f(x))});return W.useMemo(()=>({children:o,register:c,unregister:l,onStart:g,onStop:p,wait:y,chains:v}),[c,l,o,g,p,v,y])}function qP(){}let ZP=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function gg(e){var t;let r={};for(let o of ZP)r[o]=(t=e[o])!=null?t:qP;return r}function GP(e){let t=W.useRef(gg(e));return W.useEffect(()=>{t.current=gg(e)},[e]),t}let KP="div",lm=em.RenderStrategy;function VP(e,t){var r,o;let{beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:h,enterFrom:y,enterTo:v,entered:g,leave:p,leaveFrom:w,leaveTo:x,...f}=e,b=W.useRef(null),d=To(b,t),S=(r=f.unmount)==null||r?un.Unmount:un.Hidden,{show:E,appear:R,initial:O}=UP(),[k,B]=W.useState(E?"visible":"hidden"),L=HP(),{register:M,unregister:G}=L;W.useEffect(()=>M(b),[M,b]),W.useEffect(()=>{if(S===un.Hidden&&b.current){if(E&&k!=="visible"){B("visible");return}return Sr(k,{hidden:()=>G(b),visible:()=>M(b)})}},[k,b,M,G,E,S]);let N=ui({base:nn(f.className),enter:nn(h),enterFrom:nn(y),enterTo:nn(v),entered:nn(g),leave:nn(p),leaveFrom:nn(w),leaveTo:nn(x)}),I=GP({beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c}),U=vc();W.useEffect(()=>{if(U&&k==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,k,U]);let q=O&&!R,C=R&&E&&O,J=!U||q?"idle":E?"enter":"leave",Y=CP(0),te=xt(ne=>Sr(ne,{enter:()=>{Y.addFlag(Nr.Opening),I.current.beforeEnter()},leave:()=>{Y.addFlag(Nr.Closing),I.current.beforeLeave()},idle:()=>{}})),de=xt(ne=>Sr(ne,{enter:()=>{Y.removeFlag(Nr.Opening),I.current.afterEnter()},leave:()=>{Y.removeFlag(Nr.Closing),I.current.afterLeave()},idle:()=>{}})),Z=um(()=>{B("hidden"),G(b)},L),Q=W.useRef(!1);WP({immediate:C,container:b,classes:N,direction:J,onStart:ui(ne=>{Q.current=!0,Z.onStart(b,ne,te)}),onStop:ui(ne=>{Q.current=!1,Z.onStop(b,ne,de),ne==="leave"&&!wa(Z)&&(B("hidden"),G(b))})});let se=f,ue={ref:d};return C?se={...se,className:ra(f.className,...N.current.enter,...N.current.enterFrom)}:Q.current&&(se.className=ra(f.className,(o=b.current)==null?void 0:o.className),se.className===""&&delete se.className),W.createElement(ya.Provider,{value:Z},W.createElement(vP,{value:Sr(k,{visible:Nr.Open,hidden:Nr.Closed})|Y.flags},Nn({ourProps:ue,theirProps:se,defaultTag:KP,features:lm,visible:k==="visible",name:"Transition.Child"})))}function YP(e,t){let{show:r,appear:o=!1,unmount:s=!0,...a}=e,l=W.useRef(null),c=To(l,t);vc();let h=nm();if(r===void 0&&h!==null&&(r=(h&Nr.Open)===Nr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,v]=W.useState(r?"visible":"hidden"),g=um(()=>{v("hidden")}),[p,w]=W.useState(!0),x=W.useRef([r]);Ar(()=>{p!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),w(!1))},[x,r]);let f=W.useMemo(()=>({show:r,appear:o,initial:p}),[r,o,p]);W.useEffect(()=>{if(r)v("visible");else if(!wa(g))v("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&v("hidden")}},[r,g]);let b={unmount:s},d=xt(()=>{var E;p&&w(!1),(E=e.beforeEnter)==null||E.call(e)}),S=xt(()=>{var E;p&&w(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(ya.Provider,{value:g},W.createElement(ma.Provider,{value:f},Nn({ourProps:{...b,as:W.Fragment,children:W.createElement(cm,{ref:c,...b,...a,beforeEnter:d,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:lm,visible:y==="visible",name:"Transition"})))}function XP(e,t){let r=W.useContext(ma)!==null,o=nm()!==null;return W.createElement(W.Fragment,null,!r&&o?W.createElement(Hl,{ref:t,...e}):W.createElement(cm,{ref:t,...e}))}let Hl=jn(YP),cm=jn(VP),JP=jn(XP),na=Object.assign(Hl,{Child:JP,Root:Hl});const _l={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"}},fm=W.forwardRef(({onChange:e,value:t,size:r="md",className:o="ml-auto"},s)=>{const a=l=>{e(l)};return z.jsx("div",{className:tt("flex items-center",o),children:z.jsx(DP,{as:"span",ref:s,checked:t,onChange:a,onKeyDown:l=>{l.key==="Enter"&&a(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
89
+ relative inline-flex shrink-0 ${_l[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:z.jsx("span",{"aria-hidden":"true",className:`${t?_l[r].translate:"translate-x-0"}
90
+ pointer-events-none inline-block ${_l[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function xc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var zn=xc();function dm(e){zn=e}var fo={exec:()=>null};function Ce(e,t=""){let r=typeof e=="string"?e:e.source,o={replace:(s,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Tt.caret,"$1"),r=r.replace(s,l),o},getRegex:()=>new RegExp(r,t)};return o}var Tt={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")},QP=/^(?:[ \t]*(?:\n|$))+/,eC=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,tC=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ro=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rC=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Sc=/(?:[*+-]|\d{1,9}[.)])/,pm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hm=Ce(pm).replace(/bull/g,Sc).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(),nC=Ce(pm).replace(/bull/g,Sc).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(),Ec=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,iC=/^[^\n]+/,_c=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,oC=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_c).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sC=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Sc).getRegex(),ba="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",Ac=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,aC=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ac).replace("tag",ba).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gm=Ce(Ec).replace("hr",Ro).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",ba).getRegex(),uC=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",gm).getRegex(),Oc={blockquote:uC,code:eC,def:oC,fences:tC,heading:rC,hr:Ro,html:aC,lheading:hm,list:sC,newline:QP,paragraph:gm,table:fo,text:iC},vg=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ro).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",ba).getRegex(),lC={...Oc,lheading:nC,table:vg,paragraph:Ce(Ec).replace("hr",Ro).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vg).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",ba).getRegex()},cC={...Oc,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ac).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:fo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(Ec).replace("hr",Ro).replace("heading",` *#{1,6} *[^
91
+ ]`).replace("lheading",hm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fC=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dC=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vm=/^( {2,}|\\)\n(?!\s*$)/,pC=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xa=/[\p{P}\p{S}]/u,Tc=/[\s\p{P}\p{S}]/u,mm=/[^\s\p{P}\p{S}]/u,hC=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Tc).getRegex(),ym=/(?!~)[\p{P}\p{S}]/u,gC=/(?!~)[\s\p{P}\p{S}]/u,vC=/(?:[^\s\p{P}\p{S}]|~)/u,mC=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,wm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,yC=Ce(wm,"u").replace(/punct/g,xa).getRegex(),wC=Ce(wm,"u").replace(/punct/g,ym).getRegex(),bm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bC=Ce(bm,"gu").replace(/notPunctSpace/g,mm).replace(/punctSpace/g,Tc).replace(/punct/g,xa).getRegex(),xC=Ce(bm,"gu").replace(/notPunctSpace/g,vC).replace(/punctSpace/g,gC).replace(/punct/g,ym).getRegex(),SC=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,mm).replace(/punctSpace/g,Tc).replace(/punct/g,xa).getRegex(),EC=Ce(/\\(punct)/,"gu").replace(/punct/g,xa).getRegex(),_C=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),AC=Ce(Ac).replace("(?:-->|$)","-->").getRegex(),OC=Ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",AC).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ia=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,TC=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ia).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xm=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",ia).replace("ref",_c).getRegex(),Sm=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",_c).getRegex(),RC=Ce("reflink|nolink(?!\\()","g").replace("reflink",xm).replace("nolink",Sm).getRegex(),mg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Rc={_backpedal:fo,anyPunctuation:EC,autolink:_C,blockSkip:mC,br:vm,code:dC,del:fo,emStrongLDelim:yC,emStrongRDelimAst:bC,emStrongRDelimUnd:SC,escape:fC,link:TC,nolink:Sm,punctuation:hC,reflink:xm,reflinkSearch:RC,tag:OC,text:pC,url:fo},PC={...Rc,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",ia).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ia).getRegex()},ql={...Rc,emStrongRDelimAst:xC,emStrongLDelim:wC,url:Ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mg).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mg).getRegex()},CC={...ql,br:Ce(vm).replace("{2,}","*").getRegex(),text:Ce(ql.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ns={normal:Oc,gfm:lC,pedantic:cC},Qi={normal:Rc,gfm:ql,breaks:CC,pedantic:PC},kC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yg=e=>kC[e];function yr(e,t){if(t){if(Tt.escapeTest.test(e))return e.replace(Tt.escapeReplace,yg)}else if(Tt.escapeTestNoEncode.test(e))return e.replace(Tt.escapeReplaceNoEncode,yg);return e}function wg(e){try{e=encodeURI(e).replace(Tt.percentDecode,"%")}catch{return null}return e}function bg(e,t){var a;let r=e.replace(Tt.findPipe,(l,c,h)=>{let y=!1,v=c;for(;--v>=0&&h[v]==="\\";)y=!y;return y?"|":" |"}),o=r.split(Tt.splitPipe),s=0;if(o[0].trim()||o.shift(),o.length>0&&!((a=o.at(-1))!=null&&a.trim())&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;s<o.length;s++)o[s]=o[s].trim().replace(Tt.slashPipe,"|");return o}function eo(e,t,r){let o=e.length;if(o===0)return"";let s=0;for(;s<o&&e.charAt(o-s-1)===t;)s++;return e.slice(0,o-s)}function $C(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let o=0;o<e.length;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return r>0?-2:-1}function xg(e,t,r,o,s){let a=t.href,l=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");o.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:l,text:c,tokens:o.inlineTokens(c)};return o.state.inLink=!1,h}function IC(e,t,r){let o=e.match(r.other.indentCodeCompensation);if(o===null)return t;let s=o[1];return t.split(`
92
+ `).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=s.length?a.slice(s.length):a}).join(`
93
+ `)}var oa=class{constructor(e){me(this,"options");me(this,"rules");me(this,"lexer");this.options=e||zn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:eo(r,`
94
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],o=IC(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:o}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let o=eo(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eo(t[0],`
95
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=eo(t[0],`
96
+ `).split(`
97
+ `),o="",s="",a=[];for(;r.length>0;){let l=!1,c=[],h;for(h=0;h<r.length;h++)if(this.rules.other.blockquoteStart.test(r[h]))c.push(r[h]),l=!0;else if(!l)c.push(r[h]);else break;r=r.slice(h);let y=c.join(`
98
+ `),v=y.replace(this.rules.other.blockquoteSetextReplace,`
99
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
100
+ ${y}`:y,s=s?`${s}
101
+ ${v}`:v;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,a,!0),this.lexer.state.top=g,r.length===0)break;let p=a.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let w=p,x=w.raw+`
102
+ `+r.join(`
103
+ `),f=this.blockquote(x);a[a.length-1]=f,o=o.substring(0,o.length-w.raw.length)+f.raw,s=s.substring(0,s.length-w.text.length)+f.text;break}else if((p==null?void 0:p.type)==="list"){let w=p,x=w.raw+`
104
+ `+r.join(`
105
+ `),f=this.list(x);a[a.length-1]=f,o=o.substring(0,o.length-p.raw.length)+f.raw,s=s.substring(0,s.length-w.raw.length)+f.raw,r=x.substring(a.at(-1).raw.length).split(`
106
+ `);continue}}return{type:"blockquote",raw:o,tokens:a,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),o=r.length>1,s={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let a=this.rules.other.listItemRegex(r),l=!1;for(;e;){let h=!1,y="",v="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;y=t[0],e=e.substring(y.length);let g=t[2].split(`
107
+ `,1)[0].replace(this.rules.other.listReplaceTabs,d=>" ".repeat(3*d.length)),p=e.split(`
108
+ `,1)[0],w=!g.trim(),x=0;if(this.options.pedantic?(x=2,v=g.trimStart()):w?x=t[1].length+1:(x=t[2].search(this.rules.other.nonSpaceChar),x=x>4?1:x,v=g.slice(x),x+=t[1].length),w&&this.rules.other.blankLine.test(p)&&(y+=p+`
109
+ `,e=e.substring(p.length+1),h=!0),!h){let d=this.rules.other.nextBulletRegex(x),S=this.rules.other.hrRegex(x),E=this.rules.other.fencesBeginRegex(x),R=this.rules.other.headingBeginRegex(x),O=this.rules.other.htmlBeginRegex(x);for(;e;){let k=e.split(`
110
+ `,1)[0],B;if(p=k,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),B=p):B=p.replace(this.rules.other.tabCharGlobal," "),E.test(p)||R.test(p)||O.test(p)||d.test(p)||S.test(p))break;if(B.search(this.rules.other.nonSpaceChar)>=x||!p.trim())v+=`
111
+ `+B.slice(x);else{if(w||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(g)||R.test(g)||S.test(g))break;v+=`
112
+ `+p}!w&&!p.trim()&&(w=!0),y+=k+`
113
+ `,e=e.substring(k.length+1),g=B.slice(x)}}s.loose||(l?s.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(l=!0));let f=null,b;this.options.gfm&&(f=this.rules.other.listIsTask.exec(v),f&&(b=f[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:y,task:!!f,checked:b,loose:!1,text:v,tokens:[]}),s.raw+=y}let c=s.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let h=0;h<s.items.length;h++)if(this.lexer.state.top=!1,s.items[h].tokens=this.lexer.blockTokens(s.items[h].text,[]),!s.loose){let y=s.items[h].tokens.filter(g=>g.type==="space"),v=y.length>0&&y.some(g=>this.rules.other.anyLine.test(g.raw));s.loose=v}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:o,title:s}}}table(e){var l;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=bg(t[1]),o=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(l=t[3])!=null&&l.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
114
+ `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let c of o)this.rules.other.tableAlignRight.test(c)?a.align.push("right"):this.rules.other.tableAlignCenter.test(c)?a.align.push("center"):this.rules.other.tableAlignLeft.test(c)?a.align.push("left"):a.align.push(null);for(let c=0;c<r.length;c++)a.header.push({text:r[c],tokens:this.lexer.inline(r[c]),header:!0,align:a.align[c]});for(let c of s)a.rows.push(bg(c,a.header.length).map((h,y)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:a.align[y]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
115
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=eo(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=$C(t[2],"()");if(a===-2)return;if(a>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let o=t[2],s="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],s=a[3])}else s=t[3]?t[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),xg(t,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[o.toLowerCase()];if(!s){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return xg(r,s,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!r||this.rules.inline.punctuation.exec(r))){let s=[...o[0]].length-1,a,l,c=s,h=0,y=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,t=t.slice(-1*e.length+s);(o=y.exec(t))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=[...a].length,o[3]||o[4]){c+=l;continue}else if((o[5]||o[6])&&s%3&&!((s+l)%3)){h+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+h);let v=[...o[0]][0].length,g=e.slice(0,s+o.index+v+l);if(Math.min(s,l)%2){let w=g.slice(1,-1);return{type:"em",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}let p=g.slice(2,-2);return{type:"strong",raw:g,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,o;return t[2]==="@"?(r=t[1],o="mailto:"+r):(r=t[1],o=r),{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let o,s;if(t[2]==="@")o=t[0],s="mailto:"+o;else{let a;do a=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(a!==t[0]);o=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},ur=class Zl{constructor(t){me(this,"tokens");me(this,"options");me(this,"state");me(this,"tokenizer");me(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||zn,this.options.tokenizer=this.options.tokenizer||new oa,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:Tt,block:Ns.normal,inline:Qi.normal};this.options.pedantic?(r.block=Ns.pedantic,r.inline=Qi.pedantic):this.options.gfm&&(r.block=Ns.gfm,this.options.breaks?r.inline=Qi.breaks:r.inline=Qi.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ns,inline:Qi}}static lex(t,r){return new Zl(r).lex(t)}static lexInline(t,r){return new Zl(r).inlineTokens(t)}lex(t){t=t.replace(Tt.carriageReturn,`
116
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let o=this.inlineQueue[r];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],o=!1){var s,a,l;for(this.options.pedantic&&(t=t.replace(Tt.tabCharGlobal," ").replace(Tt.spaceLine,""));t;){let c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(y=>(c=y.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 y=r.at(-1);c.raw.length===1&&y!==void 0?y.raw+=`
117
+ `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let y=r.at(-1);(y==null?void 0:y.type)==="paragraph"||(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
118
+ `)?"":`
119
+ `)+c.raw,y.text+=`
120
+ `+c.text,this.inlineQueue.at(-1).src=y.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 y=r.at(-1);(y==null?void 0:y.type)==="paragraph"||(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
121
+ `)?"":`
122
+ `)+c.raw,y.text+=`
123
+ `+c.raw,this.inlineQueue.at(-1).src=y.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 h=t;if((l=this.options.extensions)!=null&&l.startBlock){let y=1/0,v=t.slice(1),g;this.options.extensions.startBlock.forEach(p=>{g=p.call({lexer:this},v),typeof g=="number"&&g>=0&&(y=Math.min(y,g))}),y<1/0&&y>=0&&(h=t.substring(0,y+1))}if(this.state.top&&(c=this.tokenizer.paragraph(h))){let y=r.at(-1);o&&(y==null?void 0:y.type)==="paragraph"?(y.raw+=(y.raw.endsWith(`
124
+ `)?"":`
125
+ `)+c.raw,y.text+=`
126
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):r.push(c),o=h.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let y=r.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
127
+ `)?"":`
128
+ `)+c.raw,y.text+=`
129
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):r.push(c);continue}if(t){let y="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,h,y,v,g;let o=t,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)p.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,s.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=((h=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:h.call({lexer:this},o))??o;let a=!1,l="";for(;t;){a||(l=""),a=!1;let p;if((v=(y=this.options.extensions)==null?void 0:y.inline)!=null&&v.some(x=>(p=x.call({lexer:this},t,r))?(t=t.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=r.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(p=this.tokenizer.emStrong(t,o,l)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),r.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),r.push(p);continue}let w=t;if((g=this.options.extensions)!=null&&g.startInline){let x=1/0,f=t.slice(1),b;this.options.extensions.startInline.forEach(d=>{b=d.call({lexer:this},f),typeof b=="number"&&b>=0&&(x=Math.min(x,b))}),x<1/0&&x>=0&&(w=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(w)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),a=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},sa=class{constructor(e){me(this,"options");me(this,"parser");this.options=e||zn}space(e){return""}code({text:e,lang:t,escaped:r}){var a;let o=(a=(t||"").match(Tt.notSpaceStart))==null?void 0:a[0],s=e.replace(Tt.endingNewline,"")+`
130
+ `;return o?'<pre><code class="language-'+yr(o)+'">'+(r?s:yr(s,!0))+`</code></pre>
131
+ `:"<pre><code>"+(r?s:yr(s,!0))+`</code></pre>
132
+ `}blockquote({tokens:e}){return`<blockquote>
133
+ ${this.parser.parse(e)}</blockquote>
134
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
135
+ `}hr(e){return`<hr>
136
+ `}list(e){let t=e.ordered,r=e.start,o="";for(let l=0;l<e.items.length;l++){let c=e.items[l];o+=this.listitem(c)}let s=t?"ol":"ul",a=t&&r!==1?' start="'+r+'"':"";return"<"+s+a+`>
137
+ `+o+"</"+s+`>
138
+ `}listitem(e){var r;let t="";if(e.task){let o=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=o+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=o+" "+yr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):t+=o+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
139
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
140
+ `}table(e){let t="",r="";for(let s=0;s<e.header.length;s++)r+=this.tablecell(e.header[s]);t+=this.tablerow({text:r});let o="";for(let s=0;s<e.rows.length;s++){let a=e.rows[s];r="";for(let l=0;l<a.length;l++)r+=this.tablecell(a[l]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
141
+ <thead>
142
+ `+t+`</thead>
143
+ `+o+`</table>
144
+ `}tablerow({text:e}){return`<tr>
145
+ ${e}</tr>
146
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
147
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${yr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let o=this.parser.parseInline(r),s=wg(e);if(s===null)return o;e=s;let a='<a href="'+e+'"';return t&&(a+=' title="'+yr(t)+'"'),a+=">"+o+"</a>",a}image({href:e,title:t,text:r,tokens:o}){o&&(r=this.parser.parseInline(o,this.parser.textRenderer));let s=wg(e);if(s===null)return yr(r);e=s;let a=`<img src="${e}" alt="${r}"`;return t&&(a+=` title="${yr(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:yr(e.text)}},Pc=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""}},lr=class Gl{constructor(t){me(this,"options");me(this,"renderer");me(this,"textRenderer");this.options=t||zn,this.options.renderer=this.options.renderer||new sa,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Pc}static parse(t,r){return new Gl(r).parse(t)}static parseInline(t,r){return new Gl(r).parseInline(t)}parse(t,r=!0){var s,a;let o="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let y=c,v=this.options.extensions.renderers[y.type].call({parser:this},y);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(y.type)){o+=v||"";continue}}let h=c;switch(h.type){case"space":{o+=this.renderer.space(h);continue}case"hr":{o+=this.renderer.hr(h);continue}case"heading":{o+=this.renderer.heading(h);continue}case"code":{o+=this.renderer.code(h);continue}case"table":{o+=this.renderer.table(h);continue}case"blockquote":{o+=this.renderer.blockquote(h);continue}case"list":{o+=this.renderer.list(h);continue}case"html":{o+=this.renderer.html(h);continue}case"def":{o+=this.renderer.def(h);continue}case"paragraph":{o+=this.renderer.paragraph(h);continue}case"text":{let y=h,v=this.renderer.text(y);for(;l+1<t.length&&t[l+1].type==="text";)y=t[++l],v+=`
148
+ `+this.renderer.text(y);r?o+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):o+=v;continue}default:{let y='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(y),"";throw new Error(y)}}}return o}parseInline(t,r=this.renderer){var s,a;let o="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let y=this.options.extensions.renderers[c.type].call({parser:this},c);if(y!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){o+=y||"";continue}}let h=c;switch(h.type){case"escape":{o+=r.text(h);break}case"html":{o+=r.html(h);break}case"link":{o+=r.link(h);break}case"image":{o+=r.image(h);break}case"strong":{o+=r.strong(h);break}case"em":{o+=r.em(h);break}case"codespan":{o+=r.codespan(h);break}case"br":{o+=r.br(h);break}case"del":{o+=r.del(h);break}case"text":{o+=r.text(h);break}default:{let y='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(y),"";throw new Error(y)}}}return o}},Us,no=(Us=class{constructor(e){me(this,"options");me(this,"block");this.options=e||zn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ur.lex:ur.lexInline}provideParser(){return this.block?lr.parse:lr.parseInline}},me(Us,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),me(Us,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Us),Em=class{constructor(...e){me(this,"defaults",xc());me(this,"options",this.setOptions);me(this,"parse",this.parseMarkdown(!0));me(this,"parseInline",this.parseMarkdown(!1));me(this,"Parser",lr);me(this,"Renderer",sa);me(this,"TextRenderer",Pc);me(this,"Lexer",ur);me(this,"Tokenizer",oa);me(this,"Hooks",no);this.use(...e)}walkTokens(e,t){var o,s;let r=[];for(let a of e)switch(r=r.concat(t.call(this,a)),a.type){case"table":{let l=a;for(let c of l.header)r=r.concat(this.walkTokens(c.tokens,t));for(let c of l.rows)for(let h of c)r=r.concat(this.walkTokens(h.tokens,t));break}case"list":{let l=a;r=r.concat(this.walkTokens(l.items,t));break}default:{let l=a;(s=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&s[l.type]?this.defaults.extensions.childTokens[l.type].forEach(c=>{let h=l[c].flat(1/0);r=r.concat(this.walkTokens(h,t))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=t.renderers[s.name];a?t.renderers[s.name]=function(...l){let c=s.renderer.apply(this,l);return c===!1&&(c=a.apply(this,l)),c}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[s.level];a?a.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),o.extensions=t),r.renderer){let s=this.defaults.renderer||new sa(this.defaults);for(let a in r.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,c=r.renderer[l],h=s[l];s[l]=(...y)=>{let v=c.apply(s,y);return v===!1&&(v=h.apply(s,y)),v||""}}o.renderer=s}if(r.tokenizer){let s=this.defaults.tokenizer||new oa(this.defaults);for(let a in r.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,c=r.tokenizer[l],h=s[l];s[l]=(...y)=>{let v=c.apply(s,y);return v===!1&&(v=h.apply(s,y)),v}}o.tokenizer=s}if(r.hooks){let s=this.defaults.hooks||new no;for(let a in r.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,c=r.hooks[l],h=s[l];no.passThroughHooks.has(a)?s[l]=y=>{if(this.defaults.async&&no.passThroughHooksRespectAsync.has(a))return(async()=>{let g=await c.call(s,y);return h.call(s,g)})();let v=c.call(s,y);return h.call(s,v)}:s[l]=(...y)=>{if(this.defaults.async)return(async()=>{let g=await c.apply(s,y);return g===!1&&(g=await h.apply(s,y)),g})();let v=c.apply(s,y);return v===!1&&(v=h.apply(s,y)),v}}o.hooks=s}if(r.walkTokens){let s=this.defaults.walkTokens,a=r.walkTokens;o.walkTokens=function(l){let c=[];return c.push(a.call(this,l)),s&&(c=c.concat(s.call(this,l))),c}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ur.lex(e,t??this.defaults)}parser(e,t){return lr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let o={...r},s={...this.defaults,...o},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&o.async===!1)return a(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 t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let l=s.hooks?await s.hooks.preprocess(t):t,c=await(s.hooks?await s.hooks.provideLexer():e?ur.lex:ur.lexInline)(l,s),h=s.hooks?await s.hooks.processAllTokens(c):c;s.walkTokens&&await Promise.all(this.walkTokens(h,s.walkTokens));let y=await(s.hooks?await s.hooks.provideParser():e?lr.parse:lr.parseInline)(h,s);return s.hooks?await s.hooks.postprocess(y):y})().catch(a);try{s.hooks&&(t=s.hooks.preprocess(t));let l=(s.hooks?s.hooks.provideLexer():e?ur.lex:ur.lexInline)(t,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let c=(s.hooks?s.hooks.provideParser():e?lr.parse:lr.parseInline)(l,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(l){return a(l)}}}onError(e,t){return r=>{if(r.message+=`
149
+ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+yr(r.message+"",!0)+"</pre>";return t?Promise.resolve(o):o}if(t)return Promise.reject(r);throw r}}},Mn=new Em;function De(e,t){return Mn.parse(e,t)}De.options=De.setOptions=function(e){return Mn.setOptions(e),De.defaults=Mn.defaults,dm(De.defaults),De};De.getDefaults=xc;De.defaults=zn;De.use=function(...e){return Mn.use(...e),De.defaults=Mn.defaults,dm(De.defaults),De};De.walkTokens=function(e,t){return Mn.walkTokens(e,t)};De.parseInline=Mn.parseInline;De.Parser=lr;De.parser=lr.parse;De.Renderer=sa;De.TextRenderer=Pc;De.Lexer=ur;De.lexer=ur.lex;De.Tokenizer=oa;De.Hooks=no;De.parse=De;De.options;De.setOptions;De.use;De.walkTokens;De.parseInline;lr.parse;ur.lex;const LC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_m=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,MC=RegExp(_m.source),Sg=(e="")=>MC.test(e)?e.replace(_m,t=>LC[t]||"'"):e,Eg=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var FC=class{constructor(e){me(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const o=r.depth;return this.renderer.heading(this.parseInline(r.tokens),o)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const o=r;return o.tokens?this.parseInline(o.tokens):r.text}case"blockquote":{const o=r,s=this.parse(o.tokens);return this.renderer.blockquote(s)}case"list":{const o=r;this.renderer.elIdList.push(0);const s=o.items.map(a=>{const l=[];return a.task&&l.push(this.renderer.checkbox(a.checked??!1)),l.push(this.parse(a.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(s,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const o=r;this.renderer.elIdList.push(0);const s=o.header.map((y,v)=>this.renderer.tableCell(this.parseInline(y.tokens),{header:!0,align:r.align[v]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),l=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=o.rows.map(y=>{this.renderer.elIdList.push(0);const v=y.map((g,p)=>this.renderer.tableCell(this.parseInline(g.tokens),{header:!1,align:r.align[p]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(v)});this.renderer.elIdList.pop();const h=this.renderer.tableBody(c);return this.renderer.table([l,h])}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(Sg(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(Sg(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}},DC=FC,on,ze,Je,Kl,Hg,NC=(Hg=class{constructor(e={}){bt(this,ze);me(this,"elIdList",[]);bt(this,on);const{renderer:t}=e;Ve(this,on,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,o])=>{const s=r,a=o;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...l){return $e(this,ze,Kl).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,ze,Je).call(this,`h${t}`,e)}paragraph(e){return $e(this,ze,Je).call(this,"p",e)}link(e,t){const r=Eg(e,re(this,on).baseURL),o=re(this,on).openLinksInNewTab?"_blank":null;return $e(this,ze,Je).call(this,"a",t,{href:r,target:o})}image(e,t,r=null){const o=Eg(e,re(this,on).baseURL);return $e(this,ze,Je).call(this,"img",null,{src:o,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,on).langPrefix}${t}`:null;return $e(this,ze,Je).call(this,"code",e,{className:r})}code(e,t){return $e(this,ze,Je).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,ze,Je).call(this,"blockquote",e)}list(e,t,r){return $e(this,ze,Je).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,ze,Je).call(this,"li",e)}checkbox(e){return $e(this,ze,Je).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,ze,Je).call(this,"table",e)}tableHeader(e){return $e(this,ze,Je).call(this,"thead",e)}tableBody(e){return $e(this,ze,Je).call(this,"tbody",e)}tableRow(e){return $e(this,ze,Je).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,ze,Je).call(this,r,e,{align:t.align})}strong(e){return $e(this,ze,Je).call(this,"strong",e)}em(e){return $e(this,ze,Je).call(this,"em",e)}del(e){return $e(this,ze,Je).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,ze,Je).call(this,"hr")}br(){return $e(this,ze,Je).call(this,"br")}},on=new WeakMap,ze=new WeakSet,Je=function(e,t=null,r={}){const o={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,ze,Kl).call(this),W.createElement(e,{...r,...o},t)},Kl=function(){this.elIdList[this.elIdList.length-1]+=1},Hg),jC=NC;const zC=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}`)},WC={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},BC=new Em,UC=e=>{zC(e);const t={...WC,...e},r=t.instance??BC,o={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,o):r.lexer(s,o),l={renderer:new jC({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new DC(l),h=t.isInline?c.parseInline(a):c.parse(a);return W.createElement(W.Fragment,null,h)};var HC=UC,qC=HC;const ZC=({children:e,label:t,placement:r="top",className:o})=>{const[s,a]=W.useState(null),l=W.useRef(null),[c,h]=W.useState(null),[y,v]=W.useState(!1),{styles:g,attributes:p}=nv(s,c,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),w=W.Children.map(e,x=>W.isValidElement(x)?W.cloneElement(x,{ref:a,onMouseEnter:()=>v(!0),onMouseLeave:()=>{l.current=setTimeout(()=>v(!1),50)}}):x);return z.jsxs(z.Fragment,{children:[w,y&&t&&So.createPortal(z.jsx("div",{ref:h,style:g.popper,...p.popper,className:tt("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",o),onMouseEnter:()=>{l.current&&clearTimeout(l.current),v(!0)},onMouseLeave:()=>v(!1),children:z.jsx(qC,{openLinksInNewTab:!0,children:t})}),document.querySelector("body"))]})},GC=Il.keyframes`
91
150
  to {
92
151
  fill: url(#d);
93
152
  stroke-dashoffset: 0;
94
153
  }
95
- `,Sm=$a.svg`
154
+ `,Am=ea.svg`
96
155
  & .e {
97
156
  fill: url(#d);
98
157
  }
@@ -103,7 +162,7 @@ pointer-events-none inline-block ${tl[r].switch} transform rounded-full bg-white
103
162
  fill: transparent;
104
163
  stroke-dasharray: 700;
105
164
  stroke-dashoffset: 700;
106
- animation: ${YP} 1.5s ease-in-out infinite alternate-reverse;
165
+ animation: ${GC} 1.5s ease-in-out infinite alternate-reverse;
107
166
  }
108
167
 
109
168
  & #circle {
@@ -113,37 +172,37 @@ pointer-events-none inline-block ${tl[r].switch} transform rounded-full bg-white
113
172
  stroke-dasharray: 700;
114
173
  stroke-dashoffset: 700;
115
174
  }
116
- `,XP=({message:e,version:n})=>W.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:W.jsxs("div",{className:"flex flex-col text-center",children:[W.jsx("div",{className:"relative mr-4 self-center",children:W.jsx("div",{className:"flex items-center justify-center rounded",children:W.jsxs(Sm,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[W.jsx("defs",{children:W.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[W.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:W.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),W.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:W.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),W.jsx("g",{id:"a"}),W.jsx("g",{id:"b",children:W.jsx("g",{id:"c",children:W.jsxs("g",{children:[W.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"}),W.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"})]})})})]})})}),W.jsxs("div",{children:[W.jsx("span",{className:"text-xs text-grey-200",children:n}),W.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Hi={exports:{}};/**
175
+ `,KC=({message:e,version:t})=>z.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:z.jsxs("div",{className:"flex flex-col text-center",children:[z.jsx("div",{className:"relative mr-4 self-center",children:z.jsx("div",{className:"flex items-center justify-center rounded",children:z.jsxs(Am,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[z.jsx("defs",{children:z.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[z.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:z.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),z.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:z.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),z.jsx("g",{id:"a"}),z.jsx("g",{id:"b",children:z.jsx("g",{id:"c",children:z.jsxs("g",{children:[z.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"}),z.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"})]})})})]})})}),z.jsxs("div",{children:[z.jsx("span",{className:"text-xs text-grey-200",children:t}),z.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var io={exports:{}};/**
117
176
  * @license
118
177
  * Lodash <https://lodash.com/>
119
178
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
120
179
  * Released under MIT license <https://lodash.com/license>
121
180
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
122
181
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
123
- */var JP=Hi.exports,Lh;function QP(){return Lh||(Lh=1,(function(e,n){(function(){var r,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",d="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",E=500,g="__lodash_placeholder__",p=1,v=2,y=4,b=1,f=2,w=1,c=2,S=4,_=8,P=16,A=32,I=64,z=128,L=256,D=512,G=30,k="...",F=800,U=16,q=1,R=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,ae=Q-1,ue=Q>>>1,re=[["ary",z],["bind",w],["bindKey",c],["curry",_],["curryRight",P],["flip",D],["partial",A],["partialRight",I],["rearg",L]],fe="[object Arguments]",ce="[object Array]",ge="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",Oe="[object DOMException]",We="[object Error]",ie="[object Function]",ct="[object GeneratorFunction]",nt="[object Map]",on="[object Number]",vo="[object Null]",Nt="[object Object]",mo="[object Promise]",ns="[object Proxy]",Pt="[object RegExp]",dt="[object Set]",Dn="[object String]",ir="[object Symbol]",oi="[object Undefined]",$n="[object WeakMap]",go="[object WeakSet]",Nn="[object ArrayBuffer]",yn="[object DataView]",rs="[object Float32Array]",is="[object Float64Array]",os="[object Int8Array]",as="[object Int16Array]",ss="[object Int32Array]",us="[object Uint8Array]",ls="[object Uint8ClampedArray]",fs="[object Uint16Array]",cs="[object Uint32Array]",_g=/\b__p \+= '';/g,xg=/\b(__p \+=) '' \+/g,Og=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lf=/&(?:amp|lt|gt|quot|#39);/g,ff=/[&<>"']/g,Ag=RegExp(lf.source),Tg=RegExp(ff.source),Pg=/<%-([\s\S]+?)%>/g,Cg=/<%([\s\S]+?)%>/g,cf=/<%=([\s\S]+?)%>/g,Rg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ig=/^\w*$/,Mg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/[\\^$.*+?()[\]{}|]/g,Fg=RegExp(ds.source),ps=/^\s+/,Lg=/\s/,Dg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$g=/\{\n\/\* \[wrapped with (.+)\] \*/,Ng=/,? & /,kg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jg=/[()=,{}\[\]\/\s]/,Wg=/\\(\\)?/g,Ug=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,df=/\w*$/,Bg=/^[-+]0x[0-9a-f]+$/i,zg=/^0b[01]+$/i,Hg=/^\[object .+?Constructor\]$/,qg=/^0o[0-7]+$/i,Zg=/^(?:0|[1-9]\d*)$/,Gg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yo=/($^)/,Kg=/['\n\r\u2028\u2029\\]/g,wo="\\ud800-\\udfff",Vg="\\u0300-\\u036f",Yg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",pf=Vg+Yg+Xg,hf="\\u2700-\\u27bf",vf="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Qg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ey="\\u2000-\\u206f",ty=" \\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",mf="A-Z\\xc0-\\xd6\\xd8-\\xde",gf="\\ufe0e\\ufe0f",yf=Jg+Qg+ey+ty,hs="['’]",ny="["+wo+"]",wf="["+yf+"]",bo="["+pf+"]",bf="\\d+",ry="["+hf+"]",Sf="["+vf+"]",Ef="[^"+wo+yf+bf+hf+vf+mf+"]",vs="\\ud83c[\\udffb-\\udfff]",iy="(?:"+bo+"|"+vs+")",_f="[^"+wo+"]",ms="(?:\\ud83c[\\udde6-\\uddff]){2}",gs="[\\ud800-\\udbff][\\udc00-\\udfff]",Rr="["+mf+"]",xf="\\u200d",Of="(?:"+Sf+"|"+Ef+")",oy="(?:"+Rr+"|"+Ef+")",Af="(?:"+hs+"(?:d|ll|m|re|s|t|ve))?",Tf="(?:"+hs+"(?:D|LL|M|RE|S|T|VE))?",Pf=iy+"?",Cf="["+gf+"]?",ay="(?:"+xf+"(?:"+[_f,ms,gs].join("|")+")"+Cf+Pf+")*",sy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rf=Cf+Pf+ay,ly="(?:"+[ry,ms,gs].join("|")+")"+Rf,fy="(?:"+[_f+bo+"?",bo,ms,gs,ny].join("|")+")",cy=RegExp(hs,"g"),dy=RegExp(bo,"g"),ys=RegExp(vs+"(?="+vs+")|"+fy+Rf,"g"),py=RegExp([Rr+"?"+Sf+"+"+Af+"(?="+[wf,Rr,"$"].join("|")+")",oy+"+"+Tf+"(?="+[wf,Rr+Of,"$"].join("|")+")",Rr+"?"+Of+"+"+Af,Rr+"+"+Tf,uy,sy,bf,ly].join("|"),"g"),hy=RegExp("["+xf+wo+pf+gf+"]"),vy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,my=["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"],gy=-1,$e={};$e[rs]=$e[is]=$e[os]=$e[as]=$e[ss]=$e[us]=$e[ls]=$e[fs]=$e[cs]=!0,$e[fe]=$e[ce]=$e[Nn]=$e[me]=$e[yn]=$e[Ee]=$e[We]=$e[ie]=$e[nt]=$e[on]=$e[Nt]=$e[Pt]=$e[dt]=$e[Dn]=$e[$n]=!1;var De={};De[fe]=De[ce]=De[Nn]=De[yn]=De[me]=De[Ee]=De[rs]=De[is]=De[os]=De[as]=De[ss]=De[nt]=De[on]=De[Nt]=De[Pt]=De[dt]=De[Dn]=De[ir]=De[us]=De[ls]=De[fs]=De[cs]=!0,De[We]=De[ie]=De[$n]=!1;var yy={À:"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"},wy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},by={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ey=parseFloat,_y=parseInt,If=typeof sa=="object"&&sa&&sa.Object===Object&&sa,xy=typeof self=="object"&&self&&self.Object===Object&&self,at=If||xy||Function("return this")(),ws=n&&!n.nodeType&&n,or=ws&&!0&&e&&!e.nodeType&&e,Mf=or&&or.exports===ws,bs=Mf&&If.process,kt=(function(){try{var $=or&&or.require&&or.require("util").types;return $||bs&&bs.binding&&bs.binding("util")}catch{}})(),Ff=kt&&kt.isArrayBuffer,Lf=kt&&kt.isDate,Df=kt&&kt.isMap,$f=kt&&kt.isRegExp,Nf=kt&&kt.isSet,kf=kt&&kt.isTypedArray;function Ct($,K,H){switch(H.length){case 0:return $.call(K);case 1:return $.call(K,H[0]);case 2:return $.call(K,H[0],H[1]);case 3:return $.call(K,H[0],H[1],H[2])}return $.apply(K,H)}function Oy($,K,H,se){for(var ye=-1,Pe=$==null?0:$.length;++ye<Pe;){var Xe=$[ye];K(se,Xe,H(Xe),$)}return se}function jt($,K){for(var H=-1,se=$==null?0:$.length;++H<se&&K($[H],H,$)!==!1;);return $}function Ay($,K){for(var H=$==null?0:$.length;H--&&K($[H],H,$)!==!1;);return $}function jf($,K){for(var H=-1,se=$==null?0:$.length;++H<se;)if(!K($[H],H,$))return!1;return!0}function kn($,K){for(var H=-1,se=$==null?0:$.length,ye=0,Pe=[];++H<se;){var Xe=$[H];K(Xe,H,$)&&(Pe[ye++]=Xe)}return Pe}function So($,K){var H=$==null?0:$.length;return!!H&&Ir($,K,0)>-1}function Ss($,K,H){for(var se=-1,ye=$==null?0:$.length;++se<ye;)if(H(K,$[se]))return!0;return!1}function Ne($,K){for(var H=-1,se=$==null?0:$.length,ye=Array(se);++H<se;)ye[H]=K($[H],H,$);return ye}function jn($,K){for(var H=-1,se=K.length,ye=$.length;++H<se;)$[ye+H]=K[H];return $}function Es($,K,H,se){var ye=-1,Pe=$==null?0:$.length;for(se&&Pe&&(H=$[++ye]);++ye<Pe;)H=K(H,$[ye],ye,$);return H}function Ty($,K,H,se){var ye=$==null?0:$.length;for(se&&ye&&(H=$[--ye]);ye--;)H=K(H,$[ye],ye,$);return H}function _s($,K){for(var H=-1,se=$==null?0:$.length;++H<se;)if(K($[H],H,$))return!0;return!1}var Py=xs("length");function Cy($){return $.split("")}function Ry($){return $.match(kg)||[]}function Wf($,K,H){var se;return H($,function(ye,Pe,Xe){if(K(ye,Pe,Xe))return se=Pe,!1}),se}function Eo($,K,H,se){for(var ye=$.length,Pe=H+(se?1:-1);se?Pe--:++Pe<ye;)if(K($[Pe],Pe,$))return Pe;return-1}function Ir($,K,H){return K===K?By($,K,H):Eo($,Uf,H)}function Iy($,K,H,se){for(var ye=H-1,Pe=$.length;++ye<Pe;)if(se($[ye],K))return ye;return-1}function Uf($){return $!==$}function Bf($,K){var H=$==null?0:$.length;return H?As($,K)/H:Z}function xs($){return function(K){return K==null?r:K[$]}}function Os($){return function(K){return $==null?r:$[K]}}function zf($,K,H,se,ye){return ye($,function(Pe,Xe,Le){H=se?(se=!1,Pe):K(H,Pe,Xe,Le)}),H}function My($,K){var H=$.length;for($.sort(K);H--;)$[H]=$[H].value;return $}function As($,K){for(var H,se=-1,ye=$.length;++se<ye;){var Pe=K($[se]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function Ts($,K){for(var H=-1,se=Array($);++H<$;)se[H]=K(H);return se}function Fy($,K){return Ne(K,function(H){return[H,$[H]]})}function Hf($){return $&&$.slice(0,Kf($)+1).replace(ps,"")}function Rt($){return function(K){return $(K)}}function Ps($,K){return Ne(K,function(H){return $[H]})}function ai($,K){return $.has(K)}function qf($,K){for(var H=-1,se=$.length;++H<se&&Ir(K,$[H],0)>-1;);return H}function Zf($,K){for(var H=$.length;H--&&Ir(K,$[H],0)>-1;);return H}function Ly($,K){for(var H=$.length,se=0;H--;)$[H]===K&&++se;return se}var Dy=Os(yy),$y=Os(wy);function Ny($){return"\\"+Sy[$]}function ky($,K){return $==null?r:$[K]}function Mr($){return hy.test($)}function jy($){return vy.test($)}function Wy($){for(var K,H=[];!(K=$.next()).done;)H.push(K.value);return H}function Cs($){var K=-1,H=Array($.size);return $.forEach(function(se,ye){H[++K]=[ye,se]}),H}function Gf($,K){return function(H){return $(K(H))}}function Wn($,K){for(var H=-1,se=$.length,ye=0,Pe=[];++H<se;){var Xe=$[H];(Xe===K||Xe===g)&&($[H]=g,Pe[ye++]=H)}return Pe}function _o($){var K=-1,H=Array($.size);return $.forEach(function(se){H[++K]=se}),H}function Uy($){var K=-1,H=Array($.size);return $.forEach(function(se){H[++K]=[se,se]}),H}function By($,K,H){for(var se=H-1,ye=$.length;++se<ye;)if($[se]===K)return se;return-1}function zy($,K,H){for(var se=H+1;se--;)if($[se]===K)return se;return se}function Fr($){return Mr($)?qy($):Py($)}function Xt($){return Mr($)?Zy($):Cy($)}function Kf($){for(var K=$.length;K--&&Lg.test($.charAt(K)););return K}var Hy=Os(by);function qy($){for(var K=ys.lastIndex=0;ys.test($);)++K;return K}function Zy($){return $.match(ys)||[]}function Gy($){return $.match(py)||[]}var Ky=(function $(K){K=K==null?at:Lr.defaults(at.Object(),K,Lr.pick(at,my));var H=K.Array,se=K.Date,ye=K.Error,Pe=K.Function,Xe=K.Math,Le=K.Object,Rs=K.RegExp,Vy=K.String,Wt=K.TypeError,xo=H.prototype,Yy=Pe.prototype,Dr=Le.prototype,Oo=K["__core-js_shared__"],Ao=Yy.toString,Me=Dr.hasOwnProperty,Xy=0,Vf=(function(){var t=/[^.]+$/.exec(Oo&&Oo.keys&&Oo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),To=Dr.toString,Jy=Ao.call(Le),Qy=at._,e0=Rs("^"+Ao.call(Me).replace(ds,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Po=Mf?K.Buffer:r,Un=K.Symbol,Co=K.Uint8Array,Yf=Po?Po.allocUnsafe:r,Ro=Gf(Le.getPrototypeOf,Le),Xf=Le.create,Jf=Dr.propertyIsEnumerable,Io=xo.splice,Qf=Un?Un.isConcatSpreadable:r,si=Un?Un.iterator:r,ar=Un?Un.toStringTag:r,Mo=(function(){try{var t=cr(Le,"defineProperty");return t({},"",{}),t}catch{}})(),t0=K.clearTimeout!==at.clearTimeout&&K.clearTimeout,n0=se&&se.now!==at.Date.now&&se.now,r0=K.setTimeout!==at.setTimeout&&K.setTimeout,Fo=Xe.ceil,Lo=Xe.floor,Is=Le.getOwnPropertySymbols,i0=Po?Po.isBuffer:r,ec=K.isFinite,o0=xo.join,a0=Gf(Le.keys,Le),Je=Xe.max,pt=Xe.min,s0=se.now,u0=K.parseInt,tc=Xe.random,l0=xo.reverse,Ms=cr(K,"DataView"),ui=cr(K,"Map"),Fs=cr(K,"Promise"),$r=cr(K,"Set"),li=cr(K,"WeakMap"),fi=cr(Le,"create"),Do=li&&new li,Nr={},f0=dr(Ms),c0=dr(ui),d0=dr(Fs),p0=dr($r),h0=dr(li),$o=Un?Un.prototype:r,ci=$o?$o.valueOf:r,nc=$o?$o.toString:r;function O(t){if(ze(t)&&!we(t)&&!(t instanceof Ae)){if(t instanceof Ut)return t;if(Me.call(t,"__wrapped__"))return rd(t)}return new Ut(t)}var kr=(function(){function t(){}return function(i){if(!Ue(i))return{};if(Xf)return Xf(i);t.prototype=i;var s=new t;return t.prototype=r,s}})();function No(){}function Ut(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}O.templateSettings={escape:Pg,evaluate:Cg,interpolate:cf,variable:"",imports:{_:O}},O.prototype=No.prototype,O.prototype.constructor=O,Ut.prototype=kr(No.prototype),Ut.prototype.constructor=Ut;function Ae(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function v0(){var t=new Ae(this.__wrapped__);return t.__actions__=St(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=St(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=St(this.__views__),t}function m0(){if(this.__filtered__){var t=new Ae(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function g0(){var t=this.__wrapped__.value(),i=this.__dir__,s=we(t),h=i<0,x=s?t.length:0,T=C1(0,x,this.__views__),C=T.start,M=T.end,j=M-C,V=h?M:C-1,X=this.__iteratees__,ee=X.length,oe=0,le=pt(j,this.__takeCount__);if(!s||!h&&x==j&&le==j)return Ac(t,this.__actions__);var he=[];e:for(;j--&&oe<le;){V+=i;for(var Se=-1,ve=t[V];++Se<ee;){var xe=X[Se],Te=xe.iteratee,Ft=xe.type,wt=Te(ve);if(Ft==R)ve=wt;else if(!wt){if(Ft==q)continue e;break e}}he[oe++]=ve}return he}Ae.prototype=kr(No.prototype),Ae.prototype.constructor=Ae;function sr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var h=t[i];this.set(h[0],h[1])}}function y0(){this.__data__=fi?fi(null):{},this.size=0}function w0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function b0(t){var i=this.__data__;if(fi){var s=i[t];return s===m?r:s}return Me.call(i,t)?i[t]:r}function S0(t){var i=this.__data__;return fi?i[t]!==r:Me.call(i,t)}function E0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=fi&&i===r?m:i,this}sr.prototype.clear=y0,sr.prototype.delete=w0,sr.prototype.get=b0,sr.prototype.has=S0,sr.prototype.set=E0;function wn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var h=t[i];this.set(h[0],h[1])}}function _0(){this.__data__=[],this.size=0}function x0(t){var i=this.__data__,s=ko(i,t);if(s<0)return!1;var h=i.length-1;return s==h?i.pop():Io.call(i,s,1),--this.size,!0}function O0(t){var i=this.__data__,s=ko(i,t);return s<0?r:i[s][1]}function A0(t){return ko(this.__data__,t)>-1}function T0(t,i){var s=this.__data__,h=ko(s,t);return h<0?(++this.size,s.push([t,i])):s[h][1]=i,this}wn.prototype.clear=_0,wn.prototype.delete=x0,wn.prototype.get=O0,wn.prototype.has=A0,wn.prototype.set=T0;function bn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var h=t[i];this.set(h[0],h[1])}}function P0(){this.size=0,this.__data__={hash:new sr,map:new(ui||wn),string:new sr}}function C0(t){var i=Yo(this,t).delete(t);return this.size-=i?1:0,i}function R0(t){return Yo(this,t).get(t)}function I0(t){return Yo(this,t).has(t)}function M0(t,i){var s=Yo(this,t),h=s.size;return s.set(t,i),this.size+=s.size==h?0:1,this}bn.prototype.clear=P0,bn.prototype.delete=C0,bn.prototype.get=R0,bn.prototype.has=I0,bn.prototype.set=M0;function ur(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new bn;++i<s;)this.add(t[i])}function F0(t){return this.__data__.set(t,m),this}function L0(t){return this.__data__.has(t)}ur.prototype.add=ur.prototype.push=F0,ur.prototype.has=L0;function Jt(t){var i=this.__data__=new wn(t);this.size=i.size}function D0(){this.__data__=new wn,this.size=0}function $0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function N0(t){return this.__data__.get(t)}function k0(t){return this.__data__.has(t)}function j0(t,i){var s=this.__data__;if(s instanceof wn){var h=s.__data__;if(!ui||h.length<a-1)return h.push([t,i]),this.size=++s.size,this;s=this.__data__=new bn(h)}return s.set(t,i),this.size=s.size,this}Jt.prototype.clear=D0,Jt.prototype.delete=$0,Jt.prototype.get=N0,Jt.prototype.has=k0,Jt.prototype.set=j0;function rc(t,i){var s=we(t),h=!s&&pr(t),x=!s&&!h&&Zn(t),T=!s&&!h&&!x&&Br(t),C=s||h||x||T,M=C?Ts(t.length,Vy):[],j=M.length;for(var V in t)(i||Me.call(t,V))&&!(C&&(V=="length"||x&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||xn(V,j)))&&M.push(V);return M}function ic(t){var i=t.length;return i?t[Hs(0,i-1)]:r}function W0(t,i){return Xo(St(t),lr(i,0,t.length))}function U0(t){return Xo(St(t))}function Ls(t,i,s){(s!==r&&!Qt(t[i],s)||s===r&&!(i in t))&&Sn(t,i,s)}function di(t,i,s){var h=t[i];(!(Me.call(t,i)&&Qt(h,s))||s===r&&!(i in t))&&Sn(t,i,s)}function ko(t,i){for(var s=t.length;s--;)if(Qt(t[s][0],i))return s;return-1}function B0(t,i,s,h){return Bn(t,function(x,T,C){i(h,x,s(x),C)}),h}function oc(t,i){return t&&sn(i,rt(i),t)}function z0(t,i){return t&&sn(i,_t(i),t)}function Sn(t,i,s){i=="__proto__"&&Mo?Mo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function Ds(t,i){for(var s=-1,h=i.length,x=H(h),T=t==null;++s<h;)x[s]=T?r:vu(t,i[s]);return x}function lr(t,i,s){return t===t&&(s!==r&&(t=t<=s?t:s),i!==r&&(t=t>=i?t:i)),t}function Bt(t,i,s,h,x,T){var C,M=i&p,j=i&v,V=i&y;if(s&&(C=x?s(t,h,x,T):s(t)),C!==r)return C;if(!Ue(t))return t;var X=we(t);if(X){if(C=I1(t),!M)return St(t,C)}else{var ee=ht(t),oe=ee==ie||ee==ct;if(Zn(t))return Cc(t,M);if(ee==Nt||ee==fe||oe&&!x){if(C=j||oe?{}:Kc(t),!M)return j?b1(t,z0(C,t)):w1(t,oc(C,t))}else{if(!De[ee])return x?t:{};C=M1(t,ee,M)}}T||(T=new Jt);var le=T.get(t);if(le)return le;T.set(t,C),_d(t)?t.forEach(function(ve){C.add(Bt(ve,i,s,ve,t,T))}):Sd(t)&&t.forEach(function(ve,xe){C.set(xe,Bt(ve,i,s,xe,t,T))});var he=V?j?tu:eu:j?_t:rt,Se=X?r:he(t);return jt(Se||t,function(ve,xe){Se&&(xe=ve,ve=t[xe]),di(C,xe,Bt(ve,i,s,xe,t,T))}),C}function H0(t){var i=rt(t);return function(s){return ac(s,t,i)}}function ac(t,i,s){var h=s.length;if(t==null)return!h;for(t=Le(t);h--;){var x=s[h],T=i[x],C=t[x];if(C===r&&!(x in t)||!T(C))return!1}return!0}function sc(t,i,s){if(typeof t!="function")throw new Wt(l);return wi(function(){t.apply(r,s)},i)}function pi(t,i,s,h){var x=-1,T=So,C=!0,M=t.length,j=[],V=i.length;if(!M)return j;s&&(i=Ne(i,Rt(s))),h?(T=Ss,C=!1):i.length>=a&&(T=ai,C=!1,i=new ur(i));e:for(;++x<M;){var X=t[x],ee=s==null?X:s(X);if(X=h||X!==0?X:0,C&&ee===ee){for(var oe=V;oe--;)if(i[oe]===ee)continue e;j.push(X)}else T(i,ee,h)||j.push(X)}return j}var Bn=Lc(an),uc=Lc(Ns,!0);function q0(t,i){var s=!0;return Bn(t,function(h,x,T){return s=!!i(h,x,T),s}),s}function jo(t,i,s){for(var h=-1,x=t.length;++h<x;){var T=t[h],C=i(T);if(C!=null&&(M===r?C===C&&!Mt(C):s(C,M)))var M=C,j=T}return j}function Z0(t,i,s,h){var x=t.length;for(s=be(s),s<0&&(s=-s>x?0:x+s),h=h===r||h>x?x:be(h),h<0&&(h+=x),h=s>h?0:Od(h);s<h;)t[s++]=i;return t}function lc(t,i){var s=[];return Bn(t,function(h,x,T){i(h,x,T)&&s.push(h)}),s}function st(t,i,s,h,x){var T=-1,C=t.length;for(s||(s=L1),x||(x=[]);++T<C;){var M=t[T];i>0&&s(M)?i>1?st(M,i-1,s,h,x):jn(x,M):h||(x[x.length]=M)}return x}var $s=Dc(),fc=Dc(!0);function an(t,i){return t&&$s(t,i,rt)}function Ns(t,i){return t&&fc(t,i,rt)}function Wo(t,i){return kn(i,function(s){return On(t[s])})}function fr(t,i){i=Hn(i,t);for(var s=0,h=i.length;t!=null&&s<h;)t=t[un(i[s++])];return s&&s==h?t:r}function cc(t,i,s){var h=i(t);return we(t)?h:jn(h,s(t))}function gt(t){return t==null?t===r?oi:vo:ar&&ar in Le(t)?P1(t):U1(t)}function ks(t,i){return t>i}function G0(t,i){return t!=null&&Me.call(t,i)}function K0(t,i){return t!=null&&i in Le(t)}function V0(t,i,s){return t>=pt(i,s)&&t<Je(i,s)}function js(t,i,s){for(var h=s?Ss:So,x=t[0].length,T=t.length,C=T,M=H(T),j=1/0,V=[];C--;){var X=t[C];C&&i&&(X=Ne(X,Rt(i))),j=pt(X.length,j),M[C]=!s&&(i||x>=120&&X.length>=120)?new ur(C&&X):r}X=t[0];var ee=-1,oe=M[0];e:for(;++ee<x&&V.length<j;){var le=X[ee],he=i?i(le):le;if(le=s||le!==0?le:0,!(oe?ai(oe,he):h(V,he,s))){for(C=T;--C;){var Se=M[C];if(!(Se?ai(Se,he):h(t[C],he,s)))continue e}oe&&oe.push(he),V.push(le)}}return V}function Y0(t,i,s,h){return an(t,function(x,T,C){i(h,s(x),T,C)}),h}function hi(t,i,s){i=Hn(i,t),t=Jc(t,i);var h=t==null?t:t[un(Ht(i))];return h==null?r:Ct(h,t,s)}function dc(t){return ze(t)&&gt(t)==fe}function X0(t){return ze(t)&&gt(t)==Nn}function J0(t){return ze(t)&&gt(t)==Ee}function vi(t,i,s,h,x){return t===i?!0:t==null||i==null||!ze(t)&&!ze(i)?t!==t&&i!==i:Q0(t,i,s,h,vi,x)}function Q0(t,i,s,h,x,T){var C=we(t),M=we(i),j=C?ce:ht(t),V=M?ce:ht(i);j=j==fe?Nt:j,V=V==fe?Nt:V;var X=j==Nt,ee=V==Nt,oe=j==V;if(oe&&Zn(t)){if(!Zn(i))return!1;C=!0,X=!1}if(oe&&!X)return T||(T=new Jt),C||Br(t)?qc(t,i,s,h,x,T):A1(t,i,j,s,h,x,T);if(!(s&b)){var le=X&&Me.call(t,"__wrapped__"),he=ee&&Me.call(i,"__wrapped__");if(le||he){var Se=le?t.value():t,ve=he?i.value():i;return T||(T=new Jt),x(Se,ve,s,h,T)}}return oe?(T||(T=new Jt),T1(t,i,s,h,x,T)):!1}function e1(t){return ze(t)&&ht(t)==nt}function Ws(t,i,s,h){var x=s.length,T=x,C=!h;if(t==null)return!T;for(t=Le(t);x--;){var M=s[x];if(C&&M[2]?M[1]!==t[M[0]]:!(M[0]in t))return!1}for(;++x<T;){M=s[x];var j=M[0],V=t[j],X=M[1];if(C&&M[2]){if(V===r&&!(j in t))return!1}else{var ee=new Jt;if(h)var oe=h(V,X,j,t,i,ee);if(!(oe===r?vi(X,V,b|f,h,ee):oe))return!1}}return!0}function pc(t){if(!Ue(t)||$1(t))return!1;var i=On(t)?e0:Hg;return i.test(dr(t))}function t1(t){return ze(t)&&gt(t)==Pt}function n1(t){return ze(t)&&ht(t)==dt}function r1(t){return ze(t)&&ra(t.length)&&!!$e[gt(t)]}function hc(t){return typeof t=="function"?t:t==null?xt:typeof t=="object"?we(t)?gc(t[0],t[1]):mc(t):$d(t)}function Us(t){if(!yi(t))return a0(t);var i=[];for(var s in Le(t))Me.call(t,s)&&s!="constructor"&&i.push(s);return i}function i1(t){if(!Ue(t))return W1(t);var i=yi(t),s=[];for(var h in t)h=="constructor"&&(i||!Me.call(t,h))||s.push(h);return s}function Bs(t,i){return t<i}function vc(t,i){var s=-1,h=Et(t)?H(t.length):[];return Bn(t,function(x,T,C){h[++s]=i(x,T,C)}),h}function mc(t){var i=ru(t);return i.length==1&&i[0][2]?Yc(i[0][0],i[0][1]):function(s){return s===t||Ws(s,t,i)}}function gc(t,i){return ou(t)&&Vc(i)?Yc(un(t),i):function(s){var h=vu(s,t);return h===r&&h===i?mu(s,t):vi(i,h,b|f)}}function Uo(t,i,s,h,x){t!==i&&$s(i,function(T,C){if(x||(x=new Jt),Ue(T))o1(t,i,C,s,Uo,h,x);else{var M=h?h(su(t,C),T,C+"",t,i,x):r;M===r&&(M=T),Ls(t,C,M)}},_t)}function o1(t,i,s,h,x,T,C){var M=su(t,s),j=su(i,s),V=C.get(j);if(V){Ls(t,s,V);return}var X=T?T(M,j,s+"",t,i,C):r,ee=X===r;if(ee){var oe=we(j),le=!oe&&Zn(j),he=!oe&&!le&&Br(j);X=j,oe||le||he?we(M)?X=M:He(M)?X=St(M):le?(ee=!1,X=Cc(j,!0)):he?(ee=!1,X=Rc(j,!0)):X=[]:bi(j)||pr(j)?(X=M,pr(M)?X=Ad(M):(!Ue(M)||On(M))&&(X=Kc(j))):ee=!1}ee&&(C.set(j,X),x(X,j,h,T,C),C.delete(j)),Ls(t,s,X)}function yc(t,i){var s=t.length;if(s)return i+=i<0?s:0,xn(i,s)?t[i]:r}function wc(t,i,s){i.length?i=Ne(i,function(T){return we(T)?function(C){return fr(C,T.length===1?T[0]:T)}:T}):i=[xt];var h=-1;i=Ne(i,Rt(pe()));var x=vc(t,function(T,C,M){var j=Ne(i,function(V){return V(T)});return{criteria:j,index:++h,value:T}});return My(x,function(T,C){return y1(T,C,s)})}function a1(t,i){return bc(t,i,function(s,h){return mu(t,h)})}function bc(t,i,s){for(var h=-1,x=i.length,T={};++h<x;){var C=i[h],M=fr(t,C);s(M,C)&&mi(T,Hn(C,t),M)}return T}function s1(t){return function(i){return fr(i,t)}}function zs(t,i,s,h){var x=h?Iy:Ir,T=-1,C=i.length,M=t;for(t===i&&(i=St(i)),s&&(M=Ne(t,Rt(s)));++T<C;)for(var j=0,V=i[T],X=s?s(V):V;(j=x(M,X,j,h))>-1;)M!==t&&Io.call(M,j,1),Io.call(t,j,1);return t}function Sc(t,i){for(var s=t?i.length:0,h=s-1;s--;){var x=i[s];if(s==h||x!==T){var T=x;xn(x)?Io.call(t,x,1):Gs(t,x)}}return t}function Hs(t,i){return t+Lo(tc()*(i-t+1))}function u1(t,i,s,h){for(var x=-1,T=Je(Fo((i-t)/(s||1)),0),C=H(T);T--;)C[h?T:++x]=t,t+=s;return C}function qs(t,i){var s="";if(!t||i<1||i>te)return s;do i%2&&(s+=t),i=Lo(i/2),i&&(t+=t);while(i);return s}function _e(t,i){return uu(Xc(t,i,xt),t+"")}function l1(t){return ic(zr(t))}function f1(t,i){var s=zr(t);return Xo(s,lr(i,0,s.length))}function mi(t,i,s,h){if(!Ue(t))return t;i=Hn(i,t);for(var x=-1,T=i.length,C=T-1,M=t;M!=null&&++x<T;){var j=un(i[x]),V=s;if(j==="__proto__"||j==="constructor"||j==="prototype")return t;if(x!=C){var X=M[j];V=h?h(X,j,M):r,V===r&&(V=Ue(X)?X:xn(i[x+1])?[]:{})}di(M,j,V),M=M[j]}return t}var Ec=Do?function(t,i){return Do.set(t,i),t}:xt,c1=Mo?function(t,i){return Mo(t,"toString",{configurable:!0,enumerable:!1,value:yu(i),writable:!0})}:xt;function d1(t){return Xo(zr(t))}function zt(t,i,s){var h=-1,x=t.length;i<0&&(i=-i>x?0:x+i),s=s>x?x:s,s<0&&(s+=x),x=i>s?0:s-i>>>0,i>>>=0;for(var T=H(x);++h<x;)T[h]=t[h+i];return T}function p1(t,i){var s;return Bn(t,function(h,x,T){return s=i(h,x,T),!s}),!!s}function Bo(t,i,s){var h=0,x=t==null?h:t.length;if(typeof i=="number"&&i===i&&x<=ue){for(;h<x;){var T=h+x>>>1,C=t[T];C!==null&&!Mt(C)&&(s?C<=i:C<i)?h=T+1:x=T}return x}return Zs(t,i,xt,s)}function Zs(t,i,s,h){var x=0,T=t==null?0:t.length;if(T===0)return 0;i=s(i);for(var C=i!==i,M=i===null,j=Mt(i),V=i===r;x<T;){var X=Lo((x+T)/2),ee=s(t[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=Mt(ee);if(C)var ve=h||he;else V?ve=he&&(h||oe):M?ve=he&&oe&&(h||!le):j?ve=he&&oe&&!le&&(h||!Se):le||Se?ve=!1:ve=h?ee<=i:ee<i;ve?x=X+1:T=X}return pt(T,ae)}function _c(t,i){for(var s=-1,h=t.length,x=0,T=[];++s<h;){var C=t[s],M=i?i(C):C;if(!s||!Qt(M,j)){var j=M;T[x++]=C===0?0:C}}return T}function xc(t){return typeof t=="number"?t:Mt(t)?Z:+t}function It(t){if(typeof t=="string")return t;if(we(t))return Ne(t,It)+"";if(Mt(t))return nc?nc.call(t):"";var i=t+"";return i=="0"&&1/t==-Y?"-0":i}function zn(t,i,s){var h=-1,x=So,T=t.length,C=!0,M=[],j=M;if(s)C=!1,x=Ss;else if(T>=a){var V=i?null:x1(t);if(V)return _o(V);C=!1,x=ai,j=new ur}else j=i?[]:M;e:for(;++h<T;){var X=t[h],ee=i?i(X):X;if(X=s||X!==0?X:0,C&&ee===ee){for(var oe=j.length;oe--;)if(j[oe]===ee)continue e;i&&j.push(ee),M.push(X)}else x(j,ee,s)||(j!==M&&j.push(ee),M.push(X))}return M}function Gs(t,i){return i=Hn(i,t),t=Jc(t,i),t==null||delete t[un(Ht(i))]}function Oc(t,i,s,h){return mi(t,i,s(fr(t,i)),h)}function zo(t,i,s,h){for(var x=t.length,T=h?x:-1;(h?T--:++T<x)&&i(t[T],T,t););return s?zt(t,h?0:T,h?T+1:x):zt(t,h?T+1:0,h?x:T)}function Ac(t,i){var s=t;return s instanceof Ae&&(s=s.value()),Es(i,function(h,x){return x.func.apply(x.thisArg,jn([h],x.args))},s)}function Ks(t,i,s){var h=t.length;if(h<2)return h?zn(t[0]):[];for(var x=-1,T=H(h);++x<h;)for(var C=t[x],M=-1;++M<h;)M!=x&&(T[x]=pi(T[x]||C,t[M],i,s));return zn(st(T,1),i,s)}function Tc(t,i,s){for(var h=-1,x=t.length,T=i.length,C={};++h<x;){var M=h<T?i[h]:r;s(C,t[h],M)}return C}function Vs(t){return He(t)?t:[]}function Ys(t){return typeof t=="function"?t:xt}function Hn(t,i){return we(t)?t:ou(t,i)?[t]:nd(Ce(t))}var h1=_e;function qn(t,i,s){var h=t.length;return s=s===r?h:s,!i&&s>=h?t:zt(t,i,s)}var Pc=t0||function(t){return at.clearTimeout(t)};function Cc(t,i){if(i)return t.slice();var s=t.length,h=Yf?Yf(s):new t.constructor(s);return t.copy(h),h}function Xs(t){var i=new t.constructor(t.byteLength);return new Co(i).set(new Co(t)),i}function v1(t,i){var s=i?Xs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function m1(t){var i=new t.constructor(t.source,df.exec(t));return i.lastIndex=t.lastIndex,i}function g1(t){return ci?Le(ci.call(t)):{}}function Rc(t,i){var s=i?Xs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Ic(t,i){if(t!==i){var s=t!==r,h=t===null,x=t===t,T=Mt(t),C=i!==r,M=i===null,j=i===i,V=Mt(i);if(!M&&!V&&!T&&t>i||T&&C&&j&&!M&&!V||h&&C&&j||!s&&j||!x)return 1;if(!h&&!T&&!V&&t<i||V&&s&&x&&!h&&!T||M&&s&&x||!C&&x||!j)return-1}return 0}function y1(t,i,s){for(var h=-1,x=t.criteria,T=i.criteria,C=x.length,M=s.length;++h<C;){var j=Ic(x[h],T[h]);if(j){if(h>=M)return j;var V=s[h];return j*(V=="desc"?-1:1)}}return t.index-i.index}function Mc(t,i,s,h){for(var x=-1,T=t.length,C=s.length,M=-1,j=i.length,V=Je(T-C,0),X=H(j+V),ee=!h;++M<j;)X[M]=i[M];for(;++x<C;)(ee||x<T)&&(X[s[x]]=t[x]);for(;V--;)X[M++]=t[x++];return X}function Fc(t,i,s,h){for(var x=-1,T=t.length,C=-1,M=s.length,j=-1,V=i.length,X=Je(T-M,0),ee=H(X+V),oe=!h;++x<X;)ee[x]=t[x];for(var le=x;++j<V;)ee[le+j]=i[j];for(;++C<M;)(oe||x<T)&&(ee[le+s[C]]=t[x++]);return ee}function St(t,i){var s=-1,h=t.length;for(i||(i=H(h));++s<h;)i[s]=t[s];return i}function sn(t,i,s,h){var x=!s;s||(s={});for(var T=-1,C=i.length;++T<C;){var M=i[T],j=h?h(s[M],t[M],M,s,t):r;j===r&&(j=t[M]),x?Sn(s,M,j):di(s,M,j)}return s}function w1(t,i){return sn(t,iu(t),i)}function b1(t,i){return sn(t,Zc(t),i)}function Ho(t,i){return function(s,h){var x=we(s)?Oy:B0,T=i?i():{};return x(s,t,pe(h,2),T)}}function jr(t){return _e(function(i,s){var h=-1,x=s.length,T=x>1?s[x-1]:r,C=x>2?s[2]:r;for(T=t.length>3&&typeof T=="function"?(x--,T):r,C&&yt(s[0],s[1],C)&&(T=x<3?r:T,x=1),i=Le(i);++h<x;){var M=s[h];M&&t(i,M,h,T)}return i})}function Lc(t,i){return function(s,h){if(s==null)return s;if(!Et(s))return t(s,h);for(var x=s.length,T=i?x:-1,C=Le(s);(i?T--:++T<x)&&h(C[T],T,C)!==!1;);return s}}function Dc(t){return function(i,s,h){for(var x=-1,T=Le(i),C=h(i),M=C.length;M--;){var j=C[t?M:++x];if(s(T[j],j,T)===!1)break}return i}}function S1(t,i,s){var h=i&w,x=gi(t);function T(){var C=this&&this!==at&&this instanceof T?x:t;return C.apply(h?s:this,arguments)}return T}function $c(t){return function(i){i=Ce(i);var s=Mr(i)?Xt(i):r,h=s?s[0]:i.charAt(0),x=s?qn(s,1).join(""):i.slice(1);return h[t]()+x}}function Wr(t){return function(i){return Es(Ld(Fd(i).replace(cy,"")),t,"")}}function gi(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=kr(t.prototype),h=t.apply(s,i);return Ue(h)?h:s}}function E1(t,i,s){var h=gi(t);function x(){for(var T=arguments.length,C=H(T),M=T,j=Ur(x);M--;)C[M]=arguments[M];var V=T<3&&C[0]!==j&&C[T-1]!==j?[]:Wn(C,j);if(T-=V.length,T<s)return Uc(t,i,qo,x.placeholder,r,C,V,r,r,s-T);var X=this&&this!==at&&this instanceof x?h:t;return Ct(X,this,C)}return x}function Nc(t){return function(i,s,h){var x=Le(i);if(!Et(i)){var T=pe(s,3);i=rt(i),s=function(M){return T(x[M],M,x)}}var C=t(i,s,h);return C>-1?x[T?i[C]:C]:r}}function kc(t){return _n(function(i){var s=i.length,h=s,x=Ut.prototype.thru;for(t&&i.reverse();h--;){var T=i[h];if(typeof T!="function")throw new Wt(l);if(x&&!C&&Vo(T)=="wrapper")var C=new Ut([],!0)}for(h=C?h:s;++h<s;){T=i[h];var M=Vo(T),j=M=="wrapper"?nu(T):r;j&&au(j[0])&&j[1]==(z|_|A|L)&&!j[4].length&&j[9]==1?C=C[Vo(j[0])].apply(C,j[3]):C=T.length==1&&au(T)?C[M]():C.thru(T)}return function(){var V=arguments,X=V[0];if(C&&V.length==1&&we(X))return C.plant(X).value();for(var ee=0,oe=s?i[ee].apply(this,V):X;++ee<s;)oe=i[ee].call(this,oe);return oe}})}function qo(t,i,s,h,x,T,C,M,j,V){var X=i&z,ee=i&w,oe=i&c,le=i&(_|P),he=i&D,Se=oe?r:gi(t);function ve(){for(var xe=arguments.length,Te=H(xe),Ft=xe;Ft--;)Te[Ft]=arguments[Ft];if(le)var wt=Ur(ve),Lt=Ly(Te,wt);if(h&&(Te=Mc(Te,h,x,le)),T&&(Te=Fc(Te,T,C,le)),xe-=Lt,le&&xe<V){var qe=Wn(Te,wt);return Uc(t,i,qo,ve.placeholder,s,Te,qe,M,j,V-xe)}var en=ee?s:this,Tn=oe?en[t]:t;return xe=Te.length,M?Te=B1(Te,M):he&&xe>1&&Te.reverse(),X&&j<xe&&(Te.length=j),this&&this!==at&&this instanceof ve&&(Tn=Se||gi(Tn)),Tn.apply(en,Te)}return ve}function jc(t,i){return function(s,h){return Y0(s,t,i(h),{})}}function Zo(t,i){return function(s,h){var x;if(s===r&&h===r)return i;if(s!==r&&(x=s),h!==r){if(x===r)return h;typeof s=="string"||typeof h=="string"?(s=It(s),h=It(h)):(s=xc(s),h=xc(h)),x=t(s,h)}return x}}function Js(t){return _n(function(i){return i=Ne(i,Rt(pe())),_e(function(s){var h=this;return t(i,function(x){return Ct(x,h,s)})})})}function Go(t,i){i=i===r?" ":It(i);var s=i.length;if(s<2)return s?qs(i,t):i;var h=qs(i,Fo(t/Fr(i)));return Mr(i)?qn(Xt(h),0,t).join(""):h.slice(0,t)}function _1(t,i,s,h){var x=i&w,T=gi(t);function C(){for(var M=-1,j=arguments.length,V=-1,X=h.length,ee=H(X+j),oe=this&&this!==at&&this instanceof C?T:t;++V<X;)ee[V]=h[V];for(;j--;)ee[V++]=arguments[++M];return Ct(oe,x?s:this,ee)}return C}function Wc(t){return function(i,s,h){return h&&typeof h!="number"&&yt(i,s,h)&&(s=h=r),i=An(i),s===r?(s=i,i=0):s=An(s),h=h===r?i<s?1:-1:An(h),u1(i,s,h,t)}}function Ko(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=qt(i),s=qt(s)),t(i,s)}}function Uc(t,i,s,h,x,T,C,M,j,V){var X=i&_,ee=X?C:r,oe=X?r:C,le=X?T:r,he=X?r:T;i|=X?A:I,i&=~(X?I:A),i&S||(i&=-4);var Se=[t,i,x,le,ee,he,oe,M,j,V],ve=s.apply(r,Se);return au(t)&&Qc(ve,Se),ve.placeholder=h,ed(ve,t,i)}function Qs(t){var i=Xe[t];return function(s,h){if(s=qt(s),h=h==null?0:pt(be(h),292),h&&ec(s)){var x=(Ce(s)+"e").split("e"),T=i(x[0]+"e"+(+x[1]+h));return x=(Ce(T)+"e").split("e"),+(x[0]+"e"+(+x[1]-h))}return i(s)}}var x1=$r&&1/_o(new $r([,-0]))[1]==Y?function(t){return new $r(t)}:Su;function Bc(t){return function(i){var s=ht(i);return s==nt?Cs(i):s==dt?Uy(i):Fy(i,t(i))}}function En(t,i,s,h,x,T,C,M){var j=i&c;if(!j&&typeof t!="function")throw new Wt(l);var V=h?h.length:0;if(V||(i&=-97,h=x=r),C=C===r?C:Je(be(C),0),M=M===r?M:be(M),V-=x?x.length:0,i&I){var X=h,ee=x;h=x=r}var oe=j?r:nu(t),le=[t,i,s,h,x,X,ee,T,C,M];if(oe&&j1(le,oe),t=le[0],i=le[1],s=le[2],h=le[3],x=le[4],M=le[9]=le[9]===r?j?0:t.length:Je(le[9]-V,0),!M&&i&(_|P)&&(i&=-25),!i||i==w)var he=S1(t,i,s);else i==_||i==P?he=E1(t,i,M):(i==A||i==(w|A))&&!x.length?he=_1(t,i,s,h):he=qo.apply(r,le);var Se=oe?Ec:Qc;return ed(Se(he,le),t,i)}function zc(t,i,s,h){return t===r||Qt(t,Dr[s])&&!Me.call(h,s)?i:t}function Hc(t,i,s,h,x,T){return Ue(t)&&Ue(i)&&(T.set(i,t),Uo(t,i,r,Hc,T),T.delete(i)),t}function O1(t){return bi(t)?r:t}function qc(t,i,s,h,x,T){var C=s&b,M=t.length,j=i.length;if(M!=j&&!(C&&j>M))return!1;var V=T.get(t),X=T.get(i);if(V&&X)return V==i&&X==t;var ee=-1,oe=!0,le=s&f?new ur:r;for(T.set(t,i),T.set(i,t);++ee<M;){var he=t[ee],Se=i[ee];if(h)var ve=C?h(Se,he,ee,i,t,T):h(he,Se,ee,t,i,T);if(ve!==r){if(ve)continue;oe=!1;break}if(le){if(!_s(i,function(xe,Te){if(!ai(le,Te)&&(he===xe||x(he,xe,s,h,T)))return le.push(Te)})){oe=!1;break}}else if(!(he===Se||x(he,Se,s,h,T))){oe=!1;break}}return T.delete(t),T.delete(i),oe}function A1(t,i,s,h,x,T,C){switch(s){case yn:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case Nn:return!(t.byteLength!=i.byteLength||!T(new Co(t),new Co(i)));case me:case Ee:case on:return Qt(+t,+i);case We:return t.name==i.name&&t.message==i.message;case Pt:case Dn:return t==i+"";case nt:var M=Cs;case dt:var j=h&b;if(M||(M=_o),t.size!=i.size&&!j)return!1;var V=C.get(t);if(V)return V==i;h|=f,C.set(t,i);var X=qc(M(t),M(i),h,x,T,C);return C.delete(t),X;case ir:if(ci)return ci.call(t)==ci.call(i)}return!1}function T1(t,i,s,h,x,T){var C=s&b,M=eu(t),j=M.length,V=eu(i),X=V.length;if(j!=X&&!C)return!1;for(var ee=j;ee--;){var oe=M[ee];if(!(C?oe in i:Me.call(i,oe)))return!1}var le=T.get(t),he=T.get(i);if(le&&he)return le==i&&he==t;var Se=!0;T.set(t,i),T.set(i,t);for(var ve=C;++ee<j;){oe=M[ee];var xe=t[oe],Te=i[oe];if(h)var Ft=C?h(Te,xe,oe,i,t,T):h(xe,Te,oe,t,i,T);if(!(Ft===r?xe===Te||x(xe,Te,s,h,T):Ft)){Se=!1;break}ve||(ve=oe=="constructor")}if(Se&&!ve){var wt=t.constructor,Lt=i.constructor;wt!=Lt&&"constructor"in t&&"constructor"in i&&!(typeof wt=="function"&&wt instanceof wt&&typeof Lt=="function"&&Lt instanceof Lt)&&(Se=!1)}return T.delete(t),T.delete(i),Se}function _n(t){return uu(Xc(t,r,ad),t+"")}function eu(t){return cc(t,rt,iu)}function tu(t){return cc(t,_t,Zc)}var nu=Do?function(t){return Do.get(t)}:Su;function Vo(t){for(var i=t.name+"",s=Nr[i],h=Me.call(Nr,i)?s.length:0;h--;){var x=s[h],T=x.func;if(T==null||T==t)return x.name}return i}function Ur(t){var i=Me.call(O,"placeholder")?O:t;return i.placeholder}function pe(){var t=O.iteratee||wu;return t=t===wu?hc:t,arguments.length?t(arguments[0],arguments[1]):t}function Yo(t,i){var s=t.__data__;return D1(i)?s[typeof i=="string"?"string":"hash"]:s.map}function ru(t){for(var i=rt(t),s=i.length;s--;){var h=i[s],x=t[h];i[s]=[h,x,Vc(x)]}return i}function cr(t,i){var s=ky(t,i);return pc(s)?s:r}function P1(t){var i=Me.call(t,ar),s=t[ar];try{t[ar]=r;var h=!0}catch{}var x=To.call(t);return h&&(i?t[ar]=s:delete t[ar]),x}var iu=Is?function(t){return t==null?[]:(t=Le(t),kn(Is(t),function(i){return Jf.call(t,i)}))}:Eu,Zc=Is?function(t){for(var i=[];t;)jn(i,iu(t)),t=Ro(t);return i}:Eu,ht=gt;(Ms&&ht(new Ms(new ArrayBuffer(1)))!=yn||ui&&ht(new ui)!=nt||Fs&&ht(Fs.resolve())!=mo||$r&&ht(new $r)!=dt||li&&ht(new li)!=$n)&&(ht=function(t){var i=gt(t),s=i==Nt?t.constructor:r,h=s?dr(s):"";if(h)switch(h){case f0:return yn;case c0:return nt;case d0:return mo;case p0:return dt;case h0:return $n}return i});function C1(t,i,s){for(var h=-1,x=s.length;++h<x;){var T=s[h],C=T.size;switch(T.type){case"drop":t+=C;break;case"dropRight":i-=C;break;case"take":i=pt(i,t+C);break;case"takeRight":t=Je(t,i-C);break}}return{start:t,end:i}}function R1(t){var i=t.match($g);return i?i[1].split(Ng):[]}function Gc(t,i,s){i=Hn(i,t);for(var h=-1,x=i.length,T=!1;++h<x;){var C=un(i[h]);if(!(T=t!=null&&s(t,C)))break;t=t[C]}return T||++h!=x?T:(x=t==null?0:t.length,!!x&&ra(x)&&xn(C,x)&&(we(t)||pr(t)))}function I1(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&Me.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Kc(t){return typeof t.constructor=="function"&&!yi(t)?kr(Ro(t)):{}}function M1(t,i,s){var h=t.constructor;switch(i){case Nn:return Xs(t);case me:case Ee:return new h(+t);case yn:return v1(t,s);case rs:case is:case os:case as:case ss:case us:case ls:case fs:case cs:return Rc(t,s);case nt:return new h;case on:case Dn:return new h(t);case Pt:return m1(t);case dt:return new h;case ir:return g1(t)}}function F1(t,i){var s=i.length;if(!s)return t;var h=s-1;return i[h]=(s>1?"& ":"")+i[h],i=i.join(s>2?", ":" "),t.replace(Dg,`{
182
+ */var VC=io.exports,_g;function YC(){return _g||(_g=1,(function(e,t){(function(){var r,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",y=500,v="__lodash_placeholder__",g=1,p=2,w=4,x=1,f=2,b=1,d=2,S=4,E=8,R=16,O=32,k=64,B=128,L=256,M=512,G=30,N="...",I=800,U=16,q=1,C=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,se=Q-1,ue=Q>>>1,ne=[["ary",B],["bind",b],["bindKey",d],["curry",E],["curryRight",R],["flip",M],["partial",O],["partialRight",k],["rearg",L]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",ve="[object Boolean]",Ee="[object Date]",Oe="[object DOMException]",qe="[object Error]",ie="[object Function]",vt="[object GeneratorFunction]",at="[object Map]",dr="[object Number]",ko="[object Null]",Ut="[object Object]",$o="[object Promise]",Aa="[object Proxy]",Lt="[object RegExp]",mt="[object Set]",Ur="[object String]",pn="[object Symbol]",vi="[object Undefined]",Hr="[object WeakMap]",Io="[object WeakSet]",qr="[object ArrayBuffer]",Or="[object DataView]",Oa="[object Float32Array]",Ta="[object Float64Array]",Ra="[object Int8Array]",Pa="[object Int16Array]",Ca="[object Int32Array]",ka="[object Uint8Array]",$a="[object Uint8ClampedArray]",Ia="[object Uint16Array]",La="[object Uint32Array]",T0=/\b__p \+= '';/g,R0=/\b(__p \+=) '' \+/g,P0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hc=/&(?:amp|lt|gt|quot|#39);/g,qc=/[&<>"']/g,C0=RegExp(Hc.source),k0=RegExp(qc.source),$0=/<%-([\s\S]+?)%>/g,I0=/<%([\s\S]+?)%>/g,Zc=/<%=([\s\S]+?)%>/g,L0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M0=/^\w*$/,F0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ma=/[\\^$.*+?()[\]{}|]/g,D0=RegExp(Ma.source),Fa=/^\s+/,N0=/\s/,j0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,z0=/\{\n\/\* \[wrapped with (.+)\] \*/,W0=/,? & /,B0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U0=/[()=,{}\[\]\/\s]/,H0=/\\(\\)?/g,q0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gc=/\w*$/,Z0=/^[-+]0x[0-9a-f]+$/i,G0=/^0b[01]+$/i,K0=/^\[object .+?Constructor\]$/,V0=/^0o[0-7]+$/i,Y0=/^(?:0|[1-9]\d*)$/,X0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lo=/($^)/,J0=/['\n\r\u2028\u2029\\]/g,Mo="\\ud800-\\udfff",Q0="\\u0300-\\u036f",ey="\\ufe20-\\ufe2f",ty="\\u20d0-\\u20ff",Kc=Q0+ey+ty,Vc="\\u2700-\\u27bf",Yc="a-z\\xdf-\\xf6\\xf8-\\xff",ry="\\xac\\xb1\\xd7\\xf7",ny="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",iy="\\u2000-\\u206f",oy=" \\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",Xc="A-Z\\xc0-\\xd6\\xd8-\\xde",Jc="\\ufe0e\\ufe0f",Qc=ry+ny+iy+oy,Da="['’]",sy="["+Mo+"]",ef="["+Qc+"]",Fo="["+Kc+"]",tf="\\d+",ay="["+Vc+"]",rf="["+Yc+"]",nf="[^"+Mo+Qc+tf+Vc+Yc+Xc+"]",Na="\\ud83c[\\udffb-\\udfff]",uy="(?:"+Fo+"|"+Na+")",of="[^"+Mo+"]",ja="(?:\\ud83c[\\udde6-\\uddff]){2}",za="[\\ud800-\\udbff][\\udc00-\\udfff]",Wn="["+Xc+"]",sf="\\u200d",af="(?:"+rf+"|"+nf+")",ly="(?:"+Wn+"|"+nf+")",uf="(?:"+Da+"(?:d|ll|m|re|s|t|ve))?",lf="(?:"+Da+"(?:D|LL|M|RE|S|T|VE))?",cf=uy+"?",ff="["+Jc+"]?",cy="(?:"+sf+"(?:"+[of,ja,za].join("|")+")"+ff+cf+")*",fy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",df=ff+cf+cy,py="(?:"+[ay,ja,za].join("|")+")"+df,hy="(?:"+[of+Fo+"?",Fo,ja,za,sy].join("|")+")",gy=RegExp(Da,"g"),vy=RegExp(Fo,"g"),Wa=RegExp(Na+"(?="+Na+")|"+hy+df,"g"),my=RegExp([Wn+"?"+rf+"+"+uf+"(?="+[ef,Wn,"$"].join("|")+")",ly+"+"+lf+"(?="+[ef,Wn+af,"$"].join("|")+")",Wn+"?"+af+"+"+uf,Wn+"+"+lf,dy,fy,tf,py].join("|"),"g"),yy=RegExp("["+sf+Mo+Kc+Jc+"]"),wy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,by=["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"],xy=-1,We={};We[Oa]=We[Ta]=We[Ra]=We[Pa]=We[Ca]=We[ka]=We[$a]=We[Ia]=We[La]=!0,We[ce]=We[fe]=We[qr]=We[ve]=We[Or]=We[Ee]=We[qe]=We[ie]=We[at]=We[dr]=We[Ut]=We[Lt]=We[mt]=We[Ur]=We[Hr]=!1;var je={};je[ce]=je[fe]=je[qr]=je[Or]=je[ve]=je[Ee]=je[Oa]=je[Ta]=je[Ra]=je[Pa]=je[Ca]=je[at]=je[dr]=je[Ut]=je[Lt]=je[mt]=je[Ur]=je[pn]=je[ka]=je[$a]=je[Ia]=je[La]=!0,je[qe]=je[ie]=je[Hr]=!1;var Sy={À:"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"},Ey={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Oy=parseFloat,Ty=parseInt,pf=typeof Es=="object"&&Es&&Es.Object===Object&&Es,Ry=typeof self=="object"&&self&&self.Object===Object&&self,ft=pf||Ry||Function("return this")(),Ba=t&&!t.nodeType&&t,hn=Ba&&!0&&e&&!e.nodeType&&e,hf=hn&&hn.exports===Ba,Ua=hf&&pf.process,Ht=(function(){try{var F=hn&&hn.require&&hn.require("util").types;return F||Ua&&Ua.binding&&Ua.binding("util")}catch{}})(),gf=Ht&&Ht.isArrayBuffer,vf=Ht&&Ht.isDate,mf=Ht&&Ht.isMap,yf=Ht&&Ht.isRegExp,wf=Ht&&Ht.isSet,bf=Ht&&Ht.isTypedArray;function Mt(F,K,H){switch(H.length){case 0:return F.call(K);case 1:return F.call(K,H[0]);case 2:return F.call(K,H[0],H[1]);case 3:return F.call(K,H[0],H[1],H[2])}return F.apply(K,H)}function Py(F,K,H,ae){for(var we=-1,Pe=F==null?0:F.length;++we<Pe;){var nt=F[we];K(ae,nt,H(nt),F)}return ae}function qt(F,K){for(var H=-1,ae=F==null?0:F.length;++H<ae&&K(F[H],H,F)!==!1;);return F}function Cy(F,K){for(var H=F==null?0:F.length;H--&&K(F[H],H,F)!==!1;);return F}function xf(F,K){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(!K(F[H],H,F))return!1;return!0}function Zr(F,K){for(var H=-1,ae=F==null?0:F.length,we=0,Pe=[];++H<ae;){var nt=F[H];K(nt,H,F)&&(Pe[we++]=nt)}return Pe}function Do(F,K){var H=F==null?0:F.length;return!!H&&Bn(F,K,0)>-1}function Ha(F,K,H){for(var ae=-1,we=F==null?0:F.length;++ae<we;)if(H(K,F[ae]))return!0;return!1}function Be(F,K){for(var H=-1,ae=F==null?0:F.length,we=Array(ae);++H<ae;)we[H]=K(F[H],H,F);return we}function Gr(F,K){for(var H=-1,ae=K.length,we=F.length;++H<ae;)F[we+H]=K[H];return F}function qa(F,K,H,ae){var we=-1,Pe=F==null?0:F.length;for(ae&&Pe&&(H=F[++we]);++we<Pe;)H=K(H,F[we],we,F);return H}function ky(F,K,H,ae){var we=F==null?0:F.length;for(ae&&we&&(H=F[--we]);we--;)H=K(H,F[we],we,F);return H}function Za(F,K){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(K(F[H],H,F))return!0;return!1}var $y=Ga("length");function Iy(F){return F.split("")}function Ly(F){return F.match(B0)||[]}function Sf(F,K,H){var ae;return H(F,function(we,Pe,nt){if(K(we,Pe,nt))return ae=Pe,!1}),ae}function No(F,K,H,ae){for(var we=F.length,Pe=H+(ae?1:-1);ae?Pe--:++Pe<we;)if(K(F[Pe],Pe,F))return Pe;return-1}function Bn(F,K,H){return K===K?Zy(F,K,H):No(F,Ef,H)}function My(F,K,H,ae){for(var we=H-1,Pe=F.length;++we<Pe;)if(ae(F[we],K))return we;return-1}function Ef(F){return F!==F}function _f(F,K){var H=F==null?0:F.length;return H?Va(F,K)/H:Z}function Ga(F){return function(K){return K==null?r:K[F]}}function Ka(F){return function(K){return F==null?r:F[K]}}function Af(F,K,H,ae,we){return we(F,function(Pe,nt,Ne){H=ae?(ae=!1,Pe):K(H,Pe,nt,Ne)}),H}function Fy(F,K){var H=F.length;for(F.sort(K);H--;)F[H]=F[H].value;return F}function Va(F,K){for(var H,ae=-1,we=F.length;++ae<we;){var Pe=K(F[ae]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function Ya(F,K){for(var H=-1,ae=Array(F);++H<F;)ae[H]=K(H);return ae}function Dy(F,K){return Be(K,function(H){return[H,F[H]]})}function Of(F){return F&&F.slice(0,Cf(F)+1).replace(Fa,"")}function Ft(F){return function(K){return F(K)}}function Xa(F,K){return Be(K,function(H){return F[H]})}function mi(F,K){return F.has(K)}function Tf(F,K){for(var H=-1,ae=F.length;++H<ae&&Bn(K,F[H],0)>-1;);return H}function Rf(F,K){for(var H=F.length;H--&&Bn(K,F[H],0)>-1;);return H}function Ny(F,K){for(var H=F.length,ae=0;H--;)F[H]===K&&++ae;return ae}var jy=Ka(Sy),zy=Ka(Ey);function Wy(F){return"\\"+Ay[F]}function By(F,K){return F==null?r:F[K]}function Un(F){return yy.test(F)}function Uy(F){return wy.test(F)}function Hy(F){for(var K,H=[];!(K=F.next()).done;)H.push(K.value);return H}function Ja(F){var K=-1,H=Array(F.size);return F.forEach(function(ae,we){H[++K]=[we,ae]}),H}function Pf(F,K){return function(H){return F(K(H))}}function Kr(F,K){for(var H=-1,ae=F.length,we=0,Pe=[];++H<ae;){var nt=F[H];(nt===K||nt===v)&&(F[H]=v,Pe[we++]=H)}return Pe}function jo(F){var K=-1,H=Array(F.size);return F.forEach(function(ae){H[++K]=ae}),H}function qy(F){var K=-1,H=Array(F.size);return F.forEach(function(ae){H[++K]=[ae,ae]}),H}function Zy(F,K,H){for(var ae=H-1,we=F.length;++ae<we;)if(F[ae]===K)return ae;return-1}function Gy(F,K,H){for(var ae=H+1;ae--;)if(F[ae]===K)return ae;return ae}function Hn(F){return Un(F)?Vy(F):$y(F)}function nr(F){return Un(F)?Yy(F):Iy(F)}function Cf(F){for(var K=F.length;K--&&N0.test(F.charAt(K)););return K}var Ky=Ka(_y);function Vy(F){for(var K=Wa.lastIndex=0;Wa.test(F);)++K;return K}function Yy(F){return F.match(Wa)||[]}function Xy(F){return F.match(my)||[]}var Jy=(function F(K){K=K==null?ft:qn.defaults(ft.Object(),K,qn.pick(ft,by));var H=K.Array,ae=K.Date,we=K.Error,Pe=K.Function,nt=K.Math,Ne=K.Object,Qa=K.RegExp,Qy=K.String,Zt=K.TypeError,zo=H.prototype,ew=Pe.prototype,Zn=Ne.prototype,Wo=K["__core-js_shared__"],Bo=ew.toString,Me=Zn.hasOwnProperty,tw=0,kf=(function(){var n=/[^.]+$/.exec(Wo&&Wo.keys&&Wo.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),Uo=Zn.toString,rw=Bo.call(Ne),nw=ft._,iw=Qa("^"+Bo.call(Me).replace(Ma,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ho=hf?K.Buffer:r,Vr=K.Symbol,qo=K.Uint8Array,$f=Ho?Ho.allocUnsafe:r,Zo=Pf(Ne.getPrototypeOf,Ne),If=Ne.create,Lf=Zn.propertyIsEnumerable,Go=zo.splice,Mf=Vr?Vr.isConcatSpreadable:r,yi=Vr?Vr.iterator:r,gn=Vr?Vr.toStringTag:r,Ko=(function(){try{var n=bn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),ow=K.clearTimeout!==ft.clearTimeout&&K.clearTimeout,sw=ae&&ae.now!==ft.Date.now&&ae.now,aw=K.setTimeout!==ft.setTimeout&&K.setTimeout,Vo=nt.ceil,Yo=nt.floor,eu=Ne.getOwnPropertySymbols,uw=Ho?Ho.isBuffer:r,Ff=K.isFinite,lw=zo.join,cw=Pf(Ne.keys,Ne),it=nt.max,yt=nt.min,fw=ae.now,dw=K.parseInt,Df=nt.random,pw=zo.reverse,tu=bn(K,"DataView"),wi=bn(K,"Map"),ru=bn(K,"Promise"),Gn=bn(K,"Set"),bi=bn(K,"WeakMap"),xi=bn(Ne,"create"),Xo=bi&&new bi,Kn={},hw=xn(tu),gw=xn(wi),vw=xn(ru),mw=xn(Gn),yw=xn(bi),Jo=Vr?Vr.prototype:r,Si=Jo?Jo.valueOf:r,Nf=Jo?Jo.toString:r;function A(n){if(Ke(n)&&!be(n)&&!(n instanceof Te)){if(n instanceof Gt)return n;if(Me.call(n,"__wrapped__"))return jd(n)}return new Gt(n)}var Vn=(function(){function n(){}return function(i){if(!Ze(i))return{};if(If)return If(i);n.prototype=i;var u=new n;return n.prototype=r,u}})();function Qo(){}function Gt(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}A.templateSettings={escape:$0,evaluate:I0,interpolate:Zc,variable:"",imports:{_:A}},A.prototype=Qo.prototype,A.prototype.constructor=A,Gt.prototype=Vn(Qo.prototype),Gt.prototype.constructor=Gt;function Te(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function ww(){var n=new Te(this.__wrapped__);return n.__actions__=Rt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Rt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Rt(this.__views__),n}function bw(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function xw(){var n=this.__wrapped__.value(),i=this.__dir__,u=be(n),m=i<0,_=u?n.length:0,T=I1(0,_,this.__views__),P=T.start,$=T.end,j=$-P,V=m?$:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=yt(j,this.__takeCount__);if(!u||!m&&_==j&&le==j)return ud(n,this.__actions__);var he=[];e:for(;j--&&oe<le;){V+=i;for(var Se=-1,ge=n[V];++Se<ee;){var Ae=X[Se],Re=Ae.iteratee,jt=Ae.type,At=Re(ge);if(jt==C)ge=At;else if(!At){if(jt==q)continue e;break e}}he[oe++]=ge}return he}Te.prototype=Vn(Qo.prototype),Te.prototype.constructor=Te;function vn(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var m=n[i];this.set(m[0],m[1])}}function Sw(){this.__data__=xi?xi(null):{},this.size=0}function Ew(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function _w(n){var i=this.__data__;if(xi){var u=i[n];return u===h?r:u}return Me.call(i,n)?i[n]:r}function Aw(n){var i=this.__data__;return xi?i[n]!==r:Me.call(i,n)}function Ow(n,i){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=xi&&i===r?h:i,this}vn.prototype.clear=Sw,vn.prototype.delete=Ew,vn.prototype.get=_w,vn.prototype.has=Aw,vn.prototype.set=Ow;function Tr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var m=n[i];this.set(m[0],m[1])}}function Tw(){this.__data__=[],this.size=0}function Rw(n){var i=this.__data__,u=es(i,n);if(u<0)return!1;var m=i.length-1;return u==m?i.pop():Go.call(i,u,1),--this.size,!0}function Pw(n){var i=this.__data__,u=es(i,n);return u<0?r:i[u][1]}function Cw(n){return es(this.__data__,n)>-1}function kw(n,i){var u=this.__data__,m=es(u,n);return m<0?(++this.size,u.push([n,i])):u[m][1]=i,this}Tr.prototype.clear=Tw,Tr.prototype.delete=Rw,Tr.prototype.get=Pw,Tr.prototype.has=Cw,Tr.prototype.set=kw;function Rr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var m=n[i];this.set(m[0],m[1])}}function $w(){this.size=0,this.__data__={hash:new vn,map:new(wi||Tr),string:new vn}}function Iw(n){var i=ds(this,n).delete(n);return this.size-=i?1:0,i}function Lw(n){return ds(this,n).get(n)}function Mw(n){return ds(this,n).has(n)}function Fw(n,i){var u=ds(this,n),m=u.size;return u.set(n,i),this.size+=u.size==m?0:1,this}Rr.prototype.clear=$w,Rr.prototype.delete=Iw,Rr.prototype.get=Lw,Rr.prototype.has=Mw,Rr.prototype.set=Fw;function mn(n){var i=-1,u=n==null?0:n.length;for(this.__data__=new Rr;++i<u;)this.add(n[i])}function Dw(n){return this.__data__.set(n,h),this}function Nw(n){return this.__data__.has(n)}mn.prototype.add=mn.prototype.push=Dw,mn.prototype.has=Nw;function ir(n){var i=this.__data__=new Tr(n);this.size=i.size}function jw(){this.__data__=new Tr,this.size=0}function zw(n){var i=this.__data__,u=i.delete(n);return this.size=i.size,u}function Ww(n){return this.__data__.get(n)}function Bw(n){return this.__data__.has(n)}function Uw(n,i){var u=this.__data__;if(u instanceof Tr){var m=u.__data__;if(!wi||m.length<s-1)return m.push([n,i]),this.size=++u.size,this;u=this.__data__=new Rr(m)}return u.set(n,i),this.size=u.size,this}ir.prototype.clear=jw,ir.prototype.delete=zw,ir.prototype.get=Ww,ir.prototype.has=Bw,ir.prototype.set=Uw;function jf(n,i){var u=be(n),m=!u&&Sn(n),_=!u&&!m&&en(n),T=!u&&!m&&!_&&Qn(n),P=u||m||_||T,$=P?Ya(n.length,Qy):[],j=$.length;for(var V in n)(i||Me.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||$r(V,j)))&&$.push(V);return $}function zf(n){var i=n.length;return i?n[pu(0,i-1)]:r}function Hw(n,i){return ps(Rt(n),yn(i,0,n.length))}function qw(n){return ps(Rt(n))}function nu(n,i,u){(u!==r&&!or(n[i],u)||u===r&&!(i in n))&&Pr(n,i,u)}function Ei(n,i,u){var m=n[i];(!(Me.call(n,i)&&or(m,u))||u===r&&!(i in n))&&Pr(n,i,u)}function es(n,i){for(var u=n.length;u--;)if(or(n[u][0],i))return u;return-1}function Zw(n,i,u,m){return Yr(n,function(_,T,P){i(m,_,u(_),P)}),m}function Wf(n,i){return n&&hr(i,ut(i),n)}function Gw(n,i){return n&&hr(i,Ct(i),n)}function Pr(n,i,u){i=="__proto__"&&Ko?Ko(n,i,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[i]=u}function iu(n,i){for(var u=-1,m=i.length,_=H(m),T=n==null;++u<m;)_[u]=T?r:Nu(n,i[u]);return _}function yn(n,i,u){return n===n&&(u!==r&&(n=n<=u?n:u),i!==r&&(n=n>=i?n:i)),n}function Kt(n,i,u,m,_,T){var P,$=i&g,j=i&p,V=i&w;if(u&&(P=_?u(n,m,_,T):u(n)),P!==r)return P;if(!Ze(n))return n;var X=be(n);if(X){if(P=M1(n),!$)return Rt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==vt;if(en(n))return fd(n,$);if(ee==Ut||ee==ce||oe&&!_){if(P=j||oe?{}:Cd(n),!$)return j?_1(n,Gw(P,n)):E1(n,Wf(P,n))}else{if(!je[ee])return _?n:{};P=F1(n,ee,$)}}T||(T=new ir);var le=T.get(n);if(le)return le;T.set(n,P),op(n)?n.forEach(function(ge){P.add(Kt(ge,i,u,ge,n,T))}):np(n)&&n.forEach(function(ge,Ae){P.set(Ae,Kt(ge,i,u,Ae,n,T))});var he=V?j?_u:Eu:j?Ct:ut,Se=X?r:he(n);return qt(Se||n,function(ge,Ae){Se&&(Ae=ge,ge=n[Ae]),Ei(P,Ae,Kt(ge,i,u,Ae,n,T))}),P}function Kw(n){var i=ut(n);return function(u){return Bf(u,n,i)}}function Bf(n,i,u){var m=u.length;if(n==null)return!m;for(n=Ne(n);m--;){var _=u[m],T=i[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function Uf(n,i,u){if(typeof n!="function")throw new Zt(l);return Ci(function(){n.apply(r,u)},i)}function _i(n,i,u,m){var _=-1,T=Do,P=!0,$=n.length,j=[],V=i.length;if(!$)return j;u&&(i=Be(i,Ft(u))),m?(T=Ha,P=!1):i.length>=s&&(T=mi,P=!1,i=new mn(i));e:for(;++_<$;){var X=n[_],ee=u==null?X:u(X);if(X=m||X!==0?X:0,P&&ee===ee){for(var oe=V;oe--;)if(i[oe]===ee)continue e;j.push(X)}else T(i,ee,m)||j.push(X)}return j}var Yr=vd(pr),Hf=vd(su,!0);function Vw(n,i){var u=!0;return Yr(n,function(m,_,T){return u=!!i(m,_,T),u}),u}function ts(n,i,u){for(var m=-1,_=n.length;++m<_;){var T=n[m],P=i(T);if(P!=null&&($===r?P===P&&!Nt(P):u(P,$)))var $=P,j=T}return j}function Yw(n,i,u,m){var _=n.length;for(u=xe(u),u<0&&(u=-u>_?0:_+u),m=m===r||m>_?_:xe(m),m<0&&(m+=_),m=u>m?0:ap(m);u<m;)n[u++]=i;return n}function qf(n,i){var u=[];return Yr(n,function(m,_,T){i(m,_,T)&&u.push(m)}),u}function dt(n,i,u,m,_){var T=-1,P=n.length;for(u||(u=N1),_||(_=[]);++T<P;){var $=n[T];i>0&&u($)?i>1?dt($,i-1,u,m,_):Gr(_,$):m||(_[_.length]=$)}return _}var ou=md(),Zf=md(!0);function pr(n,i){return n&&ou(n,i,ut)}function su(n,i){return n&&Zf(n,i,ut)}function rs(n,i){return Zr(i,function(u){return Ir(n[u])})}function wn(n,i){i=Jr(i,n);for(var u=0,m=i.length;n!=null&&u<m;)n=n[gr(i[u++])];return u&&u==m?n:r}function Gf(n,i,u){var m=i(n);return be(n)?m:Gr(m,u(n))}function Et(n){return n==null?n===r?vi:ko:gn&&gn in Ne(n)?$1(n):q1(n)}function au(n,i){return n>i}function Xw(n,i){return n!=null&&Me.call(n,i)}function Jw(n,i){return n!=null&&i in Ne(n)}function Qw(n,i,u){return n>=yt(i,u)&&n<it(i,u)}function uu(n,i,u){for(var m=u?Ha:Do,_=n[0].length,T=n.length,P=T,$=H(T),j=1/0,V=[];P--;){var X=n[P];P&&i&&(X=Be(X,Ft(i))),j=yt(X.length,j),$[P]=!u&&(i||_>=120&&X.length>=120)?new mn(P&&X):r}X=n[0];var ee=-1,oe=$[0];e:for(;++ee<_&&V.length<j;){var le=X[ee],he=i?i(le):le;if(le=u||le!==0?le:0,!(oe?mi(oe,he):m(V,he,u))){for(P=T;--P;){var Se=$[P];if(!(Se?mi(Se,he):m(n[P],he,u)))continue e}oe&&oe.push(he),V.push(le)}}return V}function e1(n,i,u,m){return pr(n,function(_,T,P){i(m,u(_),T,P)}),m}function Ai(n,i,u){i=Jr(i,n),n=Ld(n,i);var m=n==null?n:n[gr(Yt(i))];return m==null?r:Mt(m,n,u)}function Kf(n){return Ke(n)&&Et(n)==ce}function t1(n){return Ke(n)&&Et(n)==qr}function r1(n){return Ke(n)&&Et(n)==Ee}function Oi(n,i,u,m,_){return n===i?!0:n==null||i==null||!Ke(n)&&!Ke(i)?n!==n&&i!==i:n1(n,i,u,m,Oi,_)}function n1(n,i,u,m,_,T){var P=be(n),$=be(i),j=P?fe:wt(n),V=$?fe:wt(i);j=j==ce?Ut:j,V=V==ce?Ut:V;var X=j==Ut,ee=V==Ut,oe=j==V;if(oe&&en(n)){if(!en(i))return!1;P=!0,X=!1}if(oe&&!X)return T||(T=new ir),P||Qn(n)?Td(n,i,u,m,_,T):C1(n,i,j,u,m,_,T);if(!(u&x)){var le=X&&Me.call(n,"__wrapped__"),he=ee&&Me.call(i,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?i.value():i;return T||(T=new ir),_(Se,ge,u,m,T)}}return oe?(T||(T=new ir),k1(n,i,u,m,_,T)):!1}function i1(n){return Ke(n)&&wt(n)==at}function lu(n,i,u,m){var _=u.length,T=_,P=!m;if(n==null)return!T;for(n=Ne(n);_--;){var $=u[_];if(P&&$[2]?$[1]!==n[$[0]]:!($[0]in n))return!1}for(;++_<T;){$=u[_];var j=$[0],V=n[j],X=$[1];if(P&&$[2]){if(V===r&&!(j in n))return!1}else{var ee=new ir;if(m)var oe=m(V,X,j,n,i,ee);if(!(oe===r?Oi(X,V,x|f,m,ee):oe))return!1}}return!0}function Vf(n){if(!Ze(n)||z1(n))return!1;var i=Ir(n)?iw:K0;return i.test(xn(n))}function o1(n){return Ke(n)&&Et(n)==Lt}function s1(n){return Ke(n)&&wt(n)==mt}function a1(n){return Ke(n)&&ws(n.length)&&!!We[Et(n)]}function Yf(n){return typeof n=="function"?n:n==null?kt:typeof n=="object"?be(n)?Qf(n[0],n[1]):Jf(n):yp(n)}function cu(n){if(!Pi(n))return cw(n);var i=[];for(var u in Ne(n))Me.call(n,u)&&u!="constructor"&&i.push(u);return i}function u1(n){if(!Ze(n))return H1(n);var i=Pi(n),u=[];for(var m in n)m=="constructor"&&(i||!Me.call(n,m))||u.push(m);return u}function fu(n,i){return n<i}function Xf(n,i){var u=-1,m=Pt(n)?H(n.length):[];return Yr(n,function(_,T,P){m[++u]=i(_,T,P)}),m}function Jf(n){var i=Ou(n);return i.length==1&&i[0][2]?$d(i[0][0],i[0][1]):function(u){return u===n||lu(u,n,i)}}function Qf(n,i){return Ru(n)&&kd(i)?$d(gr(n),i):function(u){var m=Nu(u,n);return m===r&&m===i?ju(u,n):Oi(i,m,x|f)}}function ns(n,i,u,m,_){n!==i&&ou(i,function(T,P){if(_||(_=new ir),Ze(T))l1(n,i,P,u,ns,m,_);else{var $=m?m(Cu(n,P),T,P+"",n,i,_):r;$===r&&($=T),nu(n,P,$)}},Ct)}function l1(n,i,u,m,_,T,P){var $=Cu(n,u),j=Cu(i,u),V=P.get(j);if(V){nu(n,u,V);return}var X=T?T($,j,u+"",n,i,P):r,ee=X===r;if(ee){var oe=be(j),le=!oe&&en(j),he=!oe&&!le&&Qn(j);X=j,oe||le||he?be($)?X=$:Ye($)?X=Rt($):le?(ee=!1,X=fd(j,!0)):he?(ee=!1,X=dd(j,!0)):X=[]:ki(j)||Sn(j)?(X=$,Sn($)?X=up($):(!Ze($)||Ir($))&&(X=Cd(j))):ee=!1}ee&&(P.set(j,X),_(X,j,m,T,P),P.delete(j)),nu(n,u,X)}function ed(n,i){var u=n.length;if(u)return i+=i<0?u:0,$r(i,u)?n[i]:r}function td(n,i,u){i.length?i=Be(i,function(T){return be(T)?function(P){return wn(P,T.length===1?T[0]:T)}:T}):i=[kt];var m=-1;i=Be(i,Ft(pe()));var _=Xf(n,function(T,P,$){var j=Be(i,function(V){return V(T)});return{criteria:j,index:++m,value:T}});return Fy(_,function(T,P){return S1(T,P,u)})}function c1(n,i){return rd(n,i,function(u,m){return ju(n,m)})}function rd(n,i,u){for(var m=-1,_=i.length,T={};++m<_;){var P=i[m],$=wn(n,P);u($,P)&&Ti(T,Jr(P,n),$)}return T}function f1(n){return function(i){return wn(i,n)}}function du(n,i,u,m){var _=m?My:Bn,T=-1,P=i.length,$=n;for(n===i&&(i=Rt(i)),u&&($=Be(n,Ft(u)));++T<P;)for(var j=0,V=i[T],X=u?u(V):V;(j=_($,X,j,m))>-1;)$!==n&&Go.call($,j,1),Go.call(n,j,1);return n}function nd(n,i){for(var u=n?i.length:0,m=u-1;u--;){var _=i[u];if(u==m||_!==T){var T=_;$r(_)?Go.call(n,_,1):vu(n,_)}}return n}function pu(n,i){return n+Yo(Df()*(i-n+1))}function d1(n,i,u,m){for(var _=-1,T=it(Vo((i-n)/(u||1)),0),P=H(T);T--;)P[m?T:++_]=n,n+=u;return P}function hu(n,i){var u="";if(!n||i<1||i>te)return u;do i%2&&(u+=n),i=Yo(i/2),i&&(n+=n);while(i);return u}function _e(n,i){return ku(Id(n,i,kt),n+"")}function p1(n){return zf(ei(n))}function h1(n,i){var u=ei(n);return ps(u,yn(i,0,u.length))}function Ti(n,i,u,m){if(!Ze(n))return n;i=Jr(i,n);for(var _=-1,T=i.length,P=T-1,$=n;$!=null&&++_<T;){var j=gr(i[_]),V=u;if(j==="__proto__"||j==="constructor"||j==="prototype")return n;if(_!=P){var X=$[j];V=m?m(X,j,$):r,V===r&&(V=Ze(X)?X:$r(i[_+1])?[]:{})}Ei($,j,V),$=$[j]}return n}var id=Xo?function(n,i){return Xo.set(n,i),n}:kt,g1=Ko?function(n,i){return Ko(n,"toString",{configurable:!0,enumerable:!1,value:Wu(i),writable:!0})}:kt;function v1(n){return ps(ei(n))}function Vt(n,i,u){var m=-1,_=n.length;i<0&&(i=-i>_?0:_+i),u=u>_?_:u,u<0&&(u+=_),_=i>u?0:u-i>>>0,i>>>=0;for(var T=H(_);++m<_;)T[m]=n[m+i];return T}function m1(n,i){var u;return Yr(n,function(m,_,T){return u=i(m,_,T),!u}),!!u}function is(n,i,u){var m=0,_=n==null?m:n.length;if(typeof i=="number"&&i===i&&_<=ue){for(;m<_;){var T=m+_>>>1,P=n[T];P!==null&&!Nt(P)&&(u?P<=i:P<i)?m=T+1:_=T}return _}return gu(n,i,kt,u)}function gu(n,i,u,m){var _=0,T=n==null?0:n.length;if(T===0)return 0;i=u(i);for(var P=i!==i,$=i===null,j=Nt(i),V=i===r;_<T;){var X=Yo((_+T)/2),ee=u(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=Nt(ee);if(P)var ge=m||he;else V?ge=he&&(m||oe):$?ge=he&&oe&&(m||!le):j?ge=he&&oe&&!le&&(m||!Se):le||Se?ge=!1:ge=m?ee<=i:ee<i;ge?_=X+1:T=X}return yt(T,se)}function od(n,i){for(var u=-1,m=n.length,_=0,T=[];++u<m;){var P=n[u],$=i?i(P):P;if(!u||!or($,j)){var j=$;T[_++]=P===0?0:P}}return T}function sd(n){return typeof n=="number"?n:Nt(n)?Z:+n}function Dt(n){if(typeof n=="string")return n;if(be(n))return Be(n,Dt)+"";if(Nt(n))return Nf?Nf.call(n):"";var i=n+"";return i=="0"&&1/n==-Y?"-0":i}function Xr(n,i,u){var m=-1,_=Do,T=n.length,P=!0,$=[],j=$;if(u)P=!1,_=Ha;else if(T>=s){var V=i?null:R1(n);if(V)return jo(V);P=!1,_=mi,j=new mn}else j=i?[]:$;e:for(;++m<T;){var X=n[m],ee=i?i(X):X;if(X=u||X!==0?X:0,P&&ee===ee){for(var oe=j.length;oe--;)if(j[oe]===ee)continue e;i&&j.push(ee),$.push(X)}else _(j,ee,u)||(j!==$&&j.push(ee),$.push(X))}return $}function vu(n,i){return i=Jr(i,n),n=Ld(n,i),n==null||delete n[gr(Yt(i))]}function ad(n,i,u,m){return Ti(n,i,u(wn(n,i)),m)}function os(n,i,u,m){for(var _=n.length,T=m?_:-1;(m?T--:++T<_)&&i(n[T],T,n););return u?Vt(n,m?0:T,m?T+1:_):Vt(n,m?T+1:0,m?_:T)}function ud(n,i){var u=n;return u instanceof Te&&(u=u.value()),qa(i,function(m,_){return _.func.apply(_.thisArg,Gr([m],_.args))},u)}function mu(n,i,u){var m=n.length;if(m<2)return m?Xr(n[0]):[];for(var _=-1,T=H(m);++_<m;)for(var P=n[_],$=-1;++$<m;)$!=_&&(T[_]=_i(T[_]||P,n[$],i,u));return Xr(dt(T,1),i,u)}function ld(n,i,u){for(var m=-1,_=n.length,T=i.length,P={};++m<_;){var $=m<T?i[m]:r;u(P,n[m],$)}return P}function yu(n){return Ye(n)?n:[]}function wu(n){return typeof n=="function"?n:kt}function Jr(n,i){return be(n)?n:Ru(n,i)?[n]:Nd(ke(n))}var y1=_e;function Qr(n,i,u){var m=n.length;return u=u===r?m:u,!i&&u>=m?n:Vt(n,i,u)}var cd=ow||function(n){return ft.clearTimeout(n)};function fd(n,i){if(i)return n.slice();var u=n.length,m=$f?$f(u):new n.constructor(u);return n.copy(m),m}function bu(n){var i=new n.constructor(n.byteLength);return new qo(i).set(new qo(n)),i}function w1(n,i){var u=i?bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function b1(n){var i=new n.constructor(n.source,Gc.exec(n));return i.lastIndex=n.lastIndex,i}function x1(n){return Si?Ne(Si.call(n)):{}}function dd(n,i){var u=i?bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function pd(n,i){if(n!==i){var u=n!==r,m=n===null,_=n===n,T=Nt(n),P=i!==r,$=i===null,j=i===i,V=Nt(i);if(!$&&!V&&!T&&n>i||T&&P&&j&&!$&&!V||m&&P&&j||!u&&j||!_)return 1;if(!m&&!T&&!V&&n<i||V&&u&&_&&!m&&!T||$&&u&&_||!P&&_||!j)return-1}return 0}function S1(n,i,u){for(var m=-1,_=n.criteria,T=i.criteria,P=_.length,$=u.length;++m<P;){var j=pd(_[m],T[m]);if(j){if(m>=$)return j;var V=u[m];return j*(V=="desc"?-1:1)}}return n.index-i.index}function hd(n,i,u,m){for(var _=-1,T=n.length,P=u.length,$=-1,j=i.length,V=it(T-P,0),X=H(j+V),ee=!m;++$<j;)X[$]=i[$];for(;++_<P;)(ee||_<T)&&(X[u[_]]=n[_]);for(;V--;)X[$++]=n[_++];return X}function gd(n,i,u,m){for(var _=-1,T=n.length,P=-1,$=u.length,j=-1,V=i.length,X=it(T-$,0),ee=H(X+V),oe=!m;++_<X;)ee[_]=n[_];for(var le=_;++j<V;)ee[le+j]=i[j];for(;++P<$;)(oe||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Rt(n,i){var u=-1,m=n.length;for(i||(i=H(m));++u<m;)i[u]=n[u];return i}function hr(n,i,u,m){var _=!u;u||(u={});for(var T=-1,P=i.length;++T<P;){var $=i[T],j=m?m(u[$],n[$],$,u,n):r;j===r&&(j=n[$]),_?Pr(u,$,j):Ei(u,$,j)}return u}function E1(n,i){return hr(n,Tu(n),i)}function _1(n,i){return hr(n,Rd(n),i)}function ss(n,i){return function(u,m){var _=be(u)?Py:Zw,T=i?i():{};return _(u,n,pe(m,2),T)}}function Yn(n){return _e(function(i,u){var m=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&_t(u[0],u[1],P)&&(T=_<3?r:T,_=1),i=Ne(i);++m<_;){var $=u[m];$&&n(i,$,m,T)}return i})}function vd(n,i){return function(u,m){if(u==null)return u;if(!Pt(u))return n(u,m);for(var _=u.length,T=i?_:-1,P=Ne(u);(i?T--:++T<_)&&m(P[T],T,P)!==!1;);return u}}function md(n){return function(i,u,m){for(var _=-1,T=Ne(i),P=m(i),$=P.length;$--;){var j=P[n?$:++_];if(u(T[j],j,T)===!1)break}return i}}function A1(n,i,u){var m=i&b,_=Ri(n);function T(){var P=this&&this!==ft&&this instanceof T?_:n;return P.apply(m?u:this,arguments)}return T}function yd(n){return function(i){i=ke(i);var u=Un(i)?nr(i):r,m=u?u[0]:i.charAt(0),_=u?Qr(u,1).join(""):i.slice(1);return m[n]()+_}}function Xn(n){return function(i){return qa(vp(gp(i).replace(gy,"")),n,"")}}function Ri(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var u=Vn(n.prototype),m=n.apply(u,i);return Ze(m)?m:u}}function O1(n,i,u){var m=Ri(n);function _(){for(var T=arguments.length,P=H(T),$=T,j=Jn(_);$--;)P[$]=arguments[$];var V=T<3&&P[0]!==j&&P[T-1]!==j?[]:Kr(P,j);if(T-=V.length,T<u)return Ed(n,i,as,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==ft&&this instanceof _?m:n;return Mt(X,this,P)}return _}function wd(n){return function(i,u,m){var _=Ne(i);if(!Pt(i)){var T=pe(u,3);i=ut(i),u=function($){return T(_[$],$,_)}}var P=n(i,u,m);return P>-1?_[T?i[P]:P]:r}}function bd(n){return kr(function(i){var u=i.length,m=u,_=Gt.prototype.thru;for(n&&i.reverse();m--;){var T=i[m];if(typeof T!="function")throw new Zt(l);if(_&&!P&&fs(T)=="wrapper")var P=new Gt([],!0)}for(m=P?m:u;++m<u;){T=i[m];var $=fs(T),j=$=="wrapper"?Au(T):r;j&&Pu(j[0])&&j[1]==(B|E|O|L)&&!j[4].length&&j[9]==1?P=P[fs(j[0])].apply(P,j[3]):P=T.length==1&&Pu(T)?P[$]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&be(X))return P.plant(X).value();for(var ee=0,oe=u?i[ee].apply(this,V):X;++ee<u;)oe=i[ee].call(this,oe);return oe}})}function as(n,i,u,m,_,T,P,$,j,V){var X=i&B,ee=i&b,oe=i&d,le=i&(E|R),he=i&M,Se=oe?r:Ri(n);function ge(){for(var Ae=arguments.length,Re=H(Ae),jt=Ae;jt--;)Re[jt]=arguments[jt];if(le)var At=Jn(ge),zt=Ny(Re,At);if(m&&(Re=hd(Re,m,_,le)),T&&(Re=gd(Re,T,P,le)),Ae-=zt,le&&Ae<V){var Xe=Kr(Re,At);return Ed(n,i,as,ge.placeholder,u,Re,Xe,$,j,V-Ae)}var sr=ee?u:this,Mr=oe?sr[n]:n;return Ae=Re.length,$?Re=Z1(Re,$):he&&Ae>1&&Re.reverse(),X&&j<Ae&&(Re.length=j),this&&this!==ft&&this instanceof ge&&(Mr=Se||Ri(Mr)),Mr.apply(sr,Re)}return ge}function xd(n,i){return function(u,m){return e1(u,n,i(m),{})}}function us(n,i){return function(u,m){var _;if(u===r&&m===r)return i;if(u!==r&&(_=u),m!==r){if(_===r)return m;typeof u=="string"||typeof m=="string"?(u=Dt(u),m=Dt(m)):(u=sd(u),m=sd(m)),_=n(u,m)}return _}}function xu(n){return kr(function(i){return i=Be(i,Ft(pe())),_e(function(u){var m=this;return n(i,function(_){return Mt(_,m,u)})})})}function ls(n,i){i=i===r?" ":Dt(i);var u=i.length;if(u<2)return u?hu(i,n):i;var m=hu(i,Vo(n/Hn(i)));return Un(i)?Qr(nr(m),0,n).join(""):m.slice(0,n)}function T1(n,i,u,m){var _=i&b,T=Ri(n);function P(){for(var $=-1,j=arguments.length,V=-1,X=m.length,ee=H(X+j),oe=this&&this!==ft&&this instanceof P?T:n;++V<X;)ee[V]=m[V];for(;j--;)ee[V++]=arguments[++$];return Mt(oe,_?u:this,ee)}return P}function Sd(n){return function(i,u,m){return m&&typeof m!="number"&&_t(i,u,m)&&(u=m=r),i=Lr(i),u===r?(u=i,i=0):u=Lr(u),m=m===r?i<u?1:-1:Lr(m),d1(i,u,m,n)}}function cs(n){return function(i,u){return typeof i=="string"&&typeof u=="string"||(i=Xt(i),u=Xt(u)),n(i,u)}}function Ed(n,i,u,m,_,T,P,$,j,V){var X=i&E,ee=X?P:r,oe=X?r:P,le=X?T:r,he=X?r:T;i|=X?O:k,i&=~(X?k:O),i&S||(i&=-4);var Se=[n,i,_,le,ee,he,oe,$,j,V],ge=u.apply(r,Se);return Pu(n)&&Md(ge,Se),ge.placeholder=m,Fd(ge,n,i)}function Su(n){var i=nt[n];return function(u,m){if(u=Xt(u),m=m==null?0:yt(xe(m),292),m&&Ff(u)){var _=(ke(u)+"e").split("e"),T=i(_[0]+"e"+(+_[1]+m));return _=(ke(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-m))}return i(u)}}var R1=Gn&&1/jo(new Gn([,-0]))[1]==Y?function(n){return new Gn(n)}:Hu;function _d(n){return function(i){var u=wt(i);return u==at?Ja(i):u==mt?qy(i):Dy(i,n(i))}}function Cr(n,i,u,m,_,T,P,$){var j=i&d;if(!j&&typeof n!="function")throw new Zt(l);var V=m?m.length:0;if(V||(i&=-97,m=_=r),P=P===r?P:it(xe(P),0),$=$===r?$:xe($),V-=_?_.length:0,i&k){var X=m,ee=_;m=_=r}var oe=j?r:Au(n),le=[n,i,u,m,_,X,ee,T,P,$];if(oe&&U1(le,oe),n=le[0],i=le[1],u=le[2],m=le[3],_=le[4],$=le[9]=le[9]===r?j?0:n.length:it(le[9]-V,0),!$&&i&(E|R)&&(i&=-25),!i||i==b)var he=A1(n,i,u);else i==E||i==R?he=O1(n,i,$):(i==O||i==(b|O))&&!_.length?he=T1(n,i,u,m):he=as.apply(r,le);var Se=oe?id:Md;return Fd(Se(he,le),n,i)}function Ad(n,i,u,m){return n===r||or(n,Zn[u])&&!Me.call(m,u)?i:n}function Od(n,i,u,m,_,T){return Ze(n)&&Ze(i)&&(T.set(i,n),ns(n,i,r,Od,T),T.delete(i)),n}function P1(n){return ki(n)?r:n}function Td(n,i,u,m,_,T){var P=u&x,$=n.length,j=i.length;if($!=j&&!(P&&j>$))return!1;var V=T.get(n),X=T.get(i);if(V&&X)return V==i&&X==n;var ee=-1,oe=!0,le=u&f?new mn:r;for(T.set(n,i),T.set(i,n);++ee<$;){var he=n[ee],Se=i[ee];if(m)var ge=P?m(Se,he,ee,i,n,T):m(he,Se,ee,n,i,T);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!Za(i,function(Ae,Re){if(!mi(le,Re)&&(he===Ae||_(he,Ae,u,m,T)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,u,m,T))){oe=!1;break}}return T.delete(n),T.delete(i),oe}function C1(n,i,u,m,_,T,P){switch(u){case Or:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case qr:return!(n.byteLength!=i.byteLength||!T(new qo(n),new qo(i)));case ve:case Ee:case dr:return or(+n,+i);case qe:return n.name==i.name&&n.message==i.message;case Lt:case Ur:return n==i+"";case at:var $=Ja;case mt:var j=m&x;if($||($=jo),n.size!=i.size&&!j)return!1;var V=P.get(n);if(V)return V==i;m|=f,P.set(n,i);var X=Td($(n),$(i),m,_,T,P);return P.delete(n),X;case pn:if(Si)return Si.call(n)==Si.call(i)}return!1}function k1(n,i,u,m,_,T){var P=u&x,$=Eu(n),j=$.length,V=Eu(i),X=V.length;if(j!=X&&!P)return!1;for(var ee=j;ee--;){var oe=$[ee];if(!(P?oe in i:Me.call(i,oe)))return!1}var le=T.get(n),he=T.get(i);if(le&&he)return le==i&&he==n;var Se=!0;T.set(n,i),T.set(i,n);for(var ge=P;++ee<j;){oe=$[ee];var Ae=n[oe],Re=i[oe];if(m)var jt=P?m(Re,Ae,oe,i,n,T):m(Ae,Re,oe,n,i,T);if(!(jt===r?Ae===Re||_(Ae,Re,u,m,T):jt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var At=n.constructor,zt=i.constructor;At!=zt&&"constructor"in n&&"constructor"in i&&!(typeof At=="function"&&At instanceof At&&typeof zt=="function"&&zt instanceof zt)&&(Se=!1)}return T.delete(n),T.delete(i),Se}function kr(n){return ku(Id(n,r,Bd),n+"")}function Eu(n){return Gf(n,ut,Tu)}function _u(n){return Gf(n,Ct,Rd)}var Au=Xo?function(n){return Xo.get(n)}:Hu;function fs(n){for(var i=n.name+"",u=Kn[i],m=Me.call(Kn,i)?u.length:0;m--;){var _=u[m],T=_.func;if(T==null||T==n)return _.name}return i}function Jn(n){var i=Me.call(A,"placeholder")?A:n;return i.placeholder}function pe(){var n=A.iteratee||Bu;return n=n===Bu?Yf:n,arguments.length?n(arguments[0],arguments[1]):n}function ds(n,i){var u=n.__data__;return j1(i)?u[typeof i=="string"?"string":"hash"]:u.map}function Ou(n){for(var i=ut(n),u=i.length;u--;){var m=i[u],_=n[m];i[u]=[m,_,kd(_)]}return i}function bn(n,i){var u=By(n,i);return Vf(u)?u:r}function $1(n){var i=Me.call(n,gn),u=n[gn];try{n[gn]=r;var m=!0}catch{}var _=Uo.call(n);return m&&(i?n[gn]=u:delete n[gn]),_}var Tu=eu?function(n){return n==null?[]:(n=Ne(n),Zr(eu(n),function(i){return Lf.call(n,i)}))}:qu,Rd=eu?function(n){for(var i=[];n;)Gr(i,Tu(n)),n=Zo(n);return i}:qu,wt=Et;(tu&&wt(new tu(new ArrayBuffer(1)))!=Or||wi&&wt(new wi)!=at||ru&&wt(ru.resolve())!=$o||Gn&&wt(new Gn)!=mt||bi&&wt(new bi)!=Hr)&&(wt=function(n){var i=Et(n),u=i==Ut?n.constructor:r,m=u?xn(u):"";if(m)switch(m){case hw:return Or;case gw:return at;case vw:return $o;case mw:return mt;case yw:return Hr}return i});function I1(n,i,u){for(var m=-1,_=u.length;++m<_;){var T=u[m],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":i-=P;break;case"take":i=yt(i,n+P);break;case"takeRight":n=it(n,i-P);break}}return{start:n,end:i}}function L1(n){var i=n.match(z0);return i?i[1].split(W0):[]}function Pd(n,i,u){i=Jr(i,n);for(var m=-1,_=i.length,T=!1;++m<_;){var P=gr(i[m]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++m!=_?T:(_=n==null?0:n.length,!!_&&ws(_)&&$r(P,_)&&(be(n)||Sn(n)))}function M1(n){var i=n.length,u=new n.constructor(i);return i&&typeof n[0]=="string"&&Me.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Cd(n){return typeof n.constructor=="function"&&!Pi(n)?Vn(Zo(n)):{}}function F1(n,i,u){var m=n.constructor;switch(i){case qr:return bu(n);case ve:case Ee:return new m(+n);case Or:return w1(n,u);case Oa:case Ta:case Ra:case Pa:case Ca:case ka:case $a:case Ia:case La:return dd(n,u);case at:return new m;case dr:case Ur:return new m(n);case Lt:return b1(n);case mt:return new m;case pn:return x1(n)}}function D1(n,i){var u=i.length;if(!u)return n;var m=u-1;return i[m]=(u>1?"& ":"")+i[m],i=i.join(u>2?", ":" "),n.replace(j0,`{
124
183
  /* [wrapped with `+i+`] */
125
- `)}function L1(t){return we(t)||pr(t)||!!(Qf&&t&&t[Qf])}function xn(t,i){var s=typeof t;return i=i??te,!!i&&(s=="number"||s!="symbol"&&Zg.test(t))&&t>-1&&t%1==0&&t<i}function yt(t,i,s){if(!Ue(s))return!1;var h=typeof i;return(h=="number"?Et(s)&&xn(i,s.length):h=="string"&&i in s)?Qt(s[i],t):!1}function ou(t,i){if(we(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Mt(t)?!0:Ig.test(t)||!Rg.test(t)||i!=null&&t in Le(i)}function D1(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function au(t){var i=Vo(t),s=O[i];if(typeof s!="function"||!(i in Ae.prototype))return!1;if(t===s)return!0;var h=nu(s);return!!h&&t===h[0]}function $1(t){return!!Vf&&Vf in t}var N1=Oo?On:_u;function yi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||Dr;return t===s}function Vc(t){return t===t&&!Ue(t)}function Yc(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==r||t in Le(s))}}function k1(t){var i=ta(t,function(h){return s.size===E&&s.clear(),h}),s=i.cache;return i}function j1(t,i){var s=t[1],h=i[1],x=s|h,T=x<(w|c|z),C=h==z&&s==_||h==z&&s==L&&t[7].length<=i[8]||h==(z|L)&&i[7].length<=i[8]&&s==_;if(!(T||C))return t;h&w&&(t[2]=i[2],x|=s&w?0:S);var M=i[3];if(M){var j=t[3];t[3]=j?Mc(j,M,i[4]):M,t[4]=j?Wn(t[3],g):i[4]}return M=i[5],M&&(j=t[5],t[5]=j?Fc(j,M,i[6]):M,t[6]=j?Wn(t[5],g):i[6]),M=i[7],M&&(t[7]=M),h&z&&(t[8]=t[8]==null?i[8]:pt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=x,t}function W1(t){var i=[];if(t!=null)for(var s in Le(t))i.push(s);return i}function U1(t){return To.call(t)}function Xc(t,i,s){return i=Je(i===r?t.length-1:i,0),function(){for(var h=arguments,x=-1,T=Je(h.length-i,0),C=H(T);++x<T;)C[x]=h[i+x];x=-1;for(var M=H(i+1);++x<i;)M[x]=h[x];return M[i]=s(C),Ct(t,this,M)}}function Jc(t,i){return i.length<2?t:fr(t,zt(i,0,-1))}function B1(t,i){for(var s=t.length,h=pt(i.length,s),x=St(t);h--;){var T=i[h];t[h]=xn(T,s)?x[T]:r}return t}function su(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var Qc=td(Ec),wi=r0||function(t,i){return at.setTimeout(t,i)},uu=td(c1);function ed(t,i,s){var h=i+"";return uu(t,F1(h,z1(R1(h),s)))}function td(t){var i=0,s=0;return function(){var h=s0(),x=U-(h-s);if(s=h,x>0){if(++i>=F)return arguments[0]}else i=0;return t.apply(r,arguments)}}function Xo(t,i){var s=-1,h=t.length,x=h-1;for(i=i===r?h:i;++s<i;){var T=Hs(s,x),C=t[T];t[T]=t[s],t[s]=C}return t.length=i,t}var nd=k1(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Mg,function(s,h,x,T){i.push(x?T.replace(Wg,"$1"):h||s)}),i});function un(t){if(typeof t=="string"||Mt(t))return t;var i=t+"";return i=="0"&&1/t==-Y?"-0":i}function dr(t){if(t!=null){try{return Ao.call(t)}catch{}try{return t+""}catch{}}return""}function z1(t,i){return jt(re,function(s){var h="_."+s[0];i&s[1]&&!So(t,h)&&t.push(h)}),t.sort()}function rd(t){if(t instanceof Ae)return t.clone();var i=new Ut(t.__wrapped__,t.__chain__);return i.__actions__=St(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function H1(t,i,s){(s?yt(t,i,s):i===r)?i=1:i=Je(be(i),0);var h=t==null?0:t.length;if(!h||i<1)return[];for(var x=0,T=0,C=H(Fo(h/i));x<h;)C[T++]=zt(t,x,x+=i);return C}function q1(t){for(var i=-1,s=t==null?0:t.length,h=0,x=[];++i<s;){var T=t[i];T&&(x[h++]=T)}return x}function Z1(){var t=arguments.length;if(!t)return[];for(var i=H(t-1),s=arguments[0],h=t;h--;)i[h-1]=arguments[h];return jn(we(s)?St(s):[s],st(i,1))}var G1=_e(function(t,i){return He(t)?pi(t,st(i,1,He,!0)):[]}),K1=_e(function(t,i){var s=Ht(i);return He(s)&&(s=r),He(t)?pi(t,st(i,1,He,!0),pe(s,2)):[]}),V1=_e(function(t,i){var s=Ht(i);return He(s)&&(s=r),He(t)?pi(t,st(i,1,He,!0),r,s):[]});function Y1(t,i,s){var h=t==null?0:t.length;return h?(i=s||i===r?1:be(i),zt(t,i<0?0:i,h)):[]}function X1(t,i,s){var h=t==null?0:t.length;return h?(i=s||i===r?1:be(i),i=h-i,zt(t,0,i<0?0:i)):[]}function J1(t,i){return t&&t.length?zo(t,pe(i,3),!0,!0):[]}function Q1(t,i){return t&&t.length?zo(t,pe(i,3),!0):[]}function ew(t,i,s,h){var x=t==null?0:t.length;return x?(s&&typeof s!="number"&&yt(t,i,s)&&(s=0,h=x),Z0(t,i,s,h)):[]}function id(t,i,s){var h=t==null?0:t.length;if(!h)return-1;var x=s==null?0:be(s);return x<0&&(x=Je(h+x,0)),Eo(t,pe(i,3),x)}function od(t,i,s){var h=t==null?0:t.length;if(!h)return-1;var x=h-1;return s!==r&&(x=be(s),x=s<0?Je(h+x,0):pt(x,h-1)),Eo(t,pe(i,3),x,!0)}function ad(t){var i=t==null?0:t.length;return i?st(t,1):[]}function tw(t){var i=t==null?0:t.length;return i?st(t,Y):[]}function nw(t,i){var s=t==null?0:t.length;return s?(i=i===r?1:be(i),st(t,i)):[]}function rw(t){for(var i=-1,s=t==null?0:t.length,h={};++i<s;){var x=t[i];h[x[0]]=x[1]}return h}function sd(t){return t&&t.length?t[0]:r}function iw(t,i,s){var h=t==null?0:t.length;if(!h)return-1;var x=s==null?0:be(s);return x<0&&(x=Je(h+x,0)),Ir(t,i,x)}function ow(t){var i=t==null?0:t.length;return i?zt(t,0,-1):[]}var aw=_e(function(t){var i=Ne(t,Vs);return i.length&&i[0]===t[0]?js(i):[]}),sw=_e(function(t){var i=Ht(t),s=Ne(t,Vs);return i===Ht(s)?i=r:s.pop(),s.length&&s[0]===t[0]?js(s,pe(i,2)):[]}),uw=_e(function(t){var i=Ht(t),s=Ne(t,Vs);return i=typeof i=="function"?i:r,i&&s.pop(),s.length&&s[0]===t[0]?js(s,r,i):[]});function lw(t,i){return t==null?"":o0.call(t,i)}function Ht(t){var i=t==null?0:t.length;return i?t[i-1]:r}function fw(t,i,s){var h=t==null?0:t.length;if(!h)return-1;var x=h;return s!==r&&(x=be(s),x=x<0?Je(h+x,0):pt(x,h-1)),i===i?zy(t,i,x):Eo(t,Uf,x,!0)}function cw(t,i){return t&&t.length?yc(t,be(i)):r}var dw=_e(ud);function ud(t,i){return t&&t.length&&i&&i.length?zs(t,i):t}function pw(t,i,s){return t&&t.length&&i&&i.length?zs(t,i,pe(s,2)):t}function hw(t,i,s){return t&&t.length&&i&&i.length?zs(t,i,r,s):t}var vw=_n(function(t,i){var s=t==null?0:t.length,h=Ds(t,i);return Sc(t,Ne(i,function(x){return xn(x,s)?+x:x}).sort(Ic)),h});function mw(t,i){var s=[];if(!(t&&t.length))return s;var h=-1,x=[],T=t.length;for(i=pe(i,3);++h<T;){var C=t[h];i(C,h,t)&&(s.push(C),x.push(h))}return Sc(t,x),s}function lu(t){return t==null?t:l0.call(t)}function gw(t,i,s){var h=t==null?0:t.length;return h?(s&&typeof s!="number"&&yt(t,i,s)?(i=0,s=h):(i=i==null?0:be(i),s=s===r?h:be(s)),zt(t,i,s)):[]}function yw(t,i){return Bo(t,i)}function ww(t,i,s){return Zs(t,i,pe(s,2))}function bw(t,i){var s=t==null?0:t.length;if(s){var h=Bo(t,i);if(h<s&&Qt(t[h],i))return h}return-1}function Sw(t,i){return Bo(t,i,!0)}function Ew(t,i,s){return Zs(t,i,pe(s,2),!0)}function _w(t,i){var s=t==null?0:t.length;if(s){var h=Bo(t,i,!0)-1;if(Qt(t[h],i))return h}return-1}function xw(t){return t&&t.length?_c(t):[]}function Ow(t,i){return t&&t.length?_c(t,pe(i,2)):[]}function Aw(t){var i=t==null?0:t.length;return i?zt(t,1,i):[]}function Tw(t,i,s){return t&&t.length?(i=s||i===r?1:be(i),zt(t,0,i<0?0:i)):[]}function Pw(t,i,s){var h=t==null?0:t.length;return h?(i=s||i===r?1:be(i),i=h-i,zt(t,i<0?0:i,h)):[]}function Cw(t,i){return t&&t.length?zo(t,pe(i,3),!1,!0):[]}function Rw(t,i){return t&&t.length?zo(t,pe(i,3)):[]}var Iw=_e(function(t){return zn(st(t,1,He,!0))}),Mw=_e(function(t){var i=Ht(t);return He(i)&&(i=r),zn(st(t,1,He,!0),pe(i,2))}),Fw=_e(function(t){var i=Ht(t);return i=typeof i=="function"?i:r,zn(st(t,1,He,!0),r,i)});function Lw(t){return t&&t.length?zn(t):[]}function Dw(t,i){return t&&t.length?zn(t,pe(i,2)):[]}function $w(t,i){return i=typeof i=="function"?i:r,t&&t.length?zn(t,r,i):[]}function fu(t){if(!(t&&t.length))return[];var i=0;return t=kn(t,function(s){if(He(s))return i=Je(s.length,i),!0}),Ts(i,function(s){return Ne(t,xs(s))})}function ld(t,i){if(!(t&&t.length))return[];var s=fu(t);return i==null?s:Ne(s,function(h){return Ct(i,r,h)})}var Nw=_e(function(t,i){return He(t)?pi(t,i):[]}),kw=_e(function(t){return Ks(kn(t,He))}),jw=_e(function(t){var i=Ht(t);return He(i)&&(i=r),Ks(kn(t,He),pe(i,2))}),Ww=_e(function(t){var i=Ht(t);return i=typeof i=="function"?i:r,Ks(kn(t,He),r,i)}),Uw=_e(fu);function Bw(t,i){return Tc(t||[],i||[],di)}function zw(t,i){return Tc(t||[],i||[],mi)}var Hw=_e(function(t){var i=t.length,s=i>1?t[i-1]:r;return s=typeof s=="function"?(t.pop(),s):r,ld(t,s)});function fd(t){var i=O(t);return i.__chain__=!0,i}function qw(t,i){return i(t),t}function Jo(t,i){return i(t)}var Zw=_n(function(t){var i=t.length,s=i?t[0]:0,h=this.__wrapped__,x=function(T){return Ds(T,t)};return i>1||this.__actions__.length||!(h instanceof Ae)||!xn(s)?this.thru(x):(h=h.slice(s,+s+(i?1:0)),h.__actions__.push({func:Jo,args:[x],thisArg:r}),new Ut(h,this.__chain__).thru(function(T){return i&&!T.length&&T.push(r),T}))});function Gw(){return fd(this)}function Kw(){return new Ut(this.value(),this.__chain__)}function Vw(){this.__values__===r&&(this.__values__=xd(this.value()));var t=this.__index__>=this.__values__.length,i=t?r:this.__values__[this.__index__++];return{done:t,value:i}}function Yw(){return this}function Xw(t){for(var i,s=this;s instanceof No;){var h=rd(s);h.__index__=0,h.__values__=r,i?x.__wrapped__=h:i=h;var x=h;s=s.__wrapped__}return x.__wrapped__=t,i}function Jw(){var t=this.__wrapped__;if(t instanceof Ae){var i=t;return this.__actions__.length&&(i=new Ae(this)),i=i.reverse(),i.__actions__.push({func:Jo,args:[lu],thisArg:r}),new Ut(i,this.__chain__)}return this.thru(lu)}function Qw(){return Ac(this.__wrapped__,this.__actions__)}var eb=Ho(function(t,i,s){Me.call(t,s)?++t[s]:Sn(t,s,1)});function tb(t,i,s){var h=we(t)?jf:q0;return s&&yt(t,i,s)&&(i=r),h(t,pe(i,3))}function nb(t,i){var s=we(t)?kn:lc;return s(t,pe(i,3))}var rb=Nc(id),ib=Nc(od);function ob(t,i){return st(Qo(t,i),1)}function ab(t,i){return st(Qo(t,i),Y)}function sb(t,i,s){return s=s===r?1:be(s),st(Qo(t,i),s)}function cd(t,i){var s=we(t)?jt:Bn;return s(t,pe(i,3))}function dd(t,i){var s=we(t)?Ay:uc;return s(t,pe(i,3))}var ub=Ho(function(t,i,s){Me.call(t,s)?t[s].push(i):Sn(t,s,[i])});function lb(t,i,s,h){t=Et(t)?t:zr(t),s=s&&!h?be(s):0;var x=t.length;return s<0&&(s=Je(x+s,0)),ia(t)?s<=x&&t.indexOf(i,s)>-1:!!x&&Ir(t,i,s)>-1}var fb=_e(function(t,i,s){var h=-1,x=typeof i=="function",T=Et(t)?H(t.length):[];return Bn(t,function(C){T[++h]=x?Ct(i,C,s):hi(C,i,s)}),T}),cb=Ho(function(t,i,s){Sn(t,s,i)});function Qo(t,i){var s=we(t)?Ne:vc;return s(t,pe(i,3))}function db(t,i,s,h){return t==null?[]:(we(i)||(i=i==null?[]:[i]),s=h?r:s,we(s)||(s=s==null?[]:[s]),wc(t,i,s))}var pb=Ho(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function hb(t,i,s){var h=we(t)?Es:zf,x=arguments.length<3;return h(t,pe(i,4),s,x,Bn)}function vb(t,i,s){var h=we(t)?Ty:zf,x=arguments.length<3;return h(t,pe(i,4),s,x,uc)}function mb(t,i){var s=we(t)?kn:lc;return s(t,na(pe(i,3)))}function gb(t){var i=we(t)?ic:l1;return i(t)}function yb(t,i,s){(s?yt(t,i,s):i===r)?i=1:i=be(i);var h=we(t)?W0:f1;return h(t,i)}function wb(t){var i=we(t)?U0:d1;return i(t)}function bb(t){if(t==null)return 0;if(Et(t))return ia(t)?Fr(t):t.length;var i=ht(t);return i==nt||i==dt?t.size:Us(t).length}function Sb(t,i,s){var h=we(t)?_s:p1;return s&&yt(t,i,s)&&(i=r),h(t,pe(i,3))}var Eb=_e(function(t,i){if(t==null)return[];var s=i.length;return s>1&&yt(t,i[0],i[1])?i=[]:s>2&&yt(i[0],i[1],i[2])&&(i=[i[0]]),wc(t,st(i,1),[])}),ea=n0||function(){return at.Date.now()};function _b(t,i){if(typeof i!="function")throw new Wt(l);return t=be(t),function(){if(--t<1)return i.apply(this,arguments)}}function pd(t,i,s){return i=s?r:i,i=t&&i==null?t.length:i,En(t,z,r,r,r,r,i)}function hd(t,i){var s;if(typeof i!="function")throw new Wt(l);return t=be(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=r),s}}var cu=_e(function(t,i,s){var h=w;if(s.length){var x=Wn(s,Ur(cu));h|=A}return En(t,h,i,s,x)}),vd=_e(function(t,i,s){var h=w|c;if(s.length){var x=Wn(s,Ur(vd));h|=A}return En(i,h,t,s,x)});function md(t,i,s){i=s?r:i;var h=En(t,_,r,r,r,r,r,i);return h.placeholder=md.placeholder,h}function gd(t,i,s){i=s?r:i;var h=En(t,P,r,r,r,r,r,i);return h.placeholder=gd.placeholder,h}function yd(t,i,s){var h,x,T,C,M,j,V=0,X=!1,ee=!1,oe=!0;if(typeof t!="function")throw new Wt(l);i=qt(i)||0,Ue(s)&&(X=!!s.leading,ee="maxWait"in s,T=ee?Je(qt(s.maxWait)||0,i):T,oe="trailing"in s?!!s.trailing:oe);function le(qe){var en=h,Tn=x;return h=x=r,V=qe,C=t.apply(Tn,en),C}function he(qe){return V=qe,M=wi(xe,i),X?le(qe):C}function Se(qe){var en=qe-j,Tn=qe-V,Nd=i-en;return ee?pt(Nd,T-Tn):Nd}function ve(qe){var en=qe-j,Tn=qe-V;return j===r||en>=i||en<0||ee&&Tn>=T}function xe(){var qe=ea();if(ve(qe))return Te(qe);M=wi(xe,Se(qe))}function Te(qe){return M=r,oe&&h?le(qe):(h=x=r,C)}function Ft(){M!==r&&Pc(M),V=0,h=j=x=M=r}function wt(){return M===r?C:Te(ea())}function Lt(){var qe=ea(),en=ve(qe);if(h=arguments,x=this,j=qe,en){if(M===r)return he(j);if(ee)return Pc(M),M=wi(xe,i),le(j)}return M===r&&(M=wi(xe,i)),C}return Lt.cancel=Ft,Lt.flush=wt,Lt}var xb=_e(function(t,i){return sc(t,1,i)}),Ob=_e(function(t,i,s){return sc(t,qt(i)||0,s)});function Ab(t){return En(t,D)}function ta(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new Wt(l);var s=function(){var h=arguments,x=i?i.apply(this,h):h[0],T=s.cache;if(T.has(x))return T.get(x);var C=t.apply(this,h);return s.cache=T.set(x,C)||T,C};return s.cache=new(ta.Cache||bn),s}ta.Cache=bn;function na(t){if(typeof t!="function")throw new Wt(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Tb(t){return hd(2,t)}var Pb=h1(function(t,i){i=i.length==1&&we(i[0])?Ne(i[0],Rt(pe())):Ne(st(i,1),Rt(pe()));var s=i.length;return _e(function(h){for(var x=-1,T=pt(h.length,s);++x<T;)h[x]=i[x].call(this,h[x]);return Ct(t,this,h)})}),du=_e(function(t,i){var s=Wn(i,Ur(du));return En(t,A,r,i,s)}),wd=_e(function(t,i){var s=Wn(i,Ur(wd));return En(t,I,r,i,s)}),Cb=_n(function(t,i){return En(t,L,r,r,r,i)});function Rb(t,i){if(typeof t!="function")throw new Wt(l);return i=i===r?i:be(i),_e(t,i)}function Ib(t,i){if(typeof t!="function")throw new Wt(l);return i=i==null?0:Je(be(i),0),_e(function(s){var h=s[i],x=qn(s,0,i);return h&&jn(x,h),Ct(t,this,x)})}function Mb(t,i,s){var h=!0,x=!0;if(typeof t!="function")throw new Wt(l);return Ue(s)&&(h="leading"in s?!!s.leading:h,x="trailing"in s?!!s.trailing:x),yd(t,i,{leading:h,maxWait:i,trailing:x})}function Fb(t){return pd(t,1)}function Lb(t,i){return du(Ys(i),t)}function Db(){if(!arguments.length)return[];var t=arguments[0];return we(t)?t:[t]}function $b(t){return Bt(t,y)}function Nb(t,i){return i=typeof i=="function"?i:r,Bt(t,y,i)}function kb(t){return Bt(t,p|y)}function jb(t,i){return i=typeof i=="function"?i:r,Bt(t,p|y,i)}function Wb(t,i){return i==null||ac(t,i,rt(i))}function Qt(t,i){return t===i||t!==t&&i!==i}var Ub=Ko(ks),Bb=Ko(function(t,i){return t>=i}),pr=dc((function(){return arguments})())?dc:function(t){return ze(t)&&Me.call(t,"callee")&&!Jf.call(t,"callee")},we=H.isArray,zb=Ff?Rt(Ff):X0;function Et(t){return t!=null&&ra(t.length)&&!On(t)}function He(t){return ze(t)&&Et(t)}function Hb(t){return t===!0||t===!1||ze(t)&&gt(t)==me}var Zn=i0||_u,qb=Lf?Rt(Lf):J0;function Zb(t){return ze(t)&&t.nodeType===1&&!bi(t)}function Gb(t){if(t==null)return!0;if(Et(t)&&(we(t)||typeof t=="string"||typeof t.splice=="function"||Zn(t)||Br(t)||pr(t)))return!t.length;var i=ht(t);if(i==nt||i==dt)return!t.size;if(yi(t))return!Us(t).length;for(var s in t)if(Me.call(t,s))return!1;return!0}function Kb(t,i){return vi(t,i)}function Vb(t,i,s){s=typeof s=="function"?s:r;var h=s?s(t,i):r;return h===r?vi(t,i,r,s):!!h}function pu(t){if(!ze(t))return!1;var i=gt(t);return i==We||i==Oe||typeof t.message=="string"&&typeof t.name=="string"&&!bi(t)}function Yb(t){return typeof t=="number"&&ec(t)}function On(t){if(!Ue(t))return!1;var i=gt(t);return i==ie||i==ct||i==ge||i==ns}function bd(t){return typeof t=="number"&&t==be(t)}function ra(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=te}function Ue(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function ze(t){return t!=null&&typeof t=="object"}var Sd=Df?Rt(Df):e1;function Xb(t,i){return t===i||Ws(t,i,ru(i))}function Jb(t,i,s){return s=typeof s=="function"?s:r,Ws(t,i,ru(i),s)}function Qb(t){return Ed(t)&&t!=+t}function eS(t){if(N1(t))throw new ye(u);return pc(t)}function tS(t){return t===null}function nS(t){return t==null}function Ed(t){return typeof t=="number"||ze(t)&&gt(t)==on}function bi(t){if(!ze(t)||gt(t)!=Nt)return!1;var i=Ro(t);if(i===null)return!0;var s=Me.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&Ao.call(s)==Jy}var hu=$f?Rt($f):t1;function rS(t){return bd(t)&&t>=-te&&t<=te}var _d=Nf?Rt(Nf):n1;function ia(t){return typeof t=="string"||!we(t)&&ze(t)&&gt(t)==Dn}function Mt(t){return typeof t=="symbol"||ze(t)&&gt(t)==ir}var Br=kf?Rt(kf):r1;function iS(t){return t===r}function oS(t){return ze(t)&&ht(t)==$n}function aS(t){return ze(t)&&gt(t)==go}var sS=Ko(Bs),uS=Ko(function(t,i){return t<=i});function xd(t){if(!t)return[];if(Et(t))return ia(t)?Xt(t):St(t);if(si&&t[si])return Wy(t[si]());var i=ht(t),s=i==nt?Cs:i==dt?_o:zr;return s(t)}function An(t){if(!t)return t===0?t:0;if(t=qt(t),t===Y||t===-Y){var i=t<0?-1:1;return i*de}return t===t?t:0}function be(t){var i=An(t),s=i%1;return i===i?s?i-s:i:0}function Od(t){return t?lr(be(t),0,Q):0}function qt(t){if(typeof t=="number")return t;if(Mt(t))return Z;if(Ue(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=Ue(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Hf(t);var s=zg.test(t);return s||qg.test(t)?_y(t.slice(2),s?2:8):Bg.test(t)?Z:+t}function Ad(t){return sn(t,_t(t))}function lS(t){return t?lr(be(t),-te,te):t===0?t:0}function Ce(t){return t==null?"":It(t)}var fS=jr(function(t,i){if(yi(i)||Et(i)){sn(i,rt(i),t);return}for(var s in i)Me.call(i,s)&&di(t,s,i[s])}),Td=jr(function(t,i){sn(i,_t(i),t)}),oa=jr(function(t,i,s,h){sn(i,_t(i),t,h)}),cS=jr(function(t,i,s,h){sn(i,rt(i),t,h)}),dS=_n(Ds);function pS(t,i){var s=kr(t);return i==null?s:oc(s,i)}var hS=_e(function(t,i){t=Le(t);var s=-1,h=i.length,x=h>2?i[2]:r;for(x&&yt(i[0],i[1],x)&&(h=1);++s<h;)for(var T=i[s],C=_t(T),M=-1,j=C.length;++M<j;){var V=C[M],X=t[V];(X===r||Qt(X,Dr[V])&&!Me.call(t,V))&&(t[V]=T[V])}return t}),vS=_e(function(t){return t.push(r,Hc),Ct(Pd,r,t)});function mS(t,i){return Wf(t,pe(i,3),an)}function gS(t,i){return Wf(t,pe(i,3),Ns)}function yS(t,i){return t==null?t:$s(t,pe(i,3),_t)}function wS(t,i){return t==null?t:fc(t,pe(i,3),_t)}function bS(t,i){return t&&an(t,pe(i,3))}function SS(t,i){return t&&Ns(t,pe(i,3))}function ES(t){return t==null?[]:Wo(t,rt(t))}function _S(t){return t==null?[]:Wo(t,_t(t))}function vu(t,i,s){var h=t==null?r:fr(t,i);return h===r?s:h}function xS(t,i){return t!=null&&Gc(t,i,G0)}function mu(t,i){return t!=null&&Gc(t,i,K0)}var OS=jc(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=To.call(i)),t[i]=s},yu(xt)),AS=jc(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=To.call(i)),Me.call(t,i)?t[i].push(s):t[i]=[s]},pe),TS=_e(hi);function rt(t){return Et(t)?rc(t):Us(t)}function _t(t){return Et(t)?rc(t,!0):i1(t)}function PS(t,i){var s={};return i=pe(i,3),an(t,function(h,x,T){Sn(s,i(h,x,T),h)}),s}function CS(t,i){var s={};return i=pe(i,3),an(t,function(h,x,T){Sn(s,x,i(h,x,T))}),s}var RS=jr(function(t,i,s){Uo(t,i,s)}),Pd=jr(function(t,i,s,h){Uo(t,i,s,h)}),IS=_n(function(t,i){var s={};if(t==null)return s;var h=!1;i=Ne(i,function(T){return T=Hn(T,t),h||(h=T.length>1),T}),sn(t,tu(t),s),h&&(s=Bt(s,p|v|y,O1));for(var x=i.length;x--;)Gs(s,i[x]);return s});function MS(t,i){return Cd(t,na(pe(i)))}var FS=_n(function(t,i){return t==null?{}:a1(t,i)});function Cd(t,i){if(t==null)return{};var s=Ne(tu(t),function(h){return[h]});return i=pe(i),bc(t,s,function(h,x){return i(h,x[0])})}function LS(t,i,s){i=Hn(i,t);var h=-1,x=i.length;for(x||(x=1,t=r);++h<x;){var T=t==null?r:t[un(i[h])];T===r&&(h=x,T=s),t=On(T)?T.call(t):T}return t}function DS(t,i,s){return t==null?t:mi(t,i,s)}function $S(t,i,s,h){return h=typeof h=="function"?h:r,t==null?t:mi(t,i,s,h)}var Rd=Bc(rt),Id=Bc(_t);function NS(t,i,s){var h=we(t),x=h||Zn(t)||Br(t);if(i=pe(i,4),s==null){var T=t&&t.constructor;x?s=h?new T:[]:Ue(t)?s=On(T)?kr(Ro(t)):{}:s={}}return(x?jt:an)(t,function(C,M,j){return i(s,C,M,j)}),s}function kS(t,i){return t==null?!0:Gs(t,i)}function jS(t,i,s){return t==null?t:Oc(t,i,Ys(s))}function WS(t,i,s,h){return h=typeof h=="function"?h:r,t==null?t:Oc(t,i,Ys(s),h)}function zr(t){return t==null?[]:Ps(t,rt(t))}function US(t){return t==null?[]:Ps(t,_t(t))}function BS(t,i,s){return s===r&&(s=i,i=r),s!==r&&(s=qt(s),s=s===s?s:0),i!==r&&(i=qt(i),i=i===i?i:0),lr(qt(t),i,s)}function zS(t,i,s){return i=An(i),s===r?(s=i,i=0):s=An(s),t=qt(t),V0(t,i,s)}function HS(t,i,s){if(s&&typeof s!="boolean"&&yt(t,i,s)&&(i=s=r),s===r&&(typeof i=="boolean"?(s=i,i=r):typeof t=="boolean"&&(s=t,t=r)),t===r&&i===r?(t=0,i=1):(t=An(t),i===r?(i=t,t=0):i=An(i)),t>i){var h=t;t=i,i=h}if(s||t%1||i%1){var x=tc();return pt(t+x*(i-t+Ey("1e-"+((x+"").length-1))),i)}return Hs(t,i)}var qS=Wr(function(t,i,s){return i=i.toLowerCase(),t+(s?Md(i):i)});function Md(t){return gu(Ce(t).toLowerCase())}function Fd(t){return t=Ce(t),t&&t.replace(Gg,Dy).replace(dy,"")}function ZS(t,i,s){t=Ce(t),i=It(i);var h=t.length;s=s===r?h:lr(be(s),0,h);var x=s;return s-=i.length,s>=0&&t.slice(s,x)==i}function GS(t){return t=Ce(t),t&&Tg.test(t)?t.replace(ff,$y):t}function KS(t){return t=Ce(t),t&&Fg.test(t)?t.replace(ds,"\\$&"):t}var VS=Wr(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),YS=Wr(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),XS=$c("toLowerCase");function JS(t,i,s){t=Ce(t),i=be(i);var h=i?Fr(t):0;if(!i||h>=i)return t;var x=(i-h)/2;return Go(Lo(x),s)+t+Go(Fo(x),s)}function QS(t,i,s){t=Ce(t),i=be(i);var h=i?Fr(t):0;return i&&h<i?t+Go(i-h,s):t}function eE(t,i,s){t=Ce(t),i=be(i);var h=i?Fr(t):0;return i&&h<i?Go(i-h,s)+t:t}function tE(t,i,s){return s||i==null?i=0:i&&(i=+i),u0(Ce(t).replace(ps,""),i||0)}function nE(t,i,s){return(s?yt(t,i,s):i===r)?i=1:i=be(i),qs(Ce(t),i)}function rE(){var t=arguments,i=Ce(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var iE=Wr(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function oE(t,i,s){return s&&typeof s!="number"&&yt(t,i,s)&&(i=s=r),s=s===r?Q:s>>>0,s?(t=Ce(t),t&&(typeof i=="string"||i!=null&&!hu(i))&&(i=It(i),!i&&Mr(t))?qn(Xt(t),0,s):t.split(i,s)):[]}var aE=Wr(function(t,i,s){return t+(s?" ":"")+gu(i)});function sE(t,i,s){return t=Ce(t),s=s==null?0:lr(be(s),0,t.length),i=It(i),t.slice(s,s+i.length)==i}function uE(t,i,s){var h=O.templateSettings;s&&yt(t,i,s)&&(i=r),t=Ce(t),i=oa({},i,h,zc);var x=oa({},i.imports,h.imports,zc),T=rt(x),C=Ps(x,T),M,j,V=0,X=i.interpolate||yo,ee="__p += '",oe=Rs((i.escape||yo).source+"|"+X.source+"|"+(X===cf?Ug:yo).source+"|"+(i.evaluate||yo).source+"|$","g"),le="//# sourceURL="+(Me.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gy+"]")+`
126
- `;t.replace(oe,function(ve,xe,Te,Ft,wt,Lt){return Te||(Te=Ft),ee+=t.slice(V,Lt).replace(Kg,Ny),xe&&(M=!0,ee+=`' +
127
- __e(`+xe+`) +
128
- '`),wt&&(j=!0,ee+=`';
129
- `+wt+`;
130
- __p += '`),Te&&(ee+=`' +
131
- ((__t = (`+Te+`)) == null ? '' : __t) +
132
- '`),V=Lt+ve.length,ve}),ee+=`';
184
+ `)}function N1(n){return be(n)||Sn(n)||!!(Mf&&n&&n[Mf])}function $r(n,i){var u=typeof n;return i=i??te,!!i&&(u=="number"||u!="symbol"&&Y0.test(n))&&n>-1&&n%1==0&&n<i}function _t(n,i,u){if(!Ze(u))return!1;var m=typeof i;return(m=="number"?Pt(u)&&$r(i,u.length):m=="string"&&i in u)?or(u[i],n):!1}function Ru(n,i){if(be(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Nt(n)?!0:M0.test(n)||!L0.test(n)||i!=null&&n in Ne(i)}function j1(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function Pu(n){var i=fs(n),u=A[i];if(typeof u!="function"||!(i in Te.prototype))return!1;if(n===u)return!0;var m=Au(u);return!!m&&n===m[0]}function z1(n){return!!kf&&kf in n}var W1=Wo?Ir:Zu;function Pi(n){var i=n&&n.constructor,u=typeof i=="function"&&i.prototype||Zn;return n===u}function kd(n){return n===n&&!Ze(n)}function $d(n,i){return function(u){return u==null?!1:u[n]===i&&(i!==r||n in Ne(u))}}function B1(n){var i=ms(n,function(m){return u.size===y&&u.clear(),m}),u=i.cache;return i}function U1(n,i){var u=n[1],m=i[1],_=u|m,T=_<(b|d|B),P=m==B&&u==E||m==B&&u==L&&n[7].length<=i[8]||m==(B|L)&&i[7].length<=i[8]&&u==E;if(!(T||P))return n;m&b&&(n[2]=i[2],_|=u&b?0:S);var $=i[3];if($){var j=n[3];n[3]=j?hd(j,$,i[4]):$,n[4]=j?Kr(n[3],v):i[4]}return $=i[5],$&&(j=n[5],n[5]=j?gd(j,$,i[6]):$,n[6]=j?Kr(n[5],v):i[6]),$=i[7],$&&(n[7]=$),m&B&&(n[8]=n[8]==null?i[8]:yt(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=_,n}function H1(n){var i=[];if(n!=null)for(var u in Ne(n))i.push(u);return i}function q1(n){return Uo.call(n)}function Id(n,i,u){return i=it(i===r?n.length-1:i,0),function(){for(var m=arguments,_=-1,T=it(m.length-i,0),P=H(T);++_<T;)P[_]=m[i+_];_=-1;for(var $=H(i+1);++_<i;)$[_]=m[_];return $[i]=u(P),Mt(n,this,$)}}function Ld(n,i){return i.length<2?n:wn(n,Vt(i,0,-1))}function Z1(n,i){for(var u=n.length,m=yt(i.length,u),_=Rt(n);m--;){var T=i[m];n[m]=$r(T,u)?_[T]:r}return n}function Cu(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var Md=Dd(id),Ci=aw||function(n,i){return ft.setTimeout(n,i)},ku=Dd(g1);function Fd(n,i,u){var m=i+"";return ku(n,D1(m,G1(L1(m),u)))}function Dd(n){var i=0,u=0;return function(){var m=fw(),_=U-(m-u);if(u=m,_>0){if(++i>=I)return arguments[0]}else i=0;return n.apply(r,arguments)}}function ps(n,i){var u=-1,m=n.length,_=m-1;for(i=i===r?m:i;++u<i;){var T=pu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=i,n}var Nd=B1(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(F0,function(u,m,_,T){i.push(_?T.replace(H0,"$1"):m||u)}),i});function gr(n){if(typeof n=="string"||Nt(n))return n;var i=n+"";return i=="0"&&1/n==-Y?"-0":i}function xn(n){if(n!=null){try{return Bo.call(n)}catch{}try{return n+""}catch{}}return""}function G1(n,i){return qt(ne,function(u){var m="_."+u[0];i&u[1]&&!Do(n,m)&&n.push(m)}),n.sort()}function jd(n){if(n instanceof Te)return n.clone();var i=new Gt(n.__wrapped__,n.__chain__);return i.__actions__=Rt(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function K1(n,i,u){(u?_t(n,i,u):i===r)?i=1:i=it(xe(i),0);var m=n==null?0:n.length;if(!m||i<1)return[];for(var _=0,T=0,P=H(Vo(m/i));_<m;)P[T++]=Vt(n,_,_+=i);return P}function V1(n){for(var i=-1,u=n==null?0:n.length,m=0,_=[];++i<u;){var T=n[i];T&&(_[m++]=T)}return _}function Y1(){var n=arguments.length;if(!n)return[];for(var i=H(n-1),u=arguments[0],m=n;m--;)i[m-1]=arguments[m];return Gr(be(u)?Rt(u):[u],dt(i,1))}var X1=_e(function(n,i){return Ye(n)?_i(n,dt(i,1,Ye,!0)):[]}),J1=_e(function(n,i){var u=Yt(i);return Ye(u)&&(u=r),Ye(n)?_i(n,dt(i,1,Ye,!0),pe(u,2)):[]}),Q1=_e(function(n,i){var u=Yt(i);return Ye(u)&&(u=r),Ye(n)?_i(n,dt(i,1,Ye,!0),r,u):[]});function eb(n,i,u){var m=n==null?0:n.length;return m?(i=u||i===r?1:xe(i),Vt(n,i<0?0:i,m)):[]}function tb(n,i,u){var m=n==null?0:n.length;return m?(i=u||i===r?1:xe(i),i=m-i,Vt(n,0,i<0?0:i)):[]}function rb(n,i){return n&&n.length?os(n,pe(i,3),!0,!0):[]}function nb(n,i){return n&&n.length?os(n,pe(i,3),!0):[]}function ib(n,i,u,m){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&_t(n,i,u)&&(u=0,m=_),Yw(n,i,u,m)):[]}function zd(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=u==null?0:xe(u);return _<0&&(_=it(m+_,0)),No(n,pe(i,3),_)}function Wd(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=m-1;return u!==r&&(_=xe(u),_=u<0?it(m+_,0):yt(_,m-1)),No(n,pe(i,3),_,!0)}function Bd(n){var i=n==null?0:n.length;return i?dt(n,1):[]}function ob(n){var i=n==null?0:n.length;return i?dt(n,Y):[]}function sb(n,i){var u=n==null?0:n.length;return u?(i=i===r?1:xe(i),dt(n,i)):[]}function ab(n){for(var i=-1,u=n==null?0:n.length,m={};++i<u;){var _=n[i];m[_[0]]=_[1]}return m}function Ud(n){return n&&n.length?n[0]:r}function ub(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=u==null?0:xe(u);return _<0&&(_=it(m+_,0)),Bn(n,i,_)}function lb(n){var i=n==null?0:n.length;return i?Vt(n,0,-1):[]}var cb=_e(function(n){var i=Be(n,yu);return i.length&&i[0]===n[0]?uu(i):[]}),fb=_e(function(n){var i=Yt(n),u=Be(n,yu);return i===Yt(u)?i=r:u.pop(),u.length&&u[0]===n[0]?uu(u,pe(i,2)):[]}),db=_e(function(n){var i=Yt(n),u=Be(n,yu);return i=typeof i=="function"?i:r,i&&u.pop(),u.length&&u[0]===n[0]?uu(u,r,i):[]});function pb(n,i){return n==null?"":lw.call(n,i)}function Yt(n){var i=n==null?0:n.length;return i?n[i-1]:r}function hb(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=m;return u!==r&&(_=xe(u),_=_<0?it(m+_,0):yt(_,m-1)),i===i?Gy(n,i,_):No(n,Ef,_,!0)}function gb(n,i){return n&&n.length?ed(n,xe(i)):r}var vb=_e(Hd);function Hd(n,i){return n&&n.length&&i&&i.length?du(n,i):n}function mb(n,i,u){return n&&n.length&&i&&i.length?du(n,i,pe(u,2)):n}function yb(n,i,u){return n&&n.length&&i&&i.length?du(n,i,r,u):n}var wb=kr(function(n,i){var u=n==null?0:n.length,m=iu(n,i);return nd(n,Be(i,function(_){return $r(_,u)?+_:_}).sort(pd)),m});function bb(n,i){var u=[];if(!(n&&n.length))return u;var m=-1,_=[],T=n.length;for(i=pe(i,3);++m<T;){var P=n[m];i(P,m,n)&&(u.push(P),_.push(m))}return nd(n,_),u}function $u(n){return n==null?n:pw.call(n)}function xb(n,i,u){var m=n==null?0:n.length;return m?(u&&typeof u!="number"&&_t(n,i,u)?(i=0,u=m):(i=i==null?0:xe(i),u=u===r?m:xe(u)),Vt(n,i,u)):[]}function Sb(n,i){return is(n,i)}function Eb(n,i,u){return gu(n,i,pe(u,2))}function _b(n,i){var u=n==null?0:n.length;if(u){var m=is(n,i);if(m<u&&or(n[m],i))return m}return-1}function Ab(n,i){return is(n,i,!0)}function Ob(n,i,u){return gu(n,i,pe(u,2),!0)}function Tb(n,i){var u=n==null?0:n.length;if(u){var m=is(n,i,!0)-1;if(or(n[m],i))return m}return-1}function Rb(n){return n&&n.length?od(n):[]}function Pb(n,i){return n&&n.length?od(n,pe(i,2)):[]}function Cb(n){var i=n==null?0:n.length;return i?Vt(n,1,i):[]}function kb(n,i,u){return n&&n.length?(i=u||i===r?1:xe(i),Vt(n,0,i<0?0:i)):[]}function $b(n,i,u){var m=n==null?0:n.length;return m?(i=u||i===r?1:xe(i),i=m-i,Vt(n,i<0?0:i,m)):[]}function Ib(n,i){return n&&n.length?os(n,pe(i,3),!1,!0):[]}function Lb(n,i){return n&&n.length?os(n,pe(i,3)):[]}var Mb=_e(function(n){return Xr(dt(n,1,Ye,!0))}),Fb=_e(function(n){var i=Yt(n);return Ye(i)&&(i=r),Xr(dt(n,1,Ye,!0),pe(i,2))}),Db=_e(function(n){var i=Yt(n);return i=typeof i=="function"?i:r,Xr(dt(n,1,Ye,!0),r,i)});function Nb(n){return n&&n.length?Xr(n):[]}function jb(n,i){return n&&n.length?Xr(n,pe(i,2)):[]}function zb(n,i){return i=typeof i=="function"?i:r,n&&n.length?Xr(n,r,i):[]}function Iu(n){if(!(n&&n.length))return[];var i=0;return n=Zr(n,function(u){if(Ye(u))return i=it(u.length,i),!0}),Ya(i,function(u){return Be(n,Ga(u))})}function qd(n,i){if(!(n&&n.length))return[];var u=Iu(n);return i==null?u:Be(u,function(m){return Mt(i,r,m)})}var Wb=_e(function(n,i){return Ye(n)?_i(n,i):[]}),Bb=_e(function(n){return mu(Zr(n,Ye))}),Ub=_e(function(n){var i=Yt(n);return Ye(i)&&(i=r),mu(Zr(n,Ye),pe(i,2))}),Hb=_e(function(n){var i=Yt(n);return i=typeof i=="function"?i:r,mu(Zr(n,Ye),r,i)}),qb=_e(Iu);function Zb(n,i){return ld(n||[],i||[],Ei)}function Gb(n,i){return ld(n||[],i||[],Ti)}var Kb=_e(function(n){var i=n.length,u=i>1?n[i-1]:r;return u=typeof u=="function"?(n.pop(),u):r,qd(n,u)});function Zd(n){var i=A(n);return i.__chain__=!0,i}function Vb(n,i){return i(n),n}function hs(n,i){return i(n)}var Yb=kr(function(n){var i=n.length,u=i?n[0]:0,m=this.__wrapped__,_=function(T){return iu(T,n)};return i>1||this.__actions__.length||!(m instanceof Te)||!$r(u)?this.thru(_):(m=m.slice(u,+u+(i?1:0)),m.__actions__.push({func:hs,args:[_],thisArg:r}),new Gt(m,this.__chain__).thru(function(T){return i&&!T.length&&T.push(r),T}))});function Xb(){return Zd(this)}function Jb(){return new Gt(this.value(),this.__chain__)}function Qb(){this.__values__===r&&(this.__values__=sp(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function ex(){return this}function tx(n){for(var i,u=this;u instanceof Qo;){var m=jd(u);m.__index__=0,m.__values__=r,i?_.__wrapped__=m:i=m;var _=m;u=u.__wrapped__}return _.__wrapped__=n,i}function rx(){var n=this.__wrapped__;if(n instanceof Te){var i=n;return this.__actions__.length&&(i=new Te(this)),i=i.reverse(),i.__actions__.push({func:hs,args:[$u],thisArg:r}),new Gt(i,this.__chain__)}return this.thru($u)}function nx(){return ud(this.__wrapped__,this.__actions__)}var ix=ss(function(n,i,u){Me.call(n,u)?++n[u]:Pr(n,u,1)});function ox(n,i,u){var m=be(n)?xf:Vw;return u&&_t(n,i,u)&&(i=r),m(n,pe(i,3))}function sx(n,i){var u=be(n)?Zr:qf;return u(n,pe(i,3))}var ax=wd(zd),ux=wd(Wd);function lx(n,i){return dt(gs(n,i),1)}function cx(n,i){return dt(gs(n,i),Y)}function fx(n,i,u){return u=u===r?1:xe(u),dt(gs(n,i),u)}function Gd(n,i){var u=be(n)?qt:Yr;return u(n,pe(i,3))}function Kd(n,i){var u=be(n)?Cy:Hf;return u(n,pe(i,3))}var dx=ss(function(n,i,u){Me.call(n,u)?n[u].push(i):Pr(n,u,[i])});function px(n,i,u,m){n=Pt(n)?n:ei(n),u=u&&!m?xe(u):0;var _=n.length;return u<0&&(u=it(_+u,0)),bs(n)?u<=_&&n.indexOf(i,u)>-1:!!_&&Bn(n,i,u)>-1}var hx=_e(function(n,i,u){var m=-1,_=typeof i=="function",T=Pt(n)?H(n.length):[];return Yr(n,function(P){T[++m]=_?Mt(i,P,u):Ai(P,i,u)}),T}),gx=ss(function(n,i,u){Pr(n,u,i)});function gs(n,i){var u=be(n)?Be:Xf;return u(n,pe(i,3))}function vx(n,i,u,m){return n==null?[]:(be(i)||(i=i==null?[]:[i]),u=m?r:u,be(u)||(u=u==null?[]:[u]),td(n,i,u))}var mx=ss(function(n,i,u){n[u?0:1].push(i)},function(){return[[],[]]});function yx(n,i,u){var m=be(n)?qa:Af,_=arguments.length<3;return m(n,pe(i,4),u,_,Yr)}function wx(n,i,u){var m=be(n)?ky:Af,_=arguments.length<3;return m(n,pe(i,4),u,_,Hf)}function bx(n,i){var u=be(n)?Zr:qf;return u(n,ys(pe(i,3)))}function xx(n){var i=be(n)?zf:p1;return i(n)}function Sx(n,i,u){(u?_t(n,i,u):i===r)?i=1:i=xe(i);var m=be(n)?Hw:h1;return m(n,i)}function Ex(n){var i=be(n)?qw:v1;return i(n)}function _x(n){if(n==null)return 0;if(Pt(n))return bs(n)?Hn(n):n.length;var i=wt(n);return i==at||i==mt?n.size:cu(n).length}function Ax(n,i,u){var m=be(n)?Za:m1;return u&&_t(n,i,u)&&(i=r),m(n,pe(i,3))}var Ox=_e(function(n,i){if(n==null)return[];var u=i.length;return u>1&&_t(n,i[0],i[1])?i=[]:u>2&&_t(i[0],i[1],i[2])&&(i=[i[0]]),td(n,dt(i,1),[])}),vs=sw||function(){return ft.Date.now()};function Tx(n,i){if(typeof i!="function")throw new Zt(l);return n=xe(n),function(){if(--n<1)return i.apply(this,arguments)}}function Vd(n,i,u){return i=u?r:i,i=n&&i==null?n.length:i,Cr(n,B,r,r,r,r,i)}function Yd(n,i){var u;if(typeof i!="function")throw new Zt(l);return n=xe(n),function(){return--n>0&&(u=i.apply(this,arguments)),n<=1&&(i=r),u}}var Lu=_e(function(n,i,u){var m=b;if(u.length){var _=Kr(u,Jn(Lu));m|=O}return Cr(n,m,i,u,_)}),Xd=_e(function(n,i,u){var m=b|d;if(u.length){var _=Kr(u,Jn(Xd));m|=O}return Cr(i,m,n,u,_)});function Jd(n,i,u){i=u?r:i;var m=Cr(n,E,r,r,r,r,r,i);return m.placeholder=Jd.placeholder,m}function Qd(n,i,u){i=u?r:i;var m=Cr(n,R,r,r,r,r,r,i);return m.placeholder=Qd.placeholder,m}function ep(n,i,u){var m,_,T,P,$,j,V=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Zt(l);i=Xt(i)||0,Ze(u)&&(X=!!u.leading,ee="maxWait"in u,T=ee?it(Xt(u.maxWait)||0,i):T,oe="trailing"in u?!!u.trailing:oe);function le(Xe){var sr=m,Mr=_;return m=_=r,V=Xe,P=n.apply(Mr,sr),P}function he(Xe){return V=Xe,$=Ci(Ae,i),X?le(Xe):P}function Se(Xe){var sr=Xe-j,Mr=Xe-V,wp=i-sr;return ee?yt(wp,T-Mr):wp}function ge(Xe){var sr=Xe-j,Mr=Xe-V;return j===r||sr>=i||sr<0||ee&&Mr>=T}function Ae(){var Xe=vs();if(ge(Xe))return Re(Xe);$=Ci(Ae,Se(Xe))}function Re(Xe){return $=r,oe&&m?le(Xe):(m=_=r,P)}function jt(){$!==r&&cd($),V=0,m=j=_=$=r}function At(){return $===r?P:Re(vs())}function zt(){var Xe=vs(),sr=ge(Xe);if(m=arguments,_=this,j=Xe,sr){if($===r)return he(j);if(ee)return cd($),$=Ci(Ae,i),le(j)}return $===r&&($=Ci(Ae,i)),P}return zt.cancel=jt,zt.flush=At,zt}var Rx=_e(function(n,i){return Uf(n,1,i)}),Px=_e(function(n,i,u){return Uf(n,Xt(i)||0,u)});function Cx(n){return Cr(n,M)}function ms(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new Zt(l);var u=function(){var m=arguments,_=i?i.apply(this,m):m[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,m);return u.cache=T.set(_,P)||T,P};return u.cache=new(ms.Cache||Rr),u}ms.Cache=Rr;function ys(n){if(typeof n!="function")throw new Zt(l);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function kx(n){return Yd(2,n)}var $x=y1(function(n,i){i=i.length==1&&be(i[0])?Be(i[0],Ft(pe())):Be(dt(i,1),Ft(pe()));var u=i.length;return _e(function(m){for(var _=-1,T=yt(m.length,u);++_<T;)m[_]=i[_].call(this,m[_]);return Mt(n,this,m)})}),Mu=_e(function(n,i){var u=Kr(i,Jn(Mu));return Cr(n,O,r,i,u)}),tp=_e(function(n,i){var u=Kr(i,Jn(tp));return Cr(n,k,r,i,u)}),Ix=kr(function(n,i){return Cr(n,L,r,r,r,i)});function Lx(n,i){if(typeof n!="function")throw new Zt(l);return i=i===r?i:xe(i),_e(n,i)}function Mx(n,i){if(typeof n!="function")throw new Zt(l);return i=i==null?0:it(xe(i),0),_e(function(u){var m=u[i],_=Qr(u,0,i);return m&&Gr(_,m),Mt(n,this,_)})}function Fx(n,i,u){var m=!0,_=!0;if(typeof n!="function")throw new Zt(l);return Ze(u)&&(m="leading"in u?!!u.leading:m,_="trailing"in u?!!u.trailing:_),ep(n,i,{leading:m,maxWait:i,trailing:_})}function Dx(n){return Vd(n,1)}function Nx(n,i){return Mu(wu(i),n)}function jx(){if(!arguments.length)return[];var n=arguments[0];return be(n)?n:[n]}function zx(n){return Kt(n,w)}function Wx(n,i){return i=typeof i=="function"?i:r,Kt(n,w,i)}function Bx(n){return Kt(n,g|w)}function Ux(n,i){return i=typeof i=="function"?i:r,Kt(n,g|w,i)}function Hx(n,i){return i==null||Bf(n,i,ut(i))}function or(n,i){return n===i||n!==n&&i!==i}var qx=cs(au),Zx=cs(function(n,i){return n>=i}),Sn=Kf((function(){return arguments})())?Kf:function(n){return Ke(n)&&Me.call(n,"callee")&&!Lf.call(n,"callee")},be=H.isArray,Gx=gf?Ft(gf):t1;function Pt(n){return n!=null&&ws(n.length)&&!Ir(n)}function Ye(n){return Ke(n)&&Pt(n)}function Kx(n){return n===!0||n===!1||Ke(n)&&Et(n)==ve}var en=uw||Zu,Vx=vf?Ft(vf):r1;function Yx(n){return Ke(n)&&n.nodeType===1&&!ki(n)}function Xx(n){if(n==null)return!0;if(Pt(n)&&(be(n)||typeof n=="string"||typeof n.splice=="function"||en(n)||Qn(n)||Sn(n)))return!n.length;var i=wt(n);if(i==at||i==mt)return!n.size;if(Pi(n))return!cu(n).length;for(var u in n)if(Me.call(n,u))return!1;return!0}function Jx(n,i){return Oi(n,i)}function Qx(n,i,u){u=typeof u=="function"?u:r;var m=u?u(n,i):r;return m===r?Oi(n,i,r,u):!!m}function Fu(n){if(!Ke(n))return!1;var i=Et(n);return i==qe||i==Oe||typeof n.message=="string"&&typeof n.name=="string"&&!ki(n)}function eS(n){return typeof n=="number"&&Ff(n)}function Ir(n){if(!Ze(n))return!1;var i=Et(n);return i==ie||i==vt||i==ye||i==Aa}function rp(n){return typeof n=="number"&&n==xe(n)}function ws(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ze(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function Ke(n){return n!=null&&typeof n=="object"}var np=mf?Ft(mf):i1;function tS(n,i){return n===i||lu(n,i,Ou(i))}function rS(n,i,u){return u=typeof u=="function"?u:r,lu(n,i,Ou(i),u)}function nS(n){return ip(n)&&n!=+n}function iS(n){if(W1(n))throw new we(a);return Vf(n)}function oS(n){return n===null}function sS(n){return n==null}function ip(n){return typeof n=="number"||Ke(n)&&Et(n)==dr}function ki(n){if(!Ke(n)||Et(n)!=Ut)return!1;var i=Zo(n);if(i===null)return!0;var u=Me.call(i,"constructor")&&i.constructor;return typeof u=="function"&&u instanceof u&&Bo.call(u)==rw}var Du=yf?Ft(yf):o1;function aS(n){return rp(n)&&n>=-te&&n<=te}var op=wf?Ft(wf):s1;function bs(n){return typeof n=="string"||!be(n)&&Ke(n)&&Et(n)==Ur}function Nt(n){return typeof n=="symbol"||Ke(n)&&Et(n)==pn}var Qn=bf?Ft(bf):a1;function uS(n){return n===r}function lS(n){return Ke(n)&&wt(n)==Hr}function cS(n){return Ke(n)&&Et(n)==Io}var fS=cs(fu),dS=cs(function(n,i){return n<=i});function sp(n){if(!n)return[];if(Pt(n))return bs(n)?nr(n):Rt(n);if(yi&&n[yi])return Hy(n[yi]());var i=wt(n),u=i==at?Ja:i==mt?jo:ei;return u(n)}function Lr(n){if(!n)return n===0?n:0;if(n=Xt(n),n===Y||n===-Y){var i=n<0?-1:1;return i*de}return n===n?n:0}function xe(n){var i=Lr(n),u=i%1;return i===i?u?i-u:i:0}function ap(n){return n?yn(xe(n),0,Q):0}function Xt(n){if(typeof n=="number")return n;if(Nt(n))return Z;if(Ze(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=Ze(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Of(n);var u=G0.test(n);return u||V0.test(n)?Ty(n.slice(2),u?2:8):Z0.test(n)?Z:+n}function up(n){return hr(n,Ct(n))}function pS(n){return n?yn(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Dt(n)}var hS=Yn(function(n,i){if(Pi(i)||Pt(i)){hr(i,ut(i),n);return}for(var u in i)Me.call(i,u)&&Ei(n,u,i[u])}),lp=Yn(function(n,i){hr(i,Ct(i),n)}),xs=Yn(function(n,i,u,m){hr(i,Ct(i),n,m)}),gS=Yn(function(n,i,u,m){hr(i,ut(i),n,m)}),vS=kr(iu);function mS(n,i){var u=Vn(n);return i==null?u:Wf(u,i)}var yS=_e(function(n,i){n=Ne(n);var u=-1,m=i.length,_=m>2?i[2]:r;for(_&&_t(i[0],i[1],_)&&(m=1);++u<m;)for(var T=i[u],P=Ct(T),$=-1,j=P.length;++$<j;){var V=P[$],X=n[V];(X===r||or(X,Zn[V])&&!Me.call(n,V))&&(n[V]=T[V])}return n}),wS=_e(function(n){return n.push(r,Od),Mt(cp,r,n)});function bS(n,i){return Sf(n,pe(i,3),pr)}function xS(n,i){return Sf(n,pe(i,3),su)}function SS(n,i){return n==null?n:ou(n,pe(i,3),Ct)}function ES(n,i){return n==null?n:Zf(n,pe(i,3),Ct)}function _S(n,i){return n&&pr(n,pe(i,3))}function AS(n,i){return n&&su(n,pe(i,3))}function OS(n){return n==null?[]:rs(n,ut(n))}function TS(n){return n==null?[]:rs(n,Ct(n))}function Nu(n,i,u){var m=n==null?r:wn(n,i);return m===r?u:m}function RS(n,i){return n!=null&&Pd(n,i,Xw)}function ju(n,i){return n!=null&&Pd(n,i,Jw)}var PS=xd(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Uo.call(i)),n[i]=u},Wu(kt)),CS=xd(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Uo.call(i)),Me.call(n,i)?n[i].push(u):n[i]=[u]},pe),kS=_e(Ai);function ut(n){return Pt(n)?jf(n):cu(n)}function Ct(n){return Pt(n)?jf(n,!0):u1(n)}function $S(n,i){var u={};return i=pe(i,3),pr(n,function(m,_,T){Pr(u,i(m,_,T),m)}),u}function IS(n,i){var u={};return i=pe(i,3),pr(n,function(m,_,T){Pr(u,_,i(m,_,T))}),u}var LS=Yn(function(n,i,u){ns(n,i,u)}),cp=Yn(function(n,i,u,m){ns(n,i,u,m)}),MS=kr(function(n,i){var u={};if(n==null)return u;var m=!1;i=Be(i,function(T){return T=Jr(T,n),m||(m=T.length>1),T}),hr(n,_u(n),u),m&&(u=Kt(u,g|p|w,P1));for(var _=i.length;_--;)vu(u,i[_]);return u});function FS(n,i){return fp(n,ys(pe(i)))}var DS=kr(function(n,i){return n==null?{}:c1(n,i)});function fp(n,i){if(n==null)return{};var u=Be(_u(n),function(m){return[m]});return i=pe(i),rd(n,u,function(m,_){return i(m,_[0])})}function NS(n,i,u){i=Jr(i,n);var m=-1,_=i.length;for(_||(_=1,n=r);++m<_;){var T=n==null?r:n[gr(i[m])];T===r&&(m=_,T=u),n=Ir(T)?T.call(n):T}return n}function jS(n,i,u){return n==null?n:Ti(n,i,u)}function zS(n,i,u,m){return m=typeof m=="function"?m:r,n==null?n:Ti(n,i,u,m)}var dp=_d(ut),pp=_d(Ct);function WS(n,i,u){var m=be(n),_=m||en(n)||Qn(n);if(i=pe(i,4),u==null){var T=n&&n.constructor;_?u=m?new T:[]:Ze(n)?u=Ir(T)?Vn(Zo(n)):{}:u={}}return(_?qt:pr)(n,function(P,$,j){return i(u,P,$,j)}),u}function BS(n,i){return n==null?!0:vu(n,i)}function US(n,i,u){return n==null?n:ad(n,i,wu(u))}function HS(n,i,u,m){return m=typeof m=="function"?m:r,n==null?n:ad(n,i,wu(u),m)}function ei(n){return n==null?[]:Xa(n,ut(n))}function qS(n){return n==null?[]:Xa(n,Ct(n))}function ZS(n,i,u){return u===r&&(u=i,i=r),u!==r&&(u=Xt(u),u=u===u?u:0),i!==r&&(i=Xt(i),i=i===i?i:0),yn(Xt(n),i,u)}function GS(n,i,u){return i=Lr(i),u===r?(u=i,i=0):u=Lr(u),n=Xt(n),Qw(n,i,u)}function KS(n,i,u){if(u&&typeof u!="boolean"&&_t(n,i,u)&&(i=u=r),u===r&&(typeof i=="boolean"?(u=i,i=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&i===r?(n=0,i=1):(n=Lr(n),i===r?(i=n,n=0):i=Lr(i)),n>i){var m=n;n=i,i=m}if(u||n%1||i%1){var _=Df();return yt(n+_*(i-n+Oy("1e-"+((_+"").length-1))),i)}return pu(n,i)}var VS=Xn(function(n,i,u){return i=i.toLowerCase(),n+(u?hp(i):i)});function hp(n){return zu(ke(n).toLowerCase())}function gp(n){return n=ke(n),n&&n.replace(X0,jy).replace(vy,"")}function YS(n,i,u){n=ke(n),i=Dt(i);var m=n.length;u=u===r?m:yn(xe(u),0,m);var _=u;return u-=i.length,u>=0&&n.slice(u,_)==i}function XS(n){return n=ke(n),n&&k0.test(n)?n.replace(qc,zy):n}function JS(n){return n=ke(n),n&&D0.test(n)?n.replace(Ma,"\\$&"):n}var QS=Xn(function(n,i,u){return n+(u?"-":"")+i.toLowerCase()}),eE=Xn(function(n,i,u){return n+(u?" ":"")+i.toLowerCase()}),tE=yd("toLowerCase");function rE(n,i,u){n=ke(n),i=xe(i);var m=i?Hn(n):0;if(!i||m>=i)return n;var _=(i-m)/2;return ls(Yo(_),u)+n+ls(Vo(_),u)}function nE(n,i,u){n=ke(n),i=xe(i);var m=i?Hn(n):0;return i&&m<i?n+ls(i-m,u):n}function iE(n,i,u){n=ke(n),i=xe(i);var m=i?Hn(n):0;return i&&m<i?ls(i-m,u)+n:n}function oE(n,i,u){return u||i==null?i=0:i&&(i=+i),dw(ke(n).replace(Fa,""),i||0)}function sE(n,i,u){return(u?_t(n,i,u):i===r)?i=1:i=xe(i),hu(ke(n),i)}function aE(){var n=arguments,i=ke(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var uE=Xn(function(n,i,u){return n+(u?"_":"")+i.toLowerCase()});function lE(n,i,u){return u&&typeof u!="number"&&_t(n,i,u)&&(i=u=r),u=u===r?Q:u>>>0,u?(n=ke(n),n&&(typeof i=="string"||i!=null&&!Du(i))&&(i=Dt(i),!i&&Un(n))?Qr(nr(n),0,u):n.split(i,u)):[]}var cE=Xn(function(n,i,u){return n+(u?" ":"")+zu(i)});function fE(n,i,u){return n=ke(n),u=u==null?0:yn(xe(u),0,n.length),i=Dt(i),n.slice(u,u+i.length)==i}function dE(n,i,u){var m=A.templateSettings;u&&_t(n,i,u)&&(i=r),n=ke(n),i=xs({},i,m,Ad);var _=xs({},i.imports,m.imports,Ad),T=ut(_),P=Xa(_,T),$,j,V=0,X=i.interpolate||Lo,ee="__p += '",oe=Qa((i.escape||Lo).source+"|"+X.source+"|"+(X===Zc?q0:Lo).source+"|"+(i.evaluate||Lo).source+"|$","g"),le="//# sourceURL="+(Me.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xy+"]")+`
185
+ `;n.replace(oe,function(ge,Ae,Re,jt,At,zt){return Re||(Re=jt),ee+=n.slice(V,zt).replace(J0,Wy),Ae&&($=!0,ee+=`' +
186
+ __e(`+Ae+`) +
187
+ '`),At&&(j=!0,ee+=`';
188
+ `+At+`;
189
+ __p += '`),Re&&(ee+=`' +
190
+ ((__t = (`+Re+`)) == null ? '' : __t) +
191
+ '`),V=zt+ge.length,ge}),ee+=`';
133
192
  `;var he=Me.call(i,"variable")&&i.variable;if(!he)ee=`with (obj) {
134
193
  `+ee+`
135
194
  }
136
- `;else if(jg.test(he))throw new ye(d);ee=(j?ee.replace(_g,""):ee).replace(xg,"$1").replace(Og,"$1;"),ee="function("+(he||"obj")+`) {
195
+ `;else if(U0.test(he))throw new we(c);ee=(j?ee.replace(T0,""):ee).replace(R0,"$1").replace(P0,"$1;"),ee="function("+(he||"obj")+`) {
137
196
  `+(he?"":`obj || (obj = {});
138
- `)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
197
+ `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
139
198
  function print() { __p += __j.call(arguments, '') }
140
199
  `:`;
141
200
  `)+ee+`return __p
142
- }`;var Se=Dd(function(){return Pe(T,le+"return "+ee).apply(r,C)});if(Se.source=ee,pu(Se))throw Se;return Se}function lE(t){return Ce(t).toLowerCase()}function fE(t){return Ce(t).toUpperCase()}function cE(t,i,s){if(t=Ce(t),t&&(s||i===r))return Hf(t);if(!t||!(i=It(i)))return t;var h=Xt(t),x=Xt(i),T=qf(h,x),C=Zf(h,x)+1;return qn(h,T,C).join("")}function dE(t,i,s){if(t=Ce(t),t&&(s||i===r))return t.slice(0,Kf(t)+1);if(!t||!(i=It(i)))return t;var h=Xt(t),x=Zf(h,Xt(i))+1;return qn(h,0,x).join("")}function pE(t,i,s){if(t=Ce(t),t&&(s||i===r))return t.replace(ps,"");if(!t||!(i=It(i)))return t;var h=Xt(t),x=qf(h,Xt(i));return qn(h,x).join("")}function hE(t,i){var s=G,h=k;if(Ue(i)){var x="separator"in i?i.separator:x;s="length"in i?be(i.length):s,h="omission"in i?It(i.omission):h}t=Ce(t);var T=t.length;if(Mr(t)){var C=Xt(t);T=C.length}if(s>=T)return t;var M=s-Fr(h);if(M<1)return h;var j=C?qn(C,0,M).join(""):t.slice(0,M);if(x===r)return j+h;if(C&&(M+=j.length-M),hu(x)){if(t.slice(M).search(x)){var V,X=j;for(x.global||(x=Rs(x.source,Ce(df.exec(x))+"g")),x.lastIndex=0;V=x.exec(X);)var ee=V.index;j=j.slice(0,ee===r?M:ee)}}else if(t.indexOf(It(x),M)!=M){var oe=j.lastIndexOf(x);oe>-1&&(j=j.slice(0,oe))}return j+h}function vE(t){return t=Ce(t),t&&Ag.test(t)?t.replace(lf,Hy):t}var mE=Wr(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),gu=$c("toUpperCase");function Ld(t,i,s){return t=Ce(t),i=s?r:i,i===r?jy(t)?Gy(t):Ry(t):t.match(i)||[]}var Dd=_e(function(t,i){try{return Ct(t,r,i)}catch(s){return pu(s)?s:new ye(s)}}),gE=_n(function(t,i){return jt(i,function(s){s=un(s),Sn(t,s,cu(t[s],t))}),t});function yE(t){var i=t==null?0:t.length,s=pe();return t=i?Ne(t,function(h){if(typeof h[1]!="function")throw new Wt(l);return[s(h[0]),h[1]]}):[],_e(function(h){for(var x=-1;++x<i;){var T=t[x];if(Ct(T[0],this,h))return Ct(T[1],this,h)}})}function wE(t){return H0(Bt(t,p))}function yu(t){return function(){return t}}function bE(t,i){return t==null||t!==t?i:t}var SE=kc(),EE=kc(!0);function xt(t){return t}function wu(t){return hc(typeof t=="function"?t:Bt(t,p))}function _E(t){return mc(Bt(t,p))}function xE(t,i){return gc(t,Bt(i,p))}var OE=_e(function(t,i){return function(s){return hi(s,t,i)}}),AE=_e(function(t,i){return function(s){return hi(t,s,i)}});function bu(t,i,s){var h=rt(i),x=Wo(i,h);s==null&&!(Ue(i)&&(x.length||!h.length))&&(s=i,i=t,t=this,x=Wo(i,rt(i)));var T=!(Ue(s)&&"chain"in s)||!!s.chain,C=On(t);return jt(x,function(M){var j=i[M];t[M]=j,C&&(t.prototype[M]=function(){var V=this.__chain__;if(T||V){var X=t(this.__wrapped__),ee=X.__actions__=St(this.__actions__);return ee.push({func:j,args:arguments,thisArg:t}),X.__chain__=V,X}return j.apply(t,jn([this.value()],arguments))})}),t}function TE(){return at._===this&&(at._=Qy),this}function Su(){}function PE(t){return t=be(t),_e(function(i){return yc(i,t)})}var CE=Js(Ne),RE=Js(jf),IE=Js(_s);function $d(t){return ou(t)?xs(un(t)):s1(t)}function ME(t){return function(i){return t==null?r:fr(t,i)}}var FE=Wc(),LE=Wc(!0);function Eu(){return[]}function _u(){return!1}function DE(){return{}}function $E(){return""}function NE(){return!0}function kE(t,i){if(t=be(t),t<1||t>te)return[];var s=Q,h=pt(t,Q);i=pe(i),t-=Q;for(var x=Ts(h,i);++s<t;)i(s);return x}function jE(t){return we(t)?Ne(t,un):Mt(t)?[t]:St(nd(Ce(t)))}function WE(t){var i=++Xy;return Ce(t)+i}var UE=Zo(function(t,i){return t+i},0),BE=Qs("ceil"),zE=Zo(function(t,i){return t/i},1),HE=Qs("floor");function qE(t){return t&&t.length?jo(t,xt,ks):r}function ZE(t,i){return t&&t.length?jo(t,pe(i,2),ks):r}function GE(t){return Bf(t,xt)}function KE(t,i){return Bf(t,pe(i,2))}function VE(t){return t&&t.length?jo(t,xt,Bs):r}function YE(t,i){return t&&t.length?jo(t,pe(i,2),Bs):r}var XE=Zo(function(t,i){return t*i},1),JE=Qs("round"),QE=Zo(function(t,i){return t-i},0);function e_(t){return t&&t.length?As(t,xt):0}function t_(t,i){return t&&t.length?As(t,pe(i,2)):0}return O.after=_b,O.ary=pd,O.assign=fS,O.assignIn=Td,O.assignInWith=oa,O.assignWith=cS,O.at=dS,O.before=hd,O.bind=cu,O.bindAll=gE,O.bindKey=vd,O.castArray=Db,O.chain=fd,O.chunk=H1,O.compact=q1,O.concat=Z1,O.cond=yE,O.conforms=wE,O.constant=yu,O.countBy=eb,O.create=pS,O.curry=md,O.curryRight=gd,O.debounce=yd,O.defaults=hS,O.defaultsDeep=vS,O.defer=xb,O.delay=Ob,O.difference=G1,O.differenceBy=K1,O.differenceWith=V1,O.drop=Y1,O.dropRight=X1,O.dropRightWhile=J1,O.dropWhile=Q1,O.fill=ew,O.filter=nb,O.flatMap=ob,O.flatMapDeep=ab,O.flatMapDepth=sb,O.flatten=ad,O.flattenDeep=tw,O.flattenDepth=nw,O.flip=Ab,O.flow=SE,O.flowRight=EE,O.fromPairs=rw,O.functions=ES,O.functionsIn=_S,O.groupBy=ub,O.initial=ow,O.intersection=aw,O.intersectionBy=sw,O.intersectionWith=uw,O.invert=OS,O.invertBy=AS,O.invokeMap=fb,O.iteratee=wu,O.keyBy=cb,O.keys=rt,O.keysIn=_t,O.map=Qo,O.mapKeys=PS,O.mapValues=CS,O.matches=_E,O.matchesProperty=xE,O.memoize=ta,O.merge=RS,O.mergeWith=Pd,O.method=OE,O.methodOf=AE,O.mixin=bu,O.negate=na,O.nthArg=PE,O.omit=IS,O.omitBy=MS,O.once=Tb,O.orderBy=db,O.over=CE,O.overArgs=Pb,O.overEvery=RE,O.overSome=IE,O.partial=du,O.partialRight=wd,O.partition=pb,O.pick=FS,O.pickBy=Cd,O.property=$d,O.propertyOf=ME,O.pull=dw,O.pullAll=ud,O.pullAllBy=pw,O.pullAllWith=hw,O.pullAt=vw,O.range=FE,O.rangeRight=LE,O.rearg=Cb,O.reject=mb,O.remove=mw,O.rest=Rb,O.reverse=lu,O.sampleSize=yb,O.set=DS,O.setWith=$S,O.shuffle=wb,O.slice=gw,O.sortBy=Eb,O.sortedUniq=xw,O.sortedUniqBy=Ow,O.split=oE,O.spread=Ib,O.tail=Aw,O.take=Tw,O.takeRight=Pw,O.takeRightWhile=Cw,O.takeWhile=Rw,O.tap=qw,O.throttle=Mb,O.thru=Jo,O.toArray=xd,O.toPairs=Rd,O.toPairsIn=Id,O.toPath=jE,O.toPlainObject=Ad,O.transform=NS,O.unary=Fb,O.union=Iw,O.unionBy=Mw,O.unionWith=Fw,O.uniq=Lw,O.uniqBy=Dw,O.uniqWith=$w,O.unset=kS,O.unzip=fu,O.unzipWith=ld,O.update=jS,O.updateWith=WS,O.values=zr,O.valuesIn=US,O.without=Nw,O.words=Ld,O.wrap=Lb,O.xor=kw,O.xorBy=jw,O.xorWith=Ww,O.zip=Uw,O.zipObject=Bw,O.zipObjectDeep=zw,O.zipWith=Hw,O.entries=Rd,O.entriesIn=Id,O.extend=Td,O.extendWith=oa,bu(O,O),O.add=UE,O.attempt=Dd,O.camelCase=qS,O.capitalize=Md,O.ceil=BE,O.clamp=BS,O.clone=$b,O.cloneDeep=kb,O.cloneDeepWith=jb,O.cloneWith=Nb,O.conformsTo=Wb,O.deburr=Fd,O.defaultTo=bE,O.divide=zE,O.endsWith=ZS,O.eq=Qt,O.escape=GS,O.escapeRegExp=KS,O.every=tb,O.find=rb,O.findIndex=id,O.findKey=mS,O.findLast=ib,O.findLastIndex=od,O.findLastKey=gS,O.floor=HE,O.forEach=cd,O.forEachRight=dd,O.forIn=yS,O.forInRight=wS,O.forOwn=bS,O.forOwnRight=SS,O.get=vu,O.gt=Ub,O.gte=Bb,O.has=xS,O.hasIn=mu,O.head=sd,O.identity=xt,O.includes=lb,O.indexOf=iw,O.inRange=zS,O.invoke=TS,O.isArguments=pr,O.isArray=we,O.isArrayBuffer=zb,O.isArrayLike=Et,O.isArrayLikeObject=He,O.isBoolean=Hb,O.isBuffer=Zn,O.isDate=qb,O.isElement=Zb,O.isEmpty=Gb,O.isEqual=Kb,O.isEqualWith=Vb,O.isError=pu,O.isFinite=Yb,O.isFunction=On,O.isInteger=bd,O.isLength=ra,O.isMap=Sd,O.isMatch=Xb,O.isMatchWith=Jb,O.isNaN=Qb,O.isNative=eS,O.isNil=nS,O.isNull=tS,O.isNumber=Ed,O.isObject=Ue,O.isObjectLike=ze,O.isPlainObject=bi,O.isRegExp=hu,O.isSafeInteger=rS,O.isSet=_d,O.isString=ia,O.isSymbol=Mt,O.isTypedArray=Br,O.isUndefined=iS,O.isWeakMap=oS,O.isWeakSet=aS,O.join=lw,O.kebabCase=VS,O.last=Ht,O.lastIndexOf=fw,O.lowerCase=YS,O.lowerFirst=XS,O.lt=sS,O.lte=uS,O.max=qE,O.maxBy=ZE,O.mean=GE,O.meanBy=KE,O.min=VE,O.minBy=YE,O.stubArray=Eu,O.stubFalse=_u,O.stubObject=DE,O.stubString=$E,O.stubTrue=NE,O.multiply=XE,O.nth=cw,O.noConflict=TE,O.noop=Su,O.now=ea,O.pad=JS,O.padEnd=QS,O.padStart=eE,O.parseInt=tE,O.random=HS,O.reduce=hb,O.reduceRight=vb,O.repeat=nE,O.replace=rE,O.result=LS,O.round=JE,O.runInContext=$,O.sample=gb,O.size=bb,O.snakeCase=iE,O.some=Sb,O.sortedIndex=yw,O.sortedIndexBy=ww,O.sortedIndexOf=bw,O.sortedLastIndex=Sw,O.sortedLastIndexBy=Ew,O.sortedLastIndexOf=_w,O.startCase=aE,O.startsWith=sE,O.subtract=QE,O.sum=e_,O.sumBy=t_,O.template=uE,O.times=kE,O.toFinite=An,O.toInteger=be,O.toLength=Od,O.toLower=lE,O.toNumber=qt,O.toSafeInteger=lS,O.toString=Ce,O.toUpper=fE,O.trim=cE,O.trimEnd=dE,O.trimStart=pE,O.truncate=hE,O.unescape=vE,O.uniqueId=WE,O.upperCase=mE,O.upperFirst=gu,O.each=cd,O.eachRight=dd,O.first=sd,bu(O,(function(){var t={};return an(O,function(i,s){Me.call(O.prototype,s)||(t[s]=i)}),t})(),{chain:!1}),O.VERSION=o,jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){O[t].placeholder=O}),jt(["drop","take"],function(t,i){Ae.prototype[t]=function(s){s=s===r?1:Je(be(s),0);var h=this.__filtered__&&!i?new Ae(this):this.clone();return h.__filtered__?h.__takeCount__=pt(s,h.__takeCount__):h.__views__.push({size:pt(s,Q),type:t+(h.__dir__<0?"Right":"")}),h},Ae.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),jt(["filter","map","takeWhile"],function(t,i){var s=i+1,h=s==q||s==J;Ae.prototype[t]=function(x){var T=this.clone();return T.__iteratees__.push({iteratee:pe(x,3),type:s}),T.__filtered__=T.__filtered__||h,T}}),jt(["head","last"],function(t,i){var s="take"+(i?"Right":"");Ae.prototype[t]=function(){return this[s](1).value()[0]}}),jt(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");Ae.prototype[t]=function(){return this.__filtered__?new Ae(this):this[s](1)}}),Ae.prototype.compact=function(){return this.filter(xt)},Ae.prototype.find=function(t){return this.filter(t).head()},Ae.prototype.findLast=function(t){return this.reverse().find(t)},Ae.prototype.invokeMap=_e(function(t,i){return typeof t=="function"?new Ae(this):this.map(function(s){return hi(s,t,i)})}),Ae.prototype.reject=function(t){return this.filter(na(pe(t)))},Ae.prototype.slice=function(t,i){t=be(t);var s=this;return s.__filtered__&&(t>0||i<0)?new Ae(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==r&&(i=be(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},Ae.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ae.prototype.toArray=function(){return this.take(Q)},an(Ae.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),h=/^(?:head|last)$/.test(i),x=O[h?"take"+(i=="last"?"Right":""):i],T=h||/^find/.test(i);x&&(O.prototype[i]=function(){var C=this.__wrapped__,M=h?[1]:arguments,j=C instanceof Ae,V=M[0],X=j||we(C),ee=function(xe){var Te=x.apply(O,jn([xe],M));return h&&oe?Te[0]:Te};X&&s&&typeof V=="function"&&V.length!=1&&(j=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=j&&!le;if(!T&&X){C=Se?C:new Ae(this);var ve=t.apply(C,M);return ve.__actions__.push({func:Jo,args:[ee],thisArg:r}),new Ut(ve,oe)}return he&&Se?t.apply(this,M):(ve=this.thru(ee),he?h?ve.value()[0]:ve.value():ve)})}),jt(["pop","push","shift","sort","splice","unshift"],function(t){var i=xo[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",h=/^(?:pop|shift)$/.test(t);O.prototype[t]=function(){var x=arguments;if(h&&!this.__chain__){var T=this.value();return i.apply(we(T)?T:[],x)}return this[s](function(C){return i.apply(we(C)?C:[],x)})}}),an(Ae.prototype,function(t,i){var s=O[i];if(s){var h=s.name+"";Me.call(Nr,h)||(Nr[h]=[]),Nr[h].push({name:i,func:s})}}),Nr[qo(r,c).name]=[{name:"wrapper",func:r}],Ae.prototype.clone=v0,Ae.prototype.reverse=m0,Ae.prototype.value=g0,O.prototype.at=Zw,O.prototype.chain=Gw,O.prototype.commit=Kw,O.prototype.next=Vw,O.prototype.plant=Xw,O.prototype.reverse=Jw,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=Qw,O.prototype.first=O.prototype.head,si&&(O.prototype[si]=Yw),O}),Lr=Ky();or?((or.exports=Lr)._=Lr,ws._=Lr):at._=Lr}).call(JP)})(Hi,Hi.exports)),Hi.exports}var Ke=QP();const El={FdSave:tt.FdSave,FdWarningDanger:tt.FdWarningDanger,FdInfoCircle:tt.FdInfoCircle,FdInfoBold:tt.FdInfoBold};var Kl=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Kl||{}),_r=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(_r||{}),Kr=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Kr||{});const Em={[_r.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[_r.DANGER]:{icon:"red-500",button:"primary-dark"},[_r.WARNING]:{icon:"yellow-400",button:"primary-dark"}},nl=({color:e=_r.PRIMARY,variant:n="solid",children:r,autoFocus:o,...a})=>{const u=Em[e].button,l=n==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-primary-hover hover:text-white`;return W.jsx("button",{autoFocus:o,className:Ve("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},eC=({name:e,color:n=_r.PRIMARY,className:r="w-8 h-8"})=>{const o=El[e]||El.FdInfoCircle,a=`text-${Em[n].icon}`;return W.jsx(o,{className:Ve(r,a)})},tC=({id:e,title:n,message:r,icon:o,type:a,color:u,zIndex:l=3e3,views:d,width:m=520,hasOverlay:E=!0,onClose:g,onEdit:p})=>{const v=f=>{g({id:e,reason:f})};B.useEffect(()=>{function f(w){w.key==="Escape"&&v(Kr.CANCELED)}return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]);const y=Ke.merge(Ke.values(d==null?void 0:d.toggles).flatMap(f=>f.value?f.warnings||[]:[]),d==null?void 0:d.tips),b=(f,w)=>{var S;if(!(d!=null&&d.toggles))return;const c=Ke.cloneDeep(d);(S=c.toggles)!=null&&S[f]&&(c.toggles[f].value=w),p({id:e,views:c})};return ao.createPortal(W.jsx(ja,{appear:!0,show:!0,as:B.Fragment,children:W.jsx("div",{className:Ve("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":E}),style:{zIndex:l},onClick:()=>v(Kr.CANCELED),children:W.jsx(ja.Child,{as:B.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:W.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:m},onClick:f=>f.stopPropagation(),children:W.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[o?W.jsx("div",{className:"flex items-center justify-center",children:W.jsx(eC,{name:o,color:u,className:"w-6 h-6"})}):null,W.jsx(nC,{condition:n,children:W.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:n})}),W.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),W.jsx("div",{className:"text-xs text-white",children:Ke.values(d==null?void 0:d.toggles).map(f=>W.jsx("div",{children:W.jsxs("label",{htmlFor:f.key,className:"flex items-center",children:[W.jsx(bm,{size:"xs",value:f.value,onChange:w=>b(f.key,w)}),W.jsx("span",{className:"ml-1",children:f.title})]})},f.key))}),W.jsx(rC,{warnings:y}),W.jsx("div",{className:"flex items-center gap-4",children:a===Kl.CONFIRM?W.jsxs(W.Fragment,{children:[W.jsx(nl,{autoFocus:!0,color:u,onClick:()=>v(Kr.CONFIRMED),children:"Confirm"}),W.jsx(nl,{color:u,variant:"outlined",onClick:()=>v(Kr.CANCELED),children:"Cancel"})]}):W.jsx(nl,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),document.querySelector("body"))},nC=e=>e.condition?W.jsx(W.Fragment,{children:e.children}):null,rC=e=>e.warnings?W.jsx(ja,{appear:!0,show:!!e.warnings.length,as:B.Fragment,children:W.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((n,r)=>W.jsx(ja.Child,{as:B.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:W.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[W.jsx(tt.FdWarningDanger,{className:Ve({"h-3 w-3":!0,"text-yellow-500":n.type==="warning","text-red-400":n.type==="error","text-primary-dark":n.type==="info"},"mr-3")}),W.jsx("div",{className:"flex-1",children:n.message})]})},`modal-warnings-${r}`))})}):null;var _m=(e=>(e[e.MIN=1]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(_m||{});const iC=({zoom:e,minZoom:n=1,maxZoom:r=10,handleZoomIn:o,handleZoomOut:a})=>W.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[W.jsx(tt.FdMinusNaked,{onClick:a,className:Ve("h-5 w-5 p-1",{"text-grey-200":e<=n,"cursor-pointer rounded hover:bg-purple-800":e>n})}),W.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),W.jsx(tt.FdPlusNaked,{onClick:o,className:Ve("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]});function oC(e,n){const r=B.useRef(!1);B.useEffect(()=>{if(r.current)return e();r.current=!0},n)}const rl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function il(e,n,r,o){e.addEventListener?e.addEventListener(n,r,o):e.attachEvent&&e.attachEvent("on".concat(n),r)}function Bi(e,n,r,o){e.removeEventListener?e.removeEventListener(n,r,o):e.detachEvent&&e.detachEvent("on".concat(n),r)}function xm(e,n){const r=n.slice(0,n.length-1);for(let o=0;o<r.length;o++)r[o]=e[r[o].toLowerCase()];return r}function Om(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const n=e.split(",");let r=n.lastIndexOf("");for(;r>=0;)n[r-1]+=",",n.splice(r,1),r=n.lastIndexOf("");return n}function aC(e,n){const r=e.length>=n.length?e:n,o=e.length>=n.length?n:e;let a=!0;for(let u=0;u<r.length;u++)o.indexOf(r[u])===-1&&(a=!1);return a}const to={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,"-":rl?173:189,"=":rl?61:187,";":rl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},rn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},qi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ft={16:!1,18:!1,17:!1,91:!1},Be={};for(let e=1;e<20;e++)to["f".concat(e)]=111+e;let je=[],Xi=null,Am="all";const Cn=new Map,ii=e=>to[e.toLowerCase()]||rn[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),sC=e=>Object.keys(to).find(n=>to[n]===e),uC=e=>Object.keys(rn).find(n=>rn[n]===e);function Tm(e){Am=e||"all"}function no(){return Am||"all"}function lC(){return je.slice(0)}function fC(){return je.map(e=>sC(e)||uC(e)||String.fromCharCode(e))}function cC(){const e=[];return Object.keys(Be).forEach(n=>{Be[n].forEach(r=>{let{key:o,scope:a,mods:u,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(d=>ii(d))})})}),e}function dC(e){const n=e.target||e.srcElement,{tagName:r}=n;let o=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(n.type);return(n.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!n.readOnly)&&(o=!1),o}function pC(e){return typeof e=="string"&&(e=ii(e)),je.indexOf(e)!==-1}function hC(e,n){let r,o;e||(e=no());for(const a in Be)if(Object.prototype.hasOwnProperty.call(Be,a))for(r=Be[a],o=0;o<r.length;)r[o].scope===e?r.splice(o,1).forEach(l=>{let{element:d}=l;return Vl(d)}):o++;no()===e&&Tm(n||"all")}function vC(e){let n=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(n=ii(e.key));const r=je.indexOf(n);if(r>=0&&je.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&je.splice(0,je.length),(n===93||n===224)&&(n=91),n in ft){ft[n]=!1;for(const o in rn)rn[o]===n&&(nn[o]=!1)}}function Pm(e){if(typeof e>"u")Object.keys(Be).forEach(a=>{Array.isArray(Be[a])&&Be[a].forEach(u=>Ea(u)),delete Be[a]}),Vl(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&Ea(a)});else if(typeof e=="object")e.key&&Ea(e);else if(typeof e=="string"){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];let[a,u]=r;typeof a=="function"&&(u=a,a=""),Ea({key:e,scope:a,method:u,splitKey:"+"})}}const Ea=e=>{let{key:n,scope:r,method:o,splitKey:a="+"}=e;Om(n).forEach(l=>{const d=l.split(a),m=d.length,E=d[m-1],g=E==="*"?"*":ii(E);if(!Be[g])return;r||(r=no());const p=m>1?xm(rn,d):[],v=[];Be[g]=Be[g].filter(y=>{const f=(o?y.method===o:!0)&&y.scope===r&&aC(y.mods,p);return f&&v.push(y.element),!f}),v.forEach(y=>Vl(y))})};function Dh(e,n,r,o){if(n.element!==o)return;let a;if(n.scope===r||n.scope==="all"){a=n.mods.length>0;for(const u in ft)Object.prototype.hasOwnProperty.call(ft,u)&&(!ft[u]&&n.mods.indexOf(+u)>-1||ft[u]&&n.mods.indexOf(+u)===-1)&&(a=!1);(n.mods.length===0&&!ft[16]&&!ft[18]&&!ft[17]&&!ft[91]||a||n.shortcut==="*")&&(n.keys=[],n.keys=n.keys.concat(je),n.method(e,n)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function $h(e,n){const r=Be["*"];let o=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!nn.filter.call(this,e))return;if((o===93||o===224)&&(o=91),je.indexOf(o)===-1&&o!==229&&je.push(o),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const m=qi[d];e[d]&&je.indexOf(m)===-1?je.push(m):!e[d]&&je.indexOf(m)>-1?je.splice(je.indexOf(m),1):d==="metaKey"&&e[d]&&(je=je.filter(E=>E in qi||E===o))}),o in ft){ft[o]=!0;for(const d in rn)if(Object.prototype.hasOwnProperty.call(rn,d)){const m=qi[rn[d]];nn[d]=e[m]}if(!r)return}for(const d in ft)Object.prototype.hasOwnProperty.call(ft,d)&&(ft[d]=e[qi[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(je.indexOf(17)===-1&&je.push(17),je.indexOf(18)===-1&&je.push(18),ft[17]=!0,ft[18]=!0);const a=no();if(r)for(let d=0;d<r.length;d++)r[d].scope===a&&(e.type==="keydown"&&r[d].keydown||e.type==="keyup"&&r[d].keyup)&&Dh(e,r[d],a,n);if(!(o in Be))return;const u=Be[o],l=u.length;for(let d=0;d<l;d++)if((e.type==="keydown"&&u[d].keydown||e.type==="keyup"&&u[d].keyup)&&u[d].key){const m=u[d],{splitKey:E}=m,g=m.key.split(E),p=[];for(let v=0;v<g.length;v++)p.push(ii(g[v]));p.sort().join("")===je.sort().join("")&&Dh(e,m,a,n)}}function nn(e,n,r){je=[];const o=Om(e);let a=[],u="all",l=document,d=0,m=!1,E=!0,g="+",p=!1,v=!1;for(r===void 0&&typeof n=="function"&&(r=n),Object.prototype.toString.call(n)==="[object Object]"&&(n.scope&&(u=n.scope),n.element&&(l=n.element),n.keyup&&(m=n.keyup),n.keydown!==void 0&&(E=n.keydown),n.capture!==void 0&&(p=n.capture),typeof n.splitKey=="string"&&(g=n.splitKey),n.single===!0&&(v=!0)),typeof n=="string"&&(u=n),v&&Pm(e,u);d<o.length;d++)e=o[d].split(g),a=[],e.length>1&&(a=xm(rn,e)),e=e[e.length-1],e=e==="*"?"*":ii(e),e in Be||(Be[e]=[]),Be[e].push({keyup:m,keydown:E,scope:u,mods:a,shortcut:o[d],method:r,key:o[d],splitKey:g,element:l});if(typeof l<"u"&&window){if(!Cn.has(l)){const y=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return $h(f,l)},b=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;$h(f,l),vC(f)};Cn.set(l,{keydownListener:y,keyupListenr:b,capture:p}),il(l,"keydown",y,p),il(l,"keyup",b,p)}if(!Xi){const y=()=>{je=[]};Xi={listener:y,capture:p},il(window,"focus",y,p)}}}function mC(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Be).forEach(r=>{Be[r].filter(a=>a.scope===n&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function Vl(e){const n=Object.values(Be).flat();if(n.findIndex(o=>{let{element:a}=o;return a===e})<0){const{keydownListener:o,keyupListenr:a,capture:u}=Cn.get(e)||{};o&&a&&(Bi(e,"keyup",a,u),Bi(e,"keydown",o,u),Cn.delete(e))}if((n.length<=0||Cn.size<=0)&&(Object.keys(Cn).forEach(a=>{const{keydownListener:u,keyupListenr:l,capture:d}=Cn.get(a)||{};u&&l&&(Bi(a,"keyup",l,d),Bi(a,"keydown",u,d),Cn.delete(a))}),Cn.clear(),Object.keys(Be).forEach(a=>delete Be[a]),Xi)){const{listener:a,capture:u}=Xi;Bi(window,"focus",a,u),Xi=null}}const ol={getPressedKeyString:fC,setScope:Tm,getScope:no,deleteScope:hC,getPressedKeyCodes:lC,getAllKeyCodes:cC,isPressed:pC,filter:dC,trigger:mC,unbind:Pm,keyMap:to,modifier:rn,modifierMap:qi};for(const e in ol)Object.prototype.hasOwnProperty.call(ol,e)&&(nn[e]=ol[e]);if(typeof window<"u"){const e=window.hotkeys;nn.noConflict=n=>(n&&window.hotkeys===nn&&(window.hotkeys=e),nn),window.hotkeys=nn}nn.filter=()=>!0;function gC(e,n,r,o){r instanceof Array&&(o=r,r=void 0),o=o||[],r=r||{};const{preventDefault:a=!0}=r,u=B.useCallback((d,m)=>{a&&d.preventDefault(),setTimeout(()=>n(d,m))},o),l=()=>{nn.unbind(e,u)};B.useEffect(()=>(nn(e,r,u),l),[e,r,u])}const yC=e=>{const n=B.useRef(null);return B.useEffect(()=>{const r=o=>{n.current&&!n.current.contains(o.target)&&e(o)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),n};function wC(e){const n=B.useRef();return B.useEffect(()=>{n.current=e},[e]),n.current}function bC(e){const n=B.useRef(e);return B.useEffect(()=>{n.current=e},[e]),n}function SC(e){const n=B.useRef(null);return B.useEffect(()=>{e&&(typeof e=="function"?e(n.current):e.current=n.current)}),n}function EC(e){const[n,r]=B.useState(e),o=(u,l)=>{r(d=>({...d,features:{...d.features,[u]:{enabled:l}}}))},a=B.useCallback((...u)=>u.every(l=>{var d;return(d=n.features[l])==null?void 0:d.enabled}),[n.features]);return{setFeature:o,isFeatureEnabled:a}}const Cm=B.createContext(""),_C=e=>W.jsx(Cm.Provider,{value:e.value,children:e.children}),xC=()=>{const e=B.useContext(Cm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function OC(e){const[n,r]=B.useState(e),o=B.useMemo(()=>AC(n,r),[]);return{state:n,actions:{...o,set:a=>{r(typeof a=="function"?a:u=>({...u,...a}))}}}}function AC(e,n=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Ke.upperFirst(a)}`]:u=>n(l=>({...l,[a]:u}))}),{})}const TC=(e,n,r={})=>{r={timeout:200,...r};const o=B.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return B.useCallback((u,...l)=>{a(),n&&u.detail===1&&(o.current=setTimeout(()=>{n(u,...l)},r.timeout)),u.detail%2===0&&e(u,...l)},[n,e,r.timeout])};function Mn(e){return typeof e=="function"}function Rm(e){var n=function(o){Error.call(o),o.stack=new Error().stack},r=e(n);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var al=Rm(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
143
- `+r.map(function(o,a){return a+1+") "+o.toString()}).join(`
144
- `):"",this.name="UnsubscriptionError",this.errors=r}});function _l(e,n){if(e){var r=e.indexOf(n);0<=r&&e.splice(r,1)}}var Qa=(function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,r,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var d=hl(l),m=d.next();!m.done;m=d.next()){var E=m.value;E.remove(this)}}catch(f){n={error:f}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}else l.remove(this);var g=this.initialTeardown;if(Mn(g))try{g()}catch(f){u=f instanceof al?f.errors:[f]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var v=hl(p),y=v.next();!y.done;y=v.next()){var b=y.value;try{Nh(b)}catch(f){u=u??[],f instanceof al?u=Na(Na([],vl(u)),vl(f.errors)):u.push(f)}}}catch(f){o={error:f}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}}if(u)throw new al(u)}},e.prototype.add=function(n){var r;if(n&&n!==this)if(this.closed)Nh(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(n)}},e.prototype._hasParent=function(n){var r=this._parentage;return r===n||Array.isArray(r)&&r.includes(n)},e.prototype._addParent=function(n){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(n),r):r?[r,n]:n},e.prototype._removeParent=function(n){var r=this._parentage;r===n?this._parentage=null:Array.isArray(r)&&_l(r,n)},e.prototype.remove=function(n){var r=this._finalizers;r&&_l(r,n),n instanceof e&&n._removeParent(this)},e.EMPTY=(function(){var n=new e;return n.closed=!0,n})(),e})(),Im=Qa.EMPTY;function Mm(e){return e instanceof Qa||e&&"closed"in e&&Mn(e.remove)&&Mn(e.add)&&Mn(e.unsubscribe)}function Nh(e){Mn(e)?e():e.unsubscribe()}var PC={Promise:void 0},CC={setTimeout:function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return setTimeout.apply(void 0,Na([e,n],vl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function RC(e){CC.setTimeout(function(){throw e})}function kh(){}function Ma(e){e()}var Fm=(function(e){Ka(n,e);function n(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Mm(r)&&r.add(o)):o.destination=FC,o}return n.create=function(r,o,a){return new xl(r,o,a)},n.prototype.next=function(r){this.isStopped||this._next(r)},n.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(r){this.destination.next(r)},n.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n})(Qa),IC=(function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var r=this.partialObserver;if(r.next)try{r.next(n)}catch(o){_a(o)}},e.prototype.error=function(n){var r=this.partialObserver;if(r.error)try{r.error(n)}catch(o){_a(o)}else _a(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(r){_a(r)}},e})(),xl=(function(e){Ka(n,e);function n(r,o,a){var u=e.call(this)||this,l;return Mn(r)||!r?l={next:r??void 0,error:o??void 0,complete:a??void 0}:l=r,u.destination=new IC(l),u}return n})(Fm);function _a(e){RC(e)}function MC(e){throw e}var FC={closed:!0,next:kh,error:MC,complete:kh},LC=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function DC(e){return e}function $C(e){return e.length===0?DC:e.length===1?e[0]:function(r){return e.reduce(function(o,a){return a(o)},r)}}var jh=(function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var r=new e;return r.source=this,r.operator=n,r},e.prototype.subscribe=function(n,r,o){var a=this,u=kC(n)?n:new xl(n,r,o);return Ma(function(){var l=a,d=l.operator,m=l.source;u.add(d?d.call(u,m):m?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(r){n.error(r)}},e.prototype.forEach=function(n,r){var o=this;return r=Wh(r),new r(function(a,u){var l=new xl({next:function(d){try{n(d)}catch(m){u(m),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)},e.prototype[LC]=function(){return this},e.prototype.pipe=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return $C(n)(this)},e.prototype.toPromise=function(n){var r=this;return n=Wh(n),new n(function(o,a){var u;r.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(n){return new e(n)},e})();function Wh(e){var n;return(n=e??PC.Promise)!==null&&n!==void 0?n:Promise}function NC(e){return e&&Mn(e.next)&&Mn(e.error)&&Mn(e.complete)}function kC(e){return e&&e instanceof Fm||NC(e)&&Mm(e)}var jC=Rm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ln=(function(e){Ka(n,e);function n(){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 n.prototype.lift=function(r){var o=new Uh(this,this);return o.operator=r,o},n.prototype._throwIfClosed=function(){if(this.closed)throw new jC},n.prototype.next=function(r){var o=this;Ma(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=hl(o.currentObservers),d=l.next();!d.done;d=l.next()){var m=d.value;m.next(r)}}catch(E){a={error:E}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},n.prototype.error=function(r){var o=this;Ma(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var a=o.observers;a.length;)a.shift().error(r)}})},n.prototype.complete=function(){var r=this;Ma(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},n.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},n.prototype._innerSubscribe=function(r){var o=this,a=this,u=a.hasError,l=a.isStopped,d=a.observers;return u||l?Im:(this.currentObservers=null,d.push(r),new Qa(function(){o.currentObservers=null,_l(d,r)}))},n.prototype._checkFinalizedStatuses=function(r){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?r.error(u):l&&r.complete()},n.prototype.asObservable=function(){var r=new jh;return r.source=this,r},n.create=function(r,o){return new Uh(r,o)},n})(jh),Uh=(function(e){Ka(n,e);function n(r,o){var a=e.call(this)||this;return a.destination=r,a.source=o,a}return n.prototype.next=function(r){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,r)},n.prototype.error=function(r){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,r)},n.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},n.prototype._subscribe=function(r){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&a!==void 0?a:Im},n})(Ln),Lm=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Lm||{}),Dm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Dm||{});const WC=new Ln,UC=new Ln,$m=new Ln;var Nm=(e=>(e.SAVE_ALL="save-all",e))(Nm||{});const BC=new Ln;var km=(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))(km||{});const zC=new Ln;var jm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(jm||{});const HC=new Ln,qC=new Ln;var ro=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(ro||{});const Wa=new Ln,Yl=31;var Xl=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Yl} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Xl||{});function Wm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Yl)throw new Error(Xl.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function ZC(e){if(!e)return null;if(typeof e=="string")try{Wm(e)}catch(n){return n.message}}function GC(e,n){let r="";if(["array","object"].includes(n))try{const o=JSON.parse(e);n==="array"&&(!Array.isArray(o)||!Ke.isObject(o))&&(r=`Invalid value for type ${n}`),n==="object"&&(!Ke.isObject(o)||Array.isArray(o))&&(r=`Invalid value for type ${n}`)}catch{r=`Invalid value for type ${n}`}return n==="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 ${n}`)),n==="number"&&isNaN(+e)&&(r=`Invalid value for type ${n}`),["boolean","bool"].includes(n)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${n}`),r}function es(e){const n=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(n,"")}var Jl=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Jl||{});const er={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var lt=(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))(lt||{}),rr=(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))(rr||{}),Ql=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Ql||{});const Um="roles.json",Bm="qodlyApp.json",KC="model.4DModel",zm="HTTPHandlers.json",Hm="Shared/i18n.json";function VC(e){const n=ef(e);switch(n){case lt.SETTINGS:return{filename:"Settings",type:n};case lt.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:n};case lt.ROLES:return{filename:"Roles & Privileges",type:n};case lt.LOCALIZATION:return{filename:"Localization",type:n};default:{const r=e.split("/"),[o]=r[1].split(".");return{filename:o,type:n}}}}function ef(e){const n=e.split("."),r=n.pop(),o=n.join(".").split("/")[0];switch(!0){case r==="4DModel":return lt.MODEL;case r==="WebForm":return lt.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&o===er.METHODS):return lt.METHOD;case(["4dm","4qs","4qm"].includes(r)&&o===er.CLASSES):return lt.CLASS;case e===Um:return lt.ROLES;case e===zm:return lt.HTTP_HANDLERS;case e===Bm:return lt.SETTINGS;case e===Hm:return lt.LOCALIZATION;default:return lt.TEXT}}function YC(e,n=!1){switch(e){case er.REPORTS:case"report":return"QoDoc";case er.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case er.CLASSES:case er.METHODS:return n?"4qs":"4dm";default:return""}}function XC(e,n=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:n}class qm{constructor(){this.current=Promise.resolve()}lock(){let n;const r=new Promise(a=>{n=a}),o=this.current.then(()=>n);return this.current=r,o}}function tf(){const e=new qm;return async n=>{const r=await e.lock();try{const o=await n();return r(),o}catch(o){console.error(o),r();return}}}const Zm=Ke.curry((e,n,r)=>e&&Ke.get(r,e)===n),JC=Ke.curry((e,n,r)=>Ke.get(r,e)!==n),QC=Ke.curry((e,n)=>Ke.get(n,"id")!==e),eR=Ke.curry((e,n)=>Ke.get(n,"id")===e),tR=Ke.curry((e,n)=>Ke.get(n,"path")===e);function nR(e="id",n,r){return r.findIndex(Zm(e,n))!==-1}function rR(e){if(!e)return"";const{id:n,namespace:r}=e;return r&&n?`${r}:${n}`:n}function Gm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function iR(e){return e.type==="object"}function Km(e){var n;return e.kind==="relatedEntities"||((n=e.type)==null?void 0:n.includes("Selection"))||e.behavior==="relatedEntities"}function Vm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Gm(e)}function oR(e){return Km(e)||Vm(e)}function aR(e){return e.applyTo==="dataStore"}function sR(e){return e.applyTo==="dataClass"}function uR(e){return e.applyTo==="entity"}function lR(e){return e.applyTo==="entityCollection"}function fR(e){return e.type==="entity"}function cR(e){return e.type==="entitysel"}function Ym(e){return e.dataType==="array"}function Xm(e){return e.dataType==="object"}function Jm(e){return e.type==="scalar"}function dR(e){return Ym(e)||Xm(e)||Jm(e)}const pR=e=>e!=null&&e.type==="entity",hR=e=>e.type==="entitysel",vR=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",mR=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",gR=e=>e.type==="scalar"&&e.dataType==="date";function yR(){return new Promise((e,n)=>{window.addEventListener("bundle:ready",r=>r.data?e():n(r.caughtErr))})}function wR(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var io=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(io||{}),Qm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Qm||{}),nf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(nf||{});const bR={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function SR(e){var u;let n={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";n=JSON.parse(l)}catch{}const{published4DMobile:r,...o}=n;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:io.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:nf.table}},...o}}function eg(e){const n={};return e.invisible&&(n.invisible=!0),e.shared&&(n.shared=!0),e.executedOnServer&&(n.executedOnServer=!0),e.preemptive&&[io.capable,io.incapable].includes(e.preemptive)&&(n.preemptive=e.preemptive),e.publishedSoap&&(n.publishedSoap=!0,e.publishedWsdl&&(n.publishedWsdl=!0)),e.publishedWeb&&(n.publishedWeb=!0),e.publishedSql&&(n.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(n.published4DMobile=e.publishedRestOptions),JSON.stringify(n).replace(/"(true|false)"/g,"$1")}function ER(e,n,r=!1){const o=Ke.isString(n)?n:eg(n);if(!r&&tg(e))return e;const a=ng(e);return`//%attributes = ${o}\r
145
- ${a}`}function tg(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function ng(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const _R=()=>Nl.uuid().replaceAll("-","").toUpperCase(),Ye="/rest/$designer",po="/rest/$designer-ext";function xR(...e){return n=>{if(e.length===0)return n;const r={...n};return e.forEach(o=>{typeof r[o]=="string"&&(r[o]=new Date(r[o]))}),r}}class Ol extends Error{constructor(n,r,o){super(),this.url=n,this.response=r,this.data=o}log(){console.error("Error while sending the request",this)}}async function Fe(e,n){var a;Wa.next({action:ro.REQUEST_SENT});const r=await window.fetch(e,n);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let u;try{const l=await r.json();((a=l==null?void 0:l.__ERROR)==null?void 0:a.some(m=>m.errCode===1651))&&Wa.next({action:ro.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),u=new Ol(e,r,l)}catch{u=new Ol(e,r)}throw u.log(),u}return await r.json()}function OR(e){return Wa.next({action:ro.REQUEST_SENT}),e}var fn={},ut={},Bh;function yr(){if(Bh)return ut;Bh=1;var e=ut.ValidationError=function(f,w,c,S,_,P){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(I,z){return I+d(z)},"instance")):S!==void 0&&(this.property=S),f&&(this.message=f),c){var A=c.$id||c.id;this.schema=A||c}w!==void 0&&(this.instance=w),this.name=_,this.argument=P,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var n=ut.ValidatorResult=function(f,w,c,S){this.instance=f,this.schema=w,this.options=c,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=c&&c.throwError,this.throwFirst=c&&c.throwFirst,this.throwAll=c&&c.throwAll,this.disableFormat=c&&c.disableFormat===!0};n.prototype.addError=function(f){var w;if(typeof f=="string")w=new e(f,this.instance,this.schema,this.path);else{if(!f)throw new Error("Missing error detail");if(!f.message)throw new Error("Missing error message");if(!f.name)throw new Error("Missing validator type");w=new e(f.message,this.instance,this.schema,this.path,f.name,f.argument)}if(this.errors.push(w),this.throwFirst)throw new o(this);if(this.throwError)throw w;return w},n.prototype.importErrors=function(f){typeof f=="string"||f&&f.validatorType?this.addError(f):f&&f.errors&&(this.errors=this.errors.concat(f.errors))};function r(b,f){return f+": "+b.toString()+`
146
- `}n.prototype.toString=function(f){return this.errors.map(r).join("")},Object.defineProperty(n.prototype,"valid",{get:function(){return!this.errors.length}}),ut.ValidatorResultError=o;function o(b){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o),this.instance=b.instance,this.schema=b.schema,this.options=b.options,this.errors=b.errors}o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="Validation Error";var a=ut.SchemaError=function b(f,w){this.message=f,this.schema=w,Error.call(this,f),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,b)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var u=ut.SchemaContext=function(f,w,c,S,_){this.schema=f,this.options=w,Array.isArray(c)?(this.path=c,this.propertyPath=c.reduce(function(P,A){return P+d(A)},"instance")):this.propertyPath=c,this.base=S,this.schemas=_};u.prototype.resolve=function(f){return y(this.base,f)},u.prototype.makeChild=function(f,w){var c=w===void 0?this.path:this.path.concat([w]),S=f.$id||f.id;let _=y(this.base,S||"");var P=new u(f,this.options,c,_,Object.create(this.schemas));return S&&!P.schemas[_]&&(P.schemas[_]=f),P};var l=ut.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(b){return typeof b=="string"&&parseFloat(b)===parseInt(b,10)&&!isNaN(b)},regex:function(b){var f=!0;try{new RegExp(b)}catch{f=!1}return f},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"],ut.isFormat=function(f,w,c){if(typeof f=="string"&&l[w]!==void 0){if(l[w]instanceof RegExp)return l[w].test(f);if(typeof l[w]=="function")return l[w](f)}else if(c&&c.customFormats&&typeof c.customFormats[w]=="function")return c.customFormats[w](f);return!0};var d=ut.makeSuffix=function(f){return f=f.toString(),!f.match(/[.\s\[\]]/)&&!f.match(/^[\d]/)?"."+f:f.match(/^\d+$/)?"["+f+"]":"["+JSON.stringify(f)+"]"};ut.deepCompareStrict=function b(f,w){if(typeof f!=typeof w)return!1;if(Array.isArray(f))return!Array.isArray(w)||f.length!==w.length?!1:f.every(function(_,P){return b(f[P],w[P])});if(typeof f=="object"){if(!f||!w)return f===w;var c=Object.keys(f),S=Object.keys(w);return c.length!==S.length?!1:c.every(function(_){return b(f[_],w[_])})}return f===w};function m(b,f,w,c){typeof w=="object"?f[c]=p(b[c],w):b.indexOf(w)===-1&&f.push(w)}function E(b,f,w){f[w]=b[w]}function g(b,f,w,c){typeof f[c]!="object"||!f[c]?w[c]=f[c]:b[c]?w[c]=p(b[c],f[c]):w[c]=f[c]}function p(b,f){var w=Array.isArray(f),c=w&&[]||{};return w?(b=b||[],c=c.concat(b),f.forEach(m.bind(null,b,c))):(b&&typeof b=="object"&&Object.keys(b).forEach(E.bind(null,b,c)),Object.keys(f).forEach(g.bind(null,b,f,c))),c}ut.deepMerge=p,ut.objectGetPath=function(f,w){for(var c=w.split("/").slice(1),S;typeof(S=c.shift())=="string";){var _=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(_ in f))return;f=f[_]}return f};function v(b){return"/"+encodeURIComponent(b).replace(/~/g,"%7E")}ut.encodePath=function(f){return f.map(v).join("")},ut.getDecimalPlaces=function(f){var w=0;if(isNaN(f))return w;typeof f!="number"&&(f=Number(f));var c=f.toString().split("e");if(c.length===2){if(c[1][0]!=="-")return w;w=Number(c[1].slice(1))}var S=c[0].split(".");return S.length===2&&(w+=S[1].length),w},ut.isSchema=function(f){return typeof f=="object"&&f||typeof f=="boolean"};var y=ut.resolveUrl=function(f,w){const c=new URL(w,new URL(f,"resolve://"));if(c.protocol==="resolve:"){const{pathname:S,search:_,hash:P}=c;return S+_+P}return c.toString()};return ut}var sl,zh;function AR(){if(zh)return sl;zh=1;var e=yr(),n=e.ValidatorResult,r=e.SchemaError,o={};o.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var a=o.validators={};a.type=function(p,v,y,b){if(p===void 0)return null;var f=new n(p,v,y,b),w=Array.isArray(v.type)?v.type:[v.type];if(!w.some(this.testType.bind(this,p,v,y,b))){var c=w.map(function(S){if(S){var _=S.$id||S.id;return _?"<"+_+">":S+""}});f.addError({name:"type",argument:c,message:"is not of a type(s) "+c})}return f};function u(g,p,v,y,b){var f=p.throwError,w=p.throwAll;p.throwError=!1,p.throwAll=!1;var c=this.validateSchema(g,b,p,v);return p.throwError=f,p.throwAll=w,!c.valid&&y instanceof Function&&y(c),c.valid}a.anyOf=function(p,v,y,b){if(p===void 0)return null;var f=new n(p,v,y,b),w=new n(p,v,y,b);if(!Array.isArray(v.anyOf))throw new r("anyOf must be an array");if(!v.anyOf.some(u.bind(this,p,y,b,function(S){w.importErrors(S)}))){var c=v.anyOf.map(function(S,_){var P=S.$id||S.id;return P?"<"+P+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+_+"]"});y.nestedErrors&&f.importErrors(w),f.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return f},a.allOf=function(p,v,y,b){if(p===void 0)return null;if(!Array.isArray(v.allOf))throw new r("allOf must be an array");var f=new n(p,v,y,b),w=this;return v.allOf.forEach(function(c,S){var _=w.validateSchema(p,c,y,b);if(!_.valid){var P=c.$id||c.id,A=P||c.title&&JSON.stringify(c.title)||c.$ref&&"<"+c.$ref+">"||"[subschema "+S+"]";f.addError({name:"allOf",argument:{id:A,length:_.errors.length,valid:_},message:"does not match allOf schema "+A+" with "+_.errors.length+" error[s]:"}),f.importErrors(_)}}),f},a.oneOf=function(p,v,y,b){if(p===void 0)return null;if(!Array.isArray(v.oneOf))throw new r("oneOf must be an array");var f=new n(p,v,y,b),w=new n(p,v,y,b),c=v.oneOf.filter(u.bind(this,p,y,b,function(_){w.importErrors(_)})).length,S=v.oneOf.map(function(_,P){var A=_.$id||_.id;return A||_.title&&JSON.stringify(_.title)||_.$ref&&"<"+_.$ref+">"||"[subschema "+P+"]"});return c!==1&&(y.nestedErrors&&f.importErrors(w),f.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),f},a.if=function(p,v,y,b){if(p===void 0)return null;if(!e.isSchema(v.if))throw new Error('Expected "if" keyword to be a schema');var f=u.call(this,p,y,b,null,v.if),w=new n(p,v,y,b),c;if(f){if(v.then===void 0)return;if(!e.isSchema(v.then))throw new Error('Expected "then" keyword to be a schema');c=this.validateSchema(p,v.then,y,b.makeChild(v.then)),w.importErrors(c)}else{if(v.else===void 0)return;if(!e.isSchema(v.else))throw new Error('Expected "else" keyword to be a schema');c=this.validateSchema(p,v.else,y,b.makeChild(v.else)),w.importErrors(c)}return w};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]}}a.propertyNames=function(p,v,y,b){if(this.types.object(p)){var f=new n(p,v,y,b),w=v.propertyNames!==void 0?v.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var c in p)if(l(p,c)!==void 0){var S=this.validateSchema(c,w,y,b.makeChild(w));f.importErrors(S)}return f}},a.properties=function(p,v,y,b){if(this.types.object(p)){var f=new n(p,v,y,b),w=v.properties||{};for(var c in w){var S=w[c];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(p,c,S,y,b);var _=l(p,c),P=this.validateSchema(_,S,y,b.makeChild(S,c));P.instance!==f.instance[c]&&(f.instance[c]=P.instance),f.importErrors(P)}}return f}};function d(g,p,v,y,b,f){if(this.types.object(g)&&!(p.properties&&p.properties[b]!==void 0))if(p.additionalProperties===!1)f.addError({name:"additionalProperties",argument:b,message:"is not allowed to have the additional property "+JSON.stringify(b)});else{var w=p.additionalProperties||{};typeof v.preValidateProperty=="function"&&v.preValidateProperty(g,b,w,v,y);var c=this.validateSchema(g[b],w,v,y.makeChild(w,b));c.instance!==f.instance[b]&&(f.instance[b]=c.instance),f.importErrors(c)}}a.patternProperties=function(p,v,y,b){if(this.types.object(p)){var f=new n(p,v,y,b),w=v.patternProperties||{};for(var c in p){var S=!0;for(var _ in w){var P=w[_];if(P!==void 0){if(P===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var A=new RegExp(_,"u")}catch{A=new RegExp(_)}if(A.test(c)){S=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(p,c,P,y,b);var I=this.validateSchema(p[c],P,y,b.makeChild(P,c));I.instance!==f.instance[c]&&(f.instance[c]=I.instance),f.importErrors(I)}}}S&&d.call(this,p,v,y,b,c,f)}return f}},a.additionalProperties=function(p,v,y,b){if(this.types.object(p)){if(v.patternProperties)return null;var f=new n(p,v,y,b);for(var w in p)d.call(this,p,v,y,b,w,f);return f}},a.minProperties=function(p,v,y,b){if(this.types.object(p)){var f=new n(p,v,y,b),w=Object.keys(p);return w.length>=v.minProperties||f.addError({name:"minProperties",argument:v.minProperties,message:"does not meet minimum property length of "+v.minProperties}),f}},a.maxProperties=function(p,v,y,b){if(this.types.object(p)){var f=new n(p,v,y,b),w=Object.keys(p);return w.length<=v.maxProperties||f.addError({name:"maxProperties",argument:v.maxProperties,message:"does not meet maximum property length of "+v.maxProperties}),f}},a.items=function(p,v,y,b){var f=this;if(this.types.array(p)&&v.items!==void 0){var w=new n(p,v,y,b);return p.every(function(c,S){if(Array.isArray(v.items))var _=v.items[S]===void 0?v.additionalItems:v.items[S];else var _=v.items;if(_===void 0)return!0;if(_===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var P=f.validateSchema(c,_,y,b.makeChild(_,S));return P.instance!==w.instance[S]&&(w.instance[S]=P.instance),w.importErrors(P),!0}),w}},a.contains=function(p,v,y,b){var f=this;if(this.types.array(p)&&v.contains!==void 0){if(!e.isSchema(v.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new n(p,v,y,b),c=p.some(function(S,_){var P=f.validateSchema(S,v.contains,y,b.makeChild(v.contains,_));return P.errors.length===0});return c===!1&&w.addError({name:"contains",argument:v.contains,message:"must contain an item matching given schema"}),w}},a.minimum=function(p,v,y,b){if(this.types.number(p)){var f=new n(p,v,y,b);return v.exclusiveMinimum&&v.exclusiveMinimum===!0?p>v.minimum||f.addError({name:"minimum",argument:v.minimum,message:"must be greater than "+v.minimum}):p>=v.minimum||f.addError({name:"minimum",argument:v.minimum,message:"must be greater than or equal to "+v.minimum}),f}},a.maximum=function(p,v,y,b){if(this.types.number(p)){var f=new n(p,v,y,b);return v.exclusiveMaximum&&v.exclusiveMaximum===!0?p<v.maximum||f.addError({name:"maximum",argument:v.maximum,message:"must be less than "+v.maximum}):p<=v.maximum||f.addError({name:"maximum",argument:v.maximum,message:"must be less than or equal to "+v.maximum}),f}},a.exclusiveMinimum=function(p,v,y,b){if(typeof v.exclusiveMinimum!="boolean"&&this.types.number(p)){var f=new n(p,v,y,b),w=p>v.exclusiveMinimum;return w||f.addError({name:"exclusiveMinimum",argument:v.exclusiveMinimum,message:"must be strictly greater than "+v.exclusiveMinimum}),f}},a.exclusiveMaximum=function(p,v,y,b){if(typeof v.exclusiveMaximum!="boolean"&&this.types.number(p)){var f=new n(p,v,y,b),w=p<v.exclusiveMaximum;return w||f.addError({name:"exclusiveMaximum",argument:v.exclusiveMaximum,message:"must be strictly less than "+v.exclusiveMaximum}),f}};var m=function(p,v,y,b,f,w){if(this.types.number(p)){var c=v[f];if(c==0)throw new r(f+" cannot be zero");var S=new n(p,v,y,b),_=e.getDecimalPlaces(p),P=e.getDecimalPlaces(c),A=Math.max(_,P),I=Math.pow(10,A);return Math.round(p*I)%Math.round(c*I)!==0&&S.addError({name:f,argument:c,message:w+JSON.stringify(c)}),S}};a.multipleOf=function(p,v,y,b){return m.call(this,p,v,y,b,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(p,v,y,b){return m.call(this,p,v,y,b,"divisibleBy","is not divisible by (multiple of) ")},a.required=function(p,v,y,b){var f=new n(p,v,y,b);return p===void 0&&v.required===!0?f.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(v.required)&&v.required.forEach(function(w){l(p,w)===void 0&&f.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),f},a.pattern=function(p,v,y,b){if(this.types.string(p)){var f=new n(p,v,y,b),w=v.pattern;try{var c=new RegExp(w,"u")}catch{c=new RegExp(w)}return p.match(c)||f.addError({name:"pattern",argument:v.pattern,message:"does not match pattern "+JSON.stringify(v.pattern.toString())}),f}},a.format=function(p,v,y,b){if(p!==void 0){var f=new n(p,v,y,b);return!f.disableFormat&&!e.isFormat(p,v.format,this)&&f.addError({name:"format",argument:v.format,message:"does not conform to the "+JSON.stringify(v.format)+" format"}),f}},a.minLength=function(p,v,y,b){if(this.types.string(p)){var f=new n(p,v,y,b),w=p.match(/[\uDC00-\uDFFF]/g),c=p.length-(w?w.length:0);return c>=v.minLength||f.addError({name:"minLength",argument:v.minLength,message:"does not meet minimum length of "+v.minLength}),f}},a.maxLength=function(p,v,y,b){if(this.types.string(p)){var f=new n(p,v,y,b),w=p.match(/[\uDC00-\uDFFF]/g),c=p.length-(w?w.length:0);return c<=v.maxLength||f.addError({name:"maxLength",argument:v.maxLength,message:"does not meet maximum length of "+v.maxLength}),f}},a.minItems=function(p,v,y,b){if(this.types.array(p)){var f=new n(p,v,y,b);return p.length>=v.minItems||f.addError({name:"minItems",argument:v.minItems,message:"does not meet minimum length of "+v.minItems}),f}},a.maxItems=function(p,v,y,b){if(this.types.array(p)){var f=new n(p,v,y,b);return p.length<=v.maxItems||f.addError({name:"maxItems",argument:v.maxItems,message:"does not meet maximum length of "+v.maxItems}),f}};function E(g,p,v){var y,b=v.length;for(y=p+1,b;y<b;y++)if(e.deepCompareStrict(g,v[y]))return!1;return!0}return a.uniqueItems=function(p,v,y,b){if(v.uniqueItems===!0&&this.types.array(p)){var f=new n(p,v,y,b);return p.every(E)||f.addError({name:"uniqueItems",message:"contains duplicate item"}),f}},a.dependencies=function(p,v,y,b){if(this.types.object(p)){var f=new n(p,v,y,b);for(var w in v.dependencies)if(p[w]!==void 0){var c=v.dependencies[w],S=b.makeChild(c,w);if(typeof c=="string"&&(c=[c]),Array.isArray(c))c.forEach(function(P){p[P]===void 0&&f.addError({name:"dependencies",argument:S.propertyPath,message:"property "+P+" not found, required by "+S.propertyPath})});else{var _=this.validateSchema(p,c,y,S);f.instance!==_.instance&&(f.instance=_.instance),_&&_.errors.length&&(f.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),f.importErrors(_))}}return f}},a.enum=function(p,v,y,b){if(p===void 0)return null;if(!Array.isArray(v.enum))throw new r("enum expects an array",v);var f=new n(p,v,y,b);return v.enum.some(e.deepCompareStrict.bind(null,p))||f.addError({name:"enum",argument:v.enum,message:"is not one of enum values: "+v.enum.map(String).join(",")}),f},a.const=function(p,v,y,b){if(p===void 0)return null;var f=new n(p,v,y,b);return e.deepCompareStrict(v.const,p)||f.addError({name:"const",argument:v.const,message:"does not exactly match expected constant: "+v.const}),f},a.not=a.disallow=function(p,v,y,b){var f=this;if(p===void 0)return null;var w=new n(p,v,y,b),c=v.not||v.disallow;return c?(Array.isArray(c)||(c=[c]),c.forEach(function(S){if(f.testType(p,v,y,b,S)){var _=S&&(S.$id||S.id),P=_||S;w.addError({name:"not",argument:P,message:"is of prohibited type "+P})}}),w):null},sl=o,sl}var xa={},Hh;function Al(){if(Hh)return xa;Hh=1;var e=yr();xa.SchemaScanResult=n;function n(r,o){this.id=r,this.ref=o}return xa.scan=function(o,a){function u(g,p){if(!p||typeof p!="object")return;if(p.$ref){let f=e.resolveUrl(g,p.$ref);E[f]=E[f]?E[f]+1:0;return}var v=p.$id||p.id;let y=e.resolveUrl(g,v);var b=v?y:g;if(b){if(b.indexOf("#")<0&&(b+="#"),m[b]){if(!e.deepCompareStrict(m[b],p))throw new Error("Schema <"+b+"> already exists with different definition");return m[b]}m[b]=p,b[b.length-1]=="#"&&(m[b.substring(0,b.length-1)]=p)}l(b+"/items",Array.isArray(p.items)?p.items:[p.items]),l(b+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),u(b+"/additionalItems",p.additionalItems),d(b+"/properties",p.properties),u(b+"/additionalProperties",p.additionalProperties),d(b+"/definitions",p.definitions),d(b+"/patternProperties",p.patternProperties),d(b+"/dependencies",p.dependencies),l(b+"/disallow",p.disallow),l(b+"/allOf",p.allOf),l(b+"/anyOf",p.anyOf),l(b+"/oneOf",p.oneOf),u(b+"/not",p.not)}function l(g,p){if(Array.isArray(p))for(var v=0;v<p.length;v++)u(g+"/"+v,p[v])}function d(g,p){if(!(!p||typeof p!="object"))for(var v in p)u(g+"/"+v,p[v])}var m={},E={};return u(o,a),new n(m,E)},xa}var ul,qh;function TR(){if(qh)return ul;qh=1;var e=AR(),n=yr(),r=Al().scan,o=n.ValidatorResult,a=n.ValidatorResultError,u=n.SchemaError,l=n.SchemaContext,d="/",m=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),this.attributes=Object.create(e.validators)};m.prototype.customFormats={},m.prototype.schemas=null,m.prototype.types=null,m.prototype.attributes=null,m.prototype.unresolvedRefs=null,m.prototype.addSchema=function(v,y){var b=this;if(!v)return null;var f=r(y||d,v),w=y||v.$id||v.id;for(var c in f.id)this.schemas[c]=f.id[c];for(var c in f.ref)this.unresolvedRefs.push(c);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof b.schemas[S]>"u"}),this.schemas[w]},m.prototype.addSubSchemaArray=function(v,y){if(Array.isArray(y))for(var b=0;b<y.length;b++)this.addSubSchema(v,y[b])},m.prototype.addSubSchemaObject=function(v,y){if(!(!y||typeof y!="object"))for(var b in y)this.addSubSchema(v,y[b])},m.prototype.setSchemas=function(v){this.schemas=v},m.prototype.getSchema=function(v){return this.schemas[v]},m.prototype.validate=function(v,y,b,f){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new u("Expected `schema` to be an object or boolean");b||(b={});var w=y.$id||y.id;let c=n.resolveUrl(b.base,w||"");if(!f){f=new l(y,b,[],c,Object.create(this.schemas)),f.schemas[c]||(f.schemas[c]=y);var S=r(c,y);for(var _ in S.id){var P=S.id[_];f.schemas[_]=P}}if(b.required&&v===void 0){var A=new o(v,y,b,f);return A.addError("is required, but is undefined"),A}var A=this.validateSchema(v,y,b,f);if(A){if(b.throwAll&&A.errors.length)throw new a(A)}else throw new Error("Result undefined");return A};function E(p){var v=typeof p=="string"?p:p.$ref;return typeof v=="string"?v:!1}m.prototype.validateSchema=function(v,y,b,f){var w=new o(v,y,b,f);if(typeof y=="boolean")y===!0?y={}:y===!1&&(y={type:[]});else if(!y)throw new Error("schema is undefined");if(y.extends)if(Array.isArray(y.extends)){var c={schema:y,ctx:f};y.extends.forEach(this.schemaTraverser.bind(this,c)),y=c.schema,c.schema=null,c.ctx=null,c=null}else y=n.deepMerge(y,this.superResolve(y.extends,f));var S=E(y);if(S){var _=this.resolve(y,S,f),P=new l(_.subschema,b,f.path,_.switchSchema,f.schemas);return this.validateSchema(v,_.subschema,b,P)}var A=b&&b.skipAttributes||[];for(var I in y)if(!e.ignoreProperties[I]&&A.indexOf(I)<0){var z=null,L=this.attributes[I];if(L)z=L.call(this,v,y,b,f);else if(b.allowUnknownAttributes===!1)throw new u("Unsupported attribute: "+I,y);z&&w.importErrors(z)}if(typeof b.rewrite=="function"){var D=b.rewrite.call(this,v,y,b,f);w.instance=D}return w},m.prototype.schemaTraverser=function(v,y){v.schema=n.deepMerge(v.schema,this.superResolve(y,v.ctx))},m.prototype.superResolve=function(v,y){var b=E(v);return b?this.resolve(v,b,y).subschema:v},m.prototype.resolve=function(v,y,b){if(y=b.resolve(y),b.schemas[y])return{subschema:b.schemas[y],switchSchema:y};let w=new URL(y,"thismessage::/").hash;var c=w&&w.length&&y.substr(0,y.length-w.length);if(!c||!b.schemas[c])throw new u("no such schema <"+y+">",v);var S=n.objectGetPath(b.schemas[c],w.substr(1));if(S===void 0)throw new u("no such schema "+w+" located in <"+c+">",v);return{subschema:S,switchSchema:y}},m.prototype.testType=function(v,y,b,f,w){if(w!==void 0){if(w===null)throw new u('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,v);if(w&&typeof w=="object"){var c=this.validateSchema(v,w,b,f);return c===void 0||!(c&&c.errors.length)}return!0}};var g=m.prototype.types={};return g.string=function(v){return typeof v=="string"},g.number=function(v){return typeof v=="number"&&isFinite(v)},g.integer=function(v){return typeof v=="number"&&v%1===0},g.boolean=function(v){return typeof v=="boolean"},g.array=function(v){return Array.isArray(v)},g.null=function(v){return v===null},g.date=function(v){return v instanceof Date},g.any=function(v){return!0},g.object=function(v){return v&&typeof v=="object"&&!Array.isArray(v)&&!(v instanceof Date)},ul=m,ul}var Zh;function PR(){if(Zh)return fn;Zh=1;var e=fn.Validator=TR();return fn.ValidatorResult=yr().ValidatorResult,fn.ValidatorResultError=yr().ValidatorResultError,fn.ValidationError=yr().ValidationError,fn.SchemaError=yr().SchemaError,fn.SchemaScanResult=Al().SchemaScanResult,fn.scan=Al().scan,fn.validate=function(n,r,o){var a=new e;return a.validate(n,r,o)},fn}var CR=PR();const rg=(e,n,r)=>{const o=e instanceof RegExp?Gh(e,r):e,a=n instanceof RegExp?Gh(n,r):n,u=o!==null&&a!=null&&RR(o,a,r);return u&&{start:u[0],end:u[1],pre:r.slice(0,u[0]),body:r.slice(u[0]+o.length,u[1]),post:r.slice(u[1]+a.length)}},Gh=(e,n)=>{const r=n.match(e);return r?r[0]:null},RR=(e,n,r)=>{let o,a,u,l,d,m=r.indexOf(e),E=r.indexOf(n,m+1),g=m;if(m>=0&&E>0){if(e===n)return[m,E];for(o=[],u=r.length;g>=0&&!d;){if(g===m)o.push(g),m=r.indexOf(e,g+1);else if(o.length===1){const p=o.pop();p!==void 0&&(d=[p,E])}else a=o.pop(),a!==void 0&&a<u&&(u=a,l=E),E=r.indexOf(n,g+1);g=m<E&&m>=0?m:E}o.length&&l!==void 0&&(d=[u,l])}return d},ig="\0SLASH"+Math.random()+"\0",og="\0OPEN"+Math.random()+"\0",rf="\0CLOSE"+Math.random()+"\0",ag="\0COMMA"+Math.random()+"\0",sg="\0PERIOD"+Math.random()+"\0",IR=new RegExp(ig,"g"),MR=new RegExp(og,"g"),FR=new RegExp(rf,"g"),LR=new RegExp(ag,"g"),DR=new RegExp(sg,"g"),$R=/\\\\/g,NR=/\\{/g,kR=/\\}/g,jR=/\\,/g,WR=/\\./g;function ll(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function UR(e){return e.replace($R,ig).replace(NR,og).replace(kR,rf).replace(jR,ag).replace(WR,sg)}function BR(e){return e.replace(IR,"\\").replace(MR,"{").replace(FR,"}").replace(LR,",").replace(DR,".")}function ug(e){if(!e)return[""];const n=[],r=rg("{","}",e);if(!r)return e.split(",");const{pre:o,body:a,post:u}=r,l=o.split(",");l[l.length-1]+="{"+a+"}";const d=ug(u);return u.length&&(l[l.length-1]+=d.shift(),l.push.apply(l,d)),n.push.apply(n,l),n}function zR(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Zi(UR(e),!0).map(BR)):[]}function HR(e){return"{"+e+"}"}function qR(e){return/^-?0\d/.test(e)}function ZR(e,n){return e<=n}function GR(e,n){return e>=n}function Zi(e,n){const r=[],o=rg("{","}",e);if(!o)return[e];const a=o.pre,u=o.post.length?Zi(o.post,!1):[""];if(/\$$/.test(o.pre))for(let l=0;l<u.length;l++){const d=a+"{"+o.body+"}"+u[l];r.push(d)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),m=l||d,E=o.body.indexOf(",")>=0;if(!m&&!E)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+rf+o.post,Zi(e)):[e];let g;if(m)g=o.body.split(/\.\./);else if(g=ug(o.body),g.length===1&&g[0]!==void 0&&(g=Zi(g[0],!1).map(HR),g.length===1))return u.map(v=>o.pre+g[0]+v);let p;if(m&&g[0]!==void 0&&g[1]!==void 0){const v=ll(g[0]),y=ll(g[1]),b=Math.max(g[0].length,g[1].length);let f=g.length===3&&g[2]!==void 0?Math.abs(ll(g[2])):1,w=ZR;y<v&&(f*=-1,w=GR);const S=g.some(qR);p=[];for(let _=v;w(_,y);_+=f){let P;if(d)P=String.fromCharCode(_),P==="\\"&&(P="");else if(P=String(_),S){const A=b-P.length;if(A>0){const I=new Array(A+1).join("0");_<0?P="-"+I+P.slice(1):P=I+P}}p.push(P)}}else{p=[];for(let v=0;v<g.length;v++)p.push.apply(p,Zi(g[v],!1))}for(let v=0;v<p.length;v++)for(let y=0;y<u.length;y++){const b=a+p[v]+u[y];(!n||m||b)&&r.push(b)}}return r}const KR=1024*64,Ua=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>KR)throw new TypeError("pattern is too long")},VR={"[: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]},zi=e=>e.replace(/[[\]\\-]/g,"\\$&"),YR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Kh=e=>e.join(""),XR=(e,n)=>{const r=n;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const o=[],a=[];let u=r+1,l=!1,d=!1,m=!1,E=!1,g=r,p="";e:for(;u<e.length;){const f=e.charAt(u);if((f==="!"||f==="^")&&u===r+1){E=!0,u++;continue}if(f==="]"&&l&&!m){g=u+1;break}if(l=!0,f==="\\"&&!m){m=!0,u++;continue}if(f==="["&&!m){for(const[w,[c,S,_]]of Object.entries(VR))if(e.startsWith(w,u)){if(p)return["$.",!1,e.length-r,!0];u+=w.length,_?a.push(c):o.push(c),d=d||S;continue e}}if(m=!1,p){f>p?o.push(zi(p)+"-"+zi(f)):f===p&&o.push(zi(f)),p="",u++;continue}if(e.startsWith("-]",u+1)){o.push(zi(f+"-")),u+=2;continue}if(e.startsWith("-",u+1)){p=f,u+=2;continue}o.push(zi(f)),u++}if(g<u)return["",!1,0,!1];if(!o.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&o.length===1&&/^\\?.$/.test(o[0])&&!E){const f=o[0].length===2?o[0].slice(-1):o[0];return[YR(f),!1,g-r,!1]}const v="["+(E?"^":"")+Kh(o)+"]",y="["+(E?"":"^")+Kh(a)+"]";return[o.length&&a.length?"("+v+"|"+y+")":o.length?v:y,d,g-r,!0]},Gi=(e,{windowsPathsNoEscape:n=!1}={})=>n?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),JR=new Set(["!","?","+","*","@"]),Vh=e=>JR.has(e),QR="(?!(?:^|/)\\.\\.?(?:$|/))",Oa="(?!\\.)",eI=new Set(["[","."]),tI=new Set(["..","."]),nI=new Set("().*{}+?[]^$\\!"),rI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),of="[^/]",Yh=of+"*?",Xh=of+"+?";var et,it,In,ke,Ge,Xn,wr,Jn,cn,br,oo,Ar,lg,tr,Fa,Tl,fg;const bt=class bt{constructor(n,r,o={}){Ot(this,Ar);Qe(this,"type");Ot(this,et);Ot(this,it);Ot(this,In,!1);Ot(this,ke,[]);Ot(this,Ge);Ot(this,Xn);Ot(this,wr);Ot(this,Jn,!1);Ot(this,cn);Ot(this,br);Ot(this,oo,!1);this.type=n,n&&Ze(this,it,!0),Ze(this,Ge,r),Ze(this,et,ne(this,Ge)?ne(ne(this,Ge),et):this),Ze(this,cn,ne(this,et)===this?o:ne(ne(this,et),cn)),Ze(this,wr,ne(this,et)===this?[]:ne(ne(this,et),wr)),n==="!"&&!ne(ne(this,et),Jn)&&ne(this,wr).push(this),Ze(this,Xn,ne(this,Ge)?ne(ne(this,Ge),ke).length:0)}get hasMagic(){if(ne(this,it)!==void 0)return ne(this,it);for(const n of ne(this,ke))if(typeof n!="string"&&(n.type||n.hasMagic))return Ze(this,it,!0);return ne(this,it)}toString(){return ne(this,br)!==void 0?ne(this,br):this.type?Ze(this,br,this.type+"("+ne(this,ke).map(n=>String(n)).join("|")+")"):Ze(this,br,ne(this,ke).map(n=>String(n)).join(""))}push(...n){for(const r of n)if(r!==""){if(typeof r!="string"&&!(r instanceof bt&&ne(r,Ge)===this))throw new Error("invalid part: "+r);ne(this,ke).push(r)}}toJSON(){var r;const n=this.type===null?ne(this,ke).slice().map(o=>typeof o=="string"?o:o.toJSON()):[this.type,...ne(this,ke).map(o=>o.toJSON())];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===ne(this,et)||ne(ne(this,et),Jn)&&((r=ne(this,Ge))==null?void 0:r.type)==="!")&&n.push({}),n}isStart(){var r;if(ne(this,et)===this)return!0;if(!((r=ne(this,Ge))!=null&&r.isStart()))return!1;if(ne(this,Xn)===0)return!0;const n=ne(this,Ge);for(let o=0;o<ne(this,Xn);o++){const a=ne(n,ke)[o];if(!(a instanceof bt&&a.type==="!"))return!1}return!0}isEnd(){var r,o,a;if(ne(this,et)===this||((r=ne(this,Ge))==null?void 0:r.type)==="!")return!0;if(!((o=ne(this,Ge))!=null&&o.isEnd()))return!1;if(!this.type)return(a=ne(this,Ge))==null?void 0:a.isEnd();const n=ne(this,Ge)?ne(ne(this,Ge),ke).length:0;return ne(this,Xn)===n-1}copyIn(n){typeof n=="string"?this.push(n):this.push(n.clone(this))}clone(n){const r=new bt(this.type,n);for(const o of ne(this,ke))r.copyIn(o);return r}static fromGlob(n,r={}){var a;const o=new bt(null,void 0,r);return Gn(a=bt,tr,Fa).call(a,n,o,0,r),o}toMMPattern(){if(this!==ne(this,et))return ne(this,et).toMMPattern();const n=this.toString(),[r,o,a,u]=this.toRegExpSource();if(!(a||ne(this,it)||ne(this,cn).nocase&&!ne(this,cn).nocaseMagicOnly&&n.toUpperCase()!==n.toLowerCase()))return o;const d=(ne(this,cn).nocase?"i":"")+(u?"u":"");return Object.assign(new RegExp(`^${r}$`,d),{_src:r,_glob:n})}get options(){return ne(this,cn)}toRegExpSource(n){var m;const r=n??!!ne(this,cn).dot;if(ne(this,et)===this&&Gn(this,Ar,lg).call(this),!this.type){const E=this.isStart()&&this.isEnd(),g=ne(this,ke).map(b=>{var _;const[f,w,c,S]=typeof b=="string"?Gn(_=bt,tr,fg).call(_,b,ne(this,it),E):b.toRegExpSource(n);return Ze(this,it,ne(this,it)||c),Ze(this,In,ne(this,In)||S),f}).join("");let p="";if(this.isStart()&&typeof ne(this,ke)[0]=="string"&&!(ne(this,ke).length===1&&tI.has(ne(this,ke)[0]))){const f=eI,w=r&&f.has(g.charAt(0))||g.startsWith("\\.")&&f.has(g.charAt(2))||g.startsWith("\\.\\.")&&f.has(g.charAt(4)),c=!r&&!n&&f.has(g.charAt(0));p=w?QR:c?Oa:""}let v="";return this.isEnd()&&ne(ne(this,et),Jn)&&((m=ne(this,Ge))==null?void 0:m.type)==="!"&&(v="(?:$|\\/)"),[p+g+v,Gi(g),Ze(this,it,!!ne(this,it)),ne(this,In)]}const o=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let u=Gn(this,Ar,Tl).call(this,r);if(this.isStart()&&this.isEnd()&&!u&&this.type!=="!"){const E=this.toString();return Ze(this,ke,[E]),this.type=null,Ze(this,it,void 0),[E,Gi(this.toString()),!1,!1]}let l=!o||n||r||!Oa?"":Gn(this,Ar,Tl).call(this,!0);l===u&&(l=""),l&&(u=`(?:${u})(?:${l})*?`);let d="";if(this.type==="!"&&ne(this,oo))d=(this.isStart()&&!r?Oa:"")+Xh;else{const E=this.type==="!"?"))"+(this.isStart()&&!r&&!n?Oa:"")+Yh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;d=a+u+E}return[d,Gi(u),Ze(this,it,!!ne(this,it)),ne(this,In)]}};et=new WeakMap,it=new WeakMap,In=new WeakMap,ke=new WeakMap,Ge=new WeakMap,Xn=new WeakMap,wr=new WeakMap,Jn=new WeakMap,cn=new WeakMap,br=new WeakMap,oo=new WeakMap,Ar=new WeakSet,lg=function(){if(this!==ne(this,et))throw new Error("should only call on root");if(ne(this,Jn))return this;this.toString(),Ze(this,Jn,!0);let n;for(;n=ne(this,wr).pop();){if(n.type!=="!")continue;let r=n,o=ne(r,Ge);for(;o;){for(let a=ne(r,Xn)+1;!o.type&&a<ne(o,ke).length;a++)for(const u of ne(n,ke)){if(typeof u=="string")throw new Error("string part in extglob AST??");u.copyIn(ne(o,ke)[a])}r=o,o=ne(r,Ge)}}return this},tr=new WeakSet,Fa=function(n,r,o,a){var y,b;let u=!1,l=!1,d=-1,m=!1;if(r.type===null){let f=o,w="";for(;f<n.length;){const c=n.charAt(f++);if(u||c==="\\"){u=!u,w+=c;continue}if(l){f===d+1?(c==="^"||c==="!")&&(m=!0):c==="]"&&!(f===d+2&&m)&&(l=!1),w+=c;continue}else if(c==="["){l=!0,d=f,m=!1,w+=c;continue}if(!a.noext&&Vh(c)&&n.charAt(f)==="("){r.push(w),w="";const S=new bt(c,r);f=Gn(y=bt,tr,Fa).call(y,n,S,f,a),r.push(S);continue}w+=c}return r.push(w),f}let E=o+1,g=new bt(null,r);const p=[];let v="";for(;E<n.length;){const f=n.charAt(E++);if(u||f==="\\"){u=!u,v+=f;continue}if(l){E===d+1?(f==="^"||f==="!")&&(m=!0):f==="]"&&!(E===d+2&&m)&&(l=!1),v+=f;continue}else if(f==="["){l=!0,d=E,m=!1,v+=f;continue}if(Vh(f)&&n.charAt(E)==="("){g.push(v),v="";const w=new bt(f,g);g.push(w),E=Gn(b=bt,tr,Fa).call(b,n,w,E,a);continue}if(f==="|"){g.push(v),v="",p.push(g),g=new bt(null,r);continue}if(f===")")return v===""&&ne(r,ke).length===0&&Ze(r,oo,!0),g.push(v),v="",r.push(...p,g),E;v+=f}return r.type=null,Ze(r,it,void 0),Ze(r,ke,[n.substring(o-1)]),E},Tl=function(n){return ne(this,ke).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[o,a,u,l]=r.toRegExpSource(n);return Ze(this,In,ne(this,In)||l),o}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},fg=function(n,r,o=!1){let a=!1,u="",l=!1;for(let d=0;d<n.length;d++){const m=n.charAt(d);if(a){a=!1,u+=(nI.has(m)?"\\":"")+m;continue}if(m==="\\"){d===n.length-1?u+="\\\\":a=!0;continue}if(m==="["){const[E,g,p,v]=XR(n,d);if(p){u+=E,l=l||g,d+=p-1,r=r||v;continue}}if(m==="*"){o&&n==="*"?u+=Xh:u+=Yh,r=!0;continue}if(m==="?"){u+=of,r=!0;continue}u+=rI(m)}return[u,Gi(n),!!r,l]},Ot(bt,tr);let Ba=bt;const iI=(e,{windowsPathsNoEscape:n=!1}={})=>n?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),mt=(e,n,r={})=>(Ua(n),!r.nocomment&&n.charAt(0)==="#"?!1:new ts(n,r).match(e)),oI=/^\*+([^+@!?\*\[\(]*)$/,aI=e=>n=>!n.startsWith(".")&&n.endsWith(e),sI=e=>n=>n.endsWith(e),uI=e=>(e=e.toLowerCase(),n=>!n.startsWith(".")&&n.toLowerCase().endsWith(e)),lI=e=>(e=e.toLowerCase(),n=>n.toLowerCase().endsWith(e)),fI=/^\*+\.\*+$/,cI=e=>!e.startsWith(".")&&e.includes("."),dI=e=>e!=="."&&e!==".."&&e.includes("."),pI=/^\.\*+$/,hI=e=>e!=="."&&e!==".."&&e.startsWith("."),vI=/^\*+$/,mI=e=>e.length!==0&&!e.startsWith("."),gI=e=>e.length!==0&&e!=="."&&e!=="..",yI=/^\?+([^+@!?\*\[\(]*)?$/,wI=([e,n=""])=>{const r=cg([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},bI=([e,n=""])=>{const r=dg([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},SI=([e,n=""])=>{const r=dg([e]);return n?o=>r(o)&&o.endsWith(n):r},EI=([e,n=""])=>{const r=cg([e]);return n?o=>r(o)&&o.endsWith(n):r},cg=([e])=>{const n=e.length;return r=>r.length===n&&!r.startsWith(".")},dg=([e])=>{const n=e.length;return r=>r.length===n&&r!=="."&&r!==".."},pg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Jh={win32:{sep:"\\"},posix:{sep:"/"}},_I=pg==="win32"?Jh.win32.sep:Jh.posix.sep;mt.sep=_I;const Gt=Symbol("globstar **");mt.GLOBSTAR=Gt;const xI="[^/]",OI=xI+"*?",AI="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",TI="(?:(?!(?:\\/|^)\\.).)*?",PI=(e,n={})=>r=>mt(r,e,n);mt.filter=PI;const Zt=(e,n={})=>Object.assign({},e,n),CI=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return mt;const n=mt;return Object.assign((o,a,u={})=>n(o,a,Zt(e,u)),{Minimatch:class extends n.Minimatch{constructor(a,u={}){super(a,Zt(e,u))}static defaults(a){return n.defaults(Zt(e,a)).Minimatch}},AST:class extends n.AST{constructor(a,u,l={}){super(a,u,Zt(e,l))}static fromGlob(a,u={}){return n.AST.fromGlob(a,Zt(e,u))}},unescape:(o,a={})=>n.unescape(o,Zt(e,a)),escape:(o,a={})=>n.escape(o,Zt(e,a)),filter:(o,a={})=>n.filter(o,Zt(e,a)),defaults:o=>n.defaults(Zt(e,o)),makeRe:(o,a={})=>n.makeRe(o,Zt(e,a)),braceExpand:(o,a={})=>n.braceExpand(o,Zt(e,a)),match:(o,a,u={})=>n.match(o,a,Zt(e,u)),sep:n.sep,GLOBSTAR:Gt})};mt.defaults=CI;const hg=(e,n={})=>(Ua(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:zR(e));mt.braceExpand=hg;const RI=(e,n={})=>new ts(e,n).makeRe();mt.makeRe=RI;const II=(e,n,r={})=>{const o=new ts(n,r);return e=e.filter(a=>o.match(a)),o.options.nonull&&!e.length&&e.push(n),e};mt.match=II;const Qh=/[?*]|[+@!]\(.*?\)|\[|\]/,MI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class ts{constructor(n,r={}){Qe(this,"options");Qe(this,"set");Qe(this,"pattern");Qe(this,"windowsPathsNoEscape");Qe(this,"nonegate");Qe(this,"negate");Qe(this,"comment");Qe(this,"empty");Qe(this,"preserveMultipleSlashes");Qe(this,"partial");Qe(this,"globSet");Qe(this,"globParts");Qe(this,"nocase");Qe(this,"isWindows");Qe(this,"platform");Qe(this,"windowsNoMagicRoot");Qe(this,"regexp");Ua(n),r=r||{},this.options=r,this.pattern=n,this.platform=r.platform||pg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const n of this.set)for(const r of n)if(typeof r!="string")return!0;return!1}debug(...n){}make(){const n=this.pattern,r=this.options;if(!r.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,this.globSet);const o=this.globSet.map(u=>this.slashSplit(u));this.globParts=this.preprocess(o),this.debug(this.pattern,this.globParts);let a=this.globParts.map((u,l,d)=>{if(this.isWindows&&this.windowsNoMagicRoot){const m=u[0]===""&&u[1]===""&&(u[2]==="?"||!Qh.test(u[2]))&&!Qh.test(u[3]),E=/^[a-z]:/i.test(u[0]);if(m)return[...u.slice(0,4),...u.slice(4).map(g=>this.parse(g))];if(E)return[u[0],...u.slice(1).map(g=>this.parse(g))]}return u.map(m=>this.parse(m))});if(this.debug(this.pattern,a),this.set=a.filter(u=>u.indexOf(!1)===-1),this.isWindows)for(let u=0;u<this.set.length;u++){const l=this.set[u];l[0]===""&&l[1]===""&&this.globParts[u][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(n){if(this.options.noglobstar)for(let o=0;o<n.length;o++)for(let a=0;a<n[o].length;a++)n[o][a]==="**"&&(n[o][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(n=this.firstPhasePreProcess(n),n=this.secondPhasePreProcess(n)):r>=1?n=this.levelOneOptimize(n):n=this.adjascentGlobstarOptimize(n),n}adjascentGlobstarOptimize(n){return n.map(r=>{let o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let a=o;for(;r[a+1]==="**";)a++;a!==o&&r.splice(o,a-o)}return r})}levelOneOptimize(n){return n.map(r=>(r=r.reduce((o,a)=>{const u=o[o.length-1];return a==="**"&&u==="**"?o:a===".."&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(a),o)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(n){Array.isArray(n)||(n=this.slashSplit(n));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){const u=n[a];a===1&&u===""&&n[0]===""||(u==="."||u==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){const a=n[o-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,n.splice(o-1,2),o-=2)}}while(r);return n.length===0?[""]:n}firstPhasePreProcess(n){let r=!1;do{r=!1;for(let o of n){let a=-1;for(;(a=o.indexOf("**",a+1))!==-1;){let l=a;for(;o[l+1]==="**";)l++;l>a&&o.splice(a+1,l-a);let d=o[a+1];const m=o[a+2],E=o[a+3];if(d!==".."||!m||m==="."||m===".."||!E||E==="."||E==="..")continue;r=!0,o.splice(a,1);const g=o.slice(0);g[a]="**",n.push(g),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<o.length-1;l++){const d=o[l];l===1&&d===""&&o[0]===""||(d==="."||d==="")&&(r=!0,o.splice(l,1),l--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(r=!0,o.pop())}let u=0;for(;(u=o.indexOf("..",u+1))!==-1;){const l=o[u-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const m=u===1&&o[u+1]==="**"?["."]:[];o.splice(u-1,2,...m),o.length===0&&o.push(""),u-=2}}}}while(r);return n}secondPhasePreProcess(n){for(let r=0;r<n.length-1;r++)for(let o=r+1;o<n.length;o++){const a=this.partsMatch(n[r],n[o],!this.preserveMultipleSlashes);if(a){n[r]=[],n[o]=a;break}}return n.filter(r=>r.length)}partsMatch(n,r,o=!1){let a=0,u=0,l=[],d="";for(;a<n.length&&u<r.length;)if(n[a]===r[u])l.push(d==="b"?r[u]:n[a]),a++,u++;else if(o&&n[a]==="**"&&r[u]===n[a+1])l.push(n[a]),a++;else if(o&&r[u]==="**"&&n[a]===r[u+1])l.push(r[u]),u++;else if(n[a]==="*"&&r[u]&&(this.options.dot||!r[u].startsWith("."))&&r[u]!=="**"){if(d==="b")return!1;d="a",l.push(n[a]),a++,u++}else if(r[u]==="*"&&n[a]&&(this.options.dot||!n[a].startsWith("."))&&n[a]!=="**"){if(d==="a")return!1;d="b",l.push(r[u]),a++,u++}else return!1;return n.length===r.length&&l}parseNegate(){if(this.nonegate)return;const n=this.pattern;let r=!1,o=0;for(let a=0;a<n.length&&n.charAt(a)==="!";a++)r=!r,o++;o&&(this.pattern=n.slice(o)),this.negate=r}matchOne(n,r,o=!1){const a=this.options;if(this.isWindows){const f=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),w=!f&&n[0]===""&&n[1]===""&&n[2]==="?"&&/^[a-z]:$/i.test(n[3]),c=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!c&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),_=w?3:f?0:void 0,P=S?3:c?0:void 0;if(typeof _=="number"&&typeof P=="number"){const[A,I]=[n[_],r[P]];A.toLowerCase()===I.toLowerCase()&&(r[P]=A,P>_?r=r.slice(P):_>P&&(n=n.slice(_)))}}const{optimizationLevel:u=1}=this.options;u>=2&&(n=this.levelTwoFileOptimize(n)),this.debug("matchOne",this,{file:n,pattern:r}),this.debug("matchOne",n.length,r.length);for(var l=0,d=0,m=n.length,E=r.length;l<m&&d<E;l++,d++){this.debug("matchOne loop");var g=r[d],p=n[l];if(this.debug(r,g,p),g===!1)return!1;if(g===Gt){this.debug("GLOBSTAR",[r,g,p]);var v=l,y=d+1;if(y===E){for(this.debug("** at the end");l<m;l++)if(n[l]==="."||n[l]===".."||!a.dot&&n[l].charAt(0)===".")return!1;return!0}for(;v<m;){var b=n[v];if(this.debug(`
147
- globstar while`,n,v,r,y,b),this.matchOne(n.slice(v),r.slice(y),o))return this.debug("globstar found match!",v,m,b),!0;if(b==="."||b===".."||!a.dot&&b.charAt(0)==="."){this.debug("dot detected!",n,v,r,y);break}this.debug("globstar swallow a segment, and continue"),v++}return!!(o&&(this.debug(`
148
- >>> no match, partial?`,n,v,r,y),v===m))}let f;if(typeof g=="string"?(f=p===g,this.debug("string match",g,p,f)):(f=g.test(p),this.debug("pattern match",g,p,f)),!f)return!1}if(l===m&&d===E)return!0;if(l===m)return o;if(d===E)return l===m-1&&n[l]==="";throw new Error("wtf?")}braceExpand(){return hg(this.pattern,this.options)}parse(n){Ua(n);const r=this.options;if(n==="**")return Gt;if(n==="")return"";let o,a=null;(o=n.match(vI))?a=r.dot?gI:mI:(o=n.match(oI))?a=(r.nocase?r.dot?lI:uI:r.dot?sI:aI)(o[1]):(o=n.match(yI))?a=(r.nocase?r.dot?bI:wI:r.dot?SI:EI)(o):(o=n.match(fI))?a=r.dot?dI:cI:(o=n.match(pI))&&(a=hI);const u=Ba.fromGlob(n,this.options).toMMPattern();return a&&typeof u=="object"&&Reflect.defineProperty(u,"test",{value:a}),u}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const n=this.set;if(!n.length)return this.regexp=!1,this.regexp;const r=this.options,o=r.noglobstar?OI:r.dot?AI:TI,a=new Set(r.nocase?["i"]:[]);let u=n.map(m=>{const E=m.map(g=>{if(g instanceof RegExp)for(const p of g.flags.split(""))a.add(p);return typeof g=="string"?MI(g):g===Gt?Gt:g._src});return E.forEach((g,p)=>{const v=E[p+1],y=E[p-1];g!==Gt||y===Gt||(y===void 0?v!==void 0&&v!==Gt?E[p+1]="(?:\\/|"+o+"\\/)?"+v:E[p]=o:v===void 0?E[p-1]=y+"(?:\\/|"+o+")?":v!==Gt&&(E[p-1]=y+"(?:\\/|\\/"+o+"\\/)"+v,E[p+1]=Gt))}),E.filter(g=>g!==Gt).join("/")}).join("|");const[l,d]=n.length>1?["(?:",")"]:["",""];u="^"+l+u+d+"$",this.negate&&(u="^(?!"+u+").+$");try{this.regexp=new RegExp(u,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(n){return this.preserveMultipleSlashes?n.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(n)?["",...n.split(/\/+/)]:n.split(/\/+/)}match(n,r=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&r)return!0;const o=this.options;this.isWindows&&(n=n.split("\\").join("/"));const a=this.slashSplit(n);this.debug(this.pattern,"split",a);const u=this.set;this.debug(this.pattern,"set",u);let l=a[a.length-1];if(!l)for(let d=a.length-2;!l&&d>=0;d--)l=a[d];for(let d=0;d<u.length;d++){const m=u[d];let E=a;if(o.matchBase&&m.length===1&&(E=[l]),this.matchOne(E,m,r))return o.flipNegate?!0:!this.negate}return o.flipNegate?!1:this.negate}static defaults(n){return mt.defaults(n).Minimatch}}mt.AST=Ba;mt.Minimatch=ts;mt.escape=iI;mt.unescape=Gi;const af="/$shared",FI={"**/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"}},"**/*.json":{parser:"json",content:{}}};function vg(e){const n=Object.entries(FI).find(([r])=>mt(e,r));return n==null?void 0:n[1]}function sf(e){var o;const n=(o=vg(e))==null?void 0:o.content;if(!n)return;const r=e.replace(`${af}/`,"Shared/");uf({name:r,content:n,asText:typeof n=="string"})}function ho({path:e,createIfNotExists:n=!1}){const r=`${af}/${e}`;return Fe(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(o=>{const a=vg(e);let u=o;if(!a)return u;if(typeof u=="string")try{switch(a.parser){case"json":u=JSON.parse(u);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new CR.Validator().validate(u,a.schema).valid)throw new Error("Invalid Schema");return u}).catch(o=>{if(LI(o)&&n){const a=DI(o,e);$m.next({message:a,kind:"warning"}),sf(r)}throw o})}function LI(e){var n;return((n=e==null?void 0:e.response)==null?void 0:n.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 DI(e,n){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${n}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${n}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${n}' not found, creating...`;default:return e==null?void 0:e.message}}function $I(e){return Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function NI(e){return Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const mg=()=>{const{host:e,protocol:n}=window.location,r=n==="https:";return{projectOpened:!1,remoteDebuggerMode:Ql.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function kI(){const{hostname:e,host:n,protocol:r}=window.location,o=r==="https:";try{const a=await Fe(Ye,{method:"POST",body:JSON.stringify({verb:rr.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,d=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?d:l:a.webServerHTTPPort?l:d})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${n}/remoteDebugger`,lsp:`ws${o?"s":""}://${n}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),mg()}}async function gg(e){return await Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function jI(...e){return(await Promise.all(e.map(o=>gg({root:o,verb:rr.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function WI(e,n={}){const{sanitize:r=!0}=n;return Fe(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!r)return o;const a=new Map;return{...o,components:Ke.entries(o.components).map(([u,l])=>{const d=u,{resolvedName:m}=l.type;if(m==="WebformLoader"){const E=Nl.generate();a.set(u,E),u=E}return[u,l,d]}).reduce((u,[l,d,m])=>{var E;return d.nodes&&(d.nodes=d.nodes.map(g=>a.get(g)||g)),d.linkedNodes&&(d.linkedNodes=Ke.entries(d.linkedNodes).reduce((g,[p,v])=>({...g,[p]:a.get(v)||v}),{})),(E=d.props)!=null&&E.events&&(d.props.events=d.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=a.get(g.loader)||g.loader),g))),{...u,[l]:{...d,props:{...d.props,__originalID:m}}}},{})}})}function UI(e){return Fe(Ye,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(n=>({...n,content:[lt.METHOD,lt.CLASS].includes(n.type)?es(n.content):n.content}))}function BI(e){return e.type==="folder"?Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function zI(e){return e.type==="folder"?(await Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function HI(e){return Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function qI(e){return Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function ZI(e){return(await Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function GI(...e){return await Fe(Ye,{method:"POST",body:JSON.stringify({verb:rr.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function KI(e){const n=await Fe("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return n.isLogged&&n.success}async function VI(){return await Fe("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function YI(e){try{const n=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,o=await(await fetch(n)).text(),{supported:a}=JSON.parse(o);return a}catch{return[]}}async function XI({name:e,path:n="",root:r="root",asText:o=!1}){return Fe(Ye,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:n,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function JI(e={}){try{return await ho({path:"shared_datasources.json",...e})}catch{return{}}}async function QI(e={}){try{return await ho({path:"shared_app_events.json",createIfNotExists:!0,...e})}catch{return[]}}async function eM(e={}){try{return await ho({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function tM(e={}){try{return await ho({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function nM(){try{return await Fe("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function rM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const iM=tf(),oM=async e=>{const n={verb:rr.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return iM(async()=>(await Fe(Ye,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}),e))},aM=tf(),sM=async e=>{const n={verb:rr.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return aM(async()=>(await Fe(Ye,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}),e))},uf=async e=>{const n=await Fe(Ye,{method:"POST",body:JSON.stringify({...e,verb:rr.SET_FILE_CONTENT,root:Jl.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=ef(`${e.path||"Sources"}/${e.name}`);return{...n,type:r,size:0}},uM=async e=>await uf({name:"crafted_components.json",path:er.WEBFORMS,content:e});function lM(e){return Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function fM(e){return Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function cM(e){return Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function dM(e){return Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(n=>Array.isArray(n)?n:{...n,content:["4dm","4qm","4qs"].includes(n.ext)?es(n.content):n.content}).catch(n=>{var r,o;throw((o=(r=n.data)==null?void 0:r.__ERROR[0])==null?void 0:o.errCode)===1839&&sf(e.path),n})}function pM(e){return Fe(Ye,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function hM(e){const n=new RegExp(/^\((.+)(?=\))/gi).exec(e);return n!==null?n[1]:""}function vM(e){const n=new RegExp(/(->)(.*)/gi).exec(e);if(n!==null)return n[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function mM(e){const n=hM(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),r=vM(e),o=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:n,result:o}}async function gM(e,n){const o=e.split(".").pop();try{const a=await Fe(Ye,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:n,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=es(a.content);const{params:u,result:l}=mM(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:n,functionName:o,filePath:e,content:"",params:[]}}}var yg=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(yg||{});function yM(e,n){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...n}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function wM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var wg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(wg||{}),bg=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(bg||{}),Sg=(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))(Sg||{}),Eg=(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))(Eg||{});const bM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},SM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=Ye;exports.AppLoader=XP;exports.ControlledSwitch=bm;exports.DATASOURCE_THEMES=bM;exports.DatasourcesActions=Dm;exports.DebuggerActions=jm;exports.DesignerRequestVerb=rr;exports.Dialog=vx;exports.DialogBody=hv;exports.EActivity=yg;exports.EDITOR=SM;exports.EIDENTIFIERS=Sg;exports.ERROR_CODES=Eg;exports.EWebFormStyleClassScope=wg;exports.EXT_API_PREFIX=po;exports.FileFolderType=lt;exports.FolderRootPath=er;exports.FolderRootType=Jl;exports.HTTPError=Ol;exports.HTTP_HANDLERS_TAB_PATH=zm;exports.IPreemptive=io;exports.IPublished=Qm;exports.IPublishedRestScope=nf;exports.IdentityProvider=_C;exports.Incase=UO;exports.IndentLines=Pv;exports.LOCALIZATION_TAB_PATH=Hm;exports.LogoSVG=Sm;exports.LspActions=km;exports.MAX_FILE_NAME_LENGTH=Yl;exports.MODEL_TAB_PATH=KC;exports.Modal=tC;exports.ModalCloseReason=Kr;exports.ModalColor=_r;exports.ModalIcons=El;exports.ModalType=Kl;exports.Mutex=qm;exports.NameError=Xl;exports.Overlay=pv;exports.Portal=tv;exports.PublishOptions=bR;exports.ROLES_TAB_PATH=Um;exports.RemoteDebuggerMode=Ql;exports.SETTINGS_TAB_PATH=Bm;exports.SHARED_API_PREFIX=af;exports.SourceCodeDescriptor=bg;exports.Switcher=Cv;exports.TabEventsActions=Nm;exports.Tip=QT;exports.TipsProvider=XT;exports.Toast=EO;exports.Tooltip=VP;exports.Tree=WO;exports.TreeIcon=xv;exports.TreeNode=kl;exports.WebformActions=Lm;exports.WebformEventsActions=ro;exports.ZoomComponent=iC;exports.ZoomLevel=_m;exports._isArrayDatasource=vR;exports._isObjectDatasource=mR;exports.addAttributesToContent=ER;exports.addFolder=HI;exports.by=Zm;exports.byId=eR;exports.byPath=tR;exports.callServerSideParser=OR;exports.checkUpdates=$I;exports.createFolder=lM;exports.datasourcesSubject=WC;exports.debuggerSubject=HC;exports.dropFile=zI;exports.dropFolder=ZI;exports.exists=nR;exports.extractWebformName=XC;exports.generateUUID=_R;exports.getAppSettings=kI;exports.getCatalog=VI;exports.getDatasourceId=rR;exports.getDefaultAppSettings=mg;exports.getFile=UI;exports.getFileContent=XI;exports.getFileExtentionFromType=YC;exports.getFilenameAndTypeFromPath=VC;exports.getFilesInfo=GI;exports.getFolder=gg;exports.getFolders=jI;exports.getFunctionContent=gM;exports.getMonacoTheme=rM;exports.getNodeInfo=dM;exports.getSavedConditions=tM;exports.getSharedAppEvents=QI;exports.getSharedCSS=eM;exports.getSharedDatasources=JI;exports.getSharedResource=ho;exports.getSupportedLanguages=YI;exports.getTypeFromExtension=ef;exports.getUserPrivileges=nM;exports.getWebForm=WI;exports.hasAttributesString=tg;exports.http=Fe;exports.installUpdates=NI;exports.isArrayDatasource=Ym;exports.isDataClassMethod=sR;exports.isDataStoreMethod=aR;exports.isDateDatasource=gR;exports.isEntity=pR;exports.isEntityDatasource=fR;exports.isEntityMethod=uR;exports.isEntitySelection=hR;exports.isEntitySelectionDatasource=cR;exports.isEntitySelectionMethod=lR;exports.isObjectAttribute=iR;exports.isObjectDatasource=Xm;exports.isRelatedAttribute=oR;exports.isRelatedEntitiesAttribute=Km;exports.isRelatedEntityAttribute=Vm;exports.isScalarDatasource=Jm;exports.isSimpleAttribute=Gm;exports.isSimpleDatasource=dR;exports.loadDS=yR;exports.loadI18n=wR;exports.log=yM;exports.login=KI;exports.lspSubject=zC;exports.moveItem=cM;exports.outBy=JC;exports.outById=QC;exports.parseAttributes=SR;exports.queue=tf;exports.removeAttributesString=ng;exports.removeItem=fM;exports.renameFile=BI;exports.renameFolder=qI;exports.sanitizeContent=es;exports.saveContent=pM;exports.setCraftedComponents=uM;exports.setFileContent=uf;exports.setSharedAppEvents=sM;exports.setSharedSources=oM;exports.stringifyAttributes=eg;exports.tabEventsSubject=BC;exports.tasksManagerSubject=qC;exports.toastSubject=$m;exports.trackEvent=wM;exports.transformDates=xR;exports.tryCreateSharedResource=sf;exports.useDidMountEffect=oC;exports.useDoubleClick=TC;exports.useFeatureFlags=EC;exports.useForwardedRef=SC;exports.useHotkeys=gC;exports.useIdentity=xC;exports.useOutsideClick=yC;exports.usePrevious=wC;exports.useStateObject=OC;exports.useStateRef=bC;exports.useTip=um;exports.validateName=Wm;exports.validateServerSide=ZC;exports.validateValue=GC;exports.webformEventsSubject=Wa;exports.webformSubject=UC;
201
+ }`;var Se=mp(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,Fu(Se))throw Se;return Se}function pE(n){return ke(n).toLowerCase()}function hE(n){return ke(n).toUpperCase()}function gE(n,i,u){if(n=ke(n),n&&(u||i===r))return Of(n);if(!n||!(i=Dt(i)))return n;var m=nr(n),_=nr(i),T=Tf(m,_),P=Rf(m,_)+1;return Qr(m,T,P).join("")}function vE(n,i,u){if(n=ke(n),n&&(u||i===r))return n.slice(0,Cf(n)+1);if(!n||!(i=Dt(i)))return n;var m=nr(n),_=Rf(m,nr(i))+1;return Qr(m,0,_).join("")}function mE(n,i,u){if(n=ke(n),n&&(u||i===r))return n.replace(Fa,"");if(!n||!(i=Dt(i)))return n;var m=nr(n),_=Tf(m,nr(i));return Qr(m,_).join("")}function yE(n,i){var u=G,m=N;if(Ze(i)){var _="separator"in i?i.separator:_;u="length"in i?xe(i.length):u,m="omission"in i?Dt(i.omission):m}n=ke(n);var T=n.length;if(Un(n)){var P=nr(n);T=P.length}if(u>=T)return n;var $=u-Hn(m);if($<1)return m;var j=P?Qr(P,0,$).join(""):n.slice(0,$);if(_===r)return j+m;if(P&&($+=j.length-$),Du(_)){if(n.slice($).search(_)){var V,X=j;for(_.global||(_=Qa(_.source,ke(Gc.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;j=j.slice(0,ee===r?$:ee)}}else if(n.indexOf(Dt(_),$)!=$){var oe=j.lastIndexOf(_);oe>-1&&(j=j.slice(0,oe))}return j+m}function wE(n){return n=ke(n),n&&C0.test(n)?n.replace(Hc,Ky):n}var bE=Xn(function(n,i,u){return n+(u?" ":"")+i.toUpperCase()}),zu=yd("toUpperCase");function vp(n,i,u){return n=ke(n),i=u?r:i,i===r?Uy(n)?Xy(n):Ly(n):n.match(i)||[]}var mp=_e(function(n,i){try{return Mt(n,r,i)}catch(u){return Fu(u)?u:new we(u)}}),xE=kr(function(n,i){return qt(i,function(u){u=gr(u),Pr(n,u,Lu(n[u],n))}),n});function SE(n){var i=n==null?0:n.length,u=pe();return n=i?Be(n,function(m){if(typeof m[1]!="function")throw new Zt(l);return[u(m[0]),m[1]]}):[],_e(function(m){for(var _=-1;++_<i;){var T=n[_];if(Mt(T[0],this,m))return Mt(T[1],this,m)}})}function EE(n){return Kw(Kt(n,g))}function Wu(n){return function(){return n}}function _E(n,i){return n==null||n!==n?i:n}var AE=bd(),OE=bd(!0);function kt(n){return n}function Bu(n){return Yf(typeof n=="function"?n:Kt(n,g))}function TE(n){return Jf(Kt(n,g))}function RE(n,i){return Qf(n,Kt(i,g))}var PE=_e(function(n,i){return function(u){return Ai(u,n,i)}}),CE=_e(function(n,i){return function(u){return Ai(n,u,i)}});function Uu(n,i,u){var m=ut(i),_=rs(i,m);u==null&&!(Ze(i)&&(_.length||!m.length))&&(u=i,i=n,n=this,_=rs(i,ut(i)));var T=!(Ze(u)&&"chain"in u)||!!u.chain,P=Ir(n);return qt(_,function($){var j=i[$];n[$]=j,P&&(n.prototype[$]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Rt(this.__actions__);return ee.push({func:j,args:arguments,thisArg:n}),X.__chain__=V,X}return j.apply(n,Gr([this.value()],arguments))})}),n}function kE(){return ft._===this&&(ft._=nw),this}function Hu(){}function $E(n){return n=xe(n),_e(function(i){return ed(i,n)})}var IE=xu(Be),LE=xu(xf),ME=xu(Za);function yp(n){return Ru(n)?Ga(gr(n)):f1(n)}function FE(n){return function(i){return n==null?r:wn(n,i)}}var DE=Sd(),NE=Sd(!0);function qu(){return[]}function Zu(){return!1}function jE(){return{}}function zE(){return""}function WE(){return!0}function BE(n,i){if(n=xe(n),n<1||n>te)return[];var u=Q,m=yt(n,Q);i=pe(i),n-=Q;for(var _=Ya(m,i);++u<n;)i(u);return _}function UE(n){return be(n)?Be(n,gr):Nt(n)?[n]:Rt(Nd(ke(n)))}function HE(n){var i=++tw;return ke(n)+i}var qE=us(function(n,i){return n+i},0),ZE=Su("ceil"),GE=us(function(n,i){return n/i},1),KE=Su("floor");function VE(n){return n&&n.length?ts(n,kt,au):r}function YE(n,i){return n&&n.length?ts(n,pe(i,2),au):r}function XE(n){return _f(n,kt)}function JE(n,i){return _f(n,pe(i,2))}function QE(n){return n&&n.length?ts(n,kt,fu):r}function e_(n,i){return n&&n.length?ts(n,pe(i,2),fu):r}var t_=us(function(n,i){return n*i},1),r_=Su("round"),n_=us(function(n,i){return n-i},0);function i_(n){return n&&n.length?Va(n,kt):0}function o_(n,i){return n&&n.length?Va(n,pe(i,2)):0}return A.after=Tx,A.ary=Vd,A.assign=hS,A.assignIn=lp,A.assignInWith=xs,A.assignWith=gS,A.at=vS,A.before=Yd,A.bind=Lu,A.bindAll=xE,A.bindKey=Xd,A.castArray=jx,A.chain=Zd,A.chunk=K1,A.compact=V1,A.concat=Y1,A.cond=SE,A.conforms=EE,A.constant=Wu,A.countBy=ix,A.create=mS,A.curry=Jd,A.curryRight=Qd,A.debounce=ep,A.defaults=yS,A.defaultsDeep=wS,A.defer=Rx,A.delay=Px,A.difference=X1,A.differenceBy=J1,A.differenceWith=Q1,A.drop=eb,A.dropRight=tb,A.dropRightWhile=rb,A.dropWhile=nb,A.fill=ib,A.filter=sx,A.flatMap=lx,A.flatMapDeep=cx,A.flatMapDepth=fx,A.flatten=Bd,A.flattenDeep=ob,A.flattenDepth=sb,A.flip=Cx,A.flow=AE,A.flowRight=OE,A.fromPairs=ab,A.functions=OS,A.functionsIn=TS,A.groupBy=dx,A.initial=lb,A.intersection=cb,A.intersectionBy=fb,A.intersectionWith=db,A.invert=PS,A.invertBy=CS,A.invokeMap=hx,A.iteratee=Bu,A.keyBy=gx,A.keys=ut,A.keysIn=Ct,A.map=gs,A.mapKeys=$S,A.mapValues=IS,A.matches=TE,A.matchesProperty=RE,A.memoize=ms,A.merge=LS,A.mergeWith=cp,A.method=PE,A.methodOf=CE,A.mixin=Uu,A.negate=ys,A.nthArg=$E,A.omit=MS,A.omitBy=FS,A.once=kx,A.orderBy=vx,A.over=IE,A.overArgs=$x,A.overEvery=LE,A.overSome=ME,A.partial=Mu,A.partialRight=tp,A.partition=mx,A.pick=DS,A.pickBy=fp,A.property=yp,A.propertyOf=FE,A.pull=vb,A.pullAll=Hd,A.pullAllBy=mb,A.pullAllWith=yb,A.pullAt=wb,A.range=DE,A.rangeRight=NE,A.rearg=Ix,A.reject=bx,A.remove=bb,A.rest=Lx,A.reverse=$u,A.sampleSize=Sx,A.set=jS,A.setWith=zS,A.shuffle=Ex,A.slice=xb,A.sortBy=Ox,A.sortedUniq=Rb,A.sortedUniqBy=Pb,A.split=lE,A.spread=Mx,A.tail=Cb,A.take=kb,A.takeRight=$b,A.takeRightWhile=Ib,A.takeWhile=Lb,A.tap=Vb,A.throttle=Fx,A.thru=hs,A.toArray=sp,A.toPairs=dp,A.toPairsIn=pp,A.toPath=UE,A.toPlainObject=up,A.transform=WS,A.unary=Dx,A.union=Mb,A.unionBy=Fb,A.unionWith=Db,A.uniq=Nb,A.uniqBy=jb,A.uniqWith=zb,A.unset=BS,A.unzip=Iu,A.unzipWith=qd,A.update=US,A.updateWith=HS,A.values=ei,A.valuesIn=qS,A.without=Wb,A.words=vp,A.wrap=Nx,A.xor=Bb,A.xorBy=Ub,A.xorWith=Hb,A.zip=qb,A.zipObject=Zb,A.zipObjectDeep=Gb,A.zipWith=Kb,A.entries=dp,A.entriesIn=pp,A.extend=lp,A.extendWith=xs,Uu(A,A),A.add=qE,A.attempt=mp,A.camelCase=VS,A.capitalize=hp,A.ceil=ZE,A.clamp=ZS,A.clone=zx,A.cloneDeep=Bx,A.cloneDeepWith=Ux,A.cloneWith=Wx,A.conformsTo=Hx,A.deburr=gp,A.defaultTo=_E,A.divide=GE,A.endsWith=YS,A.eq=or,A.escape=XS,A.escapeRegExp=JS,A.every=ox,A.find=ax,A.findIndex=zd,A.findKey=bS,A.findLast=ux,A.findLastIndex=Wd,A.findLastKey=xS,A.floor=KE,A.forEach=Gd,A.forEachRight=Kd,A.forIn=SS,A.forInRight=ES,A.forOwn=_S,A.forOwnRight=AS,A.get=Nu,A.gt=qx,A.gte=Zx,A.has=RS,A.hasIn=ju,A.head=Ud,A.identity=kt,A.includes=px,A.indexOf=ub,A.inRange=GS,A.invoke=kS,A.isArguments=Sn,A.isArray=be,A.isArrayBuffer=Gx,A.isArrayLike=Pt,A.isArrayLikeObject=Ye,A.isBoolean=Kx,A.isBuffer=en,A.isDate=Vx,A.isElement=Yx,A.isEmpty=Xx,A.isEqual=Jx,A.isEqualWith=Qx,A.isError=Fu,A.isFinite=eS,A.isFunction=Ir,A.isInteger=rp,A.isLength=ws,A.isMap=np,A.isMatch=tS,A.isMatchWith=rS,A.isNaN=nS,A.isNative=iS,A.isNil=sS,A.isNull=oS,A.isNumber=ip,A.isObject=Ze,A.isObjectLike=Ke,A.isPlainObject=ki,A.isRegExp=Du,A.isSafeInteger=aS,A.isSet=op,A.isString=bs,A.isSymbol=Nt,A.isTypedArray=Qn,A.isUndefined=uS,A.isWeakMap=lS,A.isWeakSet=cS,A.join=pb,A.kebabCase=QS,A.last=Yt,A.lastIndexOf=hb,A.lowerCase=eE,A.lowerFirst=tE,A.lt=fS,A.lte=dS,A.max=VE,A.maxBy=YE,A.mean=XE,A.meanBy=JE,A.min=QE,A.minBy=e_,A.stubArray=qu,A.stubFalse=Zu,A.stubObject=jE,A.stubString=zE,A.stubTrue=WE,A.multiply=t_,A.nth=gb,A.noConflict=kE,A.noop=Hu,A.now=vs,A.pad=rE,A.padEnd=nE,A.padStart=iE,A.parseInt=oE,A.random=KS,A.reduce=yx,A.reduceRight=wx,A.repeat=sE,A.replace=aE,A.result=NS,A.round=r_,A.runInContext=F,A.sample=xx,A.size=_x,A.snakeCase=uE,A.some=Ax,A.sortedIndex=Sb,A.sortedIndexBy=Eb,A.sortedIndexOf=_b,A.sortedLastIndex=Ab,A.sortedLastIndexBy=Ob,A.sortedLastIndexOf=Tb,A.startCase=cE,A.startsWith=fE,A.subtract=n_,A.sum=i_,A.sumBy=o_,A.template=dE,A.times=BE,A.toFinite=Lr,A.toInteger=xe,A.toLength=ap,A.toLower=pE,A.toNumber=Xt,A.toSafeInteger=pS,A.toString=ke,A.toUpper=hE,A.trim=gE,A.trimEnd=vE,A.trimStart=mE,A.truncate=yE,A.unescape=wE,A.uniqueId=HE,A.upperCase=bE,A.upperFirst=zu,A.each=Gd,A.eachRight=Kd,A.first=Ud,Uu(A,(function(){var n={};return pr(A,function(i,u){Me.call(A.prototype,u)||(n[u]=i)}),n})(),{chain:!1}),A.VERSION=o,qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),qt(["drop","take"],function(n,i){Te.prototype[n]=function(u){u=u===r?1:it(xe(u),0);var m=this.__filtered__&&!i?new Te(this):this.clone();return m.__filtered__?m.__takeCount__=yt(u,m.__takeCount__):m.__views__.push({size:yt(u,Q),type:n+(m.__dir__<0?"Right":"")}),m},Te.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),qt(["filter","map","takeWhile"],function(n,i){var u=i+1,m=u==q||u==J;Te.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:pe(_,3),type:u}),T.__filtered__=T.__filtered__||m,T}}),qt(["head","last"],function(n,i){var u="take"+(i?"Right":"");Te.prototype[n]=function(){return this[u](1).value()[0]}}),qt(["initial","tail"],function(n,i){var u="drop"+(i?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[u](1)}}),Te.prototype.compact=function(){return this.filter(kt)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,i){return typeof n=="function"?new Te(this):this.map(function(u){return Ai(u,n,i)})}),Te.prototype.reject=function(n){return this.filter(ys(pe(n)))},Te.prototype.slice=function(n,i){n=xe(n);var u=this;return u.__filtered__&&(n>0||i<0)?new Te(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),i!==r&&(i=xe(i),u=i<0?u.dropRight(-i):u.take(i-n)),u)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(Q)},pr(Te.prototype,function(n,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),m=/^(?:head|last)$/.test(i),_=A[m?"take"+(i=="last"?"Right":""):i],T=m||/^find/.test(i);_&&(A.prototype[i]=function(){var P=this.__wrapped__,$=m?[1]:arguments,j=P instanceof Te,V=$[0],X=j||be(P),ee=function(Ae){var Re=_.apply(A,Gr([Ae],$));return m&&oe?Re[0]:Re};X&&u&&typeof V=="function"&&V.length!=1&&(j=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=j&&!le;if(!T&&X){P=Se?P:new Te(this);var ge=n.apply(P,$);return ge.__actions__.push({func:hs,args:[ee],thisArg:r}),new Gt(ge,oe)}return he&&Se?n.apply(this,$):(ge=this.thru(ee),he?m?ge.value()[0]:ge.value():ge)})}),qt(["pop","push","shift","sort","splice","unshift"],function(n){var i=zo[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",m=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(m&&!this.__chain__){var T=this.value();return i.apply(be(T)?T:[],_)}return this[u](function(P){return i.apply(be(P)?P:[],_)})}}),pr(Te.prototype,function(n,i){var u=A[i];if(u){var m=u.name+"";Me.call(Kn,m)||(Kn[m]=[]),Kn[m].push({name:i,func:u})}}),Kn[as(r,d).name]=[{name:"wrapper",func:r}],Te.prototype.clone=ww,Te.prototype.reverse=bw,Te.prototype.value=xw,A.prototype.at=Yb,A.prototype.chain=Xb,A.prototype.commit=Jb,A.prototype.next=Qb,A.prototype.plant=tx,A.prototype.reverse=rx,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=nx,A.prototype.first=A.prototype.head,yi&&(A.prototype[yi]=ex),A}),qn=Jy();hn?((hn.exports=qn)._=qn,Ba._=qn):ft._=qn}).call(VC)})(io,io.exports)),io.exports}var et=YC();const Vl={FdSave:st.FdSave,FdWarningDanger:st.FdWarningDanger,FdInfoCircle:st.FdInfoCircle,FdInfoBold:st.FdInfoBold};var Cc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Cc||{}),$n=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))($n||{}),oi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(oi||{});const Om={[$n.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[$n.DANGER]:{icon:"red-500",button:"primary-dark"},[$n.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Al=({color:e=$n.PRIMARY,variant:t="solid",children:r,autoFocus:o,...s})=>{const a=Om[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return z.jsx("button",{autoFocus:o,className:tt("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...s,children:r})},XC=({name:e,color:t=$n.PRIMARY,className:r="w-8 h-8"})=>{const o=Vl[e]||Vl.FdInfoCircle,s=`text-${Om[t].icon}`;return z.jsx(o,{className:tt(r,s)})},JC=({id:e,title:t,message:r,icon:o,type:s,color:a,zIndex:l=3e3,views:c,width:h=520,hasOverlay:y=!0,onClose:v,onEdit:g})=>{const p=f=>{v({id:e,reason:f})};W.useEffect(()=>{function f(b){b.key==="Escape"&&p(oi.CANCELED)}return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]);const w=et.merge(et.values(c==null?void 0:c.toggles).flatMap(f=>f.value?f.warnings||[]:[]),c==null?void 0:c.tips),x=(f,b)=>{var S;if(!(c!=null&&c.toggles))return;const d=et.cloneDeep(c);(S=d.toggles)!=null&&S[f]&&(d.toggles[f].value=b),g({id:e,views:d})};return So.createPortal(z.jsx(na,{appear:!0,show:!0,as:W.Fragment,children:z.jsx("div",{className:tt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":y}),style:{zIndex:l},onClick:()=>p(oi.CANCELED),children:z.jsx(na.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:z.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:h},onClick:f=>f.stopPropagation(),children:z.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[o?z.jsx("div",{className:"flex items-center justify-center",children:z.jsx(XC,{name:o,color:a,className:"w-6 h-6"})}):null,z.jsx(QC,{condition:t,children:z.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),z.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),z.jsx("div",{className:"text-xs text-white",children:et.values(c==null?void 0:c.toggles).map(f=>z.jsx("div",{children:z.jsxs("label",{htmlFor:f.key,className:"flex items-center",children:[z.jsx(fm,{size:"xs",value:f.value,onChange:b=>x(f.key,b)}),z.jsx("span",{className:"ml-1",children:f.title})]})},f.key))}),z.jsx(ek,{warnings:w}),z.jsx("div",{className:"flex items-center gap-4",children:s===Cc.CONFIRM?z.jsxs(z.Fragment,{children:[z.jsx(Al,{autoFocus:!0,color:a,onClick:()=>p(oi.CONFIRMED),children:"Confirm"}),z.jsx(Al,{color:a,variant:"outlined",onClick:()=>p(oi.CANCELED),children:"Cancel"})]}):z.jsx(Al,{autoFocus:!0,onClick:()=>p(),children:"OK"})})]})})})})}),document.querySelector("body"))},QC=e=>e.condition?z.jsx(z.Fragment,{children:e.children}):null,ek=e=>e.warnings?z.jsx(na,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:z.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)=>z.jsx(na.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:z.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[z.jsx(st.FdWarningDanger,{className:tt({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),z.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Tm=(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))(Tm||{});const tk=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:o,handleZoomOut:s})=>z.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[z.jsx(st.FdMinusNaked,{onClick:s,className:tt("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),z.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),z.jsx(st.FdPlusNaked,{onClick:o,className:tt("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]});function rk(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Ol=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Tl(e,t,r,o){e.addEventListener?e.addEventListener(t,r,o):e.attachEvent&&e.attachEvent("on".concat(t),r)}function to(e,t,r,o){e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Rm(e,t){const r=t.slice(0,t.length-1);for(let o=0;o<r.length;o++)r[o]=e[r[o].toLowerCase()];return r}function Pm(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 nk(e,t){const r=e.length>=t.length?e:t,o=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)o.indexOf(r[a])===-1&&(s=!1);return s}const mo={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,"-":Ol?173:189,"=":Ol?61:187,";":Ol?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},fr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},oo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},gt={16:!1,18:!1,17:!1,91:!1},Ge={};for(let e=1;e<20;e++)mo["f".concat(e)]=111+e;let He=[],po=null,Cm="all";const Dr=new Map,gi=e=>mo[e.toLowerCase()]||fr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ik=e=>Object.keys(mo).find(t=>mo[t]===e),ok=e=>Object.keys(fr).find(t=>fr[t]===e);function km(e){Cm=e||"all"}function yo(){return Cm||"all"}function sk(){return He.slice(0)}function ak(){return He.map(e=>ik(e)||ok(e)||String.fromCharCode(e))}function uk(){const e=[];return Object.keys(Ge).forEach(t=>{Ge[t].forEach(r=>{let{key:o,scope:s,mods:a,shortcut:l}=r;e.push({scope:s,shortcut:l,mods:a,keys:o.split("+").map(c=>gi(c))})})}),e}function lk(e){const t=e.target||e.srcElement,{tagName:r}=t;let o=!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)&&(o=!1),o}function ck(e){return typeof e=="string"&&(e=gi(e)),He.indexOf(e)!==-1}function fk(e,t){let r,o;e||(e=yo());for(const s in Ge)if(Object.prototype.hasOwnProperty.call(Ge,s))for(r=Ge[s],o=0;o<r.length;)r[o].scope===e?r.splice(o,1).forEach(l=>{let{element:c}=l;return kc(c)}):o++;yo()===e&&km(t||"all")}function dk(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=gi(e.key));const r=He.indexOf(t);if(r>=0&&He.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&He.splice(0,He.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(const o in fr)fr[o]===t&&(cr[o]=!1)}}function $m(e){if(typeof e>"u")Object.keys(Ge).forEach(s=>{Array.isArray(Ge[s])&&Ge[s].forEach(a=>js(a)),delete Ge[s]}),kc(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&js(s)});else if(typeof e=="object")e.key&&js(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let[s,a]=r;typeof s=="function"&&(a=s,s=""),js({key:e,scope:s,method:a,splitKey:"+"})}}const js=e=>{let{key:t,scope:r,method:o,splitKey:s="+"}=e;Pm(t).forEach(l=>{const c=l.split(s),h=c.length,y=c[h-1],v=y==="*"?"*":gi(y);if(!Ge[v])return;r||(r=yo());const g=h>1?Rm(fr,c):[],p=[];Ge[v]=Ge[v].filter(w=>{const f=(o?w.method===o:!0)&&w.scope===r&&nk(w.mods,g);return f&&p.push(w.element),!f}),p.forEach(w=>kc(w))})};function Ag(e,t,r,o){if(t.element!==o)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in gt)Object.prototype.hasOwnProperty.call(gt,a)&&(!gt[a]&&t.mods.indexOf(+a)>-1||gt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(He),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Og(e,t){const r=Ge["*"];let o=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!cr.filter.call(this,e))return;if((o===93||o===224)&&(o=91),He.indexOf(o)===-1&&o!==229&&He.push(o),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const h=oo[c];e[c]&&He.indexOf(h)===-1?He.push(h):!e[c]&&He.indexOf(h)>-1?He.splice(He.indexOf(h),1):c==="metaKey"&&e[c]&&(He=He.filter(y=>y in oo||y===o))}),o in gt){gt[o]=!0;for(const c in fr)if(Object.prototype.hasOwnProperty.call(fr,c)){const h=oo[fr[c]];cr[c]=e[h]}if(!r)return}for(const c in gt)Object.prototype.hasOwnProperty.call(gt,c)&&(gt[c]=e[oo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(He.indexOf(17)===-1&&He.push(17),He.indexOf(18)===-1&&He.push(18),gt[17]=!0,gt[18]=!0);const s=yo();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)&&Ag(e,r[c],s,t);if(!(o in Ge))return;const a=Ge[o],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const h=a[c],{splitKey:y}=h,v=h.key.split(y),g=[];for(let p=0;p<v.length;p++)g.push(gi(v[p]));g.sort().join("")===He.sort().join("")&&Ag(e,h,s,t)}}function cr(e,t,r){He=[];const o=Pm(e);let s=[],a="all",l=document,c=0,h=!1,y=!0,v="+",g=!1,p=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(p=!0)),typeof t=="string"&&(a=t),p&&$m(e,a);c<o.length;c++)e=o[c].split(v),s=[],e.length>1&&(s=Rm(fr,e)),e=e[e.length-1],e=e==="*"?"*":gi(e),e in Ge||(Ge[e]=[]),Ge[e].push({keyup:h,keydown:y,scope:a,mods:s,shortcut:o[c],method:r,key:o[c],splitKey:v,element:l});if(typeof l<"u"&&window){if(!Dr.has(l)){const w=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Og(f,l)},x=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Og(f,l),dk(f)};Dr.set(l,{keydownListener:w,keyupListenr:x,capture:g}),Tl(l,"keydown",w,g),Tl(l,"keyup",x,g)}if(!po){const w=()=>{He=[]};po={listener:w,capture:g},Tl(window,"focus",w,g)}}}function pk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ge).forEach(r=>{Ge[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function kc(e){const t=Object.values(Ge).flat();if(t.findIndex(o=>{let{element:s}=o;return s===e})<0){const{keydownListener:o,keyupListenr:s,capture:a}=Dr.get(e)||{};o&&s&&(to(e,"keyup",s,a),to(e,"keydown",o,a),Dr.delete(e))}if((t.length<=0||Dr.size<=0)&&(Object.keys(Dr).forEach(s=>{const{keydownListener:a,keyupListenr:l,capture:c}=Dr.get(s)||{};a&&l&&(to(s,"keyup",l,c),to(s,"keydown",a,c),Dr.delete(s))}),Dr.clear(),Object.keys(Ge).forEach(s=>delete Ge[s]),po)){const{listener:s,capture:a}=po;to(window,"focus",s,a),po=null}}const Rl={getPressedKeyString:ak,setScope:km,getScope:yo,deleteScope:fk,getPressedKeyCodes:sk,getAllKeyCodes:uk,isPressed:ck,filter:lk,trigger:pk,unbind:$m,keyMap:mo,modifier:fr,modifierMap:oo};for(const e in Rl)Object.prototype.hasOwnProperty.call(Rl,e)&&(cr[e]=Rl[e]);if(typeof window<"u"){const e=window.hotkeys;cr.noConflict=t=>(t&&window.hotkeys===cr&&(window.hotkeys=e),cr),window.hotkeys=cr}cr.filter=()=>!0;function hk(e,t,r,o){r instanceof Array&&(o=r,r=void 0),o=o||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,h)=>{s&&c.preventDefault(),setTimeout(()=>t(c,h))},o),l=()=>{cr.unbind(e,a)};W.useEffect(()=>(cr(e,r,a),l),[e,r,a])}const gk=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=o=>{t.current&&!t.current.contains(o.target)&&e(o)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function vk(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function mk(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function yk(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function wk(e){const[t,r]=W.useState(e),o=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},s=W.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:o,isFeatureEnabled:s}}const Im=W.createContext(""),bk=e=>z.jsx(Im.Provider,{value:e.value,children:e.children}),xk=()=>{const e=W.useContext(Im);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Sk(e){const[t,r]=W.useState(e),o=W.useMemo(()=>Ek(t,r),[]);return{state:t,actions:{...o,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function Ek(e,t=()=>{}){return Object.keys(e).reduce((o,s)=>({...o,[`set${et.upperFirst(s)}`]:a=>t(l=>({...l,[s]:a}))}),{})}const _k=(e,t,r={})=>{r={timeout:200,...r};const o=W.useRef(),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return W.useCallback((a,...l)=>{s(),t&&a.detail===1&&(o.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function zr(e){return typeof e=="function"}function Lm(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Pl=Lm(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
202
+ `+r.map(function(o,s){return s+1+") "+o.toString()}).join(`
203
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Yl(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Sa=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,s,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Dl(l),h=c.next();!h.done;h=c.next()){var y=h.value;y.remove(this)}}catch(f){t={error:f}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var v=this.initialTeardown;if(zr(v))try{v()}catch(f){a=f instanceof Pl?f.errors:[f]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=Dl(g),w=p.next();!w.done;w=p.next()){var x=w.value;try{Tg(x)}catch(f){a=a??[],f instanceof Pl?a=ta(ta([],Nl(a)),Nl(f.errors)):a.push(f)}}}catch(f){o={error:f}}finally{try{w&&!w.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}}if(a)throw new Pl(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Tg(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)&&Yl(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Yl(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Mm=Sa.EMPTY;function Fm(e){return e instanceof Sa||e&&"closed"in e&&zr(e.remove)&&zr(e.add)&&zr(e.unsubscribe)}function Tg(e){zr(e)?e():e.unsubscribe()}var Ak={Promise:void 0},Ok={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return setTimeout.apply(void 0,ta([e,t],Nl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Tk(e){Ok.setTimeout(function(){throw e})}function Rg(){}function Ys(e){e()}var Dm=(function(e){ga(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Fm(r)&&r.add(o)):o.destination=Ck,o}return t.create=function(r,o,s){return new Xl(r,o,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})(Sa),Rk=(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(o){zs(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){zs(o)}else zs(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){zs(r)}},e})(),Xl=(function(e){ga(t,e);function t(r,o,s){var a=e.call(this)||this,l;return zr(r)||!r?l={next:r??void 0,error:o??void 0,complete:s??void 0}:l=r,a.destination=new Rk(l),a}return t})(Dm);function zs(e){Tk(e)}function Pk(e){throw e}var Ck={closed:!0,next:Rg,error:Pk,complete:Rg},kk=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function $k(e){return e}function Ik(e){return e.length===0?$k:e.length===1?e[0]:function(r){return e.reduce(function(o,s){return s(o)},r)}}var Pg=(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,o){var s=this,a=Mk(t)?t:new Xl(t,r,o);return Ys(function(){var l=s,c=l.operator,h=l.source;a.add(c?c.call(a,h):h?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 o=this;return r=Cg(r),new r(function(s,a){var l=new Xl({next:function(c){try{t(c)}catch(h){a(h),l.unsubscribe()}},error:a,complete:s});o.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[kk]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ik(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Cg(t),new t(function(o,s){var a;r.subscribe(function(l){return a=l},function(l){return s(l)},function(){return o(a)})})},e.create=function(t){return new e(t)},e})();function Cg(e){var t;return(t=e??Ak.Promise)!==null&&t!==void 0?t:Promise}function Lk(e){return e&&zr(e.next)&&zr(e.error)&&zr(e.complete)}function Mk(e){return e&&e instanceof Dm||Lk(e)&&Fm(e)}var Fk=Lm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Br=(function(e){ga(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 o=new kg(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fk},t.prototype.next=function(r){var o=this;Ys(function(){var s,a;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=Dl(o.currentObservers),c=l.next();!c.done;c=l.next()){var h=c.value;h.next(r)}}catch(y){s={error:y}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var o=this;Ys(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var s=o.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ys(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.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 o=this,s=this,a=s.hasError,l=s.isStopped,c=s.observers;return a||l?Mm:(this.currentObservers=null,c.push(r),new Sa(function(){o.currentObservers=null,Yl(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,s=o.hasError,a=o.thrownError,l=o.isStopped;s?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new Pg;return r.source=this,r},t.create=function(r,o){return new kg(r,o)},t})(Pg),kg=(function(e){ga(t,e);function t(r,o){var s=e.call(this)||this;return s.destination=r,s.source=o,s}return t.prototype.next=function(r){var o,s;(s=(o=this.destination)===null||o===void 0?void 0:o.next)===null||s===void 0||s.call(o,r)},t.prototype.error=function(r){var o,s;(s=(o=this.destination)===null||o===void 0?void 0:o.error)===null||s===void 0||s.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,s;return(s=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&s!==void 0?s:Mm},t})(Br),Nm=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Nm||{}),jm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(jm||{});const Dk=new Br,Nk=new Br,zm=new Br;var Wm=(e=>(e.SAVE_ALL="save-all",e))(Wm||{});const jk=new Br;var Bm=(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))(Bm||{});const zk=new Br;var Um=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Um||{});const Wk=new Br,Bk=new Br;var wo=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(wo||{});const aa=new Br,$c=31;var Ic=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${$c} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Ic||{});function Hm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>$c)throw new Error(Ic.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function Uk(e){if(!e)return null;if(typeof e=="string")try{Hm(e)}catch(t){return t.message}}function Hk(e,t){let r="";if(["array","object"].includes(t))try{const o=JSON.parse(e);t==="array"&&(!Array.isArray(o)||!et.isObject(o))&&(r=`Invalid value for type ${t}`),t==="object"&&(!et.isObject(o)||Array.isArray(o))&&(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 Ea(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var Lc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lc||{});const ln={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ht=(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))(ht||{}),dn=(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))(dn||{}),Mc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Mc||{});const qm="roles.json",Zm="qodlyApp.json",qk="model.4DModel",Gm="HTTPHandlers.json",Km="Shared/i18n.json";function Zk(e){const t=Fc(e);switch(t){case ht.SETTINGS:return{filename:"Settings",type:t};case ht.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case ht.ROLES:return{filename:"Roles & Privileges",type:t};case ht.LOCALIZATION:return{filename:"Localization",type:t};default:{const r=e.split("/"),[o]=r[1].split(".");return{filename:o,type:t}}}}function Fc(e){const t=e.split("."),r=t.pop(),o=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ht.MODEL;case r==="WebForm":return ht.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&o===ln.METHODS):return ht.METHOD;case(["4dm","4qs","4qm"].includes(r)&&o===ln.CLASSES):return ht.CLASS;case e===qm:return ht.ROLES;case e===Gm:return ht.HTTP_HANDLERS;case e===Zm:return ht.SETTINGS;case e===Km:return ht.LOCALIZATION;default:return ht.TEXT}}function Gk(e,t=!1){switch(e){case ln.REPORTS:case"report":return"QoDoc";case ln.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case ln.CLASSES:case ln.METHODS:return t?"4qs":"4dm";default:return""}}function Kk(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Vm{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),o=this.current.then(()=>t);return this.current=r,o}}function Dc(){const e=new Vm;return async t=>{const r=await e.lock();try{const o=await t();return r(),o}catch(o){console.error(o),r();return}}}const Ym=et.curry((e,t,r)=>e&&et.get(r,e)===t),Vk=et.curry((e,t,r)=>et.get(r,e)!==t),Yk=et.curry((e,t)=>et.get(t,"id")!==e),Xk=et.curry((e,t)=>et.get(t,"id")===e),Jk=et.curry((e,t)=>et.get(t,"path")===e);function Qk(e="id",t,r){return r.findIndex(Ym(e,t))!==-1}function e$(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Xm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function t$(e){return e.type==="object"}function Jm(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function Qm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Xm(e)}function r$(e){return Jm(e)||Qm(e)}function n$(e){return e.applyTo==="dataStore"}function i$(e){return e.applyTo==="dataClass"}function o$(e){return e.applyTo==="entity"}function s$(e){return e.applyTo==="entityCollection"}function a$(e){return e.type==="entity"}function u$(e){return e.type==="entitysel"}function e0(e){return e.dataType==="array"}function t0(e){return e.dataType==="object"}function r0(e){return e.type==="scalar"}function l$(e){return e0(e)||t0(e)||r0(e)}const c$=e=>e!=null&&e.type==="entity",f$=e=>e.type==="entitysel",d$=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",p$=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",h$=e=>e.type==="scalar"&&e.dataType==="date";function g$(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function v$(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var bo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(bo||{}),n0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(n0||{}),Nc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Nc||{});const m$={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function y$(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...o}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:bo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Nc.table}},...o}}function i0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[bo.capable,bo.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 w$(e,t,r=!1){const o=et.isString(t)?t:i0(t);if(!r&&o0(e))return e;const s=s0(e);return`//%attributes = ${o}\r
204
+ ${s}`}function o0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function s0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const b$=()=>cc.uuid().replaceAll("-","").toUpperCase(),rt="/rest/$designer",Po="/rest/$designer-ext";function x$(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(o=>{typeof r[o]=="string"&&(r[o]=new Date(r[o]))}),r}}class Jl extends Error{constructor(t,r,o){super(),this.url=t,this.response=r,this.data=o}log(){console.error("Error while sending the request",this)}}async function Fe(e,t){var s;aa.next({action:wo.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const l=await r.json();((s=l==null?void 0:l.__ERROR)==null?void 0:s.some(h=>h.errCode===1651))&&aa.next({action:wo.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Jl(e,r,l)}catch{a=new Jl(e,r)}throw a.log(),a}return await r.json()}function S$(e){return aa.next({action:wo.REQUEST_SENT}),e}var mr={},pt={},$g;function Tn(){if($g)return pt;$g=1;var e=pt.ValidationError=function(f,b,d,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,B){return k+c(B)},"instance")):S!==void 0&&(this.property=S),f&&(this.message=f),d){var O=d.$id||d.id;this.schema=O||d}b!==void 0&&(this.instance=b),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=pt.ValidatorResult=function(f,b,d,S){this.instance=f,this.schema=b,this.options=d,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=d&&d.throwError,this.throwFirst=d&&d.throwFirst,this.throwAll=d&&d.throwAll,this.disableFormat=d&&d.disableFormat===!0};t.prototype.addError=function(f){var b;if(typeof f=="string")b=new e(f,this.instance,this.schema,this.path);else{if(!f)throw new Error("Missing error detail");if(!f.message)throw new Error("Missing error message");if(!f.name)throw new Error("Missing validator type");b=new e(f.message,this.instance,this.schema,this.path,f.name,f.argument)}if(this.errors.push(b),this.throwFirst)throw new o(this);if(this.throwError)throw b;return b},t.prototype.importErrors=function(f){typeof f=="string"||f&&f.validatorType?this.addError(f):f&&f.errors&&(this.errors=this.errors.concat(f.errors))};function r(x,f){return f+": "+x.toString()+`
205
+ `}t.prototype.toString=function(f){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),pt.ValidatorResultError=o;function o(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="Validation Error";var s=pt.SchemaError=function x(f,b){this.message=f,this.schema=b,Error.call(this,f),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=pt.SchemaContext=function(f,b,d,S,E){this.schema=f,this.options=b,Array.isArray(d)?(this.path=d,this.propertyPath=d.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=d,this.base=S,this.schemas=E};a.prototype.resolve=function(f){return w(this.base,f)},a.prototype.makeChild=function(f,b){var d=b===void 0?this.path:this.path.concat([b]),S=f.$id||f.id;let E=w(this.base,S||"");var R=new a(f,this.options,d,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=f),R};var l=pt.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 f=!0;try{new RegExp(x)}catch{f=!1}return f},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"],pt.isFormat=function(f,b,d){if(typeof f=="string"&&l[b]!==void 0){if(l[b]instanceof RegExp)return l[b].test(f);if(typeof l[b]=="function")return l[b](f)}else if(d&&d.customFormats&&typeof d.customFormats[b]=="function")return d.customFormats[b](f);return!0};var c=pt.makeSuffix=function(f){return f=f.toString(),!f.match(/[.\s\[\]]/)&&!f.match(/^[\d]/)?"."+f:f.match(/^\d+$/)?"["+f+"]":"["+JSON.stringify(f)+"]"};pt.deepCompareStrict=function x(f,b){if(typeof f!=typeof b)return!1;if(Array.isArray(f))return!Array.isArray(b)||f.length!==b.length?!1:f.every(function(E,R){return x(f[R],b[R])});if(typeof f=="object"){if(!f||!b)return f===b;var d=Object.keys(f),S=Object.keys(b);return d.length!==S.length?!1:d.every(function(E){return x(f[E],b[E])})}return f===b};function h(x,f,b,d){typeof b=="object"?f[d]=g(x[d],b):x.indexOf(b)===-1&&f.push(b)}function y(x,f,b){f[b]=x[b]}function v(x,f,b,d){typeof f[d]!="object"||!f[d]?b[d]=f[d]:x[d]?b[d]=g(x[d],f[d]):b[d]=f[d]}function g(x,f){var b=Array.isArray(f),d=b&&[]||{};return b?(x=x||[],d=d.concat(x),f.forEach(h.bind(null,x,d))):(x&&typeof x=="object"&&Object.keys(x).forEach(y.bind(null,x,d)),Object.keys(f).forEach(v.bind(null,x,f,d))),d}pt.deepMerge=g,pt.objectGetPath=function(f,b){for(var d=b.split("/").slice(1),S;typeof(S=d.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in f))return;f=f[E]}return f};function p(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}pt.encodePath=function(f){return f.map(p).join("")},pt.getDecimalPlaces=function(f){var b=0;if(isNaN(f))return b;typeof f!="number"&&(f=Number(f));var d=f.toString().split("e");if(d.length===2){if(d[1][0]!=="-")return b;b=Number(d[1].slice(1))}var S=d[0].split(".");return S.length===2&&(b+=S[1].length),b},pt.isSchema=function(f){return typeof f=="object"&&f||typeof f=="boolean"};var w=pt.resolveUrl=function(f,b){const d=new URL(b,new URL(f,"resolve://"));if(d.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=d;return S+E+R}return d.toString()};return pt}var Cl,Ig;function E$(){if(Ig)return Cl;Ig=1;var e=Tn(),t=e.ValidatorResult,r=e.SchemaError,o={};o.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=o.validators={};s.type=function(g,p,w,x){if(g===void 0)return null;var f=new t(g,p,w,x),b=Array.isArray(p.type)?p.type:[p.type];if(!b.some(this.testType.bind(this,g,p,w,x))){var d=b.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});f.addError({name:"type",argument:d,message:"is not of a type(s) "+d})}return f};function a(v,g,p,w,x){var f=g.throwError,b=g.throwAll;g.throwError=!1,g.throwAll=!1;var d=this.validateSchema(v,x,g,p);return g.throwError=f,g.throwAll=b,!d.valid&&w instanceof Function&&w(d),d.valid}s.anyOf=function(g,p,w,x){if(g===void 0)return null;var f=new t(g,p,w,x),b=new t(g,p,w,x);if(!Array.isArray(p.anyOf))throw new r("anyOf must be an array");if(!p.anyOf.some(a.bind(this,g,w,x,function(S){b.importErrors(S)}))){var d=p.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});w.nestedErrors&&f.importErrors(b),f.addError({name:"anyOf",argument:d,message:"is not any of "+d.join(",")})}return f},s.allOf=function(g,p,w,x){if(g===void 0)return null;if(!Array.isArray(p.allOf))throw new r("allOf must be an array");var f=new t(g,p,w,x),b=this;return p.allOf.forEach(function(d,S){var E=b.validateSchema(g,d,w,x);if(!E.valid){var R=d.$id||d.id,O=R||d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+S+"]";f.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]:"}),f.importErrors(E)}}),f},s.oneOf=function(g,p,w,x){if(g===void 0)return null;if(!Array.isArray(p.oneOf))throw new r("oneOf must be an array");var f=new t(g,p,w,x),b=new t(g,p,w,x),d=p.oneOf.filter(a.bind(this,g,w,x,function(E){b.importErrors(E)})).length,S=p.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return d!==1&&(w.nestedErrors&&f.importErrors(b),f.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),f},s.if=function(g,p,w,x){if(g===void 0)return null;if(!e.isSchema(p.if))throw new Error('Expected "if" keyword to be a schema');var f=a.call(this,g,w,x,null,p.if),b=new t(g,p,w,x),d;if(f){if(p.then===void 0)return;if(!e.isSchema(p.then))throw new Error('Expected "then" keyword to be a schema');d=this.validateSchema(g,p.then,w,x.makeChild(p.then)),b.importErrors(d)}else{if(p.else===void 0)return;if(!e.isSchema(p.else))throw new Error('Expected "else" keyword to be a schema');d=this.validateSchema(g,p.else,w,x.makeChild(p.else)),b.importErrors(d)}return b};function l(v,g){if(Object.hasOwnProperty.call(v,g))return v[g];if(g in v){for(;v=Object.getPrototypeOf(v);)if(Object.propertyIsEnumerable.call(v,g))return v[g]}}s.propertyNames=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=p.propertyNames!==void 0?p.propertyNames:{};if(!e.isSchema(b))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var d in g)if(l(g,d)!==void 0){var S=this.validateSchema(d,b,w,x.makeChild(b));f.importErrors(S)}return f}},s.properties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=p.properties||{};for(var d in b){var S=b[d];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof w.preValidateProperty=="function"&&w.preValidateProperty(g,d,S,w,x);var E=l(g,d),R=this.validateSchema(E,S,w,x.makeChild(S,d));R.instance!==f.instance[d]&&(f.instance[d]=R.instance),f.importErrors(R)}}return f}};function c(v,g,p,w,x,f){if(this.types.object(v)&&!(g.properties&&g.properties[x]!==void 0))if(g.additionalProperties===!1)f.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var b=g.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(v,x,b,p,w);var d=this.validateSchema(v[x],b,p,w.makeChild(b,x));d.instance!==f.instance[x]&&(f.instance[x]=d.instance),f.importErrors(d)}}s.patternProperties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=p.patternProperties||{};for(var d in g){var S=!0;for(var E in b){var R=b[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(d)){S=!1,typeof w.preValidateProperty=="function"&&w.preValidateProperty(g,d,R,w,x);var k=this.validateSchema(g[d],R,w,x.makeChild(R,d));k.instance!==f.instance[d]&&(f.instance[d]=k.instance),f.importErrors(k)}}}S&&c.call(this,g,p,w,x,d,f)}return f}},s.additionalProperties=function(g,p,w,x){if(this.types.object(g)){if(p.patternProperties)return null;var f=new t(g,p,w,x);for(var b in g)c.call(this,g,p,w,x,b,f);return f}},s.minProperties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=Object.keys(g);return b.length>=p.minProperties||f.addError({name:"minProperties",argument:p.minProperties,message:"does not meet minimum property length of "+p.minProperties}),f}},s.maxProperties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=Object.keys(g);return b.length<=p.maxProperties||f.addError({name:"maxProperties",argument:p.maxProperties,message:"does not meet maximum property length of "+p.maxProperties}),f}},s.items=function(g,p,w,x){var f=this;if(this.types.array(g)&&p.items!==void 0){var b=new t(g,p,w,x);return g.every(function(d,S){if(Array.isArray(p.items))var E=p.items[S]===void 0?p.additionalItems:p.items[S];else var E=p.items;if(E===void 0)return!0;if(E===!1)return b.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=f.validateSchema(d,E,w,x.makeChild(E,S));return R.instance!==b.instance[S]&&(b.instance[S]=R.instance),b.importErrors(R),!0}),b}},s.contains=function(g,p,w,x){var f=this;if(this.types.array(g)&&p.contains!==void 0){if(!e.isSchema(p.contains))throw new Error('Expected "contains" keyword to be a schema');var b=new t(g,p,w,x),d=g.some(function(S,E){var R=f.validateSchema(S,p.contains,w,x.makeChild(p.contains,E));return R.errors.length===0});return d===!1&&b.addError({name:"contains",argument:p.contains,message:"must contain an item matching given schema"}),b}},s.minimum=function(g,p,w,x){if(this.types.number(g)){var f=new t(g,p,w,x);return p.exclusiveMinimum&&p.exclusiveMinimum===!0?g>p.minimum||f.addError({name:"minimum",argument:p.minimum,message:"must be greater than "+p.minimum}):g>=p.minimum||f.addError({name:"minimum",argument:p.minimum,message:"must be greater than or equal to "+p.minimum}),f}},s.maximum=function(g,p,w,x){if(this.types.number(g)){var f=new t(g,p,w,x);return p.exclusiveMaximum&&p.exclusiveMaximum===!0?g<p.maximum||f.addError({name:"maximum",argument:p.maximum,message:"must be less than "+p.maximum}):g<=p.maximum||f.addError({name:"maximum",argument:p.maximum,message:"must be less than or equal to "+p.maximum}),f}},s.exclusiveMinimum=function(g,p,w,x){if(typeof p.exclusiveMinimum!="boolean"&&this.types.number(g)){var f=new t(g,p,w,x),b=g>p.exclusiveMinimum;return b||f.addError({name:"exclusiveMinimum",argument:p.exclusiveMinimum,message:"must be strictly greater than "+p.exclusiveMinimum}),f}},s.exclusiveMaximum=function(g,p,w,x){if(typeof p.exclusiveMaximum!="boolean"&&this.types.number(g)){var f=new t(g,p,w,x),b=g<p.exclusiveMaximum;return b||f.addError({name:"exclusiveMaximum",argument:p.exclusiveMaximum,message:"must be strictly less than "+p.exclusiveMaximum}),f}};var h=function(g,p,w,x,f,b){if(this.types.number(g)){var d=p[f];if(d==0)throw new r(f+" cannot be zero");var S=new t(g,p,w,x),E=e.getDecimalPlaces(g),R=e.getDecimalPlaces(d),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(g*k)%Math.round(d*k)!==0&&S.addError({name:f,argument:d,message:b+JSON.stringify(d)}),S}};s.multipleOf=function(g,p,w,x){return h.call(this,g,p,w,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(g,p,w,x){return h.call(this,g,p,w,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(g,p,w,x){var f=new t(g,p,w,x);return g===void 0&&p.required===!0?f.addError({name:"required",message:"is required"}):this.types.object(g)&&Array.isArray(p.required)&&p.required.forEach(function(b){l(g,b)===void 0&&f.addError({name:"required",argument:b,message:"requires property "+JSON.stringify(b)})}),f},s.pattern=function(g,p,w,x){if(this.types.string(g)){var f=new t(g,p,w,x),b=p.pattern;try{var d=new RegExp(b,"u")}catch{d=new RegExp(b)}return g.match(d)||f.addError({name:"pattern",argument:p.pattern,message:"does not match pattern "+JSON.stringify(p.pattern.toString())}),f}},s.format=function(g,p,w,x){if(g!==void 0){var f=new t(g,p,w,x);return!f.disableFormat&&!e.isFormat(g,p.format,this)&&f.addError({name:"format",argument:p.format,message:"does not conform to the "+JSON.stringify(p.format)+" format"}),f}},s.minLength=function(g,p,w,x){if(this.types.string(g)){var f=new t(g,p,w,x),b=g.match(/[\uDC00-\uDFFF]/g),d=g.length-(b?b.length:0);return d>=p.minLength||f.addError({name:"minLength",argument:p.minLength,message:"does not meet minimum length of "+p.minLength}),f}},s.maxLength=function(g,p,w,x){if(this.types.string(g)){var f=new t(g,p,w,x),b=g.match(/[\uDC00-\uDFFF]/g),d=g.length-(b?b.length:0);return d<=p.maxLength||f.addError({name:"maxLength",argument:p.maxLength,message:"does not meet maximum length of "+p.maxLength}),f}},s.minItems=function(g,p,w,x){if(this.types.array(g)){var f=new t(g,p,w,x);return g.length>=p.minItems||f.addError({name:"minItems",argument:p.minItems,message:"does not meet minimum length of "+p.minItems}),f}},s.maxItems=function(g,p,w,x){if(this.types.array(g)){var f=new t(g,p,w,x);return g.length<=p.maxItems||f.addError({name:"maxItems",argument:p.maxItems,message:"does not meet maximum length of "+p.maxItems}),f}};function y(v,g,p){var w,x=p.length;for(w=g+1,x;w<x;w++)if(e.deepCompareStrict(v,p[w]))return!1;return!0}return s.uniqueItems=function(g,p,w,x){if(p.uniqueItems===!0&&this.types.array(g)){var f=new t(g,p,w,x);return g.every(y)||f.addError({name:"uniqueItems",message:"contains duplicate item"}),f}},s.dependencies=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x);for(var b in p.dependencies)if(g[b]!==void 0){var d=p.dependencies[b],S=x.makeChild(d,b);if(typeof d=="string"&&(d=[d]),Array.isArray(d))d.forEach(function(R){g[R]===void 0&&f.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(g,d,w,S);f.instance!==E.instance&&(f.instance=E.instance),E&&E.errors.length&&(f.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),f.importErrors(E))}}return f}},s.enum=function(g,p,w,x){if(g===void 0)return null;if(!Array.isArray(p.enum))throw new r("enum expects an array",p);var f=new t(g,p,w,x);return p.enum.some(e.deepCompareStrict.bind(null,g))||f.addError({name:"enum",argument:p.enum,message:"is not one of enum values: "+p.enum.map(String).join(",")}),f},s.const=function(g,p,w,x){if(g===void 0)return null;var f=new t(g,p,w,x);return e.deepCompareStrict(p.const,g)||f.addError({name:"const",argument:p.const,message:"does not exactly match expected constant: "+p.const}),f},s.not=s.disallow=function(g,p,w,x){var f=this;if(g===void 0)return null;var b=new t(g,p,w,x),d=p.not||p.disallow;return d?(Array.isArray(d)||(d=[d]),d.forEach(function(S){if(f.testType(g,p,w,x,S)){var E=S&&(S.$id||S.id),R=E||S;b.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),b):null},Cl=o,Cl}var Ws={},Lg;function Ql(){if(Lg)return Ws;Lg=1;var e=Tn();Ws.SchemaScanResult=t;function t(r,o){this.id=r,this.ref=o}return Ws.scan=function(o,s){function a(v,g){if(!g||typeof g!="object")return;if(g.$ref){let f=e.resolveUrl(v,g.$ref);y[f]=y[f]?y[f]+1:0;return}var p=g.$id||g.id;let w=e.resolveUrl(v,p);var x=p?w:v;if(x){if(x.indexOf("#")<0&&(x+="#"),h[x]){if(!e.deepCompareStrict(h[x],g))throw new Error("Schema <"+x+"> already exists with different definition");return h[x]}h[x]=g,x[x.length-1]=="#"&&(h[x.substring(0,x.length-1)]=g)}l(x+"/items",Array.isArray(g.items)?g.items:[g.items]),l(x+"/extends",Array.isArray(g.extends)?g.extends:[g.extends]),a(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),a(x+"/additionalProperties",g.additionalProperties),c(x+"/definitions",g.definitions),c(x+"/patternProperties",g.patternProperties),c(x+"/dependencies",g.dependencies),l(x+"/disallow",g.disallow),l(x+"/allOf",g.allOf),l(x+"/anyOf",g.anyOf),l(x+"/oneOf",g.oneOf),a(x+"/not",g.not)}function l(v,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)a(v+"/"+p,g[p])}function c(v,g){if(!(!g||typeof g!="object"))for(var p in g)a(v+"/"+p,g[p])}var h={},y={};return a(o,s),new t(h,y)},Ws}var kl,Mg;function _$(){if(Mg)return kl;Mg=1;var e=E$(),t=Tn(),r=Ql().scan,o=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",h=function g(){this.customFormats=Object.create(g.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(v),this.attributes=Object.create(e.validators)};h.prototype.customFormats={},h.prototype.schemas=null,h.prototype.types=null,h.prototype.attributes=null,h.prototype.unresolvedRefs=null,h.prototype.addSchema=function(p,w){var x=this;if(!p)return null;var f=r(w||c,p),b=w||p.$id||p.id;for(var d in f.id)this.schemas[d]=f.id[d];for(var d in f.ref)this.unresolvedRefs.push(d);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[b]},h.prototype.addSubSchemaArray=function(p,w){if(Array.isArray(w))for(var x=0;x<w.length;x++)this.addSubSchema(p,w[x])},h.prototype.addSubSchemaObject=function(p,w){if(!(!w||typeof w!="object"))for(var x in w)this.addSubSchema(p,w[x])},h.prototype.setSchemas=function(p){this.schemas=p},h.prototype.getSchema=function(p){return this.schemas[p]},h.prototype.validate=function(p,w,x,f){if(typeof w!="boolean"&&typeof w!="object"||w===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var b=w.$id||w.id;let d=t.resolveUrl(x.base,b||"");if(!f){f=new l(w,x,[],d,Object.create(this.schemas)),f.schemas[d]||(f.schemas[d]=w);var S=r(d,w);for(var E in S.id){var R=S.id[E];f.schemas[E]=R}}if(x.required&&p===void 0){var O=new o(p,w,x,f);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(p,w,x,f);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function y(g){var p=typeof g=="string"?g:g.$ref;return typeof p=="string"?p:!1}h.prototype.validateSchema=function(p,w,x,f){var b=new o(p,w,x,f);if(typeof w=="boolean")w===!0?w={}:w===!1&&(w={type:[]});else if(!w)throw new Error("schema is undefined");if(w.extends)if(Array.isArray(w.extends)){var d={schema:w,ctx:f};w.extends.forEach(this.schemaTraverser.bind(this,d)),w=d.schema,d.schema=null,d.ctx=null,d=null}else w=t.deepMerge(w,this.superResolve(w.extends,f));var S=y(w);if(S){var E=this.resolve(w,S,f),R=new l(E.subschema,x,f.path,E.switchSchema,f.schemas);return this.validateSchema(p,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in w)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var B=null,L=this.attributes[k];if(L)B=L.call(this,p,w,x,f);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,w);B&&b.importErrors(B)}if(typeof x.rewrite=="function"){var M=x.rewrite.call(this,p,w,x,f);b.instance=M}return b},h.prototype.schemaTraverser=function(p,w){p.schema=t.deepMerge(p.schema,this.superResolve(w,p.ctx))},h.prototype.superResolve=function(p,w){var x=y(p);return x?this.resolve(p,x,w).subschema:p},h.prototype.resolve=function(p,w,x){if(w=x.resolve(w),x.schemas[w])return{subschema:x.schemas[w],switchSchema:w};let b=new URL(w,"thismessage::/").hash;var d=b&&b.length&&w.substr(0,w.length-b.length);if(!d||!x.schemas[d])throw new a("no such schema <"+w+">",p);var S=t.objectGetPath(x.schemas[d],b.substr(1));if(S===void 0)throw new a("no such schema "+b+" located in <"+d+">",p);return{subschema:S,switchSchema:w}},h.prototype.testType=function(p,w,x,f,b){if(b!==void 0){if(b===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[b]=="function")return this.types[b].call(this,p);if(b&&typeof b=="object"){var d=this.validateSchema(p,b,x,f);return d===void 0||!(d&&d.errors.length)}return!0}};var v=h.prototype.types={};return v.string=function(p){return typeof p=="string"},v.number=function(p){return typeof p=="number"&&isFinite(p)},v.integer=function(p){return typeof p=="number"&&p%1===0},v.boolean=function(p){return typeof p=="boolean"},v.array=function(p){return Array.isArray(p)},v.null=function(p){return p===null},v.date=function(p){return p instanceof Date},v.any=function(p){return!0},v.object=function(p){return p&&typeof p=="object"&&!Array.isArray(p)&&!(p instanceof Date)},kl=h,kl}var Fg;function A$(){if(Fg)return mr;Fg=1;var e=mr.Validator=_$();return mr.ValidatorResult=Tn().ValidatorResult,mr.ValidatorResultError=Tn().ValidatorResultError,mr.ValidationError=Tn().ValidationError,mr.SchemaError=Tn().SchemaError,mr.SchemaScanResult=Ql().SchemaScanResult,mr.scan=Ql().scan,mr.validate=function(t,r,o){var s=new e;return s.validate(t,r,o)},mr}var O$=A$();const a0=(e,t,r)=>{const o=e instanceof RegExp?Dg(e,r):e,s=t instanceof RegExp?Dg(t,r):t,a=o!==null&&s!=null&&T$(o,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+o.length,a[1]),post:r.slice(a[1]+s.length)}},Dg=(e,t)=>{const r=t.match(e);return r?r[0]:null},T$=(e,t,r)=>{let o,s,a,l,c,h=r.indexOf(e),y=r.indexOf(t,h+1),v=h;if(h>=0&&y>0){if(e===t)return[h,y];for(o=[],a=r.length;v>=0&&!c;){if(v===h)o.push(v),h=r.indexOf(e,v+1);else if(o.length===1){const g=o.pop();g!==void 0&&(c=[g,y])}else s=o.pop(),s!==void 0&&s<a&&(a=s,l=y),y=r.indexOf(t,v+1);v=h<y&&h>=0?h:y}o.length&&l!==void 0&&(c=[a,l])}return c},u0="\0SLASH"+Math.random()+"\0",l0="\0OPEN"+Math.random()+"\0",jc="\0CLOSE"+Math.random()+"\0",c0="\0COMMA"+Math.random()+"\0",f0="\0PERIOD"+Math.random()+"\0",R$=new RegExp(u0,"g"),P$=new RegExp(l0,"g"),C$=new RegExp(jc,"g"),k$=new RegExp(c0,"g"),$$=new RegExp(f0,"g"),I$=/\\\\/g,L$=/\\{/g,M$=/\\}/g,F$=/\\,/g,D$=/\\./g;function $l(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function N$(e){return e.replace(I$,u0).replace(L$,l0).replace(M$,jc).replace(F$,c0).replace(D$,f0)}function j$(e){return e.replace(R$,"\\").replace(P$,"{").replace(C$,"}").replace(k$,",").replace($$,".")}function d0(e){if(!e)return[""];const t=[],r=a0("{","}",e);if(!r)return e.split(",");const{pre:o,body:s,post:a}=r,l=o.split(",");l[l.length-1]+="{"+s+"}";const c=d0(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function z$(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),so(N$(e),!0).map(j$)):[]}function W$(e){return"{"+e+"}"}function B$(e){return/^-?0\d/.test(e)}function U$(e,t){return e<=t}function H$(e,t){return e>=t}function so(e,t){const r=[],o=a0("{","}",e);if(!o)return[e];const s=o.pre,a=o.post.length?so(o.post,!1):[""];if(/\$$/.test(o.pre))for(let l=0;l<a.length;l++){const c=s+"{"+o.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),h=l||c,y=o.body.indexOf(",")>=0;if(!h&&!y)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+jc+o.post,so(e)):[e];let v;if(h)v=o.body.split(/\.\./);else if(v=d0(o.body),v.length===1&&v[0]!==void 0&&(v=so(v[0],!1).map(W$),v.length===1))return a.map(p=>o.pre+v[0]+p);let g;if(h&&v[0]!==void 0&&v[1]!==void 0){const p=$l(v[0]),w=$l(v[1]),x=Math.max(v[0].length,v[1].length);let f=v.length===3&&v[2]!==void 0?Math.abs($l(v[2])):1,b=U$;w<p&&(f*=-1,b=H$);const S=v.some(B$);g=[];for(let E=p;b(E,w);E+=f){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}g.push(R)}}else{g=[];for(let p=0;p<v.length;p++)g.push.apply(g,so(v[p],!1))}for(let p=0;p<g.length;p++)for(let w=0;w<a.length;w++){const x=s+g[p]+a[w];(!t||h||x)&&r.push(x)}}return r}const q$=1024*64,ua=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>q$)throw new TypeError("pattern is too long")},Z$={"[: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]},ro=e=>e.replace(/[[\]\\-]/g,"\\$&"),G$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ng=e=>e.join(""),K$=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const o=[],s=[];let a=r+1,l=!1,c=!1,h=!1,y=!1,v=r,g="";e:for(;a<e.length;){const f=e.charAt(a);if((f==="!"||f==="^")&&a===r+1){y=!0,a++;continue}if(f==="]"&&l&&!h){v=a+1;break}if(l=!0,f==="\\"&&!h){h=!0,a++;continue}if(f==="["&&!h){for(const[b,[d,S,E]]of Object.entries(Z$))if(e.startsWith(b,a)){if(g)return["$.",!1,e.length-r,!0];a+=b.length,E?s.push(d):o.push(d),c=c||S;continue e}}if(h=!1,g){f>g?o.push(ro(g)+"-"+ro(f)):f===g&&o.push(ro(f)),g="",a++;continue}if(e.startsWith("-]",a+1)){o.push(ro(f+"-")),a+=2;continue}if(e.startsWith("-",a+1)){g=f,a+=2;continue}o.push(ro(f)),a++}if(v<a)return["",!1,0,!1];if(!o.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&o.length===1&&/^\\?.$/.test(o[0])&&!y){const f=o[0].length===2?o[0].slice(-1):o[0];return[G$(f),!1,v-r,!1]}const p="["+(y?"^":"")+Ng(o)+"]",w="["+(y?"":"^")+Ng(s)+"]";return[o.length&&s.length?"("+p+"|"+w+")":o.length?p:w,c,v-r,!0]},ao=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),V$=new Set(["!","?","+","*","@"]),jg=e=>V$.has(e),Y$="(?!(?:^|/)\\.\\.?(?:$|/))",Bs="(?!\\.)",X$=new Set(["[","."]),J$=new Set(["..","."]),Q$=new Set("().*{}+?[]^$\\!"),eI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),zc="[^/]",zg=zc+"*?",Wg=zc+"+?";var ot,lt,jr,Ue,Qe,sn,Rn,an,wr,Pn,xo,Fn,p0,cn,Xs,ec,h0;const Ot=class Ot{constructor(t,r,o={}){bt(this,Fn);me(this,"type");bt(this,ot);bt(this,lt);bt(this,jr,!1);bt(this,Ue,[]);bt(this,Qe);bt(this,sn);bt(this,Rn);bt(this,an,!1);bt(this,wr);bt(this,Pn);bt(this,xo,!1);this.type=t,t&&Ve(this,lt,!0),Ve(this,Qe,r),Ve(this,ot,re(this,Qe)?re(re(this,Qe),ot):this),Ve(this,wr,re(this,ot)===this?o:re(re(this,ot),wr)),Ve(this,Rn,re(this,ot)===this?[]:re(re(this,ot),Rn)),t==="!"&&!re(re(this,ot),an)&&re(this,Rn).push(this),Ve(this,sn,re(this,Qe)?re(re(this,Qe),Ue).length:0)}get hasMagic(){if(re(this,lt)!==void 0)return re(this,lt);for(const t of re(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Ve(this,lt,!0);return re(this,lt)}toString(){return re(this,Pn)!==void 0?re(this,Pn):this.type?Ve(this,Pn,this.type+"("+re(this,Ue).map(t=>String(t)).join("|")+")"):Ve(this,Pn,re(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Ot&&re(r,Qe)===this))throw new Error("invalid part: "+r);re(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?re(this,Ue).slice().map(o=>typeof o=="string"?o:o.toJSON()):[this.type,...re(this,Ue).map(o=>o.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ot)||re(re(this,ot),an)&&((r=re(this,Qe))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ot)===this)return!0;if(!((r=re(this,Qe))!=null&&r.isStart()))return!1;if(re(this,sn)===0)return!0;const t=re(this,Qe);for(let o=0;o<re(this,sn);o++){const s=re(t,Ue)[o];if(!(s instanceof Ot&&s.type==="!"))return!1}return!0}isEnd(){var r,o,s;if(re(this,ot)===this||((r=re(this,Qe))==null?void 0:r.type)==="!")return!0;if(!((o=re(this,Qe))!=null&&o.isEnd()))return!1;if(!this.type)return(s=re(this,Qe))==null?void 0:s.isEnd();const t=re(this,Qe)?re(re(this,Qe),Ue).length:0;return re(this,sn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Ot(this.type,t);for(const o of re(this,Ue))r.copyIn(o);return r}static fromGlob(t,r={}){var s;const o=new Ot(null,void 0,r);return $e(s=Ot,cn,Xs).call(s,t,o,0,r),o}toMMPattern(){if(this!==re(this,ot))return re(this,ot).toMMPattern();const t=this.toString(),[r,o,s,a]=this.toRegExpSource();if(!(s||re(this,lt)||re(this,wr).nocase&&!re(this,wr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return o;const c=(re(this,wr).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,wr)}toRegExpSource(t){var h;const r=t??!!re(this,wr).dot;if(re(this,ot)===this&&$e(this,Fn,p0).call(this),!this.type){const y=this.isStart()&&this.isEnd(),v=re(this,Ue).map(x=>{var E;const[f,b,d,S]=typeof x=="string"?$e(E=Ot,cn,h0).call(E,x,re(this,lt),y):x.toRegExpSource(t);return Ve(this,lt,re(this,lt)||d),Ve(this,jr,re(this,jr)||S),f}).join("");let g="";if(this.isStart()&&typeof re(this,Ue)[0]=="string"&&!(re(this,Ue).length===1&&J$.has(re(this,Ue)[0]))){const f=X$,b=r&&f.has(v.charAt(0))||v.startsWith("\\.")&&f.has(v.charAt(2))||v.startsWith("\\.\\.")&&f.has(v.charAt(4)),d=!r&&!t&&f.has(v.charAt(0));g=b?Y$:d?Bs:""}let p="";return this.isEnd()&&re(re(this,ot),an)&&((h=re(this,Qe))==null?void 0:h.type)==="!"&&(p="(?:$|\\/)"),[g+v+p,ao(v),Ve(this,lt,!!re(this,lt)),re(this,jr)]}const o=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,Fn,ec).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const y=this.toString();return Ve(this,Ue,[y]),this.type=null,Ve(this,lt,void 0),[y,ao(this.toString()),!1,!1]}let l=!o||t||r||!Bs?"":$e(this,Fn,ec).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,xo))c=(this.isStart()&&!r?Bs:"")+Wg;else{const y=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Bs:"")+zg+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+y}return[c,ao(a),Ve(this,lt,!!re(this,lt)),re(this,jr)]}};ot=new WeakMap,lt=new WeakMap,jr=new WeakMap,Ue=new WeakMap,Qe=new WeakMap,sn=new WeakMap,Rn=new WeakMap,an=new WeakMap,wr=new WeakMap,Pn=new WeakMap,xo=new WeakMap,Fn=new WeakSet,p0=function(){if(this!==re(this,ot))throw new Error("should only call on root");if(re(this,an))return this;this.toString(),Ve(this,an,!0);let t;for(;t=re(this,Rn).pop();){if(t.type!=="!")continue;let r=t,o=re(r,Qe);for(;o;){for(let s=re(r,sn)+1;!o.type&&s<re(o,Ue).length;s++)for(const a of re(t,Ue)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(o,Ue)[s])}r=o,o=re(r,Qe)}}return this},cn=new WeakSet,Xs=function(t,r,o,s){var w,x;let a=!1,l=!1,c=-1,h=!1;if(r.type===null){let f=o,b="";for(;f<t.length;){const d=t.charAt(f++);if(a||d==="\\"){a=!a,b+=d;continue}if(l){f===c+1?(d==="^"||d==="!")&&(h=!0):d==="]"&&!(f===c+2&&h)&&(l=!1),b+=d;continue}else if(d==="["){l=!0,c=f,h=!1,b+=d;continue}if(!s.noext&&jg(d)&&t.charAt(f)==="("){r.push(b),b="";const S=new Ot(d,r);f=$e(w=Ot,cn,Xs).call(w,t,S,f,s),r.push(S);continue}b+=d}return r.push(b),f}let y=o+1,v=new Ot(null,r);const g=[];let p="";for(;y<t.length;){const f=t.charAt(y++);if(a||f==="\\"){a=!a,p+=f;continue}if(l){y===c+1?(f==="^"||f==="!")&&(h=!0):f==="]"&&!(y===c+2&&h)&&(l=!1),p+=f;continue}else if(f==="["){l=!0,c=y,h=!1,p+=f;continue}if(jg(f)&&t.charAt(y)==="("){v.push(p),p="";const b=new Ot(f,v);v.push(b),y=$e(x=Ot,cn,Xs).call(x,t,b,y,s);continue}if(f==="|"){v.push(p),p="",g.push(v),v=new Ot(null,r);continue}if(f===")")return p===""&&re(r,Ue).length===0&&Ve(r,xo,!0),v.push(p),p="",r.push(...g,v),y;p+=f}return r.type=null,Ve(r,lt,void 0),Ve(r,Ue,[t.substring(o-1)]),y},ec=function(t){return re(this,Ue).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[o,s,a,l]=r.toRegExpSource(t);return Ve(this,jr,re(this,jr)||l),o}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},h0=function(t,r,o=!1){let s=!1,a="",l=!1;for(let c=0;c<t.length;c++){const h=t.charAt(c);if(s){s=!1,a+=(Q$.has(h)?"\\":"")+h;continue}if(h==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(h==="["){const[y,v,g,p]=K$(t,c);if(g){a+=y,l=l||v,c+=g-1,r=r||p;continue}}if(h==="*"){o&&t==="*"?a+=Wg:a+=zg,r=!0;continue}if(h==="?"){a+=zc,r=!0;continue}a+=eI(h)}return[a,ao(t),!!r,l]},bt(Ot,cn);let la=Ot;const tI=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),St=(e,t,r={})=>(ua(t),!r.nocomment&&t.charAt(0)==="#"?!1:new _a(t,r).match(e)),rI=/^\*+([^+@!?\*\[\(]*)$/,nI=e=>t=>!t.startsWith(".")&&t.endsWith(e),iI=e=>t=>t.endsWith(e),oI=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),sI=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),aI=/^\*+\.\*+$/,uI=e=>!e.startsWith(".")&&e.includes("."),lI=e=>e!=="."&&e!==".."&&e.includes("."),cI=/^\.\*+$/,fI=e=>e!=="."&&e!==".."&&e.startsWith("."),dI=/^\*+$/,pI=e=>e.length!==0&&!e.startsWith("."),hI=e=>e.length!==0&&e!=="."&&e!=="..",gI=/^\?+([^+@!?\*\[\(]*)?$/,vI=([e,t=""])=>{const r=g0([e]);return t?(t=t.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(t)):r},mI=([e,t=""])=>{const r=v0([e]);return t?(t=t.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(t)):r},yI=([e,t=""])=>{const r=v0([e]);return t?o=>r(o)&&o.endsWith(t):r},wI=([e,t=""])=>{const r=g0([e]);return t?o=>r(o)&&o.endsWith(t):r},g0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},v0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},m0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Bg={win32:{sep:"\\"},posix:{sep:"/"}},bI=m0==="win32"?Bg.win32.sep:Bg.posix.sep;St.sep=bI;const Qt=Symbol("globstar **");St.GLOBSTAR=Qt;const xI="[^/]",SI=xI+"*?",EI="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_I="(?:(?!(?:\\/|^)\\.).)*?",AI=(e,t={})=>r=>St(r,e,t);St.filter=AI;const Jt=(e,t={})=>Object.assign({},e,t),OI=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return St;const t=St;return Object.assign((o,s,a={})=>t(o,s,Jt(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,Jt(e,a))}static defaults(s){return t.defaults(Jt(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,l={}){super(s,a,Jt(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,Jt(e,a))}},unescape:(o,s={})=>t.unescape(o,Jt(e,s)),escape:(o,s={})=>t.escape(o,Jt(e,s)),filter:(o,s={})=>t.filter(o,Jt(e,s)),defaults:o=>t.defaults(Jt(e,o)),makeRe:(o,s={})=>t.makeRe(o,Jt(e,s)),braceExpand:(o,s={})=>t.braceExpand(o,Jt(e,s)),match:(o,s,a={})=>t.match(o,s,Jt(e,a)),sep:t.sep,GLOBSTAR:Qt})};St.defaults=OI;const y0=(e,t={})=>(ua(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:z$(e));St.braceExpand=y0;const TI=(e,t={})=>new _a(e,t).makeRe();St.makeRe=TI;const RI=(e,t,r={})=>{const o=new _a(t,r);return e=e.filter(s=>o.match(s)),o.options.nonull&&!e.length&&e.push(t),e};St.match=RI;const Ug=/[?*]|[+@!]\(.*?\)|\[|\]/,PI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class _a{constructor(t,r={}){me(this,"options");me(this,"set");me(this,"pattern");me(this,"windowsPathsNoEscape");me(this,"nonegate");me(this,"negate");me(this,"comment");me(this,"empty");me(this,"preserveMultipleSlashes");me(this,"partial");me(this,"globSet");me(this,"globParts");me(this,"nocase");me(this,"isWindows");me(this,"platform");me(this,"windowsNoMagicRoot");me(this,"regexp");ua(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||m0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const o=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(o),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const h=a[0]===""&&a[1]===""&&(a[2]==="?"||!Ug.test(a[2]))&&!Ug.test(a[3]),y=/^[a-z]:/i.test(a[0]);if(h)return[...a.slice(0,4),...a.slice(4).map(v=>this.parse(v))];if(y)return[a[0],...a.slice(1).map(v=>this.parse(v))]}return a.map(h=>this.parse(h))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let o=0;o<t.length;o++)for(let s=0;s<t[o].length;s++)t[o][s]==="**"&&(t[o][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 o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let s=o;for(;r[s+1]==="**";)s++;s!==o&&r.splice(o,s-o)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((o,s)=>{const a=o[o.length-1];return s==="**"&&a==="**"?o:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(o.pop(),o):(o.push(s),o)},[]),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 o=0;for(;(o=t.indexOf("..",o+1))!==-1;){const s=t[o-1];s&&s!=="."&&s!==".."&&s!=="**"&&(r=!0,t.splice(o-1,2),o-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let o of t){let s=-1;for(;(s=o.indexOf("**",s+1))!==-1;){let l=s;for(;o[l+1]==="**";)l++;l>s&&o.splice(s+1,l-s);let c=o[s+1];const h=o[s+2],y=o[s+3];if(c!==".."||!h||h==="."||h===".."||!y||y==="."||y==="..")continue;r=!0,o.splice(s,1);const v=o.slice(0);v[s]="**",t.push(v),s--}if(!this.preserveMultipleSlashes){for(let l=1;l<o.length-1;l++){const c=o[l];l===1&&c===""&&o[0]===""||(c==="."||c==="")&&(r=!0,o.splice(l,1),l--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(r=!0,o.pop())}let a=0;for(;(a=o.indexOf("..",a+1))!==-1;){const l=o[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const h=a===1&&o[a+1]==="**"?["."]:[];o.splice(a-1,2,...h),o.length===0&&o.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let o=r+1;o<t.length;o++){const s=this.partsMatch(t[r],t[o],!this.preserveMultipleSlashes);if(s){t[r]=[],t[o]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,o=!1){let s=0,a=0,l=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])l.push(c==="b"?r[a]:t[s]),s++,a++;else if(o&&t[s]==="**"&&r[a]===t[s+1])l.push(t[s]),s++;else if(o&&r[a]==="**"&&t[s]===r[a+1])l.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),s++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,o=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,o++;o&&(this.pattern=t.slice(o)),this.negate=r}matchOne(t,r,o=!1){const s=this.options;if(this.isWindows){const f=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!f&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),d=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!d&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=b?3:f?0:void 0,R=S?3:d?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,h=t.length,y=r.length;l<h&&c<y;l++,c++){this.debug("matchOne loop");var v=r[c],g=t[l];if(this.debug(r,v,g),v===!1)return!1;if(v===Qt){this.debug("GLOBSTAR",[r,v,g]);var p=l,w=c+1;if(w===y){for(this.debug("** at the end");l<h;l++)if(t[l]==="."||t[l]===".."||!s.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<h;){var x=t[p];if(this.debug(`
206
+ globstar while`,t,p,r,w,x),this.matchOne(t.slice(p),r.slice(w),o))return this.debug("globstar found match!",p,h,x),!0;if(x==="."||x===".."||!s.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,p,r,w);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(o&&(this.debug(`
207
+ >>> no match, partial?`,t,p,r,w),p===h))}let f;if(typeof v=="string"?(f=g===v,this.debug("string match",v,g,f)):(f=v.test(g),this.debug("pattern match",v,g,f)),!f)return!1}if(l===h&&c===y)return!0;if(l===h)return o;if(c===y)return l===h-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return y0(this.pattern,this.options)}parse(t){ua(t);const r=this.options;if(t==="**")return Qt;if(t==="")return"";let o,s=null;(o=t.match(dI))?s=r.dot?hI:pI:(o=t.match(rI))?s=(r.nocase?r.dot?sI:oI:r.dot?iI:nI)(o[1]):(o=t.match(gI))?s=(r.nocase?r.dot?mI:vI:r.dot?yI:wI)(o):(o=t.match(aI))?s=r.dot?lI:uI:(o=t.match(cI))&&(s=fI);const a=la.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,o=r.noglobstar?SI:r.dot?EI:_I,s=new Set(r.nocase?["i"]:[]);let a=t.map(h=>{const y=h.map(v=>{if(v instanceof RegExp)for(const g of v.flags.split(""))s.add(g);return typeof v=="string"?PI(v):v===Qt?Qt:v._src});return y.forEach((v,g)=>{const p=y[g+1],w=y[g-1];v!==Qt||w===Qt||(w===void 0?p!==void 0&&p!==Qt?y[g+1]="(?:\\/|"+o+"\\/)?"+p:y[g]=o:p===void 0?y[g-1]=w+"(?:\\/|"+o+")?":p!==Qt&&(y[g-1]=w+"(?:\\/|\\/"+o+"\\/)"+p,y[g+1]=Qt))}),y.filter(v=>v!==Qt).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const o=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let l=s[s.length-1];if(!l)for(let c=s.length-2;!l&&c>=0;c--)l=s[c];for(let c=0;c<a.length;c++){const h=a[c];let y=s;if(o.matchBase&&h.length===1&&(y=[l]),this.matchOne(y,h,r))return o.flipNegate?!0:!this.negate}return o.flipNegate?!1:this.negate}static defaults(t){return St.defaults(t).Minimatch}}St.AST=la;St.Minimatch=_a;St.escape=tI;St.unescape=ao;const Wc="/$shared",CI={"**/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"}},"**/*.json":{parser:"json",content:{}}};function w0(e){const t=Object.entries(CI).find(([r])=>St(e,r));return t==null?void 0:t[1]}function Bc(e){var o;const t=(o=w0(e))==null?void 0:o.content;if(!t)return;const r=e.replace(`${Wc}/`,"Shared/");Uc({name:r,content:t,asText:typeof t=="string"})}function Co({path:e,createIfNotExists:t=!1}){const r=`${Wc}/${e}`;return Fe(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(o=>{const s=w0(e);let a=o;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 O$.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(o=>{if(kI(o)&&t){const s=$I(o,e);zm.next({message:s,kind:"warning"}),Bc(r)}throw o})}function kI(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 $I(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 II(e){return Fe(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LI(e){return Fe(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const b0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Mc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function MI(){const{hostname:e,host:t,protocol:r}=window.location,o=r==="https:";try{const s=await Fe(rt,{method:"POST",body:JSON.stringify({verb:dn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const l=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?o?c:l:s.webServerHTTPPort?l:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${o?"s":""}://${t}/remoteDebugger`,lsp:`ws${o?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),b0()}}async function x0(e){return await Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FI(...e){return(await Promise.all(e.map(o=>x0({root:o,verb:dn.GET_FOLDER})))).map(({children:o})=>o.map(({name:s,date:a,type:l})=>({name:s,type:l,date:a,path:`${l}/${s}`}))).flat()}function DI(e,t={}){const{sanitize:r=!0}=t;return Fe(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!r)return o;const s=new Map;return{...o,components:et.entries(o.components).map(([a,l])=>{const c=a,{resolvedName:h}=l.type;if(h==="WebformLoader"){const y=cc.generate();s.set(a,y),a=y}return[a,l,c]}).reduce((a,[l,c,h])=>{var y;return c.nodes&&(c.nodes=c.nodes.map(v=>s.get(v)||v)),c.linkedNodes&&(c.linkedNodes=et.entries(c.linkedNodes).reduce((v,[g,p])=>({...v,[g]:s.get(p)||p}),{})),(y=c.props)!=null&&y.events&&(c.props.events=c.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=s.get(v.loader)||v.loader),v))),{...a,[l]:{...c,props:{...c.props,__originalID:h}}}},{})}})}function NI(e){return Fe(rt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ht.METHOD,ht.CLASS].includes(t.type)?Ea(t.content):t.content}))}function jI(e){return e.type==="folder"?Fe(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function zI(e){return e.type==="folder"?(await Fe(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function WI(e){return Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function BI(e){return Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function UI(e){return(await Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function HI(...e){return await Fe(rt,{method:"POST",body:JSON.stringify({verb:dn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function qI(e){const t=await Fe("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function ZI(){return await Fe("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function GI(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,o=await(await fetch(t)).text(),{supported:s}=JSON.parse(o);return s}catch{return[]}}async function KI({name:e,path:t="",root:r="root",asText:o=!1}){return Fe(rt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function VI(e={}){try{return await Co({path:"shared_datasources.json",...e})}catch{return{}}}async function YI(e={}){try{return await Co({path:"shared_app_events.json",createIfNotExists:!0,...e})}catch{return[]}}async function XI(e={}){try{return await Co({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function JI(e={}){try{return await Co({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function QI(){try{return await Fe("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function eL(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const tL=Dc(),rL=async e=>{const t={verb:dn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return tL(async()=>(await Fe(rt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},nL=Dc(),iL=async e=>{const t={verb:dn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return nL(async()=>(await Fe(rt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Uc=async e=>{const t=await Fe(rt,{method:"POST",body:JSON.stringify({...e,verb:dn.SET_FILE_CONTENT,root:Lc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Fc(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},oL=async e=>await Uc({name:"crafted_components.json",path:ln.WEBFORMS,content:e});function sL(e){return Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function aL(e){return Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function uL(e){return Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function lL(e){return Fe(rt,{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)?Ea(t.content):t.content}).catch(t=>{var r,o;throw((o=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:o.errCode)===1839&&Bc(e.path),t})}function cL(e){return Fe(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function fL(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function dL(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 pL(e){const t=fL(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),l=s.split(":")[1].trim();return{name:a,type:l}}),r=dL(e),o=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:o}}async function hL(e,t){const o=e.split(".").pop();try{const s=await Fe(rt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});s.content=Ea(s.content);const{params:a,result:l}=pL(s.parameters);return{...s,params:a,returns:l}}catch(s){return console.error(s),{className:t,functionName:o,filePath:e,content:"",params:[]}}}var S0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(S0||{});function gL(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function vL(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var E0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(E0||{}),_0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(_0||{}),A0=(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))(A0||{}),O0=(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))(O0||{});const mL={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},yL={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=rt;exports.AppLoader=KC;exports.ControlledSwitch=fm;exports.DATASOURCE_THEMES=mL;exports.DatasourcesActions=jm;exports.DebuggerActions=Um;exports.DesignerRequestVerb=dn;exports.Dialog=wA;exports.DialogBody=ov;exports.EActivity=S0;exports.EDITOR=yL;exports.EIDENTIFIERS=A0;exports.ERROR_CODES=O0;exports.EWebFormStyleClassScope=E0;exports.EXT_API_PREFIX=Po;exports.FileFolderType=ht;exports.FolderRootPath=ln;exports.FolderRootType=Lc;exports.HTTPError=Jl;exports.HTTP_HANDLERS_TAB_PATH=Gm;exports.IPreemptive=bo;exports.IPublished=n0;exports.IPublishedRestScope=Nc;exports.IdentityProvider=bk;exports.Incase=qO;exports.IndentLines=wv;exports.LOCALIZATION_TAB_PATH=Km;exports.LogoSVG=Am;exports.LspActions=Bm;exports.MAX_FILE_NAME_LENGTH=$c;exports.MODEL_TAB_PATH=qk;exports.Modal=JC;exports.ModalCloseReason=oi;exports.ModalColor=$n;exports.ModalIcons=Vl;exports.ModalType=Cc;exports.Mutex=Vm;exports.NameError=Ic;exports.Overlay=iv;exports.Portal=Zg;exports.PublishOptions=m$;exports.ROLES_TAB_PATH=qm;exports.RemoteDebuggerMode=Mc;exports.SETTINGS_TAB_PATH=Zm;exports.SHARED_API_PREFIX=Wc;exports.SourceCodeDescriptor=_0;exports.Switcher=bv;exports.TabEventsActions=Wm;exports.Tip=nP;exports.TipsProvider=tP;exports.Toast=OO;exports.Tooltip=ZC;exports.Tree=HO;exports.TreeIcon=gv;exports.TreeNode=fc;exports.WebformActions=Nm;exports.WebformEventsActions=wo;exports.ZoomComponent=tk;exports.ZoomLevel=Tm;exports._isArrayDatasource=d$;exports._isObjectDatasource=p$;exports.addAttributesToContent=w$;exports.addFolder=WI;exports.by=Ym;exports.byId=Xk;exports.byPath=Jk;exports.callServerSideParser=S$;exports.checkUpdates=II;exports.createFolder=sL;exports.datasourcesSubject=Dk;exports.debuggerSubject=Wk;exports.dropFile=zI;exports.dropFolder=UI;exports.exists=Qk;exports.extractWebformName=Kk;exports.generateUUID=b$;exports.getAppSettings=MI;exports.getCatalog=ZI;exports.getDatasourceId=e$;exports.getDefaultAppSettings=b0;exports.getFile=NI;exports.getFileContent=KI;exports.getFileExtentionFromType=Gk;exports.getFilenameAndTypeFromPath=Zk;exports.getFilesInfo=HI;exports.getFolder=x0;exports.getFolders=FI;exports.getFunctionContent=hL;exports.getMonacoTheme=eL;exports.getNodeInfo=lL;exports.getSavedConditions=JI;exports.getSharedAppEvents=YI;exports.getSharedCSS=XI;exports.getSharedDatasources=VI;exports.getSharedResource=Co;exports.getSupportedLanguages=GI;exports.getTypeFromExtension=Fc;exports.getUserPrivileges=QI;exports.getWebForm=DI;exports.hasAttributesString=o0;exports.http=Fe;exports.installUpdates=LI;exports.isArrayDatasource=e0;exports.isDataClassMethod=i$;exports.isDataStoreMethod=n$;exports.isDateDatasource=h$;exports.isEntity=c$;exports.isEntityDatasource=a$;exports.isEntityMethod=o$;exports.isEntitySelection=f$;exports.isEntitySelectionDatasource=u$;exports.isEntitySelectionMethod=s$;exports.isObjectAttribute=t$;exports.isObjectDatasource=t0;exports.isRelatedAttribute=r$;exports.isRelatedEntitiesAttribute=Jm;exports.isRelatedEntityAttribute=Qm;exports.isScalarDatasource=r0;exports.isSimpleAttribute=Xm;exports.isSimpleDatasource=l$;exports.loadDS=g$;exports.loadI18n=v$;exports.log=gL;exports.login=qI;exports.lspSubject=zk;exports.moveItem=uL;exports.outBy=Vk;exports.outById=Yk;exports.parseAttributes=y$;exports.queue=Dc;exports.removeAttributesString=s0;exports.removeItem=aL;exports.renameFile=jI;exports.renameFolder=BI;exports.sanitizeContent=Ea;exports.saveContent=cL;exports.setCraftedComponents=oL;exports.setFileContent=Uc;exports.setSharedAppEvents=iL;exports.setSharedSources=rL;exports.stringifyAttributes=i0;exports.tabEventsSubject=jk;exports.tasksManagerSubject=Bk;exports.toastSubject=zm;exports.trackEvent=vL;exports.transformDates=x$;exports.tryCreateSharedResource=Bc;exports.useDidMountEffect=rk;exports.useDoubleClick=_k;exports.useFeatureFlags=wk;exports.useForwardedRef=yk;exports.useHotkeys=hk;exports.useIdentity=xk;exports.useOutsideClick=gk;exports.usePrevious=vk;exports.useStateObject=Sk;exports.useStateRef=mk;exports.useTip=Qv;exports.validateName=Hm;exports.validateServerSide=Uk;exports.validateValue=Hk;exports.webformEventsSubject=aa;exports.webformSubject=Nk;
149
208
  //# sourceMappingURL=index.cjs.js.map