(()=>{var e,a,t={411(e,a,t){var n;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(n=function(){return o}.call(a,t,a,e))||(e.exports=n)}()},4146(e,a,t){"use strict";var n=t(3404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function s(e){return n.isMemo(e)?l:i[e.$$typeof]||r}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=l;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,b=Object.prototype;e.exports=function e(a,t,n){if("string"!=typeof t){if(b){var r=v(t);r&&r!==b&&e(a,r,n)}var l=u(t);d&&(l=l.concat(d(t)));for(var i=s(a),h=s(t),f=0;f-1&&e%1==0&&e-1}},1175(e,a,t){var n=t(6025);e.exports=function(e,a){var t=this.__data__,r=n(t,e);return r<0?(++this.size,t.push([e,a])):t[r][1]=a,this}},3040(e,a,t){var n=t(3930),r=t(79),o=t(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}},7670(e,a,t){var n=t(2651);e.exports=function(e){var a=n(this,e).delete(e);return this.size-=a?1:0,a}},289(e,a,t){var n=t(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,a,t){var n=t(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,a,t){var n=t(2651);e.exports=function(e,a){var t=n(this,e),r=t.size;return t.set(e,a),this.size+=t.size==r?0:1,this}},2224(e,a,t){var n=t(104);e.exports=function(e){var a=n(e,function(e){return 500===t.size&&t.clear(),e}),t=a.cache;return a}},1042(e,a,t){var n=t(6110)(Object,"create");e.exports=n},3650(e,a,t){var n=t(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var a=[];if(null!=e)for(var t in Object(e))a.push(t);return a}},6009(e,a,t){e=t.nmd(e);var n=t(4840),r=a&&!a.nodeType&&a,o=r&&e&&!e.nodeType&&e,l=o&&o.exports===r&&n.process,i=function(){try{return o&&o.require&&o.require("util").types||l&&l.binding&&l.binding("util")}catch(e){}}();e.exports=i},9350(e){var a=Object.prototype.toString;e.exports=function(e){return a.call(e)}},4335(e){e.exports=function(e,a){return function(t){return e(a(t))}}},9325(e,a,t){var n=t(4840),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o},1420(e,a,t){var n=t(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var a=this.__data__,t=a.delete(e);return this.size=a.size,t}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,a,t){var n=t(79),r=t(8223),o=t(3661);e.exports=function(e,a){var t=this.__data__;if(t instanceof n){var l=t.__data__;if(!r||l.length<199)return l.push([e,a]),this.size=++t.size,this;t=this.__data__=new o(l)}return t.set(e,a),this.size=t.size,this}},1802(e,a,t){var n=t(2224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,l=n(function(e){var a=[];return 46===e.charCodeAt(0)&&a.push(""),e.replace(r,function(e,t,n,r){a.push(n?r.replace(o,"$1"):t||e)}),a});e.exports=l},7797(e,a,t){var n=t(4394);e.exports=function(e){if("string"==typeof e||n(e))return e;var a=e+"";return"0"==a&&1/e==-1/0?"-0":a}},7473(e){var a=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2629(e,a,t){var n=t(9999);e.exports=function(e){return n(e,4)}},8055(e,a,t){var n=t(9999);e.exports=function(e){return n(e,5)}},5288(e){e.exports=function(e,a){return e===a||e!=e&&a!=a}},2428(e,a,t){var n=t(7534),r=t(346),o=Object.prototype,l=o.hasOwnProperty,i=o.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return r(e)&&l.call(e,"callee")&&!i.call(e,"callee")};e.exports=s},6449(e){var a=Array.isArray;e.exports=a},4894(e,a,t){var n=t(1882),r=t(294);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},3656(e,a,t){e=t.nmd(e);var n=t(9325),r=t(9935),o=a&&!a.nodeType&&a,l=o&&e&&!e.nodeType&&e,i=l&&l.exports===o?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r;e.exports=s},1882(e,a,t){var n=t(2552),r=t(3805);e.exports=function(e){if(!r(e))return!1;var a=n(e);return"[object Function]"==a||"[object GeneratorFunction]"==a||"[object AsyncFunction]"==a||"[object Proxy]"==a}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,a,t){var n=t(9172),r=t(7301),o=t(6009),l=o&&o.isMap,i=l?r(l):n;e.exports=i},3805(e){e.exports=function(e){var a=typeof e;return null!=e&&("object"==a||"function"==a)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,a,t){var n=t(2552),r=t(8879),o=t(346),l=Function.prototype,i=Object.prototype,s=l.toString,c=i.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var a=r(e);if(null===a)return!0;var t=c.call(a,"constructor")&&a.constructor;return"function"==typeof t&&t instanceof t&&s.call(t)==u}},8440(e,a,t){var n=t(6038),r=t(7301),o=t(6009),l=o&&o.isSet,i=l?r(l):n;e.exports=i},4394(e,a,t){var n=t(2552),r=t(346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},7167(e,a,t){var n=t(4901),r=t(7301),o=t(6009),l=o&&o.isTypedArray,i=l?r(l):n;e.exports=i},5950(e,a,t){var n=t(695),r=t(8984),o=t(4894);e.exports=function(e){return o(e)?n(e):r(e)}},7241(e,a,t){var n=t(695),r=t(2903),o=t(4894);e.exports=function(e){return o(e)?n(e,!0):r(e)}},104(e,a,t){var n=t(3661);function r(e,a){if("function"!=typeof e||null!=a&&"function"!=typeof a)throw new TypeError("Expected a function");var t=function(){var n=arguments,r=a?a.apply(this,n):n[0],o=t.cache;if(o.has(r))return o.get(r);var l=e.apply(this,n);return t.cache=o.set(r,l)||o,l};return t.cache=new(r.Cache||n),t}r.Cache=n,e.exports=r},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},2072(e,a,t){var n=t(4932),r=t(3007),o=t(6449),l=t(4394),i=t(1802),s=t(7797),c=t(3222);e.exports=function(e){return o(e)?n(e,s):l(e)?[e]:r(i(c(e)))}},3222(e,a,t){var n=t(7556);e.exports=function(e){return null==e?"":n(e)}},2694(e,a,t){"use strict";var n=t(6925);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,a,t,r,o,l){if(l!==n){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 a(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,elementType:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:r};return t.PropTypes=t,t}},5556(e,a,t){e.exports=t(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5338(e,a,t){"use strict";var n=t(5795);a.H=n.createRoot,n.hydrateRoot},115(e){"use strict";var a=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(e,l){if(e===l)return!0;if(e&&l&&"object"==typeof e&&"object"==typeof l){var i,s,c,u=a(e),d=a(l);if(u&&d){if((s=e.length)!=l.length)return!1;for(i=s;0!==i--;)if(!o(e[i],l[i]))return!1;return!0}if(u!=d)return!1;var p=e instanceof Date,v=l instanceof Date;if(p!=v)return!1;if(p&&v)return e.getTime()==l.getTime();var b=e instanceof RegExp,h=l instanceof RegExp;if(b!=h)return!1;if(b&&h)return e.toString()==l.toString();var f=t(e);if((s=f.length)!==t(l).length)return!1;for(i=s;0!==i--;)if(!n.call(l,f[i]))return!1;if(r&&e instanceof Element&&l instanceof Element)return e===l;for(i=s;0!==i--;)if(!("_owner"===(c=f[i])&&e.$$typeof||o(e[c],l[c])))return!1;return!0}return e!=e&&l!=l}e.exports=function(e,a){try{return o(e,a)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},1345(e,a,t){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(a){var t=this.constructor.getDerivedStateFromProps(e,a);return null!=t?t:null}.bind(this))}function o(e,a){try{var t=this.props,n=this.state;this.props=e,this.state=a,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,n)}finally{this.props=t,this.state=n}}function l(e){var a=e.prototype;if(!a||!a.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof a.getSnapshotBeforeUpdate)return e;var t=null,l=null,i=null;if("function"==typeof a.componentWillMount?t="componentWillMount":"function"==typeof a.UNSAFE_componentWillMount&&(t="UNSAFE_componentWillMount"),"function"==typeof a.componentWillReceiveProps?l="componentWillReceiveProps":"function"==typeof a.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof a.componentWillUpdate?i="componentWillUpdate":"function"==typeof a.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==t||null!==l||null!==i){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==t?"\n "+t:"")+(null!==l?"\n "+l:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(a.componentWillMount=n,a.componentWillReceiveProps=r),"function"==typeof a.getSnapshotBeforeUpdate){if("function"!=typeof a.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");a.componentWillUpdate=o;var u=a.componentDidUpdate;a.componentDidUpdate=function(e,a,t){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:t;u.call(this,e,a,n)}}return e}t.r(a),t.d(a,{polyfill:()=>l}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},1720(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.bodyOpenClassName=a.portalClassName=void 0;var n=Object.assign||function(e){for(var a=1;a0&&0==(g-=1)&&u.show(a),t.props.shouldFocusAfterRender&&(t.props.shouldReturnFocusAfterClose?(s.returnFocus(t.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),t.props.onAfterClose&&t.props.onAfterClose(),b.default.deregister(t)},t.open=function(){t.beforeOpen(),t.state.afterOpen&&t.state.beforeClose?(clearTimeout(t.closeTimer),t.setState({beforeClose:!1})):(t.props.shouldFocusAfterRender&&(s.setupScopedFocus(t.node),s.markForFocusLater()),t.setState({isOpen:!0},function(){t.openAnimationFrame=requestAnimationFrame(function(){t.setState({afterOpen:!0}),t.props.isOpen&&t.props.onAfterOpen&&t.props.onAfterOpen({overlayEl:t.overlay,contentEl:t.content})})}))},t.close=function(){t.props.closeTimeoutMS>0?t.closeWithTimeout():t.closeWithoutTimeout()},t.focusContent=function(){return t.content&&!t.contentHasFocus()&&t.content.focus({preventScroll:!0})},t.closeWithTimeout=function(){var e=Date.now()+t.props.closeTimeoutMS;t.setState({beforeClose:!0,closesAt:e},function(){t.closeTimer=setTimeout(t.closeWithoutTimeout,t.state.closesAt-Date.now())})},t.closeWithoutTimeout=function(){t.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},t.afterClose)},t.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(t.content,e),t.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),t.requestClose(e))},t.handleOverlayOnClick=function(e){null===t.shouldClose&&(t.shouldClose=!0),t.shouldClose&&t.props.shouldCloseOnOverlayClick&&(t.ownerHandlesClose()?t.requestClose(e):t.focusContent()),t.shouldClose=null},t.handleContentOnMouseUp=function(){t.shouldClose=!1},t.handleOverlayOnMouseDown=function(e){t.props.shouldCloseOnOverlayClick||e.target!=t.overlay||e.preventDefault()},t.handleContentOnClick=function(){t.shouldClose=!1},t.handleContentOnMouseDown=function(){t.shouldClose=!1},t.requestClose=function(e){return t.ownerHandlesClose()&&t.props.onRequestClose(e)},t.ownerHandlesClose=function(){return t.props.onRequestClose},t.shouldBeClosed=function(){return!t.state.isOpen&&!t.state.beforeClose},t.contentHasFocus=function(){return document.activeElement===t.content||t.content.contains(document.activeElement)},t.buildClassName=function(e,a){var n="object"===(void 0===a?"undefined":r(a))?a:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},o=n.base;return t.state.afterOpen&&(o=o+" "+n.afterOpen),t.state.beforeClose&&(o=o+" "+n.beforeClose),"string"==typeof a&&a?o+" "+a:o},t.attributesFromObject=function(e,a){return Object.keys(a).reduce(function(t,n){return t[e+"-"+n]=a[n],t},{})},t.state={afterOpen:!1,beforeClose:!1},t.shouldClose=null,t.moveFromContentToOverlay=null,t}return function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}(a,e),o(a,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,a){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!a.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,a=e.appElement,t=e.ariaHideApp,n=e.htmlOpenClassName,r=e.bodyOpenClassName,o=e.parentSelector,l=o&&o().ownerDocument||document;r&&d.add(l.body,r),n&&d.add(l.getElementsByTagName("html")[0],n),t&&(g+=1,u.hide(a)),b.default.register(this)}},{key:"render",value:function(){var e=this.props,a=e.id,t=e.className,r=e.overlayClassName,o=e.defaultStyles,l=e.children,i=t?{}:o.content,s=r?{}:o.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:n({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:a,ref:this.setContentRef,style:n({},i,this.props.style.content),className:this.buildClassName("content",t),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,l);return this.props.overlayElement(c,d)}}]),a}(l.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:i.default.bool.isRequired,defaultStyles:i.default.shape({content:i.default.object,overlay:i.default.object}),style:i.default.shape({content:i.default.object,overlay:i.default.object}),className:i.default.oneOfType([i.default.string,i.default.object]),overlayClassName:i.default.oneOfType([i.default.string,i.default.object]),parentSelector:i.default.func,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,ariaHideApp:i.default.bool,appElement:i.default.oneOfType([i.default.instanceOf(v.default),i.default.instanceOf(p.SafeHTMLCollection),i.default.instanceOf(p.SafeNodeList),i.default.arrayOf(i.default.instanceOf(v.default))]),onAfterOpen:i.default.func,onAfterClose:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,role:i.default.string,contentLabel:i.default.string,aria:i.default.object,data:i.default.object,children:i.default.node,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func,testId:i.default.string},a.default=y,e.exports=a.default},6462(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.resetState=function(){l&&(l.removeAttribute?l.removeAttribute("aria-hidden"):null!=l.length?l.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(l).forEach(function(e){return e.removeAttribute("aria-hidden")})),l=null},a.log=function(){},a.assertNodeList=i,a.setElement=function(e){var a=e;if("string"==typeof a&&o.canUseDOM){var t=document.querySelectorAll(a);i(t,a),a=t}return l=a||l},a.validateElement=s,a.hide=function(e){var a=!0,t=!1,n=void 0;try{for(var r,o=s(e)[Symbol.iterator]();!(a=(r=o.next()).done);a=!0)r.value.setAttribute("aria-hidden","true")}catch(e){t=!0,n=e}finally{try{!a&&o.return&&o.return()}finally{if(t)throw n}}},a.show=function(e){var a=!0,t=!1,n=void 0;try{for(var r,o=s(e)[Symbol.iterator]();!(a=(r=o.next()).done);a=!0)r.value.removeAttribute("aria-hidden")}catch(e){t=!0,n=e}finally{try{!a&&o.return&&o.return()}finally{if(t)throw n}}},a.documentNotReadyOrSSRTesting=function(){l=null};var n,r=(n=t(9771))&&n.__esModule?n:{default:n},o=t(834),l=null;function i(e,a){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+a+".")}function s(e){var a=e||l;return a?Array.isArray(a)||a instanceof HTMLCollection||a instanceof NodeList?a:[a]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.resetState=function(){for(var e=[o,l],a=0;a0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==l&&document.body.appendChild(l)):(o.parentElement&&o.parentElement.removeChild(o),l.parentElement&&l.parentElement.removeChild(l))})},4838(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var a in t)r(e,t[a]);var o=document.body;for(var l in n)r(o,n[l]);t={},n={}},a.log=function(){};var t={},n={};function r(e,a){e.classList.remove(a)}a.add=function(e,a){return r=e.classList,o="html"==e.nodeName.toLowerCase()?t:n,void a.split(" ").forEach(function(e){!function(e,a){e[a]||(e[a]=0),e[a]+=1}(o,e),r.add(e)});var r,o},a.remove=function(e,a){return r=e.classList,o="html"==e.nodeName.toLowerCase()?t:n,void a.split(" ").forEach(function(e){!function(e,a){e[a]&&(e[a]-=1)}(o,e),0===o[e]&&r.remove(e)});var r,o}},7791(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.resetState=function(){o=[]},a.log=function(){},a.handleBlur=s,a.handleFocus=c,a.markForFocusLater=function(){o.push(document.activeElement)},a.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=null;try{return void(0!==o.length&&(a=o.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",a,"but it is not in the DOM anymore"].join(" "))}},a.popWithoutFocus=function(){o.length>0&&o.pop()},a.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},a.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var n,r=(n=t(2411))&&n.__esModule?n:{default:n},o=[],l=null,i=!1;function s(){i=!0}function c(){if(i){if(i=!1,!l)return;setTimeout(function(){l.contains(document.activeElement)||((0,r.default)(l)[0]||l).focus()},0)}}},9628(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.log=function(){console.log("portalOpenInstances ----------"),console.log(n.openInstances.length),n.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},a.resetState=function(){n=new t};var t=function e(){var a=this;!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===a.openInstances.indexOf(e)&&(a.openInstances.push(e),a.emit("register"))},this.deregister=function(e){var t=a.openInstances.indexOf(e);-1!==t&&(a.openInstances.splice(t,1),a.emit("deregister"))},this.subscribe=function(e){a.subscribers.push(e)},this.emit=function(e){a.subscribers.forEach(function(t){return t(e,a.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},n=new t;a.default=n},834(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.canUseDOM=a.SafeNodeList=a.SafeHTMLCollection=void 0;var n,r=((n=t(411))&&n.__esModule?n:{default:n}).default,o=r.canUseDOM?window.HTMLElement:{};a.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},a.SafeNodeList=r.canUseDOM?window.NodeList:{},a.canUseDOM=r.canUseDOM,a.default=o},7067(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e,a){var t=(0,r.default)(e);if(t.length){var n=void 0,l=a.shiftKey,i=t[0],s=t[t.length-1],c=o();if(e===c){if(!l)return;n=s}if(s!==c||l||(n=i),i===c&&l&&(n=s),n)return a.preventDefault(),void n.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=t.indexOf(c);if(d>-1&&(d+=l?-1:1),void 0===(n=t[d]))return a.preventDefault(),void(n=l?s:i).focus();a.preventDefault(),n.focus()}}else a.preventDefault()};var n,r=(n=t(2411))&&n.__esModule?n:{default:n};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?o(e.activeElement.shadowRoot):e.activeElement}e.exports=a.default},2411(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function e(a){return[].slice.call(a.querySelectorAll("*"),0).reduce(function(a,t){return a.concat(t.shadowRoot?e(t.shadowRoot):[t])},[]).filter(r)};var t=/^(input|select|textarea|button|object|iframe)$/;function n(e){var a=e.offsetWidth<=0&&e.offsetHeight<=0;if(a&&!e.innerHTML)return!0;try{var t=window.getComputedStyle(e),n=t.getPropertyValue("display");return a?"contents"!==n&&function(e,a){return"visible"!==a.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,t):"none"===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function r(e){var a=e.getAttribute("tabindex");null===a&&(a=void 0);var r=isNaN(a);return(r||a>=0)&&function(e,a){var r=e.nodeName.toLowerCase();return(t.test(r)&&!e.disabled||"a"===r&&e.href||a)&&function(e){for(var a=e,t=e.getRootNode&&e.getRootNode();a&&a!==document.body;){if(t&&a===t&&(a=t.host.parentNode),n(a))return!1;a=a.parentNode}return!0}(e)}(e,!r)}e.exports=a.default},312(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n,r=(n=t(1720))&&n.__esModule?n:{default:n};a.default=r.default,e.exports=a.default},9448(e,a){!function(e){"use strict";function a(e,a){e.super_=a,e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function t(e,a){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),a&&a.length&&Object.defineProperty(this,"path",{value:a,enumerable:!0})}function n(e,a,t){n.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:a,enumerable:!0}),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function r(e,a){r.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:a,enumerable:!0})}function o(e,a){o.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:a,enumerable:!0})}function l(e,a,t){l.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:a,enumerable:!0}),Object.defineProperty(this,"item",{value:t,enumerable:!0})}function i(e,a,t){var n=e.slice((t||a)+1||e.length);return e.length=a<0?e.length+a:a,e.push.apply(e,n),e}function s(e){var a=void 0===e?"undefined":w(e);return"object"!==a?a:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function c(e,a,t,u,d,p,v){v=v||[];var b=(d=d||[]).slice(0);if(void 0!==p){if(u){if("function"==typeof u&&u(b,p))return;if("object"===(void 0===u?"undefined":w(u))){if(u.prefilter&&u.prefilter(b,p))return;if(u.normalize){var h=u.normalize(b,p,e,a);h&&(e=h[0],a=h[1])}}}b.push(p)}"regexp"===s(e)&&"regexp"===s(a)&&(e=e.toString(),a=a.toString());var f=void 0===e?"undefined":w(e),m=void 0===a?"undefined":w(a),g="undefined"!==f||v&&v[v.length-1].lhs&&v[v.length-1].lhs.hasOwnProperty(p),y="undefined"!==m||v&&v[v.length-1].rhs&&v[v.length-1].rhs.hasOwnProperty(p);if(!g&&y)t(new r(b,a));else if(!y&&g)t(new o(b,e));else if(s(e)!==s(a))t(new n(b,e,a));else if("date"===s(e)&&e-a!==0)t(new n(b,e,a));else if("object"===f&&null!==e&&null!==a)if(v.filter(function(a){return a.lhs===e}).length)e!==a&&t(new n(b,e,a));else{if(v.push({lhs:e,rhs:a}),Array.isArray(e)){var S;for(e.length,S=0;S=a.length?t(new l(b,S,new o(void 0,e[S]))):c(e[S],a[S],t,u,b,S,v);for(;S=0?(c(e[n],a[n],t,u,b,n,v),_=i(_,o)):c(e[n],void 0,t,u,b,n,v)}),_.forEach(function(e){c(void 0,a[e],t,u,b,e,v)})}v.length=v.length-1}else e!==a&&("number"===f&&isNaN(e)&&isNaN(a)||t(new n(b,e,a)))}function u(e,a,t,n){return n=n||[],c(e,a,function(e){e&&n.push(e)},t),n.length?n:void 0}function d(e,a,t){if(t.path&&t.path.length){var n,r=e[a],o=t.path.length-1;for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{},a=Object.assign({},O,e),t=a.logger,n=a.stateTransformer,r=a.errorTransformer,o=a.predicate,l=a.logErrors,i=a.diffPredicate;if(void 0===t)return function(){return function(e){return function(a){return e(a)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(a){return e(a)}}};var s=[];return function(e){var t=e.getState;return function(e){return function(c){if("function"==typeof o&&!o(t,c))return e(c);var u={};s.push(u),u.started=x.now(),u.startedTime=new Date,u.prevState=n(t()),u.action=c;var d=void 0;if(l)try{d=e(c)}catch(e){u.error=r(e)}else d=e(c);u.took=x.now()-u.started,u.nextState=n(t());var p=a.diff&&"function"==typeof i?i(t,c):a.diff;if(m(s,Object.assign({},a,{diff:p})),s.length=0,u.error)throw u.error;return d}}}}var y,S,k=function(e,a){return function(e,a){return new Array(a+1).join(e)}("0",a-e.toString().length)+e},_=function(e){return k(e.getHours(),2)+":"+k(e.getMinutes(),2)+":"+k(e.getSeconds(),2)+"."+k(e.getMilliseconds(),3)},x="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,w="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},N=function(e){if(Array.isArray(e)){for(var a=0,t=Array(e.length);a0&&void 0!==arguments[0]?arguments[0]:{},a=e.dispatch,t=e.getState;return"function"==typeof a||"function"==typeof t?g()({dispatch:a,getState:t}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};e.defaults=O,e.createLogger=g,e.logger=E,e.default=E,Object.defineProperty(e,"__esModule",{value:!0})}(a)},5160(e,a,t){"use strict";var n=t(1609),r="function"==typeof Object.is?Object.is:function(e,a){return e===a&&(0!==e||1/e==1/a)||e!=e&&a!=a},o=n.useSyncExternalStore,l=n.useRef,i=n.useEffect,s=n.useMemo,c=n.useDebugValue;a.useSyncExternalStoreWithSelector=function(e,a,t,n,u){var d=l(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s(function(){function e(e){if(!i){if(i=!0,o=e,e=n(e),void 0!==u&&p.hasValue){var a=p.value;if(u(a,e))return l=a}return l=e}if(a=l,r(o,e))return a;var t=n(e);return void 0!==u&&u(a,t)?(o=e,a):(o=e,l=t)}var o,l,i=!1,s=void 0===t?null:t;return[function(){return e(a())},null===s?void 0:function(){return e(s())}]},[a,t,n,u]);var v=o(e,d[0],d[1]);return i(function(){p.hasValue=!0,p.value=v},[v]),c(v),v}},8418(e,a,t){"use strict";e.exports=t(5160)},9771(e){"use strict";e.exports=function(){}},1609(e){"use strict";e.exports=window.React},5795(e){"use strict";e.exports=window.ReactDOM},6942(e,a){var t;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",a=0;a{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);r.r(o);var l={};e=e||[null,a({}),a([]),a(a)];for(var i=2&n&&t;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=a(i))Object.getOwnPropertyNames(i).forEach(e=>l[e]=()=>t[e]);return l.default=()=>t,r.d(o,l),o},r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>rn,hasStandardBrowserEnv:()=>ln,hasStandardBrowserWebWorkerEnv:()=>sn,navigator:()=>on,origin:()=>cn});var a=r(5338);const t=window.wp.element;var n=r(1609),o=r.t(n,2),l=r.n(n),i="popstate";function s(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function c(e={}){return function(e,a,t,n={}){let{window:r=document.defaultView,v5Compat:o=!1}=n,l=r.history,c="POP",d=null,h=f();function f(){return(l.state||{idx:null}).idx}function m(){c="POP";let e=f(),a=null==e?null:e-h;h=e,d&&d({action:c,location:y.location,delta:a})}function g(e){return function(e,a=!1){let t="http://localhost";"undefined"!=typeof window&&(t="null"!==window.location.origin?window.location.origin:window.location.href),u(t,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:b(e);return n=n.replace(/ $/,"%20"),!a&&n.startsWith("//")&&(n=t+n),new URL(n,t)}(e)}null==h&&(h=0,l.replaceState({...l.state,idx:h},""));let y={get action(){return c},get location(){return e(r,l)},listen(e){if(d)throw new Error("A history only accepts one active listener");return r.addEventListener(i,m),d=e,()=>{r.removeEventListener(i,m),d=null}},createHref:e=>a(r,e),createURL:g,encodeLocation(e){let a=g(e);return{pathname:a.pathname,search:a.search,hash:a.hash}},push:function(e,a){c="PUSH";let n=s(e)?e:v(y.location,e,a);t&&t(n,e),h=f()+1;let i=p(n,h),u=y.createHref(n.unstable_mask||n);try{l.pushState(i,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;r.location.assign(u)}o&&d&&d({action:c,location:y.location,delta:1})},replace:function(e,a){c="REPLACE";let n=s(e)?e:v(y.location,e,a);t&&t(n,e),h=f();let r=p(n,h),i=y.createHref(n.unstable_mask||n);l.replaceState(r,"",i),o&&d&&d({action:c,location:y.location,delta:0})},go:e=>l.go(e)};return y}(function(e,a){let t=a.state?.masked,{pathname:n,search:r,hash:o}=t||e.location;return v("",{pathname:n,search:r,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default",t?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,a){return"string"==typeof a?a:b(a)},null,e)}function u(e,a){if(!1===e||null==e)throw new Error(a)}function d(e,a){if(!e){"undefined"!=typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}}}function p(e,a){return{usr:e.state,key:e.key,idx:a,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function v(e,a,t=null,n,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof a?h(a):a,state:t,key:a&&a.key||n||Math.random().toString(36).substring(2,10),unstable_mask:r}}function b({pathname:e="/",search:a="",hash:t=""}){return a&&"?"!==a&&(e+="?"===a.charAt(0)?a:"?"+a),t&&"#"!==t&&(e+="#"===t.charAt(0)?t:"#"+t),e}function h(e){let a={};if(e){let t=e.indexOf("#");t>=0&&(a.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(a.search=e.substring(n),e=e.substring(0,n)),e&&(a.pathname=e)}return a}function f(e,a,t="/"){return function(e,a,t,n){let r=R(("string"==typeof a?h(a):a).pathname||"/",t);if(null==r)return null;let o=m(e);!function(e){e.sort((e,a)=>e.score!==a.score?a.score-e.score:function(e,a){let t=e.length===a.length&&e.slice(0,-1).every((e,t)=>e===a[t]);return t?e[e.length-1]-a[a.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),a.routesMeta.map(e=>e.childrenIndex)))}(o);let l=null;for(let e=0;null==l&&e{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(n)&&l)return;u(s.relativePath.startsWith(n),`Absolute route path "${s.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(n.length)}let c=D([n,s.relativePath]),d=t.concat(s);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),m(e.children,a,d,c,l)),(null!=e.path||e.index)&&a.push({path:c,score:C(c,e.index),routesMeta:d})};return e.forEach((e,a)=>{if(""!==e.path&&e.path?.includes("?"))for(let t of g(e.path))o(e,a,!0,t);else o(e,a)}),a}function g(e){let a=e.split("/");if(0===a.length)return[];let[t,...n]=a,r=t.endsWith("?"),o=t.replace(/\?$/,"");if(0===n.length)return r?[o,""]:[o];let l=g(n.join("/")),i=[];return i.push(...l.map(e=>""===e?o:[o,e].join("/"))),r&&i.push(...l),i.map(a=>e.startsWith("/")&&""===a?"/":a)}new WeakMap;var y=/^:[\w-]+$/,S=3,k=2,_=1,x=10,w=-2,N=e=>"*"===e;function C(e,a){let t=e.split("/"),n=t.length;return t.some(N)&&(n+=w),a&&(n+=k),t.filter(e=>!N(e)).reduce((e,a)=>e+(y.test(a)?S:""===a?_:x),n)}function j(e,a,t=!1){let{routesMeta:n}=e,r={},o="/",l=[];for(let e=0;e{if(n.push({paramName:a,isOptional:null!=t}),t){let a=o.charAt(r+e.length);return a&&"/"!==a?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,a?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),r=a.match(t);if(!r)return null;let o=r[0],l=o.replace(/(.)\/+$/,"$1"),i=r.slice(1),s=n.reduce((e,{paramName:a,isOptional:t},n)=>{if("*"===a){let e=i[n]||"";l=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const r=i[n];return e[a]=t&&!r?void 0:(r||"").replace(/%2F/g,"/"),e},{});return{params:s,pathname:o,pathnameBase:l,pattern:e}}function E(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(a){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),e}}function R(e,a){if("/"===a)return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let t=a.endsWith("/")?a.length-1:a.length,n=e.charAt(t);return n&&"/"!==n?null:e.slice(t)||"/"}var T=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function M(e,a){let t=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?t.length>1&&t.pop():"."!==e&&t.push(e)}),t.length>1?t.join("/"):"/"}function A(e,a,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function P(e){let a=function(e){return e.filter((e,a)=>0===a||e.route.path&&e.route.path.length>0)}(e);return a.map((e,t)=>t===a.length-1?e.pathname:e.pathnameBase)}function I(e,a,t,n=!1){let r;"string"==typeof e?r=h(e):(r={...e},u(!r.pathname||!r.pathname.includes("?"),A("?","pathname","search",r)),u(!r.pathname||!r.pathname.includes("#"),A("#","pathname","hash",r)),u(!r.search||!r.search.includes("#"),A("#","search","hash",r)));let o,l=""===e||""===r.pathname,i=l?"/":r.pathname;if(null==i)o=t;else{let e=a.length-1;if(!n&&i.startsWith("..")){let a=i.split("/");for(;".."===a[0];)a.shift(),e-=1;r.pathname=a.join("/")}o=e>=0?a[e]:"/"}let s=function(e,a="/"){let t,{pathname:n,search:r="",hash:o=""}="string"==typeof e?h(e):e;return n?(n=n.replace(/\/\/+/g,"/"),t=n.startsWith("/")?M(n.substring(1),"/"):M(n,a)):t=a,{pathname:t,search:F(r),hash:B(o)}}(r,o),c=i&&"/"!==i&&i.endsWith("/"),d=(l||"."===i)&&t.endsWith("/");return s.pathname.endsWith("/")||!c&&!d||(s.pathname+="/"),s}var D=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),F=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",U=class{constructor(e,a,t,n=!1){this.status=e,this.statusText=a||"",this.internal=n,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function H(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function V(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var G="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function z(e,a){let t=e;if("string"!=typeof t||!T.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let n=t,r=!1;if(G)try{let e=new URL(window.location.href),n=t.startsWith("//")?new URL(e.protocol+t):new URL(t),o=R(n.pathname,a);n.origin===e.origin&&null!=o?t=o+n.search+n.hash:r=!0}catch(e){d(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:r,to:t}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var K=["POST","PUT","PATCH","DELETE"],W=(new Set(K),["GET",...K]);new Set(W),Symbol("ResetLoaderData");var $=n.createContext(null);$.displayName="DataRouter";var q=n.createContext(null);q.displayName="DataRouterState";var Y=n.createContext(!1);function J(){return n.useContext(Y)}var X=n.createContext({isTransitioning:!1});X.displayName="ViewTransition",n.createContext(new Map).displayName="Fetchers",n.createContext(null).displayName="Await";var Z=n.createContext(null);Z.displayName="Navigation";var Q=n.createContext(null);Q.displayName="Location";var ee=n.createContext({outlet:null,matches:[],isDataRoute:!1});ee.displayName="Route";var ae=n.createContext(null);ae.displayName="RouteError";var te="REACT_ROUTER_ERROR";function ne(){return null!=n.useContext(Q)}function re(){return u(ne(),"useLocation() may be used only in the context of a component."),n.useContext(Q).location}var oe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function le(e){n.useContext(Z).static||n.useLayoutEffect(e)}function ie(){let{isDataRoute:e}=n.useContext(ee);return e?function(){let{router:e}=function(e){let a=n.useContext($);return u(a,fe(e)),a}("useNavigate"),a=me("useNavigate"),t=n.useRef(!1);le(()=>{t.current=!0});let r=n.useCallback(async(n,r={})=>{d(t.current,oe),t.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:a,...r}))},[e,a]);return r}():function(){u(ne(),"useNavigate() may be used only in the context of a component.");let e=n.useContext($),{basename:a,navigator:t}=n.useContext(Z),{matches:r}=n.useContext(ee),{pathname:o}=re(),l=JSON.stringify(P(r)),i=n.useRef(!1);le(()=>{i.current=!0});let s=n.useCallback((n,r={})=>{if(d(i.current,oe),!i.current)return;if("number"==typeof n)return void t.go(n);let s=I(n,JSON.parse(l),o,"path"===r.relative);null==e&&"/"!==a&&(s.pathname="/"===s.pathname?a:D([a,s.pathname])),(r.replace?t.replace:t.push)(s,r.state,r)},[a,t,l,o,e]);return s}()}function se(e,{relative:a}={}){let{matches:t}=n.useContext(ee),{pathname:r}=re(),o=JSON.stringify(P(t));return n.useMemo(()=>I(e,JSON.parse(o),r,"path"===a),[e,o,r,a])}function ce(e,a,t){u(ne(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=n.useContext(Z),{matches:o}=n.useContext(ee),l=o[o.length-1],i=l?l.params:{},s=l?l.pathname:"/",c=l?l.pathnameBase:"/",p=l&&l.route;{let e=p&&p.path||"";ye(s,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${s}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent to .`)}let v,b=re();if(a){let e="string"==typeof a?h(a):a;u("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),v=e}else v=b;let m=v.pathname||"/",g=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=f(e,{pathname:g});d(p||null!=y,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),d(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let S=function(e,a=[],t){let r=t?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==a.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,l=r?.errors;if(null!=l){let e=o.findIndex(e=>e.route.id&&void 0!==l?.[e.route.id]);u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let i=!1,s=-1;if(t&&r){i=r.renderFallback;for(let e=0;e=0?o.slice(0,s+1):[o[0]];break}}}}let c=t?.onError,d=r&&c?(e,a)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:V(r.matches),errorInfo:a})}:void 0;return o.reduceRight((e,t,c)=>{let u,p=!1,v=null,b=null;r&&(u=l&&t.route.id?l[t.route.id]:void 0,v=t.route.errorElement||de,i&&(s<0&&0===c?(ye("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,b=null):s===c&&(p=!0,b=t.route.hydrateFallbackElement||null)));let h=a.concat(o.slice(0,c+1)),f=()=>{let a;return a=u?v:p?b:t.route.Component?n.createElement(t.route.Component,null):t.route.element?t.route.element:e,n.createElement(he,{match:t,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:a})};return r&&(t.route.ErrorBoundary||t.route.errorElement||0===c)?n.createElement(pe,{location:r.location,revalidation:r.revalidation,component:v,error:u,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:d}):f()},null)}(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:D([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:D([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,t);return a&&S?n.createElement(Q.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},S):S}function ue(){let e=function(){let e=n.useContext(ae),a=function(e){let a=n.useContext(q);return u(a,fe(e)),a}("useRouteError"),t=me("useRouteError");return void 0!==e?e:a.errors?.[t]}(),a=H(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:l},"ErrorBoundary")," or"," ",n.createElement("code",{style:l},"errorElement")," prop on your route.")),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},a),t?n.createElement("pre",{style:o},t):null,i)}n.createContext(null);var de=n.createElement(ue,null),pe=class extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,a){return a.location!==e.location||"idle"!==a.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const a=function(e){if(e.startsWith(`${te}:ROUTE_ERROR_RESPONSE:{`))try{let a=JSON.parse(e.slice(40));if("object"==typeof a&&a&&"number"==typeof a.status&&"string"==typeof a.statusText)return new U(a.status,a.statusText,a.data)}catch{}}(e.digest);a&&(e=a)}let a=void 0!==e?n.createElement(ee.Provider,{value:this.props.routeContext},n.createElement(ae.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?n.createElement(be,{error:e},a):a}};pe.contextType=Y;var ve=new WeakMap;function be({children:e,error:a}){let{basename:t}=n.useContext(Z);if("object"==typeof a&&a&&"digest"in a&&"string"==typeof a.digest){let e=function(e){if(e.startsWith(`${te}:REDIRECT:{`))try{let a=JSON.parse(e.slice(28));if("object"==typeof a&&a&&"number"==typeof a.status&&"string"==typeof a.statusText&&"string"==typeof a.location&&"boolean"==typeof a.reloadDocument&&"boolean"==typeof a.replace)return a}catch{}}(a.digest);if(e){let r=ve.get(a);if(r)throw r;let o=z(e.location,t);if(G&&!ve.get(a)){if(!o.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw ve.set(a,t),t}window.location.href=o.absoluteURL||o.to}return n.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function he({routeContext:e,match:a,children:t}){let r=n.useContext($);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),n.createElement(ee.Provider,{value:e},t)}function fe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function me(e){let a=function(e){let a=n.useContext(ee);return u(a,fe(e)),a}(e),t=a.matches[a.matches.length-1];return u(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}var ge={};function ye(e,a,t){a||ge[e]||(ge[e]=!0,d(!1,t))}function Se({basename:e="/",children:a=null,location:t,navigationType:r="POP",navigator:o,static:l=!1,unstable_useTransitions:i}){u(!ne(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=n.useMemo(()=>({basename:s,navigator:o,static:l,unstable_useTransitions:i,future:{}}),[s,o,l,i]);"string"==typeof t&&(t=h(t));let{pathname:p="/",search:v="",hash:b="",state:f=null,key:m="default",unstable_mask:g}=t,y=n.useMemo(()=>{let e=R(p,s);return null==e?null:{location:{pathname:e,search:v,hash:b,state:f,key:m,unstable_mask:g},navigationType:r}},[s,p,v,b,f,m,r,g]);return d(null!=y,` is not able to match the URL "${p}${v}${b}" because it does not start with the basename, so the won't render anything.`),null==y?null:n.createElement(Z.Provider,{value:c},n.createElement(Q.Provider,{children:a,value:y}))}o.useOptimistic,n.memo(function({routes:e,future:a,state:t,isStatic:n,onError:r}){return ce(e,void 0,{state:t,isStatic:n,onError:r,future:a})}),n.Component;var ke="get",_e="application/x-www-form-urlencoded";function xe(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var we=null,Ne=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ce(e){return null==e||Ne.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${_e}"`),null)}function je(e,a){if(!1===e||null==e)throw new Error(a)}function Oe(e,a,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return t?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${n}`:r.pathname=`${r.pathname}.${n}`:"/"===r.pathname?r.pathname=`_root.${n}`:a&&"/"===R(r.pathname,a)?r.pathname=`${a.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}function Ee(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Re(e,a,t,n,r,o){let l=(e,a)=>!t[a]||e.route.id!==t[a].route.id,i=(e,a)=>t[a].pathname!==e.pathname||t[a].route.path?.endsWith("*")&&t[a].params["*"]!==e.params["*"];return"assets"===o?a.filter((e,a)=>l(e,a)||i(e,a)):"data"===o?a.filter((a,o)=>{let s=n.routes[a.route.id];if(!s||!s.hasLoader)return!1;if(l(a,o)||i(a,o))return!0;if(a.route.shouldRevalidate){let n=a.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Te(e,a,{includeHydrateFallback:t}={}){return n=e.map(e=>{let n=a.routes[e.route.id];if(!n)return[];let r=[n.module];return n.clientActionModule&&(r=r.concat(n.clientActionModule)),n.clientLoaderModule&&(r=r.concat(n.clientLoaderModule)),t&&n.hydrateFallbackModule&&(r=r.concat(n.hydrateFallbackModule)),n.imports&&(r=r.concat(n.imports)),r}).flat(1),[...new Set(n)];var n}function Me(){let e=n.useContext($);return je(e,"You must render this element inside a element"),e}function Ae(){let e=n.useContext(q);return je(e,"You must render this element inside a element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var Pe=n.createContext(void 0);function Ie(){let e=n.useContext(Pe);return je(e,"You must render this element inside a element"),e}function De(e,a){return t=>{e&&e(t),t.defaultPrevented||a(t)}}function Le({page:e,...a}){let t=J(),{router:r}=Me(),o=n.useMemo(()=>f(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?t?n.createElement(Be,{page:e,matches:o,...a}):n.createElement(Ue,{page:e,matches:o,...a}):null}function Fe(e){let{manifest:a,routeModules:t}=Ie(),[r,o]=n.useState([]);return n.useEffect(()=>{let n=!1;return async function(e,a,t){return function(e,a){let t=new Set,n=new Set(a);return e.reduce((e,r)=>{if(a&&(null==(o=r)||"string"!=typeof o.page)&&"script"===r.as&&r.href&&n.has(r.href))return e;var o;let l=JSON.stringify(function(e){let a={},t=Object.keys(e).sort();for(let n of t)a[n]=e[n];return a}(r));return t.has(l)||(t.add(l),e.push({key:l,link:r})),e},[])}((await Promise.all(e.map(async e=>{let n=a.routes[e.route.id];if(n){let e=await async function(e,a){if(e.id in a)return a[e.id];try{let t=await import(e.module);return a[e.id]=t,t}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,t);return e.links?e.links():[]}return[]}))).flat(1).filter(Ee).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,a,t).then(e=>{n||o(e)}),()=>{n=!0}},[e,a,t]),r}function Be({page:e,matches:a,...t}){let r=re(),{future:o}=Ie(),{basename:l}=Me(),i=n.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let t=Oe(e,l,o.unstable_trailingSlashAwareDataRequests,"rsc"),n=!1,i=[];for(let e of a)"function"==typeof e.route.shouldRevalidate?n=!0:i.push(e.route.id);return n&&i.length>0&&t.searchParams.set("_routes",i.join(",")),[t.pathname+t.search]},[l,o.unstable_trailingSlashAwareDataRequests,e,r,a]);return n.createElement(n.Fragment,null,i.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...t})))}function Ue({page:e,matches:a,...t}){let r=re(),{future:o,manifest:l,routeModules:i}=Ie(),{basename:s}=Me(),{loaderData:c,matches:u}=Ae(),d=n.useMemo(()=>Re(e,a,u,l,r,"data"),[e,a,u,l,r]),p=n.useMemo(()=>Re(e,a,u,l,r,"assets"),[e,a,u,l,r]),v=n.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let t=new Set,n=!1;if(a.forEach(e=>{let a=l.routes[e.route.id];a&&a.hasLoader&&(!d.some(a=>a.route.id===e.route.id)&&e.route.id in c&&i[e.route.id]?.shouldRevalidate||a.hasClientLoader?n=!0:t.add(e.route.id))}),0===t.size)return[];let u=Oe(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return n&&t.size>0&&u.searchParams.set("_routes",a.filter(e=>t.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[s,o.unstable_trailingSlashAwareDataRequests,c,r,l,d,a,e,i]),b=n.useMemo(()=>Te(p,l),[p,l]),h=Fe(p);return n.createElement(n.Fragment,null,v.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...t})),b.map(e=>n.createElement("link",{key:e,rel:"modulepreload",href:e,...t})),h.map(({key:e,link:a})=>n.createElement("link",{key:e,nonce:t.nonce,...a,crossOrigin:a.crossOrigin??t.crossOrigin})))}Pe.displayName="FrameworkContext";function He(...e){return a=>{e.forEach(e=>{"function"==typeof e?e(a):null!=e&&(e.current=a)})}}n.Component;var Ve="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Ve&&(window.__reactRouterVersion="7.14.0")}catch(qd){}function Ge({basename:e,children:a,unstable_useTransitions:t,window:r}){let o=n.useRef();null==o.current&&(o.current=c({window:r,v5Compat:!0}));let l=o.current,[i,s]=n.useState({action:l.action,location:l.location}),u=n.useCallback(e=>{!1===t?s(e):n.startTransition(()=>s(e))},[t]);return n.useLayoutEffect(()=>l.listen(u),[l,u]),n.createElement(Se,{basename:e,children:a,location:i.location,navigationType:i.action,navigator:l,unstable_useTransitions:t})}var ze=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ke=n.forwardRef(function({onClick:e,discover:a="render",prefetch:t="none",relative:r,reloadDocument:o,replace:l,unstable_mask:i,state:s,target:c,to:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:h,...f},m){let{basename:g,navigator:y,unstable_useTransitions:S}=n.useContext(Z),k="string"==typeof d&&ze.test(d),_=z(d,g),x=function(e,{relative:a}={}){u(ne(),"useHref() may be used only in the context of a component.");let{basename:t,navigator:r}=n.useContext(Z),{hash:o,pathname:l,search:i}=se(e,{relative:a}),s=l;return"/"!==t&&(s="/"===l?t:D([t,l])),r.createHref({pathname:s,search:i,hash:o})}(d=_.to,{relative:r}),w=re(),N=null;if(i){let e=I(i,[],w.unstable_mask?w.unstable_mask.pathname:"/",!0);"/"!==g&&(e.pathname="/"===e.pathname?g:D([g,e.pathname])),N=y.createHref(e)}let[C,j,O]=function(e,a){let t=n.useContext(Pe),[r,o]=n.useState(!1),[l,i]=n.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=a,v=n.useRef(null);n.useEffect(()=>{if("render"===e&&i(!0),"viewport"===e){let e=e=>{e.forEach(e=>{i(e.isIntersecting)})},a=new IntersectionObserver(e,{threshold:.5});return v.current&&a.observe(v.current),()=>{a.disconnect()}}},[e]),n.useEffect(()=>{if(r){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[r]);let b=()=>{o(!0)},h=()=>{o(!1),i(!1)};return t?"intent"!==e?[l,v,{}]:[l,v,{onFocus:De(s,b),onBlur:De(c,h),onMouseEnter:De(u,b),onMouseLeave:De(d,h),onTouchStart:De(p,b)}]:[!1,v,{}]}(t,f),E=function(e,{target:a,replace:t,unstable_mask:r,state:o,preventScrollReset:l,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:c,unstable_useTransitions:u}={}){let d=ie(),p=re(),v=se(e,{relative:i});return n.useCallback(h=>{if(function(e,a){return!(0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,a)){h.preventDefault();let a=void 0!==t?t:b(p)===b(v),f=()=>d(e,{replace:a,unstable_mask:r,state:o,preventScrollReset:l,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:c});u?n.startTransition(()=>f()):f()}},[p,d,v,t,r,o,a,e,l,i,s,c,u])}(d,{replace:l,unstable_mask:i,state:s,target:c,preventScrollReset:p,relative:r,viewTransition:v,unstable_defaultShouldRevalidate:h,unstable_useTransitions:S}),R=!(_.isExternal||o),T=n.createElement("a",{...f,...O,href:(R?N:void 0)||_.absoluteURL||x,onClick:R?function(a){e&&e(a),a.defaultPrevented||E(a)}:e,ref:He(m,j),target:c,"data-discover":k||"render"!==a?void 0:"true"});return C&&!k?n.createElement(n.Fragment,null,T,n.createElement(Le,{page:x})):T});Ke.displayName="Link",n.forwardRef(function({"aria-current":e="page",caseSensitive:a=!1,className:t="",end:r=!1,style:o,to:l,viewTransition:i,children:s,...c},d){let p=se(l,{relative:c.relative}),v=re(),b=n.useContext(q),{navigator:h,basename:f}=n.useContext(Z),m=null!=b&&function(e,{relative:a}={}){let t=n.useContext(X);u(null!=t,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$e("useViewTransitionState"),o=se(e,{relative:a});if(!t.isTransitioning)return!1;let l=R(t.currentLocation.pathname,r)||t.currentLocation.pathname,i=R(t.nextLocation.pathname,r)||t.nextLocation.pathname;return null!=O(o.pathname,i)||null!=O(o.pathname,l)}(p)&&!0===i,g=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,y=v.pathname,S=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(y=y.toLowerCase(),S=S?S.toLowerCase():null,g=g.toLowerCase()),S&&f&&(S=R(S,f)||S);const k="/"!==g&&g.endsWith("/")?g.length-1:g.length;let _,x=y===g||!r&&y.startsWith(g)&&"/"===y.charAt(k),w=null!=S&&(S===g||!r&&S.startsWith(g)&&"/"===S.charAt(g.length)),N={isActive:x,isPending:w,isTransitioning:m},C=x?e:void 0;_="function"==typeof t?t(N):[t,x?"active":null,w?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(N):o;return n.createElement(Ke,{...c,"aria-current":C,className:_,ref:d,style:j,to:l,viewTransition:i},"function"==typeof s?s(N):s)}).displayName="NavLink";var We=n.forwardRef(({discover:e="render",fetcherKey:a,navigate:t,reloadDocument:r,replace:o,state:l,method:i=ke,action:s,onSubmit:c,relative:d,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:h,...f},m)=>{let{unstable_useTransitions:g}=n.useContext(Z),y=function(){let{router:e}=$e("useSubmit"),{basename:a}=n.useContext(Z),t=me("useRouteId"),r=e.fetch,o=e.navigate;return n.useCallback(async(e,n={})=>{let{action:l,method:i,encType:s,formData:c,body:u}=function(e,a){let t,n,r,o,l;if(xe(i=e)&&"form"===i.tagName.toLowerCase()){let l=e.getAttribute("action");n=l?R(l,a):null,t=e.getAttribute("method")||ke,r=Ce(e.getAttribute("enctype"))||_e,o=new FormData(e)}else if(function(e){return xe(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return xe(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let l=e.form;if(null==l)throw new Error('Cannot submit a