@perses-dev/clickhouse-plugin 0.7.0-beta.1 → 0.7.0-beta.2

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.
Files changed (85) hide show
  1. package/__mf/js/{ClickHouse.76a0fbf4.js → ClickHouse.d554fc35.js} +2 -2
  2. package/__mf/js/async/1522.d8e80570.js +22 -0
  3. package/__mf/js/async/1616.8ee37fc2.js +1 -0
  4. package/__mf/js/async/2043.33c976ff.js +2 -0
  5. package/__mf/js/async/2043.33c976ff.js.LICENSE.txt +24 -0
  6. package/__mf/js/async/2650.27d5a53e.js +3 -0
  7. package/__mf/js/async/2901.98424a07.js +1 -0
  8. package/__mf/js/async/3181.7b46b8e9.js +2 -0
  9. package/__mf/js/async/{392.d89cad59.js → 392.54a0693e.js} +2 -2
  10. package/__mf/js/async/3944.f70c2037.js +10 -0
  11. package/__mf/js/async/4077.5b0edb67.js +1 -0
  12. package/__mf/js/async/4121.0b653ee5.js +2 -0
  13. package/__mf/js/async/4496.23de7e47.js +1 -0
  14. package/__mf/js/async/4569.ffd2c654.js +7 -0
  15. package/__mf/js/async/{482.e59722dd.js.LICENSE.txt → 4569.ffd2c654.js.LICENSE.txt} +0 -25
  16. package/__mf/js/async/5002.2cee2f35.js +1 -0
  17. package/__mf/js/async/5071.fe3eb282.js +1 -0
  18. package/__mf/js/async/5440.6cfd6f26.js +2 -0
  19. package/__mf/js/async/5562.c5ce26e1.js +2 -0
  20. package/__mf/js/async/5587.9797bc5a.js +1 -0
  21. package/__mf/js/async/{560.0b052d6c.js → 560.acc0c2d1.js} +2 -2
  22. package/__mf/js/async/6045.93765a0a.js +1 -0
  23. package/__mf/js/async/6274.35dc924b.js +2 -0
  24. package/__mf/js/async/7192.f4e0055e.js +1 -0
  25. package/__mf/js/async/7862.306edb3f.js +2 -0
  26. package/__mf/js/async/7943.a43cb4a7.js +2 -0
  27. package/__mf/js/async/7968.a73d7acd.js +1 -0
  28. package/__mf/js/async/7978.e22f59c6.js +1 -0
  29. package/__mf/js/async/8356.d102e817.js +1 -0
  30. package/__mf/js/async/8470.4652ca18.js +2 -0
  31. package/__mf/js/async/873.cae3f07a.js +1 -0
  32. package/__mf/js/async/{1.1e91dea7.js → 9001.0b1d67e2.js} +4 -4
  33. package/__mf/js/async/9207.b184be58.js +1 -0
  34. package/__mf/js/async/9235.0aff6249.js +1 -0
  35. package/__mf/js/async/{941.4bc59208.js → 941.26e4a6ef.js} +2 -2
  36. package/__mf/js/async/9588.a36eacf5.js +1 -0
  37. package/__mf/js/async/__federation_expose_ClickHouseDatasource.1eba91f6.js +2 -0
  38. package/__mf/js/async/__federation_expose_ClickHouseLogQuery.27676311.js +20 -0
  39. package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.3d225a5d.js +20 -0
  40. package/__mf/js/{main.1efc6679.js → main.5353a8fc.js} +3 -3
  41. package/mf-manifest.json +107 -55
  42. package/mf-stats.json +115 -55
  43. package/package.json +6 -6
  44. package/__mf/js/async/121.1f2608b3.js +0 -2
  45. package/__mf/js/async/181.e0b3926b.js +0 -2
  46. package/__mf/js/async/192.406c1c63.js +0 -1
  47. package/__mf/js/async/2.05cb4775.js +0 -1
  48. package/__mf/js/async/235.83f7cd2f.js +0 -1
  49. package/__mf/js/async/274.b8ce8e1b.js +0 -2
  50. package/__mf/js/async/356.f08f6910.js +0 -1
  51. package/__mf/js/async/440.62bb6f89.js +0 -2
  52. package/__mf/js/async/45.37b51769.js +0 -1
  53. package/__mf/js/async/470.3fc1ceb1.js +0 -2
  54. package/__mf/js/async/482.e59722dd.js +0 -7
  55. package/__mf/js/async/522.69c8ed0a.js +0 -22
  56. package/__mf/js/async/562.bc9f9e5a.js +0 -2
  57. package/__mf/js/async/587.8361f462.js +0 -1
  58. package/__mf/js/async/616.2f7b03f4.js +0 -1
  59. package/__mf/js/async/663.40f2ec68.js +0 -1
  60. package/__mf/js/async/700.5b2b12f4.js +0 -3
  61. package/__mf/js/async/862.e7bf5c84.js +0 -2
  62. package/__mf/js/async/865.39675206.js +0 -1
  63. package/__mf/js/async/901.d4978bec.js +0 -1
  64. package/__mf/js/async/943.62d64363.js +0 -2
  65. package/__mf/js/async/944.f146f769.js +0 -10
  66. package/__mf/js/async/968.4ac56699.js +0 -1
  67. package/__mf/js/async/__federation_expose_ClickHouseDatasource.442c0903.js +0 -2
  68. package/__mf/js/async/__federation_expose_ClickHouseLogQuery.13604af9.js +0 -20
  69. package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.c9cd60a0.js +0 -20
  70. /package/__mf/css/async/{482.85c2cbf6.css → 4569.85c2cbf6.css} +0 -0
  71. /package/__mf/js/async/{522.69c8ed0a.js.LICENSE.txt → 1522.d8e80570.js.LICENSE.txt} +0 -0
  72. /package/__mf/js/async/{181.e0b3926b.js.LICENSE.txt → 3181.7b46b8e9.js.LICENSE.txt} +0 -0
  73. /package/__mf/js/async/{392.d89cad59.js.LICENSE.txt → 392.54a0693e.js.LICENSE.txt} +0 -0
  74. /package/__mf/js/async/{944.f146f769.js.LICENSE.txt → 3944.f70c2037.js.LICENSE.txt} +0 -0
  75. /package/__mf/js/async/{121.1f2608b3.js.LICENSE.txt → 4121.0b653ee5.js.LICENSE.txt} +0 -0
  76. /package/__mf/js/async/{440.62bb6f89.js.LICENSE.txt → 5440.6cfd6f26.js.LICENSE.txt} +0 -0
  77. /package/__mf/js/async/{562.bc9f9e5a.js.LICENSE.txt → 5562.c5ce26e1.js.LICENSE.txt} +0 -0
  78. /package/__mf/js/async/{274.b8ce8e1b.js.LICENSE.txt → 6274.35dc924b.js.LICENSE.txt} +0 -0
  79. /package/__mf/js/async/{862.e7bf5c84.js.LICENSE.txt → 7862.306edb3f.js.LICENSE.txt} +0 -0
  80. /package/__mf/js/async/{941.4bc59208.js.LICENSE.txt → 7943.a43cb4a7.js.LICENSE.txt} +0 -0
  81. /package/__mf/js/async/{470.3fc1ceb1.js.LICENSE.txt → 8470.4652ca18.js.LICENSE.txt} +0 -0
  82. /package/__mf/js/async/{943.62d64363.js.LICENSE.txt → 941.26e4a6ef.js.LICENSE.txt} +0 -0
  83. /package/__mf/js/async/{__federation_expose_ClickHouseDatasource.442c0903.js.LICENSE.txt → __federation_expose_ClickHouseDatasource.1eba91f6.js.LICENSE.txt} +0 -0
  84. /package/__mf/js/async/{__federation_expose_ClickHouseLogQuery.13604af9.js.LICENSE.txt → __federation_expose_ClickHouseLogQuery.27676311.js.LICENSE.txt} +0 -0
  85. /package/__mf/js/async/{__federation_expose_ClickHouseTimeSeriesQuery.c9cd60a0.js.LICENSE.txt → __federation_expose_ClickHouseTimeSeriesQuery.3d225a5d.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perses-dev/clickhouse-plugin",
3
- "version": "0.7.0-beta.1",
3
+ "version": "0.7.0-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://github.com/perses/plugins/blob/main/README.md",
6
6
  "repository": {
@@ -28,12 +28,12 @@
28
28
  "@emotion/react": "^11.7.1",
29
29
  "@emotion/styled": "^11.6.0",
30
30
  "@hookform/resolvers": "^3.2.0",
31
- "@perses-dev/components": "^0.55.0-beta.3",
32
- "@perses-dev/dashboards": "^0.55.0-beta.6",
31
+ "@perses-dev/components": "^0.55.0-beta.7",
32
+ "@perses-dev/dashboards": "^0.55.0-beta.7",
33
33
  "@perses-dev/spec": "^0.3.0-beta.5",
34
- "@perses-dev/explore": "^0.55.0-beta.6",
35
- "@perses-dev/plugin-system": "^0.55.0-beta.6",
36
- "@perses-dev/client": "^0.55.0-beta.6",
34
+ "@perses-dev/explore": "^0.55.0-beta.7",
35
+ "@perses-dev/plugin-system": "^0.55.0-beta.7",
36
+ "@perses-dev/client": "^0.55.0-beta.7",
37
37
  "@tanstack/react-query": "^4.39.1",
38
38
  "date-fns": "^4.1.0",
39
39
  "date-fns-tz": "^3.2.0",
@@ -1,2 +0,0 @@
1
- /*! For license information please see 121.1f2608b3.js.LICENSE.txt */
2
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["121"],{14403(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=b.prototype;var S=v.prototype=new m;S.constructor=v,_(S,b.prototype),S.isPureReactComponent=!0;var k=Array.isArray,E=Object.prototype.hasOwnProperty,$={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!w.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:$.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function O(e,t,o){if(null==e)return e;var u=[],a=0;return!function e(t,o,u,a,c){var i,f,s,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var p=!1;if(null===t)p=!0;else switch(l){case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case r:case n:p=!0}}if(p)return c=c(p=t),t=""===a?"."+j(p,0):a,k(c)?(u="",null!=t&&(u=t.replace(g,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,f=u+(!c.key||p&&p.key===c.key?"":(""+c.key).replace(g,"$&/")+"/")+t,c={$$typeof:r,type:i.type,key:f,ref:i.ref,props:i.props,_owner:i._owner}),o.push(c)),1;if(p=0,a=""===a?".":a+":",k(t))for(var d=0;d<t.length;d++){var _=a+j(l=t[d],d);p+=e(l,o,u,_,c)}else if("function"==typeof(_=null===(s=t)||"object"!=typeof s?null:"function"==typeof(s=y&&s[y]||s["@@iterator"])?s:null))for(t=_.call(t),d=0;!(l=t.next()).done;)_=a+j(l=l.value,d++),p+=e(l,o,u,_,c);else if("object"===l)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return p}(e,u,"","",function(e){return t.call(o,e,a++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},I={transition:null};function T(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,r){O(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:$},t.act=T,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=$.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)E.call(t,f)&&!w.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=T,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},63696(e,t,r){e.exports=r(14403)}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 181.e0b3926b.js.LICENSE.txt */
2
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["181"],{2192(e,r,_){var o=_(70451),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,_){var o,n={},u=null,a=null;for(o in void 0!==_&&(u=""+_),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(a=r.ref),r)s.call(r,o)&&!l.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:t,type:e,key:u,ref:a,props:n,_owner:f.current}}r.Fragment=n,r.jsx=u,r.jsxs=u},62540(e,r,_){e.exports=_(2192)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["192"],{89227(e,t,n){n.r(t),n.d(t,{subSeconds:()=>rv,quartersToMonths:()=>nJ,isThisWeek:()=>tV,isTuesday:()=>t6,millisecondsToHours:()=>nd,getUnixTime:()=>tf,eachQuarterOfInterval:()=>eD,setDay:()=>n6.l,intlFormatDistance:()=>tp,isSameHour:()=>tU.l,isSaturday:()=>o,differenceInSeconds:()=>eo,isSameQuarter:()=>tP,hoursToMinutes:()=>ty,secondsToMilliseconds:()=>nV,startOfWeekYear:()=>ru.b,getDay:()=>e3,startOfDay:()=>ro.o,startOfYesterday:()=>rh,endOfHour:()=>eY,formatDistanceToNow:()=>eG,endOfQuarter:()=>eH,max:()=>F,constructNow:()=>$,formatRelative:()=>e0,subMilliseconds:()=>ry,isThursday:()=>t1,addMilliseconds:()=>y.A,yearsToMonths:()=>rY,isSameISOWeek:()=>tq,isToday:()=>t2,formatDistanceToNowStrict:()=>eP,isTomorrow:()=>t3,getOverlappingDaysInIntervals:()=>ts,differenceInCalendarMonths:()=>P,addHours:()=>d.L,differenceInCalendarQuarters:()=>Z,eachWeekOfInterval:()=>ey,formatRFC3339:()=>eB,lastDayOfDecade:()=>t8,minutesToSeconds:()=>nD,getMinutes:()=>tu.O,previousFriday:()=>n_,differenceInCalendarISOWeekYears:()=>q,differenceInISOWeekYears:()=>ee,getMilliseconds:()=>ta.D,isAfter:()=>tT.d,toDate:()=>i.a,subWeeks:()=>rS,setISOWeek:()=>n8.O,isPast:()=>tC,differenceInWeeks:()=>el,isThisHour:()=>tj,previousSunday:()=>nX,nextTuesday:()=>nF,startOfMonth:()=>ew.w,isYesterday:()=>t7,eachHourOfInterval:()=>eh,minutesToHours:()=>nM,eachMinuteOfInterval:()=>eg,weeksToDays:()=>rN,yearsToDays:()=>rF,min:()=>Y,subDays:()=>t5,setMilliseconds:()=>re.$,differenceInMilliseconds:()=>et,lastDayOfYear:()=>na,differenceInYears:()=>ef,constructFrom:()=>u.w,getWeekOfMonth:()=>td,hoursToSeconds:()=>tO,millisecondsToMinutes:()=>nh,monthsToYears:()=>nO,isWeekend:()=>f,isExists:()=>tk,isFriday:()=>tx,getDayOfYear:()=>e6.F,previousThursday:()=>nZ,nextDay:()=>nw,getISOWeeksInYear:()=>tr,parseISO:()=>nk,secondsToMinutes:()=>n0,lightFormatters:()=>nu.C,sub:()=>rM,formatISO:()=>ej,isSameWeek:()=>tE,lastDayOfMonth:()=>tg,setDate:()=>n3.X,quartersToYears:()=>nA,interval:()=>tw,isLeapYear:()=>e9,setYear:()=>rs.i,nextWednesday:()=>nY,endOfMinute:()=>eb,parsers:()=>tH.T_,isEqual:()=>tY.n,milliseconds:()=>nc,previousDay:()=>nR,differenceInHours:()=>K,eachDayOfInterval:()=>ed,setDayOfYear:()=>n4,subISOWeekYears:()=>V,differenceInCalendarDays:()=>g.m,endOfISOWeek:()=>eI,getDate:()=>e2.p,getWeeksInMonth:()=>tM,getHours:()=>te.q,isValid:()=>U.f,getYear:()=>tm.C,roundToNearestHours:()=>nB,nextFriday:()=>nv,set:()=>n2,yearsToQuarters:()=>rk,eachWeekendOfInterval:()=>eO,areIntervalsOverlapping:()=>T,getMonth:()=>ti.t,isThisISOWeek:()=>tJ,setISODay:()=>n7.a,setDefaultOptions:()=>n9,closestTo:()=>x,isThisSecond:()=>tK,setISOWeekYear:()=>m,millisecondsToSeconds:()=>ng,lightFormat:()=>nf,compareDesc:()=>H,previousWednesday:()=>nj,startOfHour:()=>rf.Q,closestIndexTo:()=>I,endOfSecond:()=>e$,daysToWeeks:()=>W,differenceInCalendarWeeks:()=>j,isDate:()=>tF.$,isThisMinute:()=>tA,isFirstDayOfMonth:()=>tI,isThisQuarter:()=>tL,formatRFC7231:()=>eV,roundToNearestMinutes:()=>nL,setHours:()=>n5.a,subMinutes:()=>rO,longFormatters:()=>eE.m,endOfMonth:()=>ea.p,getISOWeekYear:()=>h.p,isBefore:()=>tN.Y,lastDayOfISOWeek:()=>nt,parseJSON:()=>nQ,startOfMinute:()=>tR,setQuarter:()=>rn,compareAsc:()=>b,startOfTomorrow:()=>rd,eachWeekendOfMonth:()=>ev,subMonths:()=>rg,endOfISOWeekYear:()=>ex,formatters:()=>eE._J,endOfWeek:()=>ek.$,differenceInDays:()=>A,differenceInCalendarYears:()=>J,setMonth:()=>n1.Z,isSameMonth:()=>tG.t,addSeconds:()=>v.p,isWednesday:()=>t4,differenceInQuarters:()=>es,getDecade:()=>e7,subYears:()=>rp,addMonths:()=>a.P,setWeekYear:()=>ri,addBusinessDays:()=>c,getDefaultOptions:()=>e8.q,subQuarters:()=>rw,isSameDay:()=>C.r,startOfSecond:()=>tX,isLastDayOfMonth:()=>eu,subBusinessDays:()=>rm,isWithinInterval:()=>t9.v,startOfYear:()=>ep.D,formatDistance:()=>eR,formatISODuration:()=>eA,eachMonthOfInterval:()=>eM,nextMonday:()=>nS,addYears:()=>p.e,intervalToDuration:()=>tv,getDaysInYear:()=>e5,formatDate:()=>eE.Yq,monthsToQuarters:()=>ny,parse:()=>tH.qg,nextSaturday:()=>np,isSameMinute:()=>t_,lastDayOfQuarter:()=>nr,format:()=>eE.GP,isFuture:()=>tb,addISOWeekYears:()=>D,endOfDecade:()=>eF,minutesToMilliseconds:()=>nm,setMinutes:()=>rt.g,getQuarter:()=>X,formatISO9075:()=>eJ,nextThursday:()=>nN,endOfYear:()=>eS.Q,startOfToday:()=>rc,clamp:()=>k,setWeek:()=>ra.Z,getISODay:()=>tt.g,addDays:()=>r.f,formatDistanceStrict:()=>e_,startOfISOWeek:()=>_.b,hoursToMilliseconds:()=>tD,startOfWeek:()=>z.k,getWeek:()=>tc.N,differenceInMonths:()=>ei,isSameYear:()=>tz.s,isMatch:()=>t$,isThisYear:()=>t0,addMinutes:()=>O.z,nextSunday:()=>nT,startOfQuarter:()=>em,previousSaturday:()=>nP,lastDayOfISOWeekYear:()=>nn,add:()=>s,getDaysInMonth:()=>e4.P,isThisMonth:()=>tB,previousMonday:()=>nG,intlFormat:()=>tS,formatDuration:()=>eZ,isSunday:()=>l,addQuarters:()=>w,transpose:()=>rT.m,getSeconds:()=>to.S,endOfDay:()=>er.D,lastDayOfWeek:()=>ne,isSameSecond:()=>tZ,startOfISOWeekYear:()=>M.w,endOfTomorrow:()=>eC,getWeekYear:()=>th.h,previousTuesday:()=>nz,endOfToday:()=>eW,differenceInMinutes:()=>en,fromUnixTime:()=>e1,startOfDecade:()=>rl,differenceInCalendarISOWeeks:()=>G,endOfYesterday:()=>eU,isMonday:()=>tW,setSeconds:()=>rr.g,eachWeekendOfYear:()=>eT,eachYearOfInterval:()=>eN,subHours:()=>rD,isSameISOWeekYear:()=>tQ,getTime:()=>tl,secondsToHours:()=>nK,differenceInBusinessDays:()=>E,getISOWeek:()=>tn.s,addWeeks:()=>S.J});var r=n(65130),a=n(38086),u=n(12015),i=n(4721);function s(e,t,n){let{years:s=0,months:o=0,weeks:l=0,days:f=0,hours:c=0,minutes:d=0,seconds:h=0}=t,g=(0,i.a)(e,n?.in),M=o||s?(0,a.P)(g,o+12*s):g,m=f||l?(0,r.f)(M,f+7*l):M;return(0,u.w)(n?.in||e,+m+1e3*(h+60*(d+60*c)))}function o(e,t){return 6===(0,i.a)(e,t?.in).getDay()}function l(e,t){return 0===(0,i.a)(e,t?.in).getDay()}function f(e,t){let n=(0,i.a)(e,t?.in).getDay();return 0===n||6===n}function c(e,t,n){let r=(0,i.a)(e,n?.in),a=f(r,n);if(isNaN(t))return(0,u.w)(n?.in,NaN);let s=r.getHours(),c=t<0?-1:1,d=Math.trunc(t/5);r.setDate(r.getDate()+7*d);let h=Math.abs(t%5);for(;h>0;)r.setDate(r.getDate()+c),f(r,n)||(h-=1);return a&&f(r,n)&&0!==t&&(o(r,n)&&r.setDate(r.getDate()+(c<0?2:-1)),l(r,n)&&r.setDate(r.getDate()+(c<0?1:-2))),r.setHours(s),r}var d=n(54266),h=n(51528),g=n(72077),M=n(16363);function m(e,t,n){let r=(0,i.a)(e,n?.in),a=(0,g.m)(r,(0,M.w)(r,n)),s=(0,u.w)(n?.in||e,0);return s.setFullYear(t,0,4),s.setHours(0,0,0,0),(r=(0,M.w)(s)).setDate(r.getDate()+a),r}function D(e,t,n){return m(e,(0,h.p)(e,n)+t,n)}var y=n(67251),O=n(47196);function w(e,t,n){return(0,a.P)(e,3*t,n)}var v=n(43628),S=n(54708),p=n(16299);function T(e,t,n){let[r,a]=[+(0,i.a)(e.start,n?.in),+(0,i.a)(e.end,n?.in)].sort((e,t)=>e-t),[u,s]=[+(0,i.a)(t.start,n?.in),+(0,i.a)(t.end,n?.in)].sort((e,t)=>e-t);return n?.inclusive?r<=s&&u<=a:r<s&&u<a}var N=n(79147);function F(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=u.w.bind(null,e));let t=(0,i.a)(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),(0,u.w)(r,n||NaN)}function Y(e,t){let n,r=t?.in;return e.forEach(e=>{r||"object"!=typeof e||(r=u.w.bind(null,e));let t=(0,i.a)(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),(0,u.w)(r,n||NaN)}function k(e,t,n){let[r,a,u]=(0,N.x)(n?.in,e,t.start,t.end);return Y([F([r,a],n),u],n)}function I(e,t){let n,r,a=+(0,i.a)(e);return isNaN(a)?NaN:(t.forEach((e,t)=>{let u=(0,i.a)(e);if(isNaN(+u)){n=NaN,r=NaN;return}let s=Math.abs(a-u);(null==n||s<r)&&(n=t,r=s)}),n)}function x(e,t,n){let[r,...a]=(0,N.x)(n?.in,e,...t),i=I(r,a);return"number"==typeof i&&isNaN(i)?(0,u.w)(r,NaN):void 0!==i?a[i]:void 0}function b(e,t){let n=(0,i.a)(e)-(0,i.a)(t);return n<0?-1:n>0?1:n}function H(e,t){let n=(0,i.a)(e)-(0,i.a)(t);return n>0?-1:n<0?1:n}function $(e){return(0,u.w)(e,Date.now())}function W(e){let t=Math.trunc(e/7);return 0===t?0:t}var C=n(45350),U=n(268);function E(e,t,n){let[a,u]=(0,N.x)(n?.in,e,t);if(!(0,U.f)(a)||!(0,U.f)(u))return NaN;let i=(0,g.m)(a,u),s=i<0?-1:1,o=Math.trunc(i/7),l=5*o,c=(0,r.f)(u,7*o);for(;!(0,C.r)(a,c);)l+=f(c,n)?0:s,c=(0,r.f)(c,s);return 0===l?0:l}function q(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);return(0,h.p)(r,n)-(0,h.p)(a,n)}var Q=n(63134),R=n(30439),_=n(29350);function G(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t),u=(0,_.b)(r),i=(0,_.b)(a);return Math.round((u-(0,Q.G)(u)-(i-(0,Q.G)(i)))/R.my)}function P(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);return 12*(r.getFullYear()-a.getFullYear())+(r.getMonth()-a.getMonth())}function X(e,t){return Math.trunc((0,i.a)(e,t?.in).getMonth()/3)+1}function Z(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);return 4*(r.getFullYear()-a.getFullYear())+(X(r)-X(a))}var z=n(53819);function j(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t),u=(0,z.k)(r,n),i=(0,z.k)(a,n);return Math.round((u-(0,Q.G)(u)-(i-(0,Q.G)(i)))/R.my)}function J(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);return r.getFullYear()-a.getFullYear()}function A(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t),u=B(r,a),i=Math.abs((0,g.m)(r,a));r.setDate(r.getDate()-u*i);let s=Number(B(r,a)===-u),o=u*(i-s);return 0===o?0:o}function B(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function L(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function K(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t),u=(r-a)/R.s0;return L(n?.roundingMethod)(u)}function V(e,t,n){return D(e,-t,n)}function ee(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t),u=b(r,a),i=Math.abs(q(r,a,n)),s=Number(b(V(r,u*i,n),a)===-u),o=u*(i-s);return 0===o?0:o}function et(e,t){return(0,i.a)(e)-(0,i.a)(t)}function en(e,t,n){let r=et(e,t)/6e4;return L(n?.roundingMethod)(r)}var er=n(85910),ea=n(73206);function eu(e,t){let n=(0,i.a)(e,t?.in);return+(0,er.D)(n,t)==+(0,ea.p)(n,t)}function ei(e,t,n){let[r,a,u]=(0,N.x)(n?.in,e,e,t),i=b(a,u),s=Math.abs(P(a,u));if(s<1)return 0;1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-i*s);let o=b(a,u)===-i;eu(r)&&1===s&&1===b(r,u)&&(o=!1);let l=i*(s-o);return 0===l?0:l}function es(e,t,n){let r=ei(e,t,n)/3;return L(n?.roundingMethod)(r)}function eo(e,t,n){let r=et(e,t)/1e3;return L(n?.roundingMethod)(r)}function el(e,t,n){let r=A(e,t,n)/7;return L(n?.roundingMethod)(r)}function ef(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t),u=b(r,a),i=Math.abs(J(r,a));r.setFullYear(1584),a.setFullYear(1584);let s=b(r,a)===-u,o=u*(i-s);return 0===o?0:o}function ec(e,t){let[n,r]=(0,N.x)(e,t.start,t.end);return{start:n,end:r}}function ed(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setHours(0,0,0,0);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.w)(n,s)),s.setDate(s.getDate()+o),s.setHours(0,0,0,0);return a?l.reverse():l}function eh(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setMinutes(0,0,0);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.w)(n,s)),s.setHours(s.getHours()+o);return a?l.reverse():l}function eg(e,t){let{start:n,end:r}=ec(t?.in,e);n.setSeconds(0,0);let a=+n>+r,i=a?+n:+r,s=a?r:n,o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.w)(n,s)),s=(0,O.z)(s,o);return a?l.reverse():l}function eM(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setHours(0,0,0,0),s.setDate(1);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.w)(n,s)),s.setMonth(s.getMonth()+o);return a?l.reverse():l}function em(e,t){let n=(0,i.a)(e,t?.in),r=n.getMonth();return n.setMonth(r-r%3,1),n.setHours(0,0,0,0),n}function eD(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+em(n):+em(r),s=a?em(r):em(n),o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.w)(n,s)),s=w(s,o);return a?l.reverse():l}function ey(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?(0,z.k)(r,t):(0,z.k)(n,t),s=a?(0,z.k)(n,t):(0,z.k)(r,t);i.setHours(15),s.setHours(15);let o=+s.getTime(),l=i,f=t?.step??1;if(!f)return[];f<0&&(f=-f,a=!a);let c=[];for(;+l<=o;)l.setHours(0),c.push((0,u.w)(n,l)),(l=(0,S.J)(l,f)).setHours(15);return a?c.reverse():c}function eO(e,t){let{start:n,end:r}=ec(t?.in,e),a=ed({start:n,end:r},t),i=[],s=0;for(;s<a.length;){let e=a[s++];f(e)&&i.push((0,u.w)(n,e))}return i}var ew=n(19681);function ev(e,t){return eO({start:(0,ew.w)(e,t),end:(0,ea.p)(e,t)},t)}var eS=n(65043),ep=n(96058);function eT(e,t){return eO({start:(0,ep.D)(e,t),end:(0,eS.Q)(e,t)},t)}function eN(e,t){let{start:n,end:r}=ec(t?.in,e),a=+n>+r,i=a?+n:+r,s=a?r:n;s.setHours(0,0,0,0),s.setMonth(0,1);let o=t?.step??1;if(!o)return[];o<0&&(o=-o,a=!a);let l=[];for(;+s<=i;)l.push((0,u.w)(n,s)),s.setFullYear(s.getFullYear()+o);return a?l.reverse():l}function eF(e,t){let n=(0,i.a)(e,t?.in),r=9+10*Math.floor(n.getFullYear()/10);return n.setFullYear(r,11,31),n.setHours(23,59,59,999),n}function eY(e,t){let n=(0,i.a)(e,t?.in);return n.setMinutes(59,59,999),n}var ek=n(44766);function eI(e,t){return(0,ek.$)(e,{...t,weekStartsOn:1})}function ex(e,t){let n=(0,h.p)(e,t),r=(0,u.w)(t?.in||e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let a=(0,_.b)(r,t);return a.setMilliseconds(a.getMilliseconds()-1),a}function eb(e,t){let n=(0,i.a)(e,t?.in);return n.setSeconds(59,999),n}function eH(e,t){let n=(0,i.a)(e,t?.in),r=n.getMonth();return n.setMonth(r-r%3+3,0),n.setHours(23,59,59,999),n}function e$(e,t){let n=(0,i.a)(e,t?.in);return n.setMilliseconds(999),n}function eW(e){return(0,er.D)(Date.now(),e)}function eC(e){let t=$(e?.in),n=t.getFullYear(),r=t.getMonth(),a=t.getDate(),u=$(e?.in);return u.setFullYear(n,r,a+1),u.setHours(23,59,59,999),e?.in?e.in(u):u}function eU(e){let t=$(e?.in),n=(0,u.w)(e?.in,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),n.setHours(23,59,59,999),n}var eE=n(96962),eq=n(67671),eQ=n(350);function eR(e,t,n){let r,a=(0,eQ.q)(),u=n?.locale??a.locale??eq.c,i=b(e,t);if(isNaN(i))throw RangeError("Invalid time value");let s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:i}),[o,l]=(0,N.x)(n?.in,...i>0?[t,e]:[e,t]),f=eo(l,o),c=Math.round((f-((0,Q.G)(l)-(0,Q.G)(o))/1e3)/60);if(c<2)if(n?.includeSeconds)if(f<5)return u.formatDistance("lessThanXSeconds",5,s);else if(f<10)return u.formatDistance("lessThanXSeconds",10,s);else if(f<20)return u.formatDistance("lessThanXSeconds",20,s);else if(f<40)return u.formatDistance("halfAMinute",0,s);else if(f<60)return u.formatDistance("lessThanXMinutes",1,s);else return u.formatDistance("xMinutes",1,s);else if(0===c)return u.formatDistance("lessThanXMinutes",1,s);else return u.formatDistance("xMinutes",c,s);if(c<45)return u.formatDistance("xMinutes",c,s);if(c<90)return u.formatDistance("aboutXHours",1,s);if(c<1440){let e=Math.round(c/60);return u.formatDistance("aboutXHours",e,s)}if(c<2520)return u.formatDistance("xDays",1,s);else if(c<43200){let e=Math.round(c/1440);return u.formatDistance("xDays",e,s)}else if(c<86400)return r=Math.round(c/43200),u.formatDistance("aboutXMonths",r,s);if((r=ei(l,o))<12){let e=Math.round(c/43200);return u.formatDistance("xMonths",e,s)}{let e=r%12,t=Math.trunc(r/12);return e<3?u.formatDistance("aboutXYears",t,s):e<9?u.formatDistance("overXYears",t,s):u.formatDistance("almostXYears",t+1,s)}}function e_(e,t,n){let r,a=(0,eQ.q)(),u=n?.locale??a.locale??eq.c,i=b(e,t);if(isNaN(i))throw RangeError("Invalid time value");let s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:i}),[o,l]=(0,N.x)(n?.in,...i>0?[t,e]:[e,t]),f=L(n?.roundingMethod??"round"),c=l.getTime()-o.getTime(),d=c/6e4,h=(c-((0,Q.G)(l)-(0,Q.G)(o)))/6e4,g=n?.unit;if("second"===(r=g||(d<1?"second":d<60?"minute":d<1440?"hour":h<43200?"day":h<525600?"month":"year"))){let e=f(c/1e3);return u.formatDistance("xSeconds",e,s)}if("minute"===r){let e=f(d);return u.formatDistance("xMinutes",e,s)}if("hour"===r){let e=f(d/60);return u.formatDistance("xHours",e,s)}if("day"===r){let e=f(h/1440);return u.formatDistance("xDays",e,s)}if("month"===r){let e=f(h/43200);return 12===e&&"month"!==g?u.formatDistance("xYears",1,s):u.formatDistance("xMonths",e,s)}else{let e=f(h/525600);return u.formatDistance("xYears",e,s)}}function eG(e,t){return eR(e,$(e),t)}function eP(e,t){return e_(e,$(e),t)}let eX=["years","months","weeks","days","hours","minutes","seconds"];function eZ(e,t){let n=(0,eQ.q)(),r=t?.locale??n.locale??eq.c,a=t?.format??eX,u=t?.zero??!1,i=t?.delimiter??" ";return r.formatDistance?a.reduce((t,n)=>{let a=`x${n.replace(/(^.)/,e=>e.toUpperCase())}`,i=e[n];return void 0!==i&&(u||e[n])?t.concat(r.formatDistance(a,i)):t},[]).join(i):""}var ez=n(50293);function ej(e,t){let n=(0,i.a)(e,t?.in);if(isNaN(+n))throw RangeError("Invalid time value");let r=t?.format??"extended",a=t?.representation??"complete",u="",s="",o="extended"===r?"-":"";if("time"!==a){let e=(0,ez.F)(n.getDate(),2),t=(0,ez.F)(n.getMonth()+1,2),r=(0,ez.F)(n.getFullYear(),4);u=`${r}${o}${t}${o}${e}`}if("date"!==a){let e=n.getTimezoneOffset();if(0!==e){let t=Math.abs(e),n=(0,ez.F)(Math.trunc(t/60),2),r=(0,ez.F)(t%60,2);s=`${e<0?"+":"-"}${n}:${r}`}else s="Z";let t=(0,ez.F)(n.getHours(),2),a=(0,ez.F)(n.getMinutes(),2),i=(0,ez.F)(n.getSeconds(),2),o=""===u?"":"T",l=[t,a,i].join("extended"===r?":":"");u=`${u}${o}${l}${s}`}return u}function eJ(e,t){let n=(0,i.a)(e,t?.in);if(!(0,U.f)(n))throw RangeError("Invalid time value");let r=t?.format??"extended",a=t?.representation??"complete",u="",s="extended"===r?"-":"",o="extended"===r?":":"";if("time"!==a){let e=(0,ez.F)(n.getDate(),2),t=(0,ez.F)(n.getMonth()+1,2),r=(0,ez.F)(n.getFullYear(),4);u=`${r}${s}${t}${s}${e}`}if("date"!==a){let e=(0,ez.F)(n.getHours(),2),t=(0,ez.F)(n.getMinutes(),2),r=(0,ez.F)(n.getSeconds(),2),a=""===u?"":" ";u=`${u}${a}${e}${o}${t}${o}${r}`}return u}function eA(e){let{years:t=0,months:n=0,days:r=0,hours:a=0,minutes:u=0,seconds:i=0}=e;return`P${t}Y${n}M${r}DT${a}H${u}M${i}S`}function eB(e,t){let n=(0,i.a)(e,t?.in);if(!(0,U.f)(n))throw RangeError("Invalid time value");let r=t?.fractionDigits??0,a=(0,ez.F)(n.getDate(),2),u=(0,ez.F)(n.getMonth()+1,2),s=n.getFullYear(),o=(0,ez.F)(n.getHours(),2),l=(0,ez.F)(n.getMinutes(),2),f=(0,ez.F)(n.getSeconds(),2),c="";if(r>0){let e=Math.trunc(n.getMilliseconds()*Math.pow(10,r-3));c="."+(0,ez.F)(e,r)}let d="",h=n.getTimezoneOffset();if(0!==h){let e=Math.abs(h),t=(0,ez.F)(Math.trunc(e/60),2),n=(0,ez.F)(e%60,2);d=`${h<0?"+":"-"}${t}:${n}`}else d="Z";return`${s}-${u}-${a}T${o}:${l}:${f}${c}${d}`}let eL=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eK=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function eV(e){let t=(0,i.a)(e);if(!(0,U.f)(t))throw RangeError("Invalid time value");let n=eL[t.getUTCDay()],r=(0,ez.F)(t.getUTCDate(),2),a=eK[t.getUTCMonth()],u=t.getUTCFullYear(),s=(0,ez.F)(t.getUTCHours(),2),o=(0,ez.F)(t.getUTCMinutes(),2),l=(0,ez.F)(t.getUTCSeconds(),2);return`${n}, ${r} ${a} ${u} ${s}:${o}:${l} GMT`}function e0(e,t,n){let r,[a,u]=(0,N.x)(n?.in,e,t),i=(0,eQ.q)(),s=n?.locale??i.locale??eq.c,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=(0,g.m)(a,u);if(isNaN(l))throw RangeError("Invalid time value");r=l<-6?"other":l<-1?"lastWeek":l<0?"yesterday":l<1?"today":l<2?"tomorrow":l<7?"nextWeek":"other";let f=s.formatRelative(r,a,u,{locale:s,weekStartsOn:o});return(0,eE.GP)(a,f,{locale:s,weekStartsOn:o})}function e1(e,t){return(0,i.a)(1e3*e,t?.in)}var e2=n(47918);function e3(e,t){return(0,i.a)(e,t?.in).getDay()}var e6=n(4398),e4=n(54354);function e9(e,t){let n=(0,i.a)(e,t?.in).getFullYear();return n%400==0||n%4==0&&n%100!=0}function e5(e,t){let n=(0,i.a)(e,t?.in);return Number.isNaN(+n)?NaN:e9(n)?366:365}function e7(e,t){return 10*Math.floor((0,i.a)(e,t?.in).getFullYear()/10)}var e8=n(6299),te=n(8151),tt=n(83487),tn=n(92913);function tr(e,t){let n=(0,M.w)(e,t);return Math.round(((0,M.w)((0,S.J)(n,60))-n)/R.my)}var ta=n(51148),tu=n(91733),ti=n(99042);function ts(e,t){let[n,r]=[+(0,i.a)(e.start),+(0,i.a)(e.end)].sort((e,t)=>e-t),[a,u]=[+(0,i.a)(t.start),+(0,i.a)(t.end)].sort((e,t)=>e-t);if(!(n<u&&a<r))return 0;let s=a<n?n:a,o=s-(0,Q.G)(s),l=u>r?r:u;return Math.ceil((l-(0,Q.G)(l)-o)/R.w4)}var to=n(89321);function tl(e){return+(0,i.a)(e)}function tf(e){return Math.trunc((0,i.a)(e)/1e3)}var tc=n(55578);function td(e,t){let n=(0,eQ.q)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,e2.p)((0,i.a)(e,t?.in));if(isNaN(a))return NaN;let u=r-e3((0,ew.w)(e,t));return u<=0&&(u+=7),Math.ceil((a-u)/7)+1}var th=n(33191);function tg(e,t){let n=(0,i.a)(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),(0,i.a)(n,t?.in)}function tM(e,t){let n=(0,i.a)(e,t?.in);return j(tg(n,t),(0,ew.w)(n,t),t)+1}var tm=n(18463);function tD(e){return Math.trunc(e*R.s0)}function ty(e){return Math.trunc(60*e)}function tO(e){return Math.trunc(3600*e)}function tw(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);if(isNaN(+r))throw TypeError("Start date is invalid");if(isNaN(+a))throw TypeError("End date is invalid");if(n?.assertPositive&&+r>+a)throw TypeError("End date must be after start date");return{start:r,end:a}}function tv(e,t){let{start:n,end:r}=ec(t?.in,e),a={},u=ef(r,n);u&&(a.years=u);let i=s(n,{years:a.years}),o=ei(r,i);o&&(a.months=o);let l=s(i,{months:a.months}),f=A(r,l);f&&(a.days=f);let c=s(l,{days:a.days}),d=K(r,c);d&&(a.hours=d);let h=s(c,{hours:a.hours}),g=en(r,h);g&&(a.minutes=g);let M=eo(r,s(h,{minutes:a.minutes}));return M&&(a.seconds=M),a}function tS(e,t,n){var r;let a;return void 0===(r=t)||"locale"in r?n=t:a=t,new Intl.DateTimeFormat(n?.locale,a).format((0,i.a)(e))}function tp(e,t,n){let r,a=0,[u,i]=(0,N.x)(n?.in,e,t);if(n?.unit)"second"===(r=n?.unit)?a=eo(u,i):"minute"===r?a=en(u,i):"hour"===r?a=K(u,i):"day"===r?a=(0,g.m)(u,i):"week"===r?a=j(u,i):"month"===r?a=P(u,i):"quarter"===r?a=Z(u,i):"year"===r&&(a=J(u,i));else{let e=eo(u,i);60>Math.abs(e)?(a=eo(u,i),r="second"):3600>Math.abs(e)?(a=en(u,i),r="minute"):86400>Math.abs(e)&&1>Math.abs((0,g.m)(u,i))?(a=K(u,i),r="hour"):604800>Math.abs(e)&&(a=(0,g.m)(u,i))&&7>Math.abs(a)?r="day":Math.abs(e)<R.BM?(a=j(u,i),r="week"):Math.abs(e)<R.Z7?(a=P(u,i),r="month"):Math.abs(e)<R.Mf&&4>Z(u,i)?(a=Z(u,i),r="quarter"):(a=J(u,i),r="year")}return new Intl.RelativeTimeFormat(n?.locale,{numeric:"auto",...n}).format(a,r)}var tT=n(54752),tN=n(36163),tF=n(15708),tY=n(28850);function tk(e,t,n){let r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}function tI(e,t){return 1===(0,i.a)(e,t?.in).getDate()}function tx(e,t){return 5===(0,i.a)(e,t?.in).getDay()}function tb(e){return+(0,i.a)(e)>Date.now()}var tH=n(12282);function t$(e,t,n){return(0,U.f)((0,tH.qg)(e,t,new Date,n))}function tW(e,t){return 1===(0,i.a)(e,t?.in).getDay()}function tC(e){return+(0,i.a)(e)<Date.now()}var tU=n(56756);function tE(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);return+(0,z.k)(r,n)==+(0,z.k)(a,n)}function tq(e,t,n){return tE(e,t,{...n,weekStartsOn:1})}function tQ(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);return+(0,M.w)(r)==+(0,M.w)(a)}function tR(e,t){let n=(0,i.a)(e,t?.in);return n.setSeconds(0,0),n}function t_(e,t){return+tR(e)==+tR(t)}var tG=n(39270);function tP(e,t,n){let[r,a]=(0,N.x)(n?.in,e,t);return+em(r)==+em(a)}function tX(e,t){let n=(0,i.a)(e,t?.in);return n.setMilliseconds(0),n}function tZ(e,t){return+tX(e)==+tX(t)}var tz=n(67619);function tj(e,t){return(0,tU.l)((0,i.a)(e,t?.in),$(t?.in||e))}function tJ(e,t){return tq((0,u.w)(t?.in||e,e),$(t?.in||e))}function tA(e){return t_(e,$(e))}function tB(e,t){return(0,tG.t)((0,u.w)(t?.in||e,e),$(t?.in||e))}function tL(e,t){return tP((0,u.w)(t?.in||e,e),$(t?.in||e))}function tK(e){return tZ(e,$(e))}function tV(e,t){return tE((0,u.w)(t?.in||e,e),$(t?.in||e),t)}function t0(e,t){return(0,tz.s)((0,u.w)(t?.in||e,e),$(t?.in||e))}function t1(e,t){return 4===(0,i.a)(e,t?.in).getDay()}function t2(e,t){return(0,C.r)((0,u.w)(t?.in||e,e),$(t?.in||e))}function t3(e,t){return(0,C.r)(e,(0,r.f)($(t?.in||e),1),t)}function t6(e,t){return 2===(0,i.a)(e,t?.in).getDay()}function t4(e,t){return 3===(0,i.a)(e,t?.in).getDay()}var t9=n(682);function t5(e,t,n){return(0,r.f)(e,-t,n)}function t7(e,t){return(0,C.r)((0,u.w)(t?.in||e,e),t5($(t?.in||e),1))}function t8(e,t){let n=(0,i.a)(e,t?.in),r=9+10*Math.floor(n.getFullYear()/10);return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),(0,i.a)(n,t?.in)}function ne(e,t){let n=(0,eQ.q)(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,i.a)(e,t?.in),u=a.getDay();return a.setHours(0,0,0,0),a.setDate(a.getDate()+((u<r?-7:0)+6-(u-r))),a}function nt(e,t){return ne(e,{...t,weekStartsOn:1})}function nn(e,t){let n=(0,h.p)(e,t),r=(0,u.w)(t?.in||e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let a=(0,_.b)(r,t);return a.setDate(a.getDate()-1),a}function nr(e,t){let n=(0,i.a)(e,t?.in),r=n.getMonth();return n.setMonth(r-r%3+3,0),n.setHours(0,0,0,0),n}function na(e,t){let n=(0,i.a)(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}var nu=n(37908);let ni=/(\w)\1*|''|'(''|[^'])+('|$)|./g,ns=/^'([^]*?)'?$/,no=/''/g,nl=/[a-zA-Z]/;function nf(e,t){let n=(0,i.a)(e);if(!(0,U.f)(n))throw RangeError("Invalid time value");let r=t.match(ni);return r?r.map(e=>{if("''"===e)return"'";let t=e[0];if("'"===t){var r;let t;return(t=(r=e).match(ns))?t[1].replace(no,"'"):r}let a=nu.C[t];if(a)return a(n,e);if(t.match(nl))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join(""):""}function nc({years:e,months:t,weeks:n,days:r,hours:a,minutes:u,seconds:i}){let s=0;e&&(s+=e*R.Ki),t&&(s+=t*(R.Ki/12)),n&&(s+=7*n),r&&(s+=r);let o=24*s*3600;return a&&(o+=60*a*60),u&&(o+=60*u),i&&(o+=i),Math.trunc(1e3*o)}function nd(e){return Math.trunc(e/R.s0)}function nh(e){return Math.trunc(e/6e4)}function ng(e){return Math.trunc(e/1e3)}function nM(e){return Math.trunc(e/60)}function nm(e){return Math.trunc(6e4*e)}function nD(e){return Math.trunc(60*e)}function ny(e){return Math.trunc(e/3)}function nO(e){return Math.trunc(e/12)}function nw(e,t,n){let a=t-e3(e,n);return a<=0&&(a+=7),(0,r.f)(e,a,n)}function nv(e,t){return nw(e,5,t)}function nS(e,t){return nw(e,1,t)}function np(e,t){return nw(e,6,t)}function nT(e,t){return nw(e,0,t)}function nN(e,t){return nw(e,4,t)}function nF(e,t){return nw(e,2,t)}function nY(e,t){return nw(e,3,t)}function nk(e,t){let n,r,a=()=>(0,u.w)(t?.in,NaN),s=t?.additionalDigits??2,o=function(e){let t,n={},r=e.split(nI);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],nx.test(n.date)&&(n.date=e.split(nx)[0],t=e.substr(n.date.length,e.length))),t){let e=nb.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(o.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let a=r[1]?parseInt(r[1]):null,u=r[2]?parseInt(r[2]):null;return{year:null===u?a:100*u,restDateString:e.slice((r[1]||r[2]).length)}}(o.date,s);n=function(e,t){var n,r,a,u,i,s,o,l,f,c;if(null===t)return new Date(NaN);let d=e.match(nH);if(!d)return new Date(NaN);let h=!!d[4],g=nC(d[1]),M=nC(d[2])-1,m=nC(d[3]),D=nC(d[4]),y=nC(d[5])-1;if(h){let e,s;return(n=D,r=y,n>=1&&n<=53&&r>=0&&r<=6)?(a=t,u=D,i=y,(e=new Date(0)).setUTCFullYear(a,0,4),s=e.getUTCDay()||7,e.setUTCDate(e.getUTCDate()+((u-1)*7+i+1-s)),e):new Date(NaN)}{let e=new Date(0);return(s=t,o=M,l=m,o>=0&&o<=11&&l>=1&&l<=(nE[o]||(nq(s)?29:28))&&(f=t,(c=g)>=1&&c<=(nq(f)?366:365)))?(e.setUTCFullYear(t,M,Math.max(g,m)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!n||isNaN(+n))return a();let l=+n,f=0;if(o.time&&isNaN(f=function(e){var t,n,r;let a=e.match(n$);if(!a)return NaN;let u=nU(a[1]),i=nU(a[2]),s=nU(a[3]);return(t=u,n=i,r=s,24===t?0===n&&0===r:r>=0&&r<60&&n>=0&&n<60&&t>=0&&t<25)?u*R.s0+6e4*i+1e3*s:NaN}(o.time)))return a();if(o.timezone){if(isNaN(r=function(e){var t;if("Z"===e)return 0;let n=e.match(nW);if(!n)return 0;let r="+"===n[1]?-1:1,a=parseInt(n[2]),u=n[3]&&parseInt(n[3])||0;return(t=u)>=0&&t<=59?r*(a*R.s0+6e4*u):NaN}(o.timezone)))return a()}else{let e=new Date(l+f),n=(0,i.a)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return(0,i.a)(l+f+r,t?.in)}let nI=/[T ]/,nx=/[Z ]/i,nb=/([Z+-].*)$/,nH=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,n$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nW=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nC(e){return e?parseInt(e):1}function nU(e){return e&&parseFloat(e.replace(",","."))||0}let nE=[31,null,31,30,31,30,31,31,30,31,30,31];function nq(e){return e%400==0||e%4==0&&e%100!=0}function nQ(e,t){let n=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return n?(0,i.a)(Date.UTC(+n[1],n[2]-1,+n[3],n[4]-(+n[9]||0)*("-"==n[8]?-1:1),n[5]-(+n[10]||0)*("-"==n[8]?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)),t?.in):(0,i.a)(NaN,t?.in)}function nR(e,t,n){let r=e3(e,n)-t;return r<=0&&(r+=7),t5(e,r,n)}function n_(e,t){return nR(e,5,t)}function nG(e,t){return nR(e,1,t)}function nP(e,t){return nR(e,6,t)}function nX(e,t){return nR(e,0,t)}function nZ(e,t){return nR(e,4,t)}function nz(e,t){return nR(e,2,t)}function nj(e,t){return nR(e,3,t)}function nJ(e){return Math.trunc(3*e)}function nA(e){return Math.trunc(e/4)}function nB(e,t){let n=t?.nearestTo??1;if(n<1||n>12)return(0,u.w)(t?.in||e,NaN);let r=(0,i.a)(e,t?.in),a=r.getMinutes()/60,s=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,l=r.getHours()+a+s+o,f=L(t?.roundingMethod??"round")(l/n)*n;return r.setHours(f,0,0,0),r}function nL(e,t){let n=t?.nearestTo??1;if(n<1||n>30)return(0,u.w)(e,NaN);let r=(0,i.a)(e,t?.in),a=r.getSeconds()/60,s=r.getMilliseconds()/1e3/60,o=r.getMinutes()+a+s,l=L(t?.roundingMethod??"round")(o/n)*n;return r.setMinutes(l,0,0),r}function nK(e){return Math.trunc(e/3600)}function nV(e){return 1e3*e}function n0(e){return Math.trunc(e/60)}var n1=n(30118);function n2(e,t,n){let r=(0,i.a)(e,n?.in);return isNaN(+r)?(0,u.w)(n?.in||e,NaN):(null!=t.year&&r.setFullYear(t.year),null!=t.month&&(r=(0,n1.Z)(r,t.month)),null!=t.date&&r.setDate(t.date),null!=t.hours&&r.setHours(t.hours),null!=t.minutes&&r.setMinutes(t.minutes),null!=t.seconds&&r.setSeconds(t.seconds),null!=t.milliseconds&&r.setMilliseconds(t.milliseconds),r)}var n3=n(41042),n6=n(61926);function n4(e,t,n){let r=(0,i.a)(e,n?.in);return r.setMonth(0),r.setDate(t),r}function n9(e){let t={},n=(0,eQ.q)();for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(void 0===e[n]?delete t[n]:t[n]=e[n]);(0,eQ.E)(t)}var n5=n(38267),n7=n(68251),n8=n(33029),re=n(98608),rt=n(47025);function rn(e,t,n){let r=(0,i.a)(e,n?.in),a=Math.trunc(r.getMonth()/3)+1;return(0,n1.Z)(r,r.getMonth()+3*(t-a))}var rr=n(84253),ra=n(63214),ru=n(16558);function ri(e,t,n){let r=(0,eQ.q)(),a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=(0,g.m)((0,i.a)(e,n?.in),(0,ru.b)(e,n),n),o=(0,u.w)(n?.in||e,0);o.setFullYear(t,0,a),o.setHours(0,0,0,0);let l=(0,ru.b)(o,n);return l.setDate(l.getDate()+s),l}var rs=n(8643),ro=n(18109);function rl(e,t){let n=(0,i.a)(e,t?.in),r=10*Math.floor(n.getFullYear()/10);return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}var rf=n(61777);function rc(e){return(0,ro.o)(Date.now(),e)}function rd(e){let t=$(e?.in),n=t.getFullYear(),r=t.getMonth(),a=t.getDate(),i=(0,u.w)(e?.in,0);return i.setFullYear(n,r,a+1),i.setHours(0,0,0,0),i}function rh(e){let t=$(e?.in),n=t.getFullYear(),r=t.getMonth(),a=t.getDate(),u=$(e?.in);return u.setFullYear(n,r,a-1),u.setHours(0,0,0,0),u}function rg(e,t,n){return(0,a.P)(e,-t,n)}function rM(e,t,n){let{years:r=0,months:a=0,weeks:i=0,days:s=0,hours:o=0,minutes:l=0,seconds:f=0}=t,c=t5(rg(e,a+12*r,n),s+7*i,n);return(0,u.w)(n?.in||e,c-1e3*(f+60*(l+60*o)))}function rm(e,t,n){return c(e,-t,n)}function rD(e,t,n){return(0,d.L)(e,-t,n)}function ry(e,t,n){return(0,y.A)(e,-t,n)}function rO(e,t,n){return(0,O.z)(e,-t,n)}function rw(e,t,n){return w(e,-t,n)}function rv(e,t,n){return(0,v.p)(e,-t,n)}function rS(e,t,n){return(0,S.J)(e,-t,n)}function rp(e,t,n){return(0,p.e)(e,-t,n)}var rT=n(88733);function rN(e){return Math.trunc(7*e)}function rF(e){return Math.trunc(e*R.Ki)}function rY(e){return Math.trunc(12*e)}function rk(e){return Math.trunc(4*e)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["2"],{19597(e,r,t){t.d(r,{A:()=>n});function n(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}},37696(e,r,t){t.d(r,{J:()=>v});var n,o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=t(19597),i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,a.A)(function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()}),d=function(e,r){switch(e){case"animation":case"animationName":if("string"==typeof r)return r.replace(l,function(e,r,t){return n={name:r,styles:t,next:n},r})}return 1===o[e]||s(e)||"number"!=typeof r||0===r?r:r+"px"};function f(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return n={name:t.name,styles:t.styles,next:n},t.name;if(void 0!==t.styles){var o=t.next;if(void 0!==o)for(;void 0!==o;)n={name:o.name,styles:o.styles,next:n},o=o.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=f(e,r,t[o])+";";else for(var a in t){var i=t[a];if("object"!=typeof i)null!=r&&void 0!==r[i]?n+=a+"{"+r[i]+"}":u(i)&&(n+=c(a)+":"+d(a,i)+";");else if(Array.isArray(i)&&"string"==typeof i[0]&&(null==r||void 0===r[i[0]]))for(var l=0;l<i.length;l++)u(i[l])&&(n+=c(a)+":"+d(a,i[l])+";");else{var s=f(e,r,i);switch(a){case"animation":case"animationName":n+=c(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}}return n}(e,r,t);case"function":if(void 0!==e){var a=n,i=t(e);return n=a,f(e,r,i)}}if(null==r)return t;var l=r[t];return void 0!==l?l:t}var m=/label:\s*([^\s;{]+)\s*(;|$)/g;function v(e,r,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,a=!0,i="";n=void 0;var l=e[0];null==l||void 0===l.raw?(a=!1,i+=f(t,r,l)):i+=l[0];for(var s=1;s<e.length;s++)i+=f(t,r,e[s]),a&&(i+=l[s]);m.lastIndex=0;for(var u="";null!==(o=m.exec(i));)u+="-"+o[1];return{name:function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((r>>>16)*59797<<16),r^=r>>>24,t=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)^(65535&t)*0x5bd1e995+((t>>>16)*59797<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t^=255&e.charCodeAt(n),t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)}return t^=t>>>13,(((t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16))^t>>>15)>>>0).toString(36)}(i)+u,styles:i,next:n}}},68102(e,r,t){t.d(r,{A:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["235"],{63859(e,t,r){r.r(t),r.d(t,{default:()=>g});var i=r(68102),a=r(69402),n=r(37696),o=r(60755),s=r(309),l=r(70451),c=r(19597),d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=(0,c.A)(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),u=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:u},f=function(e,t,r){var i;if(t){var a=t.shouldForwardProp;i=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},h=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return(0,s.SF)(t,r,i),(0,o.s)(function(){return(0,s.sk)(t,r,i)}),null},g=(function e(t,r){var o,c,d=t.__emotion_real===t,p=d&&t.__emotion_base||t;void 0!==r&&(o=r.label,c=r.target);var u=f(t,r,d),g=u||m(p),y=!g("as");return function(){var v=arguments,k=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&k.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)k.push.apply(k,v);else{var b=v[0];k.push(b[0]);for(var _=v.length,x=1;x<_;x++)k.push(v[x],b[x])}var w=(0,a.withEmotionCache)(function(e,t,r){var i=y&&e.as||p,o="",d=[],f=e;if(null==e.theme){for(var v in f={},e)f[v]=e[v];f.theme=l.useContext(a.ThemeContext)}"string"==typeof e.className?o=(0,s.Rk)(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var b=(0,n.J)(k.concat(d),t.registered,f);o+=t.key+"-"+b.name,void 0!==c&&(o+=" "+c);var _=y&&void 0===u?m(i):g,x={};for(var w in e)(!y||"as"!==w)&&_(w)&&(x[w]=e[w]);return x.className=o,r&&(x.ref=r),l.createElement(l.Fragment,null,l.createElement(h,{cache:t,serialized:b,isStringTag:"string"==typeof i}),l.createElement(i,x))});return w.displayName=void 0!==o?o:"Styled("+("string"==typeof p?p:p.displayName||p.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=p,w.__emotion_styles=k,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(t,a){return e(t,(0,i.A)({},r,a,{shouldForwardProp:f(w,a,!0)})).apply(void 0,k)},w}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)})},60755(e,t,r){r.d(t,{i:()=>o,s:()=>n});var i=r(70451),a=!!i.useInsertionEffect&&i.useInsertionEffect,n=a||function(e){return e()},o=a||i.useLayoutEffect},309(e,t,r){function i(e,t,r){var i="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(i+=r+" ")}),i}r.d(t,{Rk:()=>i,SF:()=>a,sk:()=>n});var a=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},n=function(e,t,r){a(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do e.insert(t===n?"."+i:"",n,e.sheet,!0),n=n.next;while(void 0!==n)}}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 274.b8ce8e1b.js.LICENSE.txt */
2
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["274"],{67449(e,t,r){r.r(t),r.d(t,{ThemeProvider:()=>eo,keyframes:()=>ev,withEmotionCache:()=>en,useTheme:()=>es,Global:()=>ey,__unsafe_useEmotionCache:()=>er,CacheProvider:()=>et,withTheme:()=>ei,ClassNames:()=>e$,ThemeContext:()=>ea,createElement:()=>ed,css:()=>em,jsx:()=>ed});var n,a,s=r(70451),c=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,u=Object.assign;function l(e,t,r){return e.replace(t,r)}function f(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function h(e,t,r){return e.slice(t,r)}function d(e){return e.length}function y(e,t){return t.push(e),e}var m=1,v=1,g=0,b=0,$=0,k="";function w(e,t,r,n,a,s,c){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:m,column:v,length:c,return:""}}function S(e,t){return u(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return $=b<g?p(k,b++):0,v++,10===$&&(v=1,m++),$}function C(){return p(k,b)}function _(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return m=v=1,g=d(k=e),b=0,[]}function P(e){var t,r;return(t=b-1,r=function e(t){for(;x();)switch($){case t:return b;case 34:case 39:34!==t&&39!==t&&e($);break;case 40:41===t&&e(t);break;case 92:x()}return b}(91===e?e+2:40===e?e+1:e),h(k,t,r)).trim()}var A="-ms-",T="-moz-",O="-webkit-",N="comm",M="rule",j="decl",F="@keyframes";function R(e,t){for(var r="",n=e.length,a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function z(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case N:return"";case F:return e.return=e.value+"{"+R(e.children,n)+"}";case M:e.value=e.props.join(",")}return d(r=R(e.children,n))?e.return=e.value+"{"+r+"}":""}function J(e,t,r,n,a,s,c,i,u,f,p){for(var d=a-1,y=0===a?s:[""],m=y.length,v=0,g=0,b=0;v<n;++v)for(var $=0,k=h(e,d+1,d=o(g=c[v])),S=e;$<m;++$)(S=(g>0?y[$]+" "+k:l(k,/&\f/g,y[$])).trim())&&(u[b++]=S);return w(e,t,r,0===a?M:i,u,f,p)}function D(e,t,r,n){return w(e,t,r,j,h(e,0,n),h(e,n+1,-1),n)}var L=function(e,t,r){for(var n=0,a=0;n=a,a=C(),38===n&&12===a&&(t[r]=1),!_(a);)x();return h(k,e,b)},q=function(e,t){var r=-1,n=44;do switch(_(n)){case 0:38===n&&12===C()&&(t[r]=1),e[r]+=L(b-1,t,r);break;case 2:e[r]+=P(n);break;case 4:if(44===n){e[++r]=58===C()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=x());return e},H=function(e,t){var r;return r=q(E(e),t),k="",r},I=new WeakMap,W=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||I.get(r))&&!n){I.set(e,!0);for(var a=[],s=H(t,a),c=r.props,o=0,i=0;o<s.length;o++)for(var u=0;u<c.length;u++,i++)e.props[i]=a[o]?s[o].replace(/&\f/g,c[u]):c[u]+" "+s[o]}}},X=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},B=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=function e(t,r){switch(45^p(t,0)?(((r<<2^p(t,0))<<2^p(t,1))<<2^p(t,2))<<2^p(t,3):0){case 5103:return O+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+T+t+A+t+t;case 6828:case 4268:return O+t+A+t+t;case 6165:return O+t+A+"flex-"+t+t;case 5187:return O+t+l(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+A+"flex-$1$2")+t;case 5443:return O+t+A+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return O+t+A+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+A+l(t,"shrink","negative")+t;case 5292:return O+t+A+l(t,"basis","preferred-size")+t;case 6060:return O+"box-"+l(t,"-grow","")+O+t+A+l(t,"grow","positive")+t;case 4554:return O+l(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,O+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(p(t,r+1)){case 109:if(45!==p(t,r+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+T+(108==p(t,r+3)?"$3":"$2-$3"))+t;case 115:return~f(t,"stretch")?e(l(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==p(t,r+1))break;case 6444:switch(p(t,d(t)-3-(~f(t,"!important")&&10))){case 107:return l(t,":",":"+O)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===p(t,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+A+"$2box$3")+t}break;case 5936:switch(p(t,r+11)){case 114:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+A+t+t}return t}(e.value,e.length);break;case F:return R([S(e,{value:l(e.value,"@","@"+O)})],n);case M:if(e.length){var a,s;return a=e.props,s=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return R([S(e,{props:[l(t,/:(read-\w+)/,":"+T+"$1")]})],n);case"::placeholder":return R([S(e,{props:[l(t,/:(plac\w+)/,":"+O+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":"+T+"$1")]}),S(e,{props:[l(t,/:(plac\w+)/,A+"input-$1")]})],n)}return""},a.map(s).join("")}}}],G=r(68102),U=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},V=r(58486),Y=r.n(V),K=r(309),Q=r(37696),Z=r(60755),ee=s.createContext("u">typeof HTMLElement?function(e){var t,r,n,a,s,o=e.key;if("css"===o){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||B,S={},A=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)S[t[r]]=!0;A.push(e)});var T=(r=(t=[W,X].concat(g,[z,(n=function(e){s.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,a,s){for(var c="",o=0;o<r;o++)c+=t[o](e,n,a,s)||"";return c}),O=function(e){var t,r;return R((r=function e(t,r,n,a,s,c,o,u,g){for(var S,E=0,A=0,T=o,O=0,M=0,j=0,F=1,R=1,z=1,L=0,q="",H=s,I=c,W=a,X=q;R;)switch(j=L,L=x()){case 40:if(108!=j&&58==p(X,T-1)){-1!=f(X+=l(P(L),"&","&\f"),"&\f")&&(z=-1);break}case 34:case 39:case 91:X+=P(L);break;case 9:case 10:case 13:case 32:X+=function(e){for(;$=C();)if($<33)x();else break;return _(e)>2||_($)>3?"":" "}(j);break;case 92:X+=function(e,t){for(var r;--t&&x()&&!($<48)&&!($>102)&&(!($>57)||!($<65))&&(!($>70)||!($<97)););return r=b+(t<6&&32==C()&&32==x()),h(k,e,r)}(b-1,7);continue;case 47:switch(C()){case 42:case 47:y((S=function(e,t){for(;x();)if(e+$===57)break;else if(e+$===84&&47===C())break;return"/*"+h(k,t,b-1)+"*"+i(47===e?e:x())}(x(),b),w(S,r,n,N,i($),h(S,2,-2),0)),g);break;default:X+="/"}break;case 123*F:u[E++]=d(X)*z;case 125*F:case 59:case 0:switch(L){case 0:case 125:R=0;case 59+A:-1==z&&(X=l(X,/\f/g,"")),M>0&&d(X)-T&&y(M>32?D(X+";",a,n,T-1):D(l(X," ","")+";",a,n,T-2),g);break;case 59:X+=";";default:if(y(W=J(X,r,n,E,A,s,u,q,H=[],I=[],T),c),123===L)if(0===A)e(X,r,W,W,H,c,T,u,I);else switch(99===O&&110===p(X,3)?100:O){case 100:case 108:case 109:case 115:e(t,W,W,a&&y(J(t,W,W,0,0,s,u,q,s,H=[],T),I),s,I,T,u,a?H:I);break;default:e(X,W,W,W,[""],I,0,u,I)}}E=A=M=0,F=z=1,q=X="",T=o;break;case 58:T=1+d(X),M=j;default:if(F<1){if(123==L)--F;else if(125==L&&0==F++&&125==($=b>0?p(k,--b):0,v--,10===$&&(v=1,m--),$))continue}switch(X+=i(L),L*F){case 38:z=A>0?1:(X+="\f",-1);break;case 44:u[E++]=(d(X)-1)*z,z=1;break;case 64:45===C()&&(X+=P(x())),O=C(),A=T=d(q=X+=function(e){for(;!_(C());)x();return h(k,e,b)}(b)),L++;break;case 45:45===j&&2==d(X)&&(F=0)}}return c}("",null,null,null,[""],t=E(t=e),0,[0],t),k="",r),T)},M={key:o,sheet:new c({key:o,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:S,registered:{},insert:function(e,t,r,n){s=r,O(e?e+"{"+t.styles+"}":t.styles),n&&(M.inserted[t.name]=!0)}};return M.sheet.hydrate(A),M}({key:"css"}):null),et=ee.Provider,er=function(){return(0,s.useContext)(ee)},en=function(e){return(0,s.forwardRef)(function(t,r){return e(t,(0,s.useContext)(ee),r)})},ea=s.createContext({}),es=function(){return s.useContext(ea)},ec=U(function(e){return U(function(t){return"function"==typeof t?t(e):(0,G.A)({},e,t)})}),eo=function(e){var t=s.useContext(ea);return e.theme!==t&&(t=ec(t)(e.theme)),s.createElement(ea.Provider,{value:t},e.children)};function ei(e){var t=e.displayName||e.name||"Component",r=s.forwardRef(function(t,r){var n=s.useContext(ea);return s.createElement(e,(0,G.A)({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",Y()(r,e)}var eu={}.hasOwnProperty,el="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ef=function(e,t){var r={};for(var n in t)eu.call(t,n)&&(r[n]=t[n]);return r[el]=e,r},ep=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,K.SF)(t,r,n),(0,Z.s)(function(){return(0,K.sk)(t,r,n)}),null},eh=en(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var a=e[el],c=[n],o="";"string"==typeof e.className?o=(0,K.Rk)(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var i=(0,Q.J)(c,void 0,s.useContext(ea));o+=t.key+"-"+i.name;var u={};for(var l in e)eu.call(e,l)&&"css"!==l&&l!==el&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),s.createElement(s.Fragment,null,s.createElement(ep,{cache:t,serialized:i,isStringTag:"string"==typeof a}),s.createElement(a,u))}),ed=function(e,t){var r=arguments;if(null==t||!eu.call(t,"css"))return s.createElement.apply(void 0,r);var n=r.length,a=Array(n);a[0]=eh,a[1]=ef(e,t);for(var c=2;c<n;c++)a[c]=r[c];return s.createElement.apply(null,a)};n=ed||(ed={}),a||(a=n.JSX||(n.JSX={}));var ey=en(function(e,t){var r=e.styles,n=(0,Q.J)([r],void 0,s.useContext(ea)),a=s.useRef();return(0,Z.i)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==c&&(s=!0,c.setAttribute("data-emotion",e),r.hydrate([c])),a.current=[r,s],function(){r.flush()}},[t]),(0,Z.i)(function(){var e=a.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==n.next&&(0,K.sk)(t,n.next,!0),r.tags.length){var s=r.tags[r.tags.length-1].nextElementSibling;r.before=s,r.flush()}t.insert("",n,r,!1)},[t,n.name]),null});function em(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,Q.J)(t)}function ev(){var e=em.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var eg=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var s=t[n];if(null!=s){var c=void 0;switch(typeof s){case"boolean":break;case"object":if(Array.isArray(s))c=e(s);else for(var o in c="",s)s[o]&&o&&(c&&(c+=" "),c+=o);break;default:c=s}c&&(a&&(a+=" "),a+=c)}}return a},eb=function(e){var t=e.cache,r=e.serializedArr;return(0,Z.s)(function(){for(var e=0;e<r.length;e++)(0,K.sk)(t,r[e],!1)}),null},e$=en(function(e,t){var r=!1,n=[],a=function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];var s=(0,Q.J)(r,t.registered);return n.push(s),(0,K.SF)(t,s,!1),t.key+"-"+s.name},c={css:a,cx:function(){for(var e,r,n,s,c=arguments.length,o=Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.registered,r=eg(o),n=[],s=(0,K.Rk)(e,n,r),n.length<2?r:s+a(n)},theme:s.useContext(ea)},o=e.children(c);return r=!0,s.createElement(s.Fragment,null,s.createElement(eb,{cache:t,serializedArr:n}),o)})},60755(e,t,r){r.d(t,{i:()=>c,s:()=>s});var n=r(70451),a=!!n.useInsertionEffect&&n.useInsertionEffect,s=a||function(e){return e()},c=a||n.useLayoutEffect},309(e,t,r){function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}r.d(t,{Rk:()=>n,SF:()=>a,sk:()=>s});var a=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},s=function(e,t,r){a(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do e.insert(t===s?"."+n:"",s,e.sheet,!0),s=s.next;while(void 0!==s)}}},58486(e,t,r){var n=r(89360),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(e){return n.isMemo(e)?c:o[e.$$typeof]||a}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=c;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var a=h(r);a&&a!==d&&e(t,a,n)}var c=l(r);f&&(c=c.concat(f(r)));for(var o=i(t),y=i(r),m=0;m<c.length;++m){var v=c[m];if(!s[v]&&!(n&&n[v])&&!(y&&y[v])&&!(o&&o[v])){var g=p(r,v);try{u(t,v,g)}catch(e){}}}}return t}},92332(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,$=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case s:case o:case c:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case y:case i:return e;default:return t}}case a:return t}}}function w(e){return k(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=i,t.Element=n,t.ForwardRef=p,t.Fragment=s,t.Lazy=m,t.Memo=y,t.Portal=a,t.Profiler=o,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||k(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===i},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===s},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===o},t.isStrictMode=function(e){return k(e)===c},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===f||e===o||e===c||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===i||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===$||e.$$typeof===v)},t.typeOf=k},89360(e,t,r){e.exports=r(92332)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["356"],{79215(e,t,r){r.r(t),r.d(t,{Controller:()=>$,Form:()=>G,FormProvider:()=>J,FormStateSubscribe:()=>K,Watch:()=>eP,appendErrors:()=>Q,createFormControl:()=>eD,get:()=>C,set:()=>E,useController:()=>W,useFieldArray:()=>eL,useForm:()=>eI,useFormContext:()=>z,useFormState:()=>R,useWatch:()=>P});var a=r(70451),s=r.n(a),i=e=>e instanceof Date,l=e=>null==e;let n=e=>"object"==typeof e;var u=e=>!l(e)&&!Array.isArray(e)&&n(e)&&!i(e),o=e=>u(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,d=(e,t)=>t.split(".").some((t,r,a)=>!isNaN(Number(t))&&e.has(a.slice(0,r).join("."))),f=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty("isPrototypeOf")},c="u">typeof window&&void 0!==window.HTMLElement&&"u">typeof document;function y(e){if(e instanceof Date)return new Date(e);let t="u">typeof FileList&&e instanceof FileList;if(c&&(e instanceof Blob||t))return e;let r=Array.isArray(e);if(!r&&!(u(e)&&f(e)))return e;let a=r?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=y(e[t]));return a}let m="blur",p="trigger",_="onChange",b="onSubmit",g="maxLength",v="minLength",h="pattern",V="required",F="validate",A="root",x=["__proto__","constructor","prototype"],k=/^\w*$/;var S=e=>void 0===e;let w=/[.[\]'"]/;var D=e=>e.split(w).filter(Boolean),C=(e,t,r)=>{if(!t||!u(e))return r;let a=k.test(t)?[t]:D(t);if(a.some(e=>x.includes(e)))return r;let s=a.reduce((e,t)=>l(e)?void 0:e[t],e);return S(s)||s===e?S(e[t])?r:e[t]:s},O=e=>"function"==typeof e,E=(e,t,r)=>{let a=-1,s=k.test(t)?[t]:D(t),i=s.length,l=i-1;for(;++a<i;){let t=s[a],i=r;if(a!==l){let r=e[t];i=u(r)||Array.isArray(r)?r:isNaN(+s[a+1])?{}:[]}if(x.includes(t))return;e[t]=i,e=e[t]}};let j=s().createContext(null);j.displayName="HookFormControlContext";var N=(e,t,r,a=!0)=>{let s={};for(let i in e)Object.defineProperty(s,i,{get:()=>("all"!==t._proxyFormState[i]&&(t._proxyFormState[i]=!a||"all"),r&&(r[i]=!0),e[i])});return s};let M=c?s().useLayoutEffect:s().useEffect;function R(e){let t=s().useContext(j),{control:r=t,disabled:a,name:i,exact:l}=e||{},[n,u]=s().useState(()=>({...r._formState,defaultValues:r._defaultValues})),o=s().useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return M(()=>r._subscribe({name:i,formState:o.current,exact:l,callback:e=>{a||u({...r._formState,...e,defaultValues:r._defaultValues})}}),[i,a,l]),s().useEffect(()=>{o.current.isValid&&r._setValid(!0)},[r]),s().useMemo(()=>N(n,r,o.current,!1),[n,r])}var T=e=>"string"==typeof e,U=(e,t,r,a,s)=>T(e)?(a&&t.watch.add(e),C(r,e,s)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),C(r,e))):(a&&(t.watchAll=!0),r),B=e=>l(e)||!n(e);let L=(e,t)=>0===t.length&&!Array.isArray(e)&&!f(e);function I(e,t,r=new WeakMap){if(e===t)return!0;if(B(e)||B(t))return Object.is(e,t);if(i(e)&&i(t))return Object.is(e.getTime(),t.getTime());let a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;if(L(e,a)||L(t,s))return Object.is(e,t);if(!a.length&&Array.isArray(e)!==Array.isArray(t))return!1;let l=r.get(e);if(l&&l.has(t))return!0;if(l)l.add(t);else{let a=new WeakSet;a.add(t),r.set(e,a)}for(let s of a){let a=e[s];if(!(s in t))return!1;if("ref"!==s){let e=t[s];if(i(a)&&i(e)||(u(a)||Array.isArray(a))&&(u(e)||Array.isArray(e))?!I(a,e,r):!Object.is(a,e))return!1}}return!0}function P(e){let t=s().useContext(j),{control:r=t,name:a,defaultValue:i,disabled:l,exact:n,compute:u}=e||{},o=s().useRef(i),d=s().useRef(u),f=s().useRef(void 0),c=s().useRef(r),y=s().useRef(a);d.current=u;let[m,p]=s().useState(()=>{let e=r._getWatch(a,o.current);return d.current?d.current(e):e}),_=s().useCallback(e=>{let t=U(a,r._names,e||r._formValues,!1,o.current);return d.current?d.current(t):t},[r._formValues,r._names,a]),b=s().useCallback(e=>{if(!l){let t=U(a,r._names,e||r._formValues,!1,o.current);if(d.current){let e=d.current(t);I(e,f.current)||(p(e),f.current=e)}else p(t)}},[r._formValues,r._names,l,a]);M(()=>(c.current===r&&I(y.current,a)||(c.current=r,y.current=a,b()),r._subscribe({name:a,formState:{values:!0},exact:n,callback:e=>{b(e.values)}})),[r,n,a,b]),s().useEffect(()=>r._removeUnmounted());let g=c.current!==r,v=y.current,h=s().useMemo(()=>{if(l)return null;let e=!g&&!I(v,a);return g||e?_():null},[l,g,a,v,_]);return null!==h?h:m}function W(e){let t=s().useContext(j),{name:r,disabled:a,control:i=t,shouldUnregister:l,defaultValue:n,exact:u=!0}=e,f=d(i._names.array,r),c=s().useMemo(()=>C(i._formValues,r,C(i._defaultValues,r,n)),[i,r,n]),p=P({control:i,name:r,defaultValue:c,exact:u}),_=R({control:i,name:r,exact:u}),b=s().useRef(e),g=s().useRef(null),v=s().useRef(i.register(r,{...e.rules,value:p,..."boolean"==typeof e.disabled?{disabled:e.disabled}:{}}));b.current=e;let h=s().useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(_.errors,r)},isDirty:{enumerable:!0,get:()=>!!C(_.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!C(_.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!C(_.validatingFields,r)},error:{enumerable:!0,get:()=>C(_.errors,r)}}),[_,r]),V=s().useCallback(e=>{let t=o(e);return C(i._fields,r)||(v.current=i.register(r,{...b.current.rules,value:t})),v.current.onChange({target:{value:o(e),name:r},type:"change"})},[r,i]),F=s().useCallback(()=>v.current.onBlur({target:{value:C(i._formValues,r),name:r},type:m}),[r,i._formValues]),A=s().useCallback(e=>{e&&(g.current={focus:()=>O(e.focus)&&e.focus(),select:()=>O(e.select)&&e.select(),setCustomValidity:t=>O(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>O(e.reportValidity)&&e.reportValidity()});let t=C(i._fields,r);t&&t._f&&e&&(t._f.ref=g.current)},[i._fields,r]),x=s().useMemo(()=>({name:r,value:p,..."boolean"==typeof a||_.disabled?{disabled:_.disabled||a}:{},onChange:V,onBlur:F,ref:A}),[r,a,_.disabled,V,F,A,p]);return s().useEffect(()=>{let e=i._options.shouldUnregister||l;i.register(r,{...b.current.rules,..."boolean"==typeof b.current.disabled?{disabled:b.current.disabled}:{}});let t=(e,t)=>{let r=C(i._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){let e=y(C(l?i._defaultValues:i._options.values||i._defaultValues,r,C(i._options.defaultValues,r,b.current.defaultValue)));E(i._defaultValues,r,e),S(C(i._formValues,r))&&E(i._formValues,r,e)}if(f||i.register(r),g.current){let e=C(i._fields,r);e&&e._f&&(e._f.ref=g.current)}return()=>{(f?e&&!i._state.action:e)?i.unregister(r):t(r,!1)}},[r,i,f,l]),s().useEffect(()=>{i._setDisabledField({disabled:a,name:r})},[a,r,i]),s().useMemo(()=>({field:x,formState:_,fieldState:h}),[x,_,h])}let $=e=>e.render(W(e)),H=e=>{let t={};for(let r of Object.keys(e))if(n(e[r])&&null!==e[r]){let a=H(e[r]);for(let e of Object.keys(a))t[`${r}.${e}`]=a[e]}else t[r]=e[r];return t},q=s().createContext(null);q.displayName="HookFormContext";let z=()=>s().useContext(q),J=({children:e,watch:t,getValues:r,getFieldState:a,setError:i,clearErrors:l,setValue:n,setValues:u,trigger:o,formState:d,resetField:f,reset:c,handleSubmit:y,unregister:m,control:p,register:_,setFocus:b,subscribe:g})=>{let v=s().useMemo(()=>({watch:t,getValues:r,getFieldState:a,setError:i,clearErrors:l,setValue:n,setValues:u,trigger:o,formState:d,resetField:f,reset:c,handleSubmit:y,unregister:m,control:p,register:_,setFocus:b,subscribe:g}),[l,p,d,a,r,y,_,c,f,i,b,n,u,g,o,m,t]);return s().createElement(q.Provider,{value:v},s().createElement(j.Provider,{value:v.control},e))};function G(e){let t=z(),[r,a]=s().useState(!1),{control:i=t.control,onSubmit:l,children:n,action:u,method:o="post",headers:d,encType:f,onError:c,render:y,onSuccess:m,validateStatus:p,..._}=e,b=s().useCallback(async e=>{let t=!1,r="";await i.handleSubmit(async a=>{let s=new FormData,i="";try{i=JSON.stringify(a)}catch(e){}let n=H(a);for(let e in n)s.append(e,n[e]);if(l&&await l({data:a,event:e,method:o,formData:s,formDataJson:i}),u)try{let e=[d&&d["Content-Type"],f].some(e=>e&&e.includes("json")),a=await fetch(String(u),{method:o,headers:{...d,...f&&"multipart/form-data"!==f?{"Content-Type":f}:{}},body:e?i:s});a&&(p?!p(a.status):a.status<200||a.status>=300)?(t=!0,c&&c({response:a}),r=String(a.status)):m&&m({response:a})}catch(e){t=!0,c&&c({error:e})}})(e),t&&i&&(i._subjects.state.next({isSubmitSuccessful:!1}),i.setError("root.server",{type:r}))},[i,l,o,u,d,f,p,c,m]);return s().useEffect(()=>{a(!0)},[]),y?s().createElement(s().Fragment,null,y({submit:b})):s().createElement("form",{noValidate:r,action:u,method:o,encType:f,onSubmit:b,..._},n)}let K=({control:e,disabled:t,exact:r,name:a,render:s})=>s(R({control:e,name:a,disabled:t,exact:r}));var Q=(e,t,r,a,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{},X=e=>Array.isArray(e)?e.filter(Boolean):[],Y=e=>Array.isArray(e)?e:[e],Z=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},ee=e=>u(e)&&!Object.keys(e).length,et=e=>{if(!c)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},er=e=>et(e)&&e.isConnected;function ea(e,t){if(T(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let r=Array.isArray(t)?t:k.test(t)?[t]:D(t),a=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,a=0;for(;a<r;){if(l(e)){e=void 0;break}e=e[t[a]],a++}return e}(e,r),s=r.length-1,i=r[s];return a&&delete a[i],0!==s&&(u(a)&&ee(a)||Array.isArray(a)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!S(e[t]))return!1;return!0}(a))&&ea(e,r.slice(0,-1)),e}function es(e){return Array.isArray(e)||u(e)&&!(e=>{for(let t in e)if(O(e[t]))return!0;return!1})(e)}function ei(e,t={}){for(let r in e){let a=e[r];es(a)?(t[r]=Array.isArray(a)?[]:{},ei(a,t[r])):S(a)||(t[r]=!0)}return t}function el(e,t,r){for(let a in r||(r=ei(t)),e){let s=e[a];if(es(s))S(t)||B(r[a])?r[a]=ei(s,Array.isArray(s)?[]:{}):el(s,l(t)?{}:t[a],r[a]);else{let e=t[a];r[a]=!I(s,e)}}return function e(t){if(!1!==t){if(!0===t)return!0;if(Array.isArray(t)){let r=t.map(t=>e(t));return r.some(e=>void 0!==e)?r:void 0}if(u(t)){let r={};for(let a in t){let s=e(t[a]);S(s)||(r[a]=s)}return Object.keys(r).length?r:void 0}}}(r)||{}}let en={value:!1,isValid:!1},eu={value:!0,isValid:!0};var eo=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!S(e[0].attributes.value)?S(e[0].value)||""===e[0].value?eu:{value:e[0].value,isValid:!0}:eu:en}return en},ed=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>S(e)?e:t?""===e?NaN:e?+e:e:r&&T(e)?new Date(e):a?a(e):e;let ef={isValid:!1,value:null};var ec=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ef):ef;function ey(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?ec(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?eo(e.refs).value:ed(S(t.value)?e.ref.value:t.value,e)}var em=e=>S(e)?e:e instanceof RegExp?e.source:u(e)?e.value instanceof RegExp?e.value.source:e.value:e,ep=e=>({isOnSubmit:!e||e===b,isOnBlur:"onBlur"===e,isOnChange:e===_,isOnAll:"all"===e,isOnTouch:"onTouched"===e});let e_="AsyncFunction";var eb=e=>{if(!e||!e.validate)return!1;if(O(e.validate))return e.validate.constructor.name===e_;if(u(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===e_)return!0}return!1},eg=(e,t,r)=>{if(r)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let r of t.watch)if(e.startsWith(r)&&"."===e.charAt(r.length))return!0;return!1};let ev=(e,t,r,a)=>{for(let s of r||Object.keys(e)){let r=C(e,s);if(r){let{_f:e,...i}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],s)&&!a)return!0;else if(e.ref&&t(e.ref,e.name)&&!a)return!0;else if(ev(i,t))break}else if(u(i)&&ev(i,t))break}}};function eh(e,t,r){let a=C(e,r);if(a||k.test(r))return{error:a,name:r};let s=r.split(".");for(;s.length;){let a=s.join("."),i=C(t,a),l=C(e,a);if(i&&!Array.isArray(i)&&r!==a)break;if(l&&l.type)return{name:a,error:l};if(l&&l.root&&l.root.type)return{name:`${a}.root`,error:l.root};s.pop()}return{name:r}}var eV=(e,t,r)=>{let a=C(e,r),s=Array.isArray(a)?a:[];return E(s,A,t[r]),E(e,r,s),e};function eF(e,t,r="validate"){if(T(e)||Array.isArray(e)&&e.every(T)||"boolean"==typeof e&&!e)return{type:r,message:T(e)?e:"",ref:t}}var eA=e=>!u(e)||e instanceof RegExp?{value:e,message:""}:e,ex=async(e,t,r,a,s,i)=>{let{ref:n,refs:o,required:d,maxLength:f,minLength:c,min:y,max:m,pattern:p,validate:_,name:b,valueAsNumber:A,mount:x}=e._f,k=C(r,b);if(!x||t.has(b))return{};let w=o?o[0]:n,D=e=>{if(s&&w.reportValidity){let t="boolean"==typeof e?"":e||"";o?o.forEach(e=>e.setCustomValidity(t)):w.setCustomValidity(t),w.reportValidity()}},E={},j="radio"===n.type,N="checkbox"===n.type,M=(A||"file"===n.type)&&S(n.value)&&S(k)||et(n)&&""===n.value||""===k||Array.isArray(k)&&!k.length,R=Q.bind(null,b,a,E),U=(e,t,r,a=g,s=v)=>{let i=e?t:r;E[b]={type:e?a:s,message:i,ref:n,...R(e?a:s,i)}};if(i?!Array.isArray(k)||!k.length:d&&(!(j||N)&&(M||l(k))||"boolean"==typeof k&&!k||N&&!eo(o).isValid||j&&!ec(o).isValid)){let{value:e,message:t}=T(d)?{value:!!d,message:d}:eA(d);if(e&&(E[b]={type:V,message:t,ref:w,...R(V,t)},!a))return D(t),E}if(!M&&(!l(y)||!l(m))){let e,t,r=eA(m),s=eA(y);if(l(k)||isNaN(k)){let a=n.valueAsDate||new Date(k),i=e=>new Date(new Date().toDateString()+" "+e),l="time"==n.type,u="week"==n.type;T(r.value)&&k&&(e=l?i(k)>i(r.value):u?k>r.value:a>new Date(r.value)),T(s.value)&&k&&(t=l?i(k)<i(s.value):u?k<s.value:a<new Date(s.value))}else{let a=n.valueAsNumber||(k?+k:k);l(r.value)||(e=a>r.value),l(s.value)||(t=a<s.value)}if((e||t)&&(U(!!e,r.message,s.message,"max","min"),!a))return D(E[b].message),E}if((f||c)&&!M&&(T(k)||i&&Array.isArray(k))){let e=eA(f),t=eA(c),r=!l(e.value)&&k.length>+e.value,s=!l(t.value)&&k.length<+t.value;if((r||s)&&(U(r,e.message,t.message),!a))return D(E[b].message),E}if(p&&!M&&T(k)){let{value:e,message:t}=eA(p);if(e instanceof RegExp&&!k.match(e)&&(E[b]={type:h,message:t,ref:n,...R(h,t)},!a))return D(t),E}if(_){if(O(_)){let e=eF(await _(k,r),w);if(e&&(E[b]={...e,...R(F,e.message)},!a))return D(e.message),E}else if(u(_)){let e={};for(let t in _){if(!ee(e)&&!a)break;let s=eF(await _[t](k,r),w,t);s&&(e={...s,...R(t,s.message)},D(s.message),a&&(E[b]=e))}if(!ee(e)&&(E[b]={ref:w,...e},!a))return E}}return D(!0),E};let ek={mode:b,reValidateMode:_,shouldFocusError:!0},eS="form",ew={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function eD(e={}){let t,r={...ek,...e},a={...y(ew),isLoading:O(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},s={},n=(u(r.defaultValues)||u(r.values))&&y(r.defaultValues||r.values)||{},f=r.shouldUnregister?{}:y(n),_={action:!1,mount:!1,watch:!1,keepIsValid:!1},b={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},g=0,v=0,h=ep(r.mode),V=ep(r.reValidateMode),x={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={...x},j={...w},N={array:Z(),state:Z()},M="all"===r.criteriaMode,R=async e=>{if(!_.keepIsValid&&!r.disabled&&(w.isValid||j.isValid||e)){let e;r.resolver?(e=ee((await $()).errors),B()):e=await z({fields:s,onlyCheckValid:!0,eventType:"valid"}),e!==a.isValid&&N.state.next({isValid:e})}},B=(e,t)=>{!r.disabled&&(w.isValidating||w.validatingFields||j.isValidating||j.validatingFields)&&((e||Array.from(b.mount)).forEach(e=>{e&&(t?E(a.validatingFields,e,t):ea(a.validatingFields,e))}),N.state.next({validatingFields:a.validatingFields,isValidating:!ee(a.validatingFields)}))},L=()=>{a.dirtyFields=el(n,f)},P=(t,r,i,u)=>{let o=C(s,t);if(o){if((e=>{let t=k.test(e)?[e]:D(e),r=f,a=n;for(let e=0;e<t.length-1;e++){let s=t[e];if(r=l(r)?r:r[s],a=l(a)?a:a[s],null===r&&null!==a)return!0}return!1})(t))return;let s=S(C(f,t)),d=C(f,t,S(i)?C(n,t):i);S(d)||u&&u.defaultChecked||r?E(f,t,r?d:ey(o._f)):K(t,d),_.mount&&!_.action&&(R(),s&&a.isDirty&&(w.isDirty||j.isDirty)&&(J()||(a.isDirty=!1,N.state.next({...a}))),e.shouldUnregister&&s&&!S(C(f,t))&&eg(t,b)&&(_.watch=!0))}},W=(e,t,s,i,l)=>{let u=!1,o=!1,d={name:e};if(!r.disabled){if(!s||i){let r=I(C(n,e),t);(w.isDirty||j.isDirty)&&(o=a.isDirty,a.isDirty=d.isDirty=!r||J(),u=o!==d.isDirty),o=!!C(a.dirtyFields,e),r!==a.isDirty?a.dirtyFields=el(n,f):r?ea(a.dirtyFields,e):E(a.dirtyFields,e,!0),d.dirtyFields=a.dirtyFields,u=u||(w.dirtyFields||j.dirtyFields)&&!r!==o}if(s){let t=C(a.touchedFields,e);t||(E(a.touchedFields,e,s),d.touchedFields=a.touchedFields,u=u||(w.touchedFields||j.touchedFields)&&t!==s)}u&&l&&N.state.next(d)}return u?d:{}},$=async e=>(B(e,!0),await r.resolver(f,r.context,((e,t,r,a)=>{let s={};for(let r of e){let e=C(t,r);e&&E(s,r,e._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}})(e||b.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),H=async e=>{let{errors:t}=await $(e);if(B(e),e){for(let r of e){let e=C(t,r);e?b.array.has(r)&&u(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?eV(a.errors,{[r]:e},r):E(a.errors,r,e):ea(a.errors,r)}a.errors={...a.errors}}else a.errors=t;return t},q=async({name:t,eventType:r})=>{if(e.validate){let s=await e.validate({formValues:f,formState:a,name:t,eventType:r});if(u(s))for(let e in s){let t=s[e];t&&e_(`${eS}.${e}`,{message:T(t.message)?t.message:"",type:t.type||F})}else T(s)||!s?e_(eS,{message:s||"",type:F}):ec(eS);return s}return!0},z=async({fields:t,onlyCheckValid:s,name:i,eventType:l,context:n={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(n.runRootValidation=!0,!await q({name:i,eventType:l}))&&(n.valid=!1,s))return n.valid;for(let i in t){let u=t[i];if(u){let{_f:t,...o}=u;if(t){let i=b.array.has(t.name),l=u._f&&eb(u._f),o=w.validatingFields||w.isValidating||j.validatingFields||j.isValidating;l&&o&&B([t.name],!0);let d=await ex(u,b.disabled,f,M,r.shouldUseNativeValidation&&!s,i);if(l&&o&&B([t.name]),d[t.name]&&(n.valid=!1,s)||(s||(C(d,t.name)?i?eV(a.errors,d,t.name):E(a.errors,t.name,d[t.name]):ea(a.errors,t.name)),e.shouldUseNativeValidation&&d[t.name]))break}ee(o)||await z({context:n,onlyCheckValid:s,fields:o,name:i,eventType:l})}}return n.valid},J=(e,t)=>!r.disabled&&(e&&t&&E(f,e,t),!I(_.mount?f:n,n)),G=(e,t,r)=>U(e,b,{..._.mount?f:S(t)?n:T(e)?{[e]:t}:t},r,t),K=(e,t,r={},a=!1,i=!1)=>{let n=C(s,e),u=t;if(n){let r=n._f;r&&(r.disabled||E(f,e,ed(t,r)),u=et(r.ref)&&l(t)?"":t,"select-multiple"===r.ref.type?[...r.ref.options].forEach(e=>e.selected=u.includes(e.value)):r.refs?"checkbox"===r.ref.type?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(u)?e.checked=!!u.find(t=>t===e.value):e.checked=u===e.value||!!u)}):r.refs.forEach(e=>e.checked=e.value===u):"file"===r.ref.type?r.ref.value="":(r.ref.value=u,r.ref.type||i||N.state.next({name:e,values:a?f:y(f)})))}(r.shouldDirty||r.shouldTouch)&&W(e,u,r.shouldTouch,r.shouldDirty,!i),r.shouldValidate&&eo(e)},Q=(e,t,r,a=!1,l=!1)=>{for(let n in t){if(!t.hasOwnProperty(n))return;let o=t[n],d=e+"."+n,f=C(s,d);(b.array.has(e)||u(o)||f&&!f._f)&&!i(o)?Q(d,o,r,a,l):K(d,o,r,a,l)}},es=(e,t,r,i,n=!1)=>{let u=C(s,e),o=b.array.has(e),d=i?t:y(t),c=I(C(f,e),d);if(c||E(f,e,d),o)N.array.next({name:e,values:i?f:y(f)}),(w.isDirty||w.dirtyFields||j.isDirty||j.dirtyFields)&&r.shouldDirty&&(L(),n||N.state.next({name:e,dirtyFields:a.dirtyFields,isDirty:J(e,d)}));else{let t=Array.isArray(d)&&!d.length||ee(d);!u||u._f||l(d)||t?K(e,d,r,i,n):Q(e,d,r,i,n)}if(!c&&!n){let t=eg(e,b),r=i?f:y(f);N.state.next({...t&&a,name:_.mount||t?e:void 0,values:r})}},ei=(e,t,r={})=>es(e,t,r,!1),en=async l=>{_.mount=!0;let n=l.target,u=n.name,d=!0,c=C(s,u),p=e=>{d=Number.isNaN(e)||i(e)&&isNaN(e.getTime())||I(e,C(f,u,e))};if(c){var F,A,x,k,S;let i,_,U,L=n.type?ey(c._f):o(l),P=l.type===m||"focusout"===l.type,H=!((U=c._f).mount&&(U.required||U.min||U.max||U.maxLength||U.minLength||U.pattern||U.validate))&&!e.validate&&!r.resolver&&!C(a.errors,u)&&!c._f.deps,J=H||(F=P,A=C(a.touchedFields,u),x=a.isSubmitted,k=V,!(S=h).isOnAll&&(!x&&S.isOnTouch?!(A||F):(x?k.isOnBlur:S.isOnBlur)?!F:(x?!k.isOnChange:!S.isOnChange)||F)),G=eg(u,b,P);E(f,u,L),P?n&&n.readOnly||(c._f.onBlur&&c._f.onBlur(l),t&&t(0)):c._f.onChange&&c._f.onChange(l);let K=W(u,L,P),Q=!ee(K)||G;if(P||N.state.next({name:u,type:l.type,...v?{values:y(f)}:{}}),J)return(!H||!a.isValid)&&(w.isValid||j.isValid)&&("onBlur"===r.mode?P&&R():P||R()),Q&&N.state.next({name:u,...G?{}:K});if(!r.resolver&&e.validate&&await q({name:u,eventType:l.type}),!P&&G&&N.state.next({...a}),r.resolver){let{errors:e}=await $([u]);if(B([u]),p(L),!d){ee(K)||N.state.next(K);return}let t=eh(a.errors,s,u),r=eh(e,s,t.name||u);i=r.error,u=r.name,_=ee(e)}else B([u],!0),i=(await ex(c,b.disabled,f,M,r.shouldUseNativeValidation))[u],B([u]),p(L),d&&(i?_=!1:(w.isValid||j.isValid)&&(_=await z({fields:s,onlyCheckValid:!0,name:u,eventType:l.type})));if(d){c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&eo(c._f.deps);var D=u,O=_,T=i;let e=C(a.errors,D),s=(w.isValid||j.isValid)&&"boolean"==typeof O&&a.isValid!==O;if(r.delayError&&T){let e;e=()=>{E(a.errors,D,T),a.errors={...a.errors},N.state.next({errors:a.errors})},(t=t=>{clearTimeout(g),g=setTimeout(e,t)})(r.delayError)}else clearTimeout(g),t=null,T?E(a.errors,D,T):ea(a.errors,D),a.errors={...a.errors};if((T?!I(e,T):e)||!ee(K)||s){let e={...K,...s&&"boolean"==typeof O?{isValid:O}:{},errors:a.errors,name:D};a={...a,...e},N.state.next(e)}}}},eu=(e,t)=>{if(C(a.errors,t)&&e.focus)return e.focus(),1},eo=async(e,t={})=>{let i,l,n=Y(e);if(r.resolver){let t=await H(S(e)?e:n);i=ee(t),l=e?!n.some(e=>C(t,e)):i}else e?((l=(await Promise.all(n.map(async e=>{let t=C(s,e);return await z({fields:t&&t._f?{[e]:t}:t,eventType:p})}))).every(Boolean))||a.isValid)&&R():l=i=await z({fields:s,name:e,eventType:p});return N.state.next({...!T(e)||(w.isValid||j.isValid)&&i!==a.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:a.errors}),t.shouldFocus&&!l&&ev(s,eu,e?n:b.mount),l},ef=(e,t)=>({invalid:!!C((t||a).errors,e),isDirty:!!C((t||a).dirtyFields,e),error:C((t||a).errors,e),isValidating:!!C(a.validatingFields,e),isTouched:!!C((t||a).touchedFields,e)}),ec=e=>{let t=e?Y(e):void 0;null==t||t.forEach(e=>ea(a.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:a.errors})}):N.state.next({errors:{}})},e_=(e,t,r)=>{let i=(C(s,e,{_f:{}})._f||{}).ref,{ref:l,message:n,type:u,...o}=C(a.errors,e)||{};E(a.errors,e,{...o,...t,ref:i}),N.state.next({name:e,errors:a.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eF=e=>{var t;let r=!!(null==(t=e.formState)?void 0:t.values);r&&v++;let{unsubscribe:s}=N.state.subscribe({next:t=>{let r,s,i;if(r=e.name,s=t.name,i=e.exact,(!r||!s||r===s||Y(r).some(e=>e&&(i?e===s:e.startsWith(s)||s.startsWith(e))))&&((e,t,r,a)=>{r(e);let{name:s,...i}=e,l=Object.keys(i);return!l.length||a&&l.length>=Object.keys(t).length||l.find(e=>t[e]===(!a||"all"))})(t,e.formState||w,eR,e.reRenderRoot)){let r={...f};e.callback({values:r,...a,...t,defaultValues:n})}}});if(!r)return s;let i=!1;return()=>{i||(i=!0,v--,s())}},eA=(e,t={})=>{for(let i of e?Y(e):b.mount)b.mount.delete(i),b.array.delete(i),t.keepValue||(ea(s,i),ea(f,i)),t.keepError||ea(a.errors,i),t.keepDirty||ea(a.dirtyFields,i),t.keepTouched||ea(a.touchedFields,i),t.keepIsValidating||ea(a.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||ea(n,i);N.state.next({values:y(f)}),N.state.next({...a,...!t.keepDirty?{}:{isDirty:J()}}),t.keepIsValid||R()},eC=({disabled:e,name:t})=>{if("boolean"==typeof e&&_.mount||e||b.disabled.has(t)){let r=b.disabled.has(t);e?b.disabled.add(t):b.disabled.delete(t),!!e!==r&&_.mount&&!_.action&&R()}},eO=(e,t={})=>{let a=C(s,e),i="boolean"==typeof t.disabled||"boolean"==typeof r.disabled,l=!b.registerName.has(e)&&a&&a._f&&!a._f.mount;return(E(s,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...t}}),b.mount.add(e),a&&!l)?eC({disabled:"boolean"==typeof t.disabled?t.disabled:r.disabled,name:e}):P(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:em(t.min),max:em(t.max),minLength:em(t.minLength),maxLength:em(t.maxLength),pattern:em(t.pattern)}:{},name:e,onChange:en,onBlur:en,ref:i=>{if(i){let r;b.registerName.add(e),eO(e,t),b.registerName.delete(e),a=C(s,e);let l=S(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,u="radio"===(r=l).type||"checkbox"===r.type,o=a._f.refs||[];(u?o.find(e=>e===l):l===a._f.ref)||(E(s,e,{_f:{...a._f,...u?{refs:[...o.filter(er),l,...Array.isArray(C(n,e))?[{}]:[]],ref:{type:l.type,name:e}}:{ref:l}}}),P(e,!1,void 0,l))}else(a=C(s,e,{}))._f&&(a._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(b.array,e)&&_.action)&&b.unMount.add(e)}}},eE=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&ev(s,eu,b.mount),ej=(e,t)=>async i=>{let l;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let n=y(f);if(N.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await $();B(),a.errors=e,n=y(t)}else await z({fields:s,eventType:"submit"});if(b.disabled.size)for(let e of b.disabled)ea(n,e);if(ea(a.errors,A),ee(a.errors)){N.state.next({errors:{}});try{await e(n,i)}catch(e){l=e}}else t&&await t({...a.errors},i),eE(),setTimeout(eE);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ee(a.errors)&&!l,submitCount:a.submitCount+1,errors:a.errors}),l)throw l},eN=(e,t={})=>{let i=e?y(e):n,l=y(i),u=ee(e);if(t.keepDefaultValues||(n=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...b.mount,...Object.keys(el(n,f))]))){let t=C(a.dirtyFields,e),r=C(f,e),s=C(l,e);t&&!S(r)?E(l,e,r):t||S(s)||ei(e,s)}else{if(c&&S(e))for(let e of b.mount){let t=C(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(et(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of b.mount)ei(e,C(l,e));else s={}}if(r.shouldUnregister){if(f=t.keepDefaultValues?y(n):{},t.keepFieldsRef)for(let e of b.mount)E(f,e,C(l,e))}else f=y(l);N.array.next({values:{...l}}),N.state.next({values:{...l}})}b={mount:t.keepDirtyValues?b.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},_.mount=!w.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!ee(l),_.watch=!!r.shouldUnregister,_.keepIsValid=!!t.keepIsValid,_.action=!1,t.keepErrors||(a.errors={}),N.state.next({submitCount:t.keepSubmitCount?a.submitCount:0,isDirty:!u&&(t.keepDirty?a.isDirty:t.keepValues?J():!!(t.keepDefaultValues&&!I(e,n))),isSubmitted:!!t.keepIsSubmitted&&a.isSubmitted,dirtyFields:u?{}:t.keepDirtyValues?t.keepDefaultValues&&f?el(n,f):a.dirtyFields:t.keepDefaultValues&&e?el(n,e):t.keepDirty?a.dirtyFields:{},touchedFields:t.keepTouched?a.touchedFields:{},errors:t.keepErrors?a.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&a.isSubmitSuccessful,isSubmitting:!1,defaultValues:n})},eM=(e,t)=>eN(O(e)?e(f):e,{...r.resetOptions,...t}),eR=e=>{a={...a,...e}},eT={control:{register:eO,unregister:eA,getFieldState:ef,handleSubmit:ej,setError:e_,_subscribe:eF,_runSchema:$,_updateIsValidating:B,_focusError:eE,_getWatch:G,_getDirty:J,_setValid:R,_setFieldArray:(e,t=[],i,l,n=!0,u=!0)=>{if(l&&i&&!r.disabled){if(_.action=!0,u&&Array.isArray(C(s,e))){let t=i(C(s,e),l.argA,l.argB);n&&E(s,e,t)}if(u&&Array.isArray(C(a.errors,e))){let t,r=i(C(a.errors,e),l.argA,l.argB);n&&E(a.errors,e,r),X(C(t=a.errors,e)).length||ea(t,e)}if((w.touchedFields||j.touchedFields)&&u&&Array.isArray(C(a.touchedFields,e))){let t=i(C(a.touchedFields,e),l.argA,l.argB);n&&E(a.touchedFields,e,t)}(w.dirtyFields||j.dirtyFields)&&L(),N.state.next({name:e,isDirty:J(e,t),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else E(f,e,t)},_setDisabledField:eC,_setErrors:e=>{a.errors=e,N.state.next({errors:a.errors,isValid:!1})},_getFieldArray:e=>X(C(_.mount?f:n,e,r.shouldUnregister?C(n,e,[]):[])),_reset:eN,_resetDefaultValues:()=>O(r.defaultValues)&&r.defaultValues().then(e=>{eM(e,r.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of b.unMount){let t=C(s,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&eA(e)}b.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(N.state.next({disabled:e}),ev(s,(t,r)=>{let a=C(s,r);a&&(t.disabled=a._f.disabled||e,Array.isArray(a._f.refs)&&a._f.refs.forEach(t=>{t.disabled=a._f.disabled||e}))},0,!1))},_subjects:N,_proxyFormState:w,get _fields(){return s},get _formValues(){return f},get _state(){return _},set _state(value){_=value},get _defaultValues(){return n},get _names(){return b},set _names(value){b=value},get _formState(){return a},get _options(){return r},set _options(value){h=ep((r={...r,...value}).mode),V=ep(r.reValidateMode)}},subscribe:e=>(_.mount=!0,j={...j,...e.formState},eF({...e,formState:{...x,...e.formState}})),trigger:eo,register:eO,handleSubmit:ej,watch:(e,t)=>{if(O(e)){v++;let{unsubscribe:r}=N.state.subscribe({next:r=>"values"in r&&e(r.values||G(void 0,t),r)}),a=!1;return{unsubscribe:()=>{a||(a=!0,v--,r())}}}return G(e,t,!0)},setValue:ei,setValues:(e,t={})=>{let r=O(e)?e(f):e;if(!I(f,r)){for(let e of(f={...f,...r},b.mount))es(e,C(r,e),t,!0,!0);N.state.next({...a,name:void 0,type:void 0,...v?{values:f}:{}}),t.shouldValidate&&R()}},getValues:(e,t)=>{let r={..._.mount?f:n};return t&&(r=function e(t,r){let a={};for(let s in t)if(t.hasOwnProperty(s)){let i=t[s],l=r[s];if(i&&u(i)&&l){let t=e(i,l);u(t)&&(a[s]=t)}else t[s]&&(a[s]=l)}return a}(t.dirtyFields?a.dirtyFields:a.touchedFields,r)),S(e)?r:T(e)?C(r,e):e.map(e=>C(r,e))},reset:eM,resetField:(e,t={})=>{C(s,e)&&(S(t.defaultValue)?ei(e,y(C(n,e))):(ei(e,t.defaultValue),E(n,e,y(t.defaultValue))),t.keepTouched||ea(a.touchedFields,e),t.keepDirty||(ea(a.dirtyFields,e),a.isDirty=t.defaultValue?J(e,y(C(n,e))):J()),!t.keepError&&(ea(a.errors,e),w.isValid&&R()),N.state.next({...a}))},resetDefaultValues:(e,t={})=>{if(n=y(e),!t.keepDirty){let e=el(n,f);a.dirtyFields=e,a.isDirty=!ee(e)}t.keepIsValid||R(),N.state.next({...a,defaultValues:n})},clearErrors:ec,unregister:eA,setError:e_,setFocus:(e,t={})=>{let r=C(s,e),a=r&&r._f;if(a){let e=a.refs?a.refs[0]:a.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&O(e.select)&&e.select()})}},getFieldState:ef};return{...eT,formControl:eT}}var eC=()=>{if("u">typeof crypto&&crypto.randomUUID)return crypto.randomUUID();let e="u"<typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)})},eO=(e,t,r={})=>r.shouldFocus||S(r.shouldFocus)?r.focusName||`${e}.${S(r.focusIndex)?t:r.focusIndex}.`:"",eE=(e,t)=>[...e,...Y(t)],ej=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function eN(e,t,r){return[...e.slice(0,t),...Y(r),...e.slice(t)]}var eM=(e,t,r)=>Array.isArray(e)?(S(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],eR=(e,t)=>[...Y(t),...Y(e)],eT=(e,t)=>S(t)?[]:function(e,t){let r=0,a=[...e];for(let e of t)a.splice(e-r,1),r++;return X(a).length?a:[]}(e,Y(t).sort((e,t)=>e-t)),eU=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},eB=(e,t,r)=>(e[t]=r,e);function eL(e){let t=s().useContext(j),{control:r=t,name:a,keyName:i="id",disabled:l,shouldUnregister:n,rules:u}=e,[o,d]=s().useState(r._getFieldArray(a)),f=s().useRef(r._getFieldArray(a).map(eC)),c=s().useRef(!1);l||r._names.array.add(a),s().useMemo(()=>!l&&u&&o.length>=0&&r.register(a,u),[r,a,o.length,u,l]),M(()=>{if(!l)return r._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===a||!t){let r=C(e,a);Array.isArray(r)?(d(r),f.current=r.map(eC)):t||(d([]),f.current=[])}}}).unsubscribe},[r,a,l]);let m=s().useCallback(e=>{c.current=!0,r._setFieldArray(a,e)},[r,a]);return s().useEffect(()=>{if(l)return;r._state.action=!1,eg(a,r._names)&&r._subjects.state.next({...r._formState});let e=ep(r._options.mode);if(c.current&&(!e.isOnSubmit||r._formState.isSubmitted)&&!ep(r._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(r._options.resolver)r._runSchema([a]).then(e=>{r._updateIsValidating([a]);let t=C(e.errors,a),s=C(r._formState.errors,a);(s?!t&&s.type||t&&(s.type!==t.type||s.message!==t.message):t&&t.type)&&(t?E(r._formState.errors,a,t):ea(r._formState.errors,a),r._subjects.state.next({errors:r._formState.errors}))});else{let e=C(r._fields,a);e&&e._f&&!(ep(r._options.reValidateMode).isOnSubmit&&ep(r._options.mode).isOnSubmit)&&ex(e,r._names.disabled,r._formValues,"all"===r._options.criteriaMode,r._options.shouldUseNativeValidation,!0).then(e=>!ee(e)&&r._subjects.state.next({errors:eV(r._formState.errors,e,a)}))}r._subjects.state.next({name:a,values:y(r._formValues)}),r._names.focus&&ev(r._fields,(e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1}),r._names.focus="",r._setValid(),c.current=!1},[o,a,r,l]),s().useEffect(()=>(!l&&(C(r._formValues,a)||r._setFieldArray(a)),()=>{let e;if(l)return;let t=!(r._options.shouldUnregister||n);c.current&&t&&r._subjects.state.next({name:a,values:y(r._formValues)}),t?(e=C(r._fields,a))&&e._f&&(e._f.mount=!1):r.unregister(a)}),[a,r,i,n,l]),{swap:s().useCallback((e,t)=>{if(l)return;let s=r._getFieldArray(a);eU(s,e,t),eU(f.current,e,t),m(s),d(s),r._setFieldArray(a,s,eU,{argA:e,argB:t},!1)},[m,a,r,l]),move:s().useCallback((e,t)=>{if(l)return;let s=r._getFieldArray(a);eM(s,e,t),eM(f.current,e,t),m(s),d(s),r._setFieldArray(a,s,eM,{argA:e,argB:t},!1)},[m,a,r,l]),prepend:s().useCallback((e,t)=>{if(l)return;let s=Y(y(e)),i=eR(r._getFieldArray(a),s);r._names.focus=eO(a,0,t),f.current=eR(f.current,s.map(eC)),m(i),d(i),r._setFieldArray(a,i,eR,{argA:ej(e)})},[m,a,r,l]),append:s().useCallback((e,t)=>{if(l)return;let s=Y(y(e)),i=eE(r._getFieldArray(a),s);r._names.focus=eO(a,i.length-1,t),f.current=eE(f.current,s.map(eC)),m(i),d(i),r._setFieldArray(a,i,eE,{argA:ej(e)})},[m,a,r,l]),remove:s().useCallback(e=>{if(l)return;let t=eT(r._getFieldArray(a),e);f.current=eT(f.current,e),m(t),d(t),Array.isArray(C(r._fields,a))||E(r._fields,a,void 0),r._setFieldArray(a,t,eT,{argA:e})},[m,a,r,l]),insert:s().useCallback((e,t,s)=>{if(l)return;let i=Y(y(t)),n=eN(r._getFieldArray(a),e,i);r._names.focus=eO(a,e,s),f.current=eN(f.current,e,i.map(eC)),m(n),d(n),r._setFieldArray(a,n,eN,{argA:e,argB:ej(t)})},[m,a,r,l]),update:s().useCallback((e,t)=>{if(l)return;let s=y(t),i=eB(r._getFieldArray(a),e,s);f.current=[...i].map((t,r)=>t&&r!==e?f.current[r]:eC()),m(i),d([...i]),r._setFieldArray(a,i,eB,{argA:e,argB:s},!0,!1)},[m,a,r,l]),replace:s().useCallback(e=>{if(l)return;let t=Y(y(e));f.current=t.map(eC),m([...t]),d([...t]),r._setFieldArray(a,[...t],e=>e,{},!0,!1)},[m,a,r,l]),fields:s().useMemo(()=>o.map((e,t)=>({...e,..."boolean"==typeof l?{disabled:l}:{},[i]:f.current[t]||eC()})),[o,i,l])}}function eI(e={}){let t=s().useRef(void 0),r=s().useRef(void 0),a=s().useRef(e.formControl),[i,l]=s().useState(()=>({...y(ew),isLoading:O(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:O(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&a.current!==e.formControl)if(a.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!O(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:r,...a}=eD(e);t.current={...a,formState:i}}let n=t.current.control;return n._options=e,M(()=>{let e=n._subscribe({formState:n._proxyFormState,callback:()=>l({...n._formState,defaultValues:n._defaultValues}),reRenderRoot:!0});return l(e=>({...e,isReady:!0})),n._formState.isReady=!0,e},[n]),s().useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),s().useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),s().useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),s().useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),s().useEffect(()=>{if(n._proxyFormState.isDirty){let e=n._getDirty();e!==i.isDirty&&n._subjects.state.next({isDirty:e})}},[n,i.isDirty]),s().useEffect(()=>{var t;e.values&&!I(e.values,r.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),(null==(t=n._options.resetOptions)?void 0:t.keepIsValid)||n._setValid(),r.current=e.values,l(e=>({...e}))):n._resetDefaultValues()},[n,e.values]),s().useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),t.current.formState=s().useMemo(()=>N(i,n),[n,i]),t.current}let eP=e=>e.render(P({name:e.names,...e}))}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 440.62bb6f89.js.LICENSE.txt */
2
- "use strict";(self.chunk_ClickHouse_0_7_0_beta_1=self.chunk_ClickHouse_0_7_0_beta_1||[]).push([["440"],{53299(e,t,r){r.r(t),r.d(t,{useFetchers:()=>rU,unstable_HistoryRouter:()=>rv,useLoaderData:()=>tk,ScrollRestoration:()=>rS,Route:()=>tW,MemoryRouter:()=>tI,useMatches:()=>tL,redirect:()=>et,useOutletContext:()=>tc,createRoutesFromElements:()=>tG,useLinkClickHandler:()=>rC,useRouteError:()=>tU,generatePath:()=>M,replace:()=>en,useHref:()=>tr,useParams:()=>th,UNSAFE_ViewTransitionContext:()=>ro,useRoutes:()=>tp,useSubmit:()=>rk,UNSAFE_NavigationContext:()=>e8,Navigate:()=>tz,UNSAFE_ErrorResponseImpl:()=>ea,UNSAFE_FetchersContext:()=>ri,useAsyncError:()=>tj,createRoutesFromChildren:()=>tG,unstable_usePrompt:()=>rF,useFetcher:()=>rA,useBlocker:()=>tO,createHashRouter:()=>rn,UNSAFE_useRouteId:()=>tC,useMatch:()=>ti,useNavigation:()=>tP,HashRouter:()=>rm,useFormAction:()=>r_,useResolvedPath:()=>tf,defer:()=>ee,Router:()=>t$,Routes:()=>tV,useActionData:()=>tA,useRouteLoaderData:()=>t_,Await:()=>tJ,matchPath:()=>O,UNSAFE_DataRouterContext:()=>e3,BrowserRouter:()=>rp,NavigationType:()=>c,Form:()=>rE,UNSAFE_RouteContext:()=>te,createSearchParams:()=>t3,RouterProvider:()=>rh,UNSAFE_LocationContext:()=>e6,parsePath:()=>P,Outlet:()=>tH,createMemoryRouter:()=>t0,UNSAFE_useScrollRestoration:()=>rM,useNavigate:()=>ts,matchRoutes:()=>_,createPath:()=>C,resolvePath:()=>I,useInRouterContext:()=>tn,useOutlet:()=>td,useAsyncValue:()=>tT,useViewTransitionState:()=>rN,Link:()=>rw,AbortedDeferredError:()=>Q,renderMatches:()=>tQ,NavLink:()=>rb,UNSAFE_DataRouterStateContext:()=>e5,json:()=>G,useSearchParams:()=>rP,redirectDocument:()=>er,useBeforeUnload:()=>rO,useLocation:()=>ta,createBrowserRouter:()=>rr,isRouteErrorResponse:()=>eo,useNavigationType:()=>to,useRevalidator:()=>tD});var n,a,o,i,l,s,u,c,d,h,f,p=r(70451),m=r(20231);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let y="popstate";function g(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=x(t?t[o].pathname:"/",e,r,n);return S("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:C(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?P(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function w(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:C(t)},null,e)}function b(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=P(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:C(t))},function(e,t){S("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function E(e,t){if(!1===e||null==e)throw Error(t)}function S(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function R(e,t){return{usr:e.state,key:e.key,idx:t}}function x(e,t,r,n){return void 0===r&&(r=null),v({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?P(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function C(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function P(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function D(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:C(e);return E(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(v({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(y,h),s=e,()=>{a.removeEventListener(y,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=x(p.location,e,t);r&&r(n,e);let h=R(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=x(p.location,e,t);r&&r(n,e);let a=R(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let L=new Set(["lazy","caseSensitive","path","id","index","children"]);function k(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(E(!0!==e.index||!e.children,"Cannot specify children on an index route"),E(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=v({},e,t(e),{id:i});return n[i]=r,r}{let r=v({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=k(e.children,t,o,n)),r}})}function _(e,t,r){return void 0===r&&(r="/"),A(e,t,r,!1)}function A(e,t,r,n){let a=N(("string"==typeof t?P(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(E(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=K([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(E(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(j)&&(c+=-2),s&&(c+=2),u.filter(e=>!j(e)).reduce((e,t)=>e+(T.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null,l=F(a);for(let e=0;null==i&&e<o.length;++e)i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:K([o,c.pathname]),pathnameBase:Y(K([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=K([o,c.pathnameBase]))}return i}(o[e],l,n);return i}function U(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let T=/^:[\w-]+$/,j=e=>"*"===e;function M(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(S(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return E("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function O(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),S("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return S(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}let B=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function I(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?P(e):e;if(n){let e;(e=n,B.test(e))?r=n:(n.includes("//")&&S(!1,"Pathnames cannot have embedded double slashes - normalizing "+n+" -> "+(n=J(n))),r=n.startsWith("/")?z(n.substring(1),"/"):z(n,t))}else r=t;return{pathname:r,search:q(a),hash:X(o)}}function z(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function H(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function W(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function $(e,t){let r=W(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function V(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=P(e):(E(!(a=v({},e)).pathname||!a.pathname.includes("?"),H("?","pathname","search",a)),E(!a.pathname||!a.pathname.includes("#"),H("#","pathname","hash",a)),E(!a.search||!a.search.includes("#"),H("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=I(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let J=e=>e.replace(/\/\/+/g,"/"),K=e=>J(e.join("/")),Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",X=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",G=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),v({},r,{headers:n}))};class Q extends Error{}class Z{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],E(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new Q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof Q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return E(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let ee=function(e,t){return void 0===t&&(t={}),new Z(e,"number"==typeof t?{status:t}:t)},et=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,v({},r,{headers:n}))},er=(e,t)=>{let r=et(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},en=(e,t)=>{let r=et(e,t);return r.headers.set("X-Remix-Replace","true"),r};class ea{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function eo(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let ei=["post","put","patch","delete"],el=new Set(ei),es=new Set(["get",...ei]),eu=new Set([301,302,303,307,308]),ec=new Set([307,308]),ed={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eh={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ef={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ep=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,em=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ev="remix-router-transitions";function ey(e){let t,r,n,a,o,i,l=e.window?e.window:"u">typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(E(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=em;let h={},f=k(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eD,y=e.patchRoutesOnNavigation,g=v({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,R=null,C=null,P=null,D=null!=e.hydrationData,L=_(f,e.history.location,p),T=!1,j=null;if(null==L&&!y){let t=eI(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eB(f);L=r,j={[n.id]:t}}if(L&&!e.hydrationData&&to(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!eS(e.route,t,r))}else n=L.every(e=>!eS(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(T=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:ed,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||j,fetchers:new Map,blockers:new Map},O=c.Pop,F=!1,B=!1,I=new Map,z=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function er(e,t){void 0===t&&(t={}),M=v({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...b].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>eQ(e))):n.forEach(e=>Z.delete(e))}function en(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eY(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?eO(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ef));let m=!0===F||null!=M.navigation.formMethod&&eY(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(B){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}er(v({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:ed,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,B=!1,H=!1,W=!1,$=[]}async function ea(t,r){if("number"==typeof t)return void e.history.go(t);let n=eg(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=ew(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=x(M.location,a,r&&r.state);s=v({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eY(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e6(m,{state:"blocked",location:s,proceed(){e6(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),ea(t,r)},reset(){let e=new Map(M.blockers);e.set(m,ef),er({blockers:e})}}):await ei(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ei(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,R&&P&&(R[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,y=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!T?M.matches:_(h,n,p),g=!0===(a&&a.flushSync);if(y&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eY(a.submission.formMethod)))return void en(n,{matches:y},{flushSync:g});let w=to(y,h,n.pathname);if(w.active&&w.matches&&(y=w.matches),!y){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);en(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let b=eU(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eN(y).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eY(a.submission.formMethod)){let t=await el(b,n,a.submission,y,w.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(e$(r)&&eo(r.error)&&404===r.error.status){o=null,en(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}y=t.matches||y,c=t.pendingActionResult,m=e1(n,a.submission),g=!1,w.active=!1,b=eU(e.history,b.url,b.signal)}let{shortCircuited:E,matches:S,loaderData:x,errors:C}=await es(b,n,y,w.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);E||(o=null,en(n,v({matches:S||y},eF(c),{loaderData:x,errors:C})))}async function el(t,r,n,a,o,i){var l;let s;if(void 0===i&&(i={}),eT(),er({navigation:{state:"submitting",location:r,formMethod:(l=n).formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}},{flushSync:!0===i.flushSync}),o){let e=await ti(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eN(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:d.error,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:t}]}}}let u=eZ(a,r);if(u.route.action||u.route.lazy){if(s=(await eP("action",M,t,[u],a,null))[u.route.id],t.signal.aborted)return{shortCircuited:!0}}else s={type:d.error,error:eI(405,{method:t.method,pathname:r.pathname,routeId:u.route.id})};if(eV(s)){let r;return r=i&&null!=i.replace?i.replace:eA(s.response.headers.get("Location"),new URL(t.url),p,e.history)===M.location.pathname+M.location.search,await ex(t,s,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(eW(s))throw eI(400,{type:"defer-action"});if(e$(s)){let e=eN(a,u.route.id);return!0!==(i&&i.replace)&&(O=c.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[u.route.id,s]}}async function es(t,n,a,i,l,s,u,c,d,h,m){let y=l||e1(n,s),w=s||u||e0(y),b=!H&&(!g.v7_partialHydration||!d);if(i){if(b){let e=ey(m);er(v({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eN(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=eE(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e5();return en(n,v({matches:a,loaderData:{},errors:m&&e$(m[1])?{[m[0]]:m[1].error}:null},eF(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=y;let t=ey(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=e7(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),er(e,{flushSync:h})}R.forEach(e=>{e2(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await ek(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let D=ez(C);if(D)return await ex(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=ez(P))return X.add(D.key),await ex(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eM(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=v({},M.errors,k));let _=e5(),A=e9(Y),U=_||A||R.length>0;return v({matches:a,loaderData:L,errors:k},U?{fetchers:new Map(M.fetchers)}:{})}function ey(e){if(e&&!e$(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eb(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eI(405,{method:d.formMethod,pathname:a,routeId:n});return eH(t,n,e,{flushSync:u}),!0}return!1}if(eT(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);ej(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=eU(e.history,a,w.signal,d);if(s){let e=await ti(l,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eH(t,n,e.error,{flushSync:u});if(!e.matches)return void eH(t,n,eI(404,{pathname:a}),{flushSync:u});if(v(i=eZ(l=e.matches,a)))return}J.set(t,w);let S=K,R=(await eP("action",M,b,[i],l,t))[i.route.id];if(b.signal.aborted){J.get(t)===w&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(eV(R)||e$(R))return void ej(t,e4(void 0))}else{if(eV(R))return(J.delete(t),Y>S)?void ej(t,e4(void 0)):(X.add(t),ej(t,e7(d)),ex(b,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(e$(R))return void eH(t,n,R.error)}if(eW(R))throw eI(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=eU(e.history,x,w.signal),P=r||f,D="idle"!==M.navigation.state?_(P,M.navigation.location,p):M.matches;E(D,"Didn't find any matches after fetcher action");let L=++K;q.set(t,L);let k=e7(d,R.data);M.fetchers.set(t,k);let[A,U]=eE(e.history,M,D,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);U.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=e7(void 0,r?r.data:void 0);M.fetchers.set(t,n),e2(t),e.controller&&J.set(t,e.controller)}),er({fetchers:new Map(M.fetchers)});let T=()=>U.forEach(e=>e2(e.key));w.signal.addEventListener("abort",T);let{loaderResults:j,fetcherResults:F}=await ek(M,D,A,U,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",T),q.delete(t),J.delete(t),U.forEach(e=>J.delete(e.key));let N=ez(j);if(N)return ex(C,N.result,!1,{preventScrollReset:c});if(N=ez(F))return X.add(N.key),ex(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eM(M,D,j,void 0,U,F,ee);if(M.fetchers.has(t)){let e=e4(R.data);M.fetchers.set(t,e)}e9(L),"loading"===M.navigation.state&&L>Y?(E(O,"Expected pending action"),o&&o.abort(),en(M.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(er({errors:I,loaderData:eO(M.loaderData,B,D,I),fetchers:new Map(M.fetchers)}),W=!1)}async function eR(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);ej(t,e7(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=eU(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eH(t,r,e.error,{flushSync:l});if(!e.matches)return void eH(t,r,eI(404,{pathname:n}),{flushSync:l});a=eZ(o=e.matches,n)}J.set(t,d);let f=K,p=(await eP("loader",M,h,[a],o,t))[a.route.id];if(eW(p)&&(p=await eG(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void ej(t,e4(void 0));if(eV(p))if(Y>f)return void ej(t,e4(void 0));else{X.add(t),await ex(h,p,!1,{preventScrollReset:s});return}if(e$(p))return void eH(t,r,p.error);E(!eW(p),"Unhandled fetcher deferred data"),ej(t,e4(p.data))}}async function ex(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");E(f,"Expected a Location header on the redirect Response"),f=eA(f,new URL(t.url),p,e.history);let m=x(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(ep.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==N(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let y=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:w,formEncType:b}=M.navigation;!i&&!u&&g&&w&&b&&(i=e0(M.navigation));let S=i||u;if(ec.has(r.response.status)&&S&&eY(S.formMethod))await ei(y,m,{submission:v({},S,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?B:void 0});else{let e=e1(m,i);await ei(y,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?B:void 0})}}async function eP(e,r,n,a,o,i){let l,s={};try{l=await eL(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(eK((u=t).result)&&eu.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(E(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ep.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=eg(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await e_(t)}return s}async function ek(t,r,n,a,o){let i=t.matches,l=eP("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eI(404,{pathname:r.path})}});{let n=(await eP("loader",t,eU(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eq(r,u,o.signal,i,t.loaderData),eX(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eT(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e2(t)})}function ej(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),er({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eH(e,t,r,n){void 0===n&&(n={});let a=eN(M.matches,t);eQ(e),er({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eJ(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||eh}function eQ(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e2(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e2(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e3(e){for(let t of e){let e=e4(eJ(t).data);M.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);E(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e3(e),t}function e9(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);E(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),q.delete(r),t.push(r))}return e3(t),t.length>0}function e8(e){M.blockers.delete(e),et.delete(e)}function e6(e,t){let r=M.blockers.get(e)||ef;E("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),er({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&S(!1,"A router only supports one blocker at a time");let a=Array.from(et.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eI(404,{pathname:e}),{matches:n,route:a}=eB(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return C&&C(e,t.map(e=>U(e,M.loaderData)))||e.key}function ta(e,t){if(R){let r=R[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(y){if(!e)return{active:!0,matches:A(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:A(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!y)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await y({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eC(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=_(l,n,p);if(u)return{type:"success",matches:u};let c=A(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}S(0===et.size||null!=a,"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=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e6(o,{state:"blocked",location:n,proceed(){e6(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,ef),er({blockers:e})}});return}return ei(r,n)}),s){var t=l,r=I;try{let e=t.sessionStorage.getItem(ev);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ev,JSON.stringify(r))}catch(e){S(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,I);l.addEventListener("pagehide",e),z=()=>l.removeEventListener("pagehide",e)}return M.initialized||ei(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,P=t,C=r||null,!D&&M.navigation===ed){D=!0;let e=ta(M.location,M.matches);null!=e&&er({restoreScrollPosition:e})}return()=>{R=null,P=null,C=null}},navigate:ea,fetch:function(e,t,n,a){if(u)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e2(e);let o=!0===(a&&a.flushSync),i=r||f,l=eg(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=_(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void eH(e,t,eI(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=ew(g.v7_normalizeFormMethod,!0,l,a);if(m)return void eH(e,t,m,{flushSync:o});let v=eZ(s,d),y=!0===(a&&a.preventScrollReset);h&&eY(h.formMethod)?eb(e,t,d,v,s,c.active,o,y,h):(G.set(e,{routeId:t,path:d}),eR(e,t,d,v,s,c.active,o,y,h))},revalidate:function(){if(eT(),er({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ei(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ei(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eJ,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||eQ(e)):Q.set(e,t),er({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),z&&z(),b.clear(),o&&o.abort(),M.fetchers.forEach((e,t)=>eQ(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||ef;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;eC(e,n,r||f,h,t),a&&(f=[...f],er({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=k(e,t,void 0,h={})}}}function eg(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=V(a||".",$(s,o),N(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eQ(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.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 r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:K([r,c.pathname])),C(c)}function ew(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!es.has(a.toLowerCase())))return{path:r,error:eI(405,{method:n.formMethod})};let l=()=>({path:r,error:eI(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eH(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eY(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eY(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(E("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eT(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eT(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ej(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ej(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eY(d.formMethod))return{path:r,submission:d};let h=P(r);return t&&h.search&&eQ(h.search)&&o.append("index",""),h.search="?"+o,{path:C(h),submission:d}}function eb(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eE(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let y=m?e$(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=eb(r,Object.keys(t.errors)[0],!0):m&&e$(m[1])&&(b=eb(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return eS(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return ex(e,v({currentUrl:g,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||eR(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=_(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eZ(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:ex(d,v({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function eS(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eR(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ex(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eC(e,t,r,n,a){var o;let i;if(e){let t=n[e];E(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=k(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function eP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];E(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;S(!t,'Route "'+a.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||L.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,v({},t(a),{lazy:void 0}))}async function eD(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eL(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?eP(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?ek(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return v({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function ek(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eI(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eI(404,{pathname:r})}E(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function e_(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(eK(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new ea(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eJ(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new ea((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:eo(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:eo(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eJ(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function eA(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ep.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=N(n.pathname,r);if(n.origin===t.origin&&o)return J(n.pathname)+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function eU(e,t,r,n){let a=e.createURL(eH(t)).toString(),o={signal:r};if(n&&eY(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eT(n.formData):o.body=n.formData}return new Request(a,o)}function eT(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ej(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eM(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&e$(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(E(!eV(a),"Cannot handle redirect results in processLoaderData"),e$(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eN(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=eo(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eW(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(E(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(e$(i)){let t=eN(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=v({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eV(i))E(!1,"Unhandled fetcher revalidation redirect");else if(eW(i))E(!1,"Unhandled fetcher deferred data");else{let t=e4(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eO(e,t,r,n){let a=v({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eF(e){return e?e$(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eN(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 eB(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 eI(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new ea(e||500,l,Error(s),!0)}function ez(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eV(n))return{key:r,result:n}}}function eH(e){let t="string"==typeof e?P(e):e;return C(v({},t,{hash:""}))}function eW(e){return e.type===d.deferred}function e$(e){return e.type===d.error}function eV(e){return(e&&e.type)===d.redirect}function eJ(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eK(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eY(e){return el.has(e.toLowerCase())}async function eq(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!eR(c,u)&&(a&&a[u.route.id])!==void 0;eW(s)&&d&&await eG(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eX(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eW(l)&&(E(i,"Expected an AbortController for revalidating fetcher deferred result"),await eG(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eG(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eQ(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eZ(e,t){let r="string"==typeof t?P(t).search:t.search;if(e[e.length-1].route.index&&eQ(r||""))return e[e.length-1];let n=W(e);return n[n.length-1]}function e0(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function e1(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function e7(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e4(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e2(){return(e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}Symbol("deferred");let e3=p.createContext(null),e5=p.createContext(null),e9=p.createContext(null),e8=p.createContext(null),e6=p.createContext(null),te=p.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=p.createContext(null);function tr(e,t){let{relative:r}=void 0===t?{}:t;tn()||E(!1);let{basename:n,navigator:a}=p.useContext(e8),{hash:o,pathname:i,search:l}=tf(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:K([n,i])),a.createHref({pathname:s,search:l,hash:o})}function tn(){return null!=p.useContext(e6)}function ta(){return tn()||E(!1),p.useContext(e6).location}function to(){return p.useContext(e6).navigationType}function ti(e){tn()||E(!1);let{pathname:t}=ta();return p.useMemo(()=>O(e,F(t)),[t,e])}function tl(e){p.useContext(e8).static||p.useLayoutEffect(e)}function ts(){let{isDataRoute:e}=p.useContext(te);return e?function(){let{router:e}=tS(tb.UseNavigateStable),t=tx(tE.UseNavigateStable),r=p.useRef(!1);return tl(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e2({fromRouteId:t},a)))},[e,t])}():function(){tn()||E(!1);let e=p.useContext(e3),{basename:t,future:r,navigator:n}=p.useContext(e8),{matches:a}=p.useContext(te),{pathname:o}=ta(),i=JSON.stringify($(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return tl(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:K([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let tu=p.createContext(null);function tc(){return p.useContext(tu)}function td(e){let t=p.useContext(te).outlet;return t?p.createElement(tu.Provider,{value:e},t):t}function th(){let{matches:e}=p.useContext(te),t=e[e.length-1];return t?t.params:{}}function tf(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e8),{matches:a}=p.useContext(te),{pathname:o}=ta(),i=JSON.stringify($(a,n.v7_relativeSplatPath));return p.useMemo(()=>V(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function tp(e,t){return tm(e,t)}function tm(e,t,r,n){let a;tn()||E(!1);let{navigator:o}=p.useContext(e8),{matches:i}=p.useContext(te),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=ta();if(t){var h;let e="string"==typeof t?P(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||E(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=_(e,{pathname:m}),y=tw(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:K([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:K([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e6.Provider,{value:{location:e2({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let tv=p.createElement(function(){let e=tU(),t=eo(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class ty extends p.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?p.createElement(te.Provider,{value:this.props.routeContext},p.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tg(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e3);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(te.Provider,{value:t},n)}function tw(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||E(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tv,s&&(u<0&&0===a?(o="route-fallback",tF[o]||(tF[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tg,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(ty,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tb=((o=tb||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tE=((i=tE||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tS(e){let t=p.useContext(e3);return t||E(!1),t}function tR(e){let t=p.useContext(e5);return t||E(!1),t}function tx(e){let t,r=((t=p.useContext(te))||E(!1),t),n=r.matches[r.matches.length-1];return n.route.id||E(!1),n.route.id}function tC(){return tx(tE.UseRouteId)}function tP(){return tR(tE.UseNavigation).navigation}function tD(){let e=tS(tb.UseRevalidator),t=tR(tE.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tL(){let{matches:e,loaderData:t}=tR(tE.UseMatches);return p.useMemo(()=>e.map(e=>U(e,t)),[e,t])}function tk(){let e=tR(tE.UseLoaderData),t=tx(tE.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function t_(e){return tR(tE.UseRouteLoaderData).loaderData[e]}function tA(){let e=tR(tE.UseActionData),t=tx(tE.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tU(){var e;let t=p.useContext(tt),r=tR(tE.UseRouteError),n=tx(tE.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tT(){let e=p.useContext(e9);return null==e?void 0:e._data}function tj(){let e=p.useContext(e9);return null==e?void 0:e._error}let tM=0;function tO(e){let{router:t,basename:r}=tS(tb.UseBlocker),n=tR(tE.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e2({},n,{pathname:N(n.pathname,r)||n.pathname}),nextLocation:e2({},a,{pathname:N(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tM);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ef}let tF={};function tN(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let tB=p.startTransition;function tI(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=g({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tB?tB(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tN(o),[o]),p.createElement(t$,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;tn()||E(!1);let{future:o,static:i}=p.useContext(e8),{matches:l}=p.useContext(te),{pathname:s}=ta(),u=ts(),c=JSON.stringify(V(t,$(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tH(e){return td(e.context)}function tW(e){E(!1)}function t$(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;tn()&&E(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e2({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=P(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=N(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e8.Provider,{value:u},p.createElement(e6.Provider,{children:r,value:y}))}function tV(e){let{children:t,location:r}=e;return tm(tG(t),r)}function tJ(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tq,{resolve:n,errorElement:r},p.createElement(tX,null,t))}var tK=((l=tK||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tY=new Promise(()=>{});class tq extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tK.pending;if(r instanceof Promise)if(this.state.error){a=tK.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tK.error:"_data"in n?tK.success:tK.pending:(a=tK.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tK.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tK.error&&n._error instanceof Q)throw tY;if(a===tK.error&&!t)throw n._error;if(a===tK.error)return p.createElement(e9.Provider,{value:n,children:t});if(a===tK.success)return p.createElement(e9.Provider,{value:n,children:e});throw n}}function tX(e){let{children:t}=e,r=tT(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tG(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tG(e.props.children,a));e.type!==tW&&E(!1),e.props.index&&e.props.children&&E(!1);let o={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,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tG(e.props.children,a)),r.push(o)}),r}function tQ(e){return tw(e)}function tZ(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t0(e,t){return ey({basename:null==t?void 0:t.basename,future:e2({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:g({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function t1(){return(t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function t7(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}let t4="application/x-www-form-urlencoded";function t2(e){return null!=e&&"string"==typeof e.tagName}function t3(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t5=null,t9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t8(e){return null==e||t9.has(e)?e:null}let t6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],re=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],rt=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function rr(e,t){return ey({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rn(e,t){return ey({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function ra(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=t1({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new ea(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let ro=p.createContext({isTransitioning:!1}),ri=p.createContext(new Map),rl=p.startTransition,rs=m.flushSync,ru=p.useId;function rc(e){rs?rs(e):e()}class rd{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 rh(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)rl?rl(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?rc(()=>o(e)):w(()=>o(e)));if(a){rc(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{rc(()=>o(e))});t.finished.finally(()=>{rc(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),rc(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new rd)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tN(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e3.Provider,{value:R},p.createElement(e5.Provider,{value:a},p.createElement(ri.Provider,{value:y.current},p.createElement(ro.Provider,{value:s},p.createElement(t$,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rf,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rf=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tm(t,void 0,n,r)});function rp(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=w({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rm(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=b({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rv(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&rl?rl(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let ry="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rw=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t7(e,t6),{basename:f}=p.useContext(e8),m=!1;if("string"==typeof u&&rg.test(u)&&(r=u,ry))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=N(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=tr(u,{relative:a}),y=rC(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",t1({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rb=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t7(e,re),h=tf(s,{relative:d.relative}),f=ta(),m=p.useContext(e5),{navigator:v,basename:y}=p.useContext(e8),g=null!=m&&rN(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=N(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(rw,t1({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rE=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t7(e,rt),m=rk(),v=r_(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",t1({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rS(e){let{getKey:t,storageKey:r}=e;return rM({getKey:t,storageKey:r}),null}function rR(e){let t=p.useContext(e3);return t||E(!1),t}function rx(e){let t=p.useContext(e5);return t||E(!1),t}function rC(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=ts(),u=ta(),c=tf(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:C(u)===C(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rP(e){let t=p.useRef(t3(e)),r=p.useRef(!1),n=ta(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t3(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=ts(),i=p.useCallback((e,t)=>{let n=t3("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rD=0,rL=()=>"__"+String(++rD)+"__";function rk(){let{router:e}=rR(h.UseSubmit),{basename:t}=p.useContext(e8),r=tC();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(t2(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?N(i,t):null,r=e.getAttribute("method")||"get",a=t8(e.getAttribute("enctype"))||t4,o=new FormData(e)}else if(t2(e)&&"button"===e.tagName.toLowerCase()||t2(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?N(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t8(e.getAttribute("formenctype"))||t8(i.getAttribute("enctype"))||t4,o=new FormData(i,e),!function(){if(null===t5)try{new FormData(document.createElement("form"),0),t5=!1}catch(e){t5=!0}return t5}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(t2(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t4,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rL();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function r_(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e8),a=p.useContext(te);a||E(!1);let[o]=a.matches.slice(-1),i=t1({},tf(e||".",{relative:r})),l=ta();if(null==e){i.search=l.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 r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:K([n,i.pathname])),C(i)}function rA(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rR(h.UseFetcher),a=rx(f.UseFetcher),o=p.useContext(ri),i=p.useContext(te),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||E(!1),i||E(!1),null==l&&E(!1);let s=ru?ru():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rL()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||E(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rk(),v=p.useCallback((e,t)=>{m(e,t1({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rE,t1({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||eh,w=o.get(u);return p.useMemo(()=>t1({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function rU(){return Array.from(rx(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return t1({},r,{key:t})})}let rT="react-router-scroll-positions",rj={};function rM(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rR(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rx(f.UseScrollRestoration),{basename:i}=p.useContext(e8),l=ta(),s=tL(),u=tP();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};p.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(p.useCallback(()=>{"idle"===u.state&&(rj[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rT,JSON.stringify(rj))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"u">typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rT);e&&(rj=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(t1({},e,{pathname:N(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rj,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rO(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rF(e){let{when:t,message:r}=e,n=tO(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rN(e,t){void 0===t&&(t={});let r=p.useContext(ro);null==r&&E(!1);let{basename:n}=rR(h.useViewTransitionState),a=tf(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=O(a.pathname,i)||null!=O(a.pathname,o)}}}]);