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

@twilio-paste/modal-dialog-primitive

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

to
0.1.1

@@ -6,2 +6,13 @@ # Change Log

## [0.1.1](https://github.com/twilio-labs/paste/compare/@twilio-paste/modal-dialog-primitive@0.1.0...@twilio-paste/modal-dialog-primitive@0.1.1) (2020-02-26)
### Bug Fixes
* package dependencies and deprecation warnings ([#334](https://github.com/twilio-labs/paste/issues/334)) ([0e88338](https://github.com/twilio-labs/paste/commit/0e88338511e6835a79eb0a9cea8d5b3a1cdf0a88))
# 0.1.0 (2020-02-19)

@@ -8,0 +19,0 @@

@@ -1,2 +0,2 @@

import e,{useRef as n,useState as t,useLayoutEffect as r,useMemo as o,createElement as i,useCallback as a,PureComponent as u,forwardRef as c,Fragment as l,cloneElement as s,Children as f,useEffect as d}from"react";import{createPortal as p}from"react-dom";var v=function(o){var i=o.children,a=o.type,u=void 0===a?"reach-portal":a,c=n(null),l=n(null),s=t()[1];return r((function(){var e=c.current.ownerDocument;return l.current=null==e?void 0:e.createElement(u),e.body.appendChild(l.current),s({}),function(){l.current&&l.current.ownerDocument&&l.current.ownerDocument.body.removeChild(l.current)}}),[u]),l.current?p(i,l.current):e.createElement("div",{ref:c})};"production"!==process.env.NODE_ENV&&(v.displayName="Portal");process.env.NODE_ENV,g()?e.useLayoutEffect:e.useEffect;var y={},m=function(e){};if("production"!==process.env.NODE_ENV){var h=("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;m=function(e){y[e]||(y[e]=!0,"test"!==h.NODE_ENV&&1!==parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-"+e),10)&&console.warn("@reach/"+e+' styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import "@reach/'+e+'/styles.css";\n\n Otherwise you\'ll need to include them some other way:\n\n <link rel="stylesheet" type="text/css" href="node_modules/@reach/'+e+'/styles.css" />\n\n For more information visit https://ui.reach.tech/styling.\n '))}}function b(e,n){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(n);else try{e.current=n}catch(t){throw new Error('Cannot assign value "'+n+'" to ref "'+e+'"')}}function g(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function w(){}function E(e,n){return function(t){if(e&&e(t),!t.defaultPrevented)return n(t)}}function O(){return(O=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function x(e,n){return e(n={exports:{}},n.exports),n.exports}var N=x((function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case s:case f:case i:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case y:case c:return e;default:return n}}case o:return n}}}function E(e){return w(e)===f}n.typeOf=w,n.AsyncMode=s,n.ConcurrentMode=f,n.ContextConsumer=l,n.ContextProvider=c,n.Element=r,n.ForwardRef=d,n.Fragment=i,n.Lazy=m,n.Memo=y,n.Portal=o,n.Profiler=u,n.StrictMode=a,n.Suspense=p,n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===h||e.$$typeof===b||e.$$typeof===g)},n.isAsyncMode=function(e){return E(e)||w(e)===s},n.isConcurrentMode=E,n.isContextConsumer=function(e){return w(e)===l},n.isContextProvider=function(e){return w(e)===c},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return w(e)===d},n.isFragment=function(e){return w(e)===i},n.isLazy=function(e){return w(e)===m},n.isMemo=function(e){return w(e)===y},n.isPortal=function(e){return w(e)===o},n.isProfiler=function(e){return w(e)===u},n.isStrictMode=function(e){return w(e)===a},n.isSuspense=function(e){return w(e)===p}}));S(N);N.typeOf,N.AsyncMode,N.ConcurrentMode,N.ContextConsumer,N.ContextProvider,N.Element,N.ForwardRef,N.Fragment,N.Lazy,N.Memo,N.Portal,N.Profiler,N.StrictMode,N.Suspense,N.isValidElementType,N.isAsyncMode,N.isConcurrentMode,N.isContextConsumer,N.isContextProvider,N.isElement,N.isForwardRef,N.isFragment,N.isLazy,N.isMemo,N.isPortal,N.isProfiler,N.isStrictMode,N.isSuspense;var P=x((function(e,n){"production"!==process.env.NODE_ENV&&function(){Object.defineProperty(n,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;var g=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return t[o++]}));"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(e){}},w=function(e,n){if(void 0===n)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];g.apply(void 0,[n].concat(r))}};function E(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case t:var p=e.type;switch(p){case l:case s:case o:case a:case i:case d:return p;default:var m=p&&p.$$typeof;switch(m){case c:case f:case y:case v:case u:return m;default:return n}}case r:return n}}}var O=l,S=s,x=c,N=u,P=t,C=f,T=o,j=y,k=v,D=r,M=a,I=i,_=d,A=!1;function F(e){return E(e)===s}n.typeOf=E,n.AsyncMode=O,n.ConcurrentMode=S,n.ContextConsumer=x,n.ContextProvider=N,n.Element=P,n.ForwardRef=C,n.Fragment=T,n.Lazy=j,n.Memo=k,n.Portal=D,n.Profiler=M,n.StrictMode=I,n.Suspense=_,n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===m||e.$$typeof===h||e.$$typeof===b)},n.isAsyncMode=function(e){return A||(A=!0,w(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(e)||E(e)===l},n.isConcurrentMode=F,n.isContextConsumer=function(e){return E(e)===c},n.isContextProvider=function(e){return E(e)===u},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},n.isForwardRef=function(e){return E(e)===f},n.isFragment=function(e){return E(e)===o},n.isLazy=function(e){return E(e)===y},n.isMemo=function(e){return E(e)===v},n.isPortal=function(e){return E(e)===r},n.isProfiler=function(e){return E(e)===a},n.isStrictMode=function(e){return E(e)===i},n.isSuspense=function(e){return E(e)===d}}()}));S(P);P.typeOf,P.AsyncMode,P.ConcurrentMode,P.ContextConsumer,P.ContextProvider,P.Element,P.ForwardRef,P.Fragment,P.Lazy,P.Memo,P.Portal,P.Profiler,P.StrictMode,P.Suspense,P.isValidElementType,P.isAsyncMode,P.isConcurrentMode,P.isContextConsumer,P.isContextProvider,P.isElement,P.isForwardRef,P.isFragment,P.isLazy,P.isMemo,P.isPortal,P.isProfiler,P.isStrictMode,P.isSuspense;var C=x((function(e){"production"===process.env.NODE_ENV?e.exports=N:e.exports=P})),T=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;function D(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var M=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var t,r,o=D(e),i=1;i<arguments.length;i++){for(var a in t=Object(arguments[i]))j.call(t,a)&&(o[a]=t[a]);if(T){r=T(t);for(var u=0;u<r.length;u++)k.call(t,r[u])&&(o[r[u]]=t[r[u]])}}return o},I="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_=function(){};if("production"!==process.env.NODE_ENV){var A=I,F={},R=Function.call.bind(Object.prototype.hasOwnProperty);_=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function $(e,n,t,r,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(R(e,i)){var a;try{if("function"!=typeof e[i]){var u=Error((r||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.");throw u.name="Invariant Violation",u}a=e[i](n,i,r,t,null,A)}catch(e){a=e}if(!a||a instanceof Error||_((r||"React class")+": type specification of "+t+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in F)){F[a.message]=!0;var c=o?o():"";_("Failed "+t+" type: "+a.message+(null!=c?c:""))}}}$.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(F={})};var L=$,V=Function.call.bind(Object.prototype.hasOwnProperty),W=function(){};function B(){return null}"production"!==process.env.NODE_ENV&&(W=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}});var q=function(e,n){var t="function"==typeof Symbol&&Symbol.iterator;var r={array:u("array"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:a(B),arrayOf:function(e){return a((function(n,t,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=n[t];if(!Array.isArray(u))return new i("Invalid "+o+" `"+a+"` of type `"+l(u)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<u.length;c++){var s=e(u,c,r,o,a+"["+c+"]",I);if(s instanceof Error)return s}return null}))},element:a((function(n,t,r,o,a){var u=n[t];return e(u)?null:new i("Invalid "+o+" `"+a+"` of type `"+l(u)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:a((function(e,n,t,r,o){var a=e[n];return C.isValidElementType(a)?null:new i("Invalid "+r+" `"+o+"` of type `"+l(a)+"` supplied to `"+t+"`, expected a single ReactElement type.")})),instanceOf:function(e){return a((function(n,t,r,o,a){if(!(n[t]instanceof e)){var u=e.name||"<<anonymous>>";return new i("Invalid "+o+" `"+a+"` of type `"+function(e){if(!e.constructor||!e.constructor.name)return"<<anonymous>>";return e.constructor.name}(n[t])+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null}))},node:a((function(e,n,t,r,o){return c(e[n])?null:new i("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return a((function(n,t,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=n[t],c=l(u);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in u)if(V(u,s)){var f=e(u,s,r,o,a+"."+s,I);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&(arguments.length>1?W("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):W("Invalid argument supplied to oneOf, expected an array.")),B;function n(n,t,r,a,u){for(var c=n[t],l=0;l<e.length;l++)if(o(c,e[l]))return null;var f=JSON.stringify(e,(function(e,n){return"symbol"===s(n)?String(n):n}));return new i("Invalid "+a+" `"+u+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+f+".")}return a(n)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&W("Invalid argument supplied to oneOfType, expected an instance of array."),B;for(var n=0;n<e.length;n++){var t=e[n];if("function"!=typeof t)return W("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(t)+" at index "+n+"."),B}return a((function(n,t,r,o,a){for(var u=0;u<e.length;u++){if(null==(0,e[u])(n,t,r,o,a,I))return null}return new i("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}))},shape:function(e){return a((function(n,t,r,o,a){var u=n[t],c=l(u);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var f=e[s];if(f){var d=f(u,s,r,o,a+"."+s,I);if(d)return d}}return null}))},exact:function(e){return a((function(n,t,r,o,a){var u=n[t],c=l(u);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=M({},n[t],e);for(var f in s){var d=e[f];if(!d)return new i("Invalid "+o+" `"+a+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(n[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(u,f,r,o,a+"."+f,I);if(p)return p}return null}))}};function o(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function i(e){this.message=e,this.stack=""}function a(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,u,c,l,s,f){if(c=c||"<<anonymous>>",s=s||u,f!==I){if(n){var d=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 d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=c+":"+u;!t[p]&&r<3&&(W("You are manually calling a React.PropTypes validation function for the `"+s+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[p]=!0,r++)}}return null==a[u]?o?null===a[u]?new i("The "+l+" `"+s+"` is marked as required in `"+c+"`, but its value is `null`."):new i("The "+l+" `"+s+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,u,c,l,s)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function u(e){return a((function(n,t,r,o,a,u){var c=n[t];return l(c)!==e?new i("Invalid "+o+" `"+a+"` of type `"+s(c)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function c(n){switch(typeof n){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(c);if(null===n||e(n))return!0;var r=function(e){var n=e&&(t&&e[t]||e["@@iterator"]);if("function"==typeof n)return n}(n);if(!r)return!1;var o,i=r.call(n);if(r!==n.entries){for(;!(o=i.next()).done;)if(!c(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!c(a[1]))return!1}return!0;default:return!1}}function l(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function s(e){if(null==e)return""+e;var n=l(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function f(e){var n=s(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return i.prototype=Error.prototype,r.checkPropTypes=L,r.resetWarningCache=L.resetWarningCache,r.PropTypes=r,r};function Y(){}function z(){}z.resetWarningCache=Y;var U=x((function(e){if("production"!==process.env.NODE_ENV){var n=C;e.exports=q(n.isElement,!0)}else e.exports=function(){function e(e,n,t,r,o,i){if(i!==I){var a=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 a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:z,resetWarningCache:Y};return t.PropTypes=t,t}()})),G=(U.array,U.bool),X=U.func,Z=(U.number,U.object),H=U.string,K=(U.symbol,U.any),J=U.node,Q=(U.element,U.elementType,U.instanceOf,U.oneOf,U.oneOfType),ee=U.arrayOf;U.objectOf,U.shape,U.exact;function ne(e,n){return r=n,o=function(n){return e.forEach((function(e){return function(e,n){return"function"==typeof e?e(n):null!=e&&(e.current=n),e}(e,n)}))},(i=t((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var n=i.value;n!==e&&(i.value=e,i.callback(e,n))}}}}))[0]).callback=o,i.facade;var r,o,i}var te={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},re=function(n){var t=n.children;return e.createElement(e.Fragment,null,e.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:te}),t,t&&e.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:te}))};re.propTypes="production"!==process.env.NODE_ENV?{children:U.node}:{},re.defaultProps={children:null};
import e,{useRef as n,useState as t,useLayoutEffect as r,useMemo as o,createElement as i,useCallback as a,PureComponent as u,forwardRef as c,Fragment as l,cloneElement as s,Children as f,useEffect as d}from"react";import{createPortal as p}from"react-dom";var v=function(o){var i=o.children,a=o.type,u=void 0===a?"reach-portal":a,c=n(null),l=n(null),s=t()[1];return r((function(){var e=c.current.ownerDocument;return l.current=null==e?void 0:e.createElement(u),e.body.appendChild(l.current),s({}),function(){l.current&&l.current.ownerDocument&&l.current.ownerDocument.body.removeChild(l.current)}}),[u]),l.current?p(i,l.current):e.createElement("span",{ref:c})};"production"!==process.env.NODE_ENV&&(v.displayName="Portal");process.env.NODE_ENV,g()?e.useLayoutEffect:e.useEffect;var y={},m=function(e){};if("production"!==process.env.NODE_ENV){var h=("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;m=function(e){y[e]||(y[e]=!0,"test"!==h.NODE_ENV&&1!==parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-"+e),10)&&console.warn("@reach/"+e+' styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import "@reach/'+e+'/styles.css";\n\n Otherwise you\'ll need to include them some other way:\n\n <link rel="stylesheet" type="text/css" href="node_modules/@reach/'+e+'/styles.css" />\n\n For more information visit https://ui.reach.tech/styling.\n '))}}function b(e,n){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(n);else try{e.current=n}catch(t){throw new Error('Cannot assign value "'+n+'" to ref "'+e+'"')}}function g(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function w(){}function E(e,n){return function(t){if(e&&e(t),!t.defaultPrevented)return n(t)}}function O(){return(O=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function x(e,n){return e(n={exports:{}},n.exports),n.exports}var N=x((function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case s:case f:case i:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case y:case c:return e;default:return n}}case o:return n}}}function E(e){return w(e)===f}n.typeOf=w,n.AsyncMode=s,n.ConcurrentMode=f,n.ContextConsumer=l,n.ContextProvider=c,n.Element=r,n.ForwardRef=d,n.Fragment=i,n.Lazy=m,n.Memo=y,n.Portal=o,n.Profiler=u,n.StrictMode=a,n.Suspense=p,n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===h||e.$$typeof===b||e.$$typeof===g)},n.isAsyncMode=function(e){return E(e)||w(e)===s},n.isConcurrentMode=E,n.isContextConsumer=function(e){return w(e)===l},n.isContextProvider=function(e){return w(e)===c},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return w(e)===d},n.isFragment=function(e){return w(e)===i},n.isLazy=function(e){return w(e)===m},n.isMemo=function(e){return w(e)===y},n.isPortal=function(e){return w(e)===o},n.isProfiler=function(e){return w(e)===u},n.isStrictMode=function(e){return w(e)===a},n.isSuspense=function(e){return w(e)===p}}));S(N);N.typeOf,N.AsyncMode,N.ConcurrentMode,N.ContextConsumer,N.ContextProvider,N.Element,N.ForwardRef,N.Fragment,N.Lazy,N.Memo,N.Portal,N.Profiler,N.StrictMode,N.Suspense,N.isValidElementType,N.isAsyncMode,N.isConcurrentMode,N.isContextConsumer,N.isContextProvider,N.isElement,N.isForwardRef,N.isFragment,N.isLazy,N.isMemo,N.isPortal,N.isProfiler,N.isStrictMode,N.isSuspense;var P=x((function(e,n){"production"!==process.env.NODE_ENV&&function(){Object.defineProperty(n,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;var g=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return t[o++]}));"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(e){}},w=function(e,n){if(void 0===n)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];g.apply(void 0,[n].concat(r))}};function E(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case t:var p=e.type;switch(p){case l:case s:case o:case a:case i:case d:return p;default:var m=p&&p.$$typeof;switch(m){case c:case f:case y:case v:case u:return m;default:return n}}case r:return n}}}var O=l,S=s,x=c,N=u,P=t,C=f,T=o,j=y,k=v,D=r,M=a,I=i,_=d,A=!1;function F(e){return E(e)===s}n.typeOf=E,n.AsyncMode=O,n.ConcurrentMode=S,n.ContextConsumer=x,n.ContextProvider=N,n.Element=P,n.ForwardRef=C,n.Fragment=T,n.Lazy=j,n.Memo=k,n.Portal=D,n.Profiler=M,n.StrictMode=I,n.Suspense=_,n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===m||e.$$typeof===h||e.$$typeof===b)},n.isAsyncMode=function(e){return A||(A=!0,w(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(e)||E(e)===l},n.isConcurrentMode=F,n.isContextConsumer=function(e){return E(e)===c},n.isContextProvider=function(e){return E(e)===u},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},n.isForwardRef=function(e){return E(e)===f},n.isFragment=function(e){return E(e)===o},n.isLazy=function(e){return E(e)===y},n.isMemo=function(e){return E(e)===v},n.isPortal=function(e){return E(e)===r},n.isProfiler=function(e){return E(e)===a},n.isStrictMode=function(e){return E(e)===i},n.isSuspense=function(e){return E(e)===d}}()}));S(P);P.typeOf,P.AsyncMode,P.ConcurrentMode,P.ContextConsumer,P.ContextProvider,P.Element,P.ForwardRef,P.Fragment,P.Lazy,P.Memo,P.Portal,P.Profiler,P.StrictMode,P.Suspense,P.isValidElementType,P.isAsyncMode,P.isConcurrentMode,P.isContextConsumer,P.isContextProvider,P.isElement,P.isForwardRef,P.isFragment,P.isLazy,P.isMemo,P.isPortal,P.isProfiler,P.isStrictMode,P.isSuspense;var C=x((function(e){"production"===process.env.NODE_ENV?e.exports=N:e.exports=P})),T=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;function D(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var M=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var t,r,o=D(e),i=1;i<arguments.length;i++){for(var a in t=Object(arguments[i]))j.call(t,a)&&(o[a]=t[a]);if(T){r=T(t);for(var u=0;u<r.length;u++)k.call(t,r[u])&&(o[r[u]]=t[r[u]])}}return o},I="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_=function(){};if("production"!==process.env.NODE_ENV){var A=I,F={},R=Function.call.bind(Object.prototype.hasOwnProperty);_=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function $(e,n,t,r,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(R(e,i)){var a;try{if("function"!=typeof e[i]){var u=Error((r||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.");throw u.name="Invariant Violation",u}a=e[i](n,i,r,t,null,A)}catch(e){a=e}if(!a||a instanceof Error||_((r||"React class")+": type specification of "+t+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in F)){F[a.message]=!0;var c=o?o():"";_("Failed "+t+" type: "+a.message+(null!=c?c:""))}}}$.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(F={})};var L=$,V=Function.call.bind(Object.prototype.hasOwnProperty),W=function(){};function B(){return null}"production"!==process.env.NODE_ENV&&(W=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}});var q=function(e,n){var t="function"==typeof Symbol&&Symbol.iterator;var r={array:u("array"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:a(B),arrayOf:function(e){return a((function(n,t,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=n[t];if(!Array.isArray(u))return new i("Invalid "+o+" `"+a+"` of type `"+l(u)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<u.length;c++){var s=e(u,c,r,o,a+"["+c+"]",I);if(s instanceof Error)return s}return null}))},element:a((function(n,t,r,o,a){var u=n[t];return e(u)?null:new i("Invalid "+o+" `"+a+"` of type `"+l(u)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:a((function(e,n,t,r,o){var a=e[n];return C.isValidElementType(a)?null:new i("Invalid "+r+" `"+o+"` of type `"+l(a)+"` supplied to `"+t+"`, expected a single ReactElement type.")})),instanceOf:function(e){return a((function(n,t,r,o,a){if(!(n[t]instanceof e)){var u=e.name||"<<anonymous>>";return new i("Invalid "+o+" `"+a+"` of type `"+function(e){if(!e.constructor||!e.constructor.name)return"<<anonymous>>";return e.constructor.name}(n[t])+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null}))},node:a((function(e,n,t,r,o){return c(e[n])?null:new i("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return a((function(n,t,r,o,a){if("function"!=typeof e)return new i("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=n[t],c=l(u);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in u)if(V(u,s)){var f=e(u,s,r,o,a+"."+s,I);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&(arguments.length>1?W("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):W("Invalid argument supplied to oneOf, expected an array.")),B;function n(n,t,r,a,u){for(var c=n[t],l=0;l<e.length;l++)if(o(c,e[l]))return null;var f=JSON.stringify(e,(function(e,n){return"symbol"===s(n)?String(n):n}));return new i("Invalid "+a+" `"+u+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+f+".")}return a(n)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&W("Invalid argument supplied to oneOfType, expected an instance of array."),B;for(var n=0;n<e.length;n++){var t=e[n];if("function"!=typeof t)return W("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(t)+" at index "+n+"."),B}return a((function(n,t,r,o,a){for(var u=0;u<e.length;u++){if(null==(0,e[u])(n,t,r,o,a,I))return null}return new i("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")}))},shape:function(e){return a((function(n,t,r,o,a){var u=n[t],c=l(u);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var f=e[s];if(f){var d=f(u,s,r,o,a+"."+s,I);if(d)return d}}return null}))},exact:function(e){return a((function(n,t,r,o,a){var u=n[t],c=l(u);if("object"!==c)return new i("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=M({},n[t],e);for(var f in s){var d=e[f];if(!d)return new i("Invalid "+o+" `"+a+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(n[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(u,f,r,o,a+"."+f,I);if(p)return p}return null}))}};function o(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function i(e){this.message=e,this.stack=""}function a(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,u,c,l,s,f){if(c=c||"<<anonymous>>",s=s||u,f!==I){if(n){var d=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 d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=c+":"+u;!t[p]&&r<3&&(W("You are manually calling a React.PropTypes validation function for the `"+s+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[p]=!0,r++)}}return null==a[u]?o?null===a[u]?new i("The "+l+" `"+s+"` is marked as required in `"+c+"`, but its value is `null`."):new i("The "+l+" `"+s+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,u,c,l,s)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function u(e){return a((function(n,t,r,o,a,u){var c=n[t];return l(c)!==e?new i("Invalid "+o+" `"+a+"` of type `"+s(c)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function c(n){switch(typeof n){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(c);if(null===n||e(n))return!0;var r=function(e){var n=e&&(t&&e[t]||e["@@iterator"]);if("function"==typeof n)return n}(n);if(!r)return!1;var o,i=r.call(n);if(r!==n.entries){for(;!(o=i.next()).done;)if(!c(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!c(a[1]))return!1}return!0;default:return!1}}function l(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function s(e){if(null==e)return""+e;var n=l(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function f(e){var n=s(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return i.prototype=Error.prototype,r.checkPropTypes=L,r.resetWarningCache=L.resetWarningCache,r.PropTypes=r,r};function Y(){}function z(){}z.resetWarningCache=Y;var U=x((function(e){if("production"!==process.env.NODE_ENV){var n=C;e.exports=q(n.isElement,!0)}else e.exports=function(){function e(e,n,t,r,o,i){if(i!==I){var a=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 a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:z,resetWarningCache:Y};return t.PropTypes=t,t}()})),G=(U.array,U.bool),X=U.func,Z=(U.number,U.object),H=U.string,K=(U.symbol,U.any),J=U.node,Q=(U.element,U.elementType,U.instanceOf,U.oneOf,U.oneOfType),ee=U.arrayOf;U.objectOf,U.shape,U.exact;function ne(e,n){return r=n,o=function(n){return e.forEach((function(e){return function(e,n){return"function"==typeof e?e(n):null!=e&&(e.current=n),e}(e,n)}))},(i=t((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var n=i.value;n!==e&&(i.value=e,i.callback(e,n))}}}}))[0]).callback=o,i.facade;var r,o,i}var te={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},re=function(n){var t=n.children;return e.createElement(e.Fragment,null,e.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:te}),t,t&&e.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:te}))};re.propTypes="production"!==process.env.NODE_ENV?{children:U.node}:{},re.defaultProps={children:null};
/*! *****************************************************************************

@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation. All rights reserved.

***************************************************************************** */
var oe=function(){return(oe=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function ie(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function ae(e){return e}function ue(e,n){void 0===n&&(n=ae);var t=[],r=!1;return{read:function(){if(r)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(e){var o=n(e,r);return t.push(o),function(){t=t.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var i=function(){var t=n;n=[],t.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),t={push:function(e){n.push(e),a()},filter:function(e){return n=n.filter(e),t}}}}}function ce(e,n){return void 0===n&&(n=ae),ue(e,n)}function le(e){void 0===e&&(e={});var n=ue(null);return n.options=oe({async:!0,ssr:!1},e),n}var se=function(e){var n=e.sideCar,t=ie(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return i(r,oe({},t))};se.isSideCarExport=!0;var fe=ce({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),de=ce(),pe=ce(),ve=le({async:!0}),ye=[],me=e.forwardRef((function(r,o){var i,u=t(),c=u[0],l=u[1],s=n(),f=n(!1),d=n(null),p=r.children,v=r.disabled,y=r.noFocusGuards,m=r.persistentFocus,h=r.autoFocus,b=r.allowTextSelection,g=r.group,w=r.className,E=r.whiteList,S=r.shards,x=void 0===S?ye:S,N=r.as,P=void 0===N?"div":N,C=r.lockProps,T=void 0===C?{}:C,j=r.sideCar,k=r.returnFocus,D=r.onActivation,M=r.onDeactivation,I=t({})[0],_=a((function(){d.current=d.current||document&&document.activeElement,s.current&&D&&D(s.current),f.current=!0}),[D]),A=a((function(){f.current=!1,M&&M(s.current)}),[M]),F=a((function(e){var n=d.current;if(Boolean(k)&&n&&n.focus){var t="object"==typeof k?k:void 0;d.current=null,e?Promise.resolve().then((function(){return n.focus(t)})):n.focus(t)}}),[k]),R=a((function(e){f.current&&fe.useMedium(e)}),[]),$=de.useMedium,L=a((function(e){s.current!==e&&(s.current=e,l(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==b&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),e.useEffect((function(){s.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var V=O(((i={})["data-focus-lock-disabled"]=v&&"disabled",i["data-focus-lock"]=g,i),T),W=!0!==y,B=W&&"tail"!==y,q=ne([o,L]);return e.createElement(e.Fragment,null,W&&[e.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:te}),e.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:te})],!v&&e.createElement(j,{id:I,sideCar:ve,observed:c,disabled:v,persistentFocus:m,autoFocus:h,whiteList:E,shards:x,onActivation:_,onDeactivation:A,returnFocus:F}),e.createElement(P,O({ref:q},V,{className:w,onBlur:$,onFocus:R}),p),B&&e.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:te}))}));me.propTypes="production"!==process.env.NODE_ENV?{children:J,disabled:G,returnFocus:Q([G,Z]),noFocusGuards:G,allowTextSelection:G,autoFocus:G,persistentFocus:G,group:H,className:H,whiteList:X,shards:ee(K),as:Q([H,X,Z]),lockProps:Z,onActivation:X,onDeactivation:X,sideCar:K.isRequired}:{},me.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,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 he=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},be=function(e){return Array.isArray(e)?e:[e]},ge=function(e,n){var t=e.tabIndex-n.tabIndex,r=e.index-n.index;if(t){if(!e.tabIndex)return 1;if(!n.tabIndex)return-1}return t||r},we=function(e,n,t){return he(e).map((function(e,n){return{node:e,index:n,tabIndex:t&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!n||e.tabIndex>=0})).sort(ge)},Ee=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],Oe=Ee.join(","),Se=Oe+", [data-focus-guard]",xe=function(e,n){return e.reduce((function(e,t){return e.concat(he(t.querySelectorAll(n?Se:Oe)),t.parentNode?he(t.parentNode.querySelectorAll(Ee.join(","))).filter((function(e){return e===t})):[])}),[])},Ne=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(n),n.parentNode&&e(n.parentNode,t),t},Pe=function(e,n){for(var t=Ne(e),r=Ne(n),o=0;o<t.length;o+=1){var i=t[o];if(r.indexOf(i)>=0)return i}return!1},Ce=function(e){return he(e).filter((function(e){return function e(n){return!n||n===document||n.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(n,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&e(n.parentNode);var t}(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},Te=function(e,n){return we(Ce(xe(e,n)),!0,n)},je=function(e){return Ce((n=e.querySelectorAll("[data-autofocus-inside]"),he(n).map((function(e){return xe([e])})).reduce((function(e,n){return e.concat(n)}),[])));var n},ke=function(e){return"INPUT"===e.tagName&&"radio"===e.type},De=function(e){return e[0]&&e.length>1&&ke(e[0])&&e[0].name?function(e,n){return n.filter(ke).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e[0],e):e[0]},Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie=function(e){return be(e).filter(Boolean).reduce((function(e,n){var t=n.getAttribute("data-focus-lock");return e.push.apply(e,t?function e(n){for(var t=n.length,r=0;r<t;r+=1)for(var o=function(t){if(r!==t&&n[r].contains(n[t]))return{v:e(n.filter((function(e){return e!==n[t]})))}},i=0;i<t;i+=1){var a=o(i);if("object"===(void 0===a?"undefined":Me(a)))return a.v}return n}(he(function e(n){return n.parentNode?e(n.parentNode):n}(n).querySelectorAll('[data-focus-lock="'+t+'"]:not([data-focus-lock-disabled="disabled"])'))):[n]),e}),[])},_e=function(e){return e.dataset&&e.dataset.focusGuard},Ae=function(e){return!_e(e)},Fe=function(e,n,t){var r=be(e),o=be(n),i=r[0],a=null;return o.filter(Boolean).forEach((function(e){a=Pe(a||e,e)||a,t.filter(Boolean).forEach((function(e){var n=Pe(i,e);n&&(a=!a||n.contains(a)?n:Pe(n,a))}))})),a},Re=function(e,n){var t=document&&document.activeElement,r=Ie(e).filter(Ae),o=Fe(t||e,e,r),i=Te(r).filter((function(e){var n=e.node;return Ae(n)}));if(i[0]||(i=(a=r,we(Ce(xe(a)),!1)).filter((function(e){var n=e.node;return Ae(n)})))[0]){var a,u,c,l,s,f=Te([o]).map((function(e){return e.node})),d=(u=f,c=i,l=new Map,c.forEach((function(e){return l.set(e.node,e)})),u.map((function(e){return l.get(e)})).filter(Boolean)),p=d.map((function(e){return e.node})),v=function(e,n,t,r,o){var i=e.length,a=e[0],u=e[i-1];if(!(e.indexOf(t)>=0)){var c=n.indexOf(t),l=n.indexOf(r||c),s=e.indexOf(r),f=c-l,d=n.indexOf(a),p=n.indexOf(u);return-1===c||-1===s?e.indexOf(o.length?De(o):De(e)):!f&&s>=0?s:c<=d&&_e(t)&&Math.abs(f)>1?0:f&&Math.abs(f)>1?s:c<=d?i-1:c>p?0:f?Math.abs(f)>1?s:(i+s+f)%i:void 0}}(p,f,t,n,p.filter((s=function(e){return e.reduce((function(e,n){return e.concat(je(n))}),[])}(r),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||s.indexOf(e)>=0})));return void 0===v?v:d[v]}},$e=function(e){return e===document.activeElement},Le=function(e){var n=document&&document.activeElement;return!(!n||n.dataset&&n.dataset.focusGuard)&&Ie(e).reduce((function(e,t){return e||t.contains(n)||function(e){return n=he(e.querySelectorAll("iframe")),t=$e,!!n.filter((function(e){return e===t}))[0];var n,t}(t)}),!1)},Ve=0,We=!1,Be=function(e,n){var t,r=Re(e,n);if(!We&&r){if(Ve>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),We=!0,void setTimeout((function(){We=!1}),1);Ve++,(t=r.node).focus(),t.contentWindow&&t.contentWindow.focus(),Ve--}};function qe(e){var n=window.setImmediate;void 0!==n?n(e):setTimeout(e,1)}var Ye=function(){return document&&document.activeElement===document.body||document&&he(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},ze=null,Ue=null,Ge=null,Xe=!1,Ze=function(){return!0};function He(e,n,t,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=t)!==n);o&&(o.node.tabIndex=0)}var Ke=function(e){return e&&"current"in e?e.current:e},Je=function(){var e,n,t,r,o,i,a=!1;if(ze){var u=ze,c=u.observed,l=u.persistentFocus,s=u.autoFocus,f=u.shards,d=c||Ge&&Ge.portaledElement,p=document&&document.activeElement;if(d){var v=[d].concat(f.map(Ke).filter(Boolean));if(p&&!function(e){return(ze.whiteList||Ze)(e)}(p)||(l||Xe||!Ye()||!Ue&&s)&&(!d||Le(v)||(i=p,Ge&&Ge.portaledElement===i)||(document&&!Ue&&p&&!s?(p.blur(),document.body.focus()):(a=Be(v,Ue),Ge={})),Xe=!1,Ue=document&&document.activeElement),document){var y=document&&document.activeElement,m=(n=Ie(e=v).filter(Ae),t=Fe(e,e,n),r=Te([t],!0),o=Te(n).filter((function(e){var n=e.node;return Ae(n)})).map((function(e){return e.node})),r.map((function(e){var n=e.node;return{node:n,index:e.index,lockItem:o.indexOf(n)>=0,guard:_e(n)}}))),h=m.find((function(e){return e.node===y}));if(h){m.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")}));var b=m.indexOf(h);He(b,m.length,1,m),He(b,-1,-1,m)}}}}return a},Qe=function(e){Je()&&e&&(e.stopPropagation(),e.preventDefault())},en=function(){return qe(Je)},nn=function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(Ge={observerNode:t,portaledElement:n})};"production"!==process.env.NODE_ENV&&U.node.isRequired;var tn=function(){Xe=!0};fe.assignSyncMedium(nn),de.assignMedium(en),pe.assignMedium((function(e){return e({moveFocusInside:Be,focusInside:Le})}));var rn=function(n,t){if("production"!==process.env.NODE_ENV){if("function"!=typeof n)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(r){if("production"!==process.env.NODE_ENV&&"function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function a(){o=n(i.map((function(e){return e.props}))),t(o)}var c,l,s,f=function(n){var t,u;function c(){return n.apply(this,arguments)||this}u=n,(t=c).prototype=Object.create(u.prototype),t.prototype.constructor=t,t.__proto__=u,c.peek=function(){return o};var l=c.prototype;return l.componentDidMount=function(){i.push(this),a()},l.componentDidUpdate=function(){a()},l.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},l.render=function(){return e.createElement(r,this.props)},c}(u);return c=f,l="displayName",s="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",l in c?Object.defineProperty(c,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):c[l]=s,f}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!ze&&(document.addEventListener("focusin",Qe,!0),document.addEventListener("focusout",en),window.addEventListener("blur",tn));var t=ze,r=t&&n&&n.id===t.id;ze=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(Ue=null,r&&t.observed===n.observed||n.onActivation(),Je(),qe(Je)):(document.removeEventListener("focusin",Qe,!0),document.removeEventListener("focusout",en),window.removeEventListener("blur",tn),Ue=null)}))((function(){return null})),on=e.forwardRef((function(n,t){return e.createElement(me,O({sideCar:rn,ref:t},n))})),an=me.propTypes||{},un=(an.sideCar,function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(an,["sideCar"]));on.propTypes=un;var cn=le(),ln=function(){},sn=c((function(e,r){var o=n(null),a=t({onScrollCapture:ln,onWheelCapture:ln,onTouchMoveCapture:ln}),u=a[0],c=a[1],d=e.forwardProps,p=e.children,v=e.className,y=e.removeScrollBar,m=e.enabled,h=e.shards,b=e.sideCar,g=e.noIsolation,w=e.inert,E=e.allowPinchZoom,O=ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom"]),S=b,x=oe({ref:ne([o,r])},O,u);return i(l,null,m&&i(S,{sideCar:cn,removeScrollBar:y,shards:h,noIsolation:g,inert:w,setCallbacks:c,allowPinchZoom:!!E,lockRef:o}),d?s(f.only(p),x):i("div",oe({},x,{className:v}),p))}));sn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},sn.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};var fn=function(){var e=0,n=null;return{add:function(t){var r,o;0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");return e.type="text/css",e}())&&(o=t,(r=n).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),e++},remove:function(){!--e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},dn=function(){var e,n=(e=fn(),function(n){d((function(){return e.add(n),function(){e.remove()}}),[])});return function(e){var t=e.styles;return n(t),null}},pn={left:0,top:0,right:0,gap:0},vn=function(e){return parseInt(e||"",10)||0},yn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pn;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[vn(t),vn(r),vn(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},mn=dn(),hn=function(e,n,t,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===t&&(t="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+u+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[n&&"position: relative "+r+";","margin"===t&&"\n padding-left: "+o+"px;\n padding-top: "+i+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+u+"px "+r+";\n ","padding"===t&&"padding-right: "+u+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n .right-scroll-bar-position {\n right: "+u+"px "+r+";\n }\n \n .width-before-scroll-bar {\n margin-right: "+u+"px "+r+";\n }\n \n .right-scroll-bar-position .right-scroll-bar-position {\n right: 0 "+r+";\n }\n \n .width-before-scroll-bar .width-before-scroll-bar {\n margin-right: 0 "+r+";\n }\n"},bn=function(e){var n=t(yn(e.gapMode)),r=n[0],o=n[1];d((function(){o(yn(e.gapMode))}),[e.gapMode]);var a=e.noRelative,u=e.noImportant,c=e.gapMode;return i(mn,{styles:hn(r,!a,void 0===c?"margin":c,u?"":"!important")})},gn=function(e,n){var t=n;do{if(wn(e,t)){var r=En(e,t);if(r[1]>r[2])return!0}t=t.parentNode}while(t&&t!==document.body);return!1},wn=function(e,n){return"v"===e?function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowY&&!(n.overflowY===n.overflowX&&"visible"===n.overflowY)}(n):function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowX&&!(n.overflowY===n.overflowX&&"visible"===n.overflowX)}(n)},En=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},On=!1;if("undefined"!=typeof window)try{var Sn=Object.defineProperty({},"passive",{get:function(){return On=!0,!0}});window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch(e){On=!1}var xn=!!On&&{passive:!1},Nn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pn=function(e){return[e.deltaX,e.deltaY]},Cn=function(e){return e&&"current"in e?e.current:e},Tn=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},jn=0,kn=[];var Dn,Mn=(Dn=function(e){var r=n([]),o=n([0,0]),u=n(),c=t(jn++)[0],s=t((function(){return dn()}))[0],f=n(e);d((function(){f.current=e}),[e]),d((function(){if(e.inert){document.body.classList.add("block-interactivity-"+c);var n=[e.lockRef.current].concat((e.shards||[]).map(Cn)).filter(Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-"+c)})),function(){document.body.classList.remove("block-interactivity-"+c),n.forEach((function(e){return e.classList.remove("allow-interactivity-"+c)}))}}}),[e.inert,e.lockRef.current,e.shards]);var p=a((function(e,n){if("touches"in e&&2===e.touches.length)return!f.current.allowPinchZoom;var t,r=Nn(e),i=o.current,a="deltaX"in e?e.deltaX:i[0]-r[0],c="deltaY"in e?e.deltaY:i[1]-r[1],l=e.target,s=Math.abs(a)>Math.abs(c)?"h":"v",d=gn(s,l);if(!d)return!0;if(d?t=s:(t="v"===s?"h":"v",d=gn(s,l)),!d)return!1;if(!u.current&&"changedTouches"in e&&(a||c)&&(u.current=t),!t)return!0;var p=u.current||t;return function(e,n,t,r,o){var i=r,a=t.target,u=n.contains(a),c=!1,l=i>0,s=0,f=0;do{var d=En(e,a),p=d[0],v=d[1]-d[2]-p;(p||v)&&wn(e,a)&&(s+=v,f+=p),a=a.parentNode}while(!u&&a!==document.body||u&&(n.contains(a)||n===a));return l&&(o&&0===s||!o&&i>s)?c=!0:!l&&(o&&0===f||!o&&-i>f)&&(c=!0),c}(p,n,e,"h"==p?a:c,!0)}),[]),v=a((function(e){var n=e;if(kn.length&&kn[kn.length-1]===s){var t="deltaY"in n?Pn(n):Nn(n),o=r.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(r=e.delta,o=t,r[0]===o[0]&&r[1]===o[1]);var r,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var i=(f.current.shards||[]).map(Cn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?p(n,i[0]):!f.current.noIsolation)&&n.preventDefault()}}}),[]),y=a((function(e,n,t,o){var i={name:e,delta:n,target:t,should:o};r.current.push(i),setTimeout((function(){r.current=r.current.filter((function(e){return e!==i}))}),1)}),[]),m=a((function(e){o.current=Nn(e),u.current=void 0}),[]),h=a((function(n){y(n.type,Pn(n),n.target,p(n,e.lockRef.current))}),[]),b=a((function(n){y(n.type,Nn(n),n.target,p(n,e.lockRef.current))}),[]);d((function(){return kn.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:b}),document.addEventListener("wheel",v,xn),document.addEventListener("touchmove",v,xn),document.addEventListener("touchstart",m,xn),function(){kn=kn.filter((function(e){return e!==s})),document.removeEventListener("wheel",v,xn),document.removeEventListener("touchmove",v,xn),document.removeEventListener("touchstart",m,xn)}}),[]);var g=e.removeScrollBar,w=e.inert;return i(l,null,w?i(s,{styles:Tn(c)}):null,g?i(bn,{gapMode:"margin"}):null)},cn.useMedium(Dn),se),In=c((function(e,n){return i(sn,oe({},e,{ref:n,sideCar:Mn}))}));function _n(){return(_n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function An(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}In.classNames=sn.classNames;var Fn={initialFocusRef:function(){return null},allowPinchZoom:U.bool,onDismiss:U.func},Rn=c((function(n,t){var r=n.isOpen,o=void 0===r||r,i=An(n,["isOpen"]);return d((function(){return m("dialog")}),[]),o?e.createElement(v,{"data-reach-dialog-wrapper":""},e.createElement($n,Object.assign({ref:t},i))):null}));"production"!==process.env.NODE_ENV&&(Rn.displayName="DialogOverlay",Rn.propTypes=_n({},Fn,{isOpen:U.bool}));var $n=c((function(t,r){var i=t.allowPinchZoom,u=t.initialFocusRef,c=t.onClick,l=t.onDismiss,s=void 0===l?w:l,f=t.onMouseDown,p=t.onKeyDown,v=An(t,["allowPinchZoom","initialFocusRef","onClick","onDismiss","onMouseDown","onKeyDown"]),y=n(null),m=n(null),h=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return o((function(){return n.every((function(e){return null==e}))?null:function(e){n.forEach((function(n){b(n,e)}))}}),n)}(m,r),O=a((function(){u&&u.current&&u.current.focus()}),[u]);return d((function(){return m.current?function(e){var n=[],t=[],r=(o=e,(o&&o.ownerDocument?o.ownerDocument:g()?document:null)||document);var o;if(!e)return"production"!==process.env.NODE_ENV&&console.warn("A ref has not yet been attached to a dialog node when attempting to call `createAriaHider`."),w;return Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var o,i;if(r!==(null===(o=e.parentNode)||void 0===o?void 0:null===(i=o.parentNode)||void 0===i?void 0:i.parentNode)){var a=r.getAttribute("aria-hidden");null!==a&&"false"!==a||(n.push(a),t.push(r),r.setAttribute("aria-hidden","true"))}})),function(){t.forEach((function(e,t){var r=n[t];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}}(m.current):void 0}),[]),e.createElement(on,{autoFocus:!0,returnFocus:!0,onActivation:O},e.createElement(In,{allowPinchZoom:i},e.createElement("div",Object.assign({},v,{ref:h,"data-reach-dialog-overlay":"",onClick:E(c,(function(e){y.current===e.target&&(e.stopPropagation(),s(e))})),onKeyDown:E(p,(function(e){"Escape"===e.key&&(e.stopPropagation(),s(e))})),onMouseDown:E(f,(function(e){y.current=e.target}))}))))}));"production"!==process.env.NODE_ENV&&(Rn.displayName="DialogOverlay",Rn.propTypes=_n({},Fn));var Ln=c((function(n,t){var r=n.onClick,o=An(n,["onClick","onKeyDown"]);return e.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},o,{ref:t,"data-reach-dialog-content":"",onClick:E(r,(function(e){e.stopPropagation()}))}))}));"production"!==process.env.NODE_ENV&&(Ln.displayName="DialogContent",Ln.propTypes={"aria-label":Wn,"aria-labelledby":Wn});var Vn=c((function(n,t){var r=n.isOpen,o=n.onDismiss,i=void 0===o?w:o,a=n.initialFocusRef,u=An(n,["isOpen","onDismiss","initialFocusRef"]);return e.createElement(Rn,{initialFocusRef:a,isOpen:r,onDismiss:i},e.createElement(Ln,Object.assign({ref:t},u)))}));function Wn(e,n,t,r,o){var i="\nSee https://www.w3.org/TR/wai-aria/#aria-label for details.";return e["aria-label"]||e["aria-labelledby"]?e["aria-label"]&&e["aria-labelledby"]?new Error("You provided both `aria-label` and `aria-labelledby` props to a <"+t+">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <"+t+">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag."+i):null!=e[n]&&"string"!=typeof e[n]?new Error("Invalid prop `"+n+"` supplied to `"+t+"`. Expected `string`, received `"+(Array.isArray(o)?"array":typeof o)+"`."):null:new Error("A <"+t+"> must have either an `aria-label` or `aria-labelledby` prop.\n "+i)}"production"!==process.env.NODE_ENV&&(Vn.displayName="Dialog",Vn.propTypes={isOpen:U.bool,onDismiss:U.func,"aria-label":Wn,"aria-labelledby":Wn});export{Ln as ModalDialogPrimitiveContent,Rn as ModalDialogPrimitiveOverlay};
var oe=function(){return(oe=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function ie(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function ae(e){return e}function ue(e,n){void 0===n&&(n=ae);var t=[],r=!1;return{read:function(){if(r)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(e){var o=n(e,r);return t.push(o),function(){t=t.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var i=function(){var t=n;n=[],t.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),t={push:function(e){n.push(e),a()},filter:function(e){return n=n.filter(e),t}}}}}function ce(e,n){return void 0===n&&(n=ae),ue(e,n)}function le(e){void 0===e&&(e={});var n=ue(null);return n.options=oe({async:!0,ssr:!1},e),n}var se=function(e){var n=e.sideCar,t=ie(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return i(r,oe({},t))};se.isSideCarExport=!0;var fe=ce({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),de=ce(),pe=ce(),ve=le({async:!0}),ye=[],me=e.forwardRef((function(r,o){var i,u=t(),c=u[0],l=u[1],s=n(),f=n(!1),d=n(null),p=r.children,v=r.disabled,y=r.noFocusGuards,m=r.persistentFocus,h=r.autoFocus,b=r.allowTextSelection,g=r.group,w=r.className,E=r.whiteList,S=r.shards,x=void 0===S?ye:S,N=r.as,P=void 0===N?"div":N,C=r.lockProps,T=void 0===C?{}:C,j=r.sideCar,k=r.returnFocus,D=r.onActivation,M=r.onDeactivation,I=t({})[0],_=a((function(){d.current=d.current||document&&document.activeElement,s.current&&D&&D(s.current),f.current=!0}),[D]),A=a((function(){f.current=!1,M&&M(s.current)}),[M]),F=a((function(e){var n=d.current;if(Boolean(k)&&n&&n.focus){var t="object"==typeof k?k:void 0;d.current=null,e?Promise.resolve().then((function(){return n.focus(t)})):n.focus(t)}}),[k]),R=a((function(e){f.current&&fe.useMedium(e)}),[]),$=de.useMedium,L=a((function(e){s.current!==e&&(s.current=e,l(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==b&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),e.useEffect((function(){s.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var V=O(((i={})["data-focus-lock-disabled"]=v&&"disabled",i["data-focus-lock"]=g,i),T),W=!0!==y,B=W&&"tail"!==y,q=ne([o,L]);return e.createElement(e.Fragment,null,W&&[e.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:te}),e.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:te})],!v&&e.createElement(j,{id:I,sideCar:ve,observed:c,disabled:v,persistentFocus:m,autoFocus:h,whiteList:E,shards:x,onActivation:_,onDeactivation:A,returnFocus:F}),e.createElement(P,O({ref:q},V,{className:w,onBlur:$,onFocus:R}),p),B&&e.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:te}))}));me.propTypes="production"!==process.env.NODE_ENV?{children:J,disabled:G,returnFocus:Q([G,Z]),noFocusGuards:G,allowTextSelection:G,autoFocus:G,persistentFocus:G,group:H,className:H,whiteList:X,shards:ee(K),as:Q([H,X,Z]),lockProps:Z,onActivation:X,onDeactivation:X,sideCar:K.isRequired}:{},me.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,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 he=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},be=function(e){return Array.isArray(e)?e:[e]},ge=function(e,n){var t=e.tabIndex-n.tabIndex,r=e.index-n.index;if(t){if(!e.tabIndex)return 1;if(!n.tabIndex)return-1}return t||r},we=function(e,n,t){return he(e).map((function(e,n){return{node:e,index:n,tabIndex:t&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!n||e.tabIndex>=0})).sort(ge)},Ee=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],Oe=Ee.join(","),Se=Oe+", [data-focus-guard]",xe=function(e,n){return e.reduce((function(e,t){return e.concat(he(t.querySelectorAll(n?Se:Oe)),t.parentNode?he(t.parentNode.querySelectorAll(Ee.join(","))).filter((function(e){return e===t})):[])}),[])},Ne=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(n),n.parentNode&&e(n.parentNode,t),t},Pe=function(e,n){for(var t=Ne(e),r=Ne(n),o=0;o<t.length;o+=1){var i=t[o];if(r.indexOf(i)>=0)return i}return!1},Ce=function(e){return he(e).filter((function(e){return function e(n){return!n||n===document||n.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(n,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&e(n.parentNode);var t}(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},Te=function(e,n){return we(Ce(xe(e,n)),!0,n)},je=function(e){return Ce((n=e.querySelectorAll("[data-autofocus-inside]"),he(n).map((function(e){return xe([e])})).reduce((function(e,n){return e.concat(n)}),[])));var n},ke=function(e){return"INPUT"===e.tagName&&"radio"===e.type},De=function(e){return e[0]&&e.length>1&&ke(e[0])&&e[0].name?function(e,n){return n.filter(ke).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e[0],e):e[0]},Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie=function(e){return be(e).filter(Boolean).reduce((function(e,n){var t=n.getAttribute("data-focus-lock");return e.push.apply(e,t?function e(n){for(var t=n.length,r=0;r<t;r+=1)for(var o=function(t){if(r!==t&&n[r].contains(n[t]))return{v:e(n.filter((function(e){return e!==n[t]})))}},i=0;i<t;i+=1){var a=o(i);if("object"===(void 0===a?"undefined":Me(a)))return a.v}return n}(he(function e(n){return n.parentNode?e(n.parentNode):n}(n).querySelectorAll('[data-focus-lock="'+t+'"]:not([data-focus-lock-disabled="disabled"])'))):[n]),e}),[])},_e=function(e){return e.dataset&&e.dataset.focusGuard},Ae=function(e){return!_e(e)},Fe=function(e,n,t){var r=be(e),o=be(n),i=r[0],a=null;return o.filter(Boolean).forEach((function(e){a=Pe(a||e,e)||a,t.filter(Boolean).forEach((function(e){var n=Pe(i,e);n&&(a=!a||n.contains(a)?n:Pe(n,a))}))})),a},Re=function(e,n){var t=document&&document.activeElement,r=Ie(e).filter(Ae),o=Fe(t||e,e,r),i=Te(r).filter((function(e){var n=e.node;return Ae(n)}));if(i[0]||(i=(a=r,we(Ce(xe(a)),!1)).filter((function(e){var n=e.node;return Ae(n)})))[0]){var a,u,c,l,s,f=Te([o]).map((function(e){return e.node})),d=(u=f,c=i,l=new Map,c.forEach((function(e){return l.set(e.node,e)})),u.map((function(e){return l.get(e)})).filter(Boolean)),p=d.map((function(e){return e.node})),v=function(e,n,t,r,o){var i=e.length,a=e[0],u=e[i-1];if(!(e.indexOf(t)>=0)){var c=n.indexOf(t),l=n.indexOf(r||c),s=e.indexOf(r),f=c-l,d=n.indexOf(a),p=n.indexOf(u);return-1===c||-1===s?e.indexOf(o.length?De(o):De(e)):!f&&s>=0?s:c<=d&&_e(t)&&Math.abs(f)>1?0:f&&Math.abs(f)>1?s:c<=d?i-1:c>p?0:f?Math.abs(f)>1?s:(i+s+f)%i:void 0}}(p,f,t,n,p.filter((s=function(e){return e.reduce((function(e,n){return e.concat(je(n))}),[])}(r),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||s.indexOf(e)>=0})));return void 0===v?v:d[v]}},$e=function(e){return e===document.activeElement},Le=function(e){var n=document&&document.activeElement;return!(!n||n.dataset&&n.dataset.focusGuard)&&Ie(e).reduce((function(e,t){return e||t.contains(n)||function(e){return n=he(e.querySelectorAll("iframe")),t=$e,!!n.filter((function(e){return e===t}))[0];var n,t}(t)}),!1)},Ve=0,We=!1,Be=function(e,n){var t,r=Re(e,n);if(!We&&r){if(Ve>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),We=!0,void setTimeout((function(){We=!1}),1);Ve++,(t=r.node).focus(),t.contentWindow&&t.contentWindow.focus(),Ve--}};function qe(e){var n=window.setImmediate;void 0!==n?n(e):setTimeout(e,1)}var Ye=function(){return document&&document.activeElement===document.body||document&&he(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},ze=null,Ue=null,Ge=null,Xe=!1,Ze=function(){return!0};function He(e,n,t,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=t)!==n);o&&(o.node.tabIndex=0)}var Ke=function(e){return e&&"current"in e?e.current:e},Je=function(){var e,n,t,r,o,i,a=!1;if(ze){var u=ze,c=u.observed,l=u.persistentFocus,s=u.autoFocus,f=u.shards,d=c||Ge&&Ge.portaledElement,p=document&&document.activeElement;if(d){var v=[d].concat(f.map(Ke).filter(Boolean));if(p&&!function(e){return(ze.whiteList||Ze)(e)}(p)||(l||Xe||!Ye()||!Ue&&s)&&(!d||Le(v)||(i=p,Ge&&Ge.portaledElement===i)||(document&&!Ue&&p&&!s?(p.blur(),document.body.focus()):(a=Be(v,Ue),Ge={})),Xe=!1,Ue=document&&document.activeElement),document){var y=document&&document.activeElement,m=(n=Ie(e=v).filter(Ae),t=Fe(e,e,n),r=Te([t],!0),o=Te(n).filter((function(e){var n=e.node;return Ae(n)})).map((function(e){return e.node})),r.map((function(e){var n=e.node;return{node:n,index:e.index,lockItem:o.indexOf(n)>=0,guard:_e(n)}}))),h=m.find((function(e){return e.node===y}));if(h){m.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")}));var b=m.indexOf(h);He(b,m.length,1,m),He(b,-1,-1,m)}}}}return a},Qe=function(e){Je()&&e&&(e.stopPropagation(),e.preventDefault())},en=function(){return qe(Je)},nn=function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(Ge={observerNode:t,portaledElement:n})};"production"!==process.env.NODE_ENV&&U.node.isRequired;var tn=function(){Xe=!0};fe.assignSyncMedium(nn),de.assignMedium(en),pe.assignMedium((function(e){return e({moveFocusInside:Be,focusInside:Le})}));var rn=function(n,t){if("production"!==process.env.NODE_ENV){if("function"!=typeof n)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(r){if("production"!==process.env.NODE_ENV&&"function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function a(){o=n(i.map((function(e){return e.props}))),t(o)}var c,l,s,f=function(n){var t,u;function c(){return n.apply(this,arguments)||this}u=n,(t=c).prototype=Object.create(u.prototype),t.prototype.constructor=t,t.__proto__=u,c.peek=function(){return o};var l=c.prototype;return l.componentDidMount=function(){i.push(this),a()},l.componentDidUpdate=function(){a()},l.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},l.render=function(){return e.createElement(r,this.props)},c}(u);return c=f,l="displayName",s="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",l in c?Object.defineProperty(c,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):c[l]=s,f}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!ze&&(document.addEventListener("focusin",Qe,!0),document.addEventListener("focusout",en),window.addEventListener("blur",tn));var t=ze,r=t&&n&&n.id===t.id;ze=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(Ue=null,r&&t.observed===n.observed||n.onActivation(),Je(),qe(Je)):(document.removeEventListener("focusin",Qe,!0),document.removeEventListener("focusout",en),window.removeEventListener("blur",tn),Ue=null)}))((function(){return null})),on=e.forwardRef((function(n,t){return e.createElement(me,O({sideCar:rn,ref:t},n))})),an=me.propTypes||{},un=(an.sideCar,function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(an,["sideCar"]));on.propTypes=un;var cn=le(),ln=function(){},sn=c((function(e,r){var o=n(null),a=t({onScrollCapture:ln,onWheelCapture:ln,onTouchMoveCapture:ln}),u=a[0],c=a[1],d=e.forwardProps,p=e.children,v=e.className,y=e.removeScrollBar,m=e.enabled,h=e.shards,b=e.sideCar,g=e.noIsolation,w=e.inert,E=e.allowPinchZoom,O=ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom"]),S=b,x=oe({ref:ne([o,r])},O,u);return i(l,null,m&&i(S,{sideCar:cn,removeScrollBar:y,shards:h,noIsolation:g,inert:w,setCallbacks:c,allowPinchZoom:!!E,lockRef:o}),d?s(f.only(p),x):i("div",oe({},x,{className:v}),p))}));sn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},sn.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};var fn=function(){var e=0,n=null;return{add:function(t){var r,o;0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");return e.type="text/css",e}())&&(o=t,(r=n).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),e++},remove:function(){!--e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},dn=function(){var e,n=(e=fn(),function(n){d((function(){return e.add(n),function(){e.remove()}}),[])});return function(e){var t=e.styles;return n(t),null}},pn={left:0,top:0,right:0,gap:0},vn=function(e){return parseInt(e||"",10)||0},yn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pn;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[vn(t),vn(r),vn(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},mn=dn(),hn=function(e,n,t,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===t&&(t="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+u+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[n&&"position: relative "+r+";","margin"===t&&"\n padding-left: "+o+"px;\n padding-top: "+i+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+u+"px "+r+";\n ","padding"===t&&"padding-right: "+u+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n .right-scroll-bar-position {\n right: "+u+"px "+r+";\n }\n \n .width-before-scroll-bar {\n margin-right: "+u+"px "+r+";\n }\n \n .right-scroll-bar-position .right-scroll-bar-position {\n right: 0 "+r+";\n }\n \n .width-before-scroll-bar .width-before-scroll-bar {\n margin-right: 0 "+r+";\n }\n"},bn=function(e){var n=t(yn(e.gapMode)),r=n[0],o=n[1];d((function(){o(yn(e.gapMode))}),[e.gapMode]);var a=e.noRelative,u=e.noImportant,c=e.gapMode;return i(mn,{styles:hn(r,!a,void 0===c?"margin":c,u?"":"!important")})},gn=function(e,n){var t=n;do{if(wn(e,t)){var r=En(e,t);if(r[1]>r[2])return!0}t=t.parentNode}while(t&&t!==document.body);return!1},wn=function(e,n){return"v"===e?function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowY&&!(n.overflowY===n.overflowX&&"visible"===n.overflowY)}(n):function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowX&&!(n.overflowY===n.overflowX&&"visible"===n.overflowX)}(n)},En=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},On=!1;if("undefined"!=typeof window)try{var Sn=Object.defineProperty({},"passive",{get:function(){return On=!0,!0}});window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch(e){On=!1}var xn=!!On&&{passive:!1},Nn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pn=function(e){return[e.deltaX,e.deltaY]},Cn=function(e){return e&&"current"in e?e.current:e},Tn=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},jn=0,kn=[];var Dn,Mn=(Dn=function(e){var r=n([]),o=n([0,0]),u=n(),c=t(jn++)[0],s=t((function(){return dn()}))[0],f=n(e);d((function(){f.current=e}),[e]),d((function(){if(e.inert){document.body.classList.add("block-interactivity-"+c);var n=[e.lockRef.current].concat((e.shards||[]).map(Cn)).filter(Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-"+c)})),function(){document.body.classList.remove("block-interactivity-"+c),n.forEach((function(e){return e.classList.remove("allow-interactivity-"+c)}))}}}),[e.inert,e.lockRef.current,e.shards]);var p=a((function(e,n){if("touches"in e&&2===e.touches.length)return!f.current.allowPinchZoom;var t,r=Nn(e),i=o.current,a="deltaX"in e?e.deltaX:i[0]-r[0],c="deltaY"in e?e.deltaY:i[1]-r[1],l=e.target,s=Math.abs(a)>Math.abs(c)?"h":"v",d=gn(s,l);if(!d)return!0;if(d?t=s:(t="v"===s?"h":"v",d=gn(s,l)),!d)return!1;if(!u.current&&"changedTouches"in e&&(a||c)&&(u.current=t),!t)return!0;var p=u.current||t;return function(e,n,t,r,o){var i=r,a=t.target,u=n.contains(a),c=!1,l=i>0,s=0,f=0;do{var d=En(e,a),p=d[0],v=d[1]-d[2]-p;(p||v)&&wn(e,a)&&(s+=v,f+=p),a=a.parentNode}while(!u&&a!==document.body||u&&(n.contains(a)||n===a));return(l&&(o&&0===s||!o&&i>s)||!l&&(o&&0===f||!o&&-i>f))&&(c=!0),c}(p,n,e,"h"==p?a:c,!0)}),[]),v=a((function(e){var n=e;if(kn.length&&kn[kn.length-1]===s){var t="deltaY"in n?Pn(n):Nn(n),o=r.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(r=e.delta,o=t,r[0]===o[0]&&r[1]===o[1]);var r,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var i=(f.current.shards||[]).map(Cn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?p(n,i[0]):!f.current.noIsolation)&&n.preventDefault()}}}),[]),y=a((function(e,n,t,o){var i={name:e,delta:n,target:t,should:o};r.current.push(i),setTimeout((function(){r.current=r.current.filter((function(e){return e!==i}))}),1)}),[]),m=a((function(e){o.current=Nn(e),u.current=void 0}),[]),h=a((function(n){y(n.type,Pn(n),n.target,p(n,e.lockRef.current))}),[]),b=a((function(n){y(n.type,Nn(n),n.target,p(n,e.lockRef.current))}),[]);d((function(){return kn.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:b}),document.addEventListener("wheel",v,xn),document.addEventListener("touchmove",v,xn),document.addEventListener("touchstart",m,xn),function(){kn=kn.filter((function(e){return e!==s})),document.removeEventListener("wheel",v,xn),document.removeEventListener("touchmove",v,xn),document.removeEventListener("touchstart",m,xn)}}),[]);var g=e.removeScrollBar,w=e.inert;return i(l,null,w?i(s,{styles:Tn(c)}):null,g?i(bn,{gapMode:"margin"}):null)},cn.useMedium(Dn),se),In=c((function(e,n){return i(sn,oe({},e,{ref:n,sideCar:Mn}))}));function _n(){return(_n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function An(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}In.classNames=sn.classNames;var Fn={initialFocusRef:function(){return null},allowPinchZoom:U.bool,onDismiss:U.func},Rn=c((function(n,t){var r=n.isOpen,o=void 0===r||r,i=An(n,["isOpen"]);return d((function(){return m("dialog")}),[]),o?e.createElement(v,{"data-reach-dialog-wrapper":""},e.createElement($n,Object.assign({ref:t},i))):null}));"production"!==process.env.NODE_ENV&&(Rn.displayName="DialogOverlay",Rn.propTypes=_n({},Fn,{isOpen:U.bool}));var $n=c((function(t,r){var i=t.allowPinchZoom,u=t.initialFocusRef,c=t.onClick,l=t.onDismiss,s=void 0===l?w:l,f=t.onMouseDown,p=t.onKeyDown,v=An(t,["allowPinchZoom","initialFocusRef","onClick","onDismiss","onMouseDown","onKeyDown"]),y=n(null),m=n(null),h=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return o((function(){return n.every((function(e){return null==e}))?null:function(e){n.forEach((function(n){b(n,e)}))}}),n)}(m,r),O=a((function(){u&&u.current&&u.current.focus()}),[u]);return d((function(){return m.current?function(e){var n=[],t=[],r=(o=e,(o&&o.ownerDocument?o.ownerDocument:g()?document:null)||document);var o;if(!e)return"production"!==process.env.NODE_ENV&&console.warn("A ref has not yet been attached to a dialog node when attempting to call `createAriaHider`."),w;return Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var o,i;if(r!==(null===(o=e.parentNode)||void 0===o||null===(i=o.parentNode)||void 0===i?void 0:i.parentNode)){var a=r.getAttribute("aria-hidden");null!==a&&"false"!==a||(n.push(a),t.push(r),r.setAttribute("aria-hidden","true"))}})),function(){t.forEach((function(e,t){var r=n[t];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}}(m.current):void 0}),[]),e.createElement(on,{autoFocus:!0,returnFocus:!0,onActivation:O},e.createElement(In,{allowPinchZoom:i},e.createElement("div",Object.assign({},v,{ref:h,"data-reach-dialog-overlay":"",onClick:E(c,(function(e){y.current===e.target&&(e.stopPropagation(),s(e))})),onKeyDown:E(p,(function(e){"Escape"===e.key&&(e.stopPropagation(),s(e))})),onMouseDown:E(f,(function(e){y.current=e.target}))}))))}));"production"!==process.env.NODE_ENV&&(Rn.displayName="DialogOverlay",Rn.propTypes=_n({},Fn));var Ln=c((function(n,t){var r=n.onClick,o=An(n,["onClick","onKeyDown"]);return e.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},o,{ref:t,"data-reach-dialog-content":"",onClick:E(r,(function(e){e.stopPropagation()}))}))}));"production"!==process.env.NODE_ENV&&(Ln.displayName="DialogContent",Ln.propTypes={"aria-label":Wn,"aria-labelledby":Wn});var Vn=c((function(n,t){var r=n.isOpen,o=n.onDismiss,i=void 0===o?w:o,a=n.initialFocusRef,u=An(n,["isOpen","onDismiss","initialFocusRef"]);return e.createElement(Rn,{initialFocusRef:a,isOpen:r,onDismiss:i},e.createElement(Ln,Object.assign({ref:t},u)))}));function Wn(e,n,t,r,o){var i="\nSee https://www.w3.org/TR/wai-aria/#aria-label for details.";return e["aria-label"]||e["aria-labelledby"]?e["aria-label"]&&e["aria-labelledby"]?new Error("You provided both `aria-label` and `aria-labelledby` props to a <"+t+">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <"+t+">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag."+i):null!=e[n]&&"string"!=typeof e[n]?new Error("Invalid prop `"+n+"` supplied to `"+t+"`. Expected `string`, received `"+(Array.isArray(o)?"array":typeof o)+"`."):null:new Error("A <"+t+"> must have either an `aria-label` or `aria-labelledby` prop.\n "+i)}"production"!==process.env.NODE_ENV&&(Vn.displayName="Dialog",Vn.propTypes={isOpen:U.bool,onDismiss:U.func,"aria-label":Wn,"aria-labelledby":Wn});export{Ln as ModalDialogPrimitiveContent,Rn as ModalDialogPrimitiveOverlay};

@@ -1,2 +0,2 @@

"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),React__default=_interopDefault(React),reactDom=require("react-dom"),Portal=function(e){var t=e.children,n=e.type,r=void 0===n?"reach-portal":n,o=React.useRef(null),a=React.useRef(null),i=React.useState()[1];return React.useLayoutEffect((function(){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(r),e.body.appendChild(a.current),i({}),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}),[r]),a.current?reactDom.createPortal(t,a.current):React__default.createElement("div",{ref:o})};"production"!==process.env.NODE_ENV&&(Portal.displayName="Portal");var __DEV__="production"!==process.env.NODE_ENV,useIsomorphicLayoutEffect=canUseDOM()?React__default.useLayoutEffect:React__default.useEffect,checkedPkgs={},checkStyles=function(e){};if("production"!==process.env.NODE_ENV){var _ref="undefined"!=typeof process?process:{env:{NODE_ENV:"development"}},env=_ref.env;checkStyles=function(e){checkedPkgs[e]||(checkedPkgs[e]=!0,"test"!==env.NODE_ENV&&1!==parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-"+e),10)&&console.warn("@reach/"+e+' styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import "@reach/'+e+'/styles.css";\n\n Otherwise you\'ll need to include them some other way:\n\n <link rel="stylesheet" type="text/css" href="node_modules/@reach/'+e+'/styles.css" />\n\n For more information visit https://ui.reach.tech/styling.\n '))}}function assignRef(e,t){if(null!=e)if(isFunction(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function canUseDOM(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function noop(){}function useForkedRef(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return React.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){assignRef(t,e)}))}}),t)}function wrapEvent(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}function getOwnerDocument(e){return e&&e.ownerDocument?e.ownerDocument:canUseDOM()?document:null}function isFunction(e){return!(!e||"[object Function]"!={}.toString.call(e))}function isString(e){return"string"==typeof e}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var reactIs_production_min=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.fundamental"):60117,h=n?Symbol.for("react.responder"):60118,g=n?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case a:case c:case i:case f:return e;default:switch(e=e&&e.$$typeof){case s:case p:case v:case y:case u:return e;default:return t}}case o:return t}}}function S(e){return b(e)===d}t.typeOf=b,t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=o,t.Profiler=c,t.StrictMode=i,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===u||e.$$typeof===s||e.$$typeof===p||e.$$typeof===_||e.$$typeof===h||e.$$typeof===g)},t.isAsyncMode=function(e){return S(e)||b(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return b(e)===s},t.isContextProvider=function(e){return b(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return b(e)===p},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===v},t.isMemo=function(e){return b(e)===y},t.isPortal=function(e){return b(e)===o},t.isProfiler=function(e){return b(e)===c},t.isStrictMode=function(e){return b(e)===i},t.isSuspense=function(e){return b(e)===f}}));unwrapExports(reactIs_production_min);var reactIs_production_min_1=reactIs_production_min.typeOf,reactIs_production_min_2=reactIs_production_min.AsyncMode,reactIs_production_min_3=reactIs_production_min.ConcurrentMode,reactIs_production_min_4=reactIs_production_min.ContextConsumer,reactIs_production_min_5=reactIs_production_min.ContextProvider,reactIs_production_min_6=reactIs_production_min.Element,reactIs_production_min_7=reactIs_production_min.ForwardRef,reactIs_production_min_8=reactIs_production_min.Fragment,reactIs_production_min_9=reactIs_production_min.Lazy,reactIs_production_min_10=reactIs_production_min.Memo,reactIs_production_min_11=reactIs_production_min.Portal,reactIs_production_min_12=reactIs_production_min.Profiler,reactIs_production_min_13=reactIs_production_min.StrictMode,reactIs_production_min_14=reactIs_production_min.Suspense,reactIs_production_min_15=reactIs_production_min.isValidElementType,reactIs_production_min_16=reactIs_production_min.isAsyncMode,reactIs_production_min_17=reactIs_production_min.isConcurrentMode,reactIs_production_min_18=reactIs_production_min.isContextConsumer,reactIs_production_min_19=reactIs_production_min.isContextProvider,reactIs_production_min_20=reactIs_production_min.isElement,reactIs_production_min_21=reactIs_production_min.isForwardRef,reactIs_production_min_22=reactIs_production_min.isFragment,reactIs_production_min_23=reactIs_production_min.isLazy,reactIs_production_min_24=reactIs_production_min.isMemo,reactIs_production_min_25=reactIs_production_min.isPortal,reactIs_production_min_26=reactIs_production_min.isProfiler,reactIs_production_min_27=reactIs_production_min.isStrictMode,reactIs_production_min_28=reactIs_production_min.isSuspense,reactIs_development=createCommonjsModule((function(e,t){"production"!==process.env.NODE_ENV&&function(){Object.defineProperty(t,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;var g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}},b=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];g.apply(void 0,[t].concat(r))}};function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case s:case l:case o:case i:case a:case p:return f;default:var v=f&&f.$$typeof;switch(v){case u:case d:case y:case m:case c:return v;default:return t}}case r:return t}}}var T=s,w=l,E=u,R=c,I=n,O=d,C=o,P=y,F=m,x=r,N=i,k=a,A=p,D=!1;function j(e){return S(e)===l}t.typeOf=S,t.AsyncMode=T,t.ConcurrentMode=w,t.ContextConsumer=E,t.ContextProvider=R,t.Element=I,t.ForwardRef=O,t.Fragment=C,t.Lazy=P,t.Memo=F,t.Portal=x,t.Profiler=N,t.StrictMode=k,t.Suspense=A,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===_||e.$$typeof===h)},t.isAsyncMode=function(e){return D||(D=!0,b(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||S(e)===s},t.isConcurrentMode=j,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===r},t.isProfiler=function(e){return S(e)===i},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p}}()}));unwrapExports(reactIs_development);var reactIs_development_1=reactIs_development.typeOf,reactIs_development_2=reactIs_development.AsyncMode,reactIs_development_3=reactIs_development.ConcurrentMode,reactIs_development_4=reactIs_development.ContextConsumer,reactIs_development_5=reactIs_development.ContextProvider,reactIs_development_6=reactIs_development.Element,reactIs_development_7=reactIs_development.ForwardRef,reactIs_development_8=reactIs_development.Fragment,reactIs_development_9=reactIs_development.Lazy,reactIs_development_10=reactIs_development.Memo,reactIs_development_11=reactIs_development.Portal,reactIs_development_12=reactIs_development.Profiler,reactIs_development_13=reactIs_development.StrictMode,reactIs_development_14=reactIs_development.Suspense,reactIs_development_15=reactIs_development.isValidElementType,reactIs_development_16=reactIs_development.isAsyncMode,reactIs_development_17=reactIs_development.isConcurrentMode,reactIs_development_18=reactIs_development.isContextConsumer,reactIs_development_19=reactIs_development.isContextProvider,reactIs_development_20=reactIs_development.isElement,reactIs_development_21=reactIs_development.isForwardRef,reactIs_development_22=reactIs_development.isFragment,reactIs_development_23=reactIs_development.isLazy,reactIs_development_24=reactIs_development.isMemo,reactIs_development_25=reactIs_development.isPortal,reactIs_development_26=reactIs_development.isProfiler,reactIs_development_27=reactIs_development.isStrictMode,reactIs_development_28=reactIs_development.isSuspense,reactIs=createCommonjsModule((function(e){"production"===process.env.NODE_ENV?e.exports=reactIs_production_min:e.exports=reactIs_development})),getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var objectAssign=shouldUseNative()?Object.assign:function(e,t){for(var n,r,o=toObject(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))hasOwnProperty.call(n,i)&&(o[i]=n[i]);if(getOwnPropertySymbols){r=getOwnPropertySymbols(n);for(var c=0;c<r.length;c++)propIsEnumerable.call(n,r[c])&&(o[r[c]]=n[r[c]])}}return o},ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret,printWarning=function(){};if("production"!==process.env.NODE_ENV){var ReactPropTypesSecret$1=ReactPropTypesSecret_1,loggedTypeFailures={},has=Function.call.bind(Object.prototype.hasOwnProperty);printWarning=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function checkPropTypes(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(has(e,a)){var i;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw c.name="Invariant Violation",c}i=e[a](t,a,r,n,null,ReactPropTypesSecret$1)}catch(e){i=e}if(!i||i instanceof Error||printWarning((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in loggedTypeFailures)){loggedTypeFailures[i.message]=!0;var u=o?o():"";printWarning("Failed "+n+" type: "+i.message+(null!=u?u:""))}}}checkPropTypes.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(loggedTypeFailures={})};var checkPropTypes_1=checkPropTypes,has$1=Function.call.bind(Object.prototype.hasOwnProperty),printWarning$1=function(){};function emptyFunctionThatReturnsNull(){return null}"production"!==process.env.NODE_ENV&&(printWarning$1=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var factoryWithTypeCheckers=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var r={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:i(emptyFunctionThatReturnsNull),arrayOf:function(e){return i((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c))return new a("Invalid "+o+" `"+i+"` of type `"+s(c)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<c.length;u++){var l=e(c,u,r,o,i+"["+u+"]",ReactPropTypesSecret_1);if(l instanceof Error)return l}return null}))},element:i((function(t,n,r,o,i){var c=t[n];return e(c)?null:new a("Invalid "+o+" `"+i+"` of type `"+s(c)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:i((function(e,t,n,r,o){var i=e[t];return reactIs.isValidElementType(i)?null:new a("Invalid "+r+" `"+o+"` of type `"+s(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return i((function(t,n,r,o,i){if(!(t[n]instanceof e)){var c=e.name||"<<anonymous>>";return new a("Invalid "+o+" `"+i+"` of type `"+function(e){if(!e.constructor||!e.constructor.name)return"<<anonymous>>";return e.constructor.name}(t[n])+"` supplied to `"+r+"`, expected instance of `"+c+"`.")}return null}))},node:i((function(e,t,n,r,o){return u(e[t])?null:new a("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return i((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],u=s(c);if("object"!==u)return new a("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var l in c)if(has$1(c,l)){var d=e(c,l,r,o,i+"."+l,ReactPropTypesSecret_1);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&(arguments.length>1?printWarning$1("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):printWarning$1("Invalid argument supplied to oneOf, expected an array.")),emptyFunctionThatReturnsNull;function t(t,n,r,i,c){for(var u=t[n],s=0;s<e.length;s++)if(o(u,e[s]))return null;var d=JSON.stringify(e,(function(e,t){return"symbol"===l(t)?String(t):t}));return new a("Invalid "+i+" `"+c+"` of value `"+String(u)+"` supplied to `"+r+"`, expected one of "+d+".")}return i(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&printWarning$1("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return printWarning$1("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+d(n)+" at index "+t+"."),emptyFunctionThatReturnsNull}return i((function(t,n,r,o,i){for(var c=0;c<e.length;c++){if(null==(0,e[c])(t,n,r,o,i,ReactPropTypesSecret_1))return null}return new a("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return i((function(t,n,r,o,i){var c=t[n],u=s(c);if("object"!==u)return new a("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var d=e[l];if(d){var p=d(c,l,r,o,i+"."+l,ReactPropTypesSecret_1);if(p)return p}}return null}))},exact:function(e){return i((function(t,n,r,o,i){var c=t[n],u=s(c);if("object"!==u)return new a("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var l=objectAssign({},t[n],e);for(var d in l){var p=e[d];if(!p)return new a("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=p(c,d,r,o,i+"."+d,ReactPropTypesSecret_1);if(f)return f}return null}))}};function o(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function a(e){this.message=e,this.stack=""}function i(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,i,c,u,s,l,d){if(u=u||"<<anonymous>>",l=l||c,d!==ReactPropTypesSecret_1){if(t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=u+":"+c;!n[f]&&r<3&&(printWarning$1("You are manually calling a React.PropTypes validation function for the `"+l+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[f]=!0,r++)}}return null==i[c]?o?null===i[c]?new a("The "+s+" `"+l+"` is marked as required in `"+u+"`, but its value is `null`."):new a("The "+s+" `"+l+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(i,c,u,s,l)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function c(e){return i((function(t,n,r,o,i,c){var u=t[n];return s(u)!==e?new a("Invalid "+o+" `"+i+"` of type `"+l(u)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,a=r.call(t);if(r!==t.entries){for(;!(o=a.next()).done;)if(!u(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function s(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function l(e){if(null==e)return""+e;var t=s(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function d(e){var t=l(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return a.prototype=Error.prototype,r.checkPropTypes=checkPropTypes_1,r.resetWarningCache=checkPropTypes_1.resetWarningCache,r.PropTypes=r,r};function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function e(e,t,n,r,o,a){if(a!==ReactPropTypesSecret_1){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={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:emptyFunctionWithReset,resetWarningCache:emptyFunction};return n.PropTypes=n,n},propTypes=createCommonjsModule((function(e){if("production"!==process.env.NODE_ENV){var t=reactIs;e.exports=factoryWithTypeCheckers(t.isElement,!0)}else e.exports=factoryWithThrowingShims()})),propTypes_1=propTypes.array,propTypes_2=propTypes.bool,propTypes_3=propTypes.func,propTypes_4=propTypes.number,propTypes_5=propTypes.object,propTypes_6=propTypes.string,propTypes_7=propTypes.symbol,propTypes_8=propTypes.any,propTypes_9=propTypes.node,propTypes_10=propTypes.element,propTypes_11=propTypes.elementType,propTypes_12=propTypes.instanceOf,propTypes_13=propTypes.oneOf,propTypes_14=propTypes.oneOfType,propTypes_15=propTypes.arrayOf,propTypes_16=propTypes.objectOf,propTypes_17=propTypes.shape,propTypes_18=propTypes.exact,FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside";function assignRef$1(e,t){return"function"==typeof e?e(t):null!=e&&(e.current=t),e}function useCallbackRef(e,t){var n=React.useState((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}function useMergeRefs(e,t){return useCallbackRef(t,(function(t){return e.forEach((function(e){return assignRef$1(e,t)}))}))}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},InFocusGuard=function(e){var t=e.children;return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:hiddenGuard}),t,t&&React__default.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:hiddenGuard}))};InFocusGuard.propTypes="production"!==process.env.NODE_ENV?{children:propTypes.node}:{},InFocusGuard.defaultProps={children:null};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=require("react"),t=(e=n)&&"object"==typeof e&&"default"in e?e.default:e,r=require("react-dom"),o=function(e){var o=e.children,a=e.type,i=void 0===a?"reach-portal":a,u=n.useRef(null),c=n.useRef(null),l=n.useState()[1];return n.useLayoutEffect((function(){var e=u.current.ownerDocument;return c.current=null==e?void 0:e.createElement(i),e.body.appendChild(c.current),l({}),function(){c.current&&c.current.ownerDocument&&c.current.ownerDocument.body.removeChild(c.current)}}),[i]),c.current?r.createPortal(o,c.current):t.createElement("span",{ref:u})};"production"!==process.env.NODE_ENV&&(o.displayName="Portal");process.env.NODE_ENV,l()?t.useLayoutEffect:t.useEffect;var a={},i=function(e){};if("production"!==process.env.NODE_ENV){var u=("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;i=function(e){a[e]||(a[e]=!0,"test"!==u.NODE_ENV&&1!==parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-"+e),10)&&console.warn("@reach/"+e+' styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import "@reach/'+e+'/styles.css";\n\n Otherwise you\'ll need to include them some other way:\n\n <link rel="stylesheet" type="text/css" href="node_modules/@reach/'+e+'/styles.css" />\n\n For more information visit https://ui.reach.tech/styling.\n '))}}function c(e,n){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(n);else try{e.current=n}catch(t){throw new Error('Cannot assign value "'+n+'" to ref "'+e+'"')}}function l(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function s(){}function f(e,n){return function(t){if(e&&e(t),!t.defaultPrevented)return n(t)}}function d(){return(d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(e,n){return e(n={exports:{}},n.exports),n.exports}var y=v((function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.fundamental"):60117,b=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case s:case f:case a:case u:case i:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case y:case c:return e;default:return n}}case o:return n}}}function E(e){return w(e)===f}n.typeOf=w,n.AsyncMode=s,n.ConcurrentMode=f,n.ContextConsumer=l,n.ContextProvider=c,n.Element=r,n.ForwardRef=d,n.Fragment=a,n.Lazy=m,n.Memo=y,n.Portal=o,n.Profiler=u,n.StrictMode=i,n.Suspense=p,n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===h||e.$$typeof===b||e.$$typeof===g)},n.isAsyncMode=function(e){return E(e)||w(e)===s},n.isConcurrentMode=E,n.isContextConsumer=function(e){return w(e)===l},n.isContextProvider=function(e){return w(e)===c},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return w(e)===d},n.isFragment=function(e){return w(e)===a},n.isLazy=function(e){return w(e)===m},n.isMemo=function(e){return w(e)===y},n.isPortal=function(e){return w(e)===o},n.isProfiler=function(e){return w(e)===u},n.isStrictMode=function(e){return w(e)===i},n.isSuspense=function(e){return w(e)===p}}));p(y);y.typeOf,y.AsyncMode,y.ConcurrentMode,y.ContextConsumer,y.ContextProvider,y.Element,y.ForwardRef,y.Fragment,y.Lazy,y.Memo,y.Portal,y.Profiler,y.StrictMode,y.Suspense,y.isValidElementType,y.isAsyncMode,y.isConcurrentMode,y.isContextConsumer,y.isContextProvider,y.isElement,y.isForwardRef,y.isFragment,y.isLazy,y.isMemo,y.isPortal,y.isProfiler,y.isStrictMode,y.isSuspense;var m=v((function(e,n){"production"!==process.env.NODE_ENV&&function(){Object.defineProperty(n,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;var g=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,(function(){return t[o++]}));"undefined"!=typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}},w=function(e,n){if(void 0===n)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];g.apply(void 0,[n].concat(r))}};function E(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case t:var p=e.type;switch(p){case l:case s:case o:case i:case a:case d:return p;default:var m=p&&p.$$typeof;switch(m){case c:case f:case y:case v:case u:return m;default:return n}}case r:return n}}}var O=l,S=s,x=c,N=u,C=t,P=f,k=o,j=y,T=v,M=r,D=i,R=a,I=d,_=!1;function F(e){return E(e)===s}n.typeOf=E,n.AsyncMode=O,n.ConcurrentMode=S,n.ContextConsumer=x,n.ContextProvider=N,n.Element=C,n.ForwardRef=P,n.Fragment=k,n.Lazy=j,n.Memo=T,n.Portal=M,n.Profiler=D,n.StrictMode=R,n.Suspense=I,n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===m||e.$$typeof===h||e.$$typeof===b)},n.isAsyncMode=function(e){return _||(_=!0,w(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(e)||E(e)===l},n.isConcurrentMode=F,n.isContextConsumer=function(e){return E(e)===c},n.isContextProvider=function(e){return E(e)===u},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},n.isForwardRef=function(e){return E(e)===f},n.isFragment=function(e){return E(e)===o},n.isLazy=function(e){return E(e)===y},n.isMemo=function(e){return E(e)===v},n.isPortal=function(e){return E(e)===r},n.isProfiler=function(e){return E(e)===i},n.isStrictMode=function(e){return E(e)===a},n.isSuspense=function(e){return E(e)===d}}()}));p(m);m.typeOf,m.AsyncMode,m.ConcurrentMode,m.ContextConsumer,m.ContextProvider,m.Element,m.ForwardRef,m.Fragment,m.Lazy,m.Memo,m.Portal,m.Profiler,m.StrictMode,m.Suspense,m.isValidElementType,m.isAsyncMode,m.isConcurrentMode,m.isContextConsumer,m.isContextProvider,m.isElement,m.isForwardRef,m.isFragment,m.isLazy,m.isMemo,m.isPortal,m.isProfiler,m.isStrictMode,m.isSuspense;var h=v((function(e){"production"===process.env.NODE_ENV?e.exports=y:e.exports=m})),b=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;function E(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var O=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var t,r,o=E(e),a=1;a<arguments.length;a++){for(var i in t=Object(arguments[a]))g.call(t,i)&&(o[i]=t[i]);if(b){r=b(t);for(var u=0;u<r.length;u++)w.call(t,r[u])&&(o[r[u]]=t[r[u]])}}return o},S="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x=function(){};if("production"!==process.env.NODE_ENV){var N=S,C={},P=Function.call.bind(Object.prototype.hasOwnProperty);x=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function k(e,n,t,r,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(P(e,a)){var i;try{if("function"!=typeof e[a]){var u=Error((r||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw u.name="Invariant Violation",u}i=e[a](n,a,r,t,null,N)}catch(e){i=e}if(!i||i instanceof Error||x((r||"React class")+": type specification of "+t+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in C)){C[i.message]=!0;var c=o?o():"";x("Failed "+t+" type: "+i.message+(null!=c?c:""))}}}k.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(C={})};var j=k,T=Function.call.bind(Object.prototype.hasOwnProperty),M=function(){};function D(){return null}"production"!==process.env.NODE_ENV&&(M=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}});var R=function(e,n){var t="function"==typeof Symbol&&Symbol.iterator;var r={array:u("array"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:i(D),arrayOf:function(e){return i((function(n,t,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=n[t];if(!Array.isArray(u))return new a("Invalid "+o+" `"+i+"` of type `"+l(u)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<u.length;c++){var s=e(u,c,r,o,i+"["+c+"]",S);if(s instanceof Error)return s}return null}))},element:i((function(n,t,r,o,i){var u=n[t];return e(u)?null:new a("Invalid "+o+" `"+i+"` of type `"+l(u)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:i((function(e,n,t,r,o){var i=e[n];return h.isValidElementType(i)?null:new a("Invalid "+r+" `"+o+"` of type `"+l(i)+"` supplied to `"+t+"`, expected a single ReactElement type.")})),instanceOf:function(e){return i((function(n,t,r,o,i){if(!(n[t]instanceof e)){var u=e.name||"<<anonymous>>";return new a("Invalid "+o+" `"+i+"` of type `"+function(e){if(!e.constructor||!e.constructor.name)return"<<anonymous>>";return e.constructor.name}(n[t])+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null}))},node:i((function(e,n,t,r,o){return c(e[n])?null:new a("Invalid "+r+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return i((function(n,t,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=n[t],c=l(u);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in u)if(T(u,s)){var f=e(u,s,r,o,i+"."+s,S);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&(arguments.length>1?M("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):M("Invalid argument supplied to oneOf, expected an array.")),D;function n(n,t,r,i,u){for(var c=n[t],l=0;l<e.length;l++)if(o(c,e[l]))return null;var f=JSON.stringify(e,(function(e,n){return"symbol"===s(n)?String(n):n}));return new a("Invalid "+i+" `"+u+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+f+".")}return i(n)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&M("Invalid argument supplied to oneOfType, expected an instance of array."),D;for(var n=0;n<e.length;n++){var t=e[n];if("function"!=typeof t)return M("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(t)+" at index "+n+"."),D}return i((function(n,t,r,o,i){for(var u=0;u<e.length;u++){if(null==(0,e[u])(n,t,r,o,i,S))return null}return new a("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return i((function(n,t,r,o,i){var u=n[t],c=l(u);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var f=e[s];if(f){var d=f(u,s,r,o,i+"."+s,S);if(d)return d}}return null}))},exact:function(e){return i((function(n,t,r,o,i){var u=n[t],c=l(u);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=O({},n[t],e);for(var f in s){var d=e[f];if(!d)return new a("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(n[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(u,f,r,o,i+"."+f,S);if(p)return p}return null}))}};function o(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function a(e){this.message=e,this.stack=""}function i(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,i,u,c,l,s,f){if(c=c||"<<anonymous>>",s=s||u,f!==S){if(n){var d=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 d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=c+":"+u;!t[p]&&r<3&&(M("You are manually calling a React.PropTypes validation function for the `"+s+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[p]=!0,r++)}}return null==i[u]?o?null===i[u]?new a("The "+l+" `"+s+"` is marked as required in `"+c+"`, but its value is `null`."):new a("The "+l+" `"+s+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,u,c,l,s)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function u(e){return i((function(n,t,r,o,i,u){var c=n[t];return l(c)!==e?new a("Invalid "+o+" `"+i+"` of type `"+s(c)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function c(n){switch(typeof n){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(c);if(null===n||e(n))return!0;var r=function(e){var n=e&&(t&&e[t]||e["@@iterator"]);if("function"==typeof n)return n}(n);if(!r)return!1;var o,a=r.call(n);if(r!==n.entries){for(;!(o=a.next()).done;)if(!c(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!c(i[1]))return!1}return!0;default:return!1}}function l(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function s(e){if(null==e)return""+e;var n=l(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function f(e){var n=s(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return a.prototype=Error.prototype,r.checkPropTypes=j,r.resetWarningCache=j.resetWarningCache,r.PropTypes=r,r};function I(){}function _(){}_.resetWarningCache=I;var F=v((function(e){if("production"!==process.env.NODE_ENV){var n=h;e.exports=R(n.isElement,!0)}else e.exports=function(){function e(e,n,t,r,o,a){if(a!==S){var i=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 i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:_,resetWarningCache:I};return t.PropTypes=t,t}()})),A=(F.array,F.bool),$=F.func,L=(F.number,F.object),V=F.string,W=(F.symbol,F.any),q=F.node,B=(F.element,F.elementType,F.instanceOf,F.oneOf,F.oneOfType),Y=F.arrayOf;F.objectOf,F.shape,F.exact;function z(e,t){return r=t,o=function(n){return e.forEach((function(e){return function(e,n){return"function"==typeof e?e(n):null!=e&&(e.current=n),e}(e,n)}))},(a=n.useState((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var n=a.value;n!==e&&(a.value=e,a.callback(e,n))}}}}))[0]).callback=o,a.facade;var r,o,a}var U={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},G=function(e){var n=e.children;return t.createElement(t.Fragment,null,t.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:U}),n,n&&t.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:U}))};G.propTypes="production"!==process.env.NODE_ENV?{children:F.node}:{},G.defaultProps={children:null};
/*! *****************************************************************************

@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation. All rights reserved.

***************************************************************************** */
var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ItoI(e){return e}function innerCreateMedium(e,t){void 0===t&&(t=ItoI);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function createMedium(e,t){return void 0===t&&(t=ItoI),innerCreateMedium(e,t)}function createSidecarMedium(e){void 0===e&&(e={});var t=innerCreateMedium(null);return t.options=__assign({async:!0,ssr:!1},e),t}var SideCar=function(e){var t=e.sideCar,n=__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return React.createElement(r,__assign({},n))};function exportSidecar(e,t){return e.useMedium(t),SideCar}SideCar.isSideCarExport=!0;var mediumFocus=createMedium({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),mediumBlur=createMedium(),mediumEffect=createMedium(),mediumSidecar=createSidecarMedium({async:!0}),emptyArray=[],FocusLock=React__default.forwardRef((function(e,t){var n,r=React.useState(),o=r[0],a=r[1],i=React.useRef(),c=React.useRef(!1),u=React.useRef(null),s=e.children,l=e.disabled,d=e.noFocusGuards,p=e.persistentFocus,f=e.autoFocus,m=e.allowTextSelection,y=e.group,v=e.className,_=e.whiteList,h=e.shards,g=void 0===h?emptyArray:h,b=e.as,S=void 0===b?"div":b,T=e.lockProps,w=void 0===T?{}:T,E=e.sideCar,R=e.returnFocus,I=e.onActivation,O=e.onDeactivation,C=React.useState({})[0],P=React.useCallback((function(){u.current=u.current||document&&document.activeElement,i.current&&I&&I(i.current),c.current=!0}),[I]),F=React.useCallback((function(){c.current=!1,O&&O(i.current)}),[O]),x=React.useCallback((function(e){var t=u.current;if(Boolean(R)&&t&&t.focus){var n="object"==typeof R?R:void 0;u.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[R]),N=React.useCallback((function(e){c.current&&mediumFocus.useMedium(e)}),[]),k=mediumBlur.useMedium,A=React.useCallback((function(e){i.current!==e&&(i.current=e,a(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==m&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),React__default.useEffect((function(){i.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var D=_extends(((n={})[FOCUS_DISABLED]=l&&"disabled",n[FOCUS_GROUP]=y,n),w),j=!0!==d,M=j&&"tail"!==d,$=useMergeRefs([t,A]);return React__default.createElement(React__default.Fragment,null,j&&[React__default.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:l?-1:0,style:hiddenGuard}),React__default.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:l?-1:1,style:hiddenGuard})],!l&&React__default.createElement(E,{id:C,sideCar:mediumSidecar,observed:o,disabled:l,persistentFocus:p,autoFocus:f,whiteList:_,shards:g,onActivation:P,onDeactivation:F,returnFocus:x}),React__default.createElement(S,_extends({ref:$},D,{className:v,onBlur:k,onFocus:N}),s),M&&React__default.createElement("div",{"data-focus-guard":!0,tabIndex:l?-1:0,style:hiddenGuard}))}));function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function withSideEffect(e,t){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(n){if("production"!==process.env.NODE_ENV&&"function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var r,o=[];function a(){r=e(o.map((function(e){return e.props}))),t(r)}var i=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e),t.peek=function(){return r};var i=t.prototype;return i.componentDidMount=function(){o.push(this),a()},i.componentDidUpdate=function(){a()},i.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),a()},i.render=function(){return React__default.createElement(n,this.props)},t}(React.PureComponent);return _defineProperty(i,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),i}}FocusLock.propTypes="production"!==process.env.NODE_ENV?{children:propTypes_9,disabled:propTypes_2,returnFocus:propTypes_14([propTypes_2,propTypes_5]),noFocusGuards:propTypes_2,allowTextSelection:propTypes_2,autoFocus:propTypes_2,persistentFocus:propTypes_2,group:propTypes_6,className:propTypes_6,whiteList:propTypes_3,shards:propTypes_15(propTypes_8),as:propTypes_14([propTypes_6,propTypes_3,propTypes_5]),lockProps:propTypes_5,onActivation:propTypes_3,onDeactivation:propTypes_3,sideCar:propTypes_8.isRequired}:{},FocusLock.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,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 toArray=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},arrayFind=function(e,t){return e.filter((function(e){return e===t}))[0]},asArray=function(e){return Array.isArray(e)?e:[e]},tabSort=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},orderByTabIndex=function(e,t,n){return toArray(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(tabSort)},tabbables=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables=queryTabbables+", [data-focus-guard]",getFocusables=function(e,t){return e.reduce((function(e,n){return e.concat(toArray(n.querySelectorAll(t?queryGuardTabbables:queryTabbables)),n.parentNode?toArray(n.parentNode.querySelectorAll(tabbables.join(","))).filter((function(e){return e===n})):[])}),[])},getParentAutofocusables=function(e){var t=e.querySelectorAll("["+FOCUS_AUTO+"]");return toArray(t).map((function(e){return getFocusables([e])})).reduce((function(e,t){return e.concat(t)}),[])},isElementHidden=function(e){return!(!e||!e.getPropertyValue)&&("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility"))},isVisible=function e(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!isElementHidden(window.getComputedStyle(t,null))&&e(t.parentNode)},notHiddenInput=function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))},getParents=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(t),t.parentNode&&e(t.parentNode,n),n},getCommonParent=function(e,t){for(var n=getParents(e),r=getParents(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},filterFocusable=function(e){return toArray(e).filter((function(e){return isVisible(e)})).filter((function(e){return notHiddenInput(e)}))},getTabbableNodes=function(e,t){return orderByTabIndex(filterFocusable(getFocusables(e,t)),!0,t)},getAllTabbableNodes=function(e){return orderByTabIndex(filterFocusable(getFocusables(e)),!1)},parentAutofocusables=function(e){return filterFocusable(getParentAutofocusables(e))},isRadio=function(e){return"INPUT"===e.tagName&&"radio"===e.type},findSelectedRadio=function(e,t){return t.filter(isRadio).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e},pickFirstFocus=function(e){return e[0]&&e.length>1&&isRadio(e[0])&&e[0].name?findSelectedRadio(e[0],e):e[0]},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},filterNested=function e(t){for(var n=t.length,r=0;r<n;r+=1)for(var o=function(n){if(r!==n&&t[r].contains(t[n]))return{v:e(t.filter((function(e){return e!==t[n]})))}},a=0;a<n;a+=1){var i=o(a);if("object"===(void 0===i?"undefined":_typeof(i)))return i.v}return t},getTopParent=function e(t){return t.parentNode?e(t.parentNode):t},getAllAffectedNodes=function(e){return asArray(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(FOCUS_GROUP);return e.push.apply(e,n?filterNested(toArray(getTopParent(t).querySelectorAll("["+FOCUS_GROUP+'="'+n+'"]:not(['+FOCUS_DISABLED+'="disabled"])'))):[t]),e}),[])},findAutoFocused=function(e){return function(t){return!!t.autofocus||t.dataset&&!!t.dataset.autofocus||e.indexOf(t)>=0}},isGuard=function(e){return e.dataset&&e.dataset.focusGuard},notAGuard=function(e){return!isGuard(e)},newFocus=function(e,t,n,r,o){var a=e.length,i=e[0],c=e[a-1];if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),s=t.indexOf(r||u),l=e.indexOf(r),d=u-s,p=t.indexOf(i),f=t.indexOf(c);return-1===u||-1===l?e.indexOf(o.length?pickFirstFocus(o):pickFirstFocus(e)):!d&&l>=0?l:u<=p&&isGuard(n)&&Math.abs(d)>1?0:d&&Math.abs(d)>1?l:u<=p?a-1:u>f?0:d?Math.abs(d)>1?l:(a+l+d)%a:void 0}},getTopCommonParent=function(e,t,n){var r=asArray(e),o=asArray(t),a=r[0],i=null;return o.filter(Boolean).forEach((function(e){i=getCommonParent(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=getCommonParent(a,e);t&&(i=!i||t.contains(i)?t:getCommonParent(t,i))}))})),i},allParentAutofocusables=function(e){return e.reduce((function(e,t){return e.concat(parentAutofocusables(t))}),[])},reorderNodes=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(Boolean)},getFocusabledIn=function(e){var t=getAllAffectedNodes(e).filter(notAGuard),n=getTopCommonParent(e,e,t),r=getTabbableNodes([n],!0),o=getTabbableNodes(t).filter((function(e){var t=e.node;return notAGuard(t)})).map((function(e){return e.node}));return r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:isGuard(t)}}))},getFocusMerge=function(e,t){var n=document&&document.activeElement,r=getAllAffectedNodes(e).filter(notAGuard),o=getTopCommonParent(n||e,e,r),a=getTabbableNodes(r).filter((function(e){var t=e.node;return notAGuard(t)}));if(a[0]||(a=getAllTabbableNodes(r).filter((function(e){var t=e.node;return notAGuard(t)})))[0]){var i=getTabbableNodes([o]).map((function(e){return e.node})),c=reorderNodes(i,a),u=c.map((function(e){return e.node})),s=newFocus(u,i,n,t,u.filter(findAutoFocused(allParentAutofocusables(r))));return void 0===s?s:c[s]}},focusInFrame=function(e){return e===document.activeElement},focusInsideIframe=function(e){return!!arrayFind(toArray(e.querySelectorAll("iframe")),focusInFrame)},focusInside=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&getAllAffectedNodes(e).reduce((function(e,n){return e||n.contains(t)||focusInsideIframe(n)}),!1)},focusIsHidden=function(){return document&&toArray(document.querySelectorAll("["+FOCUS_ALLOW+"]")).some((function(e){return e.contains(document.activeElement)}))},focusOn=function(e){e.focus(),e.contentWindow&&e.contentWindow.focus()},guardCount=0,lockDisabled=!1,setFocus=function(e,t){var n=getFocusMerge(e,t);if(!lockDisabled&&n){if(guardCount>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,void setTimeout((function(){lockDisabled=!1}),1);guardCount++,focusOn(n.node),guardCount--}};function deferAction(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var focusOnBody=function(){return document&&document.activeElement===document.body},isFreeFocus=function(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,lastPortaledElement=null,focusWasOutsideWindow=!1,defaultWhitelist=function(){return!0},focusWhitelisted=function(e){return(lastActiveTrap.whiteList||defaultWhitelist)(e)},recordPortal=function(e,t){lastPortaledElement={observerNode:e,portaledElement:t}},focusIsPortaledPair=function(e){return lastPortaledElement&&lastPortaledElement.portaledElement===e};function autoGuard(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else{if(!i.lockItem)break;if(a!==e)return;o=null}}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var extractRef=function(e){return e&&"current"in e?e.current:e},activateTrap=function(){var e=!1;if(lastActiveTrap){var t=lastActiveTrap,n=t.observed,r=t.persistentFocus,o=t.autoFocus,a=t.shards,i=n||lastPortaledElement&&lastPortaledElement.portaledElement,c=document&&document.activeElement;if(i){var u=[i].concat(a.map(extractRef).filter(Boolean));if(c&&!focusWhitelisted(c)||(r||focusWasOutsideWindow||!isFreeFocus()||!lastActiveFocus&&o)&&(!i||focusInside(u)||focusIsPortaledPair(c)||(document&&!lastActiveFocus&&c&&!o?(c.blur(),document.body.focus()):(e=setFocus(u,lastActiveFocus),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement),document){var s=document&&document.activeElement,l=getFocusabledIn(u),d=l.find((function(e){return e.node===s}));if(d){l.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")}));var p=l.indexOf(d);autoGuard(p,l.length,1,l),autoGuard(p,-1,-1,l)}}}}return e},onTrap=function(e){activateTrap()&&e&&(e.stopPropagation(),e.preventDefault())},onBlur=function(){return deferAction(activateTrap)},onFocus=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||recordPortal(n,t)},FocusWatcher=function(){return null},FocusTrap=function(e){var t=e.children;return React__default.createElement("div",{onBlur:onBlur,onFocus:onFocus},t)};FocusTrap.propTypes="production"!==process.env.NODE_ENV?{children:propTypes.node.isRequired}:{};var onWindowBlur=function(){focusWasOutsideWindow=!0},attachHandler=function(){document.addEventListener("focusin",onTrap,!0),document.addEventListener("focusout",onBlur),window.addEventListener("blur",onWindowBlur)},detachHandler=function(){document.removeEventListener("focusin",onTrap,!0),document.removeEventListener("focusout",onBlur),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState(e){return e.filter((function(e){return!e.disabled}))}function handleStateChangeOnClient(e){var t=e.slice(-1)[0];t&&!lastActiveTrap&&attachHandler();var n=lastActiveTrap,r=n&&t&&t.id===n.id;lastActiveTrap=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(lastActiveFocus=null,r&&n.observed===t.observed||t.onActivation(),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus),mediumBlur.assignMedium(onBlur),mediumEffect.assignMedium((function(e){return e({moveFocusInside:setFocus,focusInside:focusInside})}));var FocusTrap$1=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher),FocusLockCombination=React__default.forwardRef((function(e,t){return React__default.createElement(FocusLock,_extends({sideCar:FocusTrap$1,ref:t},e))})),_ref$1=FocusLock.propTypes||{},sideCar=_ref$1.sideCar,propTypes$1=_objectWithoutPropertiesLoose(_ref$1,["sideCar"]);FocusLockCombination.propTypes=propTypes$1;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=React.forwardRef((function(e,t){var n=React.useRef(null),r=React.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),o=r[0],a=r[1],i=e.forwardProps,c=e.children,u=e.className,s=e.removeScrollBar,l=e.enabled,d=e.shards,p=e.sideCar,f=e.noIsolation,m=e.inert,y=e.allowPinchZoom,v=__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom"]),_=p,h=__assign({ref:useMergeRefs([n,t])},v,o);return React.createElement(React.Fragment,null,l&&React.createElement(_,{sideCar:effectCar,removeScrollBar:s,shards:d,noIsolation:f,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:n}),i?React.cloneElement(React.Children.only(c),h):React.createElement("div",__assign({},h,{className:u}),c))}));function makeStyleTag(){if(!document)return null;var e=document.createElement("style");return e.type="text/css",e}function injectStyles(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function insertStyleTag(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var stylesheetSingleton=function(){var e=0,t=null;return{add:function(n){0==e&&(t=makeStyleTag())&&(injectStyles(t,n),insertStyleTag(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(t){React.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}},styleSingleton=function(){var e=styleHookSingleton();return function(t){var n=t.styles;return e(n),null}},zeroGap={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[parse(n),parse(r),parse(o)]},getGapWidth=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return zeroGap;var t=getOffset(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Style=styleSingleton(),getStyles=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n ."+noScrollbarsClassName+" {\n overflow: hidden "+r+";\n padding-right: "+c+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[t&&"position: relative "+r+";","margin"===n&&"\n padding-left: "+o+"px;\n padding-top: "+a+"px;\n padding-right: "+i+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+c+"px "+r+";\n ","padding"===n&&"padding-right: "+c+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n ."+zeroRightClassName+" {\n right: "+c+"px "+r+";\n }\n \n ."+fullWidthClassName+" {\n margin-right: "+c+"px "+r+";\n }\n \n ."+zeroRightClassName+" ."+zeroRightClassName+" {\n right: 0 "+r+";\n }\n \n ."+fullWidthClassName+" ."+fullWidthClassName+" {\n margin-right: 0 "+r+";\n }\n"},RemoveScrollBar=function(e){var t=React.useState(getGapWidth(e.gapMode)),n=t[0],r=t[1];React.useEffect((function(){r(getGapWidth(e.gapMode))}),[e.gapMode]);var o=e.noRelative,a=e.noImportant,i=e.gapMode,c=void 0===i?"margin":i;return React.createElement(Style,{styles:getStyles(n,!o,c,a?"":"!important")})},elementCouldBeVScrolled=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},elementCouldBeHScrolled=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},locationCouldBeScrolled=function(e,t){var n=t;do{if(elementCouldBeScrolled(e,n)){var r=getScrollVariables(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},getVScrollVariables=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},getHScrollVariables=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},elementCouldBeScrolled=function(e,t){return"v"===e?elementCouldBeVScrolled(t):elementCouldBeHScrolled(t)},getScrollVariables=function(e,t){return"v"===e?getVScrollVariables(t):getHScrollVariables(t)},handleScroll=function(e,t,n,r,o){var a=r,i=n.target,c=t.contains(i),u=!1,s=a>0,l=0,d=0;do{var p=getScrollVariables(e,i),f=p[0],m=p[1]-p[2]-f;(f||m)&&elementCouldBeScrolled(e,i)&&(l+=m,d+=f),i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return s&&(o&&0===l||!o&&a>l)?u=!0:!s&&(o&&0===d||!o&&-a>d)&&(u=!0),u},passiveSupported=!1;if("undefined"!=typeof window)try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch(e){passiveSupported=!1}var nonPassive=!!passiveSupported&&{passive:!1},getTouchXY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(e){return[e.deltaX,e.deltaY]},extractRef$1=function(e){return e&&"current"in e?e.current:e},deltaCompare=function(e,t){return e[0]===t[0]&&e[1]===t[1]},generateStyle=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},idCounter=0,lockStack=[];function RemoveScrollSideCar(e){var t=React.useRef([]),n=React.useRef([0,0]),r=React.useRef(),o=React.useState(idCounter++)[0],a=React.useState((function(){return styleSingleton()}))[0],i=React.useRef(e);React.useEffect((function(){i.current=e}),[e]),React.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(extractRef$1)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=React.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=getTouchXY(e),c=n.current,u="deltaX"in e?e.deltaX:c[0]-a[0],s="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v",p=locationCouldBeScrolled(d,l);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=locationCouldBeScrolled(d,l)),!p)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var f=r.current||o;return handleScroll(f,t,e,"h"==f?u:s,!0)}),[]),u=React.useCallback((function(e){var n=e;if(lockStack.length&&lockStack[lockStack.length-1]===a){var r="deltaY"in n?getDeltaXY(n):getTouchXY(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&deltaCompare(e.delta,r)}))[0];if(o&&o.should)n.preventDefault();else if(!o){var u=(i.current.shards||[]).map(extractRef$1).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?c(n,u[0]):!i.current.noIsolation)&&n.preventDefault()}}}),[]),s=React.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),l=React.useCallback((function(e){n.current=getTouchXY(e),r.current=void 0}),[]),d=React.useCallback((function(t){s(t.type,getDeltaXY(t),t.target,c(t,e.lockRef.current))}),[]),p=React.useCallback((function(t){s(t.type,getTouchXY(t),t.target,c(t,e.lockRef.current))}),[]);React.useEffect((function(){return lockStack.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,nonPassive),document.addEventListener("touchmove",u,nonPassive),document.addEventListener("touchstart",l,nonPassive),function(){lockStack=lockStack.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,nonPassive),document.removeEventListener("touchmove",u,nonPassive),document.removeEventListener("touchstart",l,nonPassive)}}),[]);var f=e.removeScrollBar,m=e.inert;return React.createElement(React.Fragment,null,m?React.createElement(a,{styles:generateStyle(o)}):null,f?React.createElement(RemoveScrollBar,{gapMode:"margin"}):null)}var SideCar$1=exportSidecar(effectCar,RemoveScrollSideCar),ReactRemoveScroll=React.forwardRef((function(e,t){return React.createElement(RemoveScroll,__assign({},e,{ref:t,sideCar:SideCar$1}))}));function _extends$1(){return(_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}ReactRemoveScroll.classNames=RemoveScroll.classNames;var overlayPropTypes={initialFocusRef:function(){return null},allowPinchZoom:propTypes.bool,onDismiss:propTypes.func},DialogOverlay=React.forwardRef((function(e,t){var n=e.isOpen,r=void 0===n||n,o=_objectWithoutPropertiesLoose$1(e,["isOpen"]);return React.useEffect((function(){return checkStyles("dialog")}),[]),r?React__default.createElement(Portal,{"data-reach-dialog-wrapper":""},React__default.createElement(DialogInner,Object.assign({ref:t},o))):null}));"production"!==process.env.NODE_ENV&&(DialogOverlay.displayName="DialogOverlay",DialogOverlay.propTypes=_extends$1({},overlayPropTypes,{isOpen:propTypes.bool}));var DialogInner=React.forwardRef((function(e,t){var n=e.allowPinchZoom,r=e.initialFocusRef,o=e.onClick,a=e.onDismiss,i=void 0===a?noop:a,c=e.onMouseDown,u=e.onKeyDown,s=_objectWithoutPropertiesLoose$1(e,["allowPinchZoom","initialFocusRef","onClick","onDismiss","onMouseDown","onKeyDown"]),l=React.useRef(null),d=React.useRef(null),p=useForkedRef(d,t),f=React.useCallback((function(){r&&r.current&&r.current.focus()}),[r]);return React.useEffect((function(){return d.current?createAriaHider(d.current):void 0}),[]),React__default.createElement(FocusLockCombination,{autoFocus:!0,returnFocus:!0,onActivation:f},React__default.createElement(ReactRemoveScroll,{allowPinchZoom:n},React__default.createElement("div",Object.assign({},s,{ref:p,"data-reach-dialog-overlay":"",onClick:wrapEvent(o,(function(e){l.current===e.target&&(e.stopPropagation(),i(e))})),onKeyDown:wrapEvent(u,(function(e){"Escape"===e.key&&(e.stopPropagation(),i(e))})),onMouseDown:wrapEvent(c,(function(e){l.current=e.target}))}))))}));"production"!==process.env.NODE_ENV&&(DialogOverlay.displayName="DialogOverlay",DialogOverlay.propTypes=_extends$1({},overlayPropTypes));var DialogContent=React.forwardRef((function(e,t){var n=e.onClick,r=_objectWithoutPropertiesLoose$1(e,["onClick","onKeyDown"]);return React__default.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},r,{ref:t,"data-reach-dialog-content":"",onClick:wrapEvent(n,(function(e){e.stopPropagation()}))}))}));"production"!==process.env.NODE_ENV&&(DialogContent.displayName="DialogContent",DialogContent.propTypes={"aria-label":ariaLabelType,"aria-labelledby":ariaLabelType});var Dialog=React.forwardRef((function(e,t){var n=e.isOpen,r=e.onDismiss,o=void 0===r?noop:r,a=e.initialFocusRef,i=_objectWithoutPropertiesLoose$1(e,["isOpen","onDismiss","initialFocusRef"]);return React__default.createElement(DialogOverlay,{initialFocusRef:a,isOpen:n,onDismiss:o},React__default.createElement(DialogContent,Object.assign({ref:t},i)))}));function createAriaHider(e){var t=[],n=[],r=getOwnerDocument(e)||document;return e?(Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var o,a;if(r!==(null===(o=e.parentNode)||void 0===o?void 0:null===(a=o.parentNode)||void 0===a?void 0:a.parentNode)){var i=r.getAttribute("aria-hidden");null!==i&&"false"!==i||(t.push(i),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}):("production"!==process.env.NODE_ENV&&console.warn("A ref has not yet been attached to a dialog node when attempting to call `createAriaHider`."),noop)}function ariaLabelType(e,t,n,r,o){var a="\nSee https://www.w3.org/TR/wai-aria/#aria-label for details.";return e["aria-label"]||e["aria-labelledby"]?e["aria-label"]&&e["aria-labelledby"]?new Error("You provided both `aria-label` and `aria-labelledby` props to a <"+n+">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <"+n+">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag."+a):null==e[t]||isString(e[t])?null:new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected `string`, received `"+(Array.isArray(o)?"array":typeof o)+"`."):new Error("A <"+n+"> must have either an `aria-label` or `aria-labelledby` prop.\n "+a)}"production"!==process.env.NODE_ENV&&(Dialog.displayName="Dialog",Dialog.propTypes={isOpen:propTypes.bool,onDismiss:propTypes.func,"aria-label":ariaLabelType,"aria-labelledby":ariaLabelType}),exports.ModalDialogPrimitiveContent=DialogContent,exports.ModalDialogPrimitiveOverlay=DialogOverlay;
var X=function(){return(X=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function Z(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function H(e){return e}function K(e,n){void 0===n&&(n=H);var t=[],r=!1;return{read:function(){if(r)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(e){var o=n(e,r);return t.push(o),function(){t=t.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var a=function(){var t=n;n=[],t.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),t={push:function(e){n.push(e),i()},filter:function(e){return n=n.filter(e),t}}}}}function J(e,n){return void 0===n&&(n=H),K(e,n)}function Q(e){void 0===e&&(e={});var n=K(null);return n.options=X({async:!0,ssr:!1},e),n}var ee=function(e){var t=e.sideCar,r=Z(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return n.createElement(o,X({},r))};ee.isSideCarExport=!0;var ne=J({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),te=J(),re=J(),oe=Q({async:!0}),ae=[],ie=t.forwardRef((function(e,r){var o,a=n.useState(),i=a[0],u=a[1],c=n.useRef(),l=n.useRef(!1),s=n.useRef(null),f=e.children,p=e.disabled,v=e.noFocusGuards,y=e.persistentFocus,m=e.autoFocus,h=e.allowTextSelection,b=e.group,g=e.className,w=e.whiteList,E=e.shards,O=void 0===E?ae:E,S=e.as,x=void 0===S?"div":S,N=e.lockProps,C=void 0===N?{}:N,P=e.sideCar,k=e.returnFocus,j=e.onActivation,T=e.onDeactivation,M=n.useState({})[0],D=n.useCallback((function(){s.current=s.current||document&&document.activeElement,c.current&&j&&j(c.current),l.current=!0}),[j]),R=n.useCallback((function(){l.current=!1,T&&T(c.current)}),[T]),I=n.useCallback((function(e){var n=s.current;if(Boolean(k)&&n&&n.focus){var t="object"==typeof k?k:void 0;s.current=null,e?Promise.resolve().then((function(){return n.focus(t)})):n.focus(t)}}),[k]),_=n.useCallback((function(e){l.current&&ne.useMedium(e)}),[]),F=te.useMedium,A=n.useCallback((function(e){c.current!==e&&(c.current=e,u(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==h&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),t.useEffect((function(){c.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var $=d(((o={})["data-focus-lock-disabled"]=p&&"disabled",o["data-focus-lock"]=b,o),C),L=!0!==v,V=L&&"tail"!==v,W=z([r,A]);return t.createElement(t.Fragment,null,L&&[t.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:U}),t.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:U})],!p&&t.createElement(P,{id:M,sideCar:oe,observed:i,disabled:p,persistentFocus:y,autoFocus:m,whiteList:w,shards:O,onActivation:D,onDeactivation:R,returnFocus:I}),t.createElement(x,d({ref:W},$,{className:g,onBlur:F,onFocus:_}),f),V&&t.createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:U}))}));ie.propTypes="production"!==process.env.NODE_ENV?{children:q,disabled:A,returnFocus:B([A,L]),noFocusGuards:A,allowTextSelection:A,autoFocus:A,persistentFocus:A,group:V,className:V,whiteList:$,shards:Y(W),as:B([V,$,L]),lockProps:L,onActivation:$,onDeactivation:$,sideCar:W.isRequired}:{},ie.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,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=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},ce=function(e){return Array.isArray(e)?e:[e]},le=function(e,n){var t=e.tabIndex-n.tabIndex,r=e.index-n.index;if(t){if(!e.tabIndex)return 1;if(!n.tabIndex)return-1}return t||r},se=function(e,n,t){return ue(e).map((function(e,n){return{node:e,index:n,tabIndex:t&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!n||e.tabIndex>=0})).sort(le)},fe=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],de=fe.join(","),pe=de+", [data-focus-guard]",ve=function(e,n){return e.reduce((function(e,t){return e.concat(ue(t.querySelectorAll(n?pe:de)),t.parentNode?ue(t.parentNode.querySelectorAll(fe.join(","))).filter((function(e){return e===t})):[])}),[])},ye=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(n),n.parentNode&&e(n.parentNode,t),t},me=function(e,n){for(var t=ye(e),r=ye(n),o=0;o<t.length;o+=1){var a=t[o];if(r.indexOf(a)>=0)return a}return!1},he=function(e){return ue(e).filter((function(e){return function e(n){return!n||n===document||n.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(n,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&e(n.parentNode);var t}(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},be=function(e,n){return se(he(ve(e,n)),!0,n)},ge=function(e){return he((n=e.querySelectorAll("[data-autofocus-inside]"),ue(n).map((function(e){return ve([e])})).reduce((function(e,n){return e.concat(n)}),[])));var n},we=function(e){return"INPUT"===e.tagName&&"radio"===e.type},Ee=function(e){return e[0]&&e.length>1&&we(e[0])&&e[0].name?function(e,n){return n.filter(we).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e[0],e):e[0]},Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se=function(e){return ce(e).filter(Boolean).reduce((function(e,n){var t=n.getAttribute("data-focus-lock");return e.push.apply(e,t?function e(n){for(var t=n.length,r=0;r<t;r+=1)for(var o=function(t){if(r!==t&&n[r].contains(n[t]))return{v:e(n.filter((function(e){return e!==n[t]})))}},a=0;a<t;a+=1){var i=o(a);if("object"===(void 0===i?"undefined":Oe(i)))return i.v}return n}(ue(function e(n){return n.parentNode?e(n.parentNode):n}(n).querySelectorAll('[data-focus-lock="'+t+'"]:not([data-focus-lock-disabled="disabled"])'))):[n]),e}),[])},xe=function(e){return e.dataset&&e.dataset.focusGuard},Ne=function(e){return!xe(e)},Ce=function(e,n,t){var r=ce(e),o=ce(n),a=r[0],i=null;return o.filter(Boolean).forEach((function(e){i=me(i||e,e)||i,t.filter(Boolean).forEach((function(e){var n=me(a,e);n&&(i=!i||n.contains(i)?n:me(n,i))}))})),i},Pe=function(e,n){var t=document&&document.activeElement,r=Se(e).filter(Ne),o=Ce(t||e,e,r),a=be(r).filter((function(e){var n=e.node;return Ne(n)}));if(a[0]||(a=(i=r,se(he(ve(i)),!1)).filter((function(e){var n=e.node;return Ne(n)})))[0]){var i,u,c,l,s,f=be([o]).map((function(e){return e.node})),d=(u=f,c=a,l=new Map,c.forEach((function(e){return l.set(e.node,e)})),u.map((function(e){return l.get(e)})).filter(Boolean)),p=d.map((function(e){return e.node})),v=function(e,n,t,r,o){var a=e.length,i=e[0],u=e[a-1];if(!(e.indexOf(t)>=0)){var c=n.indexOf(t),l=n.indexOf(r||c),s=e.indexOf(r),f=c-l,d=n.indexOf(i),p=n.indexOf(u);return-1===c||-1===s?e.indexOf(o.length?Ee(o):Ee(e)):!f&&s>=0?s:c<=d&&xe(t)&&Math.abs(f)>1?0:f&&Math.abs(f)>1?s:c<=d?a-1:c>p?0:f?Math.abs(f)>1?s:(a+s+f)%a:void 0}}(p,f,t,n,p.filter((s=function(e){return e.reduce((function(e,n){return e.concat(ge(n))}),[])}(r),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||s.indexOf(e)>=0})));return void 0===v?v:d[v]}},ke=function(e){return e===document.activeElement},je=function(e){var n=document&&document.activeElement;return!(!n||n.dataset&&n.dataset.focusGuard)&&Se(e).reduce((function(e,t){return e||t.contains(n)||function(e){return n=ue(e.querySelectorAll("iframe")),t=ke,!!n.filter((function(e){return e===t}))[0];var n,t}(t)}),!1)},Te=0,Me=!1,De=function(e,n){var t,r=Pe(e,n);if(!Me&&r){if(Te>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Me=!0,void setTimeout((function(){Me=!1}),1);Te++,(t=r.node).focus(),t.contentWindow&&t.contentWindow.focus(),Te--}};function Re(e){var n=window.setImmediate;void 0!==n?n(e):setTimeout(e,1)}var Ie=function(){return document&&document.activeElement===document.body||document&&ue(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},_e=null,Fe=null,Ae=null,$e=!1,Le=function(){return!0};function Ve(e,n,t,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else{if(!i.lockItem)break;if(a!==e)return;o=null}}while((a+=t)!==n);o&&(o.node.tabIndex=0)}var We=function(e){return e&&"current"in e?e.current:e},qe=function(){var e,n,t,r,o,a,i=!1;if(_e){var u=_e,c=u.observed,l=u.persistentFocus,s=u.autoFocus,f=u.shards,d=c||Ae&&Ae.portaledElement,p=document&&document.activeElement;if(d){var v=[d].concat(f.map(We).filter(Boolean));if(p&&!function(e){return(_e.whiteList||Le)(e)}(p)||(l||$e||!Ie()||!Fe&&s)&&(!d||je(v)||(a=p,Ae&&Ae.portaledElement===a)||(document&&!Fe&&p&&!s?(p.blur(),document.body.focus()):(i=De(v,Fe),Ae={})),$e=!1,Fe=document&&document.activeElement),document){var y=document&&document.activeElement,m=(n=Se(e=v).filter(Ne),t=Ce(e,e,n),r=be([t],!0),o=be(n).filter((function(e){var n=e.node;return Ne(n)})).map((function(e){return e.node})),r.map((function(e){var n=e.node;return{node:n,index:e.index,lockItem:o.indexOf(n)>=0,guard:xe(n)}}))),h=m.find((function(e){return e.node===y}));if(h){m.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")}));var b=m.indexOf(h);Ve(b,m.length,1,m),Ve(b,-1,-1,m)}}}}return i},Be=function(e){qe()&&e&&(e.stopPropagation(),e.preventDefault())},Ye=function(){return Re(qe)},ze=function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(Ae={observerNode:t,portaledElement:n})};"production"!==process.env.NODE_ENV&&F.node.isRequired;var Ue=function(){$e=!0};ne.assignSyncMedium(ze),te.assignMedium(Ye),re.assignMedium((function(e){return e({moveFocusInside:De,focusInside:je})}));var Ge=function(e,r){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof r)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(o){if("production"!==process.env.NODE_ENV&&"function"!=typeof o)throw new Error("Expected WrappedComponent to be a React component.");var a,i=[];function u(){a=e(i.map((function(e){return e.props}))),r(a)}var c,l,s,f=function(e){var n,r;function c(){return e.apply(this,arguments)||this}r=e,(n=c).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,c.peek=function(){return a};var l=c.prototype;return l.componentDidMount=function(){i.push(this),u()},l.componentDidUpdate=function(){u()},l.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),u()},l.render=function(){return t.createElement(o,this.props)},c}(n.PureComponent);return c=f,l="displayName",s="SideEffect("+function(e){return e.displayName||e.name||"Component"}(o)+")",l in c?Object.defineProperty(c,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):c[l]=s,f}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!_e&&(document.addEventListener("focusin",Be,!0),document.addEventListener("focusout",Ye),window.addEventListener("blur",Ue));var t=_e,r=t&&n&&n.id===t.id;_e=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(Fe=null,r&&t.observed===n.observed||n.onActivation(),qe(),Re(qe)):(document.removeEventListener("focusin",Be,!0),document.removeEventListener("focusout",Ye),window.removeEventListener("blur",Ue),Fe=null)}))((function(){return null})),Xe=t.forwardRef((function(e,n){return t.createElement(ie,d({sideCar:Ge,ref:n},e))})),Ze=ie.propTypes||{},He=(Ze.sideCar,function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(Ze,["sideCar"]));Xe.propTypes=He;var Ke=Q(),Je=function(){},Qe=n.forwardRef((function(e,t){var r=n.useRef(null),o=n.useState({onScrollCapture:Je,onWheelCapture:Je,onTouchMoveCapture:Je}),a=o[0],i=o[1],u=e.forwardProps,c=e.children,l=e.className,s=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,v=e.noIsolation,y=e.inert,m=e.allowPinchZoom,h=Z(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom"]),b=p,g=X({ref:z([r,t])},h,a);return n.createElement(n.Fragment,null,f&&n.createElement(b,{sideCar:Ke,removeScrollBar:s,shards:d,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:r}),u?n.cloneElement(n.Children.only(c),g):n.createElement("div",X({},g,{className:l}),c))}));Qe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qe.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};var en=function(){var e=0,n=null;return{add:function(t){var r,o;0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");return e.type="text/css",e}())&&(o=t,(r=n).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),e++},remove:function(){!--e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},nn=function(){var e,t=(e=en(),function(t){n.useEffect((function(){return e.add(t),function(){e.remove()}}),[])});return function(e){var n=e.styles;return t(n),null}},tn={left:0,top:0,right:0,gap:0},rn=function(e){return parseInt(e||"",10)||0},on=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tn;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[rn(t),rn(r),rn(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},an=nn(),un=function(e,n,t,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===t&&(t="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+u+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[n&&"position: relative "+r+";","margin"===t&&"\n padding-left: "+o+"px;\n padding-top: "+a+"px;\n padding-right: "+i+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+u+"px "+r+";\n ","padding"===t&&"padding-right: "+u+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n .right-scroll-bar-position {\n right: "+u+"px "+r+";\n }\n \n .width-before-scroll-bar {\n margin-right: "+u+"px "+r+";\n }\n \n .right-scroll-bar-position .right-scroll-bar-position {\n right: 0 "+r+";\n }\n \n .width-before-scroll-bar .width-before-scroll-bar {\n margin-right: 0 "+r+";\n }\n"},cn=function(e){var t=n.useState(on(e.gapMode)),r=t[0],o=t[1];n.useEffect((function(){o(on(e.gapMode))}),[e.gapMode]);var a=e.noRelative,i=e.noImportant,u=e.gapMode,c=void 0===u?"margin":u;return n.createElement(an,{styles:un(r,!a,c,i?"":"!important")})},ln=function(e,n){var t=n;do{if(sn(e,t)){var r=fn(e,t);if(r[1]>r[2])return!0}t=t.parentNode}while(t&&t!==document.body);return!1},sn=function(e,n){return"v"===e?function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowY&&!(n.overflowY===n.overflowX&&"visible"===n.overflowY)}(n):function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowX&&!(n.overflowY===n.overflowX&&"visible"===n.overflowX)}(n)},fn=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},dn=!1;if("undefined"!=typeof window)try{var pn=Object.defineProperty({},"passive",{get:function(){return dn=!0,!0}});window.addEventListener("test",pn,pn),window.removeEventListener("test",pn,pn)}catch(e){dn=!1}var vn=!!dn&&{passive:!1},yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mn=function(e){return[e.deltaX,e.deltaY]},hn=function(e){return e&&"current"in e?e.current:e},bn=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},gn=0,wn=[];var En,On=(En=function(e){var t=n.useRef([]),r=n.useRef([0,0]),o=n.useRef(),a=n.useState(gn++)[0],i=n.useState((function(){return nn()}))[0],u=n.useRef(e);n.useEffect((function(){u.current=e}),[e]),n.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+a);var n=[e.lockRef.current].concat((e.shards||[]).map(hn)).filter(Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-"+a)})),function(){document.body.classList.remove("block-interactivity-"+a),n.forEach((function(e){return e.classList.remove("allow-interactivity-"+a)}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=n.useCallback((function(e,n){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var t,a=yn(e),i=r.current,c="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v",d=ln(f,s);if(!d)return!0;if(d?t=f:(t="v"===f?"h":"v",d=ln(f,s)),!d)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=t),!t)return!0;var p=o.current||t;return function(e,n,t,r,o){var a=r,i=t.target,u=n.contains(i),c=!1,l=a>0,s=0,f=0;do{var d=fn(e,i),p=d[0],v=d[1]-d[2]-p;(p||v)&&sn(e,i)&&(s+=v,f+=p),i=i.parentNode}while(!u&&i!==document.body||u&&(n.contains(i)||n===i));return(l&&(o&&0===s||!o&&a>s)||!l&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,n,e,"h"==p?c:l,!0)}),[]),l=n.useCallback((function(e){var n=e;if(wn.length&&wn[wn.length-1]===i){var r="deltaY"in n?mn(n):yn(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var a=(u.current.shards||[]).map(hn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?c(n,a[0]):!u.current.noIsolation)&&n.preventDefault()}}}),[]),s=n.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=n.useCallback((function(e){r.current=yn(e),o.current=void 0}),[]),d=n.useCallback((function(n){s(n.type,mn(n),n.target,c(n,e.lockRef.current))}),[]),p=n.useCallback((function(n){s(n.type,yn(n),n.target,c(n,e.lockRef.current))}),[]);n.useEffect((function(){return wn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,vn),document.addEventListener("touchmove",l,vn),document.addEventListener("touchstart",f,vn),function(){wn=wn.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,vn),document.removeEventListener("touchmove",l,vn),document.removeEventListener("touchstart",f,vn)}}),[]);var v=e.removeScrollBar,y=e.inert;return n.createElement(n.Fragment,null,y?n.createElement(i,{styles:bn(a)}):null,v?n.createElement(cn,{gapMode:"margin"}):null)},Ke.useMedium(En),ee),Sn=n.forwardRef((function(e,t){return n.createElement(Qe,X({},e,{ref:t,sideCar:On}))}));function xn(){return(xn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Nn(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}Sn.classNames=Qe.classNames;var Cn={initialFocusRef:function(){return null},allowPinchZoom:F.bool,onDismiss:F.func},Pn=n.forwardRef((function(e,r){var a=e.isOpen,u=void 0===a||a,c=Nn(e,["isOpen"]);return n.useEffect((function(){return i("dialog")}),[]),u?t.createElement(o,{"data-reach-dialog-wrapper":""},t.createElement(kn,Object.assign({ref:r},c))):null}));"production"!==process.env.NODE_ENV&&(Pn.displayName="DialogOverlay",Pn.propTypes=xn({},Cn,{isOpen:F.bool}));var kn=n.forwardRef((function(e,r){var o=e.allowPinchZoom,a=e.initialFocusRef,i=e.onClick,u=e.onDismiss,d=void 0===u?s:u,p=e.onMouseDown,v=e.onKeyDown,y=Nn(e,["allowPinchZoom","initialFocusRef","onClick","onDismiss","onMouseDown","onKeyDown"]),m=n.useRef(null),h=n.useRef(null),b=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(n){c(n,e)}))}}),t)}(h,r),g=n.useCallback((function(){a&&a.current&&a.current.focus()}),[a]);return n.useEffect((function(){return h.current?function(e){var n=[],t=[],r=(o=e,(o&&o.ownerDocument?o.ownerDocument:l()?document:null)||document);var o;if(!e)return"production"!==process.env.NODE_ENV&&console.warn("A ref has not yet been attached to a dialog node when attempting to call `createAriaHider`."),s;return Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var o,a;if(r!==(null===(o=e.parentNode)||void 0===o||null===(a=o.parentNode)||void 0===a?void 0:a.parentNode)){var i=r.getAttribute("aria-hidden");null!==i&&"false"!==i||(n.push(i),t.push(r),r.setAttribute("aria-hidden","true"))}})),function(){t.forEach((function(e,t){var r=n[t];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}}(h.current):void 0}),[]),t.createElement(Xe,{autoFocus:!0,returnFocus:!0,onActivation:g},t.createElement(Sn,{allowPinchZoom:o},t.createElement("div",Object.assign({},y,{ref:b,"data-reach-dialog-overlay":"",onClick:f(i,(function(e){m.current===e.target&&(e.stopPropagation(),d(e))})),onKeyDown:f(v,(function(e){"Escape"===e.key&&(e.stopPropagation(),d(e))})),onMouseDown:f(p,(function(e){m.current=e.target}))}))))}));"production"!==process.env.NODE_ENV&&(Pn.displayName="DialogOverlay",Pn.propTypes=xn({},Cn));var jn=n.forwardRef((function(e,n){var r=e.onClick,o=Nn(e,["onClick","onKeyDown"]);return t.createElement("div",Object.assign({"aria-modal":"true",role:"dialog",tabIndex:-1},o,{ref:n,"data-reach-dialog-content":"",onClick:f(r,(function(e){e.stopPropagation()}))}))}));"production"!==process.env.NODE_ENV&&(jn.displayName="DialogContent",jn.propTypes={"aria-label":Mn,"aria-labelledby":Mn});var Tn=n.forwardRef((function(e,n){var r=e.isOpen,o=e.onDismiss,a=void 0===o?s:o,i=e.initialFocusRef,u=Nn(e,["isOpen","onDismiss","initialFocusRef"]);return t.createElement(Pn,{initialFocusRef:i,isOpen:r,onDismiss:a},t.createElement(jn,Object.assign({ref:n},u)))}));function Mn(e,n,t,r,o){var a="\nSee https://www.w3.org/TR/wai-aria/#aria-label for details.";return e["aria-label"]||e["aria-labelledby"]?e["aria-label"]&&e["aria-labelledby"]?new Error("You provided both `aria-label` and `aria-labelledby` props to a <"+t+">. If the a label for this component is visible on the screen, that label's component should be given a unique ID prop, and that ID should be passed as the `aria-labelledby` prop into <"+t+">. If the label cannot be determined programmatically from the content of the element, an alternative label should be provided as the `aria-label` prop, which will be used as an `aria-label` on the HTML tag."+a):null!=e[n]&&"string"!=typeof e[n]?new Error("Invalid prop `"+n+"` supplied to `"+t+"`. Expected `string`, received `"+(Array.isArray(o)?"array":typeof o)+"`."):null:new Error("A <"+t+"> must have either an `aria-label` or `aria-labelledby` prop.\n "+a)}"production"!==process.env.NODE_ENV&&(Tn.displayName="Dialog",Tn.propTypes={isOpen:F.bool,onDismiss:F.func,"aria-label":Mn,"aria-labelledby":Mn}),exports.ModalDialogPrimitiveContent=jn,exports.ModalDialogPrimitiveOverlay=Pn;
{
"name": "@twilio-paste/modal-dialog-primitive",
"version": "0.1.0",
"version": "0.1.1",
"category": "overlay",

@@ -38,12 +38,13 @@ "status": "beta",

"devDependencies": {
"@babel/core": "^7.8.4",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"rollup": "^1.16.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-node-resolve": "^5.1.0",
"rollup-plugin-terser": "^5.0.0",
"rollup-plugin-typescript2": "^0.21.2",
"typedoc": "^0.16.9",
"typescript": "^3.5.2"
"typescript": "3.7.5"
},
"gitHead": "834d898dc7296445c1c5c663edf3dfa29e8e94a3"
"gitHead": "2cf3ec5e09466356561b22bb22d4402d93ebaabd"
}