tocco-admin 3.13.94 → 3.13.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +6 -0
- package/dist/chunk-201.b4bbf81b6056735422c5.js +1 -0
- package/dist/{chunk-320.1b1bc1dc218cb0627d94.js → chunk-320.bfaa2e0e80c657015900.js} +1 -1
- package/dist/chunk-350.0254b941f47e1a244611.js +1 -0
- package/dist/chunk-942.f359d95c37841972a7e5.js +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-201.475fae68ba84a0fc7e2d.js +0 -1
- package/dist/chunk-350.3397b52b32fb0343ba1d.js +0 -1
- package/dist/chunk-460.625e58674e515a557423.js +0 -1
package/dist/index.js
CHANGED
|
@@ -39,4 +39,4 @@ var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hre
|
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/var r=n(4883);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(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(!c){if(c=!0,i=e,e=r(e),void 0!==l&&p.hasValue){var t=p.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?(i=e,t):(i=e,a=n)}var i,a,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,l]);var f=i(e,d[0],d[1]);return c((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},78418:(e,t,n)=>{"use strict";e.exports=n(85160)},33829:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var o,i=new Uint8Array(16);function a(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}for(var c=[],s=0;s<256;++s)c.push((s+256).toString(16).slice(1));function u(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const l=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=o[i];return t}return u(o)}},46255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(83399))&&r.__esModule?r:{default:r};function i(e){return i="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},i(e)}e.exports=t.default,e.exports.default=t.default},69517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,c.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var s=n[1];if(e=e.replace(s,"").replace(/(^<|>$)/g,""),s.endsWith(" ")&&(s=s.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(s))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var v=e.split("@"),y=v.pop(),b=y.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var w=v.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var x=(w=w.toLowerCase()).split("+")[0];if(!(0,o.default)(x.replace(/\./g,""),{min:6,max:30}))return!1;for(var O=x.split("."),k=0;k<O.length;k++)if(!p.test(O[k]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(w,{max:64})&&(0,o.default)(y,{max:254})))return!1;if(!(0,i.default)(y,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var S=y.slice(1,-1);if(0===S.length||!(0,a.default)(S))return!1}}if('"'===w[0])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?h.test(w):f.test(w);for(var E=t.allow_utf8_local_part?m:d,j=w.split("."),P=0;P<j.length;P++)if(!E.test(j[P]))return!1;if(t.blacklisted_chars&&-1!==w.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(n(83399)),o=s(n(46255)),i=s(n(57658)),a=s(n(35372)),c=s(n(93610));function s(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;e.exports=t.default,e.exports.default=t.default},57658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(83399)),o=i(n(93610));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},35372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return c.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(83399))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),c=new RegExp("^".concat(a,"$")),s="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(a,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(a,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(a,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(a,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(a,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(a,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(a,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},77844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,c,p,f,m,h,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((c=g.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var y=c.split(":"),b=(k=2,function(e){if(Array.isArray(e))return e}(O=y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(O,k)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(O,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=b[0],x=b[1];if(""===w&&""===x)return!1}var O,k;f=g.join("@"),h=null,v=null;var S=f.match(l);S?(p="",v=S[1],h=S[2]||null):(p=(g=f.split(":")).shift(),g.length&&(h=g.join(":")));if(null!==h&&h.length>0){if(m=parseInt(h,10),!/^[0-9]+$/.test(h)||m<=0||m>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(p,t.host_whitelist);if(""===p&&!t.require_host)return!0;if(!((0,i.default)(p)||(0,o.default)(p,t)||v&&(0,i.default)(v,6)))return!1;if(p=p||v,t.host_blacklist&&d(p,t.host_blacklist))return!1;return!0};var r=c(n(83399)),o=c(n(57658)),i=c(n(35372)),a=c(n(93610));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},83399:(e,t)=>{"use strict";function n(e){return n="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(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},93610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},4883:t=>{"use strict";t.exports=e},81845:e=>{"use strict";e.exports=t},22847:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56868:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},37372:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of a(t))!s.call(e,c)&&c!==n&&o(e,c,{get:()=>t[c],enumerable:!(r=i(t,c))||r.enumerable});return e},l={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(l,{Provider:()=>ce,ReactReduxContext:()=>ne,batch:()=>ye,connect:()=>ae,createDispatchHook:()=>pe,createSelectorHook:()=>ge,createStoreHook:()=>le,shallowEqual:()=>B,useDispatch:()=>fe,useSelector:()=>ve,useStore:()=>de}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(l);var d=((e,t,n)=>(n=null!=e?r(c(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(4883)),p=d.version.startsWith("19"),f=Symbol.for(p?"react.transitional.element":"react.element"),m=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=w,j=k;function P(e){return function(e){if("object"==typeof e&&null!==e){let{$$typeof:t}=e;switch(t){case f:switch(e=e.type){case h:case v:case g:case x:case O:return e;default:switch(e=e&&e.$$typeof){case b:case w:case S:case k:case y:return e;default:return t}}case m:return t}}}(e)===k}function A(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let c,s,u,l,d,p=!1;function f(p,f){let m=!i(f,s),h=!o(p,c,f,s);return c=p,s=f,m&&h?(u=e(c,s),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):m?(e.dependsOnOwnProps&&(u=e(c,s)),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):h?function(){let t=e(c,s),r=!a(t,u);return u=t,r&&(d=n(u,l,s)),d}():d}return function(o,i){return p?f(o,i):function(o,i){return c=o,s=i,u=e(c,s),l=t(r,s),d=n(u,l,s),p=!0,d}(o,i)}}function D(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function T(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function _(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=T(o),o=r(t,n)),o},r}}function C(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function M(e,t,n){return{...n,...e,...t}}function I(e){e()}var R={notify(){},get:()=>[]};function N(e,t){let n,r=R,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){I((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=R)}let u={addNestedSub:function(e){c();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}var L=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F=typeof navigator<"u"&&"ReactNative"===navigator.product,H=L||F?d.useLayoutEffect:d.useEffect;function W(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function B(e,t){if(W(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!W(e[n[r]],t[n[r]]))return!1;return!0}var V={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},U={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z={[E]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[j]:Y};function q(e){return P(e)?Y:z[e.$$typeof]||V}var $=Object.defineProperty,G=Object.getOwnPropertyNames,K=Object.getOwnPropertySymbols,J=Object.getOwnPropertyDescriptor,Q=Object.getPrototypeOf,X=Object.prototype;function Z(e,t){if("string"!=typeof t){if(X){let n=Q(t);n&&n!==X&&Z(e,n)}let n=G(t);K&&(n=n.concat(K(t)));let r=q(e),o=q(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(U[a]||o&&o[a]||r&&r[a])){let n=J(t,a);try{$(e,a,n)}catch{}}}}return e}var ee=Symbol.for("react-redux-context"),te=typeof globalThis<"u"?globalThis:{};var ne=function(){if(!d.createContext)return{};let e=te[ee]??=new Map,t=e.get(d.createContext);return t||(t=d.createContext(null),e.set(d.createContext,t)),t}(),re=[null,null];function oe(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ie(e,t){return e===t}var ae=function(e,t,n,{pure:r,areStatesEqual:o=ie,areOwnPropsEqual:i=B,areStatePropsEqual:a=B,areMergedPropsEqual:c=B,forwardRef:s=!1,context:u=ne}={}){let l=u,p=function(e){return e?"function"==typeof e?_(e):C(e,"mapStateToProps"):D((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?D((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?_(e):C(e,"mapDispatchToProps"):D((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let c=e(t,n,a);return i?r(c,o)||(o=c):(i=!0,o=c),o}}}(e):C(e,"mergeProps"):()=>M}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:c};function u(t){let[n,o,i]=d.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=d.useMemo((()=>l),[n,l]),c=d.useContext(a),s=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!c&&!!c.store,p=s?t.store:c.store,f=u?c.getServerState:p.getState,m=d.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return A(t(e,o),n(e,o),r(e,o),e,o)}(p.dispatch,r)),[p]),[g,v]=d.useMemo((()=>{if(!h)return re;let e=N(p,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,s,c]),y=d.useMemo((()=>s?c:{...c,subscription:g}),[s,c,g]),b=d.useRef(void 0),w=d.useRef(i),x=d.useRef(void 0),O=d.useRef(!1),k=d.useRef(!1),S=d.useRef(void 0);H((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,j=d.useMemo((()=>()=>x.current&&i===w.current?x.current:m(p.getState(),i)),[p,i]),P=d.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,c,s,u,l){if(!e)return()=>{};let d=!1,p=null,f=()=>{if(d||!c.current)return;let e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,p=e}n||(p=null),e===i.current?a.current||u():(i.current=e,s.current=e,a.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(h,p,g,m,w,b,O,k,x,v,e):()=>{}),[g]);!function(e,t,n){H((()=>e(...t)),n)}(oe,[w,b,O,i,x,v]);try{E=d.useSyncExternalStore(P,j,f?()=>m(f(),i):j)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}H((()=>{S.current=void 0,x.current=void 0,b.current=E}));let D=d.useMemo((()=>d.createElement(e,{...E,ref:o})),[o,e,E]);return d.useMemo((()=>h?d.createElement(a.Provider,{value:y},D):D),[a,D,y])}let g=d.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,s){let t=d.forwardRef((function(e,t){return d.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,Z(t,e)}return Z(g,e)}};var ce=function(e){let{children:t,context:n,serverState:r,store:o}=e,i=d.useMemo((()=>{let e=N(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}}),[o,r]),a=d.useMemo((()=>o.getState()),[o]);return H((()=>{let{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,a]),d.createElement((n||ne).Provider,{value:i},t)};function se(e=ne){return function(){return d.useContext(e)}}var ue=se();function le(e=ne){let t=e===ne?ue:se(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var de=le();function pe(e=ne){let t=e===ne?de:le(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var fe=pe(),me=n(78418),he=(e,t)=>e===t;function ge(e=ne){let t=e===ne?ue:se(e),n=(e,n={})=>{let{equalityFn:r=he}="function"==typeof n?{equalityFn:n}:n,o=t(),{store:i,subscription:a,getServerState:c}=o,s=(d.useRef(!0),d.useCallback({[e.name]:t=>e(t)}[e.name],[e])),u=(0,me.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,c||i.getState,s,r);return d.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var ve=ge(),ye=I},58168:(e,t,n)=>{"use strict";function r(){return r=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},r.apply(this,arguments)}n.d(t,{A:()=>r})},80938:(e,t,n)=>{"use strict";n.d(t,{UE:()=>ne,RK:()=>Q,ll:()=>G,rD:()=>ie,__:()=>K,UU:()=>Z,jD:()=>te,mG:()=>re,ER:()=>oe,cY:()=>J,iD:()=>$,BN:()=>X,Ej:()=>ee});const r=["top","right","bottom","left"],o=["start","end"],i=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),a=Math.min,c=Math.max,s=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),u={start:"end",end:"start"};function l(e,t,n){return c(e,a(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function v(e){return m(g(e))}function y(e,t,n){void 0===n&&(n=!1);const r=f(e),o=v(e),i=h(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=w(a)),[a,w(a)]}function b(e){return e.replace(/start|end/g,(e=>u[e]))}function w(e){return e.replace(/left|right|bottom|top/g,(e=>s[e]))}function x(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function O(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function k(e,t,n){let{reference:r,floating:o}=e;const i=g(t),a=v(t),c=h(a),s=p(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let y;switch(s){case"top":y={x:l,y:r.y-o.height};break;case"bottom":y={x:l,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-o.width,y:d};break;default:y={x:r.x,y:r.y}}switch(f(t)){case"start":y[a]-=m*(n&&u?-1:1);break;case"end":y[a]+=m*(n&&u?-1:1)}return y}async function S(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=d(t,e),h=x(m),g=c[f?"floating"===p?"reference":"floating":p],v=O(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:l,strategy:s})),y="floating"===p?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},k=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:s}):y);return{top:(v.top-k.top+h.top)/w.y,bottom:(k.bottom-v.bottom+h.bottom)/w.y,left:(v.left-k.left+h.left)/w.x,right:(k.right-v.right+h.right)/w.x}}function E(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return r.some((t=>e[t]>=0))}function P(e){const t=a(...e.map((e=>e.left))),n=a(...e.map((e=>e.top)));return{x:t,y:n,width:c(...e.map((e=>e.right)))-t,height:c(...e.map((e=>e.bottom)))-n}}const A=Math.min,D=Math.max,T=Math.round,_=Math.floor,C=e=>({x:e,y:e});var M=n(88963);function I(e){const t=(0,M.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=(0,M.sb)(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=T(n)!==i||T(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function R(e){return(0,M.vq)(e)?e:e.contextElement}function N(e){const t=R(e);if(!(0,M.sb)(t))return C(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=I(t);let a=(i?T(n.width):n.width)/r,c=(i?T(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const L=C(0);function F(e){const t=(0,M.zk)(e);return(0,M.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:L}function H(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=R(e);let a=C(1);t&&(r?(0,M.vq)(r)&&(a=N(r)):a=N(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,M.zk)(e))&&t}(i,n,r)?F(i):C(0);let s=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=(0,M.zk)(i),t=r&&(0,M.vq)(r)?(0,M.zk)(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=N(o),t=o.getBoundingClientRect(),r=(0,M.L9)(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,l*=e.x,d*=e.y,s+=i,u+=a,n=(0,M.zk)(o),o=n.frameElement}}return O({width:l,height:d,x:s,y:u})}function W(e){return H((0,M.ep)(e)).left+(0,M.CP)(e).scrollLeft}function B(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=(0,M.zk)(e),r=(0,M.ep)(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;const e=(0,M.Tc)();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(e,n);else if("document"===t)r=function(e){const t=(0,M.ep)(e),n=(0,M.CP)(e),r=e.ownerDocument.body,o=D(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=D(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+W(e);const c=-n.scrollTop;return"rtl"===(0,M.L9)(r).direction&&(a+=D(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}((0,M.ep)(e));else if((0,M.vq)(t))r=function(e,t){const n=H(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=(0,M.sb)(e)?N(e):C(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=F(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return O(r)}function V(e,t){const n=(0,M.$4)(e);return!(n===t||!(0,M.vq)(n)||(0,M.eu)(n))&&("fixed"===(0,M.L9)(n).position||V(n,t))}function U(e,t,n){const r=(0,M.sb)(t),o=(0,M.ep)(t),i="fixed"===n,a=H(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const s=C(0);if(r||!r&&!i)if(("body"!==(0,M.mq)(t)||(0,M.ZU)(o))&&(c=(0,M.CP)(t)),r){const e=H(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=W(o));return{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function Y(e){return"static"===(0,M.L9)(e).position}function z(e,t){return(0,M.sb)(e)&&"fixed"!==(0,M.L9)(e).position?t?t(e):e.offsetParent:null}function q(e,t){const n=(0,M.zk)(e);if((0,M.Tf)(e))return n;if(!(0,M.sb)(e)){let t=(0,M.$4)(e);for(;t&&!(0,M.eu)(t);){if((0,M.vq)(t)&&!Y(t))return t;t=(0,M.$4)(t)}return n}let r=z(e,t);for(;r&&(0,M.Lv)(r)&&Y(r);)r=z(r,t);return r&&(0,M.eu)(r)&&Y(r)&&!(0,M.sQ)(r)?n:r||(0,M.gJ)(e)||n}const $={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=(0,M.ep)(r),c=!!t&&(0,M.Tf)(t.floating);if(r===a||c&&i)return n;let s={scrollLeft:0,scrollTop:0},u=C(1);const l=C(0),d=(0,M.sb)(r);if((d||!d&&!i)&&(("body"!==(0,M.mq)(r)||(0,M.ZU)(a))&&(s=(0,M.CP)(r)),(0,M.sb)(r))){const e=H(r);u=N(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+l.x,y:n.y*u.y-s.scrollTop*u.y+l.y}},getDocumentElement:M.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?(0,M.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,M.v9)(e,[],!1).filter((e=>(0,M.vq)(e)&&"body"!==(0,M.mq)(e))),o=null;const i="fixed"===(0,M.L9)(e).position;let a=i?(0,M.$4)(e):e;for(;(0,M.vq)(a)&&!(0,M.eu)(a);){const t=(0,M.L9)(a),n=(0,M.sQ)(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||(0,M.ZU)(a)&&!n&&V(e,a))?r=r.filter((e=>e!==a)):o=t,a=(0,M.$4)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],c=i.reduce(((e,n)=>{const r=B(t,n,o);return e.top=D(r.top,e.top),e.right=A(r.right,e.right),e.bottom=A(r.bottom,e.bottom),e.left=D(r.left,e.left),e}),B(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:q,getElementRects:async function(e){const t=this.getOffsetParent||q,n=this.getDimensions,r=await n(e.floating);return{reference:U(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=I(e);return{width:t,height:n}},getScale:N,isElement:M.vq,isRTL:function(e){return"rtl"===(0,M.L9)(e).direction}};function G(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=R(e),l=o||i?[...u?(0,M.v9)(u):[],...(0,M.v9)(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&c?function(e,t){let n,r=null;const o=(0,M.ep)(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),i();const{left:u,top:l,width:d,height:p}=e.getBoundingClientRect();if(c||t(),!d||!p)return;const f={rootMargin:-_(l)+"px "+-_(o.clientWidth-(u+d))+"px "+-_(o.clientHeight-(l+p))+"px "+-_(u)+"px",threshold:D(0,A(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,f)}r.observe(e)}(!0),i}(u,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),u&&!s&&m.observe(u),m.observe(t));let h=s?H(e):null;return s&&function t(){const r=H(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(p)}}const K=S,J=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),c=f(n),s="y"===g(n),u=["left","top"].includes(a)?-1:1,l=i&&s?-1:1,m=d(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return c&&"number"==typeof y&&(v="end"===c?-1*y:y),s?{x:v*l,y:h*u}:{x:h*u,y:v*l}}(t,e);return a===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},Q=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:a,middlewareData:c,placement:s,platform:u,elements:l}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:g=i,autoAlignment:v=!0,...w}=d(e,t),x=void 0!==h||g===i?function(e,t,n){return(e?[...n.filter((t=>f(t)===e)),...n.filter((t=>f(t)!==e))]:n.filter((e=>p(e)===e))).filter((n=>!e||f(n)===e||!!t&&b(n)!==n))}(h||null,v,g):g,O=await S(t,w),k=(null==(n=c.autoPlacement)?void 0:n.index)||0,E=x[k];if(null==E)return{};const j=y(E,a,await(null==u.isRTL?void 0:u.isRTL(l.floating)));if(s!==E)return{reset:{placement:x[0]}};const P=[O[p(E)],O[j[0]],O[j[1]]],A=[...(null==(r=c.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:P}],D=x[k+1];if(D)return{data:{index:k+1,overflows:A},reset:{placement:D}};const T=A.map((e=>{const t=f(e.placement);return[e.placement,t&&m?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),_=(null==(o=T.filter((e=>e[2].slice(0,f(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||T[0][0];return _!==s?{data:{index:k+1,overflows:A},reset:{placement:_}}:{}}}},X=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=d(e,t),u={x:n,y:r},f=await S(t,s),h=g(p(o)),v=m(h);let y=u[v],b=u[h];if(i){const e="y"===v?"bottom":"right";y=l(y+f["y"===v?"top":"left"],y,y-f[e])}if(a){const e="y"===h?"bottom":"right";b=l(b+f["y"===h?"top":"left"],b,b-f[e])}const w=c.fn({...t,[v]:y,[h]:b});return{...w,data:{x:w.x-n,y:w.y-r}}}}},Z=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:s,elements:u}=t,{mainAxis:l=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...O}=d(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const k=p(o),E=p(c)===c,j=await(null==s.isRTL?void 0:s.isRTL(u.floating)),P=h||(E||!x?[w(c)]:function(e){const t=w(e);return[b(e),t,b(t)]}(c));h||"none"===v||P.push(...function(e,t,n,r){const o=f(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(b)))),i}(c,x,v,j));const A=[c,...P],D=await S(t,O),T=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&T.push(D[k]),m){const e=y(o,a,j);T.push(D[e[0]],D[e[1]])}if(_=[..._,{placement:o,overflows:T}],!T.every((e=>e<=0))){var C,M;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=A[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(M=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(g){case"bestFit":{var I;const e=null==(I=_.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},ee=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=(()=>{}),...u}=d(e,t),l=await S(t,u),m=p(n),h=f(n),v="y"===g(n),{width:y,height:b}=r.floating;let w,x;"top"===m||"bottom"===m?(w=m,x=h===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(x=m,w="end"===h?"top":"bottom");const O=b-l[w],k=y-l[x],E=!t.middlewareData.shift;let j=O,P=k;if(v){const e=y-l.left-l.right;P=h||E?a(k,e):e}else{const e=b-l.top-l.bottom;j=h||E?a(O,e):e}if(E&&!h){const e=c(l.left,0),t=c(l.right,0),n=c(l.top,0),r=c(l.bottom,0);v?P=y-2*(0!==e||0!==t?e+t:c(l.left,l.right)):j=b-2*(0!==n||0!==r?n+r:c(l.top,l.bottom))}await s({...t,availableWidth:P,availableHeight:j});const A=await o.getDimensions(i.floating);return y!==A.width||b!==A.height?{reset:{rects:!0}}:{}}}},te=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{const e=E(await S(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:j(e)}}}case"escaped":{const e=E(await S(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:j(e)}}}default:return{}}}}},ne=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:c,elements:s,middlewareData:u}=t,{element:p,padding:m=0}=d(e,t)||{};if(null==p)return{};const g=x(m),y={x:n,y:r},b=v(o),w=h(b),O=await c.getDimensions(p),k="y"===b,S=k?"top":"left",E=k?"bottom":"right",j=k?"clientHeight":"clientWidth",P=i.reference[w]+i.reference[b]-y[b]-i.floating[w],A=y[b]-i.reference[b],D=await(null==c.getOffsetParent?void 0:c.getOffsetParent(p));let T=D?D[j]:0;T&&await(null==c.isElement?void 0:c.isElement(D))||(T=s.floating[j]||i.floating[w]);const _=P/2-A/2,C=T/2-O[w]/2-1,M=a(g[S],C),I=a(g[E],C),R=M,N=T-O[w]-I,L=T/2-O[w]/2+_,F=l(R,L,N),H=!u.arrow&&null!=f(o)&&L!==F&&i.reference[w]/2-(L<R?M:I)-O[w]/2<0,W=H?L<R?L-R:L-N:0;return{[b]:y[b]+W,data:{[b]:F,centerOffset:L-F-W,...H&&{alignmentOffset:W}},reset:H}}}),re=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:s}=t,{padding:u=2,x:l,y:f}=d(e,t),m=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),h=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>O(P(e))))}(m),v=O(P(m)),y=x(u);const b=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=l&&null!=f)return h.find((e=>l>e.left-y.left&&l<e.right+y.right&&f>e.top-y.top&&f<e.bottom+y.bottom))||v;if(h.length>=2){if("y"===g(n)){const e=h[0],t=h[h.length-1],r="top"===p(n),o=e.top,i=t.bottom,a=r?e.left:t.left,c=r?e.right:t.right;return{top:o,bottom:i,left:a,right:c,width:c-a,height:i-o,x:a,y:o}}const e="left"===p(n),t=c(...h.map((e=>e.right))),r=a(...h.map((e=>e.left))),o=h.filter((n=>e?n.left===r:n.right===t)),i=o[0].top,s=o[o.length-1].bottom;return{top:i,bottom:s,left:r,right:t,width:t-r,height:s-i,x:r,y:i}}return v}},floating:r.floating,strategy:s});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},oe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:s=!0,crossAxis:u=!0}=d(e,t),l={x:n,y:r},f=g(o),h=m(f);let v=l[h],y=l[f];const b=d(c,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){const e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+w.mainAxis,n=i.reference[h]+i.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var x,O;const e="y"===h?"width":"height",t=["top","left"].includes(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[f])||0)+(t?0:w.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(O=a.offset)?void 0:O[f])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:v,[f]:y}}}},ie=(e,t,n)=>{const r=new Map,o={platform:$,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=k(u,r,s),p=r,f={},m=0;for(let n=0;n<c.length;n++){const{name:i,fn:h}=c[n],{x:g,y:v,data:y,reset:b}=await h({x:l,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=v?v:d,f={...f,[i]:{...f[i],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=k(u,p,s))),n=-1)}return{x:l,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})}},88963:(e,t,n)=>{"use strict";function r(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof o(e).Node}function c(e){return e instanceof Element||e instanceof o(e).Element}function s(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function l(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(r(e))}function p(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function f(e){const t=h(),n=c(e)?v(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function m(e){let t=b(e);for(;s(t)&&!g(t);){if(f(t))return t;if(p(t))return null;t=b(t)}return null}function h(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(r(e))}function v(e){return o(e).getComputedStyle(e)}function y(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||i(e);return u(t)?t.host:t}function w(e){const t=b(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:s(t)&&l(t)?t:w(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=w(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),c=o(i);return a?t.concat(c,c.visualViewport||[],l(i)?i:[],c.frameElement&&n?x(c.frameElement):[]):t.concat(i,x(i,[],n))}n.d(t,{$4:()=>b,CP:()=>y,L9:()=>v,Lv:()=>d,Tc:()=>h,Tf:()=>p,ZU:()=>l,ep:()=>i,eu:()=>g,gJ:()=>m,mq:()=>r,sQ:()=>f,sb:()=>s,v9:()=>x,vq:()=>c,zk:()=>o})},34743:(e,t,n)=>{"use strict";n.d(t,{BN:()=>m,ER:()=>h,Ej:()=>v,RK:()=>y,UE:()=>x,UU:()=>g,cY:()=>f,jD:()=>b,mG:()=>w,we:()=>d});var r=n(80938),o=n(4883),i=n(81845),a="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!c(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!c(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=s(e);return Math.round(t*n)/n}function l(e){const t=o.useRef(e);return a((()=>{t.current=e})),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:p,elements:{reference:f,floating:m}={},transform:h=!0,whileElementsMounted:g,open:v}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=o.useState(d);c(w,d)||x(d);const[O,k]=o.useState(null),[S,E]=o.useState(null),j=o.useCallback((e=>{e!==T.current&&(T.current=e,k(e))}),[]),P=o.useCallback((e=>{e!==_.current&&(_.current=e,E(e))}),[]),A=f||O,D=m||S,T=o.useRef(null),_=o.useRef(null),C=o.useRef(y),M=null!=g,I=l(g),R=l(p),N=l(v),L=o.useCallback((()=>{if(!T.current||!_.current)return;const e={placement:t,strategy:n,middleware:w};R.current&&(e.platform=R.current),(0,r.rD)(T.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==N.current};F.current&&!c(C.current,t)&&(C.current=t,i.flushSync((()=>{b(t)})))}))}),[w,t,n,R,N]);a((()=>{!1===v&&C.current.isPositioned&&(C.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[v]);const F=o.useRef(!1);a((()=>(F.current=!0,()=>{F.current=!1})),[]),a((()=>{if(A&&(T.current=A),D&&(_.current=D),A&&D){if(I.current)return I.current(A,D,L);L()}}),[A,D,L,I,M]);const H=o.useMemo((()=>({reference:T,floating:_,setReference:j,setFloating:P})),[j,P]),W=o.useMemo((()=>({reference:A,floating:D})),[A,D]),B=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!W.floating)return e;const t=u(W.floating,y.x),r=u(W.floating,y.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...s(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,h,W.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:L,refs:H,elements:W,floatingStyles:B})),[y,L,H,W,B])}const p=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{};var i}}),f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),h=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),g=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),v=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),y=(e,t)=>({...(0,r.RK)(e),options:[e,t]}),b=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),w=(e,t)=>({...(0,r.mG)(e),options:[e,t]}),x=(e,t)=>({...p(e),options:[e,t]})},58689:(e,t,n)=>{"use strict";var r;n.d(t,{Mk:()=>N,XF:()=>J,bv:()=>le,ie:()=>j,kp:()=>te,s9:()=>ie,we:()=>ae});var o=n(4883),i=n(66984),a=n(74848),c=n(86635),s=n(49054),u=n(81845),l=n(88963),d=n(34743);const p={...r||(r=n.t(o,2))},f=p.useInsertionEffect||(e=>e());function m(e){const t=o.useRef((()=>{0}));return f((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const h="ArrowUp",g="ArrowDown",v="ArrowLeft",y="ArrowRight";var b="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;const w=[v,y],x=[h,g];let O=!1,k=0;const S=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+k++;const E=p.useId||function(){const[e,t]=o.useState((()=>O?S():void 0));return b((()=>{null==e&&t(S())}),[]),o.useEffect((()=>{O=!0}),[]),e};const j=o.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:s}},width:u=14,height:l=7,tipRadius:d=0,strokeWidth:p=0,staticOffset:f,stroke:m,d:h,style:{transform:g,...v}={},...y}=e;const w=E(),[x,O]=o.useState(!1);if(b((()=>{if(!r)return;"rtl"===(0,c.L9)(r).direction&&O(!0)}),[r]),!r)return null;const[k,S]=n.split("-"),j="top"===k||"bottom"===k;let P=f;(j&&null!=s&&s.x||!j&&null!=s&&s.y)&&(P=null);const A=2*p,D=A/2,T=u/2*(d/-8+1),_=l/2*d/4,C=!!h,M=P&&"end"===S?"bottom":"top";let I=P&&"end"===S?"right":"left";P&&x&&(I="end"===S?"left":"right");const R=null!=(null==i?void 0:i.x)?P||i.x:"",N=null!=(null==i?void 0:i.y)?P||i.y:"",L=h||"M0,0 H"+u+" L"+(u-T)+","+(l-_)+" Q"+u/2+","+l+" "+T+","+(l-_)+" Z",F={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[k];return(0,a.jsxs)("svg",{...y,"aria-hidden":!0,ref:t,width:C?u:u+A,height:u,viewBox:"0 0 "+u+" "+(l>u?l:u),style:{position:"absolute",pointerEvents:"none",[I]:R,[M]:N,[k]:j||C?"100%":"calc(100% - "+A/2+"px)",transform:[F,g].filter((e=>!!e)).join(" "),...v},children:[A>0&&(0,a.jsx)("path",{clipPath:"url(#"+w+")",fill:"none",stroke:m,strokeWidth:A+(h?0:1),d:L}),(0,a.jsx)("path",{stroke:A&&!h?y.fill:"none",d:L}),(0,a.jsx)("clipPath",{id:w,children:(0,a.jsx)("rect",{x:-D,y:D*(C?-1:1),width:u+A,height:u})})]})}));function P(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const A=o.createContext(null),D=o.createContext(null),T=()=>{var e;return(null==(e=o.useContext(A))?void 0:e.id)||null},_=()=>o.useContext(D);function C(e){return"data-floating-ui-"+e}function M(e){const t=(0,o.useRef)(e);return b((()=>{t.current=e})),t}const I=C("safe-polygon");function R(e,t,n){return n&&!(0,i.Go)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function N(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:a,events:s,elements:u}=e,{enabled:l=!0,delay:d=0,handleClose:p=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=t,v=_(),y=T(),w=M(p),x=M(d),O=M(n),k=o.useRef(),S=o.useRef(-1),E=o.useRef(),j=o.useRef(-1),P=o.useRef(!0),A=o.useRef(!1),D=o.useRef((()=>{})),C=o.useRef(!1),N=o.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);o.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(S.current),clearTimeout(j.current),P.current=!0,C.current=!1)}}),[l,s]),o.useEffect((()=>{if(!l)return;if(!w.current)return;if(!n)return;function e(e){N()&&r(!1,e,"hover")}const t=(0,i.YE)(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u.floating,n,r,l,w,N]);const L=o.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=R(x.current,"close",k.current);o&&!E.current?(clearTimeout(S.current),S.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(S.current),r(!1,e,n))}),[x,r]),F=m((()=>{D.current(),E.current=void 0})),H=m((()=>{if(A.current){const e=(0,i.YE)(u.floating).body;e.style.pointerEvents="",e.removeAttribute(I),A.current=!1}})),W=m((()=>!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)));o.useEffect((()=>{if(l&&(0,c.vq)(u.domReference)){var e;const r=u.domReference;return n&&r.addEventListener("mouseleave",s),null==(e=u.floating)||e.addEventListener("mouseleave",s),g&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",o),()=>{var e;n&&r.removeEventListener("mouseleave",s),null==(e=u.floating)||e.removeEventListener("mouseleave",s),g&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",o)}}function t(e){if(clearTimeout(S.current),P.current=!1,f&&!(0,i.Go)(k.current)||h>0&&!R(x.current,"open"))return;const t=R(x.current,"open",k.current);t?S.current=window.setTimeout((()=>{O.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function o(e){if(W())return;D.current();const t=(0,i.YE)(u.floating);if(clearTimeout(j.current),C.current=!1,w.current&&a.current.floatingContext){n||clearTimeout(S.current),E.current=w.current({...a.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){H(),F(),W()||L(e,!0,"safe-polygon")}});const r=E.current;return t.addEventListener("mousemove",r),void(D.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==k.current||!(0,i.gR)(u.floating,e.relatedTarget))&&L(e)}function s(e){W()||a.current.floatingContext&&(null==w.current||w.current({...a.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){H(),F(),W()||L(e)}})(e))}}),[u,l,e,f,h,g,L,F,H,r,n,O,v,x,w,a,W]),b((()=>{var e;if(l&&n&&null!=(e=w.current)&&e.__options.blockPointerEvents&&N()){A.current=!0;const e=u.floating;if((0,c.vq)(u.domReference)&&e){var t;const n=(0,i.YE)(u.floating).body;n.setAttribute(I,"");const r=u.domReference,o=null==v||null==(t=v.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,y,u,v,w,N]),b((()=>{n||(k.current=void 0,C.current=!1,F(),H())}),[n,F,H]),o.useEffect((()=>()=>{F(),clearTimeout(S.current),clearTimeout(j.current),H()}),[l,u.domReference,F,H]);const B=o.useMemo((()=>{function e(e){k.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){P.current||O.current||r(!0,t,"hover")}f&&!(0,i.Go)(k.current)||n||0===h||C.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(j.current),"touch"===k.current?o():(C.current=!0,j.current=window.setTimeout(o,h)))}}}),[f,r,n,O,h]),V=o.useMemo((()=>({onMouseEnter(){clearTimeout(S.current)},onMouseLeave(e){W()||L(e.nativeEvent,!1)}})),[L,W]);return o.useMemo((()=>l?{reference:B,floating:V}:{}),[l,B,V])}function L(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const F=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function H(e,t){const n=(0,s.Kr)(e,F());"prev"===t&&n.reverse();const r=n.indexOf((0,i.RS)((0,i.YE)(e)));return n.slice(r+1)[0]}function W(){return H(document.body,"next")}function B(){return H(document.body,"prev")}function V(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,i.gR)(n,r)}function U(e){(0,s.Kr)(e,F()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Y(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const z={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function q(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const $=o.forwardRef((function(e,t){const[n,r]=o.useState();b((()=>((0,i.nr)()&&r("button"),document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)})),[]);const c={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[C("focus-guard")]:"",style:z};return(0,a.jsx)("span",{...e,...c})})),G=o.createContext(null),K=C("portal");function J(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=E(),i=Q(),[a,s]=o.useState(null),u=o.useRef(null);return b((()=>()=>{null==a||a.remove(),queueMicrotask((()=>{u.current=null}))}),[a]),b((()=>{if(!r)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(K,""),e.appendChild(n),u.current=n,s(n)}),[t,r]),b((()=>{if(null===n)return;if(!r)return;if(u.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!(0,c.vq)(e)&&(e=e.current),e=e||document.body;let o=null;t&&(o=document.createElement("div"),o.id=t,e.appendChild(o));const a=document.createElement("div");a.id=r,a.setAttribute(K,""),e=o||e,e.appendChild(a),u.current=a,s(a)}),[t,n,r,i]),a}({id:n,root:r}),[l,d]=o.useState(null),p=o.useRef(null),f=o.useRef(null),m=o.useRef(null),h=o.useRef(null),g=null==l?void 0:l.modal,v=null==l?void 0:l.open,y=!!l&&!l.modal&&l.open&&i&&!(!r&&!s);return o.useEffect((()=>{if(s&&i&&!g)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){if(s&&V(e)){("focusin"===e.type?Y:U)(s)}}}),[s,i,g]),o.useEffect((()=>{s&&(v||Y(s))}),[v,s]),(0,a.jsxs)(G.Provider,{value:o.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:p,afterOutsideRef:f,beforeInsideRef:m,afterInsideRef:h,portalNode:s,setFocusManagerState:d})),[i,s]),children:[y&&s&&(0,a.jsx)($,{"data-type":"outside",ref:p,onFocus:e=>{if(V(e,s)){var t;null==(t=m.current)||t.focus()}else{const e=B()||(null==l?void 0:l.domReference);null==e||e.focus()}}}),y&&s&&(0,a.jsx)("span",{"aria-owns":s.id,style:z}),s&&u.createPortal(t,s),y&&s&&(0,a.jsx)($,{"data-type":"outside",ref:f,onFocus:e=>{if(V(e,s)){var t;null==(t=h.current)||t.focus()}else{const t=W()||(null==l?void 0:l.domReference);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Q=()=>o.useContext(G),X="data-floating-ui-focusable";function Z(e){return(0,c.sb)(e.target)&&"BUTTON"===e.target.tagName}function ee(e){return(0,i.$u)(e)}function te(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:a,elements:{domReference:c}}=e,{enabled:s=!0,event:u="click",toggle:l=!0,ignoreMouse:d=!1,keyboardHandlers:p=!0,stickIfOpen:f=!0}=t,m=o.useRef(),h=o.useRef(!1),g=o.useMemo((()=>({onPointerDown(e){m.current=e.pointerType},onMouseDown(e){const t=m.current;0===e.button&&"click"!==u&&((0,i.Go)(t,!0)&&d||(!n||!l||a.current.openEvent&&f&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=m.current;"mousedown"===u&&m.current?m.current=void 0:(0,i.Go)(t,!0)&&d||(!n||!l||a.current.openEvent&&f&&"click"!==a.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,e.defaultPrevented||!p||Z(e)||(" "!==e.key||ee(c)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!p||Z(e)||ee(c)||" "===e.key&&h.current&&(h.current=!1,r(!n||!l,e.nativeEvent,"click"))}})),[a,c,u,d,p,r,n,f,l]);return o.useMemo((()=>s?{reference:g}:{}),[s,g])}const ne={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},re={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},oe=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ie(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:a,dataRef:s}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:y,capture:b}=t,w=_(),x=m("function"==typeof p?p:()=>!1),O="function"==typeof p?x:p,k=o.useRef(!1),S=o.useRef(!1),{escapeKey:E,outsidePress:j}=oe(y),{escapeKey:P,outsidePress:A}=oe(b),D=o.useRef(!1),T=m((e=>{var t;if(!n||!u||!d||"Escape"!==e.key)return;if(D.current)return;const o=null==(t=s.current.floatingContext)?void 0:t.nodeId,a=w?L(w.nodesRef.current,o):[];if(!E&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,(0,i.O_)(e)?e.nativeEvent:e,"escape-key")})),M=m((e=>{var t;const n=()=>{var t;T(e),null==(t=(0,i.EW)(e))||t.removeEventListener("keydown",n)};null==(t=(0,i.EW)(e))||t.addEventListener("keydown",n)})),I=m((e=>{var t;const n=k.current;k.current=!1;const o=S.current;if(S.current=!1,"click"===f&&o)return;if(n)return;if("function"==typeof O&&!O(e))return;const u=(0,i.EW)(e),l="["+C("inert")+"]",d=(0,i.YE)(a.floating).querySelectorAll(l);let p=(0,c.vq)(u)?u:null;for(;p&&!(0,c.eu)(p);){const e=(0,c.$4)(p);if((0,c.eu)(e)||!(0,c.vq)(e))break;p=e}if(d.length&&(0,c.vq)(u)&&!(0,i.tZ)(u)&&!(0,i.gR)(u,a.floating)&&Array.from(d).every((e=>!(0,i.gR)(p,e))))return;if((0,c.sb)(u)&&F){const t=(0,c.eu)(u),n=(0,c.L9)(u),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),a=o&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,s=i&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,l="rtl"===n.direction,d=s&&(l?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),p=a&&e.offsetY>u.clientHeight;if(d||p)return}const m=null==(t=s.current.floatingContext)?void 0:t.nodeId,h=w&&L(w.nodesRef.current,m).some((t=>{var n;return(0,i.F2)(e,null==(n=t.context)?void 0:n.elements.floating)}));if((0,i.F2)(e,a.floating)||(0,i.F2)(e,a.domReference)||h)return;const g=w?L(w.nodesRef.current,m):[];if(g.length>0){let e=!0;if(g.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),R=m((e=>{var t;const n=()=>{var t;I(e),null==(t=(0,i.EW)(e))||t.removeEventListener(f,n)};null==(t=(0,i.EW)(e))||t.addEventListener(f,n)}));o.useEffect((()=>{if(!n||!u)return;s.current.__escapeKeyBubbles=E,s.current.__outsidePressBubbles=j;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),D.current=!0}function p(){e=window.setTimeout((()=>{D.current=!1}),(0,c.Tc)()?5:0)}const m=(0,i.YE)(a.floating);d&&(m.addEventListener("keydown",P?M:T,P),m.addEventListener("compositionstart",o),m.addEventListener("compositionend",p)),O&&m.addEventListener(f,A?R:I,A);let h=[];return v&&((0,c.vq)(a.domReference)&&(h=(0,l.v9)(a.domReference)),(0,c.vq)(a.floating)&&(h=h.concat((0,l.v9)(a.floating))),!(0,c.vq)(a.reference)&&a.reference&&a.reference.contextElement&&(h=h.concat((0,l.v9)(a.reference.contextElement)))),h=h.filter((e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)})),h.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{d&&(m.removeEventListener("keydown",P?M:T,P),m.removeEventListener("compositionstart",o),m.removeEventListener("compositionend",p)),O&&m.removeEventListener(f,A?R:I,A),h.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,a,d,O,f,n,r,v,u,E,j,T,P,M,I,A,R]),o.useEffect((()=>{k.current=!1}),[O,f]);const N=o.useMemo((()=>({onKeyDown:T,...h&&{[ne[g]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==g&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[T,r,h,g]),F=o.useMemo((()=>({onKeyDown:T,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[re[f]]:()=>{k.current=!0}})),[T,f]);return o.useMemo((()=>u?{reference:N,floating:F}:{}),[u,N,F])}function ae(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=E(),a=o.useRef({}),[c]=o.useState((()=>P())),s=null!=T(),[u,l]=o.useState(r.reference),d=m(((e,t,r)=>{a.current.openEvent=e?t:void 0,c.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),p=o.useMemo((()=>({setPositionReference:l})),[]),f=o.useMemo((()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference})),[u,r.reference,r.floating]);return o.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:f,events:c,floatingId:i,refs:p})),[t,d,f,c,i,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=o.useState(null),[u,l]=o.useState(null),p=(null==i?void 0:i.domReference)||a,f=o.useRef(null),h=_();b((()=>{p&&(f.current=p)}),[p]);const g=(0,d.we)({...e,elements:{...i,...u&&{reference:u}}}),v=o.useCallback((e=>{const t=(0,c.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),g.refs.setReference(t)}),[g.refs]),y=o.useCallback((e=>{((0,c.vq)(e)||null===e)&&(f.current=e,s(e)),((0,c.vq)(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!(0,c.vq)(e))&&g.refs.setReference(e)}),[g.refs]),w=o.useMemo((()=>({...g.refs,setReference:y,setPositionReference:v,domReference:f})),[g.refs,y,v]),x=o.useMemo((()=>({...g.elements,domReference:p})),[g.elements,p]),O=o.useMemo((()=>({...g,...r,refs:w,elements:x,nodeId:t})),[g,w,x,t,r]);return b((()=>{r.dataRef.current.floatingContext=O;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=O)})),o.useMemo((()=>({...g,context:O,refs:w,elements:x})),[g,w,x,O])}const ce="active",se="selected";function ue(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[ce]:t,[se]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[X]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[ce,se].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function le(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=o.useCallback((t=>ue(t,e,"reference")),t),a=o.useCallback((t=>ue(t,e,"floating")),n),c=o.useCallback((t=>ue(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:c})),[i,a,c])}},66984:(e,t,n)=>{"use strict";n.d(t,{$t:()=>c,$u:()=>w,EW:()=>y,F2:()=>v,Go:()=>f,O_:()=>m,Pg:()=>u,RS:()=>o,WZ:()=>O,YE:()=>g,YF:()=>s,cX:()=>p,gR:()=>i,jo:()=>x,nr:()=>l,tZ:()=>h,uo:()=>a});var r=n(86635);function o(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function i(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function a(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function s(e){return!(0!==e.mozInputSource||!e.isTrusted)||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function u(e){return!c().includes("jsdom/")&&(!d()&&0===e.width&&0===e.height||d()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function l(){return/apple/i.test(navigator.vendor)}function d(){const e=/android/i;return e.test(a())||e.test(c())}function p(){return a().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function f(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function m(e){return"nativeEvent"in e}function h(e){return e.matches("html,body")}function g(e){return(null==e?void 0:e.ownerDocument)||document}function v(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function y(e){return"composedPath"in e?e.composedPath()[0]:e.target}const b="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function w(e){return(0,r.sb)(e)&&e.matches(b)}function x(e){e.preventDefault(),e.stopPropagation()}function O(e){return!!e&&("combobox"===e.getAttribute("role")&&w(e))}},86635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function l(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function d(e){return["html","body","#document"].includes(o(e))}function p(e){return i(e).getComputedStyle(e)}function f(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||function(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return u(t)?t.host:t}n.d(t,{$4:()=>f,L9:()=>p,Ng:()=>u,Tc:()=>l,eu:()=>d,mq:()=>o,sb:()=>s,vq:()=>c,zk:()=>i})},81293:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>i,fX:()=>a});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},92516:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},78668:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},i={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return r(e,t);let c;switch(i){case"P":c=t.dateTime({width:"short"});break;case"PP":c=t.dateTime({width:"medium"});break;case"PPP":c=t.dateTime({width:"long"});break;default:c=t.dateTime({width:"full"})}return c.replace("{{date}}",r(i,t)).replace("{{time}}",o(a,t))}}},1108:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(29407);function o(e){const t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},5305:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(43329);function o(e,...t){const n=r.w.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}},3265:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>s,ef:()=>a,xM:()=>c});const r=/^D+$/,o=/^Y+$/,i=["D","DD","YY","YYYY"];function a(e){return r.test(e)}function c(e){return o.test(e)}function s(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),i.includes(e))throw new RangeError(r)}},16172:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(43329),o=n(29407);function i(e,t,n){const i=(0,o.a)(e,n?.in);return isNaN(t)?(0,r.w)(n?.in||e,NaN):t?(i.setDate(i.getDate()+t),i):i}},61501:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>i,_P:()=>s,_m:()=>c,my:()=>r,s0:()=>a,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,i=6e4,a=36e5,c=1e3,s=Symbol.for("constructDateFrom")},43329:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(61501);function o(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},2831:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(1108),o=n(5305),i=n(61501),a=n(6463);function c(e,t,n){const[c,s]=(0,o.x)(n?.in,e,t),u=(0,a.o)(c),l=(0,a.o)(s),d=+u-(0,r.G)(u),p=+l-(0,r.G)(l);return Math.round((d-p)/i.w4)}},25948:(e,t,n)=>{"use strict";n.d(t,{GP:()=>M});var r=n(9946),o=n(92516),i=n(2831),a=n(29407);function c(e,t){const n=(0,a.a)(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function s(e,t){const n=(0,a.a)(e,t?.in);return(0,i.m)(n,c(n))+1}var u=n(72794),l=n(51898),d=n(65456),p=n(84485);function f(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const m={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):f(n+1,2)},d:(e,t)=>f(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>f(e.getHours()%12||12,t.length),H:(e,t)=>f(e.getHours(),t.length),m:(e,t)=>f(e.getMinutes(),t.length),s:(e,t)=>f(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return f(Math.trunc(r*Math.pow(10,n-3)),t.length)}},h="midnight",g="noon",v="morning",y="afternoon",b="evening",w="night",x={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return m.y(e,t)},Y:function(e,t,n,r){const o=(0,p.h)(e,r),i=o>0?o:1-o;if("YY"===t){return f(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):f(i,t.length)},R:function(e,t){return f((0,l.p)(e),t.length)},u:function(e,t){return f(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,d.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){const r=(0,u.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){const r=s(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return f(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return f(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return f(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?g:0===r?h:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?b:r>=12?y:r>=4?v:w,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){return m.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return k(r);case"XXXX":case"XX":return S(r);default:return S(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return k(r);case"xxxx":case"xx":return S(r);default:return S(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+O(r,":");default:return"GMT"+S(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+O(r,":");default:return"GMT"+S(r,":")}},t:function(e,t,n){return f(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return f(+e,t.length)}};function O(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+f(i,2)}function k(e,t){if(e%60==0){return(e>0?"-":"+")+f(Math.abs(e)/60,2)}return S(e,t)}function S(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+f(Math.trunc(r/60),2)+t+f(r%60,2)}var E=n(78668),j=n(3265),P=n(99790);const A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,_=/''/g,C=/[a-zA-Z]/;function M(e,t,n){const i=(0,o.q)(),c=n?.locale??i.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=(0,a.a)(e,n?.in);if(!(0,P.f)(l))throw new RangeError("Invalid time value");let d=t.match(D).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,E.m[t])(e,c.formatLong)}return e})).join("").match(A).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:I(e)};if(x[t])return{isToken:!0,value:e};if(t.match(C))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));c.localize.preprocessor&&(d=c.localize.preprocessor(l,d));const p={firstWeekContainsDate:s,weekStartsOn:u,locale:c};return d.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,j.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,j.ef)(o))&&(0,j.Ss)(o,t,String(e));return(0,x[o[0]])(l,o,c.localize,p)})).join("")}function I(e){const t=e.match(T);return t?t[1].replace(_,"'"):e}},58161:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(92516);function o(){return Object.assign({},(0,r.q)())}},40337:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(29407);function o(e,t){return(0,r.a)(e,t?.in).getHours()}},72794:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(61501),o=n(22008),i=n(43329),a=n(51898);function c(e,t){const n=(0,a.p)(e,t),r=(0,i.w)(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,o.b)(r)}var s=n(29407);function u(e,t){const n=(0,s.a)(e,t?.in),i=+(0,o.b)(n)-+c(n);return Math.round(i/r.my)+1}},51898:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(43329),o=n(22008),i=n(29407);function a(e,t){const n=(0,i.a)(e,t?.in),a=n.getFullYear(),c=(0,r.w)(n,0);c.setFullYear(a+1,0,4),c.setHours(0,0,0,0);const s=(0,o.b)(c),u=(0,r.w)(n,0);u.setFullYear(a,0,4),u.setHours(0,0,0,0);const l=(0,o.b)(u);return n.getTime()>=s.getTime()?a+1:n.getTime()>=l.getTime()?a:a-1}},4155:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(29407);function o(e,t){return(0,r.a)(e,t?.in).getMinutes()}},65456:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(61501),o=n(80337),i=n(92516),a=n(43329),c=n(84485);function s(e,t){const n=(0,i.q)(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=(0,c.h)(e,t),u=(0,a.w)(t?.in||e,0);u.setFullYear(s,0,r),u.setHours(0,0,0,0);return(0,o.k)(u,t)}var u=n(29407);function l(e,t){const n=(0,u.a)(e,t?.in),i=+(0,o.k)(n,t)-+s(n,t);return Math.round(i/r.my)+1}},84485:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(92516),o=n(43329),i=n(80337),a=n(29407);function c(e,t){const n=(0,a.a)(e,t?.in),c=n.getFullYear(),s=(0,r.q)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=(0,o.w)(t?.in||e,0);l.setFullYear(c+1,0,u),l.setHours(0,0,0,0);const d=(0,i.k)(l,t),p=(0,o.w)(t?.in||e,0);p.setFullYear(c,0,u),p.setHours(0,0,0,0);const f=(0,i.k)(p,t);return+n>=+d?c+1:+n>=+f?c:c-1}},92705:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(99790),o=n(48854);function i(e,t,n){return(0,r.f)((0,o.qg)(e,t,new Date,n))}},99790:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{f:()=>i});var o=n(29407);function i(e){return!(!r(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},7277:(e,t,n)=>{"use strict";function r(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{k:()=>r})},33443:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},57883:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(c)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(c,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}n.d(t,{A:()=>r})},20337:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},9946:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});const r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var o=n(7277);const i={date:(0,o.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var c=n(33443);const s={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,c.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,c.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,c.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,c.o)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,c.o)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};var u=n(57883);const l={code:"en-US",formatDistance:(e,t,n)=>{let o;const i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:s,match:{ordinalNumber:(0,n(20337).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,u.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,u.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,u.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,u.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},48854:(e,t,n)=>{"use strict";n.d(t,{qg:()=>ge});var r=n(9946),o=n(78668),i=n(3265),a=n(43329),c=n(58161),s=n(29407);function u(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):(0,a.w)(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class l{subPriority=0;validate(e,t){return!0}}class d extends l{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class p extends l{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>(0,a.w)(t,e))}set(e,t){return t.timestampIsSet?e:(0,a.w)(e,u(e,this.context))}}class f{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new d(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}var m=n(61501);const h=/^(1[0-2]|0?\d)/,g=/^(3[0-1]|[0-2]?\d)/,v=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,y=/^(5[0-3]|[0-4]?\d)/,b=/^(2[0-3]|[0-1]?\d)/,w=/^(2[0-4]|[0-1]?\d)/,x=/^(1[0-1]|0?\d)/,O=/^(1[0-2]|0?\d)/,k=/^[0-5]?\d/,S=/^[0-5]?\d/,E=/^\d/,j=/^\d{1,2}/,P=/^\d{1,3}/,A=/^\d{1,4}/,D=/^-?\d+/,T=/^-?\d/,_=/^-?\d{1,2}/,C=/^-?\d{1,3}/,M=/^-?\d{1,4}/,I=/^([+-])(\d{2})(\d{2})?|Z/,R=/^([+-])(\d{2})(\d{2})|Z/,N=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,L=/^([+-])(\d{2}):(\d{2})|Z/,F=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function H(e,t){return e?{value:t(e.value),rest:e.rest}:e}function W(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function B(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*m.s0+i*m.Cg+a*m._m),rest:t.slice(n[0].length)}}function V(e){return W(D,e)}function U(e,t){switch(e){case 1:return W(E,t);case 2:return W(j,t);case 3:return W(P,t);case 4:return W(A,t);default:return W(new RegExp("^\\d{1,"+e+"}"),t)}}function Y(e,t){switch(e){case 1:return W(T,t);case 2:return W(_,t);case 3:return W(C,t);case 4:return W(M,t);default:return W(new RegExp("^-?\\d{1,"+e+"}"),t)}}function z(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function q(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function $(e){return e%400==0||e%4==0&&e%100!=0}var G=n(84485),K=n(80337);var J=n(22008);var Q=n(65456);function X(e,t,n){const r=(0,s.a)(e,n?.in),o=(0,Q.N)(r,n)-t;return r.setDate(r.getDate()-7*o),(0,s.a)(r,n?.in)}var Z=n(72794);function ee(e,t,n){const r=(0,s.a)(e,n?.in),o=(0,Z.s)(r,n)-t;return r.setDate(r.getDate()-7*o),r}const te=[31,28,31,30,31,30,31,31,30,31,30,31],ne=[31,29,31,30,31,30,31,31,30,31,30,31];var re=n(92516),oe=n(16172);function ie(e,t,n){const r=(0,re.q)(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=(0,s.a)(e,n?.in),a=i.getDay(),c=7-o,u=t<0||t>6?t-(a+c)%7:((t%7+7)%7+c)%7-(a+c)%7;return(0,oe.f)(i,u,n)}function ae(e,t){const n=(0,s.a)(e,t?.in).getDay();return 0===n?7:n}function ce(e,t,n){const r=(0,s.a)(e,n?.in),o=t-ae(r,n);return(0,oe.f)(r,o,n)}var se=n(1108);const ue={G:new class extends f{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends f{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return H(U(4,e),r);case"yo":return H(n.ordinalNumber(e,{unit:"year"}),r);default:return H(U(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=q(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends f{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return H(U(4,e),r);case"Yo":return H(n.ordinalNumber(e,{unit:"year"}),r);default:return H(U(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=(0,G.h)(e,r);if(n.isTwoDigitYear){const t=q(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,K.k)(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,K.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends f{priority=130;parse(e,t){return Y("R"===t?4:t.length,e)}set(e,t,n){const r=(0,a.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,J.b)(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends f{priority=130;parse(e,t){return Y("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends f{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return U(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends f{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return U(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends f{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return H(W(h,e),r);case"MM":return H(U(2,e),r);case"Mo":return H(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends f{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return H(W(h,e),r);case"LL":return H(U(2,e),r);case"Lo":return H(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends f{priority=100;parse(e,t,n){switch(t){case"w":return W(y,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return U(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,K.k)(X(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends f{priority=100;parse(e,t,n){switch(t){case"I":return W(y,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return U(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,J.b)(ee(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends f{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return W(g,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return U(t.length,e)}}validate(e,t){const n=$(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=ne[r]:t>=1&&t<=te[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends f{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return W(v,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return U(t.length,e)}}validate(e,t){return $(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends f{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=ie(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends f{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return H(U(t.length,e),o);case"eo":return H(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=ie(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends f{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return H(U(t.length,e),o);case"co":return H(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=ie(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends f{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return U(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return H(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return H(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return H(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return H(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=ce(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends f{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(z(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends f{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(z(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends f{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(z(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends f{priority=70;parse(e,t,n){switch(t){case"h":return W(O,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return U(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends f{priority=70;parse(e,t,n){switch(t){case"H":return W(b,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return U(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends f{priority=70;parse(e,t,n){switch(t){case"K":return W(x,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return U(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends f{priority=70;parse(e,t,n){switch(t){case"k":return W(w,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return U(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends f{priority=60;parse(e,t,n){switch(t){case"m":return W(k,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return U(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends f{priority=50;parse(e,t,n){switch(t){case"s":return W(S,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return U(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends f{priority=30;parse(e,t){return H(U(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends f{priority=10;parse(e,t){switch(t){case"X":return B(I,e);case"XX":return B(R,e);case"XXXX":return B(N,e);case"XXXXX":return B(F,e);default:return B(L,e)}}set(e,t,n){return t.timestampIsSet?e:(0,a.w)(e,e.getTime()-(0,se.G)(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends f{priority=10;parse(e,t){switch(t){case"x":return B(I,e);case"xx":return B(R,e);case"xxxx":return B(N,e);case"xxxxx":return B(F,e);default:return B(L,e)}}set(e,t,n){return t.timestampIsSet?e:(0,a.w)(e,e.getTime()-(0,se.G)(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends f{priority=40;parse(e){return V(e)}set(e,t,n){return[(0,a.w)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends f{priority=20;parse(e){return V(e)}set(e,t,n){return[(0,a.w)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pe=/^'([^]*?)'?$/,fe=/''/g,me=/\S/,he=/[a-zA-Z]/;function ge(e,t,n,u){const l=()=>(0,a.w)(u?.in||n,NaN),d=(0,c.q)(),f=u?.locale??d.locale??r.c,m=u?.firstWeekContainsDate??u?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,h=u?.weekStartsOn??u?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0;if(!t)return e?l():(0,s.a)(n,u?.in);const g={firstWeekContainsDate:m,weekStartsOn:h,locale:f},v=[new p(u?.in,n)],y=t.match(de).map((e=>{const t=e[0];if(t in o.m){return(0,o.m[t])(e,f.formatLong)}return e})).join("").match(le),b=[];for(let n of y){!u?.useAdditionalWeekYearTokens&&(0,i.xM)(n)&&(0,i.Ss)(n,t,e),!u?.useAdditionalDayOfYearTokens&&(0,i.ef)(n)&&(0,i.Ss)(n,t,e);const r=n[0],o=ue[r];if(o){const{incompatibleTokens:t}=o;if(Array.isArray(t)){const e=b.find((e=>t.includes(e.token)||e.token===r));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if("*"===o.incompatibleTokens&&b.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);b.push({token:r,fullToken:n});const i=o.run(e,n,f.match,g);if(!i)return l();v.push(i.setter),e=i.rest}else{if(r.match(he))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===n?n="'":"'"===r&&(n=n.match(pe)[1].replace(fe,"'")),0!==e.indexOf(n))return l();e=e.slice(n.length)}}if(e.length>0&&me.test(e))return l();const w=v.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>v.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let x=(0,s.a)(n,u?.in);if(isNaN(+x))return l();const O={};for(const e of w){if(!e.validate(x,g))return l();const t=e.set(x,O,g);Array.isArray(t)?(x=t[0],Object.assign(O,t[1])):x=t}return x}},41394:(e,t,n)=>{"use strict";n.d(t,{H:()=>a});var r=n(61501),o=n(43329),i=n(29407);function a(e,t){const n=()=>(0,o.w)(t?.in,NaN),a=t?.additionalDigits??2,h=function(e){const t={},n=e.split(c.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],c.timeZoneDelimiter.test(t.date)&&(t.date=e.split(c.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=c.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let g;if(h.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(h.date,a);g=function(e,t){if(null===t)return new Date(NaN);const n=e.match(s);if(!n)return new Date(NaN);const r=!!n[4],o=d(n[1]),i=d(n[2])-1,a=d(n[3]),c=d(n[4]),u=d(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,u)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,c,u):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(f[t]||(m(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(m(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!g||isNaN(+g))return n();const v=+g;let y,b=0;if(h.time&&(b=function(e){const t=e.match(u);if(!t)return NaN;const n=p(t[1]),o=p(t[2]),i=p(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i))return NaN;return n*r.s0+o*r.Cg+1e3*i}(h.time),isNaN(b)))return n();if(!h.timezone){const e=new Date(v+b),n=(0,i.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return y=function(e){if("Z"===e)return 0;const t=e.match(l);if(!t)return 0;const n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,i))return NaN;return n*(o*r.s0+i*r.Cg)}(h.timezone),isNaN(y)?n():(0,i.a)(v+b+y,t?.in)}const c={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}const f=[31,null,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400==0||e%4==0&&e%100!=0}},14533:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(29407);function o(e,t,n){const o=(0,r.a)(e,n?.in);return o.setHours(t),o}},74279:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(29407);function o(e,t,n){const o=(0,r.a)(e,n?.in);return o.setMinutes(t),o}},81007:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(29407);function o(e,t,n){const o=(0,r.a)(e,n?.in);return o.setSeconds(t),o}},6463:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(29407);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setHours(0,0,0,0),n}},22008:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(80337);function o(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},80337:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(92516),o=n(29407);function i(e,t){const n=(0,r.q)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,o.a)(e,t?.in),c=a.getDay(),s=(c<i?7:0)+c-i;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}},29407:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(43329);function o(e,t){return(0,r.w)(t||e,e)}},77801:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function a(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}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},18987:(e,t,n)=>{"use strict";
|
|
41
41
|
/*! js-cookie v3.0.5 | MIT */
|
|
42
|
-
function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:()=>o});var o=function e(t,n){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(r[c]=t.read(a,c),e===c)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){o(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function a(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}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},71468:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>ee,Ng:()=>Z,Pj:()=>oe,ty:()=>K});var r=n(4883),o=(n(78418),r.version.startsWith("19")),i=Symbol.for(o?"react.transitional.element":"react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=p,y=h;function b(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case i:switch(e=e.type){case c:case u:case s:case f:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case g:case h:case l:return e;default:return t}}case a:return t}}}function w(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let c,s,u,l,d,p=!1;function f(p,f){const m=!i(f,s),h=!o(p,c,f,s);return c=p,s=f,m&&h?(u=e(c,s),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):m?(e.dependsOnOwnProps&&(u=e(c,s)),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):h?function(){const t=e(c,s),r=!a(t,u);return u=t,r&&(d=n(u,l,s)),d}():d}return function(o,i){return p?f(o,i):(c=o,s=i,u=e(c,s),l=t(r,s),d=n(u,l,s),p=!0,d)}}function x(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function O(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=O(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=O(o),o=r(t,n)),o},r}}function S(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function E(e,t,n){return{...n,...e,...t}}function j(e){e()}var P={notify(){},get:()=>[]};function A(e,t){let n,r=P,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){j((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=P)}const u={addNestedSub:function(e){c();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}var D=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),T=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),_=(()=>D||T?r.useLayoutEffect:r.useEffect)();function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!C(e[n[r]],t[n[r]]))return!1;return!0}var I={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},R={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},N={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[y]:N};function F(e){return function(e){return b(e)===h}(e)?N:L[e.$$typeof]||I}var H=Object.defineProperty,W=Object.getOwnPropertyNames,B=Object.getOwnPropertySymbols,V=Object.getOwnPropertyDescriptor,U=Object.getPrototypeOf,Y=Object.prototype;function z(e,t){if("string"!=typeof t){if(Y){const n=U(t);n&&n!==Y&&z(e,n)}let n=W(t);B&&(n=n.concat(B(t)));const r=F(e),o=F(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(R[a]||o&&o[a]||r&&r[a])){const n=V(t,a);try{H(e,a,n)}catch(e){}}}}return e}var q=Symbol.for("react-redux-context"),$="undefined"!=typeof globalThis?globalThis:{};function G(){if(!r.createContext)return{};const e=$[q]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var K=G(),J=[null,null];function Q(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function X(e,t){return e===t}var Z=function(e,t,n,{pure:o,areStatesEqual:i=X,areOwnPropsEqual:a=M,areStatePropsEqual:c=M,areMergedPropsEqual:s=M,forwardRef:u=!1,context:l=K}={}){const d=l,p=function(e){return e?"function"==typeof e?k(e):S(e,"mapStateToProps"):x((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?x((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?k(e):S(e,"mapDispatchToProps"):x((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const c=e(t,n,a);return i?r(c,o)||(o=c):(i=!0,o=c),o}}}(e):S(e,"mergeProps"):()=>E}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:c,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){const[n,i,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),c=r.useMemo((()=>d),[n,d]),s=r.useContext(c),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(s)&&Boolean(s.store);const p=u?t.store:s.store,f=l?s.getServerState:p.getState,m=r.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return w(t(e,o),n(e,o),r(e,o),e,o)}(p.dispatch,o)),[p]),[g,v]=r.useMemo((()=>{if(!h)return J;const e=A(p,u?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,u,s]),y=r.useMemo((()=>u?s:{...s,subscription:g}),[u,s,g]),b=r.useRef(void 0),x=r.useRef(a),O=r.useRef(void 0),k=r.useRef(!1),S=r.useRef(!1),E=r.useRef(void 0);_((()=>(S.current=!0,()=>{S.current=!1})),[]);const j=r.useMemo((()=>()=>O.current&&a===x.current?O.current:m(p.getState(),a)),[p,a]),P=r.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,c,s,u,l){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!c.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===i.current?a.current||u():(i.current=n,s.current=n,a.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(h,p,g,m,x,b,k,S,O,v,e):()=>{}),[g]);var D,T,C;let M;D=Q,T=[x,b,k,a,O,v],_((()=>D(...T)),C);try{M=r.useSyncExternalStore(P,j,f?()=>m(f(),a):j)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}_((()=>{E.current=void 0,O.current=void 0,b.current=M}));const I=r.useMemo((()=>r.createElement(e,{...M,ref:i})),[i,e,M]);return r.useMemo((()=>h?r.createElement(c.Provider,{value:y},I):I),[c,I,y])}const g=r.memo(l);if(g.WrappedComponent=e,g.displayName=l.displayName=n,u){const t=r.forwardRef((function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,z(t,e)}return z(g,e)}};var ee=function(e){const{children:t,context:n,serverState:o,store:i}=e,a=r.useMemo((()=>{const e=A(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}}),[i,o]),c=r.useMemo((()=>i.getState()),[i]);_((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,c]);const s=n||K;return r.createElement(s.Provider,{value:a},t)};function te(e=K){return function(){return r.useContext(e)}}var ne=te();function re(e=K){const t=e===K?ne:te(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var oe=re()},76744:(e,t,n)=>{"use strict";n.d(t,{AO:()=>h,BV:()=>Wt,C5:()=>Lt,Ge:()=>kn,KP:()=>jt,N_:()=>Pn,Ri:()=>ct,Ys:()=>On,Zp:()=>dt,bg:()=>Mt,g:()=>pt,ok:()=>_n,pg:()=>Rt,qh:()=>Ft,zy:()=>st});var r,o=n(4883),i=(n(16069),e=>{throw TypeError(e)}),a=(e,t,n)=>(((e,t,n)=>{t.has(e)||i("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),c="popstate";function s(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>l(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let i=s(null==r?t.length-1:r),a="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[i]}function l(e,n=null,r){let o=m(t?u().pathname:"/",e,n,r);return p("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:h(e)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){a="PUSH";let r=l(e,n);i+=1,t.splice(i,t.length,r),o&&c&&c({action:a,location:r,delta:1})},replace(e,n){a="REPLACE";let r=l(e,n);t[i]=r,o&&c&&c({action:a,location:r,delta:0})},go(e){a="POP";let n=s(i+e),r=t[n];i=n,c&&c({action:a,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function u(e={}){return v((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function h({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function g(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",u=null,l=p();function p(){return(a.state||{idx:null}).idx}function g(){s="POP";let e=p(),t=null==e?null:e-l;l=e,u&&u({action:s,location:y.location,delta:t})}function v(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),d(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==l&&(l=0,a.replaceState({...a.state,idx:l},""));let y={get action(){return s},get location(){return e(o,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(c,g),u=e,()=>{o.removeEventListener(c,g),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=m(y.location,e,t);n&&n(r,e),l=p()+1;let c=f(r,l),d=y.createHref(r);try{a.pushState(c,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(d)}i&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let r=m(y.location,e,t);n&&n(r,e),l=p();let o=f(r,l),c=y.createHref(r);a.replaceState(o,"",c),i&&u&&u({action:s,location:y.location,delta:0})},go:e=>a.go(e)};return y}var y=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?i("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,o),e)for(let[t,n]of e)this.set(t,n)}get(e){if(a(this,r).has(e))return a(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(this,r).set(e,t)}};r=new WeakMap;var b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,n=[],r={}){return e.map(((e,o)=>{let i=[...n,String(o)],a="string"==typeof e.id?e.id:i.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[a],`Found a route id collision on id "${a}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:a};return r[a]=n,n}{let n={...e,...t(e),id:a,children:void 0};return r[a]=n,e.children&&(n.children=w(e.children,t,i,r)),n}}))}function x(e,t,n="/"){return O(e,t,n,!1)}function O(e,t,n,r){let o=L(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=S(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=N(o);a=I(i[e],t,r)}return a}function k(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function S(e,t=[],n=[],r=""){let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(d(a.relativePath.startsWith(r),`Absolute route path "${a.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),a.relativePath=a.relativePath.slice(r.length));let c=V([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),S(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:M(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of E(e.path))o(e,t,n);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=E(r.join("/")),c=[];return c.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&c.push(...a),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var j=/^:[\w-]+$/,P=3,A=2,D=1,T=10,_=-2,C=e=>"*"===e;function M(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=_),t&&(r+=A),n.filter((e=>!C(e))).reduce(((e,t)=>e+(j.test(t)?P:""===t?D:T)),r)}function I(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",l=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},u),d=c.route;if(!l&&s&&n&&!r[r.length-1].route.index&&(l=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),a.push({params:o,pathname:V([i,l.pathname]),pathnameBase:U(V([i,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(i=V([i,l.pathnameBase]))}return a}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){p("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function N(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!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 (${t}).`),e}}function L(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function F(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function H(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=H(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function B(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),F("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),F("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),F("#","search","hash",o)));let i,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)i=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?g(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:Y(r),hash:z(o)}}(o,i),u=c&&"/"!==c&&c.endsWith("/"),l=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!l||(s.pathname+="/"),s}var V=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var q=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function $(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var G=["POST","PUT","PATCH","DELETE"],K=new Set(G),J=["GET",...G],Q=new Set(J),X=new Set([301,302,303,307,308]),Z=new Set([307,308]),ee={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},re=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ie="remix-router-transitions",ae=Symbol("ResetLoaderData");function ce(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,i,a=e.mapRouteProperties||oe,c={},s=w(e.routes,a,void 0,c),u=e.basename||"/",l=e.dataStrategy||ye,f={unstable_middleware:!1,...e.future},h=null,g=new Set,v=null,b=null,S=null,E=null!=e.hydrationData,j=x(s,e.history.location,u),P=!1,A=null;if(null==j&&!e.patchRoutesOnNavigation){let t=Re(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ie(s);j=n,A={[r.id]:t}}if(j&&!e.hydrationData){et(j,s,e.history.location.pathname).active&&(j=null)}if(j)if(j.some((e=>e.route.lazy)))o=!1;else if(j.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=j.findIndex((e=>void 0!==n[e.route.id]));o=j.slice(0,e+1).every((e=>!pe(e.route,t,n)))}else o=j.every((e=>!pe(e.route,t,n)))}else o=!0;else{o=!1,j=[];let t=et(null,s,e.history.location.pathname);t.active&&t.matches&&(P=!0,j=t.matches)}let D,T,_={historyAction:e.history.action,location:e.history.location,matches:j,initialized:o,navigation:ee,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||A,fetchers:new Map,blockers:new Map},C="POP",M=!1,I=!1,R=new Map,N=null,F=!1,H=!1,W=new Set,B=new Map,V=0,U=-1,Y=new Map,z=new Set,q=new Map,G=new Map,K=new Set,J=new Map,Q=null;function X(e,t={}){_={..._,...e};let n=[],r=[];_.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{_.fetchers.has(e)||B.has(e)||n.push(e)})),[...g].forEach((e=>e(_,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Pe(e))),r.forEach((e=>_.fetchers.delete(e)))}function ae(t,n,{flushSync:o}={}){let i,a=null!=_.actionData&&null!=_.navigation.formMethod&&Ye(_.navigation.formMethod)&&"loading"===_.navigation.state&&!0!==t.state?._isRedirect;i=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?_.actionData:null;let c=n.loaderData?_e(_.loaderData,n.loaderData,n.matches||[],n.errors):_.loaderData,u=_.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,ne))));let l,d=!0===M||null!=_.navigation.formMethod&&Ye(_.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(s=r,r=void 0),F||"POP"===C||("PUSH"===C?e.history.push(t,t.state):"REPLACE"===C&&e.history.replace(t,t.state)),"POP"===C){let e=R.get(_.location.pathname);e&&e.has(t.pathname)?l={currentLocation:_.location,nextLocation:t}:R.has(t.pathname)&&(l={currentLocation:t,nextLocation:_.location})}else if(I){let e=R.get(_.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),R.set(_.location.pathname,e)),l={currentLocation:_.location,nextLocation:t}}X({...n,actionData:i,loaderData:c,historyAction:C,location:t,initialized:!0,navigation:ee,revalidation:"idle",restoreScrollPosition:Ze(t,n.matches||_.matches),preventScrollReset:d,blockers:u},{viewTransitionOpts:l,flushSync:!0===o}),C="POP",M=!1,I=!1,F=!1,H=!1,Q?.resolve(),Q=null}async function ce(t,n,o){D&&D.abort(),D=null,C=t,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(v&&S){let n=Xe(e,t);v[n]=S()}}(_.location,_.matches),M=!0===(o&&o.preventScrollReset),I=!0===(o&&o.enableViewTransition);let i=r||s,a=o&&o.overrideNavigation,c=o?.initialHydration&&_.matches&&_.matches.length>0&&!P?_.matches:x(i,n,u),l=!0===(o&&o.flushSync);if(c&&_.initialized&&!H&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(_.location,n)&&!(o&&o.submission&&Ye(o.submission.formMethod)))return void ae(n,{matches:c},{flushSync:l});let d=et(c,i,n.pathname);if(d.active&&d.matches&&(c=d.matches),!c){let{error:e,notFoundMatches:t,route:r}=Qe(n.pathname);return void ae(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}D=new AbortController;let p,f=je(e.history,n,D.signal,o&&o.submission),m=new y(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)p=[Me(c).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Ye(o.submission.formMethod)){let t=await async function(e,t,n,r,o,i,a={}){ve();let c,s=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(X({navigation:s},{flushSync:!0===a.flushSync}),i){let n=await tt(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Me(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=Qe(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let l=qe(r,t);if(l.route.action||l.route.lazy){let t=await me("action",e,[l],r,o,null);if(c=t[l.route.id],!c)for(let e of r)if(t[e.route.id]){c=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else c={type:"error",error:Re(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(We(c)){let t;if(a&&null!=a.replace)t=a.replace;else{t=Ee(c.response.headers.get("Location"),new URL(e.url),u)===_.location.pathname+_.location.search}return await fe(e,c,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(He(c)){let e=Me(r,l.route.id);return!0!==(a&&a.replace)&&(C="PUSH"),{matches:r,pendingActionResult:[e.route.id,c]}}return{matches:r,pendingActionResult:[l.route.id,c]}}(f,n,o.submission,c,m,d.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(He(r)&&$(r.error)&&404===r.error.status)return D=null,void ae(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,p=t.pendingActionResult,a=Ge(n,o.submission),l=!1,d.active=!1,f=je(e.history,f.url,f.signal)}let{shortCircuited:h,matches:g,loaderData:b,errors:w}=await async function(t,n,o,i,a,c,l,d,p,f,m,h){let g=c||Ge(n,l),v=l||d||$e(g),y=!F&&!f;if(a){if(y){let e=le(h);X({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:m})}let e=await tt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Me(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Qe(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||s,[w,x]=de(e.history,_,o,v,n,!0===f,H,W,K,q,z,b,u,h);if(U=++V,0===w.length&&0===x.length){let e=Le();return ae(n,{matches:o,loaderData:{},errors:h&&He(h[1])?{[h[0]]:h[1].error}:null,...Ce(h),...e?{fetchers:new Map(_.fetchers)}:{}},{flushSync:m}),{shortCircuited:!0}}if(y){let e={};if(!a){e.navigation=g;let t=le(h);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=_.fetchers.get(e.key),n=Ke(void 0,t?t.data:void 0);_.fetchers.set(e.key,n)})),new Map(_.fetchers)}(x)),X(e,{flushSync:m})}x.forEach((e=>{Ae(e.key),e.controller&&B.set(e.key,e.controller)}));let O=()=>x.forEach((e=>Ae(e.key)));D&&D.signal.addEventListener("abort",O);let{loaderResults:k,fetcherResults:S}=await ge(o,w,x,t,i);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",O);x.forEach((e=>B.delete(e.key)));let E=Ne(k);if(E)return await fe(t,E.result,!0,{replace:p}),{shortCircuited:!0};if(E=Ne(S),E)return z.add(E.key),await fe(t,E.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:j,errors:P}=Te(_,o,k,h,x,S);f&&_.errors&&(P={..._.errors,...P});let A=Le(),T=Be(U),C=A||T||x.length>0;return{matches:o,loaderData:j,errors:P,...C?{fetchers:new Map(_.fetchers)}:{}}}(f,n,c,m,d.active,a,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,p);h||(D=null,ae(n,{matches:g||c,...Ce(p),loaderData:b,errors:w}))}function le(e){return e&&!He(e[1])?{[e[0]]:e[1].data}:_.actionData?0===Object.keys(_.actionData).length?null:_.actionData:void 0}async function fe(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:l}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=Ee(p,new URL(r.url),u);let f=m(_.location,p,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(re.test(p)){const r=e.history.createURL(p);n=r.origin!==t.location.origin||null==L(r.pathname,u)}if(n)return void(l?t.location.replace(p):t.location.assign(p))}D=null;let h=!0===l||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=_.navigation;!a&&!c&&g&&v&&y&&(a=$e(_.navigation));let b=a||c;if(Z.has(o.response.status)&&b&&Ye(b.formMethod))await ce(h,f,{submission:{...b,formAction:p},preventScrollReset:s||M,enableViewTransition:i?I:void 0});else{let e=Ge(f,a);await ce(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||M,enableViewTransition:i?I:void 0})}}async function me(e,t,n,r,o,i){let s,d={};try{s=await Oe(l,e,t,n,r,i,c,a,o,f.unstable_middleware)}catch(e){return n.forEach((t=>{d[t.route.id]={type:"error",error:e}})),d}for(let[e,n]of Object.entries(s))if(Fe(n)){let o=n.result;d[e]={type:"redirect",response:Se(o,t,e,r,u)}}else d[e]=await ke(n);return d}async function ge(t,n,r,o,i){let a=me("loader",o,n,t,i,null),c=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",je(e.history,t.path,t.controller.signal),[t.match],t.matches,i,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Re(404,{pathname:t.path})}})})));return{loaderResults:await a,fetcherResults:(await c).reduce(((e,t)=>Object.assign(e,t)),{})}}function ve(){H=!0,q.forEach(((e,t)=>{B.has(t)&&W.add(t),Ae(t)}))}function be(e,t,n={}){_.fetchers.set(e,t),X({fetchers:new Map(_.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function we(e,t,n,r={}){let o=Me(_.matches,t);Pe(e),X({errors:{[o.route.id]:n},fetchers:new Map(_.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function xe(e){return G.set(e,(G.get(e)||0)+1),K.has(e)&&K.delete(e),_.fetchers.get(e)||te}function Pe(e){let t=_.fetchers.get(e);!B.has(e)||t&&"loading"===t.state&&Y.has(e)||Ae(e),q.delete(e),Y.delete(e),z.delete(e),K.delete(e),W.delete(e),_.fetchers.delete(e)}function Ae(e){let t=B.get(e);t&&(t.abort(),B.delete(e))}function De(e){for(let t of e){let e=Je(xe(t).data);_.fetchers.set(t,e)}}function Le(){let e=[],t=!1;for(let n of z){let r=_.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(z.delete(n),e.push(n),t=!0)}return De(e),t}function Be(e){let t=[];for(let[n,r]of Y)if(r<e){let e=_.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ae(n),Y.delete(n),t.push(n))}return De(t),t.length>0}function Ve(e){_.blockers.delete(e),J.delete(e)}function Ue(e,t){let n=_.blockers.get(e)||ne;d("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(_.blockers);r.set(e,t),X({blockers:r})}function ze({currentLocation:e,nextLocation:t,historyAction:n}){if(0===J.size)return;J.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(J.entries()),[o,i]=r[r.length-1],a=_.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Qe(e){let t=Re(404,{pathname:e}),n=r||s,{matches:o,route:i}=Ie(n);return{notFoundMatches:o,route:i,error:t}}function Xe(e,t){if(b){return b(e,t.map((e=>k(e,_.loaderData))))||e.key}return e.key}function Ze(e,t){if(v){let n=Xe(e,t),r=v[n];if("number"==typeof r)return r}return null}function et(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:O(n,r,u,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:O(n,r,u,!0)}}}return{active:!1,matches:null}}async function tt(t,n,o,i){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let l=t;for(;;){let t=null==r,d=r||s,p=c;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:l,fetcherKey:i,patch:(e,t)=>{o.aborted||he(e,t,d,p,a)}})}catch(e){return{type:"error",error:e,partialMatches:l}}finally{t&&!o.aborted&&(s=[...s])}if(o.aborted)return{type:"aborted"};let f=x(d,n,u);if(f)return{type:"success",matches:f};let m=O(d,n,u,!0);if(!m||l.length===m.length&&l.every(((e,t)=>e.route.id===m[t].route.id)))return{type:"success",matches:null};l=m}}return i={get basename(){return u},get future(){return f},get state(){return _},get routes(){return s},get window(){return t},initialize:function(){if(h=e.history.listen((({action:t,location:n,delta:r})=>{if(T)return T(),void(T=void 0);p(0===J.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=ze({currentLocation:_.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{T=e}));return e.history.go(-1*r),void Ue(o,{state:"blocked",location:n,proceed(){Ue(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(_.blockers);e.set(o,ne),X({blockers:e})}})}return ce(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ie);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,R);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ie,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,R);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return _.initialized||ce("POP",_.location,{initialHydration:!0}),i},subscribe:function(e){return g.add(e),()=>g.delete(e)},enableScrollRestoration:function(e,t,n){if(v=e,S=t,b=n||null,!E&&_.navigation===ee){E=!0;let e=Ze(_.location,_.matches);null!=e&&X({restoreScrollPosition:e})}return()=>{v=null,S=null,b=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=se(_.location,_.matches,u,n,r?.fromRouteId,r?.relative),{path:i,submission:a,error:c}=ue(!1,o,r),s=_.location,l=m(_.location,i,r&&r.state);l={...l,...e.history.encodeLocation(l)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=a&&Ye(a.formMethod)&&a.formAction===_.location.pathname+_.location.search&&(p="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=ze({currentLocation:s,nextLocation:l,historyAction:p});g?Ue(g,{state:"blocked",location:l,proceed(){Ue(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(_.blockers);e.set(g,ne),X({blockers:e})}}):await ce(p,l,{submission:a,pendingError:c,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h})},fetch:async function(t,n,o,i){Ae(t);let a=!0===(i&&i.flushSync),c=r||s,l=se(_.location,_.matches,u,o,n,i?.relative),p=x(c,l,u),f=et(p,c,l);if(f.active&&f.matches&&(p=f.matches),!p)return void we(t,n,Re(404,{pathname:l}),{flushSync:a});let{path:m,submission:h,error:g}=ue(!0,l,i);if(g)return void we(t,n,g,{flushSync:a});let v=qe(p,m),b=new y(e.unstable_getContext?await e.unstable_getContext():void 0),w=!0===(i&&i.preventScrollReset);h&&Ye(h.formMethod)?await async function(t,n,o,i,a,c,l,p,f,m){function h(e){if(!e.route.action&&!e.route.lazy){let e=Re(405,{method:m.formMethod,pathname:o,routeId:n});return we(t,n,e,{flushSync:p}),!0}return!1}if(ve(),q.delete(t),!l&&h(i))return;let g=_.fetchers.get(t);be(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(m,g),{flushSync:p});let v=new AbortController,y=je(e.history,o,v.signal,m);if(l){let e=await tt(a,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void we(t,n,e.error,{flushSync:p});if(!e.matches)return void we(t,n,Re(404,{pathname:o}),{flushSync:p});if(h(i=qe(a=e.matches,o)))return}B.set(t,v);let b=V,w=await me("action",y,[i],a,c,t),O=w[i.route.id];if(y.signal.aborted)return void(B.get(t)===v&&B.delete(t));if(K.has(t)){if(We(O)||He(O))return void be(t,Je(void 0))}else{if(We(O))return B.delete(t),U>b?void be(t,Je(void 0)):(z.add(t),be(t,Ke(m)),fe(y,O,!1,{fetcherSubmission:m,preventScrollReset:f}));if(He(O))return void we(t,n,O.error)}let k=_.navigation.location||_.location,S=je(e.history,k,v.signal),E=r||s,j="idle"!==_.navigation.state?x(E,_.navigation.location,u):_.matches;d(j,"Didn't find any matches after fetcher action");let P=++V;Y.set(t,P);let A=Ke(m,O.data);_.fetchers.set(t,A);let[T,M]=de(e.history,_,j,m,k,!1,H,W,K,q,z,E,u,[i.route.id,O]);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=_.fetchers.get(t),r=Ke(void 0,n?n.data:void 0);_.fetchers.set(t,r),Ae(t),e.controller&&B.set(t,e.controller)})),X({fetchers:new Map(_.fetchers)});let I=()=>M.forEach((e=>Ae(e.key)));v.signal.addEventListener("abort",I);let{loaderResults:R,fetcherResults:N}=await ge(j,T,M,S,c);if(v.signal.aborted)return;v.signal.removeEventListener("abort",I),Y.delete(t),B.delete(t),M.forEach((e=>B.delete(e.key)));let L=Ne(R);if(L)return fe(S,L.result,!1,{preventScrollReset:f});if(L=Ne(N),L)return z.add(L.key),fe(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:$}=Te(_,j,R,void 0,M,N);if(_.fetchers.has(t)){let e=Je(O.data);_.fetchers.set(t,e)}Be(P),"loading"===_.navigation.state&&P>U?(d(C,"Expected pending action"),D&&D.abort(),ae(_.navigation.location,{matches:j,loaderData:F,errors:$,fetchers:new Map(_.fetchers)})):(X({errors:$,loaderData:_e(_.loaderData,F,j,$),fetchers:new Map(_.fetchers)}),H=!1)}(t,n,m,v,p,b,f.active,a,w,h):(q.set(t,{routeId:n,path:m}),await async function(t,n,r,o,i,a,c,s,u,l){let d=_.fetchers.get(t);be(t,Ke(l,d?d.data:void 0),{flushSync:s});let p=new AbortController,f=je(e.history,r,p.signal);if(c){let e=await tt(i,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void we(t,n,e.error,{flushSync:s});if(!e.matches)return void we(t,n,Re(404,{pathname:r}),{flushSync:s});o=qe(i=e.matches,r)}B.set(t,p);let m=V,h=await me("loader",f,[o],i,a,t),g=h[o.route.id];B.get(t)===p&&B.delete(t);if(f.signal.aborted)return;if(K.has(t))return void be(t,Je(void 0));if(We(g))return U>m?void be(t,Je(void 0)):(z.add(t),void await fe(f,g,!1,{preventScrollReset:u}));if(He(g))return void we(t,n,g.error);be(t,Je(g.data))}(t,n,m,v,p,b,f.active,a,w,h))},revalidate:function(){Q||(Q=function(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}()),ve(),X({revalidation:"loading"});let e=Q.promise;return"submitting"===_.navigation.state?e:"idle"===_.navigation.state?(ce(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),e):(ce(C||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:!0===I}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:xe,deleteFetcher:function(e){let t=(G.get(e)||0)-1;t<=0?(G.delete(e),K.add(e)):G.set(e,t),X({fetchers:new Map(_.fetchers)})},dispose:function(){h&&h(),N&&N(),g.clear(),D&&D.abort(),_.fetchers.forEach(((e,t)=>Pe(t))),_.blockers.forEach(((e,t)=>Ve(t)))},getBlocker:function(e,t){let n=_.blockers.get(e)||ne;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Ve,patchRoutes:function(e,t){let n=null==r;he(e,t,r||s,c,a),n&&(s=[...s],X({}))},_internalFetchControllers:B,_internalSetRoutes:function(e){c={},r=w(e,a,void 0,c)}},i}function se(e,t,n,r,o,i){let a,c;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){c=e;break}}else a=t,c=t[t.length-1];let s=B(r||".",W(a),L(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=ze(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname="/"===s.pathname?n:V([n,s.pathname])),h(s)}function ue(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!Ue(n.formMethod))return{path:t,error:Re(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:Re(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=Le(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ye(a))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ye(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Pe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Pe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ae(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ae(r)}catch(e){return i()}let s={formMethod:a,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Ye(s.formMethod))return{path:t,submission:s};let u=g(t);return e&&u.search&&ze(u.search)&&r.append("index",""),u.search=`?${r}`,{path:h(u),submission:s}}function le(e,t,n=!1){let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function de(e,t,n,r,o,i,a,c,s,u,l,d,p,f){let m=f?He(f[1])?f[1].error:f[1].data:void 0,h=e.createURL(t.location),g=e.createURL(o),v=n;i&&t.errors?v=le(n,Object.keys(t.errors)[0],!0):f&&He(f[1])&&(v=le(n,f[0]));let y=f?f[1].statusCode:void 0,b=y&&y>=400,w=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return pe(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(t.loaderData,t.matches[n],e))return!0;let c=t.matches[n],s=e;return me(e,{currentUrl:h,currentParams:c.params,nextUrl:g,nextParams:s.params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&(a||h.pathname+h.search===g.pathname+g.search||h.search!==g.search||fe(c,s))})})),O=[];return u.forEach(((e,o)=>{if(i||!n.some((t=>t.route.id===e.routeId))||s.has(o))return;let u=x(d,e.path,p);if(!u)return void O.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(o),v=qe(u,e.path),w=!1;l.has(o)?w=!1:c.has(o)?(c.delete(o),w=!0):w=f&&"idle"!==f.state&&void 0===f.data?a:me(v,{currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&a}),w&&O.push({key:o,routeId:e.routeId,path:e.path,matches:u,match:v,controller:new AbortController})})),[w,O]}function pe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function fe(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function me(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function he(e,t,n,r,o){let i;if(e){let t=r[e];d(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let a=w(t.filter((e=>!i.some((t=>ge(e,t))))),o,[e||"_","patch",String(i?.length||"0")],r);i.push(...a)}function ge(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>ge(e,t))))))}async function ve(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function ye(e){return e.matches.some((e=>e.route.unstable_middleware))?be(e,!1,(()=>ve(e)),(e=>({[e.routeId]:{type:"error",result:e.error}}))):ve(e)}async function be(e,t,n,r){let{matches:o,request:i,params:a,context:c}=e,s={handlerResult:void 0,propagateResult:t};try{let e=o.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),t=await xe({request:i,params:a,context:c},e,s,n);return s.propagateResult?t:s.handlerResult}catch(e){if(!(e instanceof we))throw e;let n=await r(e);return t||!s.handlerResult?n:Object.assign(s.handlerResult,n)}}var we=class{constructor(e,t){this.routeId=e,this.error=t}};async function xe(e,t,n,r,o=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let a=t[o];if(!a)return n.handlerResult=await r(),n.handlerResult;let c,[s,u]=a,l=!1,d=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");l=!0;let i=await xe(e,t,n,r,o+1);if(n.propagateResult)return c=i,c};try{let t=await u({request:e.request,params:e.params,context:e.context},d);return l?void 0===t?c:t:d()}catch(e){if(e instanceof we)throw e;throw new we(s,e)}}async function Oe(e,t,n,r,o,i,a,c,s,u){let l=o.map((e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];d(o,"No route found in manifest");let i={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;p(!t,`Route "${o.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`),t||b.has(e)||(i[e]=r[e])}Object.assign(o,i),Object.assign(o,{...t(o),lazy:void 0})}(e.route,c,a):void 0));u&&await Promise.all(l);let f=o.map(((e,o)=>{let i=l[o],a=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:a,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(a=!0),a?async function(e,t,n,r,o,i){let a,c,s=r=>{let a,s=new Promise(((e,t)=>a=t));c=()=>a(),t.signal.addEventListener("abort",c);let u=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):r({request:t,params:n.params,context:i},...void 0!==o?[o]:[]),l=(async()=>{try{return{type:"data",result:await(o?o((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([l,s])};try{let o=n.route[e];if(r)if(o){let e,[t]=await Promise.all([s(o).catch((t=>{e=t})),r]);if(void 0!==e)throw e;a=t}else{if(await r,o=n.route[e],!o){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Re(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}a=await s(o)}else{if(!o){let e=new URL(t.url);throw Re(404,{pathname:e.pathname+e.search})}a=await s(o)}}catch(e){return{type:"error",result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return a}(t,n,e,i,r,s):Promise.resolve({type:"data",result:void 0}))}})),m=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:s});try{await Promise.all(l)}catch(e){}return m}async function ke(e){let{result:t,type:n}=e;if(Ve(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?Be(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new q(t.init?.status||500,void 0,t.data),statusCode:$(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:$(t)?t.status:void 0}:Be(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Se(e,t,n,r,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!re.test(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=se(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function Ee(e,t,n){if(re.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=L(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function je(e,t,n,r){let o=e.createURL(Le(t)).toString(),i={signal:n};if(r&&Ye(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Pe(r.formData):i.body=r.formData}return new Request(o,i)}function Pe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ae(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function De(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,u={},l=n&&He(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(d(!We(f),"Cannot handle redirect results in processLoaderData"),He(f)){let t=f.error;if(void 0!==l&&(t=l,l=void 0),c=c||{},o)c[p]=t;else{let n=Me(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=ae),s||(s=!0,i=$(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else a[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(i=f.statusCode),f.headers&&(u[p]=f.headers)})),void 0!==l&&n&&(c={[n[0]]:l},a[n[0]]=void 0),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:u}}function Te(e,t,n,r,o,i){let{loaderData:a,errors:c}=De(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,a=i[n];if(d(a,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(He(a)){let t=Me(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(We(a))d(!1,"Unhandled fetcher revalidation redirect");else{let t=Je(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function _e(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ae)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Ce(e){return e?He(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Me(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ie(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Re(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(a="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(a="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",c=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new q(e||500,a,new Error(c),!0)}function Ne(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(We(r))return{key:n,result:r}}}function Le(e){return h({..."string"==typeof e?g(e):e,hash:""})}function Fe(e){return Ve(e.result)&&X.has(e.result.status)}function He(e){return"error"===e.type}function We(e){return"redirect"===(e&&e.type)}function Be(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ve(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ue(e){return Q.has(e.toUpperCase())}function Ye(e){return K.has(e.toUpperCase())}function ze(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function qe(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&ze(n||""))return e[e.length-1];let r=H(e);return r[r.length-1]}function $e(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ge(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ke(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Je(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var Qe=o.createContext(null);Qe.displayName="DataRouter";var Xe=o.createContext(null);Xe.displayName="DataRouterState";var Ze=o.createContext({isTransitioning:!1});Ze.displayName="ViewTransition";var et=o.createContext(new Map);et.displayName="Fetchers";var tt=o.createContext(null);tt.displayName="Await";var nt=o.createContext(null);nt.displayName="Navigation";var rt=o.createContext(null);rt.displayName="Location";var ot=o.createContext({outlet:null,matches:[],isDataRoute:!1});ot.displayName="Route";var it=o.createContext(null);it.displayName="RouteError";var at=!0;function ct(){return null!=o.useContext(rt)}function st(){return d(ct(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(rt).location}var ut="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lt(e){o.useContext(nt).static||o.useLayoutEffect(e)}function dt(){let{isDataRoute:e}=o.useContext(ot);return e?function(){let{router:e}=xt("useNavigate"),t=kt("useNavigate"),n=o.useRef(!1);return lt((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{p(n.current,ut),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(ct(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(Qe),{basename:t,navigator:n}=o.useContext(nt),{matches:r}=o.useContext(ot),{pathname:i}=st(),a=JSON.stringify(W(r)),c=o.useRef(!1);return lt((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(p(c.current,ut),!c.current)return;if("number"==typeof r)return void n.go(r);let s=B(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:V([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,a,i,e])}()}o.createContext(null);function pt(){let{matches:e}=o.useContext(ot),t=e[e.length-1];return t?t.params:{}}function ft(e,{relative:t}={}){let{matches:n}=o.useContext(ot),{pathname:r}=st(),i=JSON.stringify(W(n));return o.useMemo((()=>B(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function mt(e,t,n,r){d(ct(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=o.useContext(nt),{matches:c}=o.useContext(ot),s=c[c.length-1],u=s?s.params:{},l=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;if(at){let e=m&&m.path||"";At(l,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) 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 <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,v=st();if(t){let e="string"==typeof t?g(t):t;d("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` 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 "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=v;let y=h.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=!a&&n&&n.matches&&n.matches.length>0?n.matches:x(e,{pathname:b});at&&(p(m||null!=w,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),p(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let O=bt(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:V([f,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:V([f,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,n,r);return t&&O?o.createElement(rt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},O):O}function ht(){let e=St(),t=$(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},c=null;return at&&(console.error("Error handled by React Router default ErrorBoundary:",e),c=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:i},n):null,c)}var gt=o.createElement(ht,null),vt=class extends o.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,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(ot.Provider,{value:this.props.routeContext},o.createElement(it.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function yt({routeContext:e,match:t,children:n}){let r=o.useContext(Qe);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ot.Provider,{value:e},n)}function bt(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,a=n?.errors;if(null!=a){let e=i.findIndex((e=>e.route.id&&void 0!==a?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,i=s>=0?i.slice(0,s+1):[i[0]];break}}}return i.reduceRight(((e,r,u)=>{let l,d=!1,p=null,f=null;n&&(l=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||gt,c&&(s<0&&0===u?(At("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):s===u&&(d=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,u+1)),h=()=>{let t;return t=l?p:d?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(yt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===u)?o.createElement(vt,{location:n.location,revalidation:n.revalidation,component:p,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()}),null)}function wt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xt(e){let t=o.useContext(Qe);return d(t,wt(e)),t}function Ot(e){let t=o.useContext(Xe);return d(t,wt(e)),t}function kt(e){let t=function(e){let t=o.useContext(ot);return d(t,wt(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function St(){let e=o.useContext(it),t=Ot("useRouteError"),n=kt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Et=0;function jt(e){let{router:t,basename:n}=xt("useBlocker"),r=Ot("useBlocker"),[i,a]=o.useState(""),c=o.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...r,pathname:L(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:L(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return o.useEffect((()=>{let e=String(++Et);return a(e),()=>t.deleteBlocker(e)}),[t]),o.useEffect((()=>{""!==i&&t.getBlocker(i,c)}),[t,i,c]),i&&r.blockers.has(i)?r.blockers.get(i):ne}var Pt={};function At(e,t,n){t||Pt[e]||(Pt[e]=!0,p(!1,n))}var Dt={};function Tt(e,t){e||Dt[t]||(Dt[t]=!0,console.warn(t))}var _t=!0;function Ct(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(_t&&e.element&&p(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(_t&&e.hydrateFallbackElement&&p(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(_t&&e.errorElement&&p(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function Mt(e,t){return ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:Ct,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}var It=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function Rt({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[i,a]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[u,l]=o.useState(),[d,p]=o.useState(),[f,m]=o.useState(),h=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:i,flushSync:c,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&h.current.set(t,e.data)})),i.forEach((e=>h.current.delete(e))),Tt(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let g=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Tt(null==f||g,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),f&&g){if(t&&c){t((()=>{d&&(u&&u.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:f.currentLocation,nextLocation:f.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(u&&u.resolve(),d.skipTransition(),m({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(a(n),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,u]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&l(new It)}),[c]),o.useEffect((()=>{if(u&&i&&e.window){let t=i,n=u.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})})),p(c)}}),[i,u,e.window]),o.useEffect((()=>{u&&i&&n.location.key===i.location.key&&u.resolve()}),[u,d,n.location,i]),o.useEffect((()=>{!c.isTransitioning&&f&&(a(f.state),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),m(void 0))}),[c.isTransitioning,f]);let v=o.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),y=e.basename||"/",b=o.useMemo((()=>({router:e,navigator:v,static:!1,basename:y})),[e,v,y]);return o.createElement(o.Fragment,null,o.createElement(Qe.Provider,{value:b},o.createElement(Xe.Provider,{value:n},o.createElement(et.Provider,{value:h.current},o.createElement(Ze.Provider,{value:c},o.createElement(Ht,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Nt,{routes:e.routes,future:e.future,state:n})))))),null)}var Nt=o.memo((function({routes:e,future:t,state:n}){return mt(e,void 0,n,t)}));function Lt({to:e,replace:t,state:n,relative:r}){d(ct(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=o.useContext(nt);p(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=o.useContext(ot),{pathname:c}=st(),s=dt(),u=B(e,W(a),c,"path"===r),l=JSON.stringify(u);return o.useEffect((()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})}),[s,l,r,t,n]),null}function Ft(e){d(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ht({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){d(!ct(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=o.useMemo((()=>({basename:c,navigator:i,static:a,future:{}})),[c,i,a]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:l="",hash:f="",state:m=null,key:h="default"}=n,v=o.useMemo((()=>{let e=L(u,c);return null==e?null:{location:{pathname:e,search:l,hash:f,state:m,key:h},navigationType:r}}),[c,u,l,f,m,h,r]);return p(null!=v,`<Router basename="${c}"> is not able to match the URL "${u}${l}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(nt.Provider,{value:s},o.createElement(rt.Provider,{children:t,value:v}))}function Wt({children:e,location:t}){return mt(Bt(e),t)}o.Component;function Bt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Bt(e.props.children,i));d(e.type===Ft,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Bt(e.props.children,i)),n.push(a)})),n}var Vt="get",Ut="application/x-www-form-urlencoded";function Yt(e){return null!=e&&"string"==typeof e.tagName}function zt(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var qt=null;var $t=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gt(e){return null==e||$t.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ut}"`),null)}function Kt(e,t){let n,r,o,i,a;if(function(e){return Yt(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?L(a,t):null,n=e.getAttribute("method")||Vt,o=Gt(e.getAttribute("enctype"))||Ut,i=new FormData(e)}else if(function(e){return Yt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Yt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||a.getAttribute("action");if(r=c?L(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Vt,o=Gt(e.getAttribute("formenctype"))||Gt(a.getAttribute("enctype"))||Ut,i=new FormData(a,e),!function(){if(null===qt)try{new FormData(document.createElement("form"),0),qt=!1}catch(e){qt=!0}return qt}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(Yt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Vt,r=null,o=Ut,a=e}return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}function Jt(e,t){if(!1===e||null==e)throw new Error(t)}async function Qt(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Xt(e){return null!=e&&"string"==typeof e.page}function Zt(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 en(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>a(e,t)||c(e,t))):"data"===i?t.filter(((t,i)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,i)||c(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function tn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function nn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Xt(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function rn(e){return{__html:e}}Symbol("SingleFetchRedirect");function on(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===L(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function an({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n );\n '}});if($(e))return o.createElement(cn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(cn,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function cn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=pn();return i.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(bn,null):null)))}function sn(e){return!0===e}function un(){let e=o.useContext(Qe);return Jt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ln(){let e=o.useContext(Xe);return Jt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dn=o.createContext(void 0);function pn(){let e=o.useContext(dn);return Jt(e,"You must render this element inside a <HydratedRouter> element"),e}function fn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mn(e,t,n){if(n&&!yn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function hn({page:e,...t}){let{router:n}=un(),r=o.useMemo((()=>x(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(vn,{page:e,matches:r,...t}):null}function gn(e){let{manifest:t,routeModules:n}=pn(),[r,i]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return nn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Qt(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Zt).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}function vn({page:e,matches:t,...n}){let r=st(),{manifest:i,routeModules:a}=pn(),{basename:c}=un(),{loaderData:s,matches:u}=ln(),l=o.useMemo((()=>en(e,t,u,i,r,"data")),[e,t,u,i,r]),d=o.useMemo((()=>en(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some((t=>t.route.id===e.route.id))&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let u=on(e,c);return o&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[c,s,r,i,l,t,e,a]),f=o.useMemo((()=>tn(d,i)),[d,i]),m=gn(d);return o.createElement(o.Fragment,null,p.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),f.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>o.createElement("link",{key:e,...t}))))}dn.displayName="FrameworkContext";var yn=!1;function bn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:i,renderMeta:a}=pn(),{router:c,static:s,staticContext:u}=un(),{matches:l}=ln(),d=sn(i);a&&(a.didRenderScripts=!0);let p=mn(l,null,r);o.useEffect((()=>{!0}),[]);let f=o.useMemo((()=>{let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=s?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${d?"":`import ${JSON.stringify(t.url)}`};\n${p.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Jt(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,hydrateFallbackModule:c,module:s}=o,u=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:s,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(s)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${d?`window.__reactRouterManifest = ${JSON.stringify(function(e,t){let n=new Set(t.state.matches.map((e=>e.route.id))),r=t.state.location.pathname.split("/").filter(Boolean),o=["/"];for(r.pop();r.length>0;)o.push(`/${r.join("/")}`),r.pop();o.forEach((e=>{let r=x(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let i=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return{...e,routes:i}}(t,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${p.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:rn(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:rn(i),type:"module",async:!0}))}),[]),m=yn?[]:t.entry.imports.concat(tn(p,t,{includeHydrateFallback:!0}));return yn?null:o.createElement(o.Fragment,null,d?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),function(e){return[...new Set(e)]}(m).map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),f)}function wn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var xn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{xn&&(window.__reactRouterVersion="7.3.0")}catch(e){}function On(e,t){return ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||Sn(),routes:e,mapRouteProperties:Ct,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function kn(e,t){return ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Sn(),routes:e,mapRouteProperties:Ct,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Sn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:En(e.errors)}),e}function En(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new q(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var jn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:a,state:c,target:s,to:u,preventScrollReset:l,viewTransition:f,...m},g){let v,{basename:y}=o.useContext(nt),b="string"==typeof u&&jn.test(u),w=!1;if("string"==typeof u&&b&&(v=u,xn))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=L(t.pathname,y);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:w=!0}catch(e){p(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){d(ct(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(nt),{hash:i,pathname:a,search:c}=ft(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:V([n,a])),r.createHref({pathname:s,search:c,hash:i})}(u,{relative:r}),[O,k,S]=function(e,t){let n=o.useContext(dn),[r,i]=o.useState(!1),[a,c]=o.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{i(!0)},h=()=>{i(!1),c(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:fn(s,m),onBlur:fn(u,h),onMouseEnter:fn(l,m),onMouseLeave:fn(d,h),onTouchStart:fn(p,m)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:c}={}){let s=dt(),u=st(),l=ft(e,{relative:a});return o.useCallback((o=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(o,t)){o.preventDefault();let t=void 0!==n?n:h(u)===h(l);s(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:c})}}),[u,s,l,n,r,t,e,i,a,c])}(u,{replace:a,state:c,target:s,preventScrollReset:l,relative:r,viewTransition:f});let j=o.createElement("a",{...m,...S,href:v||x,onClick:w||i?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:wn(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,j,o.createElement(hn,{page:x})):j}));Pn.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:a,viewTransition:c,children:s,...u},l){let p=ft(a,{relative:u.relative}),f=st(),m=o.useContext(Xe),{navigator:h,basename:g}=o.useContext(nt),v=null!=m&&function(e,t={}){let n=o.useContext(Ze);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tn("useViewTransitionState"),i=ft(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(i.pathname,c)||null!=R(i.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=L(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:k,isPending:S,isTransitioning:v},j=k?e:void 0;O="function"==typeof n?n(E):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof i?i(E):i;return o.createElement(Pn,{...u,"aria-current":j,className:O,ref:l,style:P,to:a,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var An=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:c=Vt,action:s,onSubmit:u,relative:l,preventScrollReset:p,viewTransition:f,...m},g)=>{let v=In(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(nt),r=o.useContext(ot);d(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...ft(e||".",{relative:t})},c=st();if(null==e){a.search=c.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();a.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:V([n,a.pathname]));return h(a)}(s,{relative:l}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&jn.test(s);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:i,state:a,relative:l,preventScrollReset:p,viewTransition:f})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function Dn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tn(e){let t=o.useContext(Qe);return d(t,Dn(e)),t}function _n(e){p("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=o.useRef(zt(e)),n=o.useRef(!1),r=st(),i=o.useMemo((()=>function(e,t){let n=zt(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),a=dt(),c=o.useCallback(((e,t)=>{const r=zt("function"==typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,c]}An.displayName="Form";var Cn=0,Mn=()=>`__${String(++Cn)}__`;function In(){let{router:e}=Tn("useSubmit"),{basename:t}=o.useContext(nt),n=kt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:i,method:a,encType:c,formData:s,body:u}=Kt(r,t);if(!1===o.navigate){let t=o.fetcherKey||Mn();await e.fetch(t,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}new TextEncoder},77987:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{A:()=>r})},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},35412:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},2482:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(25134);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},65710:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},25134:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},14644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>c,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let i=e,u=t,l=new Map,d=l,p=0,f=!1;function m(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),l=null}}}function v(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,u=i(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const c={};for(let i=0;i<o.length;i++){const s=o[i],u=n[s],l=e[s],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,a=a||d!==l}return a=a||o.length!==Object.keys(e).length,a?c:e}}function l(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=l(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const c={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map((e=>e(c)));return a=p(...s)(i.dispatch),{...i,dispatch:a}}}function m(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",236:"actions",262:"html-editor",310:"vendor-fontawesome",556:"docs-actions",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"0ca5396c8ca7922f409e",123:"44c3fcfbf9dc6f3a766a",136:"471a847a740bba86f441",172:"5a8562f05605c293e378",201:"475fae68ba84a0fc7e2d",211:"9568d8c0d6647d7393b3",222:"86e7e69454f651e8e581",236:"798667b12bd8006f2fc1",262:"4c06c2756441671a88ac",264:"fdc1a714ad90a0cef94c",306:"99bb028559c1506e0112",310:"1f5c4d34f611b7f0b69a",320:"1b1bc1dc218cb0627d94",348:"fb3ab4bf2fec9b0a4e67",350:"3397b52b32fb0343ba1d",389:"362711d95ad8d73ee7ed",419:"71d1e358d1a60e7a27a9",424:"9c7b92cf9e8cbe74166f",460:"625e58674e515a557423",467:"b3dd954aafe3140ef1dc",556:"259905e30ed0313a5d02",601:"1304209cea9b5485565a",668:"ffc314407c1fd50dbfbf",672:"f0685e5e63247acbc44a",722:"2bfe654132875144a0af",789:"e80b20ce62cf86fcca28",916:"a767493d8fb7fd42b919",927:"b8257a516ba59e6cf318"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-admin:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_admin=this.webpackChunktocco_admin||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var u={};return(()=>{"use strict";s.r(u),s.d(u,{default:()=>Et});var e=s(5556),t=s.n(e),n=s(4883),r=s.n(n),o=s(81845),i=s.n(o),a=s(6730),c=s(30632),l=s(63061),d=s(97699),p=s(12199),f=s(42851),m=s(18601),h=s(10822),g=s(29255),v=s(17678),y=s(92207),b=s.n(y),w=s(43786),x=s(26396),O=s.n(x),k=s(98671),S=s(24096);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=O()(O()(O()(O()(O()(O()(O()(O()({},S.Se,k.A.singleTransferReducer("menuOpen")),S.GN,k.A.singleTransferReducer("modulesMenuTree")),S.yD,k.A.singleTransferReducer("settingsMenuTree")),S.Kz,k.A.singleTransferReducer("systemMenuTree")),S.kl,k.A.singleTransferReducer("completeMenuTree")),S.w,(function(e){return j(j({},e),{},{menuOpen:!e.menuOpen})})),S.cv,k.A.singleTransferReducer("activeMenuTab")),S.Qw,(function(e,t){var n=t.payload.activeMenuTab;return j(j({},e),{},{menuOpen:e.activeMenuTab!==n||!e.menuOpen})})),A={menuOpen:!1,entities:[],activeMenuTab:"modules"};var D=s(70661),T=s(93575),_=s(74978),C=b().mark(F),M=b().mark(H),I=b().mark(V),R=b().mark(Y),N=function(e){return e.navigation},L="admin.activeMenu";function F(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(D.A.requestSaga,"client/menus/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.menuItems);case 4:case"end":return n.stop()}}),C)}function H(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(F,"modules");case 2:return e=o.sent,o.next=5,(0,w.yJ)(S.lF(e));case 5:return o.next=7,(0,w.T1)(F,"settings");case 7:return t=o.sent,o.next=10,(0,w.yJ)(S.J8(t));case 10:return o.next=12,(0,w.T1)(F,"system");case 12:return n=o.sent,o.next=15,(0,w.yJ)(S.BA(n));case 15:return o.next=17,(0,w.T1)(F,"all");case 17:return r=o.sent,o.next=20,(0,w.yJ)(S.$Y(r));case 20:case"end":return o.stop()}}),M)}function W(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[L])){e.next=4;break}return e.next=4,(0,w.yJ)(S.Tr(n));case 4:case"end":return e.stop()}}),e)}))()}function B(e){var t=e.payload.activeMenuTab;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.yJ)((0,_.bM)(O()({},L,t)));case 2:case"end":return e.stop()}}),e)}))()}function V(e){var t,n,r,o,i;return b().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,w.Lt)(N);case 2:if(t=a.sent,n=t.settingsMenuTree,r=t.modulesMenuTree,o=t.systemMenuTree,i=t.completeMenuTree,e!==T.WV.MODULES){a.next=9;break}return a.abrupt("return",r);case 9:if(e!==T.WV.SETTINGS){a.next=11;break}return a.abrupt("return",n);case 11:if(e!==T.WV.SYSTEM){a.next=13;break}return a.abrupt("return",o);case 13:if(e!==T.WV.COMPLETE){a.next=15;break}return a.abrupt("return",i);case 15:return a.abrupt("return",null);case 16:case"end":return a.stop()}}),I)}function U(e){var t=e.payload.menuTab;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(V,t);case 2:if(n=e.sent,!((null==n?void 0:n.length)>0)){e.next=9;break}return e.next=7,(0,w.yJ)(S.YV(t));case 7:return e.next=9,(0,w.yJ)(S.Tr(t));case 9:case"end":return e.stop()}}),e)}))()}function Y(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(S.OZ,H),(0,w.sg)(500,S.cv,B),(0,w.p8)(_.CF,W),(0,w.p8)(S.KY,U)]);case 2:case"end":return e.stop()}}),R)}var z=b().mark(q);function q(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(Y)]);case 2:case"end":return e.stop()}}),z)}const $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,n=P[t.type];return n?n(e,t):e};function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=O()(O()(O()(O()({},_.PP,k.A.singleTransferReducer("serverSettings")),_.oB,k.A.singleTransferReducer("isLoading")),_.CF,k.A.singleTransferReducer("userPreferences")),_.lz,(function(e,t){var n=t.payload;return K(K({},e),{},{userPreferences:K(K({},e.userPreferences),n.preferences)})})),Q={isLoading:!0,serverSettings:{},userPreferences:{}};var X=s(58065),Z=s(79859),ee=s(76419),te=s(22056),ne=s.n(te);function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie,ae,ce,se,ue=function(e){return Object.entries(e).reduce((function(e,t){var n=ne()(t,2),r=n[0],o=n[1];return oe(oe({},e),{},O()({},r,function(e){switch(e){case"true":return!0;case"false":return!1;default:return e}}(o)))}),{})},le=s(74848),de=b().mark(ve),pe=b().mark(we),fe=b().mark(xe);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge="admin.theme";function ve(){var e,t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,w.yJ)(_.F6(!0));case 2:return i.next=4,(0,w.T1)(D.A.fetchServerSettings);case 4:return e=i.sent,i.next=7,(0,w.yJ)(_.Ve(e));case 7:return i.next=9,(0,w.T1)(D.A.fetchUserPreferences,"admin.*");case 9:return t=i.sent,i.next=12,(0,w.T1)(ue,t);case 12:return n=i.sent,i.next=15,(0,w.T1)(D.A.fetchUserPreferences,"admintree.*");case 15:return r=i.sent,i.next=18,(0,w.T1)(ue,r);case 18:return o=i.sent,i.next=21,(0,w.yJ)(_.A2(he(he({},o),n)));case 21:return i.next=23,(0,w.yJ)(_.F6(!1));case 23:case"end":return i.stop()}}),de)}function ye(e){var t=e.payload.preferences;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(D.A.savePreferences,t);case 2:case"end":return e.stop()}}),e)}))()}function be(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[ge])){e.next=8;break}return e.next=4,(0,w.T1)(ee.A.addLongTerm,"admin","theme",n);case 4:return e.next=6,(0,w.yJ)(c.A.setThemeType(n));case 6:e.next=12;break;case 8:return e.next=10,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 10:return e.next=12,(0,w.yJ)(c.A.initThemeType());case 12:case"end":return e.stop()}}),e)}))()}function we(){var e,t,n;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,w.T1)(Z.Ix);case 2:return e=r.sent,t=function(){return e.put(!0)},n=function(){return e.put(!1)},r.next=7,(0,w.yJ)(h.A.confirm(ie||(ie=(0,le.jsx)(X.A,{id:"client.admin.menu.resetPreferences.title"})),ae||(ae=(0,le.jsx)(X.A,{id:"client.admin.menu.resetPreferences.question"})),ce||(ce=(0,le.jsx)(X.A,{id:"client.common.ok"})),se||(se=(0,le.jsx)(X.A,{id:"client.common.cancel"})),t,n));case 7:return r.next=9,(0,w.s)(e);case 9:if(!r.sent){r.next=19;break}return r.next=13,(0,w.T1)(D.A.resetAllPreferences);case 13:return r.next=15,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 15:return r.next=17,(0,w.yJ)(c.A.initThemeType());case 17:return r.next=19,(0,w.yJ)(h.A.toaster({type:"success",title:"client.admin.menu.resetPreferences.success"}));case 19:case"end":return r.stop()}}),pe)}function xe(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(_.U3,ve),(0,w.p8)(_.lz,ye),(0,w.p8)(_.CF,be),(0,w.p8)(_.fE,we)]);case 2:case"end":return e.stop()}}),fe)}var Oe=b().mark(ke);function ke(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(xe)]);case 2:case"end":return e.stop()}}),Oe)}const Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,t=arguments.length>1?arguments[1]:void 0,n=J[t.type];return n?n(e,t):e};var Ee=s(27948),je=O()(O()(O()(O()(O()(O()(O()({},Ee.mW,k.A.singleTransferReducer("username")),Ee.XA,k.A.singleTransferReducer("currentBusinessUnit")),Ee.E_,k.A.singleTransferReducer("businessUnits")),Ee.tb,k.A.singleTransferReducer("ssoAvailable")),Ee.ZW,k.A.singleTransferReducer("pendingChanges")),Ee.tP,k.A.singleTransferReducer("hasOutlookAddInModule")),Ee.zI,k.A.singleTransferReducer("inWrongBusinessUnit")),Pe={username:"",currentBusinessUnit:{label:"",id:""},businessUnits:[],ssoAvailable:!1,pendingChanges:!1,hasOutlookAddInModule:!1,inWrongBusinessUnit:void 0};var Ae=s(18987),De=s(25204),Te=b().mark(Ce),_e=b().mark(Me);function Ce(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(D.A.fetchModules);case 2:if(e=n.sent,e.includes("nice.optional.sso")){n.next=6;break}return n.abrupt("return",!1);case 6:return n.next=8,(0,w.T1)(D.A.fetchEntityCount,"Openid_provider",{where:"active == true"});case 8:return t=n.sent,n.abrupt("return",t>0);case 10:case"end":return n.stop()}}),Te)}function Me(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0===(e=ee.A.getLongTerm("server","ssoAvailable"))){n.next=5;break}return n.abrupt("return",e);case 5:return n.next=7,(0,w.T1)(Ce);case 7:return t=n.sent,ee.A.addLongTerm("server","ssoAvailable",t),n.abrupt("return",t);case 10:case"end":return n.stop()}}),_e)}var Ie=s(27399),Re=s(88691),Ne=b().mark(Qe),Le=b().mark(Xe),Fe=b().mark(Ze),He=b().mark(et),We=b().mark(tt),Be=b().mark(rt),Ve=b().mark(it),Ue=b().mark(at),Ye=b().mark(ct),ze=b().mark(ut),qe=b().mark(lt),$e=b().mark(dt),Ge=function(e){return e.session},Ke=function(e){return e.input},Je=function(e){return e.app};function Qe(e){var t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e/2*60*1e3,i.next=3,(0,w.T1)(m.A.doSessionRequest);case 3:return n=i.sent,r=n.success,o=n.adminAllowed,i.next=8,(0,w.yJ)(m.A.setLoggedIn(r));case 8:return i.next=10,(0,w.yJ)(m.A.setAdminAllowed(o));case 10:return i.next=12,(0,w.T1)(Xe,t);case 12:return i.next=14,(0,w.T1)(Qe,e);case 14:case"end":return i.stop()}}),Ne)}function Xe(e){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.cb)(e);case 2:case"end":return t.stop()}}),Le)}function Ze(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(m.A.doRequest,"logout",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),Fe)}function et(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.Lt)(Ke);case 2:e=n.sent,t=e.baseRoute,window.location.href=t||"/";case 5:case"end":return n.stop()}}),He)}function tt(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.Lt)(Je);case 2:return e=o.sent,t=e.textResourceModules,o.next=6,(0,w.T1)(Re.A.getUserLocale);case 6:return n=o.sent,o.next=9,(0,w.T1)(Re.A.getChangeLocaleAction,t,n);case 9:return r=o.sent,o.next=12,(0,w.yJ)(r);case 12:case"end":return o.stop()}}),We)}function nt(e){var t=e.payload;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sessionTimeout,e.next=3,(0,w.T1)(tt);case 3:return e.next=5,(0,w.yJ)(m.A.setAdminAllowed(void 0));case 5:return e.next=7,(0,w.yJ)(m.A.setLoggedIn(!0));case 7:return e.next=9,(0,w.yJ)(h.A.connectSocket());case 9:return e.next=11,(0,w.T1)(Qe,n);case 11:case"end":return e.stop()}}),e)}))()}function rt(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(Z.Ix);case 2:return t=n.sent,n.next=5,(0,w.yJ)(h.A.modal("navigation-pending-changes","client.admin.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,le.jsx)(Ie.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 5:return n.next=7,(0,w.s)(t);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),Be)}function ot(e){var t=e.payload;return b().mark((function e(){var n,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=3,(0,w.T1)(rt,n);case 3:if("yes"!==e.sent){e.next=9;break}return e.next=7,(0,w.T1)(r,!0);case 7:e.next=11;break;case 9:return e.next=11,(0,w.T1)(r,!1);case 11:case"end":return e.stop()}}),e)}))()}function it(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.Lt)(Ge);case 2:if(e=t.sent,!e.pendingChanges){t.next=10;break}return t.next=7,(0,w.T1)(rt,"client.admin.confirmTouchedFormLogout");case 7:if("yes"===t.sent){t.next=10;break}return t.abrupt("return");case 10:return t.next=12,(0,w.T1)(Ae.A.remove,De.v);case 12:return t.next=14,(0,w.T1)(Ze);case 14:return t.next=16,(0,w.yJ)(m.A.setLoggedIn(!1));case 16:return t.next=18,(0,w.yJ)(h.A.closeSocket());case 18:return t.next=20,(0,w.T1)(et);case 20:case"end":return t.stop()}}),Ve)}function at(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(D.A.fetchPrincipal);case 2:return e=o.sent,t=e.username,n=e.currentBusinessUnit,r=e.inWrongBusinessUnit,o.next=8,(0,w.yJ)(Ee.P(t));case 8:return o.next=10,(0,w.yJ)(Ee.Ml(n));case 10:return o.next=12,(0,w.yJ)(Ee.xI(r));case 12:case"end":return o.stop()}}),Ue)}function ct(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(D.A.requestSaga,"principals/businessunits");case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.Qp(e.body.data));case 5:case"end":return t.stop()}}),Ye)}function st(e){var t=e.payload.businessUnitId;return b().mark((function e(){var n,r,o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Lt)(Ge);case 2:return n=e.sent,r=n.username,o="principals/".concat(r,"/businessunit"),e.next=7,(0,w.T1)(D.A.requestSaga,o,{method:"PUT",body:{businessUnit:t}});case 7:return e.next=9,(0,w.T1)(c.A.reinitialiseCache);case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))()}function ut(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(Me);case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.d4(e));case 5:case"end":return t.stop()}}),ze)}function lt(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(D.A.fetchModules);case 2:return e=n.sent,t=e.includes("nice.optional.officeintegration"),n.next=6,(0,w.yJ)(Ee.Wm(t));case 6:case"end":return n.stop()}}),qe)}function dt(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(Ee.hO,nt),(0,w.p8)(Ee.tZ,it),(0,w.p8)(Ee.AZ,at),(0,w.p8)(Ee.Cm,ct),(0,w.p8)(Ee.zu,st),(0,w.p8)(Ee.Ff,ut),(0,w.p8)(Ee.sR,ot),(0,w.p8)(Ee.$H,lt)]);case 2:case"end":return e.stop()}}),$e)}var pt=b().mark(ft);function ft(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(dt)]);case 2:case"end":return e.stop()}}),pt)}const mt={session:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pe,t=arguments.length>1?arguments[1]:void 0,n=je[t.type];return n?n(e,t):e},navigation:$,preferences:Se};var ht=[ft,q,ke],gt=s(35693);const vt=[{ctrl:!0,alt:!0,code:"KeyM",actions:[(0,S.ad)("modules")],global:!0},{ctrl:!0,alt:!0,code:"KeyN",actions:[(0,S.ad)("settings")],global:!0},{ctrl:!0,alt:!0,code:"KeyO",actions:[(0,S.ad)("complete")],global:!0},{ctrl:!0,alt:!0,code:"KeyK",actions:[(0,S.ad)("system")],global:!0}];var yt,bt,wt="admin",xt=r().lazy((function(){return Promise.all([s.e(927),s.e(601),s.e(172),s.e(419),s.e(136),s.e(460)]).then(s.bind(s,32460))})),Ot=function(){return yt||(yt=(0,le.jsx)(le.Fragment,{children:(0,le.jsx)(n.Suspense,{fallback:"",children:(0,le.jsx)(xt,{})})}))},kt=function(e,t,n,o){window.reactRegistry&&window.reactRegistry.setReact&&window.reactRegistry.setReact(r(),i());var s=bt||(bt=(0,le.jsx)(Ot,{})),u=c.A.createStore(mt,ht,t,wt);return p.A.addToStore(u,(function(){return{}})),a.A.addToStore(u),l.A.addToStore(u,(function(){return{appComponent:gt.A,formApp:v.A}})),l.A.dynamicActionsAddToStore(u),d.A.addToStore(u,!0,["console","remote","notification"]),h.A.addToStore(u,!0,{withNotificationCenter:!0}),m.A.addToStore(u),f.A.addToStore(u,vt),g.A.addToStore(u),c.A.createApp(wt,s,u,{input:t,events:n,actions:[],publicPath:o,textResourceModules:["component","common","actions","login","sso-login","entity-browser","entity-list","entity-detail","dashboard","docs-browser","entities",wt]})};c.A.registerAppInRegistry(wt,kt);var St=function(e){return c.A.useApp({initApp:kt,props:e,packageName:wt}).component};St.propTypes={baseRoute:t().string,memoryHistory:t().bool};const Et=St})(),u})()));
|
|
42
|
+
function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:()=>o});var o=function e(t,n){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(r[c]=t.read(a,c),e===c)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){o(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function a(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}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},71468:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>ee,Ng:()=>Z,Pj:()=>oe,ty:()=>K});var r=n(4883),o=(n(78418),r.version.startsWith("19")),i=Symbol.for(o?"react.transitional.element":"react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=p,y=h;function b(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case i:switch(e=e.type){case c:case u:case s:case f:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case g:case h:case l:return e;default:return t}}case a:return t}}}function w(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let c,s,u,l,d,p=!1;function f(p,f){const m=!i(f,s),h=!o(p,c,f,s);return c=p,s=f,m&&h?(u=e(c,s),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):m?(e.dependsOnOwnProps&&(u=e(c,s)),t.dependsOnOwnProps&&(l=t(r,s)),d=n(u,l,s),d):h?function(){const t=e(c,s),r=!a(t,u);return u=t,r&&(d=n(u,l,s)),d}():d}return function(o,i){return p?f(o,i):(c=o,s=i,u=e(c,s),l=t(r,s),d=n(u,l,s),p=!0,d)}}function x(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function O(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=O(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=O(o),o=r(t,n)),o},r}}function S(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function E(e,t,n){return{...n,...e,...t}}function j(e){e()}var P={notify(){},get:()=>[]};function A(e,t){let n,r=P,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){j((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=P)}const u={addNestedSub:function(e){c();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}var D=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),T=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),_=(()=>D||T?r.useLayoutEffect:r.useEffect)();function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!C(e[n[r]],t[n[r]]))return!1;return!0}var I={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},R={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},N={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[y]:N};function F(e){return function(e){return b(e)===h}(e)?N:L[e.$$typeof]||I}var H=Object.defineProperty,W=Object.getOwnPropertyNames,B=Object.getOwnPropertySymbols,V=Object.getOwnPropertyDescriptor,U=Object.getPrototypeOf,Y=Object.prototype;function z(e,t){if("string"!=typeof t){if(Y){const n=U(t);n&&n!==Y&&z(e,n)}let n=W(t);B&&(n=n.concat(B(t)));const r=F(e),o=F(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(R[a]||o&&o[a]||r&&r[a])){const n=V(t,a);try{H(e,a,n)}catch(e){}}}}return e}var q=Symbol.for("react-redux-context"),$="undefined"!=typeof globalThis?globalThis:{};function G(){if(!r.createContext)return{};const e=$[q]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var K=G(),J=[null,null];function Q(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function X(e,t){return e===t}var Z=function(e,t,n,{pure:o,areStatesEqual:i=X,areOwnPropsEqual:a=M,areStatePropsEqual:c=M,areMergedPropsEqual:s=M,forwardRef:u=!1,context:l=K}={}){const d=l,p=function(e){return e?"function"==typeof e?k(e):S(e,"mapStateToProps"):x((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?x((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?k(e):S(e,"mapDispatchToProps"):x((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const c=e(t,n,a);return i?r(c,o)||(o=c):(i=!0,o=c),o}}}(e):S(e,"mergeProps"):()=>E}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:c,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){const[n,i,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),c=r.useMemo((()=>d),[n,d]),s=r.useContext(c),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(s)&&Boolean(s.store);const p=u?t.store:s.store,f=l?s.getServerState:p.getState,m=r.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return w(t(e,o),n(e,o),r(e,o),e,o)}(p.dispatch,o)),[p]),[g,v]=r.useMemo((()=>{if(!h)return J;const e=A(p,u?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,u,s]),y=r.useMemo((()=>u?s:{...s,subscription:g}),[u,s,g]),b=r.useRef(void 0),x=r.useRef(a),O=r.useRef(void 0),k=r.useRef(!1),S=r.useRef(!1),E=r.useRef(void 0);_((()=>(S.current=!0,()=>{S.current=!1})),[]);const j=r.useMemo((()=>()=>O.current&&a===x.current?O.current:m(p.getState(),a)),[p,a]),P=r.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,c,s,u,l){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!c.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===i.current?a.current||u():(i.current=n,s.current=n,a.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(h,p,g,m,x,b,k,S,O,v,e):()=>{}),[g]);var D,T,C;let M;D=Q,T=[x,b,k,a,O,v],_((()=>D(...T)),C);try{M=r.useSyncExternalStore(P,j,f?()=>m(f(),a):j)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}_((()=>{E.current=void 0,O.current=void 0,b.current=M}));const I=r.useMemo((()=>r.createElement(e,{...M,ref:i})),[i,e,M]);return r.useMemo((()=>h?r.createElement(c.Provider,{value:y},I):I),[c,I,y])}const g=r.memo(l);if(g.WrappedComponent=e,g.displayName=l.displayName=n,u){const t=r.forwardRef((function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,z(t,e)}return z(g,e)}};var ee=function(e){const{children:t,context:n,serverState:o,store:i}=e,a=r.useMemo((()=>{const e=A(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}}),[i,o]),c=r.useMemo((()=>i.getState()),[i]);_((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,c]);const s=n||K;return r.createElement(s.Provider,{value:a},t)};function te(e=K){return function(){return r.useContext(e)}}var ne=te();function re(e=K){const t=e===K?ne:te(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var oe=re()},76744:(e,t,n)=>{"use strict";n.d(t,{AO:()=>h,BV:()=>Wt,C5:()=>Lt,Ge:()=>kn,KP:()=>jt,N_:()=>Pn,Ri:()=>ct,Ys:()=>On,Zp:()=>dt,bg:()=>Mt,g:()=>pt,ok:()=>_n,pg:()=>Rt,qh:()=>Ft,zy:()=>st});var r,o=n(4883),i=(n(16069),e=>{throw TypeError(e)}),a=(e,t,n)=>(((e,t,n)=>{t.has(e)||i("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),c="popstate";function s(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>l(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let i=s(null==r?t.length-1:r),a="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[i]}function l(e,n=null,r){let o=m(t?u().pathname:"/",e,n,r);return p("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:h(e)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){a="PUSH";let r=l(e,n);i+=1,t.splice(i,t.length,r),o&&c&&c({action:a,location:r,delta:1})},replace(e,n){a="REPLACE";let r=l(e,n);t[i]=r,o&&c&&c({action:a,location:r,delta:0})},go(e){a="POP";let n=s(i+e),r=t[n];i=n,c&&c({action:a,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function u(e={}){return v((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e={}){return v((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function h({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function g(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",u=null,l=p();function p(){return(a.state||{idx:null}).idx}function g(){s="POP";let e=p(),t=null==e?null:e-l;l=e,u&&u({action:s,location:y.location,delta:t})}function v(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),d(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==l&&(l=0,a.replaceState({...a.state,idx:l},""));let y={get action(){return s},get location(){return e(o,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(c,g),u=e,()=>{o.removeEventListener(c,g),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=m(y.location,e,t);n&&n(r,e),l=p()+1;let c=f(r,l),d=y.createHref(r);try{a.pushState(c,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(d)}i&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let r=m(y.location,e,t);n&&n(r,e),l=p();let o=f(r,l),c=y.createHref(r);a.replaceState(o,"",c),i&&u&&u({action:s,location:y.location,delta:0})},go:e=>a.go(e)};return y}var y=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?i("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,o),e)for(let[t,n]of e)this.set(t,n)}get(e){if(a(this,r).has(e))return a(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(this,r).set(e,t)}};r=new WeakMap;var b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,n=[],r={}){return e.map(((e,o)=>{let i=[...n,String(o)],a="string"==typeof e.id?e.id:i.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[a],`Found a route id collision on id "${a}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:a};return r[a]=n,n}{let n={...e,...t(e),id:a,children:void 0};return r[a]=n,e.children&&(n.children=w(e.children,t,i,r)),n}}))}function x(e,t,n="/"){return O(e,t,n,!1)}function O(e,t,n,r){let o=L(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=S(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=N(o);a=I(i[e],t,r)}return a}function k(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function S(e,t=[],n=[],r=""){let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(d(a.relativePath.startsWith(r),`Absolute route path "${a.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),a.relativePath=a.relativePath.slice(r.length));let c=V([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),S(e.children,t,s,c)),(null!=e.path||e.index)&&t.push({path:c,score:M(c,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of E(e.path))o(e,t,n);else o(e,t)})),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=E(r.join("/")),c=[];return c.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&c.push(...a),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var j=/^:[\w-]+$/,P=3,A=2,D=1,T=10,_=-2,C=e=>"*"===e;function M(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=_),t&&(r+=A),n.filter((e=>!C(e))).reduce(((e,t)=>e+(j.test(t)?P:""===t?D:T)),r)}function I(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",l=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},u),d=c.route;if(!l&&s&&n&&!r[r.length-1].route.index&&(l=R({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),a.push({params:o,pathname:V([i,l.pathname]),pathnameBase:U(V([i,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(i=V([i,l.pathnameBase]))}return a}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){p("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function N(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!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 (${t}).`),e}}function L(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function F(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function H(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=H(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function B(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),F("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),F("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),F("#","search","hash",o)));let i,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)i=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?g(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:Y(r),hash:z(o)}}(o,i),u=c&&"/"!==c&&c.endsWith("/"),l=(a||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!l||(s.pathname+="/"),s}var V=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var q=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function $(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var G=["POST","PUT","PATCH","DELETE"],K=new Set(G),J=["GET",...G],Q=new Set(J),X=new Set([301,302,303,307,308]),Z=new Set([307,308]),ee={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},re=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ie="remix-router-transitions",ae=Symbol("ResetLoaderData");function ce(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,i,a=e.mapRouteProperties||oe,c={},s=w(e.routes,a,void 0,c),u=e.basename||"/",l=e.dataStrategy||ye,f={unstable_middleware:!1,...e.future},h=null,g=new Set,v=null,b=null,S=null,E=null!=e.hydrationData,j=x(s,e.history.location,u),P=!1,A=null;if(null==j&&!e.patchRoutesOnNavigation){let t=Re(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ie(s);j=n,A={[r.id]:t}}if(j&&!e.hydrationData){et(j,s,e.history.location.pathname).active&&(j=null)}if(j)if(j.some((e=>e.route.lazy)))o=!1;else if(j.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=j.findIndex((e=>void 0!==n[e.route.id]));o=j.slice(0,e+1).every((e=>!pe(e.route,t,n)))}else o=j.every((e=>!pe(e.route,t,n)))}else o=!0;else{o=!1,j=[];let t=et(null,s,e.history.location.pathname);t.active&&t.matches&&(P=!0,j=t.matches)}let D,T,_={historyAction:e.history.action,location:e.history.location,matches:j,initialized:o,navigation:ee,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||A,fetchers:new Map,blockers:new Map},C="POP",M=!1,I=!1,R=new Map,N=null,F=!1,H=!1,W=new Set,B=new Map,V=0,U=-1,Y=new Map,z=new Set,q=new Map,G=new Map,K=new Set,J=new Map,Q=null;function X(e,t={}){_={..._,...e};let n=[],r=[];_.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{_.fetchers.has(e)||B.has(e)||n.push(e)})),[...g].forEach((e=>e(_,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Pe(e))),r.forEach((e=>_.fetchers.delete(e)))}function ae(t,n,{flushSync:o}={}){let i,a=null!=_.actionData&&null!=_.navigation.formMethod&&Ye(_.navigation.formMethod)&&"loading"===_.navigation.state&&!0!==t.state?._isRedirect;i=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?_.actionData:null;let c=n.loaderData?_e(_.loaderData,n.loaderData,n.matches||[],n.errors):_.loaderData,u=_.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,ne))));let l,d=!0===M||null!=_.navigation.formMethod&&Ye(_.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(s=r,r=void 0),F||"POP"===C||("PUSH"===C?e.history.push(t,t.state):"REPLACE"===C&&e.history.replace(t,t.state)),"POP"===C){let e=R.get(_.location.pathname);e&&e.has(t.pathname)?l={currentLocation:_.location,nextLocation:t}:R.has(t.pathname)&&(l={currentLocation:t,nextLocation:_.location})}else if(I){let e=R.get(_.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),R.set(_.location.pathname,e)),l={currentLocation:_.location,nextLocation:t}}X({...n,actionData:i,loaderData:c,historyAction:C,location:t,initialized:!0,navigation:ee,revalidation:"idle",restoreScrollPosition:Ze(t,n.matches||_.matches),preventScrollReset:d,blockers:u},{viewTransitionOpts:l,flushSync:!0===o}),C="POP",M=!1,I=!1,F=!1,H=!1,Q?.resolve(),Q=null}async function ce(t,n,o){D&&D.abort(),D=null,C=t,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(v&&S){let n=Xe(e,t);v[n]=S()}}(_.location,_.matches),M=!0===(o&&o.preventScrollReset),I=!0===(o&&o.enableViewTransition);let i=r||s,a=o&&o.overrideNavigation,c=o?.initialHydration&&_.matches&&_.matches.length>0&&!P?_.matches:x(i,n,u),l=!0===(o&&o.flushSync);if(c&&_.initialized&&!H&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(_.location,n)&&!(o&&o.submission&&Ye(o.submission.formMethod)))return void ae(n,{matches:c},{flushSync:l});let d=et(c,i,n.pathname);if(d.active&&d.matches&&(c=d.matches),!c){let{error:e,notFoundMatches:t,route:r}=Qe(n.pathname);return void ae(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}D=new AbortController;let p,f=je(e.history,n,D.signal,o&&o.submission),m=new y(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)p=[Me(c).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Ye(o.submission.formMethod)){let t=await async function(e,t,n,r,o,i,a={}){ve();let c,s=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(X({navigation:s},{flushSync:!0===a.flushSync}),i){let n=await tt(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Me(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=Qe(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let l=qe(r,t);if(l.route.action||l.route.lazy){let t=await me("action",e,[l],r,o,null);if(c=t[l.route.id],!c)for(let e of r)if(t[e.route.id]){c=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else c={type:"error",error:Re(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(We(c)){let t;if(a&&null!=a.replace)t=a.replace;else{t=Ee(c.response.headers.get("Location"),new URL(e.url),u)===_.location.pathname+_.location.search}return await fe(e,c,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(He(c)){let e=Me(r,l.route.id);return!0!==(a&&a.replace)&&(C="PUSH"),{matches:r,pendingActionResult:[e.route.id,c]}}return{matches:r,pendingActionResult:[l.route.id,c]}}(f,n,o.submission,c,m,d.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(He(r)&&$(r.error)&&404===r.error.status)return D=null,void ae(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,p=t.pendingActionResult,a=Ge(n,o.submission),l=!1,d.active=!1,f=je(e.history,f.url,f.signal)}let{shortCircuited:h,matches:g,loaderData:b,errors:w}=await async function(t,n,o,i,a,c,l,d,p,f,m,h){let g=c||Ge(n,l),v=l||d||$e(g),y=!F&&!f;if(a){if(y){let e=le(h);X({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:m})}let e=await tt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Me(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Qe(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||s,[w,x]=de(e.history,_,o,v,n,!0===f,H,W,K,q,z,b,u,h);if(U=++V,0===w.length&&0===x.length){let e=Le();return ae(n,{matches:o,loaderData:{},errors:h&&He(h[1])?{[h[0]]:h[1].error}:null,...Ce(h),...e?{fetchers:new Map(_.fetchers)}:{}},{flushSync:m}),{shortCircuited:!0}}if(y){let e={};if(!a){e.navigation=g;let t=le(h);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=_.fetchers.get(e.key),n=Ke(void 0,t?t.data:void 0);_.fetchers.set(e.key,n)})),new Map(_.fetchers)}(x)),X(e,{flushSync:m})}x.forEach((e=>{Ae(e.key),e.controller&&B.set(e.key,e.controller)}));let O=()=>x.forEach((e=>Ae(e.key)));D&&D.signal.addEventListener("abort",O);let{loaderResults:k,fetcherResults:S}=await ge(o,w,x,t,i);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",O);x.forEach((e=>B.delete(e.key)));let E=Ne(k);if(E)return await fe(t,E.result,!0,{replace:p}),{shortCircuited:!0};if(E=Ne(S),E)return z.add(E.key),await fe(t,E.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:j,errors:P}=Te(_,o,k,h,x,S);f&&_.errors&&(P={..._.errors,...P});let A=Le(),T=Be(U),C=A||T||x.length>0;return{matches:o,loaderData:j,errors:P,...C?{fetchers:new Map(_.fetchers)}:{}}}(f,n,c,m,d.active,a,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,p);h||(D=null,ae(n,{matches:g||c,...Ce(p),loaderData:b,errors:w}))}function le(e){return e&&!He(e[1])?{[e[0]]:e[1].data}:_.actionData?0===Object.keys(_.actionData).length?null:_.actionData:void 0}async function fe(r,o,i,{submission:a,fetcherSubmission:c,preventScrollReset:s,replace:l}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=Ee(p,new URL(r.url),u);let f=m(_.location,p,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(re.test(p)){const r=e.history.createURL(p);n=r.origin!==t.location.origin||null==L(r.pathname,u)}if(n)return void(l?t.location.replace(p):t.location.assign(p))}D=null;let h=!0===l||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=_.navigation;!a&&!c&&g&&v&&y&&(a=$e(_.navigation));let b=a||c;if(Z.has(o.response.status)&&b&&Ye(b.formMethod))await ce(h,f,{submission:{...b,formAction:p},preventScrollReset:s||M,enableViewTransition:i?I:void 0});else{let e=Ge(f,a);await ce(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||M,enableViewTransition:i?I:void 0})}}async function me(e,t,n,r,o,i){let s,d={};try{s=await Oe(l,e,t,n,r,i,c,a,o,f.unstable_middleware)}catch(e){return n.forEach((t=>{d[t.route.id]={type:"error",error:e}})),d}for(let[e,n]of Object.entries(s))if(Fe(n)){let o=n.result;d[e]={type:"redirect",response:Se(o,t,e,r,u)}}else d[e]=await ke(n);return d}async function ge(t,n,r,o,i){let a=me("loader",o,n,t,i,null),c=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",je(e.history,t.path,t.controller.signal),[t.match],t.matches,i,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Re(404,{pathname:t.path})}})})));return{loaderResults:await a,fetcherResults:(await c).reduce(((e,t)=>Object.assign(e,t)),{})}}function ve(){H=!0,q.forEach(((e,t)=>{B.has(t)&&W.add(t),Ae(t)}))}function be(e,t,n={}){_.fetchers.set(e,t),X({fetchers:new Map(_.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function we(e,t,n,r={}){let o=Me(_.matches,t);Pe(e),X({errors:{[o.route.id]:n},fetchers:new Map(_.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function xe(e){return G.set(e,(G.get(e)||0)+1),K.has(e)&&K.delete(e),_.fetchers.get(e)||te}function Pe(e){let t=_.fetchers.get(e);!B.has(e)||t&&"loading"===t.state&&Y.has(e)||Ae(e),q.delete(e),Y.delete(e),z.delete(e),K.delete(e),W.delete(e),_.fetchers.delete(e)}function Ae(e){let t=B.get(e);t&&(t.abort(),B.delete(e))}function De(e){for(let t of e){let e=Je(xe(t).data);_.fetchers.set(t,e)}}function Le(){let e=[],t=!1;for(let n of z){let r=_.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(z.delete(n),e.push(n),t=!0)}return De(e),t}function Be(e){let t=[];for(let[n,r]of Y)if(r<e){let e=_.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ae(n),Y.delete(n),t.push(n))}return De(t),t.length>0}function Ve(e){_.blockers.delete(e),J.delete(e)}function Ue(e,t){let n=_.blockers.get(e)||ne;d("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(_.blockers);r.set(e,t),X({blockers:r})}function ze({currentLocation:e,nextLocation:t,historyAction:n}){if(0===J.size)return;J.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(J.entries()),[o,i]=r[r.length-1],a=_.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Qe(e){let t=Re(404,{pathname:e}),n=r||s,{matches:o,route:i}=Ie(n);return{notFoundMatches:o,route:i,error:t}}function Xe(e,t){if(b){return b(e,t.map((e=>k(e,_.loaderData))))||e.key}return e.key}function Ze(e,t){if(v){let n=Xe(e,t),r=v[n];if("number"==typeof r)return r}return null}function et(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:O(n,r,u,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:O(n,r,u,!0)}}}return{active:!1,matches:null}}async function tt(t,n,o,i){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let l=t;for(;;){let t=null==r,d=r||s,p=c;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:l,fetcherKey:i,patch:(e,t)=>{o.aborted||he(e,t,d,p,a)}})}catch(e){return{type:"error",error:e,partialMatches:l}}finally{t&&!o.aborted&&(s=[...s])}if(o.aborted)return{type:"aborted"};let f=x(d,n,u);if(f)return{type:"success",matches:f};let m=O(d,n,u,!0);if(!m||l.length===m.length&&l.every(((e,t)=>e.route.id===m[t].route.id)))return{type:"success",matches:null};l=m}}return i={get basename(){return u},get future(){return f},get state(){return _},get routes(){return s},get window(){return t},initialize:function(){if(h=e.history.listen((({action:t,location:n,delta:r})=>{if(T)return T(),void(T=void 0);p(0===J.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=ze({currentLocation:_.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{T=e}));return e.history.go(-1*r),void Ue(o,{state:"blocked",location:n,proceed(){Ue(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(_.blockers);e.set(o,ne),X({blockers:e})}})}return ce(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(ie);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,R);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ie,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,R);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return _.initialized||ce("POP",_.location,{initialHydration:!0}),i},subscribe:function(e){return g.add(e),()=>g.delete(e)},enableScrollRestoration:function(e,t,n){if(v=e,S=t,b=n||null,!E&&_.navigation===ee){E=!0;let e=Ze(_.location,_.matches);null!=e&&X({restoreScrollPosition:e})}return()=>{v=null,S=null,b=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=se(_.location,_.matches,u,n,r?.fromRouteId,r?.relative),{path:i,submission:a,error:c}=ue(!1,o,r),s=_.location,l=m(_.location,i,r&&r.state);l={...l,...e.history.encodeLocation(l)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=a&&Ye(a.formMethod)&&a.formAction===_.location.pathname+_.location.search&&(p="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=ze({currentLocation:s,nextLocation:l,historyAction:p});g?Ue(g,{state:"blocked",location:l,proceed(){Ue(g,{state:"proceeding",proceed:void 0,reset:void 0,location:l}),t(n,r)},reset(){let e=new Map(_.blockers);e.set(g,ne),X({blockers:e})}}):await ce(p,l,{submission:a,pendingError:c,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h})},fetch:async function(t,n,o,i){Ae(t);let a=!0===(i&&i.flushSync),c=r||s,l=se(_.location,_.matches,u,o,n,i?.relative),p=x(c,l,u),f=et(p,c,l);if(f.active&&f.matches&&(p=f.matches),!p)return void we(t,n,Re(404,{pathname:l}),{flushSync:a});let{path:m,submission:h,error:g}=ue(!0,l,i);if(g)return void we(t,n,g,{flushSync:a});let v=qe(p,m),b=new y(e.unstable_getContext?await e.unstable_getContext():void 0),w=!0===(i&&i.preventScrollReset);h&&Ye(h.formMethod)?await async function(t,n,o,i,a,c,l,p,f,m){function h(e){if(!e.route.action&&!e.route.lazy){let e=Re(405,{method:m.formMethod,pathname:o,routeId:n});return we(t,n,e,{flushSync:p}),!0}return!1}if(ve(),q.delete(t),!l&&h(i))return;let g=_.fetchers.get(t);be(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(m,g),{flushSync:p});let v=new AbortController,y=je(e.history,o,v.signal,m);if(l){let e=await tt(a,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void we(t,n,e.error,{flushSync:p});if(!e.matches)return void we(t,n,Re(404,{pathname:o}),{flushSync:p});if(h(i=qe(a=e.matches,o)))return}B.set(t,v);let b=V,w=await me("action",y,[i],a,c,t),O=w[i.route.id];if(y.signal.aborted)return void(B.get(t)===v&&B.delete(t));if(K.has(t)){if(We(O)||He(O))return void be(t,Je(void 0))}else{if(We(O))return B.delete(t),U>b?void be(t,Je(void 0)):(z.add(t),be(t,Ke(m)),fe(y,O,!1,{fetcherSubmission:m,preventScrollReset:f}));if(He(O))return void we(t,n,O.error)}let k=_.navigation.location||_.location,S=je(e.history,k,v.signal),E=r||s,j="idle"!==_.navigation.state?x(E,_.navigation.location,u):_.matches;d(j,"Didn't find any matches after fetcher action");let P=++V;Y.set(t,P);let A=Ke(m,O.data);_.fetchers.set(t,A);let[T,M]=de(e.history,_,j,m,k,!1,H,W,K,q,z,E,u,[i.route.id,O]);M.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=_.fetchers.get(t),r=Ke(void 0,n?n.data:void 0);_.fetchers.set(t,r),Ae(t),e.controller&&B.set(t,e.controller)})),X({fetchers:new Map(_.fetchers)});let I=()=>M.forEach((e=>Ae(e.key)));v.signal.addEventListener("abort",I);let{loaderResults:R,fetcherResults:N}=await ge(j,T,M,S,c);if(v.signal.aborted)return;v.signal.removeEventListener("abort",I),Y.delete(t),B.delete(t),M.forEach((e=>B.delete(e.key)));let L=Ne(R);if(L)return fe(S,L.result,!1,{preventScrollReset:f});if(L=Ne(N),L)return z.add(L.key),fe(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:$}=Te(_,j,R,void 0,M,N);if(_.fetchers.has(t)){let e=Je(O.data);_.fetchers.set(t,e)}Be(P),"loading"===_.navigation.state&&P>U?(d(C,"Expected pending action"),D&&D.abort(),ae(_.navigation.location,{matches:j,loaderData:F,errors:$,fetchers:new Map(_.fetchers)})):(X({errors:$,loaderData:_e(_.loaderData,F,j,$),fetchers:new Map(_.fetchers)}),H=!1)}(t,n,m,v,p,b,f.active,a,w,h):(q.set(t,{routeId:n,path:m}),await async function(t,n,r,o,i,a,c,s,u,l){let d=_.fetchers.get(t);be(t,Ke(l,d?d.data:void 0),{flushSync:s});let p=new AbortController,f=je(e.history,r,p.signal);if(c){let e=await tt(i,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void we(t,n,e.error,{flushSync:s});if(!e.matches)return void we(t,n,Re(404,{pathname:r}),{flushSync:s});o=qe(i=e.matches,r)}B.set(t,p);let m=V,h=await me("loader",f,[o],i,a,t),g=h[o.route.id];B.get(t)===p&&B.delete(t);if(f.signal.aborted)return;if(K.has(t))return void be(t,Je(void 0));if(We(g))return U>m?void be(t,Je(void 0)):(z.add(t),void await fe(f,g,!1,{preventScrollReset:u}));if(He(g))return void we(t,n,g.error);be(t,Je(g.data))}(t,n,m,v,p,b,f.active,a,w,h))},revalidate:function(){Q||(Q=function(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}()),ve(),X({revalidation:"loading"});let e=Q.promise;return"submitting"===_.navigation.state?e:"idle"===_.navigation.state?(ce(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),e):(ce(C||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:!0===I}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:xe,deleteFetcher:function(e){let t=(G.get(e)||0)-1;t<=0?(G.delete(e),K.add(e)):G.set(e,t),X({fetchers:new Map(_.fetchers)})},dispose:function(){h&&h(),N&&N(),g.clear(),D&&D.abort(),_.fetchers.forEach(((e,t)=>Pe(t))),_.blockers.forEach(((e,t)=>Ve(t)))},getBlocker:function(e,t){let n=_.blockers.get(e)||ne;return J.get(e)!==t&&J.set(e,t),n},deleteBlocker:Ve,patchRoutes:function(e,t){let n=null==r;he(e,t,r||s,c,a),n&&(s=[...s],X({}))},_internalFetchControllers:B,_internalSetRoutes:function(e){c={},r=w(e,a,void 0,c)}},i}function se(e,t,n,r,o,i){let a,c;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){c=e;break}}else a=t,c=t[t.length-1];let s=B(r||".",W(a),L(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=ze(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname="/"===s.pathname?n:V([n,s.pathname])),h(s)}function ue(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!Ue(n.formMethod))return{path:t,error:Re(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:Re(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),c=Le(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ye(a))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ye(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Pe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Pe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ae(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ae(r)}catch(e){return i()}let s={formMethod:a,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Ye(s.formMethod))return{path:t,submission:s};let u=g(t);return e&&u.search&&ze(u.search)&&r.append("index",""),u.search=`?${r}`,{path:h(u),submission:s}}function le(e,t,n=!1){let r=e.findIndex((e=>e.route.id===t));return r>=0?e.slice(0,n?r+1:r):e}function de(e,t,n,r,o,i,a,c,s,u,l,d,p,f){let m=f?He(f[1])?f[1].error:f[1].data:void 0,h=e.createURL(t.location),g=e.createURL(o),v=n;i&&t.errors?v=le(n,Object.keys(t.errors)[0],!0):f&&He(f[1])&&(v=le(n,f[0]));let y=f?f[1].statusCode:void 0,b=y&&y>=400,w=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return pe(o,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(t.loaderData,t.matches[n],e))return!0;let c=t.matches[n],s=e;return me(e,{currentUrl:h,currentParams:c.params,nextUrl:g,nextParams:s.params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&(a||h.pathname+h.search===g.pathname+g.search||h.search!==g.search||fe(c,s))})})),O=[];return u.forEach(((e,o)=>{if(i||!n.some((t=>t.route.id===e.routeId))||s.has(o))return;let u=x(d,e.path,p);if(!u)return void O.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(o),v=qe(u,e.path),w=!1;l.has(o)?w=!1:c.has(o)?(c.delete(o),w=!0):w=f&&"idle"!==f.state&&void 0===f.data?a:me(v,{currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:m,actionStatus:y,defaultShouldRevalidate:!b&&a}),w&&O.push({key:o,routeId:e.routeId,path:e.path,matches:u,match:v,controller:new AbortController})})),[w,O]}function pe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function fe(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function me(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function he(e,t,n,r,o){let i;if(e){let t=r[e];d(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let a=w(t.filter((e=>!i.some((t=>ge(e,t))))),o,[e||"_","patch",String(i?.length||"0")],r);i.push(...a)}function ge(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every(((e,n)=>t.children?.some((t=>ge(e,t))))))}async function ve(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function ye(e){return e.matches.some((e=>e.route.unstable_middleware))?be(e,!1,(()=>ve(e)),(e=>({[e.routeId]:{type:"error",result:e.error}}))):ve(e)}async function be(e,t,n,r){let{matches:o,request:i,params:a,context:c}=e,s={handlerResult:void 0,propagateResult:t};try{let e=o.flatMap((e=>e.route.unstable_middleware?e.route.unstable_middleware.map((t=>[e.route.id,t])):[])),t=await xe({request:i,params:a,context:c},e,s,n);return s.propagateResult?t:s.handlerResult}catch(e){if(!(e instanceof we))throw e;let n=await r(e);return t||!s.handlerResult?n:Object.assign(s.handlerResult,n)}}var we=class{constructor(e,t){this.routeId=e,this.error=t}};async function xe(e,t,n,r,o=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let a=t[o];if(!a)return n.handlerResult=await r(),n.handlerResult;let c,[s,u]=a,l=!1,d=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");l=!0;let i=await xe(e,t,n,r,o+1);if(n.propagateResult)return c=i,c};try{let t=await u({request:e.request,params:e.params,context:e.context},d);return l?void 0===t?c:t:d()}catch(e){if(e instanceof we)throw e;throw new we(s,e)}}async function Oe(e,t,n,r,o,i,a,c,s,u){let l=o.map((e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];d(o,"No route found in manifest");let i={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;p(!t,`Route "${o.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`),t||b.has(e)||(i[e]=r[e])}Object.assign(o,i),Object.assign(o,{...t(o),lazy:void 0})}(e.route,c,a):void 0));u&&await Promise.all(l);let f=o.map(((e,o)=>{let i=l[o],a=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:a,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(a=!0),a?async function(e,t,n,r,o,i){let a,c,s=r=>{let a,s=new Promise(((e,t)=>a=t));c=()=>a(),t.signal.addEventListener("abort",c);let u=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${n.route.id}]`)):r({request:t,params:n.params,context:i},...void 0!==o?[o]:[]),l=(async()=>{try{return{type:"data",result:await(o?o((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([l,s])};try{let o=n.route[e];if(r)if(o){let e,[t]=await Promise.all([s(o).catch((t=>{e=t})),r]);if(void 0!==e)throw e;a=t}else{if(await r,o=n.route[e],!o){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Re(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}a=await s(o)}else{if(!o){let e=new URL(t.url);throw Re(404,{pathname:e.pathname+e.search})}a=await s(o)}}catch(e){return{type:"error",result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return a}(t,n,e,i,r,s):Promise.resolve({type:"data",result:void 0}))}})),m=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:s});try{await Promise.all(l)}catch(e){}return m}async function ke(e){let{result:t,type:n}=e;if(Ve(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?Be(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new q(t.init?.status||500,void 0,t.data),statusCode:$(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:$(t)?t.status:void 0}:Be(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Se(e,t,n,r,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!re.test(i)){let a=r.slice(0,r.findIndex((e=>e.route.id===n))+1);i=se(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function Ee(e,t,n){if(re.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=L(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function je(e,t,n,r){let o=e.createURL(Le(t)).toString(),i={signal:n};if(r&&Ye(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Pe(r.formData):i.body=r.formData}return new Request(o,i)}function Pe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ae(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function De(e,t,n,r=!1,o=!1){let i,a={},c=null,s=!1,u={},l=n&&He(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(d(!We(f),"Cannot handle redirect results in processLoaderData"),He(f)){let t=f.error;if(void 0!==l&&(t=l,l=void 0),c=c||{},o)c[p]=t;else{let n=Me(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(a[p]=ae),s||(s=!0,i=$(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else a[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(i=f.statusCode),f.headers&&(u[p]=f.headers)})),void 0!==l&&n&&(c={[n[0]]:l},a[n[0]]=void 0),{loaderData:a,errors:c,statusCode:i||200,loaderHeaders:u}}function Te(e,t,n,r,o,i){let{loaderData:a,errors:c}=De(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,a=i[n];if(d(a,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(He(a)){let t=Me(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(We(a))d(!1,"Unhandled fetcher revalidation redirect");else{let t=Je(a.data);e.fetchers.set(n,t)}})),{loaderData:a,errors:c}}function _e(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ae)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Ce(e){return e?He(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Me(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ie(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Re(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(a="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(a="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",c=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new q(e||500,a,new Error(c),!0)}function Ne(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(We(r))return{key:n,result:r}}}function Le(e){return h({..."string"==typeof e?g(e):e,hash:""})}function Fe(e){return Ve(e.result)&&X.has(e.result.status)}function He(e){return"error"===e.type}function We(e){return"redirect"===(e&&e.type)}function Be(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ve(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ue(e){return Q.has(e.toUpperCase())}function Ye(e){return K.has(e.toUpperCase())}function ze(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function qe(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&ze(n||""))return e[e.length-1];let r=H(e);return r[r.length-1]}function $e(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ge(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ke(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Je(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var Qe=o.createContext(null);Qe.displayName="DataRouter";var Xe=o.createContext(null);Xe.displayName="DataRouterState";var Ze=o.createContext({isTransitioning:!1});Ze.displayName="ViewTransition";var et=o.createContext(new Map);et.displayName="Fetchers";var tt=o.createContext(null);tt.displayName="Await";var nt=o.createContext(null);nt.displayName="Navigation";var rt=o.createContext(null);rt.displayName="Location";var ot=o.createContext({outlet:null,matches:[],isDataRoute:!1});ot.displayName="Route";var it=o.createContext(null);it.displayName="RouteError";var at=!0;function ct(){return null!=o.useContext(rt)}function st(){return d(ct(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(rt).location}var ut="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lt(e){o.useContext(nt).static||o.useLayoutEffect(e)}function dt(){let{isDataRoute:e}=o.useContext(ot);return e?function(){let{router:e}=xt("useNavigate"),t=kt("useNavigate"),n=o.useRef(!1);return lt((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{p(n.current,ut),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(ct(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(Qe),{basename:t,navigator:n}=o.useContext(nt),{matches:r}=o.useContext(ot),{pathname:i}=st(),a=JSON.stringify(W(r)),c=o.useRef(!1);return lt((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(p(c.current,ut),!c.current)return;if("number"==typeof r)return void n.go(r);let s=B(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:V([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,a,i,e])}()}o.createContext(null);function pt(){let{matches:e}=o.useContext(ot),t=e[e.length-1];return t?t.params:{}}function ft(e,{relative:t}={}){let{matches:n}=o.useContext(ot),{pathname:r}=st(),i=JSON.stringify(W(n));return o.useMemo((()=>B(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function mt(e,t,n,r){d(ct(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=o.useContext(nt),{matches:c}=o.useContext(ot),s=c[c.length-1],u=s?s.params:{},l=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;if(at){let e=m&&m.path||"";At(l,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) 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 <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,v=st();if(t){let e="string"==typeof t?g(t):t;d("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` 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 "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=v;let y=h.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=!a&&n&&n.matches&&n.matches.length>0?n.matches:x(e,{pathname:b});at&&(p(m||null!=w,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),p(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let O=bt(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:V([f,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:V([f,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,n,r);return t&&O?o.createElement(rt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},O):O}function ht(){let e=St(),t=$(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},c=null;return at&&(console.error("Error handled by React Router default ErrorBoundary:",e),c=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:i},n):null,c)}var gt=o.createElement(ht,null),vt=class extends o.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,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(ot.Provider,{value:this.props.routeContext},o.createElement(it.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function yt({routeContext:e,match:t,children:n}){let r=o.useContext(Qe);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ot.Provider,{value:e},n)}function bt(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,a=n?.errors;if(null!=a){let e=i.findIndex((e=>e.route.id&&void 0!==a?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,s=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,i=s>=0?i.slice(0,s+1):[i[0]];break}}}return i.reduceRight(((e,r,u)=>{let l,d=!1,p=null,f=null;n&&(l=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||gt,c&&(s<0&&0===u?(At("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):s===u&&(d=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,u+1)),h=()=>{let t;return t=l?p:d?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(yt,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===u)?o.createElement(vt,{location:n.location,revalidation:n.revalidation,component:p,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()}),null)}function wt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xt(e){let t=o.useContext(Qe);return d(t,wt(e)),t}function Ot(e){let t=o.useContext(Xe);return d(t,wt(e)),t}function kt(e){let t=function(e){let t=o.useContext(ot);return d(t,wt(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function St(){let e=o.useContext(it),t=Ot("useRouteError"),n=kt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Et=0;function jt(e){let{router:t,basename:n}=xt("useBlocker"),r=Ot("useBlocker"),[i,a]=o.useState(""),c=o.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...r,pathname:L(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:L(o.pathname,n)||o.pathname},historyAction:i})}),[n,e]);return o.useEffect((()=>{let e=String(++Et);return a(e),()=>t.deleteBlocker(e)}),[t]),o.useEffect((()=>{""!==i&&t.getBlocker(i,c)}),[t,i,c]),i&&r.blockers.has(i)?r.blockers.get(i):ne}var Pt={};function At(e,t,n){t||Pt[e]||(Pt[e]=!0,p(!1,n))}var Dt={};function Tt(e,t){e||Dt[t]||(Dt[t]=!0,console.warn(t))}var _t=!0;function Ct(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(_t&&e.element&&p(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(_t&&e.hydrateFallbackElement&&p(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(_t&&e.errorElement&&p(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function Mt(e,t){return ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:s({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:Ct,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}var It=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function Rt({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[i,a]=o.useState(),[c,s]=o.useState({isTransitioning:!1}),[u,l]=o.useState(),[d,p]=o.useState(),[f,m]=o.useState(),h=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:i,flushSync:c,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&h.current.set(t,e.data)})),i.forEach((e=>h.current.delete(e))),Tt(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let g=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Tt(null==f||g,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),f&&g){if(t&&c){t((()=>{d&&(u&&u.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:f.currentLocation,nextLocation:f.nextLocation})}));let o=e.window.document.startViewTransition((()=>{t((()=>r(n)))}));return o.finished.finally((()=>{t((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(u&&u.resolve(),d.skipTransition(),m({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(a(n),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&c?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,u]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{c.isTransitioning&&!c.flushSync&&l(new It)}),[c]),o.useEffect((()=>{if(u&&i&&e.window){let t=i,n=u.promise,c=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));c.finished.finally((()=>{l(void 0),p(void 0),a(void 0),s({isTransitioning:!1})})),p(c)}}),[i,u,e.window]),o.useEffect((()=>{u&&i&&n.location.key===i.location.key&&u.resolve()}),[u,d,n.location,i]),o.useEffect((()=>{!c.isTransitioning&&f&&(a(f.state),s({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),m(void 0))}),[c.isTransitioning,f]);let v=o.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),y=e.basename||"/",b=o.useMemo((()=>({router:e,navigator:v,static:!1,basename:y})),[e,v,y]);return o.createElement(o.Fragment,null,o.createElement(Qe.Provider,{value:b},o.createElement(Xe.Provider,{value:n},o.createElement(et.Provider,{value:h.current},o.createElement(Ze.Provider,{value:c},o.createElement(Ht,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Nt,{routes:e.routes,future:e.future,state:n})))))),null)}var Nt=o.memo((function({routes:e,future:t,state:n}){return mt(e,void 0,n,t)}));function Lt({to:e,replace:t,state:n,relative:r}){d(ct(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=o.useContext(nt);p(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=o.useContext(ot),{pathname:c}=st(),s=dt(),u=B(e,W(a),c,"path"===r),l=JSON.stringify(u);return o.useEffect((()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})}),[s,l,r,t,n]),null}function Ft(e){d(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ht({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){d(!ct(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=o.useMemo((()=>({basename:c,navigator:i,static:a,future:{}})),[c,i,a]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:l="",hash:f="",state:m=null,key:h="default"}=n,v=o.useMemo((()=>{let e=L(u,c);return null==e?null:{location:{pathname:e,search:l,hash:f,state:m,key:h},navigationType:r}}),[c,u,l,f,m,h,r]);return p(null!=v,`<Router basename="${c}"> is not able to match the URL "${u}${l}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(nt.Provider,{value:s},o.createElement(rt.Provider,{children:t,value:v}))}function Wt({children:e,location:t}){return mt(Bt(e),t)}o.Component;function Bt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Bt(e.props.children,i));d(e.type===Ft,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Bt(e.props.children,i)),n.push(a)})),n}var Vt="get",Ut="application/x-www-form-urlencoded";function Yt(e){return null!=e&&"string"==typeof e.tagName}function zt(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var qt=null;var $t=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gt(e){return null==e||$t.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ut}"`),null)}function Kt(e,t){let n,r,o,i,a;if(function(e){return Yt(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?L(a,t):null,n=e.getAttribute("method")||Vt,o=Gt(e.getAttribute("enctype"))||Ut,i=new FormData(e)}else if(function(e){return Yt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Yt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||a.getAttribute("action");if(r=c?L(c,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Vt,o=Gt(e.getAttribute("formenctype"))||Gt(a.getAttribute("enctype"))||Ut,i=new FormData(a,e),!function(){if(null===qt)try{new FormData(document.createElement("form"),0),qt=!1}catch(e){qt=!0}return qt}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(Yt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Vt,r=null,o=Ut,a=e}return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}function Jt(e,t){if(!1===e||null==e)throw new Error(t)}async function Qt(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Xt(e){return null!=e&&"string"==typeof e.page}function Zt(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 en(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>a(e,t)||c(e,t))):"data"===i?t.filter(((t,i)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,i)||c(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function tn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function nn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Xt(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function rn(e){return{__html:e}}Symbol("SingleFetchRedirect");function on(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===L(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function an({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n );\n '}});if($(e))return o.createElement(cn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(cn,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function cn({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=pn();return i.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(bn,null):null)))}function sn(e){return!0===e}function un(){let e=o.useContext(Qe);return Jt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ln(){let e=o.useContext(Xe);return Jt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dn=o.createContext(void 0);function pn(){let e=o.useContext(dn);return Jt(e,"You must render this element inside a <HydratedRouter> element"),e}function fn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mn(e,t,n){if(n&&!yn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function hn({page:e,...t}){let{router:n}=un(),r=o.useMemo((()=>x(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(vn,{page:e,matches:r,...t}):null}function gn(e){let{manifest:t,routeModules:n}=pn(),[r,i]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return nn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Qt(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Zt).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}function vn({page:e,matches:t,...n}){let r=st(),{manifest:i,routeModules:a}=pn(),{basename:c}=un(),{loaderData:s,matches:u}=ln(),l=o.useMemo((()=>en(e,t,u,i,r,"data")),[e,t,u,i,r]),d=o.useMemo((()=>en(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some((t=>t.route.id===e.route.id))&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let u=on(e,c);return o&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[c,s,r,i,l,t,e,a]),f=o.useMemo((()=>tn(d,i)),[d,i]),m=gn(d);return o.createElement(o.Fragment,null,p.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),f.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>o.createElement("link",{key:e,...t}))))}dn.displayName="FrameworkContext";var yn=!1;function bn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:i,renderMeta:a}=pn(),{router:c,static:s,staticContext:u}=un(),{matches:l}=ln(),d=sn(i);a&&(a.didRenderScripts=!0);let p=mn(l,null,r);o.useEffect((()=>{!0}),[]);let f=o.useMemo((()=>{let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=s?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${d?"":`import ${JSON.stringify(t.url)}`};\n${p.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Jt(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,hydrateFallbackModule:c,module:s}=o,u=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:s,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(s)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${d?`window.__reactRouterManifest = ${JSON.stringify(function(e,t){let n=new Set(t.state.matches.map((e=>e.route.id))),r=t.state.location.pathname.split("/").filter(Boolean),o=["/"];for(r.pop();r.length>0;)o.push(`/${r.join("/")}`),r.pop();o.forEach((e=>{let r=x(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let i=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return{...e,routes:i}}(t,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${p.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:rn(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:rn(i),type:"module",async:!0}))}),[]),m=yn?[]:t.entry.imports.concat(tn(p,t,{includeHydrateFallback:!0}));return yn?null:o.createElement(o.Fragment,null,d?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),function(e){return[...new Set(e)]}(m).map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),f)}function wn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var xn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{xn&&(window.__reactRouterVersion="7.3.0")}catch(e){}function On(e,t){return ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||Sn(),routes:e,mapRouteProperties:Ct,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function kn(e,t){return ce({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:l({window:t?.window}),hydrationData:t?.hydrationData||Sn(),routes:e,mapRouteProperties:Ct,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Sn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:En(e.errors)}),e}function En(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new q(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var jn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:a,state:c,target:s,to:u,preventScrollReset:l,viewTransition:f,...m},g){let v,{basename:y}=o.useContext(nt),b="string"==typeof u&&jn.test(u),w=!1;if("string"==typeof u&&b&&(v=u,xn))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=L(t.pathname,y);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:w=!0}catch(e){p(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){d(ct(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(nt),{hash:i,pathname:a,search:c}=ft(e,{relative:t}),s=a;return"/"!==n&&(s="/"===a?n:V([n,a])),r.createHref({pathname:s,search:c,hash:i})}(u,{relative:r}),[O,k,S]=function(e,t){let n=o.useContext(dn),[r,i]=o.useState(!1),[a,c]=o.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{i(!0)},h=()=>{i(!1),c(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:fn(s,m),onBlur:fn(u,h),onMouseEnter:fn(l,m),onMouseLeave:fn(d,h),onTouchStart:fn(p,m)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:c}={}){let s=dt(),u=st(),l=ft(e,{relative:a});return o.useCallback((o=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(o,t)){o.preventDefault();let t=void 0!==n?n:h(u)===h(l);s(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:c})}}),[u,s,l,n,r,t,e,i,a,c])}(u,{replace:a,state:c,target:s,preventScrollReset:l,relative:r,viewTransition:f});let j=o.createElement("a",{...m,...S,href:v||x,onClick:w||i?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:wn(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,j,o.createElement(hn,{page:x})):j}));Pn.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:a,viewTransition:c,children:s,...u},l){let p=ft(a,{relative:u.relative}),f=st(),m=o.useContext(Xe),{navigator:h,basename:g}=o.useContext(nt),v=null!=m&&function(e,t={}){let n=o.useContext(Ze);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tn("useViewTransitionState"),i=ft(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=R(i.pathname,c)||null!=R(i.pathname,a)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=L(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),E={isActive:k,isPending:S,isTransitioning:v},j=k?e:void 0;O="function"==typeof n?n(E):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof i?i(E):i;return o.createElement(Pn,{...u,"aria-current":j,className:O,ref:l,style:P,to:a,viewTransition:c},"function"==typeof s?s(E):s)})).displayName="NavLink";var An=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:c=Vt,action:s,onSubmit:u,relative:l,preventScrollReset:p,viewTransition:f,...m},g)=>{let v=In(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(nt),r=o.useContext(ot);d(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...ft(e||".",{relative:t})},c=st();if(null==e){a.search=c.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();a.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:V([n,a.pathname]));return h(a)}(s,{relative:l}),b="get"===c.toLowerCase()?"get":"post",w="string"==typeof s&&jn.test(s);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||c;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:i,state:a,relative:l,preventScrollReset:p,viewTransition:f})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function Dn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tn(e){let t=o.useContext(Qe);return d(t,Dn(e)),t}function _n(e){p("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=o.useRef(zt(e)),n=o.useRef(!1),r=st(),i=o.useMemo((()=>function(e,t){let n=zt(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),a=dt(),c=o.useCallback(((e,t)=>{const r=zt("function"==typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,c]}An.displayName="Form";var Cn=0,Mn=()=>`__${String(++Cn)}__`;function In(){let{router:e}=Tn("useSubmit"),{basename:t}=o.useContext(nt),n=kt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:i,method:a,encType:c,formData:s,body:u}=Kt(r,t);if(!1===o.navigate){let t=o.fetcherKey||Mn();await e.fetch(t,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}new TextEncoder},77987:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{A:()=>r})},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},35412:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},2482:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(25134);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},65710:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},25134:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},14644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>c,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let i=e,u=t,l=new Map,d=l,p=0,f=!1;function m(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),l=null}}}function v(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,u=i(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const c={};for(let i=0;i<o.length;i++){const s=o[i],u=n[s],l=e[s],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,a=a||d!==l}return a=a||o.length!==Object.keys(e).length,a?c:e}}function l(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=l(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const c={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map((e=>e(c)));return a=p(...s)(i.dispatch),{...i,dispatch:a}}}function m(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=a,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(o,i),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",236:"actions",262:"html-editor",310:"vendor-fontawesome",556:"docs-actions",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"0ca5396c8ca7922f409e",123:"44c3fcfbf9dc6f3a766a",136:"471a847a740bba86f441",172:"5a8562f05605c293e378",201:"b4bbf81b6056735422c5",211:"9568d8c0d6647d7393b3",222:"86e7e69454f651e8e581",236:"798667b12bd8006f2fc1",262:"4c06c2756441671a88ac",264:"fdc1a714ad90a0cef94c",306:"99bb028559c1506e0112",310:"1f5c4d34f611b7f0b69a",320:"bfaa2e0e80c657015900",348:"fb3ab4bf2fec9b0a4e67",350:"0254b941f47e1a244611",389:"362711d95ad8d73ee7ed",419:"71d1e358d1a60e7a27a9",424:"9c7b92cf9e8cbe74166f",467:"b3dd954aafe3140ef1dc",556:"259905e30ed0313a5d02",601:"1304209cea9b5485565a",668:"ffc314407c1fd50dbfbf",672:"f0685e5e63247acbc44a",722:"2bfe654132875144a0af",789:"e80b20ce62cf86fcca28",916:"a767493d8fb7fd42b919",927:"b8257a516ba59e6cf318",942:"f359d95c37841972a7e5"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-admin:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={792:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)c(s)}for(t&&t(n);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_admin=this.webpackChunktocco_admin||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var u={};return(()=>{"use strict";s.r(u),s.d(u,{default:()=>Et});var e=s(5556),t=s.n(e),n=s(4883),r=s.n(n),o=s(81845),i=s.n(o),a=s(6730),c=s(30632),l=s(63061),d=s(97699),p=s(12199),f=s(42851),m=s(18601),h=s(10822),g=s(29255),v=s(17678),y=s(92207),b=s.n(y),w=s(43786),x=s(26396),O=s.n(x),k=s(98671),S=s(24096);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=O()(O()(O()(O()(O()(O()(O()(O()({},S.Se,k.A.singleTransferReducer("menuOpen")),S.GN,k.A.singleTransferReducer("modulesMenuTree")),S.yD,k.A.singleTransferReducer("settingsMenuTree")),S.Kz,k.A.singleTransferReducer("systemMenuTree")),S.kl,k.A.singleTransferReducer("completeMenuTree")),S.w,(function(e){return j(j({},e),{},{menuOpen:!e.menuOpen})})),S.cv,k.A.singleTransferReducer("activeMenuTab")),S.Qw,(function(e,t){var n=t.payload.activeMenuTab;return j(j({},e),{},{menuOpen:e.activeMenuTab!==n||!e.menuOpen})})),A={menuOpen:!1,entities:[],activeMenuTab:"modules"};var D=s(70661),T=s(93575),_=s(74978),C=b().mark(F),M=b().mark(H),I=b().mark(V),R=b().mark(Y),N=function(e){return e.navigation},L="admin.activeMenu";function F(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(D.A.requestSaga,"client/menus/".concat(e));case 2:return t=n.sent,n.abrupt("return",t.body.menuItems);case 4:case"end":return n.stop()}}),C)}function H(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(F,"modules");case 2:return e=o.sent,o.next=5,(0,w.yJ)(S.lF(e));case 5:return o.next=7,(0,w.T1)(F,"settings");case 7:return t=o.sent,o.next=10,(0,w.yJ)(S.J8(t));case 10:return o.next=12,(0,w.T1)(F,"system");case 12:return n=o.sent,o.next=15,(0,w.yJ)(S.BA(n));case 15:return o.next=17,(0,w.T1)(F,"all");case 17:return r=o.sent,o.next=20,(0,w.yJ)(S.$Y(r));case 20:case"end":return o.stop()}}),M)}function W(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[L])){e.next=4;break}return e.next=4,(0,w.yJ)(S.Tr(n));case 4:case"end":return e.stop()}}),e)}))()}function B(e){var t=e.payload.activeMenuTab;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.yJ)((0,_.bM)(O()({},L,t)));case 2:case"end":return e.stop()}}),e)}))()}function V(e){var t,n,r,o,i;return b().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,w.Lt)(N);case 2:if(t=a.sent,n=t.settingsMenuTree,r=t.modulesMenuTree,o=t.systemMenuTree,i=t.completeMenuTree,e!==T.WV.MODULES){a.next=9;break}return a.abrupt("return",r);case 9:if(e!==T.WV.SETTINGS){a.next=11;break}return a.abrupt("return",n);case 11:if(e!==T.WV.SYSTEM){a.next=13;break}return a.abrupt("return",o);case 13:if(e!==T.WV.COMPLETE){a.next=15;break}return a.abrupt("return",i);case 15:return a.abrupt("return",null);case 16:case"end":return a.stop()}}),I)}function U(e){var t=e.payload.menuTab;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(V,t);case 2:if(n=e.sent,!((null==n?void 0:n.length)>0)){e.next=9;break}return e.next=7,(0,w.yJ)(S.YV(t));case 7:return e.next=9,(0,w.yJ)(S.Tr(t));case 9:case"end":return e.stop()}}),e)}))()}function Y(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(S.OZ,H),(0,w.sg)(500,S.cv,B),(0,w.p8)(_.CF,W),(0,w.p8)(S.KY,U)]);case 2:case"end":return e.stop()}}),R)}var z=b().mark(q);function q(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(Y)]);case 2:case"end":return e.stop()}}),z)}const $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,n=P[t.type];return n?n(e,t):e};function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=O()(O()(O()(O()({},_.PP,k.A.singleTransferReducer("serverSettings")),_.oB,k.A.singleTransferReducer("isLoading")),_.CF,k.A.singleTransferReducer("userPreferences")),_.lz,(function(e,t){var n=t.payload;return K(K({},e),{},{userPreferences:K(K({},e.userPreferences),n.preferences)})})),Q={isLoading:!0,serverSettings:{},userPreferences:{}};var X=s(58065),Z=s(79859),ee=s(76419),te=s(22056),ne=s.n(te);function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie,ae,ce,se,ue=function(e){return Object.entries(e).reduce((function(e,t){var n=ne()(t,2),r=n[0],o=n[1];return oe(oe({},e),{},O()({},r,function(e){switch(e){case"true":return!0;case"false":return!1;default:return e}}(o)))}),{})},le=s(74848),de=b().mark(ve),pe=b().mark(we),fe=b().mark(xe);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge="admin.theme";function ve(){var e,t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,w.yJ)(_.F6(!0));case 2:return i.next=4,(0,w.T1)(D.A.fetchServerSettings);case 4:return e=i.sent,i.next=7,(0,w.yJ)(_.Ve(e));case 7:return i.next=9,(0,w.T1)(D.A.fetchUserPreferences,"admin.*");case 9:return t=i.sent,i.next=12,(0,w.T1)(ue,t);case 12:return n=i.sent,i.next=15,(0,w.T1)(D.A.fetchUserPreferences,"admintree.*");case 15:return r=i.sent,i.next=18,(0,w.T1)(ue,r);case 18:return o=i.sent,i.next=21,(0,w.yJ)(_.A2(he(he({},o),n)));case 21:return i.next=23,(0,w.yJ)(_.F6(!1));case 23:case"end":return i.stop()}}),de)}function ye(e){var t=e.payload.preferences;return b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(D.A.savePreferences,t);case 2:case"end":return e.stop()}}),e)}))()}function be(e){var t=e.payload.userPreferences;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t[ge])){e.next=8;break}return e.next=4,(0,w.T1)(ee.A.addLongTerm,"admin","theme",n);case 4:return e.next=6,(0,w.yJ)(c.A.setThemeType(n));case 6:e.next=12;break;case 8:return e.next=10,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 10:return e.next=12,(0,w.yJ)(c.A.initThemeType());case 12:case"end":return e.stop()}}),e)}))()}function we(){var e,t,n;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,w.T1)(Z.Ix);case 2:return e=r.sent,t=function(){return e.put(!0)},n=function(){return e.put(!1)},r.next=7,(0,w.yJ)(h.A.confirm(ie||(ie=(0,le.jsx)(X.A,{id:"client.admin.menu.resetPreferences.title"})),ae||(ae=(0,le.jsx)(X.A,{id:"client.admin.menu.resetPreferences.question"})),ce||(ce=(0,le.jsx)(X.A,{id:"client.common.ok"})),se||(se=(0,le.jsx)(X.A,{id:"client.common.cancel"})),t,n));case 7:return r.next=9,(0,w.s)(e);case 9:if(!r.sent){r.next=19;break}return r.next=13,(0,w.T1)(D.A.resetAllPreferences);case 13:return r.next=15,(0,w.T1)(ee.A.removeLongTerm,"admin","theme");case 15:return r.next=17,(0,w.yJ)(c.A.initThemeType());case 17:return r.next=19,(0,w.yJ)(h.A.toaster({type:"success",title:"client.admin.menu.resetPreferences.success"}));case 19:case"end":return r.stop()}}),pe)}function xe(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(_.U3,ve),(0,w.p8)(_.lz,ye),(0,w.p8)(_.CF,be),(0,w.p8)(_.fE,we)]);case 2:case"end":return e.stop()}}),fe)}var Oe=b().mark(ke);function ke(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(xe)]);case 2:case"end":return e.stop()}}),Oe)}const Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,t=arguments.length>1?arguments[1]:void 0,n=J[t.type];return n?n(e,t):e};var Ee=s(27948),je=O()(O()(O()(O()(O()(O()(O()({},Ee.mW,k.A.singleTransferReducer("username")),Ee.XA,k.A.singleTransferReducer("currentBusinessUnit")),Ee.E_,k.A.singleTransferReducer("businessUnits")),Ee.tb,k.A.singleTransferReducer("ssoAvailable")),Ee.ZW,k.A.singleTransferReducer("pendingChanges")),Ee.tP,k.A.singleTransferReducer("hasOutlookAddInModule")),Ee.zI,k.A.singleTransferReducer("inWrongBusinessUnit")),Pe={username:"",currentBusinessUnit:{label:"",id:""},businessUnits:[],ssoAvailable:!1,pendingChanges:!1,hasOutlookAddInModule:!1,inWrongBusinessUnit:void 0};var Ae=s(18987),De=s(25204),Te=b().mark(Ce),_e=b().mark(Me);function Ce(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(D.A.fetchModules);case 2:if(e=n.sent,e.includes("nice.optional.sso")){n.next=6;break}return n.abrupt("return",!1);case 6:return n.next=8,(0,w.T1)(D.A.fetchEntityCount,"Openid_provider",{where:"active == true"});case 8:return t=n.sent,n.abrupt("return",t>0);case 10:case"end":return n.stop()}}),Te)}function Me(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0===(e=ee.A.getLongTerm("server","ssoAvailable"))){n.next=5;break}return n.abrupt("return",e);case 5:return n.next=7,(0,w.T1)(Ce);case 7:return t=n.sent,ee.A.addLongTerm("server","ssoAvailable",t),n.abrupt("return",t);case 10:case"end":return n.stop()}}),_e)}var Ie=s(27399),Re=s(88691),Ne=b().mark(Qe),Le=b().mark(Xe),Fe=b().mark(Ze),He=b().mark(et),We=b().mark(tt),Be=b().mark(rt),Ve=b().mark(it),Ue=b().mark(at),Ye=b().mark(ct),ze=b().mark(ut),qe=b().mark(lt),$e=b().mark(dt),Ge=function(e){return e.session},Ke=function(e){return e.input},Je=function(e){return e.app};function Qe(e){var t,n,r,o;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e/2*60*1e3,i.next=3,(0,w.T1)(m.A.doSessionRequest);case 3:return n=i.sent,r=n.success,o=n.adminAllowed,i.next=8,(0,w.yJ)(m.A.setLoggedIn(r));case 8:return i.next=10,(0,w.yJ)(m.A.setAdminAllowed(o));case 10:return i.next=12,(0,w.T1)(Xe,t);case 12:return i.next=14,(0,w.T1)(Qe,e);case 14:case"end":return i.stop()}}),Ne)}function Xe(e){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.cb)(e);case 2:case"end":return t.stop()}}),Le)}function Ze(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.T1)(m.A.doRequest,"logout",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),Fe)}function et(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.Lt)(Ke);case 2:e=n.sent,t=e.baseRoute,window.location.href=t||"/";case 5:case"end":return n.stop()}}),He)}function tt(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.Lt)(Je);case 2:return e=o.sent,t=e.textResourceModules,o.next=6,(0,w.T1)(Re.A.getUserLocale);case 6:return n=o.sent,o.next=9,(0,w.T1)(Re.A.getChangeLocaleAction,t,n);case 9:return r=o.sent,o.next=12,(0,w.yJ)(r);case 12:case"end":return o.stop()}}),We)}function nt(e){var t=e.payload;return b().mark((function e(){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sessionTimeout,e.next=3,(0,w.T1)(tt);case 3:return e.next=5,(0,w.yJ)(m.A.setAdminAllowed(void 0));case 5:return e.next=7,(0,w.yJ)(m.A.setLoggedIn(!0));case 7:return e.next=9,(0,w.yJ)(h.A.connectSocket());case 9:return e.next=11,(0,w.T1)(Qe,n);case 11:case"end":return e.stop()}}),e)}))()}function rt(e){var t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(Z.Ix);case 2:return t=n.sent,n.next=5,(0,w.yJ)(h.A.modal("navigation-pending-changes","client.admin.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,le.jsx)(Ie.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 5:return n.next=7,(0,w.s)(t);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),Be)}function ot(e){var t=e.payload;return b().mark((function e(){var n,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=3,(0,w.T1)(rt,n);case 3:if("yes"!==e.sent){e.next=9;break}return e.next=7,(0,w.T1)(r,!0);case 7:e.next=11;break;case 9:return e.next=11,(0,w.T1)(r,!1);case 11:case"end":return e.stop()}}),e)}))()}function it(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.Lt)(Ge);case 2:if(e=t.sent,!e.pendingChanges){t.next=10;break}return t.next=7,(0,w.T1)(rt,"client.admin.confirmTouchedFormLogout");case 7:if("yes"===t.sent){t.next=10;break}return t.abrupt("return");case 10:return t.next=12,(0,w.T1)(Ae.A.remove,De.v);case 12:return t.next=14,(0,w.T1)(Ze);case 14:return t.next=16,(0,w.yJ)(m.A.setLoggedIn(!1));case 16:return t.next=18,(0,w.yJ)(h.A.closeSocket());case 18:return t.next=20,(0,w.T1)(et);case 20:case"end":return t.stop()}}),Ve)}function at(){var e,t,n,r;return b().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,w.T1)(D.A.fetchPrincipal);case 2:return e=o.sent,t=e.username,n=e.currentBusinessUnit,r=e.inWrongBusinessUnit,o.next=8,(0,w.yJ)(Ee.P(t));case 8:return o.next=10,(0,w.yJ)(Ee.Ml(n));case 10:return o.next=12,(0,w.yJ)(Ee.xI(r));case 12:case"end":return o.stop()}}),Ue)}function ct(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(D.A.requestSaga,"principals/businessunits");case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.Qp(e.body.data));case 5:case"end":return t.stop()}}),Ye)}function st(e){var t=e.payload.businessUnitId;return b().mark((function e(){var n,r,o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Lt)(Ge);case 2:return n=e.sent,r=n.username,o="principals/".concat(r,"/businessunit"),e.next=7,(0,w.T1)(D.A.requestSaga,o,{method:"PUT",body:{businessUnit:t}});case 7:return e.next=9,(0,w.T1)(c.A.reinitialiseCache);case 9:location.reload();case 10:case"end":return e.stop()}}),e)}))()}function ut(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.T1)(Me);case 2:return e=t.sent,t.next=5,(0,w.yJ)(Ee.d4(e));case 5:case"end":return t.stop()}}),ze)}function lt(){var e,t;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,w.T1)(D.A.fetchModules);case 2:return e=n.sent,t=e.includes("nice.optional.officeintegration"),n.next=6,(0,w.yJ)(Ee.Wm(t));case 6:case"end":return n.stop()}}),qe)}function dt(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.p8)(Ee.hO,nt),(0,w.p8)(Ee.tZ,it),(0,w.p8)(Ee.AZ,at),(0,w.p8)(Ee.Cm,ct),(0,w.p8)(Ee.zu,st),(0,w.p8)(Ee.Ff,ut),(0,w.p8)(Ee.sR,ot),(0,w.p8)(Ee.$H,lt)]);case 2:case"end":return e.stop()}}),$e)}var pt=b().mark(ft);function ft(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.Q7)([(0,w.Zy)(dt)]);case 2:case"end":return e.stop()}}),pt)}const mt={session:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pe,t=arguments.length>1?arguments[1]:void 0,n=je[t.type];return n?n(e,t):e},navigation:$,preferences:Se};var ht=[ft,q,ke],gt=s(35693);const vt=[{ctrl:!0,alt:!0,code:"KeyM",actions:[(0,S.ad)("modules")],global:!0},{ctrl:!0,alt:!0,code:"KeyN",actions:[(0,S.ad)("settings")],global:!0},{ctrl:!0,alt:!0,code:"KeyO",actions:[(0,S.ad)("complete")],global:!0},{ctrl:!0,alt:!0,code:"KeyK",actions:[(0,S.ad)("system")],global:!0}];var yt,bt,wt="admin",xt=r().lazy((function(){return Promise.all([s.e(927),s.e(601),s.e(172),s.e(419),s.e(136),s.e(942)]).then(s.bind(s,37942))})),Ot=function(){return yt||(yt=(0,le.jsx)(le.Fragment,{children:(0,le.jsx)(n.Suspense,{fallback:"",children:(0,le.jsx)(xt,{})})}))},kt=function(e,t,n,o){window.reactRegistry&&window.reactRegistry.setReact&&window.reactRegistry.setReact(r(),i());var s=bt||(bt=(0,le.jsx)(Ot,{})),u=c.A.createStore(mt,ht,t,wt);return p.A.addToStore(u,(function(){return{}})),a.A.addToStore(u),l.A.addToStore(u,(function(){return{appComponent:gt.A,formApp:v.A}})),l.A.dynamicActionsAddToStore(u),d.A.addToStore(u,!0,["console","remote","notification"]),h.A.addToStore(u,!0,{withNotificationCenter:!0}),m.A.addToStore(u),f.A.addToStore(u,vt),g.A.addToStore(u),c.A.createApp(wt,s,u,{input:t,events:n,actions:[],publicPath:o,textResourceModules:["component","common","actions","login","sso-login","entity-browser","entity-list","entity-detail","dashboard","docs-browser","entities",wt]})};c.A.registerAppInRegistry(wt,kt);var St=function(e){return c.A.useApp({initApp:kt,props:e,packageName:wt}).component};St.propTypes={baseRoute:t().string,memoryHistory:t().bool};const Et=St})(),u})()));
|