New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@twilio-paste/modal-dialog-primitive

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio-paste/modal-dialog-primitive - npm Package Compare versions

Comparing version 0.2.6 to 0.3.0

6

CHANGELOG.md
# Change Log
## 0.3.0
### Minor Changes
- [`cf5878d82`](https://github.com/twilio-labs/paste/commit/cf5878d82bd552b22a49e5d4b4d0a6e85d829914) [#2285](https://github.com/twilio-labs/paste/pull/2285) Thanks [@SiTaggart](https://github.com/SiTaggart)! - [Modal primitive] update to Reach Modal version number to v0.16.2
## 0.2.6

@@ -4,0 +10,0 @@

26

dist/index.es.js

@@ -1,4 +0,4 @@

var Wt=Object.create;var Te=Object.defineProperty;var Ut=Object.getOwnPropertyDescriptor;var Vt=Object.getOwnPropertyNames;var Gt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var $t=e=>Te(e,"__esModule",{value:!0});var Fe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var qt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Vt(r))!Ht.call(e,o)&&(t||o!=="default")&&Te(e,o,{get:()=>r[o],enumerable:!(n=Ut(r,o))||n.enumerable});return e},le=(e,r)=>qt($t(Te(e!=null?Wt(Gt(e)):{},"default",!r&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Pr=Fe((ko,Cr)=>{"use strict";var nn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Cr.exports=nn});var Dr=Fe((Io,Fr)=>{"use strict";var on=Pr();function Nr(){}function Tr(){}Tr.resetWarningCache=Nr;Fr.exports=function(){function e(n,o,i,a,u,c){if(c!==on){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function r(){return e}var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Tr,resetWarningCache:Nr};return t.PropTypes=t,t}});var Z=Fe((Mo,kr)=>{kr.exports=Dr()();var Ao,Lo});import{forwardRef as pr,useEffect as Ct,createElement as q,useRef as Pt,useCallback as ro}from"react";import{useRef as xr,createElement as zt}from"react";import{useLayoutEffect as Yt,useEffect as Zt}from"react";function fe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gr=fe()?Yt:Zt;import{useState as Xt,useCallback as Kt}from"react";function br(){var e=Xt(Object.create(null)),r=e[1];return Kt(function(){r(Object.create(null))},[])}import{createPortal as Qt}from"react-dom";var wr=function(r){var t=r.children,n=r.type,o=n===void 0?"reach-portal":n,i=xr(null),a=xr(null),u=br();return gr(function(){if(!!i.current){var c=i.current.ownerDocument;return a.current=c==null?void 0:c.createElement(o),c.body.appendChild(a.current),u(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}},[o,u]),a.current?Qt(t,a.current):zt("span",{ref:i})};function _r(e){return fe()?e?e.ownerDocument:document:null}function Sr(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function De(){}import"react";function Rr(e){if(!1)var r}import{useCallback as Jt}from"react";function Er(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function en(e,r){if(!!e){if(typeof e=="string")return Er(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Er(e,r)}}function rn(e,r){var t;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(t=en(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return t=e[Symbol.iterator](),t.next.bind(t)}function tn(e,r){if(e!=null)if(Sr(e))e(r);else try{e.current=r}catch(t){throw new Error('Cannot assign value "'+r+'" to ref "'+e+'"')}}function Or(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Jt(function(n){for(var o=rn(r),i;!(i=o()).done;){var a=i.value;tn(a,n)}},r)}function Y(e,r){return function(t){if(e&&e(t),!t.defaultPrevented)return r(t)}}function ke(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(r.indexOf(o)>=0)&&(t[o]=e[o]);return t}function T(){return T=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},T.apply(this,arguments)}import*as we from"react";var ra=le(Z());import*as y from"react";var X="data-focus-lock",se="data-focus-lock-disabled",Ir="data-no-focus-lock",Ar="data-autofocus-inside";function Lr(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}import{useState as un}from"react";function Mr(e,r){var t=un(function(){return{value:e,callback:r,facade:{get current(){return t.value},set current(n){var o=t.value;o!==n&&(t.value=n,t.callback(n,o))}}}})[0];return t.callback=r,t.facade}function Ie(e,r){return Mr(r,function(t){return e.forEach(function(n){return Lr(n,t)})})}var qo=le(Z());import*as M from"react";var B={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Br=function(r){var t=r.children;return M.createElement(M.Fragment,null,M.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:B}),t,t&&M.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:B}))};Br.propTypes={};Br.defaultProps={children:null};var de=function(){return de=Object.assign||function(r){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},de.apply(this,arguments)};function jr(e){return e}function Wr(e,r){r===void 0&&(r=jr);var t=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(i){var a=r(i,n);return t.push(a),function(){t=t.filter(function(u){return u!==a})}},assignSyncMedium:function(i){for(n=!0;t.length;){var a=t;t=[],a.forEach(i)}t={push:function(u){return i(u)},filter:function(){return t}}},assignMedium:function(i){n=!0;var a=[];if(t.length){var u=t;t=[],u.forEach(i),a=t}var c=function(){var s=a;a=[],s.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),t={push:function(s){a.push(s),l()},filter:function(s){return a=a.filter(s),t}}}};return o}function K(e,r){return r===void 0&&(r=jr),Wr(e,r)}function Ae(e){e===void 0&&(e={});var r=Wr(null);return r.options=de({async:!0,ssr:!1},e),r}var me=K({},function(e){var r=e.target,t=e.currentTarget;return{target:r,currentTarget:t}}),pe=K(),Ur=K(),Vr=Ae({async:!0});var ln=[],Le=y.forwardRef(function(r,t){var n,o=y.useState(),i=o[0],a=o[1],u=y.useRef(),c=y.useRef(!1),l=y.useRef(null),s=r.children,d=r.disabled,p=r.noFocusGuards,v=r.persistentFocus,h=r.crossFrame,f=r.autoFocus,m=r.allowTextSelection,S=r.group,R=r.className,w=r.whiteList,x=r.shards,b=x===void 0?ln:x,F=r.as,N=F===void 0?"div":F,P=r.lockProps,L=P===void 0?{}:P,C=r.sideCar,ue=r.returnFocus,Pe=r.onActivation,Ne=r.onDeactivation,Nt=y.useState({}),Tt=Nt[0],Ft=y.useCallback(function(){l.current=l.current||document&&document.activeElement,u.current&&Pe&&Pe(u.current),c.current=!0},[Pe]),Dt=y.useCallback(function(){c.current=!1,Ne&&Ne(u.current)},[Ne]),kt=y.useCallback(function(D){var ce=l.current;if(Boolean(ue)&&ce&&ce.focus){var yr=typeof ue=="object"?ue:void 0;l.current=null,D?Promise.resolve().then(function(){return ce.focus(yr)}):ce.focus(yr)}},[ue]),It=y.useCallback(function(D){c.current&&me.useMedium(D)},[]),At=pe.useMedium,Lt=y.useCallback(function(D){u.current!==D&&(u.current=D,a(D))},[]),Mt=T((n={},n[se]=d&&"disabled",n[X]=S,n),L),hr=p!==!0,Bt=hr&&p!=="tail",jt=Ie([t,Lt]);return y.createElement(y.Fragment,null,hr&&[y.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:B}),y.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:B})],!d&&y.createElement(C,{id:Tt,sideCar:Vr,observed:i,disabled:d,persistentFocus:v,crossFrame:h,autoFocus:f,whiteList:w,shards:b,onActivation:Ft,onDeactivation:Dt,returnFocus:kt}),y.createElement(N,T({ref:jt},Mt,{className:R,onBlur:At,onFocus:It}),s),Bt&&y.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:B}))});Le.propTypes={};Le.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var Me=Le;var wi=le(Z());import*as tt from"react";function z(e,r){return z=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},z(e,r)}function Be(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,z(e,r)}function je(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}import fn,{PureComponent as sn}from"react";function dn(e,r){function t(n){return n.displayName||n.name||"Component"}return function(o){var i=[],a;function u(){a=e(i.map(function(l){return l.props})),r(a)}var c=function(l){Be(s,l);function s(){return l.apply(this,arguments)||this}s.peek=function(){return a};var d=s.prototype;return d.componentDidMount=function(){i.push(this),u()},d.componentDidUpdate=function(){u()},d.componentWillUnmount=function(){var v=i.indexOf(this);i.splice(v,1),u()},d.render=function(){return fn.createElement(o,this.props)},s}(sn);return je(c,"displayName","SideEffect("+t(o)+")"),c}}var Gr=dn;var E=function(e){for(var r=Array(e.length),t=0;t<e.length;++t)r[t]=e[t];return r},Q=function(e){return Array.isArray(e)?e:[e]};var mn=function(e){for(var r=new Set,t=e.length,n=0;n<t;n+=1)for(var o=n+1;o<t;o+=1){var i=e[n].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(n)}return e.filter(function(a,u){return!r.has(u)})},Hr=function(e){return e.parentNode?Hr(e.parentNode):e},j=function(e){var r=Q(e);return r.filter(Boolean).reduce(function(t,n){var o=n.getAttribute(X);return t.push.apply(t,o?mn(E(Hr(n).querySelectorAll("["+X+'="'+o+'"]:not(['+se+'="disabled"])'))):[n]),t},[])};var pn=function(e){return!e||!e.getPropertyValue?!1:e.getPropertyValue("display")==="none"||e.getPropertyValue("visibility")==="hidden"},vn=function(e,r){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!pn(window.getComputedStyle(e,null))&&r(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},We=function(e,r){var t=e.get(r);if(t!==void 0)return t;var n=vn(r,We.bind(void 0,e));return e.set(r,n),n},$r=function(e){return!((e.tagName==="INPUT"||e.tagName==="BUTTON")&&(e.type==="hidden"||e.disabled))},J=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},W=function(e){return!J(e)},qr=function(e){return Boolean(e)};var hn=function(e,r){var t=e.tabIndex-r.tabIndex,n=e.index-r.index;if(t){if(!e.tabIndex)return 1;if(!r.tabIndex)return-1}return t||n},Ue=function(e,r,t){return E(e).map(function(n,o){return{node:n,index:o,tabIndex:t&&n.tabIndex===-1?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}}).filter(function(n){return!r||n.tabIndex>=0}).sort(hn)};var Yr=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"];var Ve=Yr.join(","),yn=Ve+", [data-focus-guard]",ve=function(e,r){return e.reduce(function(t,n){return t.concat(E(n.querySelectorAll(r?yn:Ve)),n.parentNode?E(n.parentNode.querySelectorAll(Ve)).filter(function(o){return o===n}):[])},[])},Zr=function(e){var r=e.querySelectorAll("["+Ar+"]");return E(r).map(function(t){return ve([t])}).reduce(function(t,n){return t.concat(n)},[])};var Ge=function(e,r){return E(e).filter(function(t){return We(r,t)}).filter(function(t){return $r(t)})},ee=function(e,r,t){return Ue(Ge(ve(e,t),r),!0,t)},He=function(e,r){return Ue(Ge(ve(e),r),!1)},Xr=function(e,r){return Ge(Zr(e),r)};var $e=function(e,r){return r===void 0&&(r=[]),r.push(e),e.parentNode&&$e(e.parentNode,r),r},qe=function(e,r){for(var t=$e(e),n=$e(r),o=0;o<t.length;o+=1){var i=t[o];if(n.indexOf(i)>=0)return i}return!1},he=function(e,r,t){var n=Q(e),o=Q(r),i=n[0],a=!1;return o.filter(Boolean).forEach(function(u){a=qe(a||u,u)||a,t.filter(Boolean).forEach(function(c){var l=qe(i,c);l&&(!a||l.contains(a)?a=l:a=qe(l,a))})}),a},Kr=function(e,r){return e.reduce(function(t,n){return t.concat(Xr(n,r))},[])};var Ye=function(e){var r=j(e).filter(W),t=he(e,e,r),n=new Map,o=ee([t],n,!0),i=ee(r,n).filter(function(a){var u=a.node;return W(u)}).map(function(a){var u=a.node;return u});return o.map(function(a){var u=a.node,c=a.index;return{node:u,index:c,lockItem:i.indexOf(u)>=0,guard:J(u)}})};var gn=function(e){return e===document.activeElement},bn=function(e){return Boolean(E(e.querySelectorAll("iframe")).some(function(r){return gn(r)}))},ye=function(e){var r=document&&document.activeElement;return!r||r.dataset&&r.dataset.focusGuard?!1:j(e).reduce(function(t,n){return t||n.contains(r)||bn(n)},!1)};var Ze=function(){return document&&E(document.querySelectorAll("["+Ir+"]")).some(function(e){return e.contains(document.activeElement)})};var zr=function(e){return e.tagName==="INPUT"&&e.type==="radio"},xn=function(e,r){return r.filter(zr).filter(function(t){return t.name===e.name}).filter(function(t){return t.checked})[0]||e},ge=function(e,r){return zr(e)&&e.name?xn(e,r):e},Qr=function(e){var r=new Set;return e.forEach(function(t){return r.add(ge(t,e))}),e.filter(function(t){return r.has(t)})};var Xe=function(e){return e[0]&&e.length>1?ge(e[0],e):e[0]},Ke=function(e,r){return e.length>1?e.indexOf(ge(e[r],e)):r};var ze="NEW_FOCUS",Jr=function(e,r,t,n){var o=e.length,i=e[0],a=e[o-1],u=J(t);if(!(e.indexOf(t)>=0)){var c=r.indexOf(t),l=n?r.indexOf(n):c,s=n?e.indexOf(n):-1,d=c-l,p=r.indexOf(i),v=r.indexOf(a),h=Qr(r),f=h.indexOf(t)-(n?h.indexOf(n):c),m=Ke(e,0),S=Ke(e,o-1);if(c===-1||s===-1)return ze;if(!d&&s>=0)return s;if(c<=p&&u&&Math.abs(d)>1)return S;if(c>=v&&u&&Math.abs(d)>1)return m;if(d&&Math.abs(f)>1)return s;if(c<=p)return S;if(c>v)return m;if(d)return Math.abs(d)>1?s:(o+s+d)%o}};var wn=function(e){return function(r){return r.autofocus||r.dataset&&!!r.dataset.autofocus||e.indexOf(r)>=0}},_n=function(e,r){var t=new Map;return r.forEach(function(n){return t.set(n.node,n)}),e.map(function(n){return t.get(n)}).filter(qr)},et=function(e,r){var t=document&&document.activeElement,n=j(e).filter(W),o=he(t||e,e,n),i=new Map,a=He(n,i),u=ee(n,i).filter(function(v){var h=v.node;return W(h)});if(!(!u[0]&&(u=a,!u[0]))){var c=He([o],i).map(function(v){var h=v.node;return h}),l=_n(c,u),s=l.map(function(v){var h=v.node;return h}),d=Jr(s,c,t,r);if(d===ze){var p=a.map(function(v){var h=v.node;return h}).filter(wn(Kr(n,i)));return{node:p&&p.length?Xe(p):Xe(s)}}return d===void 0?d:l[d]}};var Sn=function(e){e.focus(),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},Qe=0,Je=!1,rt=function(e,r){var t=et(e,r);if(!Je&&t){if(Qe>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Je=!0,setTimeout(function(){Je=!1},1);return}Qe++,Sn(t.node),Qe--}};var er=rt;function rr(e){var r=window,t=r.setImmediate;typeof t!="undefined"?t(e):setTimeout(e,1)}var Rn=function(){return document&&document.activeElement===document.body},En=function(){return Rn()||Ze()},U=null,V=null,G=null,re=!1,On=function(){return!0},Cn=function(r){return(U.whiteList||On)(r)},Pn=function(r,t){G={observerNode:r,portaledElement:t}},Nn=function(r){return G&&G.portaledElement===r};function nt(e,r,t,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(i!==e)return;o=null}else break}while((i+=t)!==r);o&&(o.node.tabIndex=0)}var Tn=function(r){return r&&"current"in r?r.current:r},Fn=function(r){return r?Boolean(re):re==="meanwhile"},be=function(){var r=!1;if(U){var t=U,n=t.observed,o=t.persistentFocus,i=t.autoFocus,a=t.shards,u=t.crossFrame,c=n||G&&G.portaledElement,l=document&&document.activeElement;if(c){var s=[c].concat(a.map(Tn).filter(Boolean));if((!l||Cn(l))&&(o||Fn(u)||!En()||!V&&i)&&(c&&!(ye(s)||Nn(l,c))&&(document&&!V&&l&&!i?(l.blur&&l.blur(),document.body.focus()):(r=er(s,V),G={})),re=!1,V=document&&document.activeElement),document){var d=document&&document.activeElement,p=Ye(s),v=p.map(function(h){var f=h.node;return f}).indexOf(d);v>-1&&(p.filter(function(h){var f=h.guard,m=h.node;return f&&m.dataset.focusAutoGuard}).forEach(function(h){var f=h.node;return f.removeAttribute("tabIndex")}),nt(v,p.length,1,p),nt(v,-1,-1,p))}}}return r},ot=function(r){be()&&r&&(r.stopPropagation(),r.preventDefault())},xe=function(){return rr(be)},at=function(r){var t=r.target,n=r.currentTarget;n.contains(t)||Pn(n,t)},Dn=function(){return null},kn=function(r){var t=r.children;return tt.createElement("div",{onBlur:xe,onFocus:at},t)};kn.propTypes={};var it=function(){re="just",setTimeout(function(){re="meanwhile"},0)},In=function(){document.addEventListener("focusin",ot,!0),document.addEventListener("focusout",xe),window.addEventListener("blur",it)},An=function(){document.removeEventListener("focusin",ot,!0),document.removeEventListener("focusout",xe),window.removeEventListener("blur",it)};function Ln(e){return e.filter(function(r){var t=r.disabled;return!t})}function Mn(e){var r=e.slice(-1)[0];r&&!U&&In();var t=U,n=t&&r&&r.id===t.id;U=r,t&&!n&&(t.onDeactivation(),e.filter(function(o){var i=o.id;return i===t.id}).length||t.returnFocus(!r)),r?(V=null,(!n||t.observed!==r.observed)&&r.onActivation(),be(!0),rr(be)):(An(),V=null)}me.assignSyncMedium(at);pe.assignMedium(xe);Ur.assignMedium(function(e){return e({moveFocusInside:er,focusInside:ye})});var ut=Gr(Ln,Mn)(Dn);var ct=we.forwardRef(function(r,t){return we.createElement(Me,T({sideCar:ut,ref:t},r))}),lt=Me.propTypes||{},Di=lt.sideCar,ki=ke(lt,["sideCar"]);ct.propTypes={};var ft=ct;var st=ft;var O=function(){return O=Object.assign||function(r){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},O.apply(this,arguments)};function _e(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t}import*as Ce from"react";import*as _ from"react";var k="right-scroll-bar-position",I="width-before-scroll-bar",tr="with-scroll-bars-hidden";function Bn(e){return e}function jn(e,r){r===void 0&&(r=Bn);var t=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(i){var a=r(i,n);return t.push(a),function(){t=t.filter(function(u){return u!==a})}},assignSyncMedium:function(i){for(n=!0;t.length;){var a=t;t=[],a.forEach(i)}t={push:function(u){return i(u)},filter:function(){return t}}},assignMedium:function(i){n=!0;var a=[];if(t.length){var u=t;t=[],u.forEach(i),a=t}var c=function(){var s=a;a=[],s.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),t={push:function(s){a.push(s),l()},filter:function(s){return a=a.filter(s),t}}}};return o}function nr(e){e===void 0&&(e={});var r=jn(null);return r.options=O({async:!0,ssr:!1},e),r}import*as dt from"react";var mt=function(e){var r=e.sideCar,t=_e(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=r.read();if(!n)throw new Error("Sidecar medium not found");return dt.createElement(n,O({},t))};mt.isSideCarExport=!0;function or(e,r){return e.useMedium(r),mt}var Re=nr();function pt(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}import{useState as Wn}from"react";function vt(e,r){var t=Wn(function(){return{value:e,callback:r,facade:{get current(){return t.value},set current(n){var o=t.value;o!==n&&(t.value=n,t.callback(n,o))}}}})[0];return t.callback=r,t.facade}function ar(e,r){return vt(r,function(t){return e.forEach(function(n){return pt(n,t)})})}var ir=function(){},te=_.forwardRef(function(e,r){var t=_.useRef(null),n=_.useState({onScrollCapture:ir,onWheelCapture:ir,onTouchMoveCapture:ir}),o=n[0],i=n[1],a=e.forwardProps,u=e.children,c=e.className,l=e.removeScrollBar,s=e.enabled,d=e.shards,p=e.sideCar,v=e.noIsolation,h=e.inert,f=e.allowPinchZoom,m=e.as,S=m===void 0?"div":m,R=_e(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=ar([t,r]),b=O({},R,o);return _.createElement(_.Fragment,null,s&&_.createElement(w,{sideCar:Re,removeScrollBar:l,shards:d,noIsolation:v,inert:h,setCallbacks:i,allowPinchZoom:!!f,lockRef:t}),a?_.cloneElement(_.Children.only(u),O({},b,{ref:x})):_.createElement(S,O({},b,{className:c,ref:x}),u))});te.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};te.classNames={fullWidth:I,zeroRight:k};import*as g from"react";import*as H from"react";import*as gt from"react";var ht;var yt=function(){if(ht)return ht;if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function Un(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=yt();return r&&e.setAttribute("nonce",r),e}function Vn(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function Gn(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var ur=function(){var e=0,r=null;return{add:function(t){e==0&&(r=Un())&&(Vn(r,t),Gn(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}};var cr=function(){var e=ur();return function(r){gt.useEffect(function(){return e.add(r),function(){e.remove()}},[])}};var ne=function(){var e=cr(),r=function(t){var n=t.styles;return e(n),null};return r};var Hn={left:0,top:0,right:0,gap:0},lr=function(e){return parseInt(e||"",10)||0},$n=function(e){var r=window.getComputedStyle(document.body),t=r[e==="padding"?"paddingLeft":"marginLeft"],n=r[e==="padding"?"paddingTop":"marginTop"],o=r[e==="padding"?"paddingRight":"marginRight"];return[lr(t),lr(n),lr(o)]},Ee=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return Hn;var r=$n(e),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,n-t+r[2]-r[0])}};var qn=ne(),Yn=function(e,r,t,n){var o=e.left,i=e.top,a=e.right,u=e.gap;return t===void 0&&(t="margin"),`
.`+tr+` {
var qr=Object.create;var Te=Object.defineProperty;var Yr=Object.getOwnPropertyDescriptor;var Zr=Object.getOwnPropertyNames;var Xr=Object.getPrototypeOf,Kr=Object.prototype.hasOwnProperty;var zr=e=>Te(e,"__esModule",{value:!0});var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Zr(t))!Kr.call(e,o)&&(r||o!=="default")&&Te(e,o,{get:()=>t[o],enumerable:!(n=Yr(t,o))||n.enumerable});return e},fe=(e,t)=>Qr(zr(Te(e!=null?qr(Xr(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Tt=Ie((Zo,Ft)=>{"use strict";var fn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ft.exports=fn});var Lt=Ie((Xo,At)=>{"use strict";var sn=Tt();function It(){}function kt(){}kt.resetWarningCache=It;At.exports=function(){function e(n,o,a,i,u,f){if(f!==sn){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:kt,resetWarningCache:It};return r.PropTypes=r,r}});var K=Ie((Qo,Mt)=>{Mt.exports=Lt()();var Ko,zo});import{forwardRef as gt,useEffect as Fr,createElement as Y,useRef as Tr,useCallback as mo}from"react";import{useRef as Et,createElement as nn}from"react";import{useLayoutEffect as Jr,useEffect as en}from"react";function se(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var _t=se()?Jr:en;import{useState as tn,useCallback as rn}from"react";function St(){var e=tn(Object.create(null)),t=e[1];return rn(function(){t(Object.create(null))},[])}import{createPortal as on}from"react-dom";var Rt=function(t){var r=t.children,n=t.type,o=n===void 0?"reach-portal":n,a=t.containerRef,i=Et(null),u=Et(null),f=St();return _t(function(){if(!!i.current){var l=i.current.ownerDocument,c=(a==null?void 0:a.current)||l.body;return u.current=l==null?void 0:l.createElement(o),c.appendChild(u.current),f(),function(){u.current&&c&&c.removeChild(u.current)}}},[o,f,a]),u.current?on(r,u.current):nn("span",{ref:i})};function Ot(e){return se()?e?e.ownerDocument:document:null}function Ct(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function ke(){}import"react";function Nt(e){if(!1)var t}import{useCallback as an}from"react";function Pt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function un(e,t){if(!!e){if(typeof e=="string")return Pt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pt(e,t)}}function cn(e,t){var r;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=un(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=e[Symbol.iterator](),r.next.bind(r)}function ln(e,t){if(e!=null)if(Ct(e))e(t);else try{e.current=t}catch(r){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function Dt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return an(function(n){for(var o=cn(t),a;!(a=o()).done;){var i=a.value;ln(i,n)}},t)}function X(e,t){return function(r){if(e&&e(r),!r.defaultPrevented)return t(r)}}function Ae(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}import*as _e from"react";var ha=fe(K());import*as y from"react";var z="data-focus-lock",de="data-focus-lock-disabled",Bt="data-no-focus-lock",jt="data-autofocus-inside";function Wt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}import{useState as mn}from"react";function Vt(e,t){var r=mn(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function Le(e,t){return Vt(t,function(r){return e.forEach(function(n){return Wt(n,r)})})}import{useEffect as vn}from"react";var ua=fe(K());import*as M from"react";var B={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Ut=function(t){var r=t.children;return M.createElement(M.Fragment,null,M.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:B}),r,r&&M.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:B}))};Ut.propTypes={};Ut.defaultProps={children:null};var me=function(){return me=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},me.apply(this,arguments)};function Gt(e){return e}function Ht(e,t){t===void 0&&(t=Gt);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(u){return u!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(u){return a(u)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var u=r;r=[],u.forEach(a),i=r}var f=function(){var c=i;i=[],c.forEach(a)},l=function(){return Promise.resolve().then(f)};l(),r={push:function(c){i.push(c),l()},filter:function(c){return i=i.filter(c),r}}}};return o}function Q(e,t){return t===void 0&&(t=Gt),Ht(e,t)}function Me(e){e===void 0&&(e={});var t=Ht(null);return t.options=me({async:!0,ssr:!1},e),t}var pe=Q({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),ve=Q(),$t=Q(),qt=Me({async:!0});var hn=[],Be=y.forwardRef(function(t,r){var n,o=y.useState(),a=o[0],i=o[1],u=y.useRef(),f=y.useRef(!1),l=y.useRef(null),c=t.children,d=t.disabled,v=t.noFocusGuards,p=t.persistentFocus,h=t.crossFrame,s=t.autoFocus,m=t.allowTextSelection,b=t.group,w=t.className,_=t.whiteList,S=t.hasPositiveIndices,x=t.shards,L=x===void 0?hn:x,N=t.as,P=N===void 0?"div":N,F=t.lockProps,C=F===void 0?{}:F,Ir=t.sideCar,le=t.returnFocus,kr=t.focusOptions,Pe=t.onActivation,De=t.onDeactivation,Ar=y.useState({}),Lr=Ar[0],Mr=y.useCallback(function(){l.current=l.current||document&&document.activeElement,u.current&&Pe&&Pe(u.current),f.current=!0},[Pe]),Br=y.useCallback(function(){f.current=!1,De&&De(u.current)},[De]);vn(function(){d||(l.current=null)},[]);var jr=y.useCallback(function(T){var Z=l.current;if(Z&&Z.focus){var Fe=typeof le=="function"?le(Z):le;if(Fe){var wt=typeof Fe=="object"?Fe:void 0;l.current=null,T?Promise.resolve().then(function(){return Z.focus(wt)}):Z.focus(wt)}}},[le]),Wr=y.useCallback(function(T){f.current&&pe.useMedium(T)},[]),Vr=ve.useMedium,Ur=y.useCallback(function(T){u.current!==T&&(u.current=T,i(T))},[]),Gr=D((n={},n[de]=d&&"disabled",n[z]=b,n),C),xt=v!==!0,Hr=xt&&v!=="tail",$r=Le([r,Ur]);return y.createElement(y.Fragment,null,xt&&[y.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:B}),S?y.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:B}):null],!d&&y.createElement(Ir,{id:Lr,sideCar:qt,observed:a,disabled:d,persistentFocus:p,crossFrame:h,autoFocus:s,whiteList:_,shards:L,onActivation:Mr,onDeactivation:Br,returnFocus:jr,focusOptions:kr}),y.createElement(P,D({ref:$r},Gr,{className:w,onBlur:Vr,onFocus:Wr}),c),Hr&&y.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:B}))});Be.propTypes={};Be.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var je=Be;var Ui=fe(K());import*as ir from"react";function J(e,t){return J=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},J(e,t)}function We(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,J(e,t)}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}import yn,{PureComponent as gn}from"react";function bn(e,t){function r(n){return n.displayName||n.name||"Component"}return function(o){var a=[],i;function u(){i=e(a.map(function(l){return l.props})),t(i)}var f=function(l){We(c,l);function c(){return l.apply(this,arguments)||this}c.peek=function(){return i};var d=c.prototype;return d.componentDidMount=function(){a.push(this),u()},d.componentDidUpdate=function(){u()},d.componentWillUnmount=function(){var p=a.indexOf(this);a.splice(p,1),u()},d.render=function(){return yn.createElement(o,this.props)},c}(gn);return Ve(f,"displayName","SideEffect("+r(o)+")"),f}}var Yt=bn;var R=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},ee=function(e){return Array.isArray(e)?e:[e]};var xn=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var a=e[n].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(i,u){return!t.has(u)})},Zt=function(e){return e.parentNode?Zt(e.parentNode):e},j=function(e){var t=ee(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(z);return r.push.apply(r,o?xn(R(Zt(n).querySelectorAll("[".concat(z,'="').concat(o,'"]:not([').concat(de,'="disabled"])')))):[n]),r},[])};var W=function(){return document.activeElement?document.activeElement.shadowRoot?document.activeElement.shadowRoot.activeElement:document.activeElement:void 0};var wn=function(e){return e===document.activeElement},_n=function(e){return Boolean(R(e.querySelectorAll("iframe")).some(function(t){return wn(t)}))},he=function(e){var t=document&&W();return!t||t.dataset&&t.dataset.focusGuard?!1:j(e).reduce(function(r,n){return r||n.contains(t)||_n(n)},!1)};var Ue=function(){var e=document&&W();return e?R(document.querySelectorAll("[".concat(Bt,"]"))).some(function(t){return t.contains(e)}):!1};var Sn=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},En=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!Sn(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},Ge=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=En(t,Ge.bind(void 0,e));return e.set(t,n),n},He=function(e){return e.dataset},Rn=function(e){return e.tagName==="BUTTON"},Xt=function(e){return e.tagName==="INPUT"},$e=function(e){return Xt(e)&&e.type==="radio"},Kt=function(e){return!((Xt(e)||Rn(e))&&(e.type==="hidden"||e.disabled))&&!e.ariaDisabled},te=function(e){var t;return Boolean(e&&((t=He(e))===null||t===void 0?void 0:t.focusGuard))},V=function(e){return!te(e)},zt=function(e){return Boolean(e)};var On=function(e,t){return t.filter($e).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},ye=function(e,t){return $e(e)&&e.name?On(e,t):e},Qt=function(e){var t=new Set;return e.forEach(function(r){return t.add(ye(r,e))}),e.filter(function(r){return t.has(r)})};var qe=function(e){return e[0]&&e.length>1?ye(e[0],e):e[0]},Ye=function(e,t){return e.length>1?e.indexOf(ye(e[t],e)):t};var Ze="NEW_FOCUS",Jt=function(e,t,r,n){var o=e.length,a=e[0],i=e[o-1],u=te(r);if(!(r&&e.indexOf(r)>=0)){var f=r!==void 0?t.indexOf(r):-1,l=n?t.indexOf(n):f,c=n?e.indexOf(n):-1,d=f-l,v=t.indexOf(a),p=t.indexOf(i),h=Qt(t),s=r!==void 0?h.indexOf(r):-1,m=s-(n?h.indexOf(n):f),b=Ye(e,0),w=Ye(e,o-1);if(f===-1||c===-1)return Ze;if(!d&&c>=0)return c;if(f<=v&&u&&Math.abs(d)>1)return w;if(f>=p&&u&&Math.abs(d)>1)return b;if(d&&Math.abs(m)>1)return c;if(f<=v)return w;if(f>p)return b;if(d)return Math.abs(d)>1?c:(o+c+d)%o}};var Cn=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||n},Xe=function(e,t,r){return R(e).map(function(n,o){return{node:n,index:o,tabIndex:r&&n.tabIndex===-1?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}}).filter(function(n){return!t||n.tabIndex>=0}).sort(Cn)};var er=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"];var Ke=er.join(","),Nn="".concat(Ke,", [data-focus-guard]"),ge=function(e,t){return e.reduce(function(r,n){return r.concat(R(n.querySelectorAll(t?Nn:Ke)),n.parentNode?R(n.parentNode.querySelectorAll(Ke)).filter(function(o){return o===n}):[])},[])},tr=function(e){var t=e.querySelectorAll("[".concat(jt,"]"));return R(t).map(function(r){return ge([r])}).reduce(function(r,n){return r.concat(n)},[])};var ze=function(e,t){return R(e).filter(function(r){return Ge(t,r)}).filter(function(r){return Kt(r)})},re=function(e,t,r){return Xe(ze(ge(e,r),t),!0,r)},Qe=function(e,t){return Xe(ze(ge(e),t),!1)},rr=function(e,t){return ze(tr(e),t)};var Je=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Je(e.parentNode,t),t},et=function(e,t){for(var r=Je(e),n=Je(t),o=0;o<r.length;o+=1){var a=r[o];if(n.indexOf(a)>=0)return a}return!1},be=function(e,t,r){var n=ee(e),o=ee(t),a=n[0],i=!1;return o.filter(Boolean).forEach(function(u){i=et(i||u,u)||i,r.filter(Boolean).forEach(function(f){var l=et(a,f);l&&(!i||l.contains(i)?i=l:i=et(l,i))})}),i},nr=function(e,t){return e.reduce(function(r,n){return r.concat(rr(n,t))},[])};var Pn=function(e){return function(t){var r;return t.autofocus||!!((r=He(t))===null||r===void 0?void 0:r.autofocus)||e.indexOf(t)>=0}},Dn=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(zt)},or=function(e,t){var r=document&&W(),n=j(e).filter(V),o=be(r||e,e,n),a=new Map,i=Qe(n,a),u=re(n,a).filter(function(p){var h=p.node;return V(h)});if(!(!u[0]&&(u=i,!u[0]))){var f=Qe([o],a).map(function(p){var h=p.node;return h}),l=Dn(f,u),c=l.map(function(p){var h=p.node;return h}),d=Jt(c,f,r,t);if(d===Ze){var v=i.map(function(p){var h=p.node;return h}).filter(Pn(nr(n,a)));return{node:v&&v.length?qe(v):qe(c)}}return d===void 0?d:l[d]}};var tt=function(e){var t=j(e).filter(V),r=be(e,e,t),n=new Map,o=re([r],n,!0),a=re(t,n).filter(function(i){var u=i.node;return V(u)}).map(function(i){var u=i.node;return u});return o.map(function(i){var u=i.node,f=i.index;return{node:u,index:f,lockItem:a.indexOf(u)>=0,guard:te(u)}})};var Fn=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},rt=0,nt=!1,ar=function(e,t,r){r===void 0&&(r={});var n=or(e,t);if(!nt&&n){if(rt>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),nt=!0,setTimeout(function(){nt=!1},1);return}rt++,Fn(n.node,r.focusOptions),rt--}};var ot=ar;function at(e){var t=window,r=t.setImmediate;typeof r!="undefined"?r(e):setTimeout(e,1)}var Tn=function(){return document&&document.activeElement===document.body},In=function(){return Tn()||Ue()},U=null,G=null,H=null,ne=!1,kn=function(){return!0},An=function(t){return(U.whiteList||kn)(t)},Ln=function(t,r){H={observerNode:t,portaledElement:r}},Mn=function(t){return H&&H.portaledElement===t};function ur(e,t,r,n){var o=null,a=e;do{var i=n[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=r)!==t);o&&(o.node.tabIndex=0)}var Bn=function(t){return t&&"current"in t?t.current:t},jn=function(t){return t?Boolean(ne):ne==="meanwhile"},Wn=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},Vn=function(t,r){return r.some(function(n){return Wn(t,n,n)})},xe=function(){var t=!1;if(U){var r=U,n=r.observed,o=r.persistentFocus,a=r.autoFocus,i=r.shards,u=r.crossFrame,f=r.focusOptions,l=n||H&&H.portaledElement,c=document&&document.activeElement;if(l){var d=[l].concat(i.map(Bn).filter(Boolean));if((!c||An(c))&&(o||jn(u)||!In()||!G&&a)&&(l&&!(he(d)||c&&Vn(c,d)||Mn(c,l))&&(document&&!G&&c&&!a?(c.blur&&c.blur(),document.body.focus()):(t=ot(d,G,{focusOptions:f}),H={})),ne=!1,G=document&&document.activeElement),document){var v=document&&document.activeElement,p=tt(d),h=p.map(function(s){var m=s.node;return m}).indexOf(v);h>-1&&(p.filter(function(s){var m=s.guard,b=s.node;return m&&b.dataset.focusAutoGuard}).forEach(function(s){var m=s.node;return m.removeAttribute("tabIndex")}),ur(h,p.length,1,p),ur(h,-1,-1,p))}}}return t},cr=function(t){xe()&&t&&(t.stopPropagation(),t.preventDefault())},we=function(){return at(xe)},lr=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||Ln(n,r)},Un=function(){return null},Gn=function(t){var r=t.children;return ir.createElement("div",{onBlur:we,onFocus:lr},r)};Gn.propTypes={};var fr=function(){ne="just",setTimeout(function(){ne="meanwhile"},0)},Hn=function(){document.addEventListener("focusin",cr),document.addEventListener("focusout",we),window.addEventListener("blur",fr)},$n=function(){document.removeEventListener("focusin",cr),document.removeEventListener("focusout",we),window.removeEventListener("blur",fr)};function qn(e){return e.filter(function(t){var r=t.disabled;return!r})}function Yn(e){var t=e.slice(-1)[0];t&&!U&&Hn();var r=U,n=r&&t&&t.id===r.id;U=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var a=o.id;return a===r.id}).length||r.returnFocus(!t)),t?(G=null,(!n||r.observed!==t.observed)&&t.onActivation(),xe(!0),at(xe)):($n(),G=null)}pe.assignSyncMedium(lr);ve.assignMedium(we);$t.assignMedium(function(e){return e({moveFocusInside:ot,focusInside:he})});var sr=Yt(qn,Yn)(Un);var dr=_e.forwardRef(function(t,r){return _e.createElement(je,D({sideCar:sr,ref:r},t))}),mr=je.propTypes||{},Ji=mr.sideCar,eu=Ae(mr,["sideCar"]);dr.propTypes={};var pr=dr;var vr=pr;var O=function(){return O=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},O.apply(this,arguments)};function Se(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}import*as Ne from"react";import*as E from"react";var I="right-scroll-bar-position",k="width-before-scroll-bar",it="with-scroll-bars-hidden";function Zn(e){return e}function Xn(e,t){t===void 0&&(t=Zn);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(u){return u!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(u){return a(u)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var u=r;r=[],u.forEach(a),i=r}var f=function(){var c=i;i=[],c.forEach(a)},l=function(){return Promise.resolve().then(f)};l(),r={push:function(c){i.push(c),l()},filter:function(c){return i=i.filter(c),r}}}};return o}function ut(e){e===void 0&&(e={});var t=Xn(null);return t.options=O({async:!0,ssr:!1},e),t}import*as hr from"react";var yr=function(e){var t=e.sideCar,r=Se(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return hr.createElement(n,O({},r))};yr.isSideCarExport=!0;function ct(e,t){return e.useMedium(t),yr}var Re=ut();function gr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}import{useState as Kn}from"react";function br(e,t){var r=Kn(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function lt(e,t){return br(t,function(r){return e.forEach(function(n){return gr(n,r)})})}var ft=function(){},oe=E.forwardRef(function(e,t){var r=E.useRef(null),n=E.useState({onScrollCapture:ft,onWheelCapture:ft,onTouchMoveCapture:ft}),o=n[0],a=n[1],i=e.forwardProps,u=e.children,f=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,v=e.sideCar,p=e.noIsolation,h=e.inert,s=e.allowPinchZoom,m=e.as,b=m===void 0?"div":m,w=Se(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=v,S=lt([r,t]),x=O({},w,o);return E.createElement(E.Fragment,null,c&&E.createElement(_,{sideCar:Re,removeScrollBar:l,shards:d,noIsolation:p,inert:h,setCallbacks:a,allowPinchZoom:!!s,lockRef:r}),i?E.cloneElement(E.Children.only(u),O({},x,{ref:S})):E.createElement(b,O({},x,{className:f,ref:S}),u))});oe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};oe.classNames={fullWidth:k,zeroRight:I};import*as g from"react";import*as $ from"react";import*as _r from"react";var xr;var wr=function(){if(xr)return xr;if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function zn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=wr();return t&&e.setAttribute("nonce",t),e}function Qn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jn(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var st=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zn())&&(Qn(t,r),Jn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var dt=function(){var e=st();return function(t){_r.useEffect(function(){return e.add(t),function(){e.remove()}},[])}};var ae=function(){var e=dt(),t=function(r){var n=r.styles;return e(n),null};return t};var eo={left:0,top:0,right:0,gap:0},mt=function(e){return parseInt(e||"",10)||0},to=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[mt(r),mt(n),mt(o)]},Oe=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return eo;var t=to(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var ro=ae(),no=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,u=e.gap;return r===void 0&&(r="margin"),`
.`+it+` {
overflow: hidden `+n+`;

@@ -9,31 +9,31 @@ padding-right: `+u+"px "+n+`;

overflow: hidden `+n+`;
`+[r&&"position: relative "+n+";",t==="margin"&&`
`+[t&&"position: relative "+n+";",r==="margin"&&`
padding-left: `+o+`px;
padding-top: `+i+`px;
padding-right: `+a+`px;
padding-top: `+a+`px;
padding-right: `+i+`px;
margin-left:0;
margin-top:0;
margin-right: `+u+"px "+n+`;
`,t==="padding"&&"padding-right: "+u+"px "+n+";"].filter(Boolean).join("")+`
`,r==="padding"&&"padding-right: "+u+"px "+n+";"].filter(Boolean).join("")+`
}
.`+k+` {
.`+I+` {
right: `+u+"px "+n+`;
}
.`+I+` {
.`+k+` {
margin-right: `+u+"px "+n+`;
}
.`+k+" ."+k+` {
.`+I+" ."+I+` {
right: 0 `+n+`;
}
.`+I+" ."+I+` {
.`+k+" ."+k+` {
margin-right: 0 `+n+`;
}
`},fr=function(e){var r=H.useState(Ee(e.gapMode)),t=r[0],n=r[1];H.useEffect(function(){n(Ee(e.gapMode))},[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,u=a===void 0?"margin":a;return H.createElement(qn,{styles:Yn(t,!o,u,i?"":"!important")})};var Zn=function(e){var r=window.getComputedStyle(e);return r.overflowY!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowY==="visible")},Xn=function(e){var r=window.getComputedStyle(e);return e.type==="range"?!0:r.overflowX!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowX==="visible")},sr=function(e,r){var t=r;do{typeof ShadowRoot!="undefined"&&t instanceof ShadowRoot&&(t=t.host);var n=bt(e,t);if(n){var o=xt(e,t),i=o[1],a=o[2];if(i>a)return!0}t=t.parentNode}while(t&&t!==document.body);return!1},Kn=function(e){var r=e.scrollTop,t=e.scrollHeight,n=e.clientHeight;return[r,t,n]},zn=function(e){var r=e.scrollLeft,t=e.scrollWidth,n=e.clientWidth;return[r,t,n]},bt=function(e,r){return e==="v"?Zn(r):Xn(r)},xt=function(e,r){return e==="v"?Kn(r):zn(r)},wt=function(e,r,t,n,o){var i=n,a=t.target,u=r.contains(a),c=!1,l=i>0,s=0,d=0;do{var p=xt(e,a),v=p[0],h=p[1],f=p[2],m=h-f-v;(v||m)&&bt(e,a)&&(s+=m,d+=v),a=a.parentNode}while(!u&&a!==document.body||u&&(r.contains(a)||r===a));return(l&&(o&&s===0||!o&&i>s)||!l&&(o&&d===0||!o&&-i>d))&&(c=!0),c};var dr=!1;if(typeof window!="undefined")try{oe=Object.defineProperty({},"passive",{get:function(){return dr=!0,!0}}),window.addEventListener("test",oe,oe),window.removeEventListener("test",oe,oe)}catch(e){dr=!1}var oe,A=dr?{passive:!1}:!1;var Oe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_t=function(e){return[e.deltaX,e.deltaY]},St=function(e){return e&&"current"in e?e.current:e},Qn=function(e,r){return e[0]===r[0]&&e[1]===r[1]},Jn=function(e){return`
`},pt=function(e){var t=$.useState(Oe(e.gapMode)),r=t[0],n=t[1];$.useEffect(function(){n(Oe(e.gapMode))},[e.gapMode]);var o=e.noRelative,a=e.noImportant,i=e.gapMode,u=i===void 0?"margin":i;return $.createElement(ro,{styles:no(r,!o,u,a?"":"!important")})};var oo=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},ao=function(e){var t=window.getComputedStyle(e);return e.type==="range"?!0:t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},vt=function(e,t){var r=t;do{typeof ShadowRoot!="undefined"&&r instanceof ShadowRoot&&(r=r.host);var n=Sr(e,r);if(n){var o=Er(e,r),a=o[1],i=o[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},io=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},uo=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Sr=function(e,t){return e==="v"?oo(t):ao(t)},Er=function(e,t){return e==="v"?io(t):uo(t)},co=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rr=function(e,t,r,n,o){var a=co(e,window.getComputedStyle(t).direction),i=a*n,u=r.target,f=t.contains(u),l=!1,c=i>0,d=0,v=0;do{var p=Er(e,u),h=p[0],s=p[1],m=p[2],b=s-m-a*h;(h||b)&&Sr(e,u)&&(d+=b,v+=h),u=u.parentNode}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(c&&(o&&d===0||!o&&i>d)||!c&&(o&&v===0||!o&&-i>v))&&(l=!0),l};var ht=!1;if(typeof window!="undefined")try{ie=Object.defineProperty({},"passive",{get:function(){return ht=!0,!0}}),window.addEventListener("test",ie,ie),window.removeEventListener("test",ie,ie)}catch(e){ht=!1}var ie,A=ht?{passive:!1}:!1;var Ce=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Or=function(e){return[e.deltaX,e.deltaY]},Cr=function(e){return e&&"current"in e?e.current:e},lo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fo=function(e){return`
.block-interactivity-`+e+` {pointer-events: none;}
.allow-interactivity-`+e+` {pointer-events: all;}
`},eo=0,$=[];function Rt(e){var r=g.useRef([]),t=g.useRef([0,0]),n=g.useRef(),o=g.useState(eo++)[0],i=g.useState(function(){return ne()})[0],a=g.useRef(e);g.useEffect(function(){a.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var f=[e.lockRef.current].concat((e.shards||[]).map(St)).filter(Boolean);return f.forEach(function(m){return m.classList.add("allow-interactivity-"+o)}),function(){document.body.classList.remove("block-interactivity-"+o),f.forEach(function(m){return m.classList.remove("allow-interactivity-"+o)})}}},[e.inert,e.lockRef.current,e.shards]);var u=g.useCallback(function(f,m){if("touches"in f&&f.touches.length===2)return!a.current.allowPinchZoom;var S=Oe(f),R=t.current,w="deltaX"in f?f.deltaX:R[0]-S[0],x="deltaY"in f?f.deltaY:R[1]-S[1],b,F=f.target,N=Math.abs(w)>Math.abs(x)?"h":"v",P=sr(N,F);if(!P)return!0;if(P?b=N:(b=N==="v"?"h":"v",P=sr(N,F)),!P)return!1;if(!n.current&&"changedTouches"in f&&(w||x)&&(n.current=b),!b)return!0;var L=n.current||b;return wt(L,m,f,L==="h"?w:x,!0)},[]),c=g.useCallback(function(f){var m=f;if(!(!$.length||$[$.length-1]!==i)){var S="deltaY"in m?_t(m):Oe(m),R=r.current.filter(function(b){return b.name===m.type&&b.target===m.target&&Qn(b.delta,S)})[0];if(R&&R.should){m.preventDefault();return}if(!R){var w=(a.current.shards||[]).map(St).filter(Boolean).filter(function(b){return b.contains(m.target)}),x=w.length>0?u(m,w[0]):!a.current.noIsolation;x&&m.preventDefault()}}},[]),l=g.useCallback(function(f,m,S,R){var w={name:f,delta:m,target:S,should:R};r.current.push(w),setTimeout(function(){r.current=r.current.filter(function(x){return x!==w})},1)},[]),s=g.useCallback(function(f){t.current=Oe(f),n.current=void 0},[]),d=g.useCallback(function(f){l(f.type,_t(f),f.target,u(f,e.lockRef.current))},[]),p=g.useCallback(function(f){l(f.type,Oe(f),f.target,u(f,e.lockRef.current))},[]);g.useEffect(function(){return $.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,A),document.addEventListener("touchmove",c,A),document.addEventListener("touchstart",s,A),function(){$=$.filter(function(f){return f!==i}),document.removeEventListener("wheel",c,A),document.removeEventListener("touchmove",c,A),document.removeEventListener("touchstart",s,A)}},[]);var v=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(i,{styles:Jn(o)}):null,v?g.createElement(fr,{gapMode:"margin"}):null)}var Et=or(Re,Rt);var Ot=Ce.forwardRef(function(e,r){return Ce.createElement(te,O({},e,{ref:r,sideCar:Et}))});Ot.classNames=te.classNames;var mr=Ot;var ae=le(Z());function ie(){return ie=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ie.apply(this,arguments)}function vr(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(r.indexOf(o)>=0)&&(t[o]=e[o]);return t}var Qu={allowPinchZoom:ae.default.bool,dangerouslyBypassFocusLock:ae.default.bool,dangerouslyBypassScrollLock:ae.default.bool,initialFocusRef:function(){return null},onDismiss:ae.default.func},to=pr(function(r,t){var n=r.as,o=n===void 0?"div":n,i=r.isOpen,a=i===void 0?!0:i,u=vr(r,["as","isOpen"]);return Rr("dialog"),Ct(function(){a?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[a]),a?q(wr,{"data-reach-dialog-wrapper":""},q(no,ie({ref:t,as:o},u))):null}),no=pr(function(r,t){var n=r.allowPinchZoom,o=r.as,i=o===void 0?"div":o,a=r.dangerouslyBypassFocusLock,u=a===void 0?!1:a,c=r.dangerouslyBypassScrollLock,l=c===void 0?!1:c,s=r.initialFocusRef,d=r.onClick,p=r.onDismiss,v=p===void 0?De:p,h=r.onKeyDown,f=r.onMouseDown,m=r.unstable_lockFocusAcrossFrames,S=m===void 0?!0:m,R=vr(r,["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"]),w=Pt(null),x=Pt(null),b=Or(x,t),F=ro(function(){s&&s.current&&s.current.focus()},[s]);function N(C){w.current===C.target&&(C.stopPropagation(),v(C))}function P(C){C.key==="Escape"&&(C.stopPropagation(),v(C))}function L(C){w.current=C.target}return Ct(function(){return x.current?ao(x.current):void 0},[]),q(st,{autoFocus:!0,returnFocus:!0,onActivation:F,disabled:u,crossFrame:S},q(mr,{allowPinchZoom:n,enabled:!l},q(i,ie({},R,{ref:b,"data-reach-dialog-overlay":"",onClick:Y(d,N),onKeyDown:Y(h,P),onMouseDown:Y(f,L)}))))}),oo=pr(function(r,t){var n=r.as,o=n===void 0?"div":n,i=r.onClick;r.onKeyDown;var a=vr(r,["as","onClick","onKeyDown"]);return q(o,ie({"aria-modal":"true",role:"dialog",tabIndex:-1},a,{ref:t,"data-reach-dialog-content":"",onClick:Y(i,function(u){u.stopPropagation()})}))});function ao(e){var r=[],t=[],n=_r(e);return e?(Array.prototype.forEach.call(n.querySelectorAll("body > *"),function(o){var i,a,u=(i=e.parentNode)==null||(a=i.parentNode)==null?void 0:a.parentNode;if(o!==u){var c=o.getAttribute("aria-hidden"),l=c!==null&&c!=="false";l||(r.push(c),t.push(o),o.setAttribute("aria-hidden","true"))}}),function(){t.forEach(function(o,i){var a=r[i];a===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",a)})}):De}export{oo as ModalDialogPrimitiveContent,to as ModalDialogPrimitiveOverlay};
`},so=0,q=[];function Nr(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),o=g.useState(so++)[0],a=g.useState(function(){return ae()})[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var s=[e.lockRef.current].concat((e.shards||[]).map(Cr)).filter(Boolean);return s.forEach(function(m){return m.classList.add("allow-interactivity-"+o)}),function(){document.body.classList.remove("block-interactivity-"+o),s.forEach(function(m){return m.classList.remove("allow-interactivity-"+o)})}}},[e.inert,e.lockRef.current,e.shards]);var u=g.useCallback(function(s,m){if("touches"in s&&s.touches.length===2)return!i.current.allowPinchZoom;var b=Ce(s),w=r.current,_="deltaX"in s?s.deltaX:w[0]-b[0],S="deltaY"in s?s.deltaY:w[1]-b[1],x,L=s.target,N=Math.abs(_)>Math.abs(S)?"h":"v",P=vt(N,L);if(!P)return!0;if(P?x=N:(x=N==="v"?"h":"v",P=vt(N,L)),!P)return!1;if(!n.current&&"changedTouches"in s&&(_||S)&&(n.current=x),!x)return!0;var F=n.current||x;return Rr(F,m,s,F==="h"?_:S,!0)},[]),f=g.useCallback(function(s){var m=s;if(!(!q.length||q[q.length-1]!==a)){var b="deltaY"in m?Or(m):Ce(m),w=t.current.filter(function(x){return x.name===m.type&&x.target===m.target&&lo(x.delta,b)})[0];if(w&&w.should){m.preventDefault();return}if(!w){var _=(i.current.shards||[]).map(Cr).filter(Boolean).filter(function(x){return x.contains(m.target)}),S=_.length>0?u(m,_[0]):!i.current.noIsolation;S&&m.preventDefault()}}},[]),l=g.useCallback(function(s,m,b,w){var _={name:s,delta:m,target:b,should:w};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(S){return S!==_})},1)},[]),c=g.useCallback(function(s){r.current=Ce(s),n.current=void 0},[]),d=g.useCallback(function(s){l(s.type,Or(s),s.target,u(s,e.lockRef.current))},[]),v=g.useCallback(function(s){l(s.type,Ce(s),s.target,u(s,e.lockRef.current))},[]);g.useEffect(function(){return q.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",f,A),document.addEventListener("touchmove",f,A),document.addEventListener("touchstart",c,A),function(){q=q.filter(function(s){return s!==a}),document.removeEventListener("wheel",f,A),document.removeEventListener("touchmove",f,A),document.removeEventListener("touchstart",c,A)}},[]);var p=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(a,{styles:fo(o)}):null,p?g.createElement(pt,{gapMode:"margin"}):null)}var Pr=ct(Re,Nr);var Dr=Ne.forwardRef(function(e,t){return Ne.createElement(oe,O({},e,{ref:t,sideCar:Pr}))});Dr.classNames=oe.classNames;var yt=Dr;var ue=fe(K());function ce(){return ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ce.apply(this,arguments)}function bt(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var po=["as","isOpen"],vo=["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"],ho=["as","onClick","onKeyDown"];var bc={allowPinchZoom:ue.default.bool,dangerouslyBypassFocusLock:ue.default.bool,dangerouslyBypassScrollLock:ue.default.bool,initialFocusRef:function(){return null},onDismiss:ue.default.func},yo=gt(function(t,r){var n=t.as,o=n===void 0?"div":n,a=t.isOpen,i=a===void 0?!0:a,u=bt(t,po);return Nt("dialog"),Fr(function(){i?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[i]),i?Y(Rt,{"data-reach-dialog-wrapper":""},Y(go,ce({ref:r,as:o},u))):null}),go=gt(function(t,r){var n=t.allowPinchZoom,o=t.as,a=o===void 0?"div":o,i=t.dangerouslyBypassFocusLock,u=i===void 0?!1:i,f=t.dangerouslyBypassScrollLock,l=f===void 0?!1:f,c=t.initialFocusRef,d=t.onClick,v=t.onDismiss,p=v===void 0?ke:v,h=t.onKeyDown,s=t.onMouseDown,m=t.unstable_lockFocusAcrossFrames,b=bt(t,vo),w=m!==void 0,_=Tr(null),S=Tr(null),x=Dt(S,r),L=mo(function(){c&&c.current&&c.current.focus()},[c]);function N(C){_.current===C.target&&(C.stopPropagation(),p(C))}function P(C){C.key==="Escape"&&(C.stopPropagation(),p(C))}function F(C){_.current=C.target}return Fr(function(){return S.current?xo(S.current):void 0},[]),Y(vr,{autoFocus:!0,returnFocus:!0,onActivation:L,disabled:u,crossFrame:m!=null?m:!0},Y(yt,{allowPinchZoom:n,enabled:!l},Y(a,ce({},b,{ref:x,"data-reach-dialog-overlay":"",onClick:X(d,N),onKeyDown:X(h,P),onMouseDown:X(s,F)}))))}),bo=gt(function(t,r){var n=t.as,o=n===void 0?"div":n,a=t.onClick;t.onKeyDown;var i=bt(t,ho);return Y(o,ce({"aria-modal":"true",role:"dialog",tabIndex:-1},i,{ref:r,"data-reach-dialog-content":"",onClick:X(a,function(u){u.stopPropagation()})}))});function xo(e){var t=[],r=[],n=Ot(e);return e?(Array.prototype.forEach.call(n.querySelectorAll("body > *"),function(o){var a,i,u=(a=e.parentNode)==null||(i=a.parentNode)==null?void 0:i.parentNode;if(o!==u){var f=o.getAttribute("aria-hidden"),l=f!==null&&f!=="false";l||(t.push(f),r.push(o),o.setAttribute("aria-hidden","true"))}}),function(){r.forEach(function(o,a){var i=t[a];i===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",i)})}):ke}export{bo as ModalDialogPrimitiveContent,yo as ModalDialogPrimitiveOverlay};
/*! *****************************************************************************

@@ -40,0 +40,0 @@ Copyright (c) Microsoft Corporation. All rights reserved.

@@ -1,4 +0,4 @@

var Zt=Object.create;var se=Object.defineProperty;var Xt=Object.getOwnPropertyDescriptor;var Kt=Object.getOwnPropertyNames;var zt=Object.getPrototypeOf,Qt=Object.prototype.hasOwnProperty;var wr=e=>se(e,"__esModule",{value:!0});var Ae=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Jt=(e,r)=>{for(var t in r)se(e,t,{get:r[t],enumerable:!0})},_r=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Kt(r))!Qt.call(e,o)&&(t||o!=="default")&&se(e,o,{get:()=>r[o],enumerable:!(n=Xt(r,o))||n.enumerable});return e},E=(e,r)=>_r(wr(se(e!=null?Zt(zt(e)):{},"default",!r&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),en=(e=>(r,t)=>e&&e.get(r)||(t=_r(wr({}),r,1),e&&e.set(r,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var Ir=Ae((So,kr)=>{"use strict";var on="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";kr.exports=on});var Br=Ae((Ro,Mr)=>{"use strict";var an=Ir();function Ar(){}function Lr(){}Lr.resetWarningCache=Ar;Mr.exports=function(){function e(n,o,i,a,u,c){if(c!==an){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function r(){return e}var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Lr,resetWarningCache:Ar};return t.PropTypes=t,t}});var K=Ae((Co,jr)=>{jr.exports=Br()();var Eo,Oo});var eo={};Jt(eo,{ModalDialogPrimitiveContent:()=>Lt,ModalDialogPrimitiveOverlay:()=>At});var b=require("react");var Z=require("react");var me=require("react");function de(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Sr=de()?me.useLayoutEffect:me.useEffect;var pe=require("react");function Rr(){var e=(0,pe.useState)(Object.create(null)),r=e[1];return(0,pe.useCallback)(function(){r(Object.create(null))},[])}var Er=require("react-dom"),Or=function(r){var t=r.children,n=r.type,o=n===void 0?"reach-portal":n,i=(0,Z.useRef)(null),a=(0,Z.useRef)(null),u=Rr();return Sr(function(){if(!!i.current){var c=i.current.ownerDocument;return a.current=c==null?void 0:c.createElement(o),c.body.appendChild(a.current),u(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}},[o,u]),a.current?(0,Er.createPortal)(t,a.current):(0,Z.createElement)("span",{ref:i})};function Cr(e){return de()?e?e.ownerDocument:document:null}function Pr(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function Le(){}var po=require("react");function Nr(e){if(!1)var r}var Tr=require("react");function Fr(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function rn(e,r){if(!!e){if(typeof e=="string")return Fr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fr(e,r)}}function tn(e,r){var t;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(t=rn(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return t=e[Symbol.iterator](),t.next.bind(t)}function nn(e,r){if(e!=null)if(Pr(e))e(r);else try{e.current=r}catch(t){throw new Error('Cannot assign value "'+r+'" to ref "'+e+'"')}}function Dr(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,Tr.useCallback)(function(n){for(var o=tn(r),i;!(i=o()).done;){var a=i.value;nn(a,n)}},r)}function X(e,r){return function(t){if(e&&e(t),!t.defaultPrevented)return r(t)}}function Me(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(r.indexOf(o)>=0)&&(t[o]=e[o]);return t}function D(){return D=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},D.apply(this,arguments)}var Oe=E(require("react"));var y=E(require("react")),Ho=E(K());var z="data-focus-lock",ve="data-focus-lock-disabled",Wr="data-no-focus-lock",Ur="data-autofocus-inside";function Vr(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}var Gr=require("react");function Hr(e,r){var t=(0,Gr.useState)(function(){return{value:e,callback:r,facade:{get current(){return t.value},set current(n){var o=t.value;o!==n&&(t.value=n,t.callback(n,o))}}}})[0];return t.callback=r,t.facade}function Be(e,r){return Hr(r,function(t){return e.forEach(function(n){return Vr(n,t)})})}var j=E(require("react")),Ao=E(K()),W={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},$r=function(r){var t=r.children;return j.createElement(j.Fragment,null,j.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:W}),t,t&&j.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:W}))};$r.propTypes={};$r.defaultProps={children:null};var he=function(){return he=Object.assign||function(r){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},he.apply(this,arguments)};function qr(e){return e}function Yr(e,r){r===void 0&&(r=qr);var t=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(i){var a=r(i,n);return t.push(a),function(){t=t.filter(function(u){return u!==a})}},assignSyncMedium:function(i){for(n=!0;t.length;){var a=t;t=[],a.forEach(i)}t={push:function(u){return i(u)},filter:function(){return t}}},assignMedium:function(i){n=!0;var a=[];if(t.length){var u=t;t=[],u.forEach(i),a=t}var c=function(){var s=a;a=[],s.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),t={push:function(s){a.push(s),l()},filter:function(s){return a=a.filter(s),t}}}};return o}function Q(e,r){return r===void 0&&(r=qr),Yr(e,r)}function je(e){e===void 0&&(e={});var r=Yr(null);return r.options=he({async:!0,ssr:!1},e),r}var ye=Q({},function(e){var r=e.target,t=e.currentTarget;return{target:r,currentTarget:t}}),ge=Q(),Zr=Q(),Xr=je({async:!0});var ln=[],We=y.forwardRef(function(r,t){var n,o=y.useState(),i=o[0],a=o[1],u=y.useRef(),c=y.useRef(!1),l=y.useRef(null),s=r.children,d=r.disabled,p=r.noFocusGuards,v=r.persistentFocus,h=r.crossFrame,f=r.autoFocus,m=r.allowTextSelection,R=r.group,O=r.className,_=r.whiteList,w=r.shards,x=w===void 0?ln:w,k=r.as,F=k===void 0?"div":k,T=r.lockProps,B=T===void 0?{}:T,N=r.sideCar,le=r.returnFocus,ke=r.onActivation,Ie=r.onDeactivation,Mt=y.useState({}),Bt=Mt[0],jt=y.useCallback(function(){l.current=l.current||document&&document.activeElement,u.current&&ke&&ke(u.current),c.current=!0},[ke]),Wt=y.useCallback(function(){c.current=!1,Ie&&Ie(u.current)},[Ie]),Ut=y.useCallback(function(I){var fe=l.current;if(Boolean(le)&&fe&&fe.focus){var xr=typeof le=="object"?le:void 0;l.current=null,I?Promise.resolve().then(function(){return fe.focus(xr)}):fe.focus(xr)}},[le]),Vt=y.useCallback(function(I){c.current&&ye.useMedium(I)},[]),Gt=ge.useMedium,Ht=y.useCallback(function(I){u.current!==I&&(u.current=I,a(I))},[]),$t=D((n={},n[ve]=d&&"disabled",n[z]=R,n),B),br=p!==!0,qt=br&&p!=="tail",Yt=Be([t,Ht]);return y.createElement(y.Fragment,null,br&&[y.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:W}),y.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:W})],!d&&y.createElement(N,{id:Bt,sideCar:Xr,observed:i,disabled:d,persistentFocus:v,crossFrame:h,autoFocus:f,whiteList:_,shards:x,onActivation:jt,onDeactivation:Wt,returnFocus:Ut}),y.createElement(F,D({ref:Yt},$t,{className:O,onBlur:Gt,onFocus:Vt}),s),qt&&y.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:W}))});We.propTypes={};We.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var Ue=We;var lt=E(require("react")),li=E(K());function J(e,r){return J=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},J(e,r)}function Ve(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,J(e,r)}function Ge(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var be=E(require("react"));function fn(e,r){function t(n){return n.displayName||n.name||"Component"}return function(o){var i=[],a;function u(){a=e(i.map(function(l){return l.props})),r(a)}var c=function(l){Ve(s,l);function s(){return l.apply(this,arguments)||this}s.peek=function(){return a};var d=s.prototype;return d.componentDidMount=function(){i.push(this),u()},d.componentDidUpdate=function(){u()},d.componentWillUnmount=function(){var v=i.indexOf(this);i.splice(v,1),u()},d.render=function(){return be.default.createElement(o,this.props)},s}(be.PureComponent);return Ge(c,"displayName","SideEffect("+t(o)+")"),c}}var Kr=fn;var C=function(e){for(var r=Array(e.length),t=0;t<e.length;++t)r[t]=e[t];return r},ee=function(e){return Array.isArray(e)?e:[e]};var sn=function(e){for(var r=new Set,t=e.length,n=0;n<t;n+=1)for(var o=n+1;o<t;o+=1){var i=e[n].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(n)}return e.filter(function(a,u){return!r.has(u)})},zr=function(e){return e.parentNode?zr(e.parentNode):e},U=function(e){var r=ee(e);return r.filter(Boolean).reduce(function(t,n){var o=n.getAttribute(z);return t.push.apply(t,o?sn(C(zr(n).querySelectorAll("["+z+'="'+o+'"]:not(['+ve+'="disabled"])'))):[n]),t},[])};var dn=function(e){return!e||!e.getPropertyValue?!1:e.getPropertyValue("display")==="none"||e.getPropertyValue("visibility")==="hidden"},mn=function(e,r){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!dn(window.getComputedStyle(e,null))&&r(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},He=function(e,r){var t=e.get(r);if(t!==void 0)return t;var n=mn(r,He.bind(void 0,e));return e.set(r,n),n},Qr=function(e){return!((e.tagName==="INPUT"||e.tagName==="BUTTON")&&(e.type==="hidden"||e.disabled))},re=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},V=function(e){return!re(e)},Jr=function(e){return Boolean(e)};var pn=function(e,r){var t=e.tabIndex-r.tabIndex,n=e.index-r.index;if(t){if(!e.tabIndex)return 1;if(!r.tabIndex)return-1}return t||n},$e=function(e,r,t){return C(e).map(function(n,o){return{node:n,index:o,tabIndex:t&&n.tabIndex===-1?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}}).filter(function(n){return!r||n.tabIndex>=0}).sort(pn)};var et=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"];var qe=et.join(","),vn=qe+", [data-focus-guard]",xe=function(e,r){return e.reduce(function(t,n){return t.concat(C(n.querySelectorAll(r?vn:qe)),n.parentNode?C(n.parentNode.querySelectorAll(qe)).filter(function(o){return o===n}):[])},[])},rt=function(e){var r=e.querySelectorAll("["+Ur+"]");return C(r).map(function(t){return xe([t])}).reduce(function(t,n){return t.concat(n)},[])};var Ye=function(e,r){return C(e).filter(function(t){return He(r,t)}).filter(function(t){return Qr(t)})},te=function(e,r,t){return $e(Ye(xe(e,t),r),!0,t)},Ze=function(e,r){return $e(Ye(xe(e),r),!1)},tt=function(e,r){return Ye(rt(e),r)};var Xe=function(e,r){return r===void 0&&(r=[]),r.push(e),e.parentNode&&Xe(e.parentNode,r),r},Ke=function(e,r){for(var t=Xe(e),n=Xe(r),o=0;o<t.length;o+=1){var i=t[o];if(n.indexOf(i)>=0)return i}return!1},we=function(e,r,t){var n=ee(e),o=ee(r),i=n[0],a=!1;return o.filter(Boolean).forEach(function(u){a=Ke(a||u,u)||a,t.filter(Boolean).forEach(function(c){var l=Ke(i,c);l&&(!a||l.contains(a)?a=l:a=Ke(l,a))})}),a},nt=function(e,r){return e.reduce(function(t,n){return t.concat(tt(n,r))},[])};var ze=function(e){var r=U(e).filter(V),t=we(e,e,r),n=new Map,o=te([t],n,!0),i=te(r,n).filter(function(a){var u=a.node;return V(u)}).map(function(a){var u=a.node;return u});return o.map(function(a){var u=a.node,c=a.index;return{node:u,index:c,lockItem:i.indexOf(u)>=0,guard:re(u)}})};var hn=function(e){return e===document.activeElement},yn=function(e){return Boolean(C(e.querySelectorAll("iframe")).some(function(r){return hn(r)}))},_e=function(e){var r=document&&document.activeElement;return!r||r.dataset&&r.dataset.focusGuard?!1:U(e).reduce(function(t,n){return t||n.contains(r)||yn(n)},!1)};var Qe=function(){return document&&C(document.querySelectorAll("["+Wr+"]")).some(function(e){return e.contains(document.activeElement)})};var ot=function(e){return e.tagName==="INPUT"&&e.type==="radio"},gn=function(e,r){return r.filter(ot).filter(function(t){return t.name===e.name}).filter(function(t){return t.checked})[0]||e},Se=function(e,r){return ot(e)&&e.name?gn(e,r):e},at=function(e){var r=new Set;return e.forEach(function(t){return r.add(Se(t,e))}),e.filter(function(t){return r.has(t)})};var Je=function(e){return e[0]&&e.length>1?Se(e[0],e):e[0]},er=function(e,r){return e.length>1?e.indexOf(Se(e[r],e)):r};var rr="NEW_FOCUS",it=function(e,r,t,n){var o=e.length,i=e[0],a=e[o-1],u=re(t);if(!(e.indexOf(t)>=0)){var c=r.indexOf(t),l=n?r.indexOf(n):c,s=n?e.indexOf(n):-1,d=c-l,p=r.indexOf(i),v=r.indexOf(a),h=at(r),f=h.indexOf(t)-(n?h.indexOf(n):c),m=er(e,0),R=er(e,o-1);if(c===-1||s===-1)return rr;if(!d&&s>=0)return s;if(c<=p&&u&&Math.abs(d)>1)return R;if(c>=v&&u&&Math.abs(d)>1)return m;if(d&&Math.abs(f)>1)return s;if(c<=p)return R;if(c>v)return m;if(d)return Math.abs(d)>1?s:(o+s+d)%o}};var bn=function(e){return function(r){return r.autofocus||r.dataset&&!!r.dataset.autofocus||e.indexOf(r)>=0}},xn=function(e,r){var t=new Map;return r.forEach(function(n){return t.set(n.node,n)}),e.map(function(n){return t.get(n)}).filter(Jr)},ut=function(e,r){var t=document&&document.activeElement,n=U(e).filter(V),o=we(t||e,e,n),i=new Map,a=Ze(n,i),u=te(n,i).filter(function(v){var h=v.node;return V(h)});if(!(!u[0]&&(u=a,!u[0]))){var c=Ze([o],i).map(function(v){var h=v.node;return h}),l=xn(c,u),s=l.map(function(v){var h=v.node;return h}),d=it(s,c,t,r);if(d===rr){var p=a.map(function(v){var h=v.node;return h}).filter(bn(nt(n,i)));return{node:p&&p.length?Je(p):Je(s)}}return d===void 0?d:l[d]}};var wn=function(e){e.focus(),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},tr=0,nr=!1,ct=function(e,r){var t=ut(e,r);if(!nr&&t){if(tr>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),nr=!0,setTimeout(function(){nr=!1},1);return}tr++,wn(t.node),tr--}};var or=ct;function ar(e){var r=window,t=r.setImmediate;typeof t!="undefined"?t(e):setTimeout(e,1)}var _n=function(){return document&&document.activeElement===document.body},Sn=function(){return _n()||Qe()},G=null,H=null,$=null,ne=!1,Rn=function(){return!0},En=function(r){return(G.whiteList||Rn)(r)},On=function(r,t){$={observerNode:r,portaledElement:t}},Cn=function(r){return $&&$.portaledElement===r};function ft(e,r,t,n){var o=null,i=e;do{var a=n[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(i!==e)return;o=null}else break}while((i+=t)!==r);o&&(o.node.tabIndex=0)}var Pn=function(r){return r&&"current"in r?r.current:r},Nn=function(r){return r?Boolean(ne):ne==="meanwhile"},Re=function(){var r=!1;if(G){var t=G,n=t.observed,o=t.persistentFocus,i=t.autoFocus,a=t.shards,u=t.crossFrame,c=n||$&&$.portaledElement,l=document&&document.activeElement;if(c){var s=[c].concat(a.map(Pn).filter(Boolean));if((!l||En(l))&&(o||Nn(u)||!Sn()||!H&&i)&&(c&&!(_e(s)||Cn(l,c))&&(document&&!H&&l&&!i?(l.blur&&l.blur(),document.body.focus()):(r=or(s,H),$={})),ne=!1,H=document&&document.activeElement),document){var d=document&&document.activeElement,p=ze(s),v=p.map(function(h){var f=h.node;return f}).indexOf(d);v>-1&&(p.filter(function(h){var f=h.guard,m=h.node;return f&&m.dataset.focusAutoGuard}).forEach(function(h){var f=h.node;return f.removeAttribute("tabIndex")}),ft(v,p.length,1,p),ft(v,-1,-1,p))}}}return r},st=function(r){Re()&&r&&(r.stopPropagation(),r.preventDefault())},Ee=function(){return ar(Re)},dt=function(r){var t=r.target,n=r.currentTarget;n.contains(t)||On(n,t)},Tn=function(){return null},Fn=function(r){var t=r.children;return lt.createElement("div",{onBlur:Ee,onFocus:dt},t)};Fn.propTypes={};var mt=function(){ne="just",setTimeout(function(){ne="meanwhile"},0)},Dn=function(){document.addEventListener("focusin",st,!0),document.addEventListener("focusout",Ee),window.addEventListener("blur",mt)},kn=function(){document.removeEventListener("focusin",st,!0),document.removeEventListener("focusout",Ee),window.removeEventListener("blur",mt)};function In(e){return e.filter(function(r){var t=r.disabled;return!t})}function An(e){var r=e.slice(-1)[0];r&&!G&&Dn();var t=G,n=t&&r&&r.id===t.id;G=r,t&&!n&&(t.onDeactivation(),e.filter(function(o){var i=o.id;return i===t.id}).length||t.returnFocus(!r)),r?(H=null,(!n||t.observed!==r.observed)&&r.onActivation(),Re(!0),ar(Re)):(kn(),H=null)}ye.assignSyncMedium(dt);ge.assignMedium(Ee);Zr.assignMedium(function(e){return e({moveFocusInside:or,focusInside:_e})});var pt=Kr(In,An)(Tn);var vt=Oe.forwardRef(function(r,t){return Oe.createElement(Ue,D({sideCar:pt,ref:t},r))}),ht=Ue.propTypes||{},xi=ht.sideCar,wi=Me(ht,["sideCar"]);vt.propTypes={};var yt=vt;var gt=yt;var P=function(){return P=Object.assign||function(r){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},P.apply(this,arguments)};function Ce(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t}var De=E(require("react"));var S=E(require("react"));var A="right-scroll-bar-position",L="width-before-scroll-bar",ir="with-scroll-bars-hidden";function Ln(e){return e}function Mn(e,r){r===void 0&&(r=Ln);var t=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(i){var a=r(i,n);return t.push(a),function(){t=t.filter(function(u){return u!==a})}},assignSyncMedium:function(i){for(n=!0;t.length;){var a=t;t=[],a.forEach(i)}t={push:function(u){return i(u)},filter:function(){return t}}},assignMedium:function(i){n=!0;var a=[];if(t.length){var u=t;t=[],u.forEach(i),a=t}var c=function(){var s=a;a=[],s.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),t={push:function(s){a.push(s),l()},filter:function(s){return a=a.filter(s),t}}}};return o}function ur(e){e===void 0&&(e={});var r=Mn(null);return r.options=P({async:!0,ssr:!1},e),r}var bt=E(require("react")),xt=function(e){var r=e.sideCar,t=Ce(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=r.read();if(!n)throw new Error("Sidecar medium not found");return bt.createElement(n,P({},t))};xt.isSideCarExport=!0;function cr(e,r){return e.useMedium(r),xt}var Ne=ur();function wt(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}var _t=require("react");function St(e,r){var t=(0,_t.useState)(function(){return{value:e,callback:r,facade:{get current(){return t.value},set current(n){var o=t.value;o!==n&&(t.value=n,t.callback(n,o))}}}})[0];return t.callback=r,t.facade}function lr(e,r){return St(r,function(t){return e.forEach(function(n){return wt(n,t)})})}var fr=function(){},oe=S.forwardRef(function(e,r){var t=S.useRef(null),n=S.useState({onScrollCapture:fr,onWheelCapture:fr,onTouchMoveCapture:fr}),o=n[0],i=n[1],a=e.forwardProps,u=e.children,c=e.className,l=e.removeScrollBar,s=e.enabled,d=e.shards,p=e.sideCar,v=e.noIsolation,h=e.inert,f=e.allowPinchZoom,m=e.as,R=m===void 0?"div":m,O=Ce(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=p,w=lr([t,r]),x=P({},O,o);return S.createElement(S.Fragment,null,s&&S.createElement(_,{sideCar:Ne,removeScrollBar:l,shards:d,noIsolation:v,inert:h,setCallbacks:i,allowPinchZoom:!!f,lockRef:t}),a?S.cloneElement(S.Children.only(u),P({},x,{ref:w})):S.createElement(R,P({},x,{className:c,ref:w}),u))});oe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};oe.classNames={fullWidth:L,zeroRight:A};var g=E(require("react"));var q=E(require("react"));var Ot=E(require("react"));var Rt;var Et=function(){if(Rt)return Rt;if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function Bn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=Et();return r&&e.setAttribute("nonce",r),e}function jn(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function Wn(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var sr=function(){var e=0,r=null;return{add:function(t){e==0&&(r=Bn())&&(jn(r,t),Wn(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}};var dr=function(){var e=sr();return function(r){Ot.useEffect(function(){return e.add(r),function(){e.remove()}},[])}};var ae=function(){var e=dr(),r=function(t){var n=t.styles;return e(n),null};return r};var Un={left:0,top:0,right:0,gap:0},mr=function(e){return parseInt(e||"",10)||0},Vn=function(e){var r=window.getComputedStyle(document.body),t=r[e==="padding"?"paddingLeft":"marginLeft"],n=r[e==="padding"?"paddingTop":"marginTop"],o=r[e==="padding"?"paddingRight":"marginRight"];return[mr(t),mr(n),mr(o)]},Te=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return Un;var r=Vn(e),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,n-t+r[2]-r[0])}};var Gn=ae(),Hn=function(e,r,t,n){var o=e.left,i=e.top,a=e.right,u=e.gap;return t===void 0&&(t="margin"),`
.`+ir+` {
var tn=Object.create;var de=Object.defineProperty;var rn=Object.getOwnPropertyDescriptor;var nn=Object.getOwnPropertyNames;var on=Object.getPrototypeOf,an=Object.prototype.hasOwnProperty;var Rt=e=>de(e,"__esModule",{value:!0});var Me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),un=(e,t)=>{for(var r in t)de(e,r,{get:t[r],enumerable:!0})},Ot=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nn(t))!an.call(e,o)&&(r||o!=="default")&&de(e,o,{get:()=>t[o],enumerable:!(n=rn(t,o))||n.enumerable});return e},O=(e,t)=>Ot(Rt(de(e!=null?tn(on(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),cn=(e=>(t,r)=>e&&e.get(t)||(r=Ot(Rt({}),t,1),e&&e.set(t,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var Bt=Me((Bo,Mt)=>{"use strict";var dn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Mt.exports=dn});var Ut=Me((jo,Vt)=>{"use strict";var mn=Bt();function jt(){}function Wt(){}Wt.resetWarningCache=jt;Vt.exports=function(){function e(n,o,a,i,u,f){if(f!==mn){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Wt,resetWarningCache:jt};return r.PropTypes=r,r}});var Q=Me((Uo,Gt)=>{Gt.exports=Ut()();var Wo,Vo});var vo={};un(vo,{ModalDialogPrimitiveContent:()=>Vr,ModalDialogPrimitiveOverlay:()=>Wr});var w=require("react");var K=require("react");var pe=require("react");function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ct=me()?pe.useLayoutEffect:pe.useEffect;var ve=require("react");function Nt(){var e=(0,ve.useState)(Object.create(null)),t=e[1];return(0,ve.useCallback)(function(){t(Object.create(null))},[])}var Pt=require("react-dom");var Dt=function(t){var r=t.children,n=t.type,o=n===void 0?"reach-portal":n,a=t.containerRef,i=(0,K.useRef)(null),u=(0,K.useRef)(null),f=Nt();return Ct(function(){if(!!i.current){var l=i.current.ownerDocument,c=(a==null?void 0:a.current)||l.body;return u.current=l==null?void 0:l.createElement(o),c.appendChild(u.current),f(),function(){u.current&&c&&c.removeChild(u.current)}}},[o,f,a]),u.current?(0,Pt.createPortal)(r,u.current):(0,K.createElement)("span",{ref:i})};function Ft(e){return me()?e?e.ownerDocument:document:null}function Tt(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function Be(){}var Po=require("react");function It(e){if(!1)var t}var kt=require("react");function At(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ln(e,t){if(!!e){if(typeof e=="string")return At(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return At(e,t)}}function fn(e,t){var r;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=ln(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=e[Symbol.iterator](),r.next.bind(r)}function sn(e,t){if(e!=null)if(Tt(e))e(t);else try{e.current=t}catch(r){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function Lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,kt.useCallback)(function(n){for(var o=fn(t),a;!(a=o()).done;){var i=a.value;sn(i,n)}},t)}function z(e,t){return function(r){if(e&&e(r),!r.defaultPrevented)return t(r)}}function je(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T.apply(this,arguments)}var Ce=O(require("react"));var y=O(require("react")),aa=O(Q());var J="data-focus-lock",he="data-focus-lock-disabled",Ht="data-no-focus-lock",$t="data-autofocus-inside";function qt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Yt=require("react");function Zt(e,t){var r=(0,Yt.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function We(e,t){return Zt(t,function(r){return e.forEach(function(n){return qt(n,r)})})}var er=require("react");var j=O(require("react")),Ko=O(Q()),W={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Xt=function(t){var r=t.children;return j.createElement(j.Fragment,null,j.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:W}),r,r&&j.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:W}))};Xt.propTypes={};Xt.defaultProps={children:null};var ye=function(){return ye=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ye.apply(this,arguments)};function Kt(e){return e}function zt(e,t){t===void 0&&(t=Kt);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(u){return u!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(u){return a(u)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var u=r;r=[],u.forEach(a),i=r}var f=function(){var c=i;i=[],c.forEach(a)},l=function(){return Promise.resolve().then(f)};l(),r={push:function(c){i.push(c),l()},filter:function(c){return i=i.filter(c),r}}}};return o}function ee(e,t){return t===void 0&&(t=Kt),zt(e,t)}function Ve(e){e===void 0&&(e={});var t=zt(null);return t.options=ye({async:!0,ssr:!1},e),t}var ge=ee({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),be=ee(),Qt=ee(),Jt=Ve({async:!0});var hn=[],Ue=y.forwardRef(function(t,r){var n,o=y.useState(),a=o[0],i=o[1],u=y.useRef(),f=y.useRef(!1),l=y.useRef(null),c=t.children,d=t.disabled,v=t.noFocusGuards,p=t.persistentFocus,h=t.crossFrame,s=t.autoFocus,m=t.allowTextSelection,b=t.group,_=t.className,S=t.whiteList,E=t.hasPositiveIndices,x=t.shards,B=x===void 0?hn:x,D=t.as,F=D===void 0?"div":D,I=t.lockProps,P=I===void 0?{}:I,Ur=t.sideCar,se=t.returnFocus,Gr=t.focusOptions,ke=t.onActivation,Ae=t.onDeactivation,Hr=y.useState({}),$r=Hr[0],qr=y.useCallback(function(){l.current=l.current||document&&document.activeElement,u.current&&ke&&ke(u.current),f.current=!0},[ke]),Yr=y.useCallback(function(){f.current=!1,Ae&&Ae(u.current)},[Ae]);(0,er.useEffect)(function(){d||(l.current=null)},[]);var Zr=y.useCallback(function(k){var X=l.current;if(X&&X.focus){var Le=typeof se=="function"?se(X):se;if(Le){var Et=typeof Le=="object"?Le:void 0;l.current=null,k?Promise.resolve().then(function(){return X.focus(Et)}):X.focus(Et)}}},[se]),Xr=y.useCallback(function(k){f.current&&ge.useMedium(k)},[]),Kr=be.useMedium,zr=y.useCallback(function(k){u.current!==k&&(u.current=k,i(k))},[]),Qr=T((n={},n[he]=d&&"disabled",n[J]=b,n),P),St=v!==!0,Jr=St&&v!=="tail",en=We([r,zr]);return y.createElement(y.Fragment,null,St&&[y.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:W}),E?y.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:W}):null],!d&&y.createElement(Ur,{id:$r,sideCar:Jt,observed:a,disabled:d,persistentFocus:p,crossFrame:h,autoFocus:s,whiteList:S,shards:B,onActivation:qr,onDeactivation:Yr,returnFocus:Zr,focusOptions:Gr}),y.createElement(F,T({ref:en},Qr,{className:_,onBlur:Kr,onFocus:Xr}),c),Jr&&y.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:W}))});Ue.propTypes={};Ue.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var Ge=Ue;var pr=O(require("react")),Pi=O(Q());function te(e,t){return te=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},te(e,t)}function He(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,te(e,t)}function $e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xe=O(require("react"));function yn(e,t){function r(n){return n.displayName||n.name||"Component"}return function(o){var a=[],i;function u(){i=e(a.map(function(l){return l.props})),t(i)}var f=function(l){He(c,l);function c(){return l.apply(this,arguments)||this}c.peek=function(){return i};var d=c.prototype;return d.componentDidMount=function(){a.push(this),u()},d.componentDidUpdate=function(){u()},d.componentWillUnmount=function(){var p=a.indexOf(this);a.splice(p,1),u()},d.render=function(){return xe.default.createElement(o,this.props)},c}(xe.PureComponent);return $e(f,"displayName","SideEffect("+r(o)+")"),f}}var tr=yn;var C=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},re=function(e){return Array.isArray(e)?e:[e]};var gn=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var a=e[n].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(i,u){return!t.has(u)})},rr=function(e){return e.parentNode?rr(e.parentNode):e},V=function(e){var t=re(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(J);return r.push.apply(r,o?gn(C(rr(n).querySelectorAll("[".concat(J,'="').concat(o,'"]:not([').concat(he,'="disabled"])')))):[n]),r},[])};var U=function(){return document.activeElement?document.activeElement.shadowRoot?document.activeElement.shadowRoot.activeElement:document.activeElement:void 0};var bn=function(e){return e===document.activeElement},xn=function(e){return Boolean(C(e.querySelectorAll("iframe")).some(function(t){return bn(t)}))},we=function(e){var t=document&&U();return!t||t.dataset&&t.dataset.focusGuard?!1:V(e).reduce(function(r,n){return r||n.contains(t)||xn(n)},!1)};var qe=function(){var e=document&&U();return e?C(document.querySelectorAll("[".concat(Ht,"]"))).some(function(t){return t.contains(e)}):!1};var wn=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},_n=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!wn(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},Ye=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=_n(t,Ye.bind(void 0,e));return e.set(t,n),n},Ze=function(e){return e.dataset},Sn=function(e){return e.tagName==="BUTTON"},nr=function(e){return e.tagName==="INPUT"},Xe=function(e){return nr(e)&&e.type==="radio"},or=function(e){return!((nr(e)||Sn(e))&&(e.type==="hidden"||e.disabled))&&!e.ariaDisabled},ne=function(e){var t;return Boolean(e&&((t=Ze(e))===null||t===void 0?void 0:t.focusGuard))},G=function(e){return!ne(e)},ar=function(e){return Boolean(e)};var En=function(e,t){return t.filter(Xe).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},_e=function(e,t){return Xe(e)&&e.name?En(e,t):e},ir=function(e){var t=new Set;return e.forEach(function(r){return t.add(_e(r,e))}),e.filter(function(r){return t.has(r)})};var Ke=function(e){return e[0]&&e.length>1?_e(e[0],e):e[0]},ze=function(e,t){return e.length>1?e.indexOf(_e(e[t],e)):t};var Qe="NEW_FOCUS",ur=function(e,t,r,n){var o=e.length,a=e[0],i=e[o-1],u=ne(r);if(!(r&&e.indexOf(r)>=0)){var f=r!==void 0?t.indexOf(r):-1,l=n?t.indexOf(n):f,c=n?e.indexOf(n):-1,d=f-l,v=t.indexOf(a),p=t.indexOf(i),h=ir(t),s=r!==void 0?h.indexOf(r):-1,m=s-(n?h.indexOf(n):f),b=ze(e,0),_=ze(e,o-1);if(f===-1||c===-1)return Qe;if(!d&&c>=0)return c;if(f<=v&&u&&Math.abs(d)>1)return _;if(f>=p&&u&&Math.abs(d)>1)return b;if(d&&Math.abs(m)>1)return c;if(f<=v)return _;if(f>p)return b;if(d)return Math.abs(d)>1?c:(o+c+d)%o}};var Rn=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||n},Je=function(e,t,r){return C(e).map(function(n,o){return{node:n,index:o,tabIndex:r&&n.tabIndex===-1?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}}).filter(function(n){return!t||n.tabIndex>=0}).sort(Rn)};var cr=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"];var et=cr.join(","),On="".concat(et,", [data-focus-guard]"),Se=function(e,t){return e.reduce(function(r,n){return r.concat(C(n.querySelectorAll(t?On:et)),n.parentNode?C(n.parentNode.querySelectorAll(et)).filter(function(o){return o===n}):[])},[])},lr=function(e){var t=e.querySelectorAll("[".concat($t,"]"));return C(t).map(function(r){return Se([r])}).reduce(function(r,n){return r.concat(n)},[])};var tt=function(e,t){return C(e).filter(function(r){return Ye(t,r)}).filter(function(r){return or(r)})},oe=function(e,t,r){return Je(tt(Se(e,r),t),!0,r)},rt=function(e,t){return Je(tt(Se(e),t),!1)},fr=function(e,t){return tt(lr(e),t)};var nt=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&nt(e.parentNode,t),t},ot=function(e,t){for(var r=nt(e),n=nt(t),o=0;o<r.length;o+=1){var a=r[o];if(n.indexOf(a)>=0)return a}return!1},Ee=function(e,t,r){var n=re(e),o=re(t),a=n[0],i=!1;return o.filter(Boolean).forEach(function(u){i=ot(i||u,u)||i,r.filter(Boolean).forEach(function(f){var l=ot(a,f);l&&(!i||l.contains(i)?i=l:i=ot(l,i))})}),i},sr=function(e,t){return e.reduce(function(r,n){return r.concat(fr(n,t))},[])};var Cn=function(e){return function(t){var r;return t.autofocus||!!((r=Ze(t))===null||r===void 0?void 0:r.autofocus)||e.indexOf(t)>=0}},Nn=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(ar)},dr=function(e,t){var r=document&&U(),n=V(e).filter(G),o=Ee(r||e,e,n),a=new Map,i=rt(n,a),u=oe(n,a).filter(function(p){var h=p.node;return G(h)});if(!(!u[0]&&(u=i,!u[0]))){var f=rt([o],a).map(function(p){var h=p.node;return h}),l=Nn(f,u),c=l.map(function(p){var h=p.node;return h}),d=ur(c,f,r,t);if(d===Qe){var v=i.map(function(p){var h=p.node;return h}).filter(Cn(sr(n,a)));return{node:v&&v.length?Ke(v):Ke(c)}}return d===void 0?d:l[d]}};var at=function(e){var t=V(e).filter(G),r=Ee(e,e,t),n=new Map,o=oe([r],n,!0),a=oe(t,n).filter(function(i){var u=i.node;return G(u)}).map(function(i){var u=i.node;return u});return o.map(function(i){var u=i.node,f=i.index;return{node:u,index:f,lockItem:a.indexOf(u)>=0,guard:ne(u)}})};var Pn=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},it=0,ut=!1,mr=function(e,t,r){r===void 0&&(r={});var n=dr(e,t);if(!ut&&n){if(it>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ut=!0,setTimeout(function(){ut=!1},1);return}it++,Pn(n.node,r.focusOptions),it--}};var ct=mr;function lt(e){var t=window,r=t.setImmediate;typeof r!="undefined"?r(e):setTimeout(e,1)}var Dn=function(){return document&&document.activeElement===document.body},Fn=function(){return Dn()||qe()},H=null,$=null,q=null,ae=!1,Tn=function(){return!0},In=function(t){return(H.whiteList||Tn)(t)},kn=function(t,r){q={observerNode:t,portaledElement:r}},An=function(t){return q&&q.portaledElement===t};function vr(e,t,r,n){var o=null,a=e;do{var i=n[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=r)!==t);o&&(o.node.tabIndex=0)}var Ln=function(t){return t&&"current"in t?t.current:t},Mn=function(t){return t?Boolean(ae):ae==="meanwhile"},Bn=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},jn=function(t,r){return r.some(function(n){return Bn(t,n,n)})},Re=function(){var t=!1;if(H){var r=H,n=r.observed,o=r.persistentFocus,a=r.autoFocus,i=r.shards,u=r.crossFrame,f=r.focusOptions,l=n||q&&q.portaledElement,c=document&&document.activeElement;if(l){var d=[l].concat(i.map(Ln).filter(Boolean));if((!c||In(c))&&(o||Mn(u)||!Fn()||!$&&a)&&(l&&!(we(d)||c&&jn(c,d)||An(c,l))&&(document&&!$&&c&&!a?(c.blur&&c.blur(),document.body.focus()):(t=ct(d,$,{focusOptions:f}),q={})),ae=!1,$=document&&document.activeElement),document){var v=document&&document.activeElement,p=at(d),h=p.map(function(s){var m=s.node;return m}).indexOf(v);h>-1&&(p.filter(function(s){var m=s.guard,b=s.node;return m&&b.dataset.focusAutoGuard}).forEach(function(s){var m=s.node;return m.removeAttribute("tabIndex")}),vr(h,p.length,1,p),vr(h,-1,-1,p))}}}return t},hr=function(t){Re()&&t&&(t.stopPropagation(),t.preventDefault())},Oe=function(){return lt(Re)},yr=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||kn(n,r)},Wn=function(){return null},Vn=function(t){var r=t.children;return pr.createElement("div",{onBlur:Oe,onFocus:yr},r)};Vn.propTypes={};var gr=function(){ae="just",setTimeout(function(){ae="meanwhile"},0)},Un=function(){document.addEventListener("focusin",hr),document.addEventListener("focusout",Oe),window.addEventListener("blur",gr)},Gn=function(){document.removeEventListener("focusin",hr),document.removeEventListener("focusout",Oe),window.removeEventListener("blur",gr)};function Hn(e){return e.filter(function(t){var r=t.disabled;return!r})}function $n(e){var t=e.slice(-1)[0];t&&!H&&Un();var r=H,n=r&&t&&t.id===r.id;H=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var a=o.id;return a===r.id}).length||r.returnFocus(!t)),t?($=null,(!n||r.observed!==t.observed)&&t.onActivation(),Re(!0),lt(Re)):(Gn(),$=null)}ge.assignSyncMedium(yr);be.assignMedium(Oe);Qt.assignMedium(function(e){return e({moveFocusInside:ct,focusInside:we})});var br=tr(Hn,$n)(Wn);var xr=Ce.forwardRef(function(t,r){return Ce.createElement(Ge,T({sideCar:br,ref:r},t))}),wr=Ge.propTypes||{},Wi=wr.sideCar,Vi=je(wr,["sideCar"]);xr.propTypes={};var _r=xr;var Sr=_r;var N=function(){return N=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},N.apply(this,arguments)};function Ne(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var Ie=O(require("react"));var R=O(require("react"));var A="right-scroll-bar-position",L="width-before-scroll-bar",ft="with-scroll-bars-hidden";function qn(e){return e}function Yn(e,t){t===void 0&&(t=qn);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(u){return u!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(u){return a(u)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var u=r;r=[],u.forEach(a),i=r}var f=function(){var c=i;i=[],c.forEach(a)},l=function(){return Promise.resolve().then(f)};l(),r={push:function(c){i.push(c),l()},filter:function(c){return i=i.filter(c),r}}}};return o}function st(e){e===void 0&&(e={});var t=Yn(null);return t.options=N({async:!0,ssr:!1},e),t}var Er=O(require("react")),Rr=function(e){var t=e.sideCar,r=Ne(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return Er.createElement(n,N({},r))};Rr.isSideCarExport=!0;function dt(e,t){return e.useMedium(t),Rr}var De=st();function Or(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Cr=require("react");function Nr(e,t){var r=(0,Cr.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function mt(e,t){return Nr(t,function(r){return e.forEach(function(n){return Or(n,r)})})}var pt=function(){},ie=R.forwardRef(function(e,t){var r=R.useRef(null),n=R.useState({onScrollCapture:pt,onWheelCapture:pt,onTouchMoveCapture:pt}),o=n[0],a=n[1],i=e.forwardProps,u=e.children,f=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,v=e.sideCar,p=e.noIsolation,h=e.inert,s=e.allowPinchZoom,m=e.as,b=m===void 0?"div":m,_=Ne(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=v,E=mt([r,t]),x=N({},_,o);return R.createElement(R.Fragment,null,c&&R.createElement(S,{sideCar:De,removeScrollBar:l,shards:d,noIsolation:p,inert:h,setCallbacks:a,allowPinchZoom:!!s,lockRef:r}),i?R.cloneElement(R.Children.only(u),N({},x,{ref:E})):R.createElement(b,N({},x,{className:f,ref:E}),u))});ie.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ie.classNames={fullWidth:L,zeroRight:A};var g=O(require("react"));var Y=O(require("react"));var Fr=O(require("react"));var Pr;var Dr=function(){if(Pr)return Pr;if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function Zn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Dr();return t&&e.setAttribute("nonce",t),e}function Xn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Kn(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vt=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Zn())&&(Xn(t,r),Kn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var ht=function(){var e=vt();return function(t){Fr.useEffect(function(){return e.add(t),function(){e.remove()}},[])}};var ue=function(){var e=ht(),t=function(r){var n=r.styles;return e(n),null};return t};var zn={left:0,top:0,right:0,gap:0},yt=function(e){return parseInt(e||"",10)||0},Qn=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[yt(r),yt(n),yt(o)]},Fe=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return zn;var t=Qn(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var Jn=ue(),eo=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,u=e.gap;return r===void 0&&(r="margin"),`
.`+ft+` {
overflow: hidden `+n+`;

@@ -9,10 +9,10 @@ padding-right: `+u+"px "+n+`;

overflow: hidden `+n+`;
`+[r&&"position: relative "+n+";",t==="margin"&&`
`+[t&&"position: relative "+n+";",r==="margin"&&`
padding-left: `+o+`px;
padding-top: `+i+`px;
padding-right: `+a+`px;
padding-top: `+a+`px;
padding-right: `+i+`px;
margin-left:0;
margin-top:0;
margin-right: `+u+"px "+n+`;
`,t==="padding"&&"padding-right: "+u+"px "+n+";"].filter(Boolean).join("")+`
`,r==="padding"&&"padding-right: "+u+"px "+n+";"].filter(Boolean).join("")+`
}

@@ -35,6 +35,6 @@

}
`},pr=function(e){var r=q.useState(Te(e.gapMode)),t=r[0],n=r[1];q.useEffect(function(){n(Te(e.gapMode))},[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,u=a===void 0?"margin":a;return q.createElement(Gn,{styles:Hn(t,!o,u,i?"":"!important")})};var $n=function(e){var r=window.getComputedStyle(e);return r.overflowY!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowY==="visible")},qn=function(e){var r=window.getComputedStyle(e);return e.type==="range"?!0:r.overflowX!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowX==="visible")},vr=function(e,r){var t=r;do{typeof ShadowRoot!="undefined"&&t instanceof ShadowRoot&&(t=t.host);var n=Ct(e,t);if(n){var o=Pt(e,t),i=o[1],a=o[2];if(i>a)return!0}t=t.parentNode}while(t&&t!==document.body);return!1},Yn=function(e){var r=e.scrollTop,t=e.scrollHeight,n=e.clientHeight;return[r,t,n]},Zn=function(e){var r=e.scrollLeft,t=e.scrollWidth,n=e.clientWidth;return[r,t,n]},Ct=function(e,r){return e==="v"?$n(r):qn(r)},Pt=function(e,r){return e==="v"?Yn(r):Zn(r)},Nt=function(e,r,t,n,o){var i=n,a=t.target,u=r.contains(a),c=!1,l=i>0,s=0,d=0;do{var p=Pt(e,a),v=p[0],h=p[1],f=p[2],m=h-f-v;(v||m)&&Ct(e,a)&&(s+=m,d+=v),a=a.parentNode}while(!u&&a!==document.body||u&&(r.contains(a)||r===a));return(l&&(o&&s===0||!o&&i>s)||!l&&(o&&d===0||!o&&-i>d))&&(c=!0),c};var hr=!1;if(typeof window!="undefined")try{ie=Object.defineProperty({},"passive",{get:function(){return hr=!0,!0}}),window.addEventListener("test",ie,ie),window.removeEventListener("test",ie,ie)}catch(e){hr=!1}var ie,M=hr?{passive:!1}:!1;var Fe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tt=function(e){return[e.deltaX,e.deltaY]},Ft=function(e){return e&&"current"in e?e.current:e},Xn=function(e,r){return e[0]===r[0]&&e[1]===r[1]},Kn=function(e){return`
`},gt=function(e){var t=Y.useState(Fe(e.gapMode)),r=t[0],n=t[1];Y.useEffect(function(){n(Fe(e.gapMode))},[e.gapMode]);var o=e.noRelative,a=e.noImportant,i=e.gapMode,u=i===void 0?"margin":i;return Y.createElement(Jn,{styles:eo(r,!o,u,a?"":"!important")})};var to=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},ro=function(e){var t=window.getComputedStyle(e);return e.type==="range"?!0:t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},bt=function(e,t){var r=t;do{typeof ShadowRoot!="undefined"&&r instanceof ShadowRoot&&(r=r.host);var n=Tr(e,r);if(n){var o=Ir(e,r),a=o[1],i=o[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},no=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},oo=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Tr=function(e,t){return e==="v"?to(t):ro(t)},Ir=function(e,t){return e==="v"?no(t):oo(t)},ao=function(e,t){return e==="h"&&t==="rtl"?-1:1},kr=function(e,t,r,n,o){var a=ao(e,window.getComputedStyle(t).direction),i=a*n,u=r.target,f=t.contains(u),l=!1,c=i>0,d=0,v=0;do{var p=Ir(e,u),h=p[0],s=p[1],m=p[2],b=s-m-a*h;(h||b)&&Tr(e,u)&&(d+=b,v+=h),u=u.parentNode}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(c&&(o&&d===0||!o&&i>d)||!c&&(o&&v===0||!o&&-i>v))&&(l=!0),l};var xt=!1;if(typeof window!="undefined")try{ce=Object.defineProperty({},"passive",{get:function(){return xt=!0,!0}}),window.addEventListener("test",ce,ce),window.removeEventListener("test",ce,ce)}catch(e){xt=!1}var ce,M=xt?{passive:!1}:!1;var Te=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ar=function(e){return[e.deltaX,e.deltaY]},Lr=function(e){return e&&"current"in e?e.current:e},io=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uo=function(e){return`
.block-interactivity-`+e+` {pointer-events: none;}
.allow-interactivity-`+e+` {pointer-events: all;}
`},zn=0,Y=[];function Dt(e){var r=g.useRef([]),t=g.useRef([0,0]),n=g.useRef(),o=g.useState(zn++)[0],i=g.useState(function(){return ae()})[0],a=g.useRef(e);g.useEffect(function(){a.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var f=[e.lockRef.current].concat((e.shards||[]).map(Ft)).filter(Boolean);return f.forEach(function(m){return m.classList.add("allow-interactivity-"+o)}),function(){document.body.classList.remove("block-interactivity-"+o),f.forEach(function(m){return m.classList.remove("allow-interactivity-"+o)})}}},[e.inert,e.lockRef.current,e.shards]);var u=g.useCallback(function(f,m){if("touches"in f&&f.touches.length===2)return!a.current.allowPinchZoom;var R=Fe(f),O=t.current,_="deltaX"in f?f.deltaX:O[0]-R[0],w="deltaY"in f?f.deltaY:O[1]-R[1],x,k=f.target,F=Math.abs(_)>Math.abs(w)?"h":"v",T=vr(F,k);if(!T)return!0;if(T?x=F:(x=F==="v"?"h":"v",T=vr(F,k)),!T)return!1;if(!n.current&&"changedTouches"in f&&(_||w)&&(n.current=x),!x)return!0;var B=n.current||x;return Nt(B,m,f,B==="h"?_:w,!0)},[]),c=g.useCallback(function(f){var m=f;if(!(!Y.length||Y[Y.length-1]!==i)){var R="deltaY"in m?Tt(m):Fe(m),O=r.current.filter(function(x){return x.name===m.type&&x.target===m.target&&Xn(x.delta,R)})[0];if(O&&O.should){m.preventDefault();return}if(!O){var _=(a.current.shards||[]).map(Ft).filter(Boolean).filter(function(x){return x.contains(m.target)}),w=_.length>0?u(m,_[0]):!a.current.noIsolation;w&&m.preventDefault()}}},[]),l=g.useCallback(function(f,m,R,O){var _={name:f,delta:m,target:R,should:O};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(w){return w!==_})},1)},[]),s=g.useCallback(function(f){t.current=Fe(f),n.current=void 0},[]),d=g.useCallback(function(f){l(f.type,Tt(f),f.target,u(f,e.lockRef.current))},[]),p=g.useCallback(function(f){l(f.type,Fe(f),f.target,u(f,e.lockRef.current))},[]);g.useEffect(function(){return Y.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,M),document.addEventListener("touchmove",c,M),document.addEventListener("touchstart",s,M),function(){Y=Y.filter(function(f){return f!==i}),document.removeEventListener("wheel",c,M),document.removeEventListener("touchmove",c,M),document.removeEventListener("touchstart",s,M)}},[]);var v=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(i,{styles:Kn(o)}):null,v?g.createElement(pr,{gapMode:"margin"}):null)}var kt=cr(Ne,Dt);var It=De.forwardRef(function(e,r){return De.createElement(oe,P({},e,{ref:r,sideCar:kt}))});It.classNames=oe.classNames;var yr=It;var ue=E(K());function ce(){return ce=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ce.apply(this,arguments)}function gr(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(r.indexOf(o)>=0)&&(t[o]=e[o]);return t}var Bu={allowPinchZoom:ue.default.bool,dangerouslyBypassFocusLock:ue.default.bool,dangerouslyBypassScrollLock:ue.default.bool,initialFocusRef:function(){return null},onDismiss:ue.default.func},At=(0,b.forwardRef)(function(r,t){var n=r.as,o=n===void 0?"div":n,i=r.isOpen,a=i===void 0?!0:i,u=gr(r,["as","isOpen"]);return Nr("dialog"),(0,b.useEffect)(function(){a?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[a]),a?(0,b.createElement)(Or,{"data-reach-dialog-wrapper":""},(0,b.createElement)(Qn,ce({ref:t,as:o},u))):null}),Qn=(0,b.forwardRef)(function(r,t){var n=r.allowPinchZoom,o=r.as,i=o===void 0?"div":o,a=r.dangerouslyBypassFocusLock,u=a===void 0?!1:a,c=r.dangerouslyBypassScrollLock,l=c===void 0?!1:c,s=r.initialFocusRef,d=r.onClick,p=r.onDismiss,v=p===void 0?Le:p,h=r.onKeyDown,f=r.onMouseDown,m=r.unstable_lockFocusAcrossFrames,R=m===void 0?!0:m,O=gr(r,["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"]),_=(0,b.useRef)(null),w=(0,b.useRef)(null),x=Dr(w,t),k=(0,b.useCallback)(function(){s&&s.current&&s.current.focus()},[s]);function F(N){_.current===N.target&&(N.stopPropagation(),v(N))}function T(N){N.key==="Escape"&&(N.stopPropagation(),v(N))}function B(N){_.current=N.target}return(0,b.useEffect)(function(){return w.current?Jn(w.current):void 0},[]),(0,b.createElement)(gt,{autoFocus:!0,returnFocus:!0,onActivation:k,disabled:u,crossFrame:R},(0,b.createElement)(yr,{allowPinchZoom:n,enabled:!l},(0,b.createElement)(i,ce({},O,{ref:x,"data-reach-dialog-overlay":"",onClick:X(d,F),onKeyDown:X(h,T),onMouseDown:X(f,B)}))))}),Lt=(0,b.forwardRef)(function(r,t){var n=r.as,o=n===void 0?"div":n,i=r.onClick;r.onKeyDown;var a=gr(r,["as","onClick","onKeyDown"]);return(0,b.createElement)(o,ce({"aria-modal":"true",role:"dialog",tabIndex:-1},a,{ref:t,"data-reach-dialog-content":"",onClick:X(i,function(u){u.stopPropagation()})}))});function Jn(e){var r=[],t=[],n=Cr(e);return e?(Array.prototype.forEach.call(n.querySelectorAll("body > *"),function(o){var i,a,u=(i=e.parentNode)==null||(a=i.parentNode)==null?void 0:a.parentNode;if(o!==u){var c=o.getAttribute("aria-hidden"),l=c!==null&&c!=="false";l||(r.push(c),t.push(o),o.setAttribute("aria-hidden","true"))}}),function(){t.forEach(function(o,i){var a=r[i];a===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",a)})}):Le}module.exports=en(eo);0&&(module.exports={ModalDialogPrimitiveContent,ModalDialogPrimitiveOverlay});
`},co=0,Z=[];function Mr(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),o=g.useState(co++)[0],a=g.useState(function(){return ue()})[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var s=[e.lockRef.current].concat((e.shards||[]).map(Lr)).filter(Boolean);return s.forEach(function(m){return m.classList.add("allow-interactivity-"+o)}),function(){document.body.classList.remove("block-interactivity-"+o),s.forEach(function(m){return m.classList.remove("allow-interactivity-"+o)})}}},[e.inert,e.lockRef.current,e.shards]);var u=g.useCallback(function(s,m){if("touches"in s&&s.touches.length===2)return!i.current.allowPinchZoom;var b=Te(s),_=r.current,S="deltaX"in s?s.deltaX:_[0]-b[0],E="deltaY"in s?s.deltaY:_[1]-b[1],x,B=s.target,D=Math.abs(S)>Math.abs(E)?"h":"v",F=bt(D,B);if(!F)return!0;if(F?x=D:(x=D==="v"?"h":"v",F=bt(D,B)),!F)return!1;if(!n.current&&"changedTouches"in s&&(S||E)&&(n.current=x),!x)return!0;var I=n.current||x;return kr(I,m,s,I==="h"?S:E,!0)},[]),f=g.useCallback(function(s){var m=s;if(!(!Z.length||Z[Z.length-1]!==a)){var b="deltaY"in m?Ar(m):Te(m),_=t.current.filter(function(x){return x.name===m.type&&x.target===m.target&&io(x.delta,b)})[0];if(_&&_.should){m.preventDefault();return}if(!_){var S=(i.current.shards||[]).map(Lr).filter(Boolean).filter(function(x){return x.contains(m.target)}),E=S.length>0?u(m,S[0]):!i.current.noIsolation;E&&m.preventDefault()}}},[]),l=g.useCallback(function(s,m,b,_){var S={name:s,delta:m,target:b,should:_};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),c=g.useCallback(function(s){r.current=Te(s),n.current=void 0},[]),d=g.useCallback(function(s){l(s.type,Ar(s),s.target,u(s,e.lockRef.current))},[]),v=g.useCallback(function(s){l(s.type,Te(s),s.target,u(s,e.lockRef.current))},[]);g.useEffect(function(){return Z.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",f,M),document.addEventListener("touchmove",f,M),document.addEventListener("touchstart",c,M),function(){Z=Z.filter(function(s){return s!==a}),document.removeEventListener("wheel",f,M),document.removeEventListener("touchmove",f,M),document.removeEventListener("touchstart",c,M)}},[]);var p=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(a,{styles:uo(o)}):null,p?g.createElement(gt,{gapMode:"margin"}):null)}var Br=dt(De,Mr);var jr=Ie.forwardRef(function(e,t){return Ie.createElement(ie,N({},e,{ref:t,sideCar:Br}))});jr.classNames=ie.classNames;var wt=jr;var le=O(Q());function fe(){return fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fe.apply(this,arguments)}function _t(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var lo=["as","isOpen"],fo=["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"],so=["as","onClick","onKeyDown"];var oc={allowPinchZoom:le.default.bool,dangerouslyBypassFocusLock:le.default.bool,dangerouslyBypassScrollLock:le.default.bool,initialFocusRef:function(){return null},onDismiss:le.default.func},Wr=(0,w.forwardRef)(function(t,r){var n=t.as,o=n===void 0?"div":n,a=t.isOpen,i=a===void 0?!0:a,u=_t(t,lo);return It("dialog"),(0,w.useEffect)(function(){i?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[i]),i?(0,w.createElement)(Dt,{"data-reach-dialog-wrapper":""},(0,w.createElement)(mo,fe({ref:r,as:o},u))):null}),mo=(0,w.forwardRef)(function(t,r){var n=t.allowPinchZoom,o=t.as,a=o===void 0?"div":o,i=t.dangerouslyBypassFocusLock,u=i===void 0?!1:i,f=t.dangerouslyBypassScrollLock,l=f===void 0?!1:f,c=t.initialFocusRef,d=t.onClick,v=t.onDismiss,p=v===void 0?Be:v,h=t.onKeyDown,s=t.onMouseDown,m=t.unstable_lockFocusAcrossFrames,b=_t(t,fo),_=m!==void 0,S=(0,w.useRef)(null),E=(0,w.useRef)(null),x=Lt(E,r),B=(0,w.useCallback)(function(){c&&c.current&&c.current.focus()},[c]);function D(P){S.current===P.target&&(P.stopPropagation(),p(P))}function F(P){P.key==="Escape"&&(P.stopPropagation(),p(P))}function I(P){S.current=P.target}return(0,w.useEffect)(function(){return E.current?po(E.current):void 0},[]),(0,w.createElement)(Sr,{autoFocus:!0,returnFocus:!0,onActivation:B,disabled:u,crossFrame:m!=null?m:!0},(0,w.createElement)(wt,{allowPinchZoom:n,enabled:!l},(0,w.createElement)(a,fe({},b,{ref:x,"data-reach-dialog-overlay":"",onClick:z(d,D),onKeyDown:z(h,F),onMouseDown:z(s,I)}))))}),Vr=(0,w.forwardRef)(function(t,r){var n=t.as,o=n===void 0?"div":n,a=t.onClick;t.onKeyDown;var i=_t(t,so);return(0,w.createElement)(o,fe({"aria-modal":"true",role:"dialog",tabIndex:-1},i,{ref:r,"data-reach-dialog-content":"",onClick:z(a,function(u){u.stopPropagation()})}))});function po(e){var t=[],r=[],n=Ft(e);return e?(Array.prototype.forEach.call(n.querySelectorAll("body > *"),function(o){var a,i,u=(a=e.parentNode)==null||(i=a.parentNode)==null?void 0:i.parentNode;if(o!==u){var f=o.getAttribute("aria-hidden"),l=f!==null&&f!=="false";l||(t.push(f),r.push(o),o.setAttribute("aria-hidden","true"))}}),function(){r.forEach(function(o,a){var i=t[a];i===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",i)})}):Be}module.exports=cn(vo);0&&(module.exports={ModalDialogPrimitiveContent,ModalDialogPrimitiveOverlay});
/*! *****************************************************************************

@@ -41,0 +41,0 @@ Copyright (c) Microsoft Corporation. All rights reserved.

{
"name": "@twilio-paste/modal-dialog-primitive",
"version": "0.2.6",
"version": "0.3.0",
"category": "overlay",

@@ -28,3 +28,3 @@ "status": "production",

"dependencies": {
"@reach/dialog": "0.15.0"
"@reach/dialog": "0.16.2"
},

@@ -31,0 +31,0 @@ "peerDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc