tocco-devcon 3.13.47 → 3.13.48
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(this.webpackChunktocco_devcon=this.webpackChunktocco_devcon||[]).push([[910],{67910:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Un});var r,i,o=t(76744),a=t(95335),l=t(56375),s=t(71468),c=t(82558),d=t(4883),u=t(74328),g=t(25313),p=t(62764),f=t(72189),h=t.n(f),x=t(51510),y=t(40443),m=x.Ay.input.withConfig({displayName:"StyledInput"})(r||(r=h()(["\n && {\n ","\n }\n"])),y.jx),v=x.Ay.div.withConfig({displayName:"StyledInputWrapper"})(i||(i=h()(["\n && {\n ","\n }\n"])),y.oX),j=t(74848);const b=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,i=e.setFragmentSelected;return(0,j.jsx)("div",{children:n.map((function(e){return(0,j.jsxs)("div",{children:[(0,j.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){i(n,e.target.checked)}),disabled:r}),(0,j.jsx)(l.Ay.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const A=function(e){var n=e.version,t=e.modules,r=e.selectedModules,i=e.fragments,o=e.selectedFragments,a=e.ignoreErrors,l=e.running,s=e.disabled,c=e.executeDbRefactoring,f=e.loadModules,h=e.loadFragments,x=e.setSelectedModules,y=e.setFragmentSelected,A=e.setVersion,S=e.setIgnoreErrors;(0,d.useEffect)((function(){0===t.length&&f(),0===i.length&&h()}),[]);return(0,j.jsxs)("form",{onSubmit:function(e){e.preventDefault(),c()},children:[(0,j.jsx)(u.A,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,j.jsx)(g.A,{type:"multi-select",options:{options:t},events:{onChange:x},value:r,readOnly:s})}),(0,j.jsx)(u.A,{label:"Fragments",fixLabel:!0,children:(0,j.jsx)(b,{fragments:i,selectedFragments:o,disabled:s,setFragmentSelected:y})}),(0,j.jsx)(u.A,{label:"Version",hasValue:n.length>0,children:(0,j.jsx)(v,{children:(0,j.jsx)(m,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");A(n)},disabled:s})})}),(0,j.jsx)(u.A,{label:"Ignore errors",fixLabel:!0,children:(0,j.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){S(e.target.checked)},disabled:s})}),(0,j.jsx)(p.A,{type:"submit",label:"Execute",look:"raised",pending:l,disabled:s})]})};var S={loadModules:c.o_,loadFragments:c.iN,setSelectedModules:c.rw,setFragmentSelected:c.cM,setVersion:c.vJ,setIgnoreErrors:c.a9,executeDbRefactoring:c.q0};const C=(0,s.Ng)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{version:t.version,modules:t.modules,selectedModules:t.selectedModules,fragments:t.fragments,selectedFragments:t.selectedFragments,ignoreErrors:t.ignoreErrors,running:t.running,disabled:t.running||r.running}}),S)(A);const w=function(e){var n=e.language,t=e.running,r=e.disabled,i=e.executeLanguageUpgrade,o=e.setLanguage;return(0,j.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i()},children:[(0,j.jsx)(u.A,{label:"Language",hasValue:n.length>0,children:(0,j.jsx)(v,{children:(0,j.jsx)(m,{value:n,onChange:function(e){o(e.target.value)},disabled:r})})}),(0,j.jsx)(p.A,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var k={setLanguage:c.xC,executeLanguageUpgrade:c.EG};const O=(0,s.Ng)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{language:r.language,running:r.running,disabled:r.running||t.running}}),k)(w);var N;const L=function(){return N||(N=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"Database Refactoring"}),(0,j.jsx)(C,{}),(0,j.jsx)(l.Ay.H1,{children:"Language Upgrade"}),(0,j.jsx)(O,{})]}))};var E,P,D,R,M,F,q,T=t(22056),V=t.n(T),I=t(85431),H={ERROR:"#a00"},z=x.Ay.div.withConfig({displayName:"StyledLogTable"})(E||(E=h()(["\n display: grid;\n gap: 1px;\n"]))),G=x.Ay.div.withConfig({displayName:"StyledLogEntry"})(P||(P=h()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(H[e.level]||"#ddd",";")})),U=x.Ay.span.withConfig({displayName:"StyledMessage"})(D||(D=h()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,I.A)()),B=x.Ay.span.withConfig({displayName:"StyledTime"})(R||(R=h()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,I.A)()),Q=x.Ay.div.withConfig({displayName:"StyledExceptionDetails"})(M||(M=h()(["\n margin-top: 1em;\n"]))),_=x.Ay.div.withConfig({displayName:"StyledDetailMessage"})(F||(F=h()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,I.A)()),W=x.Ay.div.withConfig({displayName:"StyledStackTrace"})(q||(q=h()(["\n && {\n ","\n }\n"])),(0,I.A)()),J=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const K=function(e){var n=e.exception;return(0,j.jsxs)(Q,{children:[(0,j.jsx)(_,{children:n.detailMessage}),(0,j.jsx)(W,{children:n.stackTrace.map((function(e,n){return(0,j.jsx)("div",{children:J(e)},n)}))})]})};const X=function(e){var n=e.entry,t=(0,d.useState)(!1),r=V()(t,2),i=r[0],o=r[1];return(0,j.jsxs)(G,{level:n.level,children:[(0,j.jsx)(U,{onClick:function(){n.exception&&o(!i)},expandable:!!n.exception,children:n.message}),(0,j.jsx)(B,{children:new Date(n.timestamp).toLocaleString()}),i&&(0,j.jsx)(K,{exception:n.exception})]})};var Z;const $=function(e){var n=e.entries;return(0,j.jsx)(z,{children:n.length>0?n.map((function(e){return(0,j.jsx)(X,{entry:e},e.key)})):Z||(Z=(0,j.jsx)(l.Ay.Span,{children:"No entries so far."}))})};const Y=(0,s.Ng)((function(e){return{entries:e.log.entries}}),{})($);var ee;const ne=function(){return ee||(ee=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"Log"}),(0,j.jsx)(Y,{})]}))};var te,re,ie=t(32724),oe=x.Ay.div.withConfig({displayName:"StyledCheckEventGroup"})(te||(te=h()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),ae=x.Ay.div.withConfig({displayName:"StyledGroupHeading"})(re||(re=h()(["\n margin-bottom: 1em;\n"])));function le(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return se(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?se(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function se(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}const ce=function(e){var n=e.type,t=e.events,r=e.selection,i=e.setSelected,o=function(e,n){var t,r=le(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!n.has(i.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,j.jsxs)(oe,{children:[(0,j.jsxs)(ae,{children:[(0,j.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:o,onChange:function(e){i(t.map((function(e){return e.id})),e.target.checked)}}),(0,j.jsx)(l.Ay.Label,{for:"checkbox-"+n,children:(0,j.jsxs)(l.Ay.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,j.jsxs)("div",{children:[(0,j.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){i([n],e.target.checked)})}),(0,j.jsx)(l.Ay.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const de=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,i=e.generateSql,o=e.generateChangelog;return(0,j.jsxs)("div",{children:[Object.keys(n).length>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(p.A,{look:"raised",onClick:i,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,j.jsxs)(p.A,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,j.jsx)("div",{children:Object.keys(n).sort((function(e,n){return e.localeCompare(n)})).map((function(e){return(0,j.jsx)(ce,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var ue={setSelected:ie.QQ,generateSql:ie.Ay,generateChangelog:ie.Ki};const ge=(0,s.Ng)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),ue)(de);var pe,fe,he,xe=x.Ay.div.withConfig({displayName:"StyledProgressBar"})(pe||(pe=h()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),ye=x.Ay.div.withConfig({displayName:"StyledInnerProgress"})(fe||(fe=h()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),me=x.Ay.div.withConfig({displayName:"StyledProgressText"})(he||(he=h()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,I.A)()),ve=function(e){return e.result?e.result:e.running?e.total?"".concat(je(e),"%"):"Preparing...":"Not started"},je=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const be=function(e){var n=e.state;return(0,j.jsxs)(xe,{children:[(0,j.jsx)(ye,{percentage:je(n)}),(0,j.jsx)(me,{children:ve(n)})]})};const Ae=function(e){var n=e.state,t=e.startValidation;return(0,j.jsxs)("div",{children:[(0,j.jsx)(p.A,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,j.jsx)(be,{state:n})]})};var Se={startValidation:ie.es};const Ce=(0,s.Ng)((function(e){return{state:e.modelValidation.state}}),Se)(Ae);var we;const ke=function(){return we||(we=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"Model Validation"}),(0,j.jsx)(Ce,{}),(0,j.jsx)(ge,{})]}))};var Oe=t(42938),Ne=t(26396),Le=t.n(Ne),Ee=t(90179),Pe=t.n(Ee),De=t(23228),Re=t(64116),Me=t(92705),Fe=t(58646),qe=t(6463),Te=t(16172),Ve=t(30336);function Ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function He(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(t),!0).forEach((function(n){Le()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ze="yyyy-MM-dd",Ge=function(e){return(0,Me.u)(e,ze)?(0,Fe.qg)(e,ze,new Date):(0,Me.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Me.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,qe.o)(new Date(e)):null};const Ue={datetime:{type:"date",toRange:function(e){return{from:e?Ge(e).toISOString():null,to:e?(0,Te.f)(Ge(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,Ve.GP)(new Date(e.from),ze):null!=e&&e.to?(0,Ve.GP)(new Date(e.to),ze):null},getToOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var Be,Qe,_e,We,Je,Ke,Xe=t(62885),Ze=t(26166),$e=t(57488),Ye=x.Ay.div.withConfig({displayName:"StyledIconWrapper"})(Be||(Be=h()(["\n font-size: ",";\n color: ",";\n"])),Ze.A.font(-2.7),$e.t7.color("text")),en=x.Ay.div.withConfig({displayName:"StyledRange"})(Qe||(Qe=h()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),nn=x.Ay.div.withConfig({displayName:"StyledInput"})(_e||(_e=h()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n ","\n"])),(function(e){return"row"===e.direction&&(0,x.AH)(We||(We=h()(["\n flex-direction: row;\n gap: ",";\n align-items: center;\n\n * {\n font-size: ",";\n }\n "])),Ze.A.space(-.5),Ze.A.font(-.52))})),tn=(0,x.Ay)(Xe.A).withConfig({displayName:"StyledBall"})(Je||(Je=h()(["\n align-self: start;\n position: relative;\n top: ","px;\n"])),(function(e){return e.isAdmin?"2.5":"8"}));function rn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function on(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rn(Object(t),!0).forEach((function(n){Le()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const an=function(e){var n=e.value,t=e.events,r=e.readOnly,i=e.type,o=e.options,a=e.fromText,l=e.toText,s=Ue[i],c=(null==n?void 0:n.isRangeValue)||!1,u=(0,d.useRef)(n);u.current=n;var p,f,h=(0,d.useMemo)((function(){return on(on({},t),{},{onChange:t.onChange})}),[t]),x={onChange:function(e){t.onChange(on(on({},u.current),{},{to:e}))}},y={onChange:function(e){t.onChange(on(on({},u.current),{},{from:e}))}},m=(null==s?void 0:s.type)||i,v=De.A.isInAdminEmbedded(),b=De.A.isInWidgetEmbedded(),A=(0,j.jsx)(g.A,on(on({type:m},Pe()(e,["type"])),{},{events:h})),S=(0,j.jsxs)(nn,{direction:b?"row":"column",children:[(0,j.jsx)(g.A,on(on({},e),{},{options:(p=o,f=null==n?void 0:n.to,null!=s&&s.getFromOptions?s.getFromOptions(p,f):p),value:(null==n?void 0:n.from)||null,events:y,placeholder:a})),Ke||(Ke=(0,j.jsx)(Ye,{children:(0,j.jsx)(Re.A,{icon:"horizontal-rule"})})),(0,j.jsx)(g.A,on(on({},e),{},{options:function(e,n){return null!=s&&s.getToOptions?s.getToOptions(e,n):e}(o,null==n?void 0:n.from),value:(null==n?void 0:n.to)||null,events:x,placeholder:l}))]});return(0,j.jsxs)(en,{children:[c?S:A,(0,j.jsx)(tn,{isAdmin:v,disabled:r,icon:c?"square-minus":"square-plus",onClick:function(){var e=c?function(e){return null!=s&&s.fromRange?s.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(n):function(e){return null!=s&&s.toRange?s.toRange(e):{from:e,to:e,isRangeValue:!0}}(n);t.onChange(e)}})]})};const ln=function(e){var n=e.active,t=e.elapsed,r=e.setActive,i=e.setElapsed;return(0,j.jsxs)("div",{children:[(0,j.jsx)(u.A,{label:"Active",fixLabel:!0,children:(0,j.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,j.jsx)(u.A,{label:"Elapsed",hasValue:!!t,children:(0,j.jsx)(an,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){i(e)}}})})]})};var sn={setActive:Oe.Fm,setElapsed:Oe.dy};const cn=(0,s.Ng)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),sn)(ln);var dn,un,gn,pn,fn,hn,xn,yn={ERROR:"#a00"},mn=x.Ay.div.withConfig({displayName:"StyledLogTable"})(dn||(dn=h()(["\n display: grid;\n gap: 1px;\n"]))),vn=x.Ay.div.withConfig({displayName:"StyledLogEntry"})(un||(un=h()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(yn[e.level]||"#ddd",";")})),jn=x.Ay.span.withConfig({displayName:"StyledStatementHeader"})(gn||(gn=h()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,I.A)()),bn=x.Ay.span.withConfig({displayName:"StyledStatement"})(pn||(pn=h()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,I.A)()),An=x.Ay.span.withConfig({displayName:"StyledTime"})(fn||(fn=h()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,I.A)()),Sn=x.Ay.span.withConfig({displayName:"StyledElapsedContainer"})(hn||(hn=h()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,I.A)()),Cn=x.Ay.span.withConfig({displayName:"StyledElapsed"})(xn||(xn=h()(["\n background-color: ",";\n border-radius: 5px;\n padding: 0.5em;\n"])),(function(e){return(n=e.elapsed)>=1e3?"#f00":n>=500?"#ff8c00":n>=100?"#ff0":"#dedede";var n}));const wn=function(e){var n=e.entry,t=(0,d.useState)(!1),r=V()(t,2),i=r[0],o=r[1],a=n.sql.length>100,l=a?n.sql.substr(0,100)+"...":n.sql;return(0,j.jsxs)(vn,{children:[(0,j.jsx)(jn,{expandable:a,onClick:function(){a&&o(!i)},children:l}),i&&(0,j.jsx)(bn,{children:n.sql}),(0,j.jsx)(An,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,j.jsx)(Sn,{children:(0,j.jsxs)(Cn,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var kn;const On=function(e){var n=function(e,n){return n?e.filter((function(e){return!0===n.isRangeValue?(null===n.from||e.elapsed>=n.from)&&(null===n.to||e.elapsed<=n.to):e.elapsed>=n})):e}(e.entries,e.elapsed);return(0,j.jsx)(mn,{children:n.length>0?n.map((function(e){return(0,j.jsx)(wn,{entry:e},e.key)})):kn||(kn=(0,j.jsx)(l.Ay.Span,{children:"No entries so far."}))})};const Nn=(0,s.Ng)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(On);var Ln;const En=function(){return Ln||(Ln=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"SQL Log"}),(0,j.jsx)(cn,{}),(0,j.jsx)(Nn,{})]}))};var Pn,Dn,Rn=t(47616),Mn=(0,x.AH)(Pn||(Pn=h()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,I.A)(),$e.t7.color("secondary"),$e.t7.color("text"),$e.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?$e.t7.color("text"):$e.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));const Fn=(0,x.Ay)(o.N_)(Dn||(Dn=h()(["\n ","\n"])),Mn);var qn,Tn,Vn,In,Hn=x.Ay.div.withConfig({displayName:"StyledDevCon"})(qn||(qn=h()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),Rn.A.color("paper"),Ze.A.space(0)),zn=x.Ay.div.withConfig({displayName:"StyledNavigation"})(Tn||(Tn=h()(["\n display: flex;\n"]))),Gn=(0,x.Ay)(Fn).withConfig({displayName:"StyledRouterLink"})(Vn||(Vn=h()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Un=function(){return In||(In=(0,j.jsxs)(Hn,{children:[(0,j.jsx)(a.A.Notifications,{}),(0,j.jsx)(l.Ay.Span,{children:"Tocco Developer Console"}),(0,j.jsxs)(zn,{children:[(0,j.jsx)(Gn,{to:"log",children:"Log"}),(0,j.jsx)(Gn,{to:"modelvalidation",children:"Model Validation"}),(0,j.jsx)(Gn,{to:"dbrefactoring",children:"DB Refactoring"}),(0,j.jsx)(Gn,{to:"sqllog",children:"SQL Log"})]}),(0,j.jsxs)(o.BV,{children:[(0,j.jsx)(o.qh,{path:"/",exact:!0,element:(0,j.jsx)(o.C5,{to:"log",replace:!0})}),(0,j.jsx)(o.qh,{path:"log",exact:!0,element:(0,j.jsx)(ne,{})}),(0,j.jsx)(o.qh,{path:"dbrefactoring",exact:!0,element:(0,j.jsx)(L,{})}),(0,j.jsx)(o.qh,{path:"modelvalidation",exact:!0,element:(0,j.jsx)(ke,{})}),(0,j.jsx)(o.qh,{path:"sqllog",exact:!0,element:(0,j.jsx)(En,{})})]})]}))}}}]);
|
|
1
|
+
"use strict";(this.webpackChunktocco_devcon=this.webpackChunktocco_devcon||[]).push([[910],{67910:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Un});var r,i,o=t(76744),a=t(95335),l=t(56375),s=t(71468),c=t(82558),d=t(4883),u=t(74328),g=t(25313),p=t(62764),f=t(72189),h=t.n(f),x=t(51510),y=t(40443),m=x.Ay.input.withConfig({displayName:"StyledInput"})(r||(r=h()(["\n && {\n ","\n }\n"])),y.jx),v=x.Ay.div.withConfig({displayName:"StyledInputWrapper"})(i||(i=h()(["\n && {\n ","\n }\n"])),y.oX),j=t(74848);const b=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,i=e.setFragmentSelected;return(0,j.jsx)("div",{children:n.map((function(e){return(0,j.jsxs)("div",{children:[(0,j.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){i(n,e.target.checked)}),disabled:r}),(0,j.jsx)(l.Ay.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const A=function(e){var n=e.version,t=e.modules,r=e.selectedModules,i=e.fragments,o=e.selectedFragments,a=e.ignoreErrors,l=e.running,s=e.disabled,c=e.executeDbRefactoring,f=e.loadModules,h=e.loadFragments,x=e.setSelectedModules,y=e.setFragmentSelected,A=e.setVersion,S=e.setIgnoreErrors;(0,d.useEffect)((function(){0===t.length&&f(),0===i.length&&h()}),[]);return(0,j.jsxs)("form",{onSubmit:function(e){e.preventDefault(),c()},children:[(0,j.jsx)(u.A,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,j.jsx)(g.A,{type:"multi-select",options:{options:t},events:{onChange:x},value:r,readOnly:s})}),(0,j.jsx)(u.A,{label:"Fragments",fixLabel:!0,children:(0,j.jsx)(b,{fragments:i,selectedFragments:o,disabled:s,setFragmentSelected:y})}),(0,j.jsx)(u.A,{label:"Version",hasValue:n.length>0,children:(0,j.jsx)(v,{children:(0,j.jsx)(m,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");A(n)},disabled:s})})}),(0,j.jsx)(u.A,{label:"Ignore errors",fixLabel:!0,children:(0,j.jsx)("input",{type:"checkbox",checked:a,onChange:function(e){S(e.target.checked)},disabled:s})}),(0,j.jsx)(p.A,{type:"submit",label:"Execute",look:"raised",pending:l,disabled:s})]})};var S={loadModules:c.o_,loadFragments:c.iN,setSelectedModules:c.rw,setFragmentSelected:c.cM,setVersion:c.vJ,setIgnoreErrors:c.a9,executeDbRefactoring:c.q0};const C=(0,s.Ng)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{version:t.version,modules:t.modules,selectedModules:t.selectedModules,fragments:t.fragments,selectedFragments:t.selectedFragments,ignoreErrors:t.ignoreErrors,running:t.running,disabled:t.running||r.running}}),S)(A);const w=function(e){var n=e.language,t=e.running,r=e.disabled,i=e.executeLanguageUpgrade,o=e.setLanguage;return(0,j.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i()},children:[(0,j.jsx)(u.A,{label:"Language",hasValue:n.length>0,children:(0,j.jsx)(v,{children:(0,j.jsx)(m,{value:n,onChange:function(e){o(e.target.value)},disabled:r})})}),(0,j.jsx)(p.A,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var k={setLanguage:c.xC,executeLanguageUpgrade:c.EG};const O=(0,s.Ng)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{language:r.language,running:r.running,disabled:r.running||t.running}}),k)(w);var N;const L=function(){return N||(N=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"Database Refactoring"}),(0,j.jsx)(C,{}),(0,j.jsx)(l.Ay.H1,{children:"Language Upgrade"}),(0,j.jsx)(O,{})]}))};var E,P,D,R,M,F,q,T=t(22056),V=t.n(T),I=t(85431),H={ERROR:"#a00"},z=x.Ay.div.withConfig({displayName:"StyledLogTable"})(E||(E=h()(["\n display: grid;\n gap: 1px;\n"]))),G=x.Ay.div.withConfig({displayName:"StyledLogEntry"})(P||(P=h()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(H[e.level]||"#ddd",";")})),U=x.Ay.span.withConfig({displayName:"StyledMessage"})(D||(D=h()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,I.A)()),B=x.Ay.span.withConfig({displayName:"StyledTime"})(R||(R=h()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,I.A)()),Q=x.Ay.div.withConfig({displayName:"StyledExceptionDetails"})(M||(M=h()(["\n margin-top: 1em;\n"]))),_=x.Ay.div.withConfig({displayName:"StyledDetailMessage"})(F||(F=h()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,I.A)()),W=x.Ay.div.withConfig({displayName:"StyledStackTrace"})(q||(q=h()(["\n && {\n ","\n }\n"])),(0,I.A)()),J=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const K=function(e){var n=e.exception;return(0,j.jsxs)(Q,{children:[(0,j.jsx)(_,{children:n.detailMessage}),(0,j.jsx)(W,{children:n.stackTrace.map((function(e,n){return(0,j.jsx)("div",{children:J(e)},n)}))})]})};const X=function(e){var n=e.entry,t=(0,d.useState)(!1),r=V()(t,2),i=r[0],o=r[1];return(0,j.jsxs)(G,{level:n.level,children:[(0,j.jsx)(U,{onClick:function(){n.exception&&o(!i)},expandable:!!n.exception,children:n.message}),(0,j.jsx)(B,{children:new Date(n.timestamp).toLocaleString()}),i&&(0,j.jsx)(K,{exception:n.exception})]})};var Z;const $=function(e){var n=e.entries;return(0,j.jsx)(z,{children:n.length>0?n.map((function(e){return(0,j.jsx)(X,{entry:e},e.key)})):Z||(Z=(0,j.jsx)(l.Ay.Span,{children:"No entries so far."}))})};const Y=(0,s.Ng)((function(e){return{entries:e.log.entries}}),{})($);var ee;const ne=function(){return ee||(ee=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"Log"}),(0,j.jsx)(Y,{})]}))};var te,re,ie=t(32724),oe=x.Ay.div.withConfig({displayName:"StyledCheckEventGroup"})(te||(te=h()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),ae=x.Ay.div.withConfig({displayName:"StyledGroupHeading"})(re||(re=h()(["\n margin-bottom: 1em;\n"])));function le(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return se(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?se(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function se(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}const ce=function(e){var n=e.type,t=e.events,r=e.selection,i=e.setSelected,o=function(e,n){var t,r=le(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!n.has(i.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,j.jsxs)(oe,{children:[(0,j.jsxs)(ae,{children:[(0,j.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:o,onChange:function(e){i(t.map((function(e){return e.id})),e.target.checked)}}),(0,j.jsx)(l.Ay.Label,{for:"checkbox-"+n,children:(0,j.jsxs)(l.Ay.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,j.jsxs)("div",{children:[(0,j.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){i([n],e.target.checked)})}),(0,j.jsx)(l.Ay.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const de=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,i=e.generateSql,o=e.generateChangelog;return(0,j.jsxs)("div",{children:[Object.keys(n).length>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(p.A,{look:"raised",onClick:i,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,j.jsxs)(p.A,{look:"raised",onClick:o,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,j.jsx)("div",{children:Object.keys(n).sort((function(e,n){return e.localeCompare(n)})).map((function(e){return(0,j.jsx)(ce,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var ue={setSelected:ie.QQ,generateSql:ie.Ay,generateChangelog:ie.Ki};const ge=(0,s.Ng)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),ue)(de);var pe,fe,he,xe=x.Ay.div.withConfig({displayName:"StyledProgressBar"})(pe||(pe=h()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),ye=x.Ay.div.withConfig({displayName:"StyledInnerProgress"})(fe||(fe=h()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),me=x.Ay.div.withConfig({displayName:"StyledProgressText"})(he||(he=h()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,I.A)()),ve=function(e){return e.result?e.result:e.running?e.total?"".concat(je(e),"%"):"Preparing...":"Not started"},je=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const be=function(e){var n=e.state;return(0,j.jsxs)(xe,{children:[(0,j.jsx)(ye,{percentage:je(n)}),(0,j.jsx)(me,{children:ve(n)})]})};const Ae=function(e){var n=e.state,t=e.startValidation;return(0,j.jsxs)("div",{children:[(0,j.jsx)(p.A,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,j.jsx)(be,{state:n})]})};var Se={startValidation:ie.es};const Ce=(0,s.Ng)((function(e){return{state:e.modelValidation.state}}),Se)(Ae);var we;const ke=function(){return we||(we=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"Model Validation"}),(0,j.jsx)(Ce,{}),(0,j.jsx)(ge,{})]}))};var Oe=t(42938),Ne=t(26396),Le=t.n(Ne),Ee=t(90179),Pe=t.n(Ee),De=t(23228),Re=t(64116),Me=t(92705),Fe=t(58646),qe=t(6463),Te=t(16172),Ve=t(30336);function Ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function He(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(t),!0).forEach((function(n){Le()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ze="yyyy-MM-dd",Ge=function(e){return(0,Me.u)(e,ze)?(0,Fe.qg)(e,ze,new Date):(0,Me.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,Me.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,qe.o)(new Date(e)):null};const Ue={datetime:{type:"date",toRange:function(e){return{from:e?Ge(e).toISOString():null,to:e?(0,Te.f)(Ge(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,Ve.GP)(new Date(e.from),ze):null!=e&&e.to?(0,Ve.GP)(new Date(e.to),ze):null},getToOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({maxDate:n},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({minDate:n},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,n){return He(He({},e),{},{datePickerOptions:He({maxDate:n},null==e?void 0:e.datePickerOptions)})}}};var Be,Qe,_e,We,Je,Ke,Xe=t(62885),Ze=t(26166),$e=t(57488),Ye=x.Ay.div.withConfig({displayName:"StyledIconWrapper"})(Be||(Be=h()(["\n font-size: ",";\n color: ",";\n"])),Ze.A.font(-2.7),$e.t7.color("text")),en=x.Ay.div.withConfig({displayName:"StyledRange"})(Qe||(Qe=h()(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),nn=x.Ay.div.withConfig({displayName:"StyledInput"})(_e||(_e=h()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n ","\n"])),(function(e){return"row"===e.direction&&(0,x.AH)(We||(We=h()(["\n flex-direction: row;\n gap: ",";\n align-items: center;\n\n * {\n font-size: ",";\n }\n "])),Ze.A.space(-.5),Ze.A.font(-.52))})),tn=(0,x.Ay)(Xe.A).withConfig({displayName:"StyledBall"})(Je||(Je=h()(["\n align-self: start;\n position: relative;\n top: ","px;\n"])),(function(e){return e.isAdmin?"2.5":"8"}));function rn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function on(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rn(Object(t),!0).forEach((function(n){Le()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const an=function(e){var n=e.value,t=e.events,r=e.readOnly,i=e.type,o=e.options,a=e.fromText,l=e.toText,s=Ue[i],c=(null==n?void 0:n.isRangeValue)||!1,u=(0,d.useRef)(n);u.current=n;var p,f,h=(0,d.useMemo)((function(){return on(on({},t),{},{onChange:t.onChange})}),[t]),x={onChange:function(e){t.onChange(on(on({},u.current),{},{to:e}))}},y={onChange:function(e){t.onChange(on(on({},u.current),{},{from:e}))}},m=(null==s?void 0:s.type)||i,v=De.A.isInAdminEmbedded(),b=De.A.isInWidgetEmbedded(),A=(0,j.jsx)(g.A,on(on({type:m},Pe()(e,["type"])),{},{events:h})),S=(0,j.jsxs)(nn,{direction:b?"row":"column",children:[(0,j.jsx)(g.A,on(on({},e),{},{options:(p=o,f=null==n?void 0:n.to,null!=s&&s.getFromOptions?s.getFromOptions(p,f):p),value:(null==n?void 0:n.from)||null,events:y,placeholder:a})),Ke||(Ke=(0,j.jsx)(Ye,{children:(0,j.jsx)(Re.A,{icon:"horizontal-rule"})})),(0,j.jsx)(g.A,on(on({},e),{},{options:function(e,n){return null!=s&&s.getToOptions?s.getToOptions(e,n):e}(o,null==n?void 0:n.from),value:(null==n?void 0:n.to)||null,events:x,placeholder:l}))]});return(0,j.jsxs)(en,{children:[c?S:A,(0,j.jsx)(tn,{isAdmin:v,disabled:r,icon:c?"square-minus":"square-plus",onClick:function(){var e=c?function(e){return null!=s&&s.fromRange?s.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(n):function(e){return null!=s&&s.toRange?s.toRange(e):{from:e,to:e,isRangeValue:!0}}(n);t.onChange(e)}})]})};const ln=function(e){var n=e.active,t=e.elapsed,r=e.setActive,i=e.setElapsed;return(0,j.jsxs)("div",{children:[(0,j.jsx)(u.A,{label:"Active",fixLabel:!0,children:(0,j.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,j.jsx)(u.A,{label:"Elapsed",hasValue:!!t,children:(0,j.jsx)(an,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){i(e)}}})})]})};var sn={setActive:Oe.Fm,setElapsed:Oe.dy};const cn=(0,s.Ng)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),sn)(ln);var dn,un,gn,pn,fn,hn,xn,yn={ERROR:"#a00"},mn=x.Ay.div.withConfig({displayName:"StyledLogTable"})(dn||(dn=h()(["\n display: grid;\n gap: 1px;\n"]))),vn=x.Ay.div.withConfig({displayName:"StyledLogEntry"})(un||(un=h()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(yn[e.level]||"#ddd",";")})),jn=x.Ay.span.withConfig({displayName:"StyledStatementHeader"})(gn||(gn=h()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,I.A)()),bn=x.Ay.span.withConfig({displayName:"StyledStatement"})(pn||(pn=h()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,I.A)()),An=x.Ay.span.withConfig({displayName:"StyledTime"})(fn||(fn=h()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,I.A)()),Sn=x.Ay.span.withConfig({displayName:"StyledElapsedContainer"})(hn||(hn=h()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,I.A)()),Cn=x.Ay.span.withConfig({displayName:"StyledElapsed"})(xn||(xn=h()(["\n background-color: ",";\n border-radius: 5px;\n padding: 0.5em;\n"])),(function(e){return(n=e.elapsed)>=1e3?"#f00":n>=500?"#ff8c00":n>=100?"#ff0":"#dedede";var n}));const wn=function(e){var n=e.entry,t=(0,d.useState)(!1),r=V()(t,2),i=r[0],o=r[1],a=n.sql.length>100,l=a?n.sql.substr(0,100)+"...":n.sql;return(0,j.jsxs)(vn,{children:[(0,j.jsx)(jn,{expandable:a,onClick:function(){a&&o(!i)},children:l}),i&&(0,j.jsx)(bn,{children:n.sql}),(0,j.jsx)(An,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,j.jsx)(Sn,{children:(0,j.jsxs)(Cn,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var kn;const On=function(e){var n=function(e,n){return n?e.filter((function(e){return!0===n.isRangeValue?(null===n.from||e.elapsed>=n.from)&&(null===n.to||e.elapsed<=n.to):e.elapsed>=n})):e}(e.entries,e.elapsed);return(0,j.jsx)(mn,{children:n.length>0?n.map((function(e){return(0,j.jsx)(wn,{entry:e},e.key)})):kn||(kn=(0,j.jsx)(l.Ay.Span,{children:"No entries so far."}))})};const Nn=(0,s.Ng)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(On);var Ln;const En=function(){return Ln||(Ln=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Ay.H1,{children:"SQL Log"}),(0,j.jsx)(cn,{}),(0,j.jsx)(Nn,{})]}))};var Pn,Dn,Rn=t(47616),Mn=(0,x.AH)(Pn||(Pn=h()(["\n ","\n text-decoration: none;\n color: ",";\n\n * {\n color: ",";\n text-decoration: none;\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n color: ",";\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n color: ",";\n text-decoration: ",";\n }\n"])),(0,I.A)(),$e.t7.color("secondary"),$e.t7.color("text"),$e.t7.color("secondaryLight"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?$e.t7.color("text"):$e.t7.color("secondaryLight")}),(function(e){return e.neutral?"none":"underline"}));const Fn=(0,x.Ay)(o.N_)(Dn||(Dn=h()(["\n ","\n"])),Mn);var qn,Tn,Vn,In,Hn=x.Ay.div.withConfig({displayName:"StyledDevCon"})(qn||(qn=h()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),Rn.A.color("paper"),Ze.A.space(0)),zn=x.Ay.div.withConfig({displayName:"StyledNavigation"})(Tn||(Tn=h()(["\n display: flex;\n"]))),Gn=(0,x.Ay)(Fn).withConfig({displayName:"StyledRouterLink"})(Vn||(Vn=h()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const Un=function(){return In||(In=(0,j.jsxs)(Hn,{children:[(0,j.jsx)(a.A.Notifications,{}),(0,j.jsx)(l.Ay.Span,{children:"Tocco Developer Console"}),(0,j.jsxs)(zn,{children:[(0,j.jsx)(Gn,{to:"/log",children:"Log"}),(0,j.jsx)(Gn,{to:"/modelvalidation",children:"Model Validation"}),(0,j.jsx)(Gn,{to:"/dbrefactoring",children:"DB Refactoring"}),(0,j.jsx)(Gn,{to:"/sqllog",children:"SQL Log"})]}),(0,j.jsxs)(o.BV,{children:[(0,j.jsx)(o.qh,{path:"/",exact:!0,element:(0,j.jsx)(o.C5,{to:"log",replace:!0})}),(0,j.jsx)(o.qh,{path:"log",exact:!0,element:(0,j.jsx)(ne,{})}),(0,j.jsx)(o.qh,{path:"dbrefactoring",exact:!0,element:(0,j.jsx)(L,{})}),(0,j.jsx)(o.qh,{path:"modelvalidation",exact:!0,element:(0,j.jsx)(ke,{})}),(0,j.jsx)(o.qh,{path:"sqllog",exact:!0,element:(0,j.jsx)(En,{})})]})]}))}}}]);
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hre
|
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
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},a=r.useSyncExternalStore,i=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=i(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==l&&p.hasValue){var t=p.value;if(l(t,e))return i=t}return i=e}if(t=i,o(a,e))return t;var n=r(e);return void 0!==l&&l(t,n)?(a=e,t):(a=e,i=n)}var a,i,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var f=a(e,d[0],d[1]);return s((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,a=new Uint8Array(16);function i(){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(a)}for(var s=[],c=0;c<256;++c)s.push((c+256).toString(16).slice(1));function u(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[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||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return u(o)}},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,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},l={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(l,{Provider:()=>se,ReactReduxContext:()=>ne,batch:()=>ye,connect:()=>ie,createDispatchHook:()=>pe,createSelectorHook:()=>ge,createStoreHook:()=>le,shallowEqual:()=>Y,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(s(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"),h=Symbol.for("react.portal"),m=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,P=k;function j(e){return function(e){if("object"==typeof e&&null!==e){let{$$typeof:t}=e;switch(t){case f:switch(e=e.type){case m: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 h:return t}}}(e)===k}function _(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,p=!1;function f(p,f){let h=!a(f,c),m=!o(p,s,f,c);return s=p,c=f,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return p?f(o,a):function(o,a){return s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),p=!0,d}(o,a)}}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 A(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 M(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function C(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,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),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 c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=R)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},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 Y(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 B={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V={[E]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[P]:U};function q(e){return j(e)?U:V[e.$$typeof]||B}var $=Object.defineProperty,G=Object.getOwnPropertyNames,K=Object.getOwnPropertySymbols,Q=Object.getOwnPropertyDescriptor,X=Object.getPrototypeOf,J=Object.prototype;function Z(e,t){if("string"!=typeof t){if(J){let n=X(t);n&&n!==J&&Z(e,n)}let n=G(t);K&&(n=n.concat(K(t)));let r=q(e),o=q(t);for(let a=0;a<n.length;++a){let i=n[a];if(!(z[i]||o&&o[i]||r&&r[i])){let n=Q(t,i);try{$(e,i,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,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function ae(e,t){return e===t}var ie=function(e,t,n,{pure:r,areStatesEqual:o=ae,areOwnPropsEqual:a=Y,areStatePropsEqual:i=Y,areMergedPropsEqual:s=Y,forwardRef:c=!1,context:u=ne}={}){let l=u,p=function(e){return e?"function"==typeof e?A(e):M(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?A(e):M(e,"mapDispatchToProps"):D((e=>({dispatch:e})))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){let s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):M(e,"mergeProps"):()=>C}(n),m=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:s};function u(t){let[n,o,a]=d.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),i=d.useMemo((()=>l),[n,l]),s=d.useContext(i),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,p=c?t.store:s.store,f=u?s.getServerState:p.getState,h=d.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return _(t(e,o),n(e,o),r(e,o),e,o)}(p.dispatch,r)),[p]),[g,v]=d.useMemo((()=>{if(!m)return re;let e=N(p,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,s]),y=d.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=d.useRef(void 0),w=d.useRef(a),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,P=d.useMemo((()=>()=>x.current&&a===w.current?x.current:h(p.getState(),a)),[p,a]),j=d.useMemo((()=>e=>g?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,p=null,f=()=>{if(d||!s.current)return;let e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,p=e}n||(p=null),e===a.current?i.current||u():(a.current=e,c.current=e,i.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,p,g,h,w,b,O,k,x,v,e):()=>{}),[g]);!function(e,t,n){H((()=>e(...t)),n)}(oe,[w,b,O,a,x,v]);try{E=d.useSyncExternalStore(j,P,f?()=>h(f(),a):P)}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((()=>m?d.createElement(i.Provider,{value:y},D):D),[i,D,y])}let g=d.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){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 se=function(e){let{children:t,context:n,serverState:r,store:o}=e,a=d.useMemo((()=>{let e=N(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}}),[o,r]),i=d.useMemo((()=>o.getState()),[o]);return H((()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,i]),d.createElement((n||ne).Provider,{value:a},t)};function ce(e=ne){return function(){return d.useContext(e)}}var ue=ce();function le(e=ne){let t=e===ne?ue:ce(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(),he=n(78418),me=(e,t)=>e===t;function ge(e=ne){let t=e===ne?ue:ce(e),n=(e,n={})=>{let{equalityFn:r=me}="function"==typeof n?{equalityFn:n}:n,o=t(),{store:a,subscription:i,getServerState:s}=o,c=(d.useRef(!0),d.useCallback({[e.name]:t=>e(t)}[e.name],[e])),u=(0,he.useSyncExternalStoreWithSelector)(i.addNestedSub,a.getState,s||a.getState,c,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:()=>X,ll:()=>G,rD:()=>ae,__:()=>K,UU:()=>Z,jD:()=>te,mG:()=>re,ER:()=>oe,cY:()=>Q,iD:()=>$,BN:()=>J,Ej:()=>ee});const r=["top","right","bottom","left"],o=["start","end"],a=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),i=Math.min,s=Math.max,c=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),u={start:"end",end:"start"};function l(e,t,n){return s(e,i(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 h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function v(e){return h(g(e))}function y(e,t,n){void 0===n&&(n=!1);const r=f(e),o=v(e),a=m(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=w(i)),[i,w(i)]}function b(e){return e.replace(/start|end/g,(e=>u[e]))}function w(e){return e.replace(/left|right|bottom|top/g,(e=>c[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 a=g(t),i=v(t),s=m(i),c=p(t),u="y"===a,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let y;switch(c){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[i]-=h*(n&&u?-1:1);break;case"end":y[i]+=h*(n&&u?-1:1)}return y}async function S(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=d(t,e),m=x(h),g=s[f?"floating"===p?"reference":"floating":p],v=O(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===p?{...i.floating,x:r,y:o}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},k=O(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-k.top+m.top)/w.y,bottom:(k.bottom-v.bottom+m.bottom)/w.y,left:(v.left-k.left+m.left)/w.x,right:(k.right-v.right+m.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 P(e){return r.some((t=>e[t]>=0))}function j(e){const t=i(...e.map((e=>e.left))),n=i(...e.map((e=>e.top)));return{x:t,y:n,width:s(...e.map((e=>e.right)))-t,height:s(...e.map((e=>e.bottom)))-n}}const _=Math.min,D=Math.max,T=Math.round,A=Math.floor,M=e=>({x:e,y:e});var C=n(88963);function I(e){const t=(0,C.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=(0,C.sb)(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=T(n)!==a||T(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function R(e){return(0,C.vq)(e)?e:e.contextElement}function N(e){const t=R(e);if(!(0,C.sb)(t))return M(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=I(t);let i=(a?T(n.width):n.width)/r,s=(a?T(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const L=M(0);function F(e){const t=(0,C.zk)(e);return(0,C.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(),a=R(e);let i=M(1);t&&(r?(0,C.vq)(r)&&(i=N(r)):i=N(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,C.zk)(e))&&t}(a,n,r)?F(a):M(0);let c=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,l=o.width/i.x,d=o.height/i.y;if(a){const e=(0,C.zk)(a),t=r&&(0,C.vq)(r)?(0,C.zk)(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=N(o),t=o.getBoundingClientRect(),r=(0,C.L9)(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=a,u+=i,n=(0,C.zk)(o),o=n.frameElement}}return O({width:l,height:d,x:c,y:u})}function W(e){return H((0,C.ep)(e)).left+(0,C.CP)(e).scrollLeft}function Y(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=(0,C.zk)(e),r=(0,C.ep)(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const e=(0,C.Tc)();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=(0,C.ep)(e),n=(0,C.CP)(e),r=e.ownerDocument.body,o=D(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=D(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+W(e);const s=-n.scrollTop;return"rtl"===(0,C.L9)(r).direction&&(i+=D(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}((0,C.ep)(e));else if((0,C.vq)(t))r=function(e,t){const n=H(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=(0,C.sb)(e)?N(e):M(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=F(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return O(r)}function B(e,t){const n=(0,C.$4)(e);return!(n===t||!(0,C.vq)(n)||(0,C.eu)(n))&&("fixed"===(0,C.L9)(n).position||B(n,t))}function z(e,t,n){const r=(0,C.sb)(t),o=(0,C.ep)(t),a="fixed"===n,i=H(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=M(0);if(r||!r&&!a)if(("body"!==(0,C.mq)(t)||(0,C.ZU)(o))&&(s=(0,C.CP)(t)),r){const e=H(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=W(o));return{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function U(e){return"static"===(0,C.L9)(e).position}function V(e,t){return(0,C.sb)(e)&&"fixed"!==(0,C.L9)(e).position?t?t(e):e.offsetParent:null}function q(e,t){const n=(0,C.zk)(e);if((0,C.Tf)(e))return n;if(!(0,C.sb)(e)){let t=(0,C.$4)(e);for(;t&&!(0,C.eu)(t);){if((0,C.vq)(t)&&!U(t))return t;t=(0,C.$4)(t)}return n}let r=V(e,t);for(;r&&(0,C.Lv)(r)&&U(r);)r=V(r,t);return r&&(0,C.eu)(r)&&U(r)&&!(0,C.sQ)(r)?n:r||(0,C.gJ)(e)||n}const $={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=(0,C.ep)(r),s=!!t&&(0,C.Tf)(t.floating);if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},u=M(1);const l=M(0),d=(0,C.sb)(r);if((d||!d&&!a)&&(("body"!==(0,C.mq)(r)||(0,C.ZU)(i))&&(c=(0,C.CP)(r)),(0,C.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-c.scrollLeft*u.x+l.x,y:n.y*u.y-c.scrollTop*u.y+l.y}},getDocumentElement:C.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?(0,C.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,C.v9)(e,[],!1).filter((e=>(0,C.vq)(e)&&"body"!==(0,C.mq)(e))),o=null;const a="fixed"===(0,C.L9)(e).position;let i=a?(0,C.$4)(e):e;for(;(0,C.vq)(i)&&!(0,C.eu)(i);){const t=(0,C.L9)(i),n=(0,C.sQ)(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||(0,C.ZU)(i)&&!n&&B(e,i))?r=r.filter((e=>e!==i)):o=t,i=(0,C.$4)(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=Y(t,n,o);return e.top=D(r.top,e.top),e.right=_(r.right,e.right),e.bottom=_(r.bottom,e.bottom),e.left=D(r.left,e.left),e}),Y(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:q,getElementRects:async function(e){const t=this.getOffsetParent||q,n=this.getDimensions,r=await n(e.floating);return{reference:z(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:C.vq,isRTL:function(e){return"rtl"===(0,C.L9)(e).direction}};function G(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=R(e),l=o||a?[...u?(0,C.v9)(u):[],...(0,C.v9)(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=(0,C.ep)(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),a();const{left:u,top:l,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-A(l)+"px "+-A(o.clientWidth-(u+d))+"px "+-A(o.clientHeight-(l+p))+"px "+-A(u)+"px",threshold:D(0,_(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(u,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?H(e):null;return c&&function t(){const r=H(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const K=S,Q=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=p(n),s=f(n),c="y"===g(n),u=["left","top"].includes(i)?-1:1,l=a&&c?-1:1,h=d(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"==typeof y&&(v="end"===s?-1*y:y),c?{x:v*l,y:m*u}:{x:m*u,y:v*l}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},X=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:s,placement:c,platform:u,elements:l}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:g=a,autoAlignment:v=!0,...w}=d(e,t),x=void 0!==m||g===a?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))}(m||null,v,g):g,O=await S(t,w),k=(null==(n=s.autoPlacement)?void 0:n.index)||0,E=x[k];if(null==E)return{};const P=y(E,i,await(null==u.isRTL?void 0:u.isRTL(l.floating)));if(c!==E)return{reset:{placement:x[0]}};const j=[O[p(E)],O[P[0]],O[P[1]]],_=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:j}],D=x[k+1];if(D)return{data:{index:k+1,overflows:_},reset:{placement:D}};const T=_.map((e=>{const t=f(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),A=(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 A!==c?{data:{index:k+1,overflows:_},reset:{placement:A}}:{}}}},J=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),u={x:n,y:r},f=await S(t,c),m=g(p(o)),v=h(m);let y=u[v],b=u[m];if(a){const e="y"===v?"bottom":"right";y=l(y+f["y"===v?"top":"left"],y,y-f[e])}if(i){const e="y"===m?"bottom":"right";b=l(b+f["y"===m?"top":"left"],b,b-f[e])}const w=s.fn({...t,[v]:y,[m]: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:a,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...O}=d(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const k=p(o),E=p(s)===s,P=await(null==c.isRTL?void 0:c.isRTL(u.floating)),j=m||(E||!x?[w(s)]:function(e){const t=w(e);return[b(e),t,b(t)]}(s));m||"none"===v||j.push(...function(e,t,n,r){const o=f(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(p(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(b)))),a}(s,x,v,P));const _=[s,...j],D=await S(t,O),T=[];let A=(null==(r=a.flip)?void 0:r.overflows)||[];if(l&&T.push(D[k]),h){const e=y(o,i,P);T.push(D[e[0]],D[e[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every((e=>e<=0))){var M,C;const e=((null==(M=a.flip)?void 0:M.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(C=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(g){case"bestFit":{var I;const e=null==(I=A.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=s}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:a}=t,{apply:c=(()=>{}),...u}=d(e,t),l=await S(t,u),h=p(n),m=f(n),v="y"===g(n),{width:y,height:b}=r.floating;let w,x;"top"===h||"bottom"===h?(w=h,x=m===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(x=h,w="end"===m?"top":"bottom");const O=b-l[w],k=y-l[x],E=!t.middlewareData.shift;let P=O,j=k;if(v){const e=y-l.left-l.right;j=m||E?i(k,e):e}else{const e=b-l.top-l.bottom;P=m||E?i(O,e):e}if(E&&!m){const e=s(l.left,0),t=s(l.right,0),n=s(l.top,0),r=s(l.bottom,0);v?j=y-2*(0!==e||0!==t?e+t:s(l.left,l.right)):P=b-2*(0!==n||0!==r?n+r:s(l.top,l.bottom))}await c({...t,availableWidth:j,availableHeight:P});const _=await o.getDimensions(a.floating);return y!==_.width||b!==_.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:P(e)}}}case"escaped":{const e=E(await S(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}},ne=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:p,padding:h=0}=d(e,t)||{};if(null==p)return{};const g=x(h),y={x:n,y:r},b=v(o),w=m(b),O=await s.getDimensions(p),k="y"===b,S=k?"top":"left",E=k?"bottom":"right",P=k?"clientHeight":"clientWidth",j=a.reference[w]+a.reference[b]-y[b]-a.floating[w],_=y[b]-a.reference[b],D=await(null==s.getOffsetParent?void 0:s.getOffsetParent(p));let T=D?D[P]:0;T&&await(null==s.isElement?void 0:s.isElement(D))||(T=c.floating[P]||a.floating[w]);const A=j/2-_/2,M=T/2-O[w]/2-1,C=i(g[S],M),I=i(g[E],M),R=C,N=T-O[w]-I,L=T/2-O[w]/2+A,F=l(R,L,N),H=!u.arrow&&null!=f(o)&&L!==F&&a.reference[w]/2-(L<R?C: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:a,strategy:c}=t,{padding:u=2,x:l,y:f}=d(e,t),h=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),m=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(j(e))))}(h),v=O(j(h)),y=x(u);const b=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=l&&null!=f)return m.find((e=>l>e.left-y.left&&l<e.right+y.right&&f>e.top-y.top&&f<e.bottom+y.bottom))||v;if(m.length>=2){if("y"===g(n)){const e=m[0],t=m[m.length-1],r="top"===p(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===p(n),t=s(...m.map((e=>e.right))),r=i(...m.map((e=>e.left))),o=m.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,c=o[o.length-1].bottom;return{top:a,bottom:c,left:r,right:t,width:t-r,height:c-a,x:r,y:a}}return v}},floating:r.floating,strategy:c});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:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=d(e,t),l={x:n,y:r},f=g(o),m=h(f);let v=l[m],y=l[f];const b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+w.mainAxis,n=a.reference[m]+a.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var x,O;const e="y"===m?"width":"height",t=["top","left"].includes(p(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(x=i.offset)?void 0:x[f])||0)+(t?0:w.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(O=i.offset)?void 0:O[f])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[m]:v,[f]:y}}}},ae=(e,t,n)=>{const r=new Map,o={platform:$,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=k(u,r,c),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:l,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=v?v:d,f={...f,[a]:{...f[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=k(u,p,c))),n=-1)}return{x:l,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:a})}},88963:(e,t,n)=>{"use strict";function r(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function i(e){return e instanceof Node||e instanceof o(e).Node}function s(e){return e instanceof Element||e instanceof o(e).Element}function c(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=m(),n=s(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 h(e){let t=b(e);for(;c(t)&&!g(t);){if(f(t))return t;if(p(t))return null;t=b(t)}return null}function m(){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 s(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||a(e);return u(t)?t.host:t}function w(e){const t=b(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&l(t)?t:w(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=w(e),i=a===(null==(r=e.ownerDocument)?void 0:r.body),s=o(a);return i?t.concat(s,s.visualViewport||[],l(a)?a:[],s.frameElement&&n?x(s.frameElement):[]):t.concat(a,x(a,[],n))}n.d(t,{$4:()=>b,CP:()=>y,L9:()=>v,Lv:()=>d,Tc:()=>m,Tf:()=>p,ZU:()=>l,ep:()=>a,eu:()=>g,gJ:()=>h,mq:()=>r,sQ:()=>f,sb:()=>c,v9:()=>x,vq:()=>s,zk:()=>o})},34743:(e,t,n)=>{"use strict";n.d(t,{BN:()=>h,ER:()=>m,Ej:()=>v,RK:()=>y,UE:()=>x,UU:()=>g,cY:()=>f,jD:()=>b,mG:()=>w,we:()=>d});var r=n(80938),o=n(4883),a=n(81845),i="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function s(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(!s(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)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=c(e);return Math.round(t*n)/n}function l(e){const t=o.useRef(e);return i((()=>{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:h}={},transform:m=!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);s(w,d)||x(d);const[O,k]=o.useState(null),[S,E]=o.useState(null),P=o.useCallback((e=>{e!==T.current&&(T.current=e,k(e))}),[]),j=o.useCallback((e=>{e!==A.current&&(A.current=e,E(e))}),[]),_=f||O,D=h||S,T=o.useRef(null),A=o.useRef(null),M=o.useRef(y),C=null!=g,I=l(g),R=l(p),N=l(v),L=o.useCallback((()=>{if(!T.current||!A.current)return;const e={placement:t,strategy:n,middleware:w};R.current&&(e.platform=R.current),(0,r.rD)(T.current,A.current,e).then((e=>{const t={...e,isPositioned:!1!==N.current};F.current&&!s(M.current,t)&&(M.current=t,a.flushSync((()=>{b(t)})))}))}),[w,t,n,R,N]);i((()=>{!1===v&&M.current.isPositioned&&(M.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[v]);const F=o.useRef(!1);i((()=>(F.current=!0,()=>{F.current=!1})),[]),i((()=>{if(_&&(T.current=_),D&&(A.current=D),_&&D){if(I.current)return I.current(_,D,L);L()}}),[_,D,L,I,C]);const H=o.useMemo((()=>({reference:T,floating:A,setReference:P,setFloating:j})),[P,j]),W=o.useMemo((()=>({reference:_,floating:D})),[_,D]),Y=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 m?{...e,transform:"translate("+t+"px, "+r+"px)",...c(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,m,W.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:L,refs:H,elements:W,floatingStyles:Y})),[y,L,H,W,Y])}const p=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"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 a}}),f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),m=(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]})},66984:(e,t,n)=>{"use strict";n.d(t,{$t:()=>s,$u:()=>w,EW:()=>y,F2:()=>v,Go:()=>f,O_:()=>h,Pg:()=>u,RS:()=>o,WZ:()=>O,YE:()=>g,YF:()=>c,cX:()=>p,gR:()=>a,jo:()=>x,nr:()=>l,tZ:()=>m,uo:()=>i});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 a(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 i(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){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 c(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!s().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(i())||e.test(s())}function p(){return i().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function f(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function h(e){return"nativeEvent"in e}function m(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 i(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){return!!r()&&(e instanceof Node||e instanceof a(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof a(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(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 a(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=(i(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:()=>c,vq:()=>s,zk:()=>a})},81293:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,fX:()=>i});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 a=function(){return a=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},a.apply(this,arguments)};Object.create;function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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:()=>a});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"})}},a={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return r(e,t);let s;switch(a){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",r(a,t)).replace("{{time}}",o(i,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:()=>c,ef:()=>i,xM:()=>s});const r=/^D+$/,o=/^Y+$/,a=["D","DD","YY","YYYY"];function i(e){return r.test(e)}function s(e){return o.test(e)}function c(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),a.includes(e))throw new RangeError(r)}},16172:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(43329),o=n(29407);function a(e,t,n){const a=(0,o.a)(e,n?.in);return isNaN(t)?(0,r.w)(n?.in||e,NaN):t?(a.setDate(a.getDate()+t),a):a}},61501:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>a,_P:()=>c,_m:()=>s,my:()=>r,s0:()=>i,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,a=6e4,i=36e5,s=1e3,c=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)}},30336:(e,t,n)=>{"use strict";n.d(t,{GP:()=>L});var r=n(9946),o=n(92516),a=n(1108),i=n(5305),s=n(61501),c=n(6463);function u(e,t,n){const[r,o]=(0,i.x)(n?.in,e,t),u=(0,c.o)(r),l=(0,c.o)(o),d=+u-(0,a.G)(u),p=+l-(0,a.G)(l);return Math.round((d-p)/s.w4)}var l=n(29407);function d(e,t){const n=(0,l.a)(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function p(e,t){const n=(0,l.a)(e,t?.in);return u(n,d(n))+1}var f=n(72794),h=n(51898),m=n(65456),g=n(84485);function v(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const y={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return v("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):v(n+1,2)},d:(e,t)=>v(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)=>v(e.getHours()%12||12,t.length),H:(e,t)=>v(e.getHours(),t.length),m:(e,t)=>v(e.getMinutes(),t.length),s:(e,t)=>v(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return v(Math.trunc(r*Math.pow(10,n-3)),t.length)}},b="midnight",w="noon",x="morning",O="afternoon",k="evening",S="night",E={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 y.y(e,t)},Y:function(e,t,n,r){const o=(0,g.h)(e,r),a=o>0?o:1-o;if("YY"===t){return v(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):v(a,t.length)},R:function(e,t){return v((0,h.p)(e),t.length)},u:function(e,t){return v(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 v(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 v(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 y.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 v(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,m.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):v(o,t.length)},I:function(e,t,n){const r=(0,f.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):v(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):y.d(e,t)},D:function(e,t,n){const r=p(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):v(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(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return v(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return v(a,t.length);case"co":return n.ordinalNumber(a,{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 v(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?w:0===r?b: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?k:r>=12?O:r>=4?x:S,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 y.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):y.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):v(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):v(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):y.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):y.s(e,t)},S:function(e,t){return y.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return j(r);case"XXXX":case"XX":return _(r);default:return _(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return j(r);case"xxxx":case"xx":return _(r);default:return _(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+P(r,":");default:return"GMT"+_(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+P(r,":");default:return"GMT"+_(r,":")}},t:function(e,t,n){return v(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return v(+e,t.length)}};function P(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+v(a,2)}function j(e,t){if(e%60==0){return(e>0?"-":"+")+v(Math.abs(e)/60,2)}return _(e,t)}function _(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+v(Math.trunc(r/60),2)+t+v(r%60,2)}var D=n(78668),T=n(3265),A=n(99790);const M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I=/^'([^]*?)'?$/,R=/''/g,N=/[a-zA-Z]/;function L(e,t,n){const a=(0,o.q)(),i=n?.locale??a.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=(0,l.a)(e,n?.in);if(!(0,A.f)(u))throw new RangeError("Invalid time value");let d=t.match(C).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,D.m[t])(e,i.formatLong)}return e})).join("").match(M).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:F(e)};if(E[t])return{isToken:!0,value:e};if(t.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(d=i.localize.preprocessor(u,d));const p={firstWeekContainsDate:s,weekStartsOn:c,locale:i};return d.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,T.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,T.ef)(o))&&(0,T.Ss)(o,t,String(e));return(0,E[o[0]])(u,o,i.localize,p)})).join("")}function F(e){const t=e.match(I);return t?t[1].replace(R,"'"):e}},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),a=n(43329),i=n(51898);function s(e,t){const n=(0,i.p)(e,t),r=(0,a.w)(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,o.b)(r)}var c=n(29407);function u(e,t){const n=(0,c.a)(e,t?.in),a=+(0,o.b)(n)-+s(n);return Math.round(a/r.my)+1}},51898:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(43329),o=n(22008),a=n(29407);function i(e,t){const n=(0,a.a)(e,t?.in),i=n.getFullYear(),s=(0,r.w)(n,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const c=(0,o.b)(s),u=(0,r.w)(n,0);u.setFullYear(i,0,4),u.setHours(0,0,0,0);const l=(0,o.b)(u);return n.getTime()>=c.getTime()?i+1:n.getTime()>=l.getTime()?i:i-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),a=n(92516),i=n(43329),s=n(84485);function c(e,t){const n=(0,a.q)(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=(0,s.h)(e,t),u=(0,i.w)(t?.in||e,0);u.setFullYear(c,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),a=+(0,o.k)(n,t)-+c(n,t);return Math.round(a/r.my)+1}},84485:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(92516),o=n(43329),a=n(80337),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=n.getFullYear(),c=(0,r.q)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,l=(0,o.w)(t?.in||e,0);l.setFullYear(s+1,0,u),l.setHours(0,0,0,0);const d=(0,a.k)(l,t),p=(0,o.w)(t?.in||e,0);p.setFullYear(s,0,u),p.setHours(0,0,0,0);const f=(0,a.k)(p,t);return+n>=+d?s+1:+n>=+f?s:s-1}},92705:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(99790),o=n(58646);function a(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:()=>a});var o=n(29407);function a(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],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(i.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],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,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 a={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"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var s=n(33443);const c={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,s.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.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,s.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,s.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,s.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 a=r[e];return o="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:a,formatRelative:(e,t,n,r)=>i[e],localize:c,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}}},58646:(e,t,n)=>{"use strict";n.d(t,{qg:()=>ge});var r=n(9946),o=n(78668),a=n(3265),i=n(43329),s=n(92516);function c(){return Object.assign({},(0,s.q)())}var u=n(29407);function l(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):(0,i.w)(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class d{subPriority=0;validate(e,t){return!0}}class p extends d{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 f extends d{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>(0,i.w)(t,e))}set(e,t){return t.timestampIsSet?e:(0,i.w)(e,l(e,this.context))}}class h{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new p(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 g=/^(1[0-2]|0?\d)/,v=/^(3[0-1]|[0-2]?\d)/,y=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,b=/^(5[0-3]|[0-4]?\d)/,w=/^(2[0-3]|[0-1]?\d)/,x=/^(2[0-4]|[0-1]?\d)/,O=/^(1[0-1]|0?\d)/,k=/^(1[0-2]|0?\d)/,S=/^[0-5]?\d/,E=/^[0-5]?\d/,P=/^\d/,j=/^\d{1,2}/,_=/^\d{1,3}/,D=/^\d{1,4}/,T=/^-?\d+/,A=/^-?\d/,M=/^-?\d{1,2}/,C=/^-?\d{1,3}/,I=/^-?\d{1,4}/,R=/^([+-])(\d{2})(\d{2})?|Z/,N=/^([+-])(\d{2})(\d{2})|Z/,L=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,F=/^([+-])(\d{2}):(\d{2})|Z/,H=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function W(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Y(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,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*m.s0+a*m.Cg+i*m._m),rest:t.slice(n[0].length)}}function z(e){return Y(T,e)}function U(e,t){switch(e){case 1:return Y(P,t);case 2:return Y(j,t);case 3:return Y(_,t);case 4:return Y(D,t);default:return Y(new RegExp("^\\d{1,"+e+"}"),t)}}function V(e,t){switch(e){case 1:return Y(A,t);case 2:return Y(M,t);case 3:return Y(C,t);case 4:return Y(I,t);default:return Y(new RegExp("^-?\\d{1,"+e+"}"),t)}}function q(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function $(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 G(e){return e%400==0||e%4==0&&e%100!=0}var K=n(84485),Q=n(80337);var X=n(22008);var J=n(65456);function Z(e,t,n){const r=(0,u.a)(e,n?.in),o=(0,J.N)(r,n)-t;return r.setDate(r.getDate()-7*o),(0,u.a)(r,n?.in)}var ee=n(72794);function te(e,t,n){const r=(0,u.a)(e,n?.in),o=(0,ee.s)(r,n)-t;return r.setDate(r.getDate()-7*o),r}const ne=[31,28,31,30,31,30,31,31,30,31,30,31],re=[31,29,31,30,31,30,31,31,30,31,30,31];var oe=n(16172);function ae(e,t,n){const r=(0,s.q)(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=(0,u.a)(e,n?.in),i=a.getDay(),c=7-o,l=t<0||t>6?t-(i+c)%7:((t%7+7)%7+c)%7-(i+c)%7;return(0,oe.f)(a,l,n)}function ie(e,t){const n=(0,u.a)(e,t?.in).getDay();return 0===n?7:n}function se(e,t,n){const r=(0,u.a)(e,n?.in),o=t-ie(r,n);return(0,oe.f)(r,o,n)}var ce=n(1108);const ue={G:new class extends h{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 h{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 W(U(4,e),r);case"yo":return W(n.ordinalNumber(e,{unit:"year"}),r);default:return W(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=$(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 h{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return W(U(4,e),r);case"Yo":return W(n.ordinalNumber(e,{unit:"year"}),r);default:return W(U(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=(0,K.h)(e,r);if(n.isTwoDigitYear){const t=$(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,Q.k)(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,Q.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends h{priority=130;parse(e,t){return V("R"===t?4:t.length,e)}set(e,t,n){const r=(0,i.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,X.b)(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends h{priority=130;parse(e,t){return V("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 h{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 h{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 h{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 W(Y(g,e),r);case"MM":return W(U(2,e),r);case"Mo":return W(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 h{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return W(Y(g,e),r);case"LL":return W(U(2,e),r);case"Lo":return W(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 h{priority=100;parse(e,t,n){switch(t){case"w":return Y(b,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,Q.k)(Z(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends h{priority=100;parse(e,t,n){switch(t){case"I":return Y(b,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,X.b)(te(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends h{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Y(v,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return U(t.length,e)}}validate(e,t){const n=G(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=re[r]:t>=1&&t<=ne[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 h{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Y(y,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return U(t.length,e)}}validate(e,t){return G(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 h{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=ae(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends h{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 W(U(t.length,e),o);case"eo":return W(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=ae(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 h{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 W(U(t.length,e),o);case"co":return W(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=ae(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 h{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 W(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 W(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return W(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return W(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=se(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 h{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(q(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends h{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(q(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends h{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(q(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends h{priority=70;parse(e,t,n){switch(t){case"h":return Y(k,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 h{priority=70;parse(e,t,n){switch(t){case"H":return Y(w,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 h{priority=70;parse(e,t,n){switch(t){case"K":return Y(O,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 h{priority=70;parse(e,t,n){switch(t){case"k":return Y(x,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 h{priority=60;parse(e,t,n){switch(t){case"m":return Y(S,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 h{priority=50;parse(e,t,n){switch(t){case"s":return Y(E,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 h{priority=30;parse(e,t){return W(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 h{priority=10;parse(e,t){switch(t){case"X":return B(R,e);case"XX":return B(N,e);case"XXXX":return B(L,e);case"XXXXX":return B(H,e);default:return B(F,e)}}set(e,t,n){return t.timestampIsSet?e:(0,i.w)(e,e.getTime()-(0,ce.G)(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends h{priority=10;parse(e,t){switch(t){case"x":return B(R,e);case"xx":return B(N,e);case"xxxx":return B(L,e);case"xxxxx":return B(H,e);default:return B(F,e)}}set(e,t,n){return t.timestampIsSet?e:(0,i.w)(e,e.getTime()-(0,ce.G)(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends h{priority=40;parse(e){return z(e)}set(e,t,n){return[(0,i.w)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends h{priority=20;parse(e){return z(e)}set(e,t,n){return[(0,i.w)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pe=/^'([^]*?)'?$/,fe=/''/g,he=/\S/,me=/[a-zA-Z]/;function ge(e,t,n,s){const l=()=>(0,i.w)(s?.in||n,NaN),d=c(),p=s?.locale??d.locale??r.c,h=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,m=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0;if(!t)return e?l():(0,u.a)(n,s?.in);const g={firstWeekContainsDate:h,weekStartsOn:m,locale:p},v=[new f(s?.in,n)],y=t.match(de).map((e=>{const t=e[0];if(t in o.m){return(0,o.m[t])(e,p.formatLong)}return e})).join("").match(le),b=[];for(let n of y){!s?.useAdditionalWeekYearTokens&&(0,a.xM)(n)&&(0,a.Ss)(n,t,e),!s?.useAdditionalDayOfYearTokens&&(0,a.ef)(n)&&(0,a.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 a=o.run(e,n,p.match,g);if(!a)return l();v.push(a.setter),e=a.rest}else{if(r.match(me))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&&he.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,u.a)(n,s?.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}},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:()=>a});var r=n(92516),o=n(29407);function a(e,t){const n=(0,r.q)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,o.a)(e,t?.in),s=i.getDay(),c=(s<a?7:0)+s-a;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}},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:()=>a,Tt:()=>i,fX:()=>s});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 a=function(){return a=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},a.apply(this,arguments)};function i(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 s(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,Tt:()=>i,fX:()=>s});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 a=function(){return a=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},a.apply(this,arguments)};function i(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 s(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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});var r=n(4883),o=(n(78418),r.version.startsWith("19")),a=Symbol.for(o?"react.transitional.element":"react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=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"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=p,y=m;function b(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case s:case u:case c:case f:case h:return e;default:switch(e=e&&e.$$typeof){case d:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function w(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,p=!1;function f(p,f){const h=!a(f,c),m=!o(p,s,f,c);return s=p,c=f,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return p?f(o,a):(s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),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 P(e){e()}var j={notify(){},get:()=>[]};function _(e,t){let n,r=j,o=0,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){P((()=>{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 c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=j)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},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)(),A=(()=>D||T?r.useLayoutEffect:r.useEffect)();function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(M(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])||!M(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)===m}(e)?N:L[e.$$typeof]||I}var H=Object.defineProperty,W=Object.getOwnPropertyNames,Y=Object.getOwnPropertySymbols,B=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,U=Object.prototype;function V(e,t){if("string"!=typeof t){if(U){const n=z(t);n&&n!==U&&V(e,n)}let n=W(t);Y&&(n=n.concat(Y(t)));const r=F(e),o=F(t);for(let a=0;a<n.length;++a){const i=n[a];if(!(R[i]||o&&o[i]||r&&r[i])){const n=B(t,i);try{H(e,i,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(),Q=[null,null];function X(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function J(e,t){return e===t}var Z=function(e,t,n,{pure:o,areStatesEqual:a=J,areOwnPropsEqual:i=C,areStatePropsEqual:s=C,areMergedPropsEqual:c=C,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),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):S(e,"mergeProps"):()=>E}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:a,areStatePropsEqual:s,areOwnPropsEqual:i,areMergedPropsEqual:c};function l(t){const[n,a,i]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=r.useMemo((()=>d),[n,d]),c=r.useContext(s),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(c)&&Boolean(c.store);const p=u?t.store:c.store,f=l?c.getServerState:p.getState,h=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(!m)return Q;const e=_(p,u?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,u,c]),y=r.useMemo((()=>u?c:{...c,subscription:g}),[u,c,g]),b=r.useRef(void 0),x=r.useRef(i),O=r.useRef(void 0),k=r.useRef(!1),S=r.useRef(!1),E=r.useRef(void 0);A((()=>(S.current=!0,()=>{S.current=!1})),[]);const P=r.useMemo((()=>()=>O.current&&i===x.current?O.current:h(p.getState(),i)),[p,i]),j=r.useMemo((()=>e=>g?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!s.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===a.current?i.current||u():(a.current=n,c.current=n,i.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,p,g,h,x,b,k,S,O,v,e):()=>{}),[g]);var D,T,M;let C;D=X,T=[x,b,k,i,O,v],A((()=>D(...T)),M);try{C=r.useSyncExternalStore(j,P,f?()=>h(f(),i):P)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}A((()=>{E.current=void 0,O.current=void 0,b.current=C}));const I=r.useMemo((()=>r.createElement(e,{...C,ref:a})),[a,e,C]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},I):I),[s,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,V(t,e)}return V(g,e)}};var ee=function(e){const{children:t,context:n,serverState:o,store:a}=e,i=r.useMemo((()=>{const e=_(a);return{store:a,subscription:e,getServerState:o?()=>o:void 0}}),[a,o]),s=r.useMemo((()=>a.getState()),[a]);A((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,s]);const c=n||K;return r.createElement(c.Provider,{value:i},t)}},76744:(e,t,n)=>{"use strict";n.d(t,{BV:()=>It,C5:()=>At,N_:()=>bn,Ri:()=>at,Ys:()=>mn,pg:()=>Dt,qh:()=>Mt,zy:()=>it});var r,o=n(4883),a=(n(16069),e=>{throw TypeError(e)}),i=(e,t,n)=>(((e,t,n)=>{t.has(e)||a("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),s="popstate";function c(e={}){return m((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{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:f(t)}),null,e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function f({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 h(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 m(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",l=null,h=m();function m(){return(i.state||{idx:null}).idx}function g(){c="POP";let e=m(),t=null==e?null:e-h;h=e,l&&l({action:c,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:f(e);return n=n.replace(/ $/,"%20"),u(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==h&&(h=0,i.replaceState({...i.state,idx:h},""));let y={get action(){return c},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,g),l=e,()=>{o.removeEventListener(s,g),l=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){c="PUSH";let r=p(y.location,e,t);n&&n(r,e),h=m()+1;let s=d(r,h),u=y.createHref(r);try{i.pushState(s,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(u)}a&&l&&l({action:c,location:y.location,delta:1})},replace:function(e,t){c="REPLACE";let r=p(y.location,e,t);n&&n(r,e),h=m();let o=d(r,h),s=y.createHref(r);i.replaceState(o,"",s),a&&l&&l({action:c,location:y.location,delta:0})},go:e=>i.go(e)};return y}var g=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?a("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(i(this,r).has(e))return i(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){i(this,r).set(e,t)}};r=new WeakMap;var v=new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,n=[],r={}){return e.map(((e,o)=>{let a=[...n,String(o)],i="string"==typeof e.id?e.id:a.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!r[i],`Found a route id collision on id "${i}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:i};return r[i]=n,n}{let n={...e,...t(e),id:i,children:void 0};return r[i]=n,e.children&&(n.children=y(e.children,t,a,r)),n}}))}function b(e,t,n="/"){return w(e,t,n,!1)}function w(e,t,n,r){let o=R(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let a=O(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)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=I(o);i=M(a[e],t,r)}return i}function x(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 O(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(u(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let s=W([r,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),O(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:A(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of k(e.path))o(e,t,n);else o(e,t)})),t}function k(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=k(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var S=/^:[\w-]+$/,E=3,P=2,j=1,_=10,D=-2,T=e=>"*"===e;function A(e,t){let n=e.split("/"),r=n.length;return n.some(T)&&(r+=D),t&&(r+=P),n.filter((e=>!T(e))).reduce(((e,t)=>e+(S.test(t)?E:""===t?j:_)),r)}function M(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,u="/"===a?t:t.slice(a.length)||"/",l=C({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u),d=s.route;if(!l&&c&&n&&!r[r.length-1].route.index&&(l=C({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),i.push({params:o,pathname:W([a,l.pathname]),pathnameBase:Y(W([a,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(a=W([a,l.pathnameBase]))}return i}function C(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){l("*"===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 a=new RegExp(o,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!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 R(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 N(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 L(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function F(e){let t=L(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function H(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},u(!o.pathname||!o.pathname.includes("?"),N("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),N("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),N("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?h(e):e,a=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:a,search:B(r),hash:z(o)}}(o,a),l=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!d||(c.pathname+="/"),c}var W=e=>e.join("/").replace(/\/\/+/g,"/"),Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var U=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 V(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var q=["POST","PUT","PATCH","DELETE"],$=new Set(q),G=["GET",...q],K=new Set(G),Q=new Set([301,302,303,307,308]),X=new Set([307,308]),J={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},te=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ne=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),re="remix-router-transitions",oe=Symbol("ResetLoaderData");function ae(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;u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,a,i=e.mapRouteProperties||ne,s={},c=y(e.routes,i,void 0,s),d=e.basename||"/",f=e.dataStrategy||ge,h={unstable_middleware:!1,...e.future},m=null,v=new Set,O=null,k=null,S=null,E=null!=e.hydrationData,P=b(c,e.history.location,d),j=!1,_=null;if(null==P&&!e.patchRoutesOnNavigation){let t=Ce(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Me(c);P=n,_={[r.id]:t}}if(P&&!e.hydrationData){et(P,c,e.history.location.pathname).active&&(P=null)}if(P)if(P.some((e=>e.route.lazy)))o=!1;else if(P.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=P.findIndex((e=>void 0!==n[e.route.id]));o=P.slice(0,e+1).every((e=>!le(e.route,t,n)))}else o=P.every((e=>!le(e.route,t,n)))}else o=!0;else{o=!1,P=[];let t=et(null,c,e.history.location.pathname);t.active&&t.matches&&(j=!0,P=t.matches)}let D,T,A={historyAction:e.history.action,location:e.history.location,matches:P,initialized:o,navigation:J,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||_,fetchers:new Map,blockers:new Map},M="POP",C=!1,I=!1,N=new Map,L=null,F=!1,H=!1,W=new Set,Y=new Map,B=0,z=-1,U=new Map,q=new Set,$=new Map,G=new Map,K=new Set,Q=new Map,oe=null;function ae(e,t={}){A={...A,...e};let n=[],r=[];A.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{A.fetchers.has(e)||Y.has(e)||n.push(e)})),[...v].forEach((e=>e(A,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>je(e))),r.forEach((e=>A.fetchers.delete(e)))}function ce(t,n,{flushSync:o}={}){let a,i=null!=A.actionData&&null!=A.navigation.formMethod&&Be(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?A.actionData:null;let s=n.loaderData?De(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,u=A.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,ee))));let l,d=!0===C||null!=A.navigation.formMethod&&Be(A.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(c=r,r=void 0),F||"POP"===M||("PUSH"===M?e.history.push(t,t.state):"REPLACE"===M&&e.history.replace(t,t.state)),"POP"===M){let e=N.get(A.location.pathname);e&&e.has(t.pathname)?l={currentLocation:A.location,nextLocation:t}:N.has(t.pathname)&&(l={currentLocation:t,nextLocation:A.location})}else if(I){let e=N.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),N.set(A.location.pathname,e)),l={currentLocation:A.location,nextLocation:t}}ae({...n,actionData:a,loaderData:s,historyAction:M,location:t,initialized:!0,navigation:J,revalidation:"idle",restoreScrollPosition:Ze(t,n.matches||A.matches),preventScrollReset:d,blockers:u},{viewTransitionOpts:l,flushSync:!0===o}),M="POP",C=!1,I=!1,F=!1,H=!1,oe?.resolve(),oe=null}async function de(t,n,o){D&&D.abort(),D=null,M=t,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(O&&S){let n=Je(e,t);O[n]=S()}}(A.location,A.matches),C=!0===(o&&o.preventScrollReset),I=!0===(o&&o.enableViewTransition);let a=r||c,i=o&&o.overrideNavigation,s=o?.initialHydration&&A.matches&&A.matches.length>0&&!j?A.matches:b(a,n,d),u=!0===(o&&o.flushSync);if(s&&A.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}(A.location,n)&&!(o&&o.submission&&Be(o.submission.formMethod)))return void ce(n,{matches:s},{flushSync:u});let l=et(s,a,n.pathname);if(l.active&&l.matches&&(s=l.matches),!s){let{error:e,notFoundMatches:t,route:r}=Xe(n.pathname);return void ce(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u})}D=new AbortController;let p,f=Se(e.history,n,D.signal,o&&o.submission),h=new g(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)p=[Ae(s).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Be(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,i={}){ye();let s,c=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(ae({navigation:c},{flushSync:!0===i.flushSync}),a){let n=await tt(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Ae(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}=Xe(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let u=Ue(r,t);if(u.route.action||u.route.lazy){let t=await me("action",e,[u],r,o,null);if(s=t[u.route.id],!s)for(let e of r)if(t[e.route.id]){s=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else s={type:"error",error:Ce(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(Fe(s)){let t;if(i&&null!=i.replace)t=i.replace;else{t=ke(s.response.headers.get("Location"),new URL(e.url),d)===A.location.pathname+A.location.search}return await he(e,s,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Le(s)){let e=Ae(r,u.route.id);return!0!==(i&&i.replace)&&(M="PUSH"),{matches:r,pendingActionResult:[e.route.id,s]}}return{matches:r,pendingActionResult:[u.route.id,s]}}(f,n,o.submission,s,h,l.active,{replace:o.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Le(r)&&V(r.error)&&404===r.error.status)return D=null,void ce(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}s=t.matches||s,p=t.pendingActionResult,i=qe(n,o.submission),u=!1,l.active=!1,f=Se(e.history,f.url,f.signal)}let{shortCircuited:m,matches:v,loaderData:y,errors:w}=await async function(t,n,o,a,i,s,u,l,p,f,h,m){let g=s||qe(n,u),v=u||l||Ve(g),y=!F&&!f;if(i){if(y){let e=pe(m);ae({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:h})}let e=await tt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ae(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Xe(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||c,[w,x]=ue(e.history,A,o,v,n,!0===f,H,W,K,$,q,b,d,m);if(z=++B,0===w.length&&0===x.length){let e=We();return ce(n,{matches:o,loaderData:{},errors:m&&Le(m[1])?{[m[0]]:m[1].error}:null,...Te(m),...e?{fetchers:new Map(A.fetchers)}:{}},{flushSync:h}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=g;let t=pe(m);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=A.fetchers.get(e.key),n=$e(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)})),new Map(A.fetchers)}(x)),ae(e,{flushSync:h})}x.forEach((e=>{Re(e.key),e.controller&&Y.set(e.key,e.controller)}));let O=()=>x.forEach((e=>Re(e.key)));D&&D.signal.addEventListener("abort",O);let{loaderResults:k,fetcherResults:S}=await ve(o,w,x,t,a);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",O);x.forEach((e=>Y.delete(e.key)));let E=Ie(k);if(E)return await he(t,E.result,!0,{replace:p}),{shortCircuited:!0};if(E=Ie(S),E)return q.add(E.key),await he(t,E.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:P,errors:j}=_e(A,o,k,m,x,S);f&&A.errors&&(j={...A.errors,...j});let _=We(),T=Ye(z),M=_||T||x.length>0;return{matches:o,loaderData:P,errors:j,...M?{fetchers:new Map(A.fetchers)}:{}}}(f,n,s,h,l.active,i,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,u,p);m||(D=null,ce(n,{matches:v||s,...Te(p),loaderData:y,errors:w}))}function pe(e){return e&&!Le(e[1])?{[e[0]]:e[1].data}:A.actionData?0===Object.keys(A.actionData).length?null:A.actionData:void 0}async function he(r,o,a,{submission:i,fetcherSubmission:s,preventScrollReset:c,replace:l}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let f=o.response.headers.get("Location");u(f,"Expected a Location header on the redirect Response"),f=ke(f,new URL(r.url),d);let h=p(A.location,f,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(te.test(f)){const r=e.history.createURL(f);n=r.origin!==t.location.origin||null==R(r.pathname,d)}if(n)return void(l?t.location.replace(f):t.location.assign(f))}D=null;let m=!0===l||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=A.navigation;!i&&!s&&g&&v&&y&&(i=Ve(A.navigation));let b=i||s;if(X.has(o.response.status)&&b&&Be(b.formMethod))await de(m,h,{submission:{...b,formAction:f},preventScrollReset:c||C,enableViewTransition:a?I:void 0});else{let e=qe(h,i);await de(m,h,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:c||C,enableViewTransition:a?I:void 0})}}async function me(e,t,n,r,o,a){let c,u={};try{c=await we(f,e,t,n,r,a,s,i,o,h.unstable_middleware)}catch(e){return n.forEach((t=>{u[t.route.id]={type:"error",error:e}})),u}for(let[e,n]of Object.entries(c))if(Ne(n)){let o=n.result;u[e]={type:"redirect",response:Oe(o,t,e,r,d)}}else u[e]=await xe(n);return u}async function ve(t,n,r,o,a){let i=me("loader",o,n,t,a,null),s=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",Se(e.history,t.path,t.controller.signal),[t.match],t.matches,a,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Ce(404,{pathname:t.path})}})})));return{loaderResults:await i,fetcherResults:(await s).reduce(((e,t)=>Object.assign(e,t)),{})}}function ye(){H=!0,$.forEach(((e,t)=>{Y.has(t)&&W.add(t),Re(t)}))}function be(e,t,n={}){A.fetchers.set(e,t),ae({fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ee(e,t,n,r={}){let o=Ae(A.matches,t);je(e),ae({errors:{[o.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Pe(e){return G.set(e,(G.get(e)||0)+1),K.has(e)&&K.delete(e),A.fetchers.get(e)||Z}function je(e){let t=A.fetchers.get(e);!Y.has(e)||t&&"loading"===t.state&&U.has(e)||Re(e),$.delete(e),U.delete(e),q.delete(e),K.delete(e),W.delete(e),A.fetchers.delete(e)}function Re(e){let t=Y.get(e);t&&(t.abort(),Y.delete(e))}function He(e){for(let t of e){let e=Ge(Pe(t).data);A.fetchers.set(t,e)}}function We(){let e=[],t=!1;for(let n of q){let r=A.fetchers.get(n);u(r,`Expected fetcher: ${n}`),"loading"===r.state&&(q.delete(n),e.push(n),t=!0)}return He(e),t}function Ye(e){let t=[];for(let[n,r]of U)if(r<e){let e=A.fetchers.get(n);u(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Re(n),U.delete(n),t.push(n))}return He(t),t.length>0}function ze(e){A.blockers.delete(e),Q.delete(e)}function Ke(e,t){let n=A.blockers.get(e)||ee;u("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(A.blockers);r.set(e,t),ae({blockers:r})}function Qe({currentLocation:e,nextLocation:t,historyAction:n}){if(0===Q.size)return;Q.size>1&&l(!1,"A router only supports one blocker at a time");let r=Array.from(Q.entries()),[o,a]=r[r.length-1],i=A.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Xe(e){let t=Ce(404,{pathname:e}),n=r||c,{matches:o,route:a}=Me(n);return{notFoundMatches:o,route:a,error:t}}function Je(e,t){if(k){return k(e,t.map((e=>x(e,A.loaderData))))||e.key}return e.key}function Ze(e,t){if(O){let n=Je(e,t),r=O[n];if("number"==typeof r)return r}return null}function et(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:w(n,r,d,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:w(n,r,d,!0)}}}return{active:!1,matches:null}}async function tt(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==r,l=r||c,p=s;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:u,fetcherKey:a,patch:(e,t)=>{o.aborted||fe(e,t,l,p,i)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!o.aborted&&(c=[...c])}if(o.aborted)return{type:"aborted"};let f=b(l,n,d);if(f)return{type:"success",matches:f};let h=w(l,n,d,!0);if(!h||u.length===h.length&&u.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};u=h}}return a={get basename(){return d},get future(){return h},get state(){return A},get routes(){return c},get window(){return t},initialize:function(){if(m=e.history.listen((({action:t,location:n,delta:r})=>{if(T)return T(),void(T=void 0);l(0===Q.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=Qe({currentLocation:A.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{T=e}));return e.history.go(-1*r),void Ke(o,{state:"blocked",location:n,proceed(){Ke(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(A.blockers);e.set(o,ee),ae({blockers:e})}})}return de(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(re);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,N);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(re,JSON.stringify(n))}catch(e){l(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,N);t.addEventListener("pagehide",e),L=()=>t.removeEventListener("pagehide",e)}return A.initialized||de("POP",A.location,{initialHydration:!0}),a},subscribe:function(e){return v.add(e),()=>v.delete(e)},enableScrollRestoration:function(e,t,n){if(O=e,S=t,k=n||null,!E&&A.navigation===J){E=!0;let e=Ze(A.location,A.matches);null!=e&&ae({restoreScrollPosition:e})}return()=>{O=null,S=null,k=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ie(A.location,A.matches,d,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:s}=se(!1,o,r),c=A.location,u=p(A.location,a,r&&r.state);u={...u,...e.history.encodeLocation(u)};let l=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===l?f="REPLACE":!1===l||null!=i&&Be(i.formMethod)&&i.formAction===A.location.pathname+A.location.search&&(f="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=Qe({currentLocation:c,nextLocation:u,historyAction:f});g?Ke(g,{state:"blocked",location:u,proceed(){Ke(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(A.blockers);e.set(g,ee),ae({blockers:e})}}):await de(f,u,{submission:i,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Re(t);let i=!0===(a&&a.flushSync),s=r||c,l=ie(A.location,A.matches,d,o,n,a?.relative),p=b(s,l,d),f=et(p,s,l);if(f.active&&f.matches&&(p=f.matches),!p)return void Ee(t,n,Ce(404,{pathname:l}),{flushSync:i});let{path:h,submission:m,error:v}=se(!0,l,a);if(v)return void Ee(t,n,v,{flushSync:i});let y=Ue(p,h),w=new g(e.unstable_getContext?await e.unstable_getContext():void 0),x=!0===(a&&a.preventScrollReset);m&&Be(m.formMethod)?await async function(t,n,o,a,i,s,l,p,f,h){function m(e){if(!e.route.action&&!e.route.lazy){let e=Ce(405,{method:h.formMethod,pathname:o,routeId:n});return Ee(t,n,e,{flushSync:p}),!0}return!1}if(ye(),$.delete(t),!l&&m(a))return;let g=A.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}(h,g),{flushSync:p});let v=new AbortController,y=Se(e.history,o,v.signal,h);if(l){let e=await tt(i,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ee(t,n,e.error,{flushSync:p});if(!e.matches)return void Ee(t,n,Ce(404,{pathname:o}),{flushSync:p});if(m(a=Ue(i=e.matches,o)))return}Y.set(t,v);let w=B,x=await me("action",y,[a],i,s,t),O=x[a.route.id];if(y.signal.aborted)return void(Y.get(t)===v&&Y.delete(t));if(K.has(t)){if(Fe(O)||Le(O))return void be(t,Ge(void 0))}else{if(Fe(O))return Y.delete(t),z>w?void be(t,Ge(void 0)):(q.add(t),be(t,$e(h)),he(y,O,!1,{fetcherSubmission:h,preventScrollReset:f}));if(Le(O))return void Ee(t,n,O.error)}let k=A.navigation.location||A.location,S=Se(e.history,k,v.signal),E=r||c,P="idle"!==A.navigation.state?b(E,A.navigation.location,d):A.matches;u(P,"Didn't find any matches after fetcher action");let j=++B;U.set(t,j);let _=$e(h,O.data);A.fetchers.set(t,_);let[T,C]=ue(e.history,A,P,h,k,!1,H,W,K,$,q,E,d,[a.route.id,O]);C.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=A.fetchers.get(t),r=$e(void 0,n?n.data:void 0);A.fetchers.set(t,r),Re(t),e.controller&&Y.set(t,e.controller)})),ae({fetchers:new Map(A.fetchers)});let I=()=>C.forEach((e=>Re(e.key)));v.signal.addEventListener("abort",I);let{loaderResults:R,fetcherResults:N}=await ve(P,T,C,S,s);if(v.signal.aborted)return;v.signal.removeEventListener("abort",I),U.delete(t),Y.delete(t),C.forEach((e=>Y.delete(e.key)));let L=Ie(R);if(L)return he(S,L.result,!1,{preventScrollReset:f});if(L=Ie(N),L)return q.add(L.key),he(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:V}=_e(A,P,R,void 0,C,N);if(A.fetchers.has(t)){let e=Ge(O.data);A.fetchers.set(t,e)}Ye(j),"loading"===A.navigation.state&&j>z?(u(M,"Expected pending action"),D&&D.abort(),ce(A.navigation.location,{matches:P,loaderData:F,errors:V,fetchers:new Map(A.fetchers)})):(ae({errors:V,loaderData:De(A.loaderData,F,P,V),fetchers:new Map(A.fetchers)}),H=!1)}(t,n,h,y,p,w,f.active,i,x,m):($.set(t,{routeId:n,path:h}),await async function(t,n,r,o,a,i,s,c,u,l){let d=A.fetchers.get(t);be(t,$e(l,d?d.data:void 0),{flushSync:c});let p=new AbortController,f=Se(e.history,r,p.signal);if(s){let e=await tt(a,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ee(t,n,e.error,{flushSync:c});if(!e.matches)return void Ee(t,n,Ce(404,{pathname:r}),{flushSync:c});o=Ue(a=e.matches,r)}Y.set(t,p);let h=B,m=await me("loader",f,[o],a,i,t),g=m[o.route.id];Y.get(t)===p&&Y.delete(t);if(f.signal.aborted)return;if(K.has(t))return void be(t,Ge(void 0));if(Fe(g))return z>h?void be(t,Ge(void 0)):(q.add(t),void await he(f,g,!1,{preventScrollReset:u}));if(Le(g))return void Ee(t,n,g.error);be(t,Ge(g.data))}(t,n,h,y,p,w,f.active,i,x,m))},revalidate:function(){oe||(oe=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}}()),ye(),ae({revalidation:"loading"});let e=oe.promise;return"submitting"===A.navigation.state?e:"idle"===A.navigation.state?(de(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),e):(de(M||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:!0===I}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Pe,deleteFetcher:function(e){let t=(G.get(e)||0)-1;t<=0?(G.delete(e),K.add(e)):G.set(e,t),ae({fetchers:new Map(A.fetchers)})},dispose:function(){m&&m(),L&&L(),v.clear(),D&&D.abort(),A.fetchers.forEach(((e,t)=>je(t))),A.blockers.forEach(((e,t)=>ze(t)))},getBlocker:function(e,t){let n=A.blockers.get(e)||ee;return Q.get(e)!==t&&Q.set(e,t),n},deleteBlocker:ze,patchRoutes:function(e,t){let n=null==r;fe(e,t,r||c,s,i),n&&(c=[...c],ae({}))},_internalFetchControllers:Y,_internalSetRoutes:function(e){s={},r=y(e,i,void 0,s)}},a}function ie(e,t,n,r,o,a){let i,s;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){s=e;break}}else i=t,s=t[t.length-1];let c=H(r||".",F(i),R(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(c.search=e.search,c.hash=e.hash),(null==r||""===r||"."===r)&&s){let e=ze(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();c.search=n?`?${n}`:""}}return"/"!==n&&(c.pathname="/"===c.pathname?n:W([n,c.pathname])),f(c)}function se(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&&!Ye(n.formMethod))return{path:t,error:Ce(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Ce(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),s=Re(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Be(i))return a();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:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Be(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ee(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ee(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Pe(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Pe(r)}catch(e){return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Be(c.formMethod))return{path:t,submission:c};let l=h(t);return e&&l.search&&ze(l.search)&&r.append("index",""),l.search=`?${r}`,{path:f(l),submission:c}}function ce(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 ue(e,t,n,r,o,a,i,s,c,u,l,d,p,f){let h=f?Le(f[1])?f[1].error:f[1].data:void 0,m=e.createURL(t.location),g=e.createURL(o),v=n;a&&t.errors?v=ce(n,Object.keys(t.errors)[0],!0):f&&Le(f[1])&&(v=ce(n,f[0]));let y=f?f[1].statusCode:void 0,w=y&&y>=400,x=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return le(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 s=t.matches[n],c=e;return pe(e,{currentUrl:m,currentParams:s.params,nextUrl:g,nextParams:c.params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!w&&(i||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||de(s,c))})})),O=[];return u.forEach(((e,o)=>{if(a||!n.some((t=>t.route.id===e.routeId))||c.has(o))return;let u=b(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=Ue(u,e.path),x=!1;l.has(o)?x=!1:s.has(o)?(s.delete(o),x=!0):x=f&&"idle"!==f.state&&void 0===f.data?i:pe(v,{currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!w&&i}),x&&O.push({key:o,routeId:e.routeId,path:e.path,matches:u,match:v,controller:new AbortController})})),[x,O]}function le(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 de(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function pe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function fe(e,t,n,r,o){let a;if(e){let t=r[e];u(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n;let i=y(t.filter((e=>!a.some((t=>he(e,t))))),o,[e||"_","patch",String(a?.length||"0")],r);a.push(...i)}function he(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=>he(e,t))))))}async function me(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 ge(e){return e.matches.some((e=>e.route.unstable_middleware))?ve(e,!1,(()=>me(e)),(e=>({[e.routeId]:{type:"error",result:e.error}}))):me(e)}async function ve(e,t,n,r){let{matches:o,request:a,params:i,context:s}=e,c={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 be({request:a,params:i,context:s},e,c,n);return c.propagateResult?t:c.handlerResult}catch(e){if(!(e instanceof ye))throw e;let n=await r(e);return t||!c.handlerResult?n:Object.assign(c.handlerResult,n)}}var ye=class{constructor(e,t){this.routeId=e,this.error=t}};async function be(e,t,n,r,o=0){let{request:a}=e;if(a.signal.aborted){if(a.signal.reason)throw a.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${a.method} ${a.url}`)}let i=t[o];if(!i)return n.handlerResult=await r(),n.handlerResult;let s,[c,u]=i,l=!1,d=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");l=!0;let a=await be(e,t,n,r,o+1);if(n.propagateResult)return s=a,s};try{let t=await u({request:e.request,params:e.params,context:e.context},d);return l?void 0===t?s:t:d()}catch(e){if(e instanceof ye)throw e;throw new ye(c,e)}}async function we(e,t,n,r,o,a,i,s,c,d){let p=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];u(o,"No route found in manifest");let a={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;l(!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||v.has(e)||(a[e]=r[e])}Object.assign(o,a),Object.assign(o,{...t(o),lazy:void 0})}(e.route,s,i):void 0));d&&await Promise.all(p);let f=o.map(((e,o)=>{let a=p[o],i=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:i,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,n,r,o,a){let i,s,c=r=>{let i,c=new Promise(((e,t)=>i=t));s=()=>i(),t.signal.addEventListener("abort",s);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:a},...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,c])};try{let o=n.route[e];if(r)if(o){let e,[t]=await Promise.all([c(o).catch((t=>{e=t})),r]);if(void 0!==e)throw e;i=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 Ce(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}i=await c(o)}else{if(!o){let e=new URL(t.url);throw Ce(404,{pathname:e.pathname+e.search})}i=await c(o)}}catch(e){return{type:"error",result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,n,e,a,r,c):Promise.resolve({type:"data",result:void 0}))}})),h=await e({matches:f,request:n,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(p)}catch(e){}return h}async function xe(e){let{result:t,type:n}=e;if(We(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 U(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?He(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 U(t.init?.status||500,void 0,t.data),statusCode:V(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:V(t)?t.status:void 0}:He(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 Oe(e,t,n,r,o){let a=e.headers.get("Location");if(u(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!te.test(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ie(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function ke(e,t,n){if(te.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=R(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Se(e,t,n,r){let o=e.createURL(Re(t)).toString(),a={signal:n};if(r&&Be(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Ee(r.formData):a.body=r.formData}return new Request(o,a)}function Ee(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Pe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function je(e,t,n,r=!1,o=!1){let a,i={},s=null,c=!1,l={},d=n&&Le(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(u(!Fe(f),"Cannot handle redirect results in processLoaderData"),Le(f)){let t=f.error;if(void 0!==d&&(t=d,d=void 0),s=s||{},o)s[p]=t;else{let n=Ae(e,p);null==s[n.route.id]&&(s[n.route.id]=t)}r||(i[p]=oe),c||(c=!0,a=V(f.error)?f.error.status:500),f.headers&&(l[p]=f.headers)}else i[p]=f.data,f.statusCode&&200!==f.statusCode&&!c&&(a=f.statusCode),f.headers&&(l[p]=f.headers)})),void 0!==d&&n&&(s={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:a||200,loaderHeaders:l}}function _e(e,t,n,r,o,a){let{loaderData:i,errors:s}=je(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,i=a[n];if(u(i,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(Le(i)){let t=Ae(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(Fe(i))u(!1,"Unhandled fetcher revalidation redirect");else{let t=Ge(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:s}}function De(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==oe)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Te(e){return e?Le(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ae(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 Me(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 Ce(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?s=`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&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",s=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?s=`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&&(s=`Invalid request method "${r.toUpperCase()}"`)),new U(e||500,i,new Error(s),!0)}function Ie(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Fe(r))return{key:n,result:r}}}function Re(e){return f({..."string"==typeof e?h(e):e,hash:""})}function Ne(e){return We(e.result)&&Q.has(e.result.status)}function Le(e){return"error"===e.type}function Fe(e){return"redirect"===(e&&e.type)}function He(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function We(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ye(e){return K.has(e.toUpperCase())}function Be(e){return $.has(e.toUpperCase())}function ze(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ue(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&ze(n||""))return e[e.length-1];let r=L(e);return r[r.length-1]}function Ve(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function qe(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 $e(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 Ge(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 Ke=o.createContext(null);Ke.displayName="DataRouter";var Qe=o.createContext(null);Qe.displayName="DataRouterState";var Xe=o.createContext({isTransitioning:!1});Xe.displayName="ViewTransition";var Je=o.createContext(new Map);Je.displayName="Fetchers";var Ze=o.createContext(null);Ze.displayName="Await";var et=o.createContext(null);et.displayName="Navigation";var tt=o.createContext(null);tt.displayName="Location";var nt=o.createContext({outlet:null,matches:[],isDataRoute:!1});nt.displayName="Route";var rt=o.createContext(null);rt.displayName="RouteError";var ot=!0;function at(){return null!=o.useContext(tt)}function it(){return u(at(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(tt).location}var st="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ct(e){o.useContext(et).static||o.useLayoutEffect(e)}function ut(){let{isDataRoute:e}=o.useContext(nt);return e?function(){let{router:e}=yt("useNavigate"),t=wt("useNavigate"),n=o.useRef(!1);return ct((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{l(n.current,st),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){u(at(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(Ke),{basename:t,navigator:n}=o.useContext(et),{matches:r}=o.useContext(nt),{pathname:a}=it(),i=JSON.stringify(F(r)),s=o.useRef(!1);return ct((()=>{s.current=!0})),o.useCallback(((r,o={})=>{if(l(s.current,st),!s.current)return;if("number"==typeof r)return void n.go(r);let c=H(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:W([t,c.pathname])),(o.replace?n.replace:n.push)(c,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function lt(e,{relative:t}={}){let{matches:n}=o.useContext(nt),{pathname:r}=it(),a=JSON.stringify(F(n));return o.useMemo((()=>H(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function dt(e,t,n,r){u(at(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:i}=o.useContext(et),{matches:s}=o.useContext(nt),c=s[s.length-1],d=c?c.params:{},p=c?c.pathname:"/",f=c?c.pathnameBase:"/",m=c&&c.route;if(ot){let e=m&&m.path||"";kt(p,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (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 g,v=it();if(t){let e="string"==typeof t?h(t):t;u("/"===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.`),g=e}else g=v;let y=g.pathname||"/",w=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=!i&&n&&n.matches&&n.matches.length>0?n.matches:b(e,{pathname:w});ot&&(l(m||null!=x,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),l(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.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=gt(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:W([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:W([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&O?o.createElement(tt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},O):O}function pt(){let e=xt(),t=V(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)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return ot&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=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:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"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:a},n):null,s)}var ft=o.createElement(pt,null),ht=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(nt.Provider,{value:this.props.routeContext},o.createElement(rt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function mt({routeContext:e,match:t,children:n}){let r=o.useContext(Ke);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(nt.Provider,{value:e},n)}function gt(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 a=e,i=n?.errors;if(null!=i){let e=a.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=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){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,r,u)=>{let l,d=!1,p=null,f=null;n&&(l=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||ft,s&&(c<0&&0===u?(kt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):c===u&&(d=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,u+1)),m=()=>{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(mt,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===u)?o.createElement(ht,{location:n.location,revalidation:n.revalidation,component:p,error:l,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function vt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yt(e){let t=o.useContext(Ke);return u(t,vt(e)),t}function bt(e){let t=o.useContext(Qe);return u(t,vt(e)),t}function wt(e){let t=function(e){let t=o.useContext(nt);return u(t,vt(e)),t}(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function xt(){let e=o.useContext(rt),t=bt("useRouteError"),n=wt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Ot={};function kt(e,t,n){t||Ot[e]||(Ot[e]=!0,l(!1,n))}var St={};function Et(e,t){e||St[t]||(St[t]=!0,console.warn(t))}var Pt=!0;function jt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Pt&&e.element&&l(!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&&(Pt&&e.hydrateFallbackElement&&l(!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&&(Pt&&e.errorElement&&l(!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}var _t=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 Dt({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[a,i]=o.useState(),[s,c]=o.useState({isTransitioning:!1}),[u,l]=o.useState(),[d,p]=o.useState(),[f,h]=o.useState(),m=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:a,flushSync:s,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&m.current.set(t,e.data)})),a.forEach((e=>m.current.delete(e))),Et(!1===s||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(Et(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&&s){t((()=>{d&&(u&&u.resolve(),d.skipTransition()),c({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),i(void 0),c({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(u&&u.resolve(),d.skipTransition(),h({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(i(n),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&s?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,u]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{s.isTransitioning&&!s.flushSync&&l(new _t)}),[s]),o.useEffect((()=>{if(u&&a&&e.window){let t=a,n=u.promise,s=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));s.finished.finally((()=>{l(void 0),p(void 0),i(void 0),c({isTransitioning:!1})})),p(s)}}),[a,u,e.window]),o.useEffect((()=>{u&&a&&n.location.key===a.location.key&&u.resolve()}),[u,d,n.location,a]),o.useEffect((()=>{!s.isTransitioning&&f&&(i(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),h(void 0))}),[s.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(Ke.Provider,{value:b},o.createElement(Qe.Provider,{value:n},o.createElement(Je.Provider,{value:m.current},o.createElement(Xe.Provider,{value:s},o.createElement(Ct,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Tt,{routes:e.routes,future:e.future,state:n})))))),null)}var Tt=o.memo((function({routes:e,future:t,state:n}){return dt(e,void 0,n,t)}));function At({to:e,replace:t,state:n,relative:r}){u(at(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(et);l(!a,"<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:i}=o.useContext(nt),{pathname:s}=it(),c=ut(),d=H(e,F(i),s,"path"===r),p=JSON.stringify(d);return o.useEffect((()=>{c(JSON.parse(p),{replace:t,state:n,relative:r})}),[c,p,r,t,n]),null}function Mt(e){u(!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 Ct({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){u(!at(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=o.useMemo((()=>({basename:s,navigator:a,static:i,future:{}})),[s,a,i]);"string"==typeof n&&(n=h(n));let{pathname:d="/",search:p="",hash:f="",state:m=null,key:g="default"}=n,v=o.useMemo((()=>{let e=R(d,s);return null==e?null:{location:{pathname:e,search:p,hash:f,state:m,key:g},navigationType:r}}),[s,d,p,f,m,g,r]);return l(null!=v,`<Router basename="${s}"> is not able to match the URL "${d}${p}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(et.Provider,{value:c},o.createElement(tt.Provider,{children:t,value:v}))}function It({children:e,location:t}){return dt(Rt(e),t)}o.Component;function Rt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Rt(e.props.children,a));u(e.type===Mt,`[${"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>`),u(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||a.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&&(i.children=Rt(e.props.children,a)),n.push(i)})),n}var Nt="get",Lt="application/x-www-form-urlencoded";function Ft(e){return null!=e&&"string"==typeof e.tagName}var Ht=null;var Wt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yt(e){return null==e||Wt.has(e)?e:(l(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lt}"`),null)}function Bt(e,t){let n,r,o,a,i;if(function(e){return Ft(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?R(i,t):null,n=e.getAttribute("method")||Nt,o=Yt(e.getAttribute("enctype"))||Lt,a=new FormData(e)}else if(function(e){return Ft(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ft(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?R(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Nt,o=Yt(e.getAttribute("formenctype"))||Yt(i.getAttribute("enctype"))||Lt,a=new FormData(i,e),!function(){if(null===Ht)try{new FormData(document.createElement("form"),0),Ht=!1}catch(e){Ht=!0}return Ht}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Ft(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Nt,r=null,o=Lt,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function zt(e,t){if(!1===e||null==e)throw new Error(t)}async function Ut(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 Vt(e){return null!=e&&"string"==typeof e.page}function qt(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 $t(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||s(e,t))):"data"===a?t.filter(((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(i(t,a)||s(t,a))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 Gt(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 Kt(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Vt(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=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(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function Qt(e){return{__html:e}}Symbol("SingleFetchRedirect");function Xt(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&&"/"===R(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function Jt({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(V(e))return o.createElement(Zt,{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(Zt,{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 Zt({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=on();return a.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(pn,null):null)))}function en(e){return!0===e}function tn(){let e=o.useContext(Ke);return zt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nn(){let e=o.useContext(Qe);return zt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rn=o.createContext(void 0);function on(){let e=o.useContext(rn);return zt(e,"You must render this element inside a <HydratedRouter> element"),e}function an(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function sn(e,t,n){if(n&&!dn)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 cn({page:e,...t}){let{router:n}=tn(),r=o.useMemo((()=>b(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(ln,{page:e,matches:r,...t}):null}function un(e){let{manifest:t,routeModules:n}=on(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return Kt((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Ut(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(qt).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||a(e)})),()=>{r=!0}}),[e,t,n]),r}function ln({page:e,matches:t,...n}){let r=it(),{manifest:a,routeModules:i}=on(),{basename:s}=tn(),{loaderData:c,matches:u}=nn(),l=o.useMemo((()=>$t(e,t,u,a,r,"data")),[e,t,u,a,r]),d=o.useMemo((()=>$t(e,t,u,a,r,"assets")),[e,t,u,a,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=a.routes[e.route.id];t&&t.hasLoader&&(!l.some((t=>t.route.id===e.route.id))&&e.route.id in c&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let u=Xt(e,s);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]}),[s,c,r,a,l,t,e,i]),f=o.useMemo((()=>Gt(d,a)),[d,a]),h=un(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}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,...t}))))}rn.displayName="FrameworkContext";var dn=!1;function pn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:a,renderMeta:i}=on(),{router:s,static:c,staticContext:u}=tn(),{matches:l}=nn(),d=en(a);i&&(i.didRenderScripts=!0);let p=sn(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());`:" ",a=c?`${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];zt(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,hydrateFallbackModule:s,module:c}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:c,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(c)};`:[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=b(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let a=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return{...e,routes:a}}(t,s),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:Qt(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Qt(a),type:"module",async:!0}))}),[]),h=dn?[]:t.entry.imports.concat(Gt(p,t,{includeHydrateFallback:!0}));return dn?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)]}(h).map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),f)}function fn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var hn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{hn&&(window.__reactRouterVersion="7.3.0")}catch(e){}function mn(e,t){return ae({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:c({window:t?.window}),hydrationData:t?.hydrationData||gn(),routes:e,mapRouteProperties:jt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function gn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:vn(e.errors)}),e}function vn(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 U(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 yn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:s,target:c,to:d,preventScrollReset:p,viewTransition:h,...m},g){let v,{basename:y}=o.useContext(et),b="string"==typeof d&&yn.test(d),w=!1;if("string"==typeof d&&b&&(v=d,hn))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=R(t.pathname,y);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:w=!0}catch(e){l(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){u(at(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(et),{hash:a,pathname:i,search:s}=lt(e,{relative:t}),c=i;return"/"!==n&&(c="/"===i?n:W([n,i])),r.createHref({pathname:c,search:s,hash:a})}(d,{relative:r}),[O,k,S]=function(e,t){let n=o.useContext(rn),[r,a]=o.useState(!1),[i,s]=o.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{a(!0)},m=()=>{a(!1),s(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:an(c,h),onBlur:an(u,m),onMouseEnter:an(l,h),onMouseLeave:an(d,m),onTouchStart:an(p,h)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:s}={}){let c=ut(),u=it(),l=lt(e,{relative:i});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:f(u)===f(l);c(e,{replace:t,state:r,preventScrollReset:a,relative:i,viewTransition:s})}}),[u,c,l,n,r,t,e,a,i,s])}(d,{replace:i,state:s,target:c,preventScrollReset:p,relative:r,viewTransition:h});let P=o.createElement("a",{...m,...S,href:v||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:fn(g,k),target:c,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,P,o.createElement(cn,{page:x})):P}));bn.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:s,children:c,...l},d){let p=lt(i,{relative:l.relative}),f=it(),h=o.useContext(Qe),{navigator:m,basename:g}=o.useContext(et),v=null!=h&&function(e,t={}){let n=o.useContext(Xe);u(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=On("useViewTransitionState"),a=lt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=R(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=R(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=C(a.pathname,s)||null!=C(a.pathname,i)}(p)&&!0===s,y=m.encodeLocation?m.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=R(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},P=k?e:void 0;O="function"==typeof n?n(E):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof a?a(E):a;return o.createElement(bn,{...l,"aria-current":P,className:O,ref:d,style:j,to:i,viewTransition:s},"function"==typeof c?c(E):c)})).displayName="NavLink";var wn=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=Nt,action:c,onSubmit:l,relative:d,preventScrollReset:p,viewTransition:h,...m},g)=>{let v=En(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(et),r=o.useContext(nt);u(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...lt(e||".",{relative:t})},s=it();if(null==e){i.search=s.search;let e=new URLSearchParams(i.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();i.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:W([n,i.pathname]));return f(i)}(c,{relative:d}),b="get"===s.toLowerCase()?"get":"post",w="string"==typeof c&&yn.test(c);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||s;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:a,state:i,relative:d,preventScrollReset:p,viewTransition:h})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function xn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function On(e){let t=o.useContext(Ke);return u(t,xn(e)),t}wn.displayName="Form";var kn=0,Sn=()=>`__${String(++kn)}__`;function En(){let{router:e}=On("useSubmit"),{basename:t}=o.useContext(et),n=wt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:s,formData:c,body:u}=Bt(r,t);if(!1===o.navigate){let t=o.fetcherKey||Sn();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||s,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:()=>a});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 a(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={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[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,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(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:()=>s,Tw:()=>d,Zz:()=>l,ve:()=>p,y$:()=>c});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function s(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 c(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(c)(e,t)}let a=e,u=t,l=new Map,d=l,p=0,f=!1;function h(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function m(){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;h();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,h(),d.delete(n),l=null}}}function v(e){if(!s(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=a(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:i.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,v({type:i.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(m())}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 a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const s={};for(let a=0;a<o.length;a++){const c=o[a],u=n[c],l=e[c],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[c]=d,i=i||d!==l}return i=i||o.length!==Object.keys(e).length,i?s:e}}function l(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function d(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const s={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},c=e.map((e=>e(s)));return i=l(...c)(a.dispatch),{...a,dispatch:i}}}function p(e){return s(e)&&"type"in e&&"string"==typeof e.type}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=i,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.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);c.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;"object"==typeof i&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,c.d(o,a),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"47ac30cdd85fbaed1d6d",211:"97e51eb60a97a6a4c59b",222:"b74ba27555e127ba5284",262:"049cd746dbac10ddf455",264:"3de469345619fa668571",310:"4c7fbec326c4ad5c79d6",389:"ec325b8aeb9c696940cc",672:"78ed568b85e32ed20610",722:"e2cf5bd8e1ae975acf8d",910:"588e37cd1abb6b053a50",916:"55494b18475f3e79135e"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-devcon:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,s;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")==a+n){i=d;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={792:0};c.f.j=(t,n)=>{var r=c.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 a=c.p+c.u(t),i=new Error;c.l(a,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in i)c.o(i,r)&&(c.m[r]=i[r]);if(s)s(c)}for(t&&t(n);u<a.length;u++)o=a[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_devcon=this.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;return(()=>{"use strict";var e=c(26396),t=c.n(e),n=c(4883),r=c.n(n),o=c(76744),a=c(81845);
|
|
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},a=r.useSyncExternalStore,i=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=i(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==l&&p.hasValue){var t=p.value;if(l(t,e))return i=t}return i=e}if(t=i,o(a,e))return t;var n=r(e);return void 0!==l&&l(t,n)?(a=e,t):(a=e,i=n)}var a,i,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var f=a(e,d[0],d[1]);return s((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,a=new Uint8Array(16);function i(){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(a)}for(var s=[],c=0;c<256;++c)s.push((c+256).toString(16).slice(1));function u(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[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||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return u(o)}},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,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},l={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(l,{Provider:()=>se,ReactReduxContext:()=>ne,batch:()=>ye,connect:()=>ie,createDispatchHook:()=>pe,createSelectorHook:()=>ge,createStoreHook:()=>le,shallowEqual:()=>Y,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(s(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"),h=Symbol.for("react.portal"),m=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,P=k;function j(e){return function(e){if("object"==typeof e&&null!==e){let{$$typeof:t}=e;switch(t){case f:switch(e=e.type){case m: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 h:return t}}}(e)===k}function _(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,p=!1;function f(p,f){let h=!a(f,c),m=!o(p,s,f,c);return s=p,c=f,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return p?f(o,a):function(o,a){return s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),p=!0,d}(o,a)}}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 A(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 M(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function C(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,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),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 c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=R)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},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 Y(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 B={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V={[E]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[P]:U};function q(e){return j(e)?U:V[e.$$typeof]||B}var $=Object.defineProperty,G=Object.getOwnPropertyNames,K=Object.getOwnPropertySymbols,Q=Object.getOwnPropertyDescriptor,X=Object.getPrototypeOf,J=Object.prototype;function Z(e,t){if("string"!=typeof t){if(J){let n=X(t);n&&n!==J&&Z(e,n)}let n=G(t);K&&(n=n.concat(K(t)));let r=q(e),o=q(t);for(let a=0;a<n.length;++a){let i=n[a];if(!(z[i]||o&&o[i]||r&&r[i])){let n=Q(t,i);try{$(e,i,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,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function ae(e,t){return e===t}var ie=function(e,t,n,{pure:r,areStatesEqual:o=ae,areOwnPropsEqual:a=Y,areStatePropsEqual:i=Y,areMergedPropsEqual:s=Y,forwardRef:c=!1,context:u=ne}={}){let l=u,p=function(e){return e?"function"==typeof e?A(e):M(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?A(e):M(e,"mapDispatchToProps"):D((e=>({dispatch:e})))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){let s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):M(e,"mergeProps"):()=>C}(n),m=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:s};function u(t){let[n,o,a]=d.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),i=d.useMemo((()=>l),[n,l]),s=d.useContext(i),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,p=c?t.store:s.store,f=u?s.getServerState:p.getState,h=d.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return _(t(e,o),n(e,o),r(e,o),e,o)}(p.dispatch,r)),[p]),[g,v]=d.useMemo((()=>{if(!m)return re;let e=N(p,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,s]),y=d.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=d.useRef(void 0),w=d.useRef(a),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,P=d.useMemo((()=>()=>x.current&&a===w.current?x.current:h(p.getState(),a)),[p,a]),j=d.useMemo((()=>e=>g?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,p=null,f=()=>{if(d||!s.current)return;let e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,p=e}n||(p=null),e===a.current?i.current||u():(a.current=e,c.current=e,i.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,p,g,h,w,b,O,k,x,v,e):()=>{}),[g]);!function(e,t,n){H((()=>e(...t)),n)}(oe,[w,b,O,a,x,v]);try{E=d.useSyncExternalStore(j,P,f?()=>h(f(),a):P)}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((()=>m?d.createElement(i.Provider,{value:y},D):D),[i,D,y])}let g=d.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){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 se=function(e){let{children:t,context:n,serverState:r,store:o}=e,a=d.useMemo((()=>{let e=N(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}}),[o,r]),i=d.useMemo((()=>o.getState()),[o]);return H((()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,i]),d.createElement((n||ne).Provider,{value:a},t)};function ce(e=ne){return function(){return d.useContext(e)}}var ue=ce();function le(e=ne){let t=e===ne?ue:ce(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(),he=n(78418),me=(e,t)=>e===t;function ge(e=ne){let t=e===ne?ue:ce(e),n=(e,n={})=>{let{equalityFn:r=me}="function"==typeof n?{equalityFn:n}:n,o=t(),{store:a,subscription:i,getServerState:s}=o,c=(d.useRef(!0),d.useCallback({[e.name]:t=>e(t)}[e.name],[e])),u=(0,he.useSyncExternalStoreWithSelector)(i.addNestedSub,a.getState,s||a.getState,c,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:()=>X,ll:()=>G,rD:()=>ae,__:()=>K,UU:()=>Z,jD:()=>te,mG:()=>re,ER:()=>oe,cY:()=>Q,iD:()=>$,BN:()=>J,Ej:()=>ee});const r=["top","right","bottom","left"],o=["start","end"],a=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),i=Math.min,s=Math.max,c=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),u={start:"end",end:"start"};function l(e,t,n){return s(e,i(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 h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function v(e){return h(g(e))}function y(e,t,n){void 0===n&&(n=!1);const r=f(e),o=v(e),a=m(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=w(i)),[i,w(i)]}function b(e){return e.replace(/start|end/g,(e=>u[e]))}function w(e){return e.replace(/left|right|bottom|top/g,(e=>c[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 a=g(t),i=v(t),s=m(i),c=p(t),u="y"===a,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let y;switch(c){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[i]-=h*(n&&u?-1:1);break;case"end":y[i]+=h*(n&&u?-1:1)}return y}async function S(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=d(t,e),m=x(h),g=s[f?"floating"===p?"reference":"floating":p],v=O(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===p?{...i.floating,x:r,y:o}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),w=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},k=O(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-k.top+m.top)/w.y,bottom:(k.bottom-v.bottom+m.bottom)/w.y,left:(v.left-k.left+m.left)/w.x,right:(k.right-v.right+m.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 P(e){return r.some((t=>e[t]>=0))}function j(e){const t=i(...e.map((e=>e.left))),n=i(...e.map((e=>e.top)));return{x:t,y:n,width:s(...e.map((e=>e.right)))-t,height:s(...e.map((e=>e.bottom)))-n}}const _=Math.min,D=Math.max,T=Math.round,A=Math.floor,M=e=>({x:e,y:e});var C=n(88963);function I(e){const t=(0,C.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=(0,C.sb)(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=T(n)!==a||T(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function R(e){return(0,C.vq)(e)?e:e.contextElement}function N(e){const t=R(e);if(!(0,C.sb)(t))return M(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=I(t);let i=(a?T(n.width):n.width)/r,s=(a?T(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const L=M(0);function F(e){const t=(0,C.zk)(e);return(0,C.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(),a=R(e);let i=M(1);t&&(r?(0,C.vq)(r)&&(i=N(r)):i=N(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,C.zk)(e))&&t}(a,n,r)?F(a):M(0);let c=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,l=o.width/i.x,d=o.height/i.y;if(a){const e=(0,C.zk)(a),t=r&&(0,C.vq)(r)?(0,C.zk)(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=N(o),t=o.getBoundingClientRect(),r=(0,C.L9)(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=a,u+=i,n=(0,C.zk)(o),o=n.frameElement}}return O({width:l,height:d,x:c,y:u})}function W(e){return H((0,C.ep)(e)).left+(0,C.CP)(e).scrollLeft}function Y(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=(0,C.zk)(e),r=(0,C.ep)(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const e=(0,C.Tc)();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=(0,C.ep)(e),n=(0,C.CP)(e),r=e.ownerDocument.body,o=D(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=D(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+W(e);const s=-n.scrollTop;return"rtl"===(0,C.L9)(r).direction&&(i+=D(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}((0,C.ep)(e));else if((0,C.vq)(t))r=function(e,t){const n=H(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=(0,C.sb)(e)?N(e):M(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=F(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return O(r)}function B(e,t){const n=(0,C.$4)(e);return!(n===t||!(0,C.vq)(n)||(0,C.eu)(n))&&("fixed"===(0,C.L9)(n).position||B(n,t))}function z(e,t,n){const r=(0,C.sb)(t),o=(0,C.ep)(t),a="fixed"===n,i=H(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=M(0);if(r||!r&&!a)if(("body"!==(0,C.mq)(t)||(0,C.ZU)(o))&&(s=(0,C.CP)(t)),r){const e=H(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=W(o));return{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function U(e){return"static"===(0,C.L9)(e).position}function V(e,t){return(0,C.sb)(e)&&"fixed"!==(0,C.L9)(e).position?t?t(e):e.offsetParent:null}function q(e,t){const n=(0,C.zk)(e);if((0,C.Tf)(e))return n;if(!(0,C.sb)(e)){let t=(0,C.$4)(e);for(;t&&!(0,C.eu)(t);){if((0,C.vq)(t)&&!U(t))return t;t=(0,C.$4)(t)}return n}let r=V(e,t);for(;r&&(0,C.Lv)(r)&&U(r);)r=V(r,t);return r&&(0,C.eu)(r)&&U(r)&&!(0,C.sQ)(r)?n:r||(0,C.gJ)(e)||n}const $={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=(0,C.ep)(r),s=!!t&&(0,C.Tf)(t.floating);if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},u=M(1);const l=M(0),d=(0,C.sb)(r);if((d||!d&&!a)&&(("body"!==(0,C.mq)(r)||(0,C.ZU)(i))&&(c=(0,C.CP)(r)),(0,C.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-c.scrollLeft*u.x+l.x,y:n.y*u.y-c.scrollTop*u.y+l.y}},getDocumentElement:C.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?(0,C.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,C.v9)(e,[],!1).filter((e=>(0,C.vq)(e)&&"body"!==(0,C.mq)(e))),o=null;const a="fixed"===(0,C.L9)(e).position;let i=a?(0,C.$4)(e):e;for(;(0,C.vq)(i)&&!(0,C.eu)(i);){const t=(0,C.L9)(i),n=(0,C.sQ)(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||(0,C.ZU)(i)&&!n&&B(e,i))?r=r.filter((e=>e!==i)):o=t,i=(0,C.$4)(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=Y(t,n,o);return e.top=D(r.top,e.top),e.right=_(r.right,e.right),e.bottom=_(r.bottom,e.bottom),e.left=D(r.left,e.left),e}),Y(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:q,getElementRects:async function(e){const t=this.getOffsetParent||q,n=this.getDimensions,r=await n(e.floating);return{reference:z(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:C.vq,isRTL:function(e){return"rtl"===(0,C.L9)(e).direction}};function G(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=R(e),l=o||a?[...u?(0,C.v9)(u):[],...(0,C.v9)(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=(0,C.ep)(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),a();const{left:u,top:l,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-A(l)+"px "+-A(o.clientWidth-(u+d))+"px "+-A(o.clientHeight-(l+p))+"px "+-A(u)+"px",threshold:D(0,_(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(u,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?H(e):null;return c&&function t(){const r=H(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const K=S,Q=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=p(n),s=f(n),c="y"===g(n),u=["left","top"].includes(i)?-1:1,l=a&&c?-1:1,h=d(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"==typeof y&&(v="end"===s?-1*y:y),c?{x:v*l,y:m*u}:{x:m*u,y:v*l}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},X=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:s,placement:c,platform:u,elements:l}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:g=a,autoAlignment:v=!0,...w}=d(e,t),x=void 0!==m||g===a?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))}(m||null,v,g):g,O=await S(t,w),k=(null==(n=s.autoPlacement)?void 0:n.index)||0,E=x[k];if(null==E)return{};const P=y(E,i,await(null==u.isRTL?void 0:u.isRTL(l.floating)));if(c!==E)return{reset:{placement:x[0]}};const j=[O[p(E)],O[P[0]],O[P[1]]],_=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:j}],D=x[k+1];if(D)return{data:{index:k+1,overflows:_},reset:{placement:D}};const T=_.map((e=>{const t=f(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),A=(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 A!==c?{data:{index:k+1,overflows:_},reset:{placement:A}}:{}}}},J=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),u={x:n,y:r},f=await S(t,c),m=g(p(o)),v=h(m);let y=u[v],b=u[m];if(a){const e="y"===v?"bottom":"right";y=l(y+f["y"===v?"top":"left"],y,y-f[e])}if(i){const e="y"===m?"bottom":"right";b=l(b+f["y"===m?"top":"left"],b,b-f[e])}const w=s.fn({...t,[v]:y,[m]: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:a,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...O}=d(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const k=p(o),E=p(s)===s,P=await(null==c.isRTL?void 0:c.isRTL(u.floating)),j=m||(E||!x?[w(s)]:function(e){const t=w(e);return[b(e),t,b(t)]}(s));m||"none"===v||j.push(...function(e,t,n,r){const o=f(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(p(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(b)))),a}(s,x,v,P));const _=[s,...j],D=await S(t,O),T=[];let A=(null==(r=a.flip)?void 0:r.overflows)||[];if(l&&T.push(D[k]),h){const e=y(o,i,P);T.push(D[e[0]],D[e[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every((e=>e<=0))){var M,C;const e=((null==(M=a.flip)?void 0:M.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(C=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(g){case"bestFit":{var I;const e=null==(I=A.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=s}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:a}=t,{apply:c=(()=>{}),...u}=d(e,t),l=await S(t,u),h=p(n),m=f(n),v="y"===g(n),{width:y,height:b}=r.floating;let w,x;"top"===h||"bottom"===h?(w=h,x=m===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(x=h,w="end"===m?"top":"bottom");const O=b-l[w],k=y-l[x],E=!t.middlewareData.shift;let P=O,j=k;if(v){const e=y-l.left-l.right;j=m||E?i(k,e):e}else{const e=b-l.top-l.bottom;P=m||E?i(O,e):e}if(E&&!m){const e=s(l.left,0),t=s(l.right,0),n=s(l.top,0),r=s(l.bottom,0);v?j=y-2*(0!==e||0!==t?e+t:s(l.left,l.right)):P=b-2*(0!==n||0!==r?n+r:s(l.top,l.bottom))}await c({...t,availableWidth:j,availableHeight:P});const _=await o.getDimensions(a.floating);return y!==_.width||b!==_.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:P(e)}}}case"escaped":{const e=E(await S(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}},ne=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:p,padding:h=0}=d(e,t)||{};if(null==p)return{};const g=x(h),y={x:n,y:r},b=v(o),w=m(b),O=await s.getDimensions(p),k="y"===b,S=k?"top":"left",E=k?"bottom":"right",P=k?"clientHeight":"clientWidth",j=a.reference[w]+a.reference[b]-y[b]-a.floating[w],_=y[b]-a.reference[b],D=await(null==s.getOffsetParent?void 0:s.getOffsetParent(p));let T=D?D[P]:0;T&&await(null==s.isElement?void 0:s.isElement(D))||(T=c.floating[P]||a.floating[w]);const A=j/2-_/2,M=T/2-O[w]/2-1,C=i(g[S],M),I=i(g[E],M),R=C,N=T-O[w]-I,L=T/2-O[w]/2+A,F=l(R,L,N),H=!u.arrow&&null!=f(o)&&L!==F&&a.reference[w]/2-(L<R?C: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:a,strategy:c}=t,{padding:u=2,x:l,y:f}=d(e,t),h=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),m=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(j(e))))}(h),v=O(j(h)),y=x(u);const b=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=l&&null!=f)return m.find((e=>l>e.left-y.left&&l<e.right+y.right&&f>e.top-y.top&&f<e.bottom+y.bottom))||v;if(m.length>=2){if("y"===g(n)){const e=m[0],t=m[m.length-1],r="top"===p(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===p(n),t=s(...m.map((e=>e.right))),r=i(...m.map((e=>e.left))),o=m.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,c=o[o.length-1].bottom;return{top:a,bottom:c,left:r,right:t,width:t-r,height:c-a,x:r,y:a}}return v}},floating:r.floating,strategy:c});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:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=d(e,t),l={x:n,y:r},f=g(o),m=h(f);let v=l[m],y=l[f];const b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+w.mainAxis,n=a.reference[m]+a.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var x,O;const e="y"===m?"width":"height",t=["top","left"].includes(p(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(x=i.offset)?void 0:x[f])||0)+(t?0:w.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(O=i.offset)?void 0:O[f])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[m]:v,[f]:y}}}},ae=(e,t,n)=>{const r=new Map,o={platform:$,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=k(u,r,c),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:l,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:u,platform:i,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=v?v:d,f={...f,[a]:{...f[a],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=k(u,p,c))),n=-1)}return{x:l,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:a})}},88963:(e,t,n)=>{"use strict";function r(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function i(e){return e instanceof Node||e instanceof o(e).Node}function s(e){return e instanceof Element||e instanceof o(e).Element}function c(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=m(),n=s(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 h(e){let t=b(e);for(;c(t)&&!g(t);){if(f(t))return t;if(p(t))return null;t=b(t)}return null}function m(){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 s(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||a(e);return u(t)?t.host:t}function w(e){const t=b(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&l(t)?t:w(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=w(e),i=a===(null==(r=e.ownerDocument)?void 0:r.body),s=o(a);return i?t.concat(s,s.visualViewport||[],l(a)?a:[],s.frameElement&&n?x(s.frameElement):[]):t.concat(a,x(a,[],n))}n.d(t,{$4:()=>b,CP:()=>y,L9:()=>v,Lv:()=>d,Tc:()=>m,Tf:()=>p,ZU:()=>l,ep:()=>a,eu:()=>g,gJ:()=>h,mq:()=>r,sQ:()=>f,sb:()=>c,v9:()=>x,vq:()=>s,zk:()=>o})},34743:(e,t,n)=>{"use strict";n.d(t,{BN:()=>h,ER:()=>m,Ej:()=>v,RK:()=>y,UE:()=>x,UU:()=>g,cY:()=>f,jD:()=>b,mG:()=>w,we:()=>d});var r=n(80938),o=n(4883),a=n(81845),i="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function s(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(!s(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)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=c(e);return Math.round(t*n)/n}function l(e){const t=o.useRef(e);return i((()=>{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:h}={},transform:m=!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);s(w,d)||x(d);const[O,k]=o.useState(null),[S,E]=o.useState(null),P=o.useCallback((e=>{e!==T.current&&(T.current=e,k(e))}),[]),j=o.useCallback((e=>{e!==A.current&&(A.current=e,E(e))}),[]),_=f||O,D=h||S,T=o.useRef(null),A=o.useRef(null),M=o.useRef(y),C=null!=g,I=l(g),R=l(p),N=l(v),L=o.useCallback((()=>{if(!T.current||!A.current)return;const e={placement:t,strategy:n,middleware:w};R.current&&(e.platform=R.current),(0,r.rD)(T.current,A.current,e).then((e=>{const t={...e,isPositioned:!1!==N.current};F.current&&!s(M.current,t)&&(M.current=t,a.flushSync((()=>{b(t)})))}))}),[w,t,n,R,N]);i((()=>{!1===v&&M.current.isPositioned&&(M.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[v]);const F=o.useRef(!1);i((()=>(F.current=!0,()=>{F.current=!1})),[]),i((()=>{if(_&&(T.current=_),D&&(A.current=D),_&&D){if(I.current)return I.current(_,D,L);L()}}),[_,D,L,I,C]);const H=o.useMemo((()=>({reference:T,floating:A,setReference:P,setFloating:j})),[P,j]),W=o.useMemo((()=>({reference:_,floating:D})),[_,D]),Y=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 m?{...e,transform:"translate("+t+"px, "+r+"px)",...c(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,m,W.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:L,refs:H,elements:W,floatingStyles:Y})),[y,L,H,W,Y])}const p=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"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 a}}),f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),m=(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]})},66984:(e,t,n)=>{"use strict";n.d(t,{$t:()=>s,$u:()=>w,EW:()=>y,F2:()=>v,Go:()=>f,O_:()=>h,Pg:()=>u,RS:()=>o,WZ:()=>O,YE:()=>g,YF:()=>c,cX:()=>p,gR:()=>a,jo:()=>x,nr:()=>l,tZ:()=>m,uo:()=>i});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 a(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 i(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){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 c(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!s().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(i())||e.test(s())}function p(){return i().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function f(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function h(e){return"nativeEvent"in e}function m(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 i(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){return!!r()&&(e instanceof Node||e instanceof a(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof a(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(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 a(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=(i(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:()=>c,vq:()=>s,zk:()=>a})},81293:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,fX:()=>i});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 a=function(){return a=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},a.apply(this,arguments)};Object.create;function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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:()=>a});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"})}},a={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return r(e,t);let s;switch(a){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",r(a,t)).replace("{{time}}",o(i,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:()=>c,ef:()=>i,xM:()=>s});const r=/^D+$/,o=/^Y+$/,a=["D","DD","YY","YYYY"];function i(e){return r.test(e)}function s(e){return o.test(e)}function c(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),a.includes(e))throw new RangeError(r)}},16172:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(43329),o=n(29407);function a(e,t,n){const a=(0,o.a)(e,n?.in);return isNaN(t)?(0,r.w)(n?.in||e,NaN):t?(a.setDate(a.getDate()+t),a):a}},61501:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>a,_P:()=>c,_m:()=>s,my:()=>r,s0:()=>i,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,a=6e4,i=36e5,s=1e3,c=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)}},30336:(e,t,n)=>{"use strict";n.d(t,{GP:()=>L});var r=n(9946),o=n(92516),a=n(1108),i=n(5305),s=n(61501),c=n(6463);function u(e,t,n){const[r,o]=(0,i.x)(n?.in,e,t),u=(0,c.o)(r),l=(0,c.o)(o),d=+u-(0,a.G)(u),p=+l-(0,a.G)(l);return Math.round((d-p)/s.w4)}var l=n(29407);function d(e,t){const n=(0,l.a)(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function p(e,t){const n=(0,l.a)(e,t?.in);return u(n,d(n))+1}var f=n(72794),h=n(51898),m=n(65456),g=n(84485);function v(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const y={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return v("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):v(n+1,2)},d:(e,t)=>v(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)=>v(e.getHours()%12||12,t.length),H:(e,t)=>v(e.getHours(),t.length),m:(e,t)=>v(e.getMinutes(),t.length),s:(e,t)=>v(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return v(Math.trunc(r*Math.pow(10,n-3)),t.length)}},b="midnight",w="noon",x="morning",O="afternoon",k="evening",S="night",E={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 y.y(e,t)},Y:function(e,t,n,r){const o=(0,g.h)(e,r),a=o>0?o:1-o;if("YY"===t){return v(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):v(a,t.length)},R:function(e,t){return v((0,h.p)(e),t.length)},u:function(e,t){return v(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 v(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 v(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 y.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 v(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,m.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):v(o,t.length)},I:function(e,t,n){const r=(0,f.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):v(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):y.d(e,t)},D:function(e,t,n){const r=p(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):v(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(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return v(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return v(a,t.length);case"co":return n.ordinalNumber(a,{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 v(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?w:0===r?b: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?k:r>=12?O:r>=4?x:S,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 y.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):y.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):v(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):v(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):y.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):y.s(e,t)},S:function(e,t){return y.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return j(r);case"XXXX":case"XX":return _(r);default:return _(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return j(r);case"xxxx":case"xx":return _(r);default:return _(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+P(r,":");default:return"GMT"+_(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+P(r,":");default:return"GMT"+_(r,":")}},t:function(e,t,n){return v(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return v(+e,t.length)}};function P(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+v(a,2)}function j(e,t){if(e%60==0){return(e>0?"-":"+")+v(Math.abs(e)/60,2)}return _(e,t)}function _(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+v(Math.trunc(r/60),2)+t+v(r%60,2)}var D=n(78668),T=n(3265),A=n(99790);const M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I=/^'([^]*?)'?$/,R=/''/g,N=/[a-zA-Z]/;function L(e,t,n){const a=(0,o.q)(),i=n?.locale??a.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,u=(0,l.a)(e,n?.in);if(!(0,A.f)(u))throw new RangeError("Invalid time value");let d=t.match(C).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,D.m[t])(e,i.formatLong)}return e})).join("").match(M).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:F(e)};if(E[t])return{isToken:!0,value:e};if(t.match(N))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(d=i.localize.preprocessor(u,d));const p={firstWeekContainsDate:s,weekStartsOn:c,locale:i};return d.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,T.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,T.ef)(o))&&(0,T.Ss)(o,t,String(e));return(0,E[o[0]])(u,o,i.localize,p)})).join("")}function F(e){const t=e.match(I);return t?t[1].replace(R,"'"):e}},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),a=n(43329),i=n(51898);function s(e,t){const n=(0,i.p)(e,t),r=(0,a.w)(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,o.b)(r)}var c=n(29407);function u(e,t){const n=(0,c.a)(e,t?.in),a=+(0,o.b)(n)-+s(n);return Math.round(a/r.my)+1}},51898:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(43329),o=n(22008),a=n(29407);function i(e,t){const n=(0,a.a)(e,t?.in),i=n.getFullYear(),s=(0,r.w)(n,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const c=(0,o.b)(s),u=(0,r.w)(n,0);u.setFullYear(i,0,4),u.setHours(0,0,0,0);const l=(0,o.b)(u);return n.getTime()>=c.getTime()?i+1:n.getTime()>=l.getTime()?i:i-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),a=n(92516),i=n(43329),s=n(84485);function c(e,t){const n=(0,a.q)(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=(0,s.h)(e,t),u=(0,i.w)(t?.in||e,0);u.setFullYear(c,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),a=+(0,o.k)(n,t)-+c(n,t);return Math.round(a/r.my)+1}},84485:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(92516),o=n(43329),a=n(80337),i=n(29407);function s(e,t){const n=(0,i.a)(e,t?.in),s=n.getFullYear(),c=(0,r.q)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,l=(0,o.w)(t?.in||e,0);l.setFullYear(s+1,0,u),l.setHours(0,0,0,0);const d=(0,a.k)(l,t),p=(0,o.w)(t?.in||e,0);p.setFullYear(s,0,u),p.setHours(0,0,0,0);const f=(0,a.k)(p,t);return+n>=+d?s+1:+n>=+f?s:s-1}},92705:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(99790),o=n(58646);function a(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:()=>a});var o=n(29407);function a(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],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(i.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],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,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 a={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"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var s=n(33443);const c={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,s.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.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,s.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,s.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,s.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 a=r[e];return o="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:a,formatRelative:(e,t,n,r)=>i[e],localize:c,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}}},58646:(e,t,n)=>{"use strict";n.d(t,{qg:()=>ge});var r=n(9946),o=n(78668),a=n(3265),i=n(43329),s=n(92516);function c(){return Object.assign({},(0,s.q)())}var u=n(29407);function l(e,t){const n=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):(0,i.w)(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class d{subPriority=0;validate(e,t){return!0}}class p extends d{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 f extends d{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>(0,i.w)(t,e))}set(e,t){return t.timestampIsSet?e:(0,i.w)(e,l(e,this.context))}}class h{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new p(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 g=/^(1[0-2]|0?\d)/,v=/^(3[0-1]|[0-2]?\d)/,y=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,b=/^(5[0-3]|[0-4]?\d)/,w=/^(2[0-3]|[0-1]?\d)/,x=/^(2[0-4]|[0-1]?\d)/,O=/^(1[0-1]|0?\d)/,k=/^(1[0-2]|0?\d)/,S=/^[0-5]?\d/,E=/^[0-5]?\d/,P=/^\d/,j=/^\d{1,2}/,_=/^\d{1,3}/,D=/^\d{1,4}/,T=/^-?\d+/,A=/^-?\d/,M=/^-?\d{1,2}/,C=/^-?\d{1,3}/,I=/^-?\d{1,4}/,R=/^([+-])(\d{2})(\d{2})?|Z/,N=/^([+-])(\d{2})(\d{2})|Z/,L=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,F=/^([+-])(\d{2}):(\d{2})|Z/,H=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function W(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Y(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,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*m.s0+a*m.Cg+i*m._m),rest:t.slice(n[0].length)}}function z(e){return Y(T,e)}function U(e,t){switch(e){case 1:return Y(P,t);case 2:return Y(j,t);case 3:return Y(_,t);case 4:return Y(D,t);default:return Y(new RegExp("^\\d{1,"+e+"}"),t)}}function V(e,t){switch(e){case 1:return Y(A,t);case 2:return Y(M,t);case 3:return Y(C,t);case 4:return Y(I,t);default:return Y(new RegExp("^-?\\d{1,"+e+"}"),t)}}function q(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function $(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 G(e){return e%400==0||e%4==0&&e%100!=0}var K=n(84485),Q=n(80337);var X=n(22008);var J=n(65456);function Z(e,t,n){const r=(0,u.a)(e,n?.in),o=(0,J.N)(r,n)-t;return r.setDate(r.getDate()-7*o),(0,u.a)(r,n?.in)}var ee=n(72794);function te(e,t,n){const r=(0,u.a)(e,n?.in),o=(0,ee.s)(r,n)-t;return r.setDate(r.getDate()-7*o),r}const ne=[31,28,31,30,31,30,31,31,30,31,30,31],re=[31,29,31,30,31,30,31,31,30,31,30,31];var oe=n(16172);function ae(e,t,n){const r=(0,s.q)(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=(0,u.a)(e,n?.in),i=a.getDay(),c=7-o,l=t<0||t>6?t-(i+c)%7:((t%7+7)%7+c)%7-(i+c)%7;return(0,oe.f)(a,l,n)}function ie(e,t){const n=(0,u.a)(e,t?.in).getDay();return 0===n?7:n}function se(e,t,n){const r=(0,u.a)(e,n?.in),o=t-ie(r,n);return(0,oe.f)(r,o,n)}var ce=n(1108);const ue={G:new class extends h{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 h{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 W(U(4,e),r);case"yo":return W(n.ordinalNumber(e,{unit:"year"}),r);default:return W(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=$(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 h{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return W(U(4,e),r);case"Yo":return W(n.ordinalNumber(e,{unit:"year"}),r);default:return W(U(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=(0,K.h)(e,r);if(n.isTwoDigitYear){const t=$(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,Q.k)(e,r)}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,Q.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends h{priority=130;parse(e,t){return V("R"===t?4:t.length,e)}set(e,t,n){const r=(0,i.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,X.b)(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends h{priority=130;parse(e,t){return V("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 h{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 h{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 h{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 W(Y(g,e),r);case"MM":return W(U(2,e),r);case"Mo":return W(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 h{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return W(Y(g,e),r);case"LL":return W(U(2,e),r);case"Lo":return W(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 h{priority=100;parse(e,t,n){switch(t){case"w":return Y(b,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,Q.k)(Z(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends h{priority=100;parse(e,t,n){switch(t){case"I":return Y(b,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,X.b)(te(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends h{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return Y(v,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return U(t.length,e)}}validate(e,t){const n=G(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=re[r]:t>=1&&t<=ne[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 h{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return Y(y,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return U(t.length,e)}}validate(e,t){return G(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 h{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=ae(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends h{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 W(U(t.length,e),o);case"eo":return W(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=ae(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 h{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 W(U(t.length,e),o);case"co":return W(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=ae(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 h{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 W(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 W(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return W(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return W(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=se(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 h{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(q(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends h{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(q(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends h{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(q(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends h{priority=70;parse(e,t,n){switch(t){case"h":return Y(k,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 h{priority=70;parse(e,t,n){switch(t){case"H":return Y(w,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 h{priority=70;parse(e,t,n){switch(t){case"K":return Y(O,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 h{priority=70;parse(e,t,n){switch(t){case"k":return Y(x,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 h{priority=60;parse(e,t,n){switch(t){case"m":return Y(S,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 h{priority=50;parse(e,t,n){switch(t){case"s":return Y(E,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 h{priority=30;parse(e,t){return W(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 h{priority=10;parse(e,t){switch(t){case"X":return B(R,e);case"XX":return B(N,e);case"XXXX":return B(L,e);case"XXXXX":return B(H,e);default:return B(F,e)}}set(e,t,n){return t.timestampIsSet?e:(0,i.w)(e,e.getTime()-(0,ce.G)(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends h{priority=10;parse(e,t){switch(t){case"x":return B(R,e);case"xx":return B(N,e);case"xxxx":return B(L,e);case"xxxxx":return B(H,e);default:return B(F,e)}}set(e,t,n){return t.timestampIsSet?e:(0,i.w)(e,e.getTime()-(0,ce.G)(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends h{priority=40;parse(e){return z(e)}set(e,t,n){return[(0,i.w)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends h{priority=20;parse(e){return z(e)}set(e,t,n){return[(0,i.w)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pe=/^'([^]*?)'?$/,fe=/''/g,he=/\S/,me=/[a-zA-Z]/;function ge(e,t,n,s){const l=()=>(0,i.w)(s?.in||n,NaN),d=c(),p=s?.locale??d.locale??r.c,h=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,m=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0;if(!t)return e?l():(0,u.a)(n,s?.in);const g={firstWeekContainsDate:h,weekStartsOn:m,locale:p},v=[new f(s?.in,n)],y=t.match(de).map((e=>{const t=e[0];if(t in o.m){return(0,o.m[t])(e,p.formatLong)}return e})).join("").match(le),b=[];for(let n of y){!s?.useAdditionalWeekYearTokens&&(0,a.xM)(n)&&(0,a.Ss)(n,t,e),!s?.useAdditionalDayOfYearTokens&&(0,a.ef)(n)&&(0,a.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 a=o.run(e,n,p.match,g);if(!a)return l();v.push(a.setter),e=a.rest}else{if(r.match(me))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&&he.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,u.a)(n,s?.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}},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:()=>a});var r=n(92516),o=n(29407);function a(e,t){const n=(0,r.q)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,o.a)(e,t?.in),s=i.getDay(),c=(s<a?7:0)+s-a;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}},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:()=>a,Tt:()=>i,fX:()=>s});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 a=function(){return a=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},a.apply(this,arguments)};function i(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 s(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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},40622:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>a,Tt:()=>i,fX:()=>s});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 a=function(){return a=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},a.apply(this,arguments)};function i(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 s(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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});var r=n(4883),o=(n(78418),r.version.startsWith("19")),a=Symbol.for(o?"react.transitional.element":"react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=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"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=p,y=m;function b(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case s:case u:case c:case f:case h:return e;default:switch(e=e&&e.$$typeof){case d:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function w(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,c,u,l,d,p=!1;function f(p,f){const h=!a(f,c),m=!o(p,s,f,c);return s=p,c=f,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!i(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,a){return p?f(o,a):(s=o,c=a,u=e(s,c),l=t(r,c),d=n(u,l,c),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 P(e){e()}var j={notify(){},get:()=>[]};function _(e,t){let n,r=j,o=0,a=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){P((()=>{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 c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=j)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,c())},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)(),A=(()=>D||T?r.useLayoutEffect:r.useEffect)();function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(M(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])||!M(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)===m}(e)?N:L[e.$$typeof]||I}var H=Object.defineProperty,W=Object.getOwnPropertyNames,Y=Object.getOwnPropertySymbols,B=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,U=Object.prototype;function V(e,t){if("string"!=typeof t){if(U){const n=z(t);n&&n!==U&&V(e,n)}let n=W(t);Y&&(n=n.concat(Y(t)));const r=F(e),o=F(t);for(let a=0;a<n.length;++a){const i=n[a];if(!(R[i]||o&&o[i]||r&&r[i])){const n=B(t,i);try{H(e,i,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(),Q=[null,null];function X(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function J(e,t){return e===t}var Z=function(e,t,n,{pure:o,areStatesEqual:a=J,areOwnPropsEqual:i=C,areStatePropsEqual:s=C,areMergedPropsEqual:c=C,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),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):S(e,"mergeProps"):()=>E}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:a,areStatePropsEqual:s,areOwnPropsEqual:i,areMergedPropsEqual:c};function l(t){const[n,a,i]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=r.useMemo((()=>d),[n,d]),c=r.useContext(s),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(c)&&Boolean(c.store);const p=u?t.store:c.store,f=l?c.getServerState:p.getState,h=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(!m)return Q;const e=_(p,u?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,u,c]),y=r.useMemo((()=>u?c:{...c,subscription:g}),[u,c,g]),b=r.useRef(void 0),x=r.useRef(i),O=r.useRef(void 0),k=r.useRef(!1),S=r.useRef(!1),E=r.useRef(void 0);A((()=>(S.current=!0,()=>{S.current=!1})),[]);const P=r.useMemo((()=>()=>O.current&&i===x.current?O.current:h(p.getState(),i)),[p,i]),j=r.useMemo((()=>e=>g?function(e,t,n,r,o,a,i,s,c,u,l){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!s.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===a.current?i.current||u():(a.current=n,c.current=n,i.current=!0,l())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,p,g,h,x,b,k,S,O,v,e):()=>{}),[g]);var D,T,M;let C;D=X,T=[x,b,k,i,O,v],A((()=>D(...T)),M);try{C=r.useSyncExternalStore(j,P,f?()=>h(f(),i):P)}catch(e){throw E.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),e}A((()=>{E.current=void 0,O.current=void 0,b.current=C}));const I=r.useMemo((()=>r.createElement(e,{...C,ref:a})),[a,e,C]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},I):I),[s,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,V(t,e)}return V(g,e)}};var ee=function(e){const{children:t,context:n,serverState:o,store:a}=e,i=r.useMemo((()=>{const e=_(a);return{store:a,subscription:e,getServerState:o?()=>o:void 0}}),[a,o]),s=r.useMemo((()=>a.getState()),[a]);A((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,s]);const c=n||K;return r.createElement(c.Provider,{value:i},t)}},76744:(e,t,n)=>{"use strict";n.d(t,{BV:()=>It,C5:()=>At,N_:()=>bn,Ri:()=>at,Ys:()=>mn,pg:()=>Dt,qh:()=>Mt,zy:()=>it});var r,o=n(4883),a=(n(16069),e=>{throw TypeError(e)}),i=(e,t,n)=>(((e,t,n)=>{t.has(e)||a("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),s="popstate";function c(e={}){return m((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{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:f(t)}),null,e)}function u(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function f({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 h(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 m(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",l=null,h=m();function m(){return(i.state||{idx:null}).idx}function g(){c="POP";let e=m(),t=null==e?null:e-h;h=e,l&&l({action:c,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:f(e);return n=n.replace(/ $/,"%20"),u(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==h&&(h=0,i.replaceState({...i.state,idx:h},""));let y={get action(){return c},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,g),l=e,()=>{o.removeEventListener(s,g),l=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){c="PUSH";let r=p(y.location,e,t);n&&n(r,e),h=m()+1;let s=d(r,h),u=y.createHref(r);try{i.pushState(s,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(u)}a&&l&&l({action:c,location:y.location,delta:1})},replace:function(e,t){c="REPLACE";let r=p(y.location,e,t);n&&n(r,e),h=m();let o=d(r,h),s=y.createHref(r);i.replaceState(o,"",s),a&&l&&l({action:c,location:y.location,delta:0})},go:e=>i.go(e)};return y}var g=class{constructor(e){var t,n,o;if(t=this,n=r,o=new Map,n.has(t)?a("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(i(this,r).has(e))return i(this,r).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){i(this,r).set(e,t)}};r=new WeakMap;var v=new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,n=[],r={}){return e.map(((e,o)=>{let a=[...n,String(o)],i="string"==typeof e.id?e.id:a.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!r[i],`Found a route id collision on id "${i}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:i};return r[i]=n,n}{let n={...e,...t(e),id:i,children:void 0};return r[i]=n,e.children&&(n.children=y(e.children,t,a,r)),n}}))}function b(e,t,n="/"){return w(e,t,n,!1)}function w(e,t,n,r){let o=R(("string"==typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let a=O(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)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=I(o);i=M(a[e],t,r)}return i}function x(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 O(e,t=[],n=[],r=""){let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(u(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let s=W([r,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),O(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:A(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of k(e.path))o(e,t,n);else o(e,t)})),t}function k(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=k(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var S=/^:[\w-]+$/,E=3,P=2,j=1,_=10,D=-2,T=e=>"*"===e;function A(e,t){let n=e.split("/"),r=n.length;return n.some(T)&&(r+=D),t&&(r+=P),n.filter((e=>!T(e))).reduce(((e,t)=>e+(S.test(t)?E:""===t?j:_)),r)}function M(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,u="/"===a?t:t.slice(a.length)||"/",l=C({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u),d=s.route;if(!l&&c&&n&&!r[r.length-1].route.index&&(l=C({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),i.push({params:o,pathname:W([a,l.pathname]),pathnameBase:Y(W([a,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(a=W([a,l.pathnameBase]))}return i}function C(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){l("*"===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 a=new RegExp(o,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!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 R(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 N(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 L(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function F(e){let t=L(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function H(e,t,n,r=!1){let o;"string"==typeof e?o=h(e):(o={...e},u(!o.pathname||!o.pathname.includes("?"),N("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),N("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),N("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?h(e):e,a=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:a,search:B(r),hash:z(o)}}(o,a),l=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!d||(c.pathname+="/"),c}var W=e=>e.join("/").replace(/\/\/+/g,"/"),Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var U=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 V(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var q=["POST","PUT","PATCH","DELETE"],$=new Set(q),G=["GET",...q],K=new Set(G),Q=new Set([301,302,303,307,308]),X=new Set([307,308]),J={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},te=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ne=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),re="remix-router-transitions",oe=Symbol("ResetLoaderData");function ae(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;u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r,o,a,i=e.mapRouteProperties||ne,s={},c=y(e.routes,i,void 0,s),d=e.basename||"/",f=e.dataStrategy||ge,h={unstable_middleware:!1,...e.future},m=null,v=new Set,O=null,k=null,S=null,E=null!=e.hydrationData,P=b(c,e.history.location,d),j=!1,_=null;if(null==P&&!e.patchRoutesOnNavigation){let t=Ce(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Me(c);P=n,_={[r.id]:t}}if(P&&!e.hydrationData){et(P,c,e.history.location.pathname).active&&(P=null)}if(P)if(P.some((e=>e.route.lazy)))o=!1;else if(P.some((e=>e.route.loader))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=P.findIndex((e=>void 0!==n[e.route.id]));o=P.slice(0,e+1).every((e=>!le(e.route,t,n)))}else o=P.every((e=>!le(e.route,t,n)))}else o=!0;else{o=!1,P=[];let t=et(null,c,e.history.location.pathname);t.active&&t.matches&&(j=!0,P=t.matches)}let D,T,A={historyAction:e.history.action,location:e.history.location,matches:P,initialized:o,navigation:J,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||_,fetchers:new Map,blockers:new Map},M="POP",C=!1,I=!1,N=new Map,L=null,F=!1,H=!1,W=new Set,Y=new Map,B=0,z=-1,U=new Map,q=new Set,$=new Map,G=new Map,K=new Set,Q=new Map,oe=null;function ae(e,t={}){A={...A,...e};let n=[],r=[];A.fetchers.forEach(((e,t)=>{"idle"===e.state&&(K.has(t)?n.push(t):r.push(t))})),K.forEach((e=>{A.fetchers.has(e)||Y.has(e)||n.push(e)})),[...v].forEach((e=>e(A,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>je(e))),r.forEach((e=>A.fetchers.delete(e)))}function ce(t,n,{flushSync:o}={}){let a,i=null!=A.actionData&&null!=A.navigation.formMethod&&Be(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==t.state?._isRedirect;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?A.actionData:null;let s=n.loaderData?De(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,u=A.blockers;u.size>0&&(u=new Map(u),u.forEach(((e,t)=>u.set(t,ee))));let l,d=!0===C||null!=A.navigation.formMethod&&Be(A.navigation.formMethod)&&!0!==t.state?._isRedirect;if(r&&(c=r,r=void 0),F||"POP"===M||("PUSH"===M?e.history.push(t,t.state):"REPLACE"===M&&e.history.replace(t,t.state)),"POP"===M){let e=N.get(A.location.pathname);e&&e.has(t.pathname)?l={currentLocation:A.location,nextLocation:t}:N.has(t.pathname)&&(l={currentLocation:t,nextLocation:A.location})}else if(I){let e=N.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),N.set(A.location.pathname,e)),l={currentLocation:A.location,nextLocation:t}}ae({...n,actionData:a,loaderData:s,historyAction:M,location:t,initialized:!0,navigation:J,revalidation:"idle",restoreScrollPosition:Ze(t,n.matches||A.matches),preventScrollReset:d,blockers:u},{viewTransitionOpts:l,flushSync:!0===o}),M="POP",C=!1,I=!1,F=!1,H=!1,oe?.resolve(),oe=null}async function de(t,n,o){D&&D.abort(),D=null,M=t,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(O&&S){let n=Je(e,t);O[n]=S()}}(A.location,A.matches),C=!0===(o&&o.preventScrollReset),I=!0===(o&&o.enableViewTransition);let a=r||c,i=o&&o.overrideNavigation,s=o?.initialHydration&&A.matches&&A.matches.length>0&&!j?A.matches:b(a,n,d),u=!0===(o&&o.flushSync);if(s&&A.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}(A.location,n)&&!(o&&o.submission&&Be(o.submission.formMethod)))return void ce(n,{matches:s},{flushSync:u});let l=et(s,a,n.pathname);if(l.active&&l.matches&&(s=l.matches),!s){let{error:e,notFoundMatches:t,route:r}=Xe(n.pathname);return void ce(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u})}D=new AbortController;let p,f=Se(e.history,n,D.signal,o&&o.submission),h=new g(e.unstable_getContext?await e.unstable_getContext():void 0);if(o&&o.pendingError)p=[Ae(s).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&Be(o.submission.formMethod)){let t=await async function(e,t,n,r,o,a,i={}){ye();let s,c=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(ae({navigation:c},{flushSync:!0===i.flushSync}),a){let n=await tt(r,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Ae(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}=Xe(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}r=n.matches}let u=Ue(r,t);if(u.route.action||u.route.lazy){let t=await me("action",e,[u],r,o,null);if(s=t[u.route.id],!s)for(let e of r)if(t[e.route.id]){s=t[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else s={type:"error",error:Ce(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(Fe(s)){let t;if(i&&null!=i.replace)t=i.replace;else{t=ke(s.response.headers.get("Location"),new URL(e.url),d)===A.location.pathname+A.location.search}return await he(e,s,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Le(s)){let e=Ae(r,u.route.id);return!0!==(i&&i.replace)&&(M="PUSH"),{matches:r,pendingActionResult:[e.route.id,s]}}return{matches:r,pendingActionResult:[u.route.id,s]}}(f,n,o.submission,s,h,l.active,{replace:o.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Le(r)&&V(r.error)&&404===r.error.status)return D=null,void ce(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}s=t.matches||s,p=t.pendingActionResult,i=qe(n,o.submission),u=!1,l.active=!1,f=Se(e.history,f.url,f.signal)}let{shortCircuited:m,matches:v,loaderData:y,errors:w}=await async function(t,n,o,a,i,s,u,l,p,f,h,m){let g=s||qe(n,u),v=u||l||Ve(g),y=!F&&!f;if(i){if(y){let e=pe(m);ae({navigation:g,...void 0!==e?{actionData:e}:{}},{flushSync:h})}let e=await tt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Ae(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Xe(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let b=r||c,[w,x]=ue(e.history,A,o,v,n,!0===f,H,W,K,$,q,b,d,m);if(z=++B,0===w.length&&0===x.length){let e=We();return ce(n,{matches:o,loaderData:{},errors:m&&Le(m[1])?{[m[0]]:m[1].error}:null,...Te(m),...e?{fetchers:new Map(A.fetchers)}:{}},{flushSync:h}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=g;let t=pe(m);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=A.fetchers.get(e.key),n=$e(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)})),new Map(A.fetchers)}(x)),ae(e,{flushSync:h})}x.forEach((e=>{Re(e.key),e.controller&&Y.set(e.key,e.controller)}));let O=()=>x.forEach((e=>Re(e.key)));D&&D.signal.addEventListener("abort",O);let{loaderResults:k,fetcherResults:S}=await ve(o,w,x,t,a);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",O);x.forEach((e=>Y.delete(e.key)));let E=Ie(k);if(E)return await he(t,E.result,!0,{replace:p}),{shortCircuited:!0};if(E=Ie(S),E)return q.add(E.key),await he(t,E.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:P,errors:j}=_e(A,o,k,m,x,S);f&&A.errors&&(j={...A.errors,...j});let _=We(),T=Ye(z),M=_||T||x.length>0;return{matches:o,loaderData:P,errors:j,...M?{fetchers:new Map(A.fetchers)}:{}}}(f,n,s,h,l.active,i,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,u,p);m||(D=null,ce(n,{matches:v||s,...Te(p),loaderData:y,errors:w}))}function pe(e){return e&&!Le(e[1])?{[e[0]]:e[1].data}:A.actionData?0===Object.keys(A.actionData).length?null:A.actionData:void 0}async function he(r,o,a,{submission:i,fetcherSubmission:s,preventScrollReset:c,replace:l}={}){o.response.headers.has("X-Remix-Revalidate")&&(H=!0);let f=o.response.headers.get("Location");u(f,"Expected a Location header on the redirect Response"),f=ke(f,new URL(r.url),d);let h=p(A.location,f,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(te.test(f)){const r=e.history.createURL(f);n=r.origin!==t.location.origin||null==R(r.pathname,d)}if(n)return void(l?t.location.replace(f):t.location.assign(f))}D=null;let m=!0===l||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:y}=A.navigation;!i&&!s&&g&&v&&y&&(i=Ve(A.navigation));let b=i||s;if(X.has(o.response.status)&&b&&Be(b.formMethod))await de(m,h,{submission:{...b,formAction:f},preventScrollReset:c||C,enableViewTransition:a?I:void 0});else{let e=qe(h,i);await de(m,h,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:c||C,enableViewTransition:a?I:void 0})}}async function me(e,t,n,r,o,a){let c,u={};try{c=await we(f,e,t,n,r,a,s,i,o,h.unstable_middleware)}catch(e){return n.forEach((t=>{u[t.route.id]={type:"error",error:e}})),u}for(let[e,n]of Object.entries(c))if(Ne(n)){let o=n.result;u[e]={type:"redirect",response:Oe(o,t,e,r,d)}}else u[e]=await xe(n);return u}async function ve(t,n,r,o,a){let i=me("loader",o,n,t,a,null),s=Promise.all(r.map((async t=>{if(t.matches&&t.match&&t.controller){let n=(await me("loader",Se(e.history,t.path,t.controller.signal),[t.match],t.matches,a,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:"error",error:Ce(404,{pathname:t.path})}})})));return{loaderResults:await i,fetcherResults:(await s).reduce(((e,t)=>Object.assign(e,t)),{})}}function ye(){H=!0,$.forEach(((e,t)=>{Y.has(t)&&W.add(t),Re(t)}))}function be(e,t,n={}){A.fetchers.set(e,t),ae({fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ee(e,t,n,r={}){let o=Ae(A.matches,t);je(e),ae({errors:{[o.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Pe(e){return G.set(e,(G.get(e)||0)+1),K.has(e)&&K.delete(e),A.fetchers.get(e)||Z}function je(e){let t=A.fetchers.get(e);!Y.has(e)||t&&"loading"===t.state&&U.has(e)||Re(e),$.delete(e),U.delete(e),q.delete(e),K.delete(e),W.delete(e),A.fetchers.delete(e)}function Re(e){let t=Y.get(e);t&&(t.abort(),Y.delete(e))}function He(e){for(let t of e){let e=Ge(Pe(t).data);A.fetchers.set(t,e)}}function We(){let e=[],t=!1;for(let n of q){let r=A.fetchers.get(n);u(r,`Expected fetcher: ${n}`),"loading"===r.state&&(q.delete(n),e.push(n),t=!0)}return He(e),t}function Ye(e){let t=[];for(let[n,r]of U)if(r<e){let e=A.fetchers.get(n);u(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Re(n),U.delete(n),t.push(n))}return He(t),t.length>0}function ze(e){A.blockers.delete(e),Q.delete(e)}function Ke(e,t){let n=A.blockers.get(e)||ee;u("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(A.blockers);r.set(e,t),ae({blockers:r})}function Qe({currentLocation:e,nextLocation:t,historyAction:n}){if(0===Q.size)return;Q.size>1&&l(!1,"A router only supports one blocker at a time");let r=Array.from(Q.entries()),[o,a]=r[r.length-1],i=A.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Xe(e){let t=Ce(404,{pathname:e}),n=r||c,{matches:o,route:a}=Me(n);return{notFoundMatches:o,route:a,error:t}}function Je(e,t){if(k){return k(e,t.map((e=>x(e,A.loaderData))))||e.key}return e.key}function Ze(e,t){if(O){let n=Je(e,t),r=O[n];if("number"==typeof r)return r}return null}function et(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:w(n,r,d,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:w(n,r,d,!0)}}}return{active:!1,matches:null}}async function tt(t,n,o,a){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==r,l=r||c,p=s;try{await e.patchRoutesOnNavigation({signal:o,path:n,matches:u,fetcherKey:a,patch:(e,t)=>{o.aborted||fe(e,t,l,p,i)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!o.aborted&&(c=[...c])}if(o.aborted)return{type:"aborted"};let f=b(l,n,d);if(f)return{type:"success",matches:f};let h=w(l,n,d,!0);if(!h||u.length===h.length&&u.every(((e,t)=>e.route.id===h[t].route.id)))return{type:"success",matches:null};u=h}}return a={get basename(){return d},get future(){return h},get state(){return A},get routes(){return c},get window(){return t},initialize:function(){if(m=e.history.listen((({action:t,location:n,delta:r})=>{if(T)return T(),void(T=void 0);l(0===Q.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=Qe({currentLocation:A.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{T=e}));return e.history.go(-1*r),void Ke(o,{state:"blocked",location:n,proceed(){Ke(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(A.blockers);e.set(o,ee),ae({blockers:e})}})}return de(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(re);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,N);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(re,JSON.stringify(n))}catch(e){l(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,N);t.addEventListener("pagehide",e),L=()=>t.removeEventListener("pagehide",e)}return A.initialized||de("POP",A.location,{initialHydration:!0}),a},subscribe:function(e){return v.add(e),()=>v.delete(e)},enableScrollRestoration:function(e,t,n){if(O=e,S=t,k=n||null,!E&&A.navigation===J){E=!0;let e=Ze(A.location,A.matches);null!=e&&ae({restoreScrollPosition:e})}return()=>{O=null,S=null,k=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=ie(A.location,A.matches,d,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:s}=se(!1,o,r),c=A.location,u=p(A.location,a,r&&r.state);u={...u,...e.history.encodeLocation(u)};let l=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===l?f="REPLACE":!1===l||null!=i&&Be(i.formMethod)&&i.formAction===A.location.pathname+A.location.search&&(f="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=Qe({currentLocation:c,nextLocation:u,historyAction:f});g?Ke(g,{state:"blocked",location:u,proceed(){Ke(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(A.blockers);e.set(g,ee),ae({blockers:e})}}):await de(f,u,{submission:i,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,a){Re(t);let i=!0===(a&&a.flushSync),s=r||c,l=ie(A.location,A.matches,d,o,n,a?.relative),p=b(s,l,d),f=et(p,s,l);if(f.active&&f.matches&&(p=f.matches),!p)return void Ee(t,n,Ce(404,{pathname:l}),{flushSync:i});let{path:h,submission:m,error:v}=se(!0,l,a);if(v)return void Ee(t,n,v,{flushSync:i});let y=Ue(p,h),w=new g(e.unstable_getContext?await e.unstable_getContext():void 0),x=!0===(a&&a.preventScrollReset);m&&Be(m.formMethod)?await async function(t,n,o,a,i,s,l,p,f,h){function m(e){if(!e.route.action&&!e.route.lazy){let e=Ce(405,{method:h.formMethod,pathname:o,routeId:n});return Ee(t,n,e,{flushSync:p}),!0}return!1}if(ye(),$.delete(t),!l&&m(a))return;let g=A.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}(h,g),{flushSync:p});let v=new AbortController,y=Se(e.history,o,v.signal,h);if(l){let e=await tt(i,o,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ee(t,n,e.error,{flushSync:p});if(!e.matches)return void Ee(t,n,Ce(404,{pathname:o}),{flushSync:p});if(m(a=Ue(i=e.matches,o)))return}Y.set(t,v);let w=B,x=await me("action",y,[a],i,s,t),O=x[a.route.id];if(y.signal.aborted)return void(Y.get(t)===v&&Y.delete(t));if(K.has(t)){if(Fe(O)||Le(O))return void be(t,Ge(void 0))}else{if(Fe(O))return Y.delete(t),z>w?void be(t,Ge(void 0)):(q.add(t),be(t,$e(h)),he(y,O,!1,{fetcherSubmission:h,preventScrollReset:f}));if(Le(O))return void Ee(t,n,O.error)}let k=A.navigation.location||A.location,S=Se(e.history,k,v.signal),E=r||c,P="idle"!==A.navigation.state?b(E,A.navigation.location,d):A.matches;u(P,"Didn't find any matches after fetcher action");let j=++B;U.set(t,j);let _=$e(h,O.data);A.fetchers.set(t,_);let[T,C]=ue(e.history,A,P,h,k,!1,H,W,K,$,q,E,d,[a.route.id,O]);C.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=A.fetchers.get(t),r=$e(void 0,n?n.data:void 0);A.fetchers.set(t,r),Re(t),e.controller&&Y.set(t,e.controller)})),ae({fetchers:new Map(A.fetchers)});let I=()=>C.forEach((e=>Re(e.key)));v.signal.addEventListener("abort",I);let{loaderResults:R,fetcherResults:N}=await ve(P,T,C,S,s);if(v.signal.aborted)return;v.signal.removeEventListener("abort",I),U.delete(t),Y.delete(t),C.forEach((e=>Y.delete(e.key)));let L=Ie(R);if(L)return he(S,L.result,!1,{preventScrollReset:f});if(L=Ie(N),L)return q.add(L.key),he(S,L.result,!1,{preventScrollReset:f});let{loaderData:F,errors:V}=_e(A,P,R,void 0,C,N);if(A.fetchers.has(t)){let e=Ge(O.data);A.fetchers.set(t,e)}Ye(j),"loading"===A.navigation.state&&j>z?(u(M,"Expected pending action"),D&&D.abort(),ce(A.navigation.location,{matches:P,loaderData:F,errors:V,fetchers:new Map(A.fetchers)})):(ae({errors:V,loaderData:De(A.loaderData,F,P,V),fetchers:new Map(A.fetchers)}),H=!1)}(t,n,h,y,p,w,f.active,i,x,m):($.set(t,{routeId:n,path:h}),await async function(t,n,r,o,a,i,s,c,u,l){let d=A.fetchers.get(t);be(t,$e(l,d?d.data:void 0),{flushSync:c});let p=new AbortController,f=Se(e.history,r,p.signal);if(s){let e=await tt(a,r,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ee(t,n,e.error,{flushSync:c});if(!e.matches)return void Ee(t,n,Ce(404,{pathname:r}),{flushSync:c});o=Ue(a=e.matches,r)}Y.set(t,p);let h=B,m=await me("loader",f,[o],a,i,t),g=m[o.route.id];Y.get(t)===p&&Y.delete(t);if(f.signal.aborted)return;if(K.has(t))return void be(t,Ge(void 0));if(Fe(g))return z>h?void be(t,Ge(void 0)):(q.add(t),void await he(f,g,!1,{preventScrollReset:u}));if(Le(g))return void Ee(t,n,g.error);be(t,Ge(g.data))}(t,n,h,y,p,w,f.active,i,x,m))},revalidate:function(){oe||(oe=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}}()),ye(),ae({revalidation:"loading"});let e=oe.promise;return"submitting"===A.navigation.state?e:"idle"===A.navigation.state?(de(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),e):(de(M||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:!0===I}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Pe,deleteFetcher:function(e){let t=(G.get(e)||0)-1;t<=0?(G.delete(e),K.add(e)):G.set(e,t),ae({fetchers:new Map(A.fetchers)})},dispose:function(){m&&m(),L&&L(),v.clear(),D&&D.abort(),A.fetchers.forEach(((e,t)=>je(t))),A.blockers.forEach(((e,t)=>ze(t)))},getBlocker:function(e,t){let n=A.blockers.get(e)||ee;return Q.get(e)!==t&&Q.set(e,t),n},deleteBlocker:ze,patchRoutes:function(e,t){let n=null==r;fe(e,t,r||c,s,i),n&&(c=[...c],ae({}))},_internalFetchControllers:Y,_internalSetRoutes:function(e){s={},r=y(e,i,void 0,s)}},a}function ie(e,t,n,r,o,a){let i,s;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){s=e;break}}else i=t,s=t[t.length-1];let c=H(r||".",F(i),R(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(c.search=e.search,c.hash=e.hash),(null==r||""===r||"."===r)&&s){let e=ze(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();c.search=n?`?${n}`:""}}return"/"!==n&&(c.pathname="/"===c.pathname?n:W([n,c.pathname])),f(c)}function se(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&&!Ye(n.formMethod))return{path:t,error:Ce(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:Ce(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),s=Re(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Be(i))return a();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:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Be(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ee(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ee(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Pe(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Pe(r)}catch(e){return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Be(c.formMethod))return{path:t,submission:c};let l=h(t);return e&&l.search&&ze(l.search)&&r.append("index",""),l.search=`?${r}`,{path:f(l),submission:c}}function ce(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 ue(e,t,n,r,o,a,i,s,c,u,l,d,p,f){let h=f?Le(f[1])?f[1].error:f[1].data:void 0,m=e.createURL(t.location),g=e.createURL(o),v=n;a&&t.errors?v=ce(n,Object.keys(t.errors)[0],!0):f&&Le(f[1])&&(v=ce(n,f[0]));let y=f?f[1].statusCode:void 0,w=y&&y>=400,x=v.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return le(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 s=t.matches[n],c=e;return pe(e,{currentUrl:m,currentParams:s.params,nextUrl:g,nextParams:c.params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!w&&(i||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||de(s,c))})})),O=[];return u.forEach(((e,o)=>{if(a||!n.some((t=>t.route.id===e.routeId))||c.has(o))return;let u=b(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=Ue(u,e.path),x=!1;l.has(o)?x=!1:s.has(o)?(s.delete(o),x=!0):x=f&&"idle"!==f.state&&void 0===f.data?i:pe(v,{currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params,...r,actionResult:h,actionStatus:y,defaultShouldRevalidate:!w&&i}),x&&O.push({key:o,routeId:e.routeId,path:e.path,matches:u,match:v,controller:new AbortController})})),[x,O]}function le(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 de(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function pe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function fe(e,t,n,r,o){let a;if(e){let t=r[e];u(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n;let i=y(t.filter((e=>!a.some((t=>he(e,t))))),o,[e||"_","patch",String(a?.length||"0")],r);a.push(...i)}function he(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=>he(e,t))))))}async function me(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 ge(e){return e.matches.some((e=>e.route.unstable_middleware))?ve(e,!1,(()=>me(e)),(e=>({[e.routeId]:{type:"error",result:e.error}}))):me(e)}async function ve(e,t,n,r){let{matches:o,request:a,params:i,context:s}=e,c={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 be({request:a,params:i,context:s},e,c,n);return c.propagateResult?t:c.handlerResult}catch(e){if(!(e instanceof ye))throw e;let n=await r(e);return t||!c.handlerResult?n:Object.assign(c.handlerResult,n)}}var ye=class{constructor(e,t){this.routeId=e,this.error=t}};async function be(e,t,n,r,o=0){let{request:a}=e;if(a.signal.aborted){if(a.signal.reason)throw a.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${a.method} ${a.url}`)}let i=t[o];if(!i)return n.handlerResult=await r(),n.handlerResult;let s,[c,u]=i,l=!1,d=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");l=!0;let a=await be(e,t,n,r,o+1);if(n.propagateResult)return s=a,s};try{let t=await u({request:e.request,params:e.params,context:e.context},d);return l?void 0===t?s:t:d()}catch(e){if(e instanceof ye)throw e;throw new ye(c,e)}}async function we(e,t,n,r,o,a,i,s,c,d){let p=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];u(o,"No route found in manifest");let a={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;l(!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||v.has(e)||(a[e]=r[e])}Object.assign(o,a),Object.assign(o,{...t(o),lazy:void 0})}(e.route,s,i):void 0));d&&await Promise.all(p);let f=o.map(((e,o)=>{let a=p[o],i=r.some((t=>t.route.id===e.route.id));return{...e,shouldLoad:i,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,n,r,o,a){let i,s,c=r=>{let i,c=new Promise(((e,t)=>i=t));s=()=>i(),t.signal.addEventListener("abort",s);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:a},...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,c])};try{let o=n.route[e];if(r)if(o){let e,[t]=await Promise.all([c(o).catch((t=>{e=t})),r]);if(void 0!==e)throw e;i=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 Ce(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}i=await c(o)}else{if(!o){let e=new URL(t.url);throw Ce(404,{pathname:e.pathname+e.search})}i=await c(o)}}catch(e){return{type:"error",result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,n,e,a,r,c):Promise.resolve({type:"data",result:void 0}))}})),h=await e({matches:f,request:n,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(p)}catch(e){}return h}async function xe(e){let{result:t,type:n}=e;if(We(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 U(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?He(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 U(t.init?.status||500,void 0,t.data),statusCode:V(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:V(t)?t.status:void 0}:He(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 Oe(e,t,n,r,o){let a=e.headers.get("Location");if(u(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!te.test(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=ie(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function ke(e,t,n){if(te.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=R(o.pathname,n);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Se(e,t,n,r){let o=e.createURL(Re(t)).toString(),a={signal:n};if(r&&Be(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Ee(r.formData):a.body=r.formData}return new Request(o,a)}function Ee(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Pe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function je(e,t,n,r=!1,o=!1){let a,i={},s=null,c=!1,l={},d=n&&Le(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(u(!Fe(f),"Cannot handle redirect results in processLoaderData"),Le(f)){let t=f.error;if(void 0!==d&&(t=d,d=void 0),s=s||{},o)s[p]=t;else{let n=Ae(e,p);null==s[n.route.id]&&(s[n.route.id]=t)}r||(i[p]=oe),c||(c=!0,a=V(f.error)?f.error.status:500),f.headers&&(l[p]=f.headers)}else i[p]=f.data,f.statusCode&&200!==f.statusCode&&!c&&(a=f.statusCode),f.headers&&(l[p]=f.headers)})),void 0!==d&&n&&(s={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:a||200,loaderHeaders:l}}function _e(e,t,n,r,o,a){let{loaderData:i,errors:s}=je(t,n,r);return o.forEach((t=>{let{key:n,match:r,controller:o}=t,i=a[n];if(u(i,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(Le(i)){let t=Ae(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(Fe(i))u(!1,"Unhandled fetcher revalidation redirect");else{let t=Ge(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:s}}function De(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==oe)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Te(e){return e?Le(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ae(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 Me(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 Ce(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?s=`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&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",s=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?s=`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&&(s=`Invalid request method "${r.toUpperCase()}"`)),new U(e||500,i,new Error(s),!0)}function Ie(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Fe(r))return{key:n,result:r}}}function Re(e){return f({..."string"==typeof e?h(e):e,hash:""})}function Ne(e){return We(e.result)&&Q.has(e.result.status)}function Le(e){return"error"===e.type}function Fe(e){return"redirect"===(e&&e.type)}function He(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function We(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ye(e){return K.has(e.toUpperCase())}function Be(e){return $.has(e.toUpperCase())}function ze(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ue(e,t){let n="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&ze(n||""))return e[e.length-1];let r=L(e);return r[r.length-1]}function Ve(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function qe(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 $e(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 Ge(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 Ke=o.createContext(null);Ke.displayName="DataRouter";var Qe=o.createContext(null);Qe.displayName="DataRouterState";var Xe=o.createContext({isTransitioning:!1});Xe.displayName="ViewTransition";var Je=o.createContext(new Map);Je.displayName="Fetchers";var Ze=o.createContext(null);Ze.displayName="Await";var et=o.createContext(null);et.displayName="Navigation";var tt=o.createContext(null);tt.displayName="Location";var nt=o.createContext({outlet:null,matches:[],isDataRoute:!1});nt.displayName="Route";var rt=o.createContext(null);rt.displayName="RouteError";var ot=!0;function at(){return null!=o.useContext(tt)}function it(){return u(at(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(tt).location}var st="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ct(e){o.useContext(et).static||o.useLayoutEffect(e)}function ut(){let{isDataRoute:e}=o.useContext(nt);return e?function(){let{router:e}=yt("useNavigate"),t=wt("useNavigate"),n=o.useRef(!1);return ct((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{l(n.current,st),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){u(at(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(Ke),{basename:t,navigator:n}=o.useContext(et),{matches:r}=o.useContext(nt),{pathname:a}=it(),i=JSON.stringify(F(r)),s=o.useRef(!1);return ct((()=>{s.current=!0})),o.useCallback(((r,o={})=>{if(l(s.current,st),!s.current)return;if("number"==typeof r)return void n.go(r);let c=H(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:W([t,c.pathname])),(o.replace?n.replace:n.push)(c,o.state,o)}),[t,n,i,a,e])}()}o.createContext(null);function lt(e,{relative:t}={}){let{matches:n}=o.useContext(nt),{pathname:r}=it(),a=JSON.stringify(F(n));return o.useMemo((()=>H(e,JSON.parse(a),r,"path"===t)),[e,a,r,t])}function dt(e,t,n,r){u(at(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:i}=o.useContext(et),{matches:s}=o.useContext(nt),c=s[s.length-1],d=c?c.params:{},p=c?c.pathname:"/",f=c?c.pathnameBase:"/",m=c&&c.route;if(ot){let e=m&&m.path||"";kt(p,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (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 g,v=it();if(t){let e="string"==typeof t?h(t):t;u("/"===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.`),g=e}else g=v;let y=g.pathname||"/",w=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=!i&&n&&n.matches&&n.matches.length>0?n.matches:b(e,{pathname:w});ot&&(l(m||null!=x,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),l(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.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=gt(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:W([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:W([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&O?o.createElement(tt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},O):O}function pt(){let e=xt(),t=V(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)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return ot&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=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:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"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:a},n):null,s)}var ft=o.createElement(pt,null),ht=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(nt.Provider,{value:this.props.routeContext},o.createElement(rt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function mt({routeContext:e,match:t,children:n}){let r=o.useContext(Ke);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(nt.Provider,{value:e},n)}function gt(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 a=e,i=n?.errors;if(null!=i){let e=a.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=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){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,r,u)=>{let l,d=!1,p=null,f=null;n&&(l=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||ft,s&&(c<0&&0===u?(kt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):c===u&&(d=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,u+1)),m=()=>{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(mt,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===u)?o.createElement(ht,{location:n.location,revalidation:n.revalidation,component:p,error:l,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}function vt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yt(e){let t=o.useContext(Ke);return u(t,vt(e)),t}function bt(e){let t=o.useContext(Qe);return u(t,vt(e)),t}function wt(e){let t=function(e){let t=o.useContext(nt);return u(t,vt(e)),t}(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function xt(){let e=o.useContext(rt),t=bt("useRouteError"),n=wt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Ot={};function kt(e,t,n){t||Ot[e]||(Ot[e]=!0,l(!1,n))}var St={};function Et(e,t){e||St[t]||(St[t]=!0,console.warn(t))}var Pt=!0;function jt(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Pt&&e.element&&l(!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&&(Pt&&e.hydrateFallbackElement&&l(!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&&(Pt&&e.errorElement&&l(!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}var _t=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 Dt({router:e,flushSync:t}){let[n,r]=o.useState(e.state),[a,i]=o.useState(),[s,c]=o.useState({isTransitioning:!1}),[u,l]=o.useState(),[d,p]=o.useState(),[f,h]=o.useState(),m=o.useRef(new Map),g=o.useCallback(((n,{deletedFetchers:a,flushSync:s,viewTransitionOpts:f})=>{n.fetchers.forEach(((e,t)=>{void 0!==e.data&&m.current.set(t,e.data)})),a.forEach((e=>m.current.delete(e))),Et(!1===s||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(Et(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&&s){t((()=>{d&&(u&&u.resolve(),d.skipTransition()),c({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),i(void 0),c({isTransitioning:!1})}))})),void t((()=>p(o)))}d?(u&&u.resolve(),d.skipTransition(),h({state:n,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(i(n),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&s?t((()=>r(n))):o.startTransition((()=>r(n)))}),[e.window,t,d,u]);o.useLayoutEffect((()=>e.subscribe(g)),[e,g]),o.useEffect((()=>{s.isTransitioning&&!s.flushSync&&l(new _t)}),[s]),o.useEffect((()=>{if(u&&a&&e.window){let t=a,n=u.promise,s=e.window.document.startViewTransition((async()=>{o.startTransition((()=>r(t))),await n}));s.finished.finally((()=>{l(void 0),p(void 0),i(void 0),c({isTransitioning:!1})})),p(s)}}),[a,u,e.window]),o.useEffect((()=>{u&&a&&n.location.key===a.location.key&&u.resolve()}),[u,d,n.location,a]),o.useEffect((()=>{!s.isTransitioning&&f&&(i(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),h(void 0))}),[s.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(Ke.Provider,{value:b},o.createElement(Qe.Provider,{value:n},o.createElement(Je.Provider,{value:m.current},o.createElement(Xe.Provider,{value:s},o.createElement(Ct,{basename:y,location:n.location,navigationType:n.historyAction,navigator:v},o.createElement(Tt,{routes:e.routes,future:e.future,state:n})))))),null)}var Tt=o.memo((function({routes:e,future:t,state:n}){return dt(e,void 0,n,t)}));function At({to:e,replace:t,state:n,relative:r}){u(at(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(et);l(!a,"<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:i}=o.useContext(nt),{pathname:s}=it(),c=ut(),d=H(e,F(i),s,"path"===r),p=JSON.stringify(d);return o.useEffect((()=>{c(JSON.parse(p),{replace:t,state:n,relative:r})}),[c,p,r,t,n]),null}function Mt(e){u(!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 Ct({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){u(!at(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=o.useMemo((()=>({basename:s,navigator:a,static:i,future:{}})),[s,a,i]);"string"==typeof n&&(n=h(n));let{pathname:d="/",search:p="",hash:f="",state:m=null,key:g="default"}=n,v=o.useMemo((()=>{let e=R(d,s);return null==e?null:{location:{pathname:e,search:p,hash:f,state:m,key:g},navigationType:r}}),[s,d,p,f,m,g,r]);return l(null!=v,`<Router basename="${s}"> is not able to match the URL "${d}${p}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:o.createElement(et.Provider,{value:c},o.createElement(tt.Provider,{children:t,value:v}))}function It({children:e,location:t}){return dt(Rt(e),t)}o.Component;function Rt(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let a=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Rt(e.props.children,a));u(e.type===Mt,`[${"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>`),u(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||a.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&&(i.children=Rt(e.props.children,a)),n.push(i)})),n}var Nt="get",Lt="application/x-www-form-urlencoded";function Ft(e){return null!=e&&"string"==typeof e.tagName}var Ht=null;var Wt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yt(e){return null==e||Wt.has(e)?e:(l(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lt}"`),null)}function Bt(e,t){let n,r,o,a,i;if(function(e){return Ft(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");r=i?R(i,t):null,n=e.getAttribute("method")||Nt,o=Yt(e.getAttribute("enctype"))||Lt,a=new FormData(e)}else if(function(e){return Ft(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ft(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(r=s?R(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Nt,o=Yt(e.getAttribute("formenctype"))||Yt(i.getAttribute("enctype"))||Lt,a=new FormData(i,e),!function(){if(null===Ht)try{new FormData(document.createElement("form"),0),Ht=!1}catch(e){Ht=!0}return Ht}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Ft(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Nt,r=null,o=Lt,i=e}return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function zt(e,t){if(!1===e||null==e)throw new Error(t)}async function Ut(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 Vt(e){return null!=e&&"string"==typeof e.page}function qt(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 $t(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||s(e,t))):"data"===a?t.filter(((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(i(t,a)||s(t,a))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 Gt(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 Kt(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Vt(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=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(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function Qt(e){return{__html:e}}Symbol("SingleFetchRedirect");function Xt(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&&"/"===R(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}o.Component;function Jt({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(V(e))return o.createElement(Zt,{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(Zt,{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 Zt({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:a}=on();return a.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(pn,null):null)))}function en(e){return!0===e}function tn(){let e=o.useContext(Ke);return zt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nn(){let e=o.useContext(Qe);return zt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rn=o.createContext(void 0);function on(){let e=o.useContext(rn);return zt(e,"You must render this element inside a <HydratedRouter> element"),e}function an(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function sn(e,t,n){if(n&&!dn)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 cn({page:e,...t}){let{router:n}=tn(),r=o.useMemo((()=>b(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(ln,{page:e,matches:r,...t}):null}function un(e){let{manifest:t,routeModules:n}=on(),[r,a]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return Kt((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Ut(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(qt).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||a(e)})),()=>{r=!0}}),[e,t,n]),r}function ln({page:e,matches:t,...n}){let r=it(),{manifest:a,routeModules:i}=on(),{basename:s}=tn(),{loaderData:c,matches:u}=nn(),l=o.useMemo((()=>$t(e,t,u,a,r,"data")),[e,t,u,a,r]),d=o.useMemo((()=>$t(e,t,u,a,r,"assets")),[e,t,u,a,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=a.routes[e.route.id];t&&t.hasLoader&&(!l.some((t=>t.route.id===e.route.id))&&e.route.id in c&&i[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let u=Xt(e,s);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]}),[s,c,r,a,l,t,e,i]),f=o.useMemo((()=>Gt(d,a)),[d,a]),h=un(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}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,...t}))))}rn.displayName="FrameworkContext";var dn=!1;function pn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,ssr:a,renderMeta:i}=on(),{router:s,static:c,staticContext:u}=tn(),{matches:l}=nn(),d=en(a);i&&(i.didRenderScripts=!0);let p=sn(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());`:" ",a=c?`${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];zt(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,hydrateFallbackModule:s,module:c}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:c,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(c)};`:[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=b(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let a=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return{...e,routes:a}}(t,s),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:Qt(r),type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Qt(a),type:"module",async:!0}))}),[]),h=dn?[]:t.entry.imports.concat(Gt(p,t,{includeHydrateFallback:!0}));return dn?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)]}(h).map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),f)}function fn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var hn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{hn&&(window.__reactRouterVersion="7.3.0")}catch(e){}function mn(e,t){return ae({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:c({window:t?.window}),hydrationData:t?.hydrationData||gn(),routes:e,mapRouteProperties:jt,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function gn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:vn(e.errors)}),e}function vn(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 U(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 yn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bn=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:i,state:s,target:c,to:d,preventScrollReset:p,viewTransition:h,...m},g){let v,{basename:y}=o.useContext(et),b="string"==typeof d&&yn.test(d),w=!1;if("string"==typeof d&&b&&(v=d,hn))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=R(t.pathname,y);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:w=!0}catch(e){l(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=function(e,{relative:t}={}){u(at(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(et),{hash:a,pathname:i,search:s}=lt(e,{relative:t}),c=i;return"/"!==n&&(c="/"===i?n:W([n,i])),r.createHref({pathname:c,search:s,hash:a})}(d,{relative:r}),[O,k,S]=function(e,t){let n=o.useContext(rn),[r,a]=o.useState(!1),[i,s]=o.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{a(!0)},m=()=>{a(!1),s(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:an(c,h),onBlur:an(u,m),onMouseEnter:an(l,h),onMouseLeave:an(d,m),onTouchStart:an(p,h)}]:[!1,f,{}]}(n,m),E=function(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:s}={}){let c=ut(),u=it(),l=lt(e,{relative:i});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:f(u)===f(l);c(e,{replace:t,state:r,preventScrollReset:a,relative:i,viewTransition:s})}}),[u,c,l,n,r,t,e,a,i,s])}(d,{replace:i,state:s,target:c,preventScrollReset:p,relative:r,viewTransition:h});let P=o.createElement("a",{...m,...S,href:v||x,onClick:w||a?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:fn(g,k),target:c,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,P,o.createElement(cn,{page:x})):P}));bn.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:s,children:c,...l},d){let p=lt(i,{relative:l.relative}),f=it(),h=o.useContext(Qe),{navigator:m,basename:g}=o.useContext(et),v=null!=h&&function(e,t={}){let n=o.useContext(Xe);u(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=On("useViewTransitionState"),a=lt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=R(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=R(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=C(a.pathname,s)||null!=C(a.pathname,i)}(p)&&!0===s,y=m.encodeLocation?m.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=R(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},P=k?e:void 0;O="function"==typeof n?n(E):[n,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof a?a(E):a;return o.createElement(bn,{...l,"aria-current":P,className:O,ref:d,style:j,to:i,viewTransition:s},"function"==typeof c?c(E):c)})).displayName="NavLink";var wn=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=Nt,action:c,onSubmit:l,relative:d,preventScrollReset:p,viewTransition:h,...m},g)=>{let v=En(),y=function(e,{relative:t}={}){let{basename:n}=o.useContext(et),r=o.useContext(nt);u(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...lt(e||".",{relative:t})},s=it();if(null==e){i.search=s.search;let e=new URLSearchParams(i.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();i.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:W([n,i.pathname]));return f(i)}(c,{relative:d}),b="get"===s.toLowerCase()?"get":"post",w="string"==typeof c&&yn.test(c);return o.createElement("form",{ref:g,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||s;v(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:a,state:i,relative:d,preventScrollReset:p,viewTransition:h})},...m,"data-discover":w||"render"!==e?void 0:"true"})}));function xn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function On(e){let t=o.useContext(Ke);return u(t,xn(e)),t}wn.displayName="Form";var kn=0,Sn=()=>`__${String(++kn)}__`;function En(){let{router:e}=On("useSubmit"),{basename:t}=o.useContext(et),n=wt("useRouteId");return o.useCallback((async(r,o={})=>{let{action:a,method:i,encType:s,formData:c,body:u}=Bt(r,t);if(!1===o.navigate){let t=o.fetcherKey||Sn();await e.fetch(t,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||s,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:()=>a});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 a(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={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[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,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(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:()=>s,Tw:()=>d,Zz:()=>l,ve:()=>p,y$:()=>c});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function s(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 c(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(c)(e,t)}let a=e,u=t,l=new Map,d=l,p=0,f=!1;function h(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function m(){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;h();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,h(),d.delete(n),l=null}}}function v(e){if(!s(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=a(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:i.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,v({type:i.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(m())}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 a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const s={};for(let a=0;a<o.length;a++){const c=o[a],u=n[c],l=e[c],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[c]=d,i=i||d!==l}return i=i||o.length!==Object.keys(e).length,i?s:e}}function l(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function d(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const s={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},c=e.map((e=>e(s)));return i=l(...c)(a.dispatch),{...a,dispatch:i}}}function p(e){return s(e)&&"type"in e&&"string"==typeof e.type}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=i,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.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);c.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;"object"==typeof i&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,c.d(o,a),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{103:"47ac30cdd85fbaed1d6d",211:"97e51eb60a97a6a4c59b",222:"b74ba27555e127ba5284",262:"049cd746dbac10ddf455",264:"3de469345619fa668571",310:"4c7fbec326c4ad5c79d6",389:"ec325b8aeb9c696940cc",672:"78ed568b85e32ed20610",722:"e2cf5bd8e1ae975acf8d",910:"af6f0e3a595330143603",916:"55494b18475f3e79135e"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-devcon:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,s;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")==a+n){i=d;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={792:0};c.f.j=(t,n)=>{var r=c.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 a=c.p+c.u(t),i=new Error;c.l(a,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in i)c.o(i,r)&&(c.m[r]=i[r]);if(s)s(c)}for(t&&t(n);u<a.length;u++)o=a[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_devcon=this.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;return(()=>{"use strict";var e=c(26396),t=c.n(e),n=c(4883),r=c.n(n),o=c(76744),a=c(81845);
|
|
41
41
|
/**
|
|
42
42
|
* react-router v7.3.0
|
|
43
43
|
*
|