forge-openclaw-plugin 0.2.24 → 0.2.25

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 (82) hide show
  1. package/README.md +13 -0
  2. package/dist/assets/{board-_C6oMy5w.js → board-VmF4FAfr.js} +3 -3
  3. package/dist/assets/{board-_C6oMy5w.js.map → board-VmF4FAfr.js.map} +1 -1
  4. package/dist/assets/index-CFCKDIMH.js +67 -0
  5. package/dist/assets/index-CFCKDIMH.js.map +1 -0
  6. package/dist/assets/index-ZPY6U1TU.css +1 -0
  7. package/dist/assets/{motion-D4sZgCHd.js → motion-DvkU14p-.js} +3 -3
  8. package/dist/assets/motion-DvkU14p-.js.map +1 -0
  9. package/dist/assets/{table-BWzTaky1.js → table-DgiPof9E.js} +2 -2
  10. package/dist/assets/{table-BWzTaky1.js.map → table-DgiPof9E.js.map} +1 -1
  11. package/dist/assets/{ui-BzK4azQb.js → ui-nYfoC0Gq.js} +2 -2
  12. package/dist/assets/{ui-BzK4azQb.js.map → ui-nYfoC0Gq.js.map} +1 -1
  13. package/dist/assets/vendor-D9PTEPSB.js +824 -0
  14. package/dist/assets/vendor-D9PTEPSB.js.map +1 -0
  15. package/dist/assets/viz-Cqb6s--o.js +34 -0
  16. package/dist/assets/viz-Cqb6s--o.js.map +1 -0
  17. package/dist/index.html +8 -8
  18. package/dist/openclaw/parity.d.ts +1 -1
  19. package/dist/openclaw/parity.js +29 -0
  20. package/dist/openclaw/plugin-entry-shared.d.ts +1 -0
  21. package/dist/openclaw/plugin-entry-shared.js +7 -4
  22. package/dist/openclaw/plugin-sdk-types.d.ts +12 -0
  23. package/dist/openclaw/routes.js +236 -0
  24. package/dist/openclaw/session-bootstrap.d.ts +78 -0
  25. package/dist/openclaw/session-bootstrap.js +240 -0
  26. package/dist/openclaw/tools.js +279 -3
  27. package/dist/server/app.js +855 -19
  28. package/dist/server/connectors/box-registry.js +257 -0
  29. package/dist/server/db.js +2 -0
  30. package/dist/server/discovery-advertiser.js +114 -0
  31. package/dist/server/health.js +39 -11
  32. package/dist/server/index.js +4 -0
  33. package/dist/server/managers/platform/llm-manager.js +40 -4
  34. package/dist/server/managers/platform/openai-responses-provider.js +129 -19
  35. package/dist/server/movement.js +2935 -0
  36. package/dist/server/openapi.js +628 -5
  37. package/dist/server/psyche-types.js +15 -1
  38. package/dist/server/questionnaire-flow.js +552 -0
  39. package/dist/server/questionnaire-seeds.js +853 -0
  40. package/dist/server/questionnaire-types.js +340 -0
  41. package/dist/server/repositories/ai-connectors.js +944 -0
  42. package/dist/server/repositories/ai-processors.js +547 -0
  43. package/dist/server/repositories/entity-ownership.js +9 -1
  44. package/dist/server/repositories/habits.js +69 -5
  45. package/dist/server/repositories/model-settings.js +216 -0
  46. package/dist/server/repositories/notes.js +57 -15
  47. package/dist/server/repositories/preferences.js +124 -0
  48. package/dist/server/repositories/questionnaires.js +1338 -0
  49. package/dist/server/repositories/settings.js +108 -12
  50. package/dist/server/repositories/surface-layouts.js +76 -0
  51. package/dist/server/repositories/wiki-memory.js +5 -1
  52. package/dist/server/services/entity-crud.js +81 -2
  53. package/dist/server/services/openai-codex-oauth.js +153 -0
  54. package/dist/server/services/psyche-observation-calendar.js +46 -0
  55. package/dist/server/types.js +492 -3
  56. package/dist/server/watch-mobile.js +562 -0
  57. package/dist/server/web.js +9 -2
  58. package/openclaw.plugin.json +1 -1
  59. package/package.json +6 -1
  60. package/server/migrations/024_questionnaires.sql +96 -0
  61. package/server/migrations/025_ai_model_connections.sql +26 -0
  62. package/server/migrations/026_custom_theme_settings.sql +2 -0
  63. package/server/migrations/027_ai_processors.sql +31 -0
  64. package/server/migrations/028_movement_domain.sql +136 -0
  65. package/server/migrations/029_watch_micro_capture.sql +23 -0
  66. package/server/migrations/030_surface_layouts.sql +5 -0
  67. package/server/migrations/031_ai_processor_runtime_upgrades.sql +10 -0
  68. package/server/migrations/032_ai_connectors.sql +44 -0
  69. package/server/migrations/033_movement_trip_point_sync.sql +36 -0
  70. package/server/migrations/034_movement_segment_sync.sql +49 -0
  71. package/skills/forge-openclaw/SKILL.md +12 -1
  72. package/skills/forge-openclaw/entity_conversation_playbooks.md +331 -84
  73. package/skills/forge-openclaw/psyche_entity_playbooks.md +252 -221
  74. package/dist/assets/index-DTCwBWAs.js +0 -65
  75. package/dist/assets/index-DTCwBWAs.js.map +0 -1
  76. package/dist/assets/index-DttXlAgi.css +0 -1
  77. package/dist/assets/motion-D4sZgCHd.js.map +0 -1
  78. package/dist/assets/vendor-De38P6YR.js +0 -729
  79. package/dist/assets/vendor-De38P6YR.js.map +0 -1
  80. package/dist/assets/viz-C6hfyqzu.js +0 -34
  81. package/dist/assets/viz-C6hfyqzu.js.map +0 -1
  82. package/skills/forge-openclaw/cron_jobs.md +0 -395
@@ -0,0 +1,824 @@
1
+ var vA=Object.defineProperty;var S2=e=>{throw TypeError(e)};var bA=(e,t,r)=>t in e?vA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hy=(e,t,r)=>bA(e,typeof t!="symbol"?t+"":t,r),Vy=(e,t,r)=>t.has(e)||S2("Cannot "+r);var V=(e,t,r)=>(Vy(e,t,"read from private field"),r?r.call(e):t.get(e)),Le=(e,t,r)=>t.has(e)?S2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_e=(e,t,r,a)=>(Vy(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r),Ze=(e,t,r)=>(Vy(e,t,"access private method"),r);var af=(e,t,r,a)=>({set _(s){_e(e,t,s,r)},get _(){return V(e,t,a)}});import{s as ad,p as Fw,z as $w,d as Yw,i as SA,a as Py,b as Iy,t as _A}from"./viz-Cqb6s--o.js";function xA(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(a,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fy={exports:{}},Yo={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var _2;function wA(){if(_2)return Yo;_2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return Yo.Fragment=t,Yo.jsx=r,Yo.jsxs=r,Yo}var x2;function EA(){return x2||(x2=1,Fy.exports=wA()),Fy.exports}var le=EA(),$y={exports:{}},Pe={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var w2;function MA(){if(w2)return Pe;w2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,x={};function E(O,P,se){this.props=O,this.context=P,this.refs=x,this.updater=se||S}E.prototype.isReactComponent={},E.prototype.setState=function(O,P){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,P,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function k(){}k.prototype=E.prototype;function M(O,P,se){this.props=O,this.context=P,this.refs=x,this.updater=se||S}var A=M.prototype=new k;A.constructor=M,_(A,E.prototype),A.isPureReactComponent=!0;var z=Array.isArray;function N(){}var D={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function L(O,P,se){var ce=se.ref;return{$$typeof:e,type:O,key:P,ref:ce!==void 0?ce:null,props:se}}function G(O,P){return L(O.type,P,O.props)}function B(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function j(O){var P={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(se){return P[se]})}var F=/\/+/g;function Q(O,P){return typeof O=="object"&&O!==null&&O.key!=null?j(""+O.key):P.toString(36)}function re(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(N,N):(O.status="pending",O.then(function(P){O.status==="pending"&&(O.status="fulfilled",O.value=P)},function(P){O.status==="pending"&&(O.status="rejected",O.reason=P)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function q(O,P,se,ce,de){var me=typeof O;(me==="undefined"||me==="boolean")&&(O=null);var be=!1;if(O===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(O.$$typeof){case e:case t:be=!0;break;case m:return be=O._init,q(be(O._payload),P,se,ce,de)}}if(be)return de=de(O),be=ce===""?"."+Q(O,0):ce,z(de)?(se="",be!=null&&(se=be.replace(F,"$&/")+"/"),q(de,P,se,"",function(qe){return qe})):de!=null&&(B(de)&&(de=G(de,se+(de.key==null||O&&O.key===de.key?"":(""+de.key).replace(F,"$&/")+"/")+be)),P.push(de)),1;be=0;var ye=ce===""?".":ce+":";if(z(O))for(var he=0;he<O.length;he++)ce=O[he],me=ye+Q(ce,he),be+=q(ce,P,se,me,de);else if(he=b(O),typeof he=="function")for(O=he.call(O),he=0;!(ce=O.next()).done;)ce=ce.value,me=ye+Q(ce,he++),be+=q(ce,P,se,me,de);else if(me==="object"){if(typeof O.then=="function")return q(re(O),P,se,ce,de);throw P=String(O),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return be}function $(O,P,se){if(O==null)return O;var ce=[],de=0;return q(O,ce,"","",function(me){return P.call(se,me,de++)}),ce}function Z(O){if(O._status===-1){var P=O._result;P=P(),P.then(function(se){(O._status===0||O._status===-1)&&(O._status=1,O._result=se)},function(se){(O._status===0||O._status===-1)&&(O._status=2,O._result=se)}),O._status===-1&&(O._status=0,O._result=P)}if(O._status===1)return O._result.default;throw O._result}var K=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},W={map:$,forEach:function(O,P,se){$(O,function(){P.apply(this,arguments)},se)},count:function(O){var P=0;return $(O,function(){P++}),P},toArray:function(O){return $(O,function(P){return P})||[]},only:function(O){if(!B(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Pe.Activity=g,Pe.Children=W,Pe.Component=E,Pe.Fragment=r,Pe.Profiler=s,Pe.PureComponent=M,Pe.StrictMode=a,Pe.Suspense=d,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(O){return D.H.useMemoCache(O)}},Pe.cache=function(O){return function(){return O.apply(null,arguments)}},Pe.cacheSignal=function(){return null},Pe.cloneElement=function(O,P,se){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ce=_({},O.props),de=O.key;if(P!=null)for(me in P.key!==void 0&&(de=""+P.key),P)!T.call(P,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&P.ref===void 0||(ce[me]=P[me]);var me=arguments.length-2;if(me===1)ce.children=se;else if(1<me){for(var be=Array(me),ye=0;ye<me;ye++)be[ye]=arguments[ye+2];ce.children=be}return L(O.type,de,ce)},Pe.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:o,_context:O},O},Pe.createElement=function(O,P,se){var ce,de={},me=null;if(P!=null)for(ce in P.key!==void 0&&(me=""+P.key),P)T.call(P,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(de[ce]=P[ce]);var be=arguments.length-2;if(be===1)de.children=se;else if(1<be){for(var ye=Array(be),he=0;he<be;he++)ye[he]=arguments[he+2];de.children=ye}if(O&&O.defaultProps)for(ce in be=O.defaultProps,be)de[ce]===void 0&&(de[ce]=be[ce]);return L(O,me,de)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(O){return{$$typeof:f,render:O}},Pe.isValidElement=B,Pe.lazy=function(O){return{$$typeof:m,_payload:{_status:-1,_result:O},_init:Z}},Pe.memo=function(O,P){return{$$typeof:y,type:O,compare:P===void 0?null:P}},Pe.startTransition=function(O){var P=D.T,se={};D.T=se;try{var ce=O(),de=D.S;de!==null&&de(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(N,K)}catch(me){K(me)}finally{P!==null&&se.types!==null&&(P.types=se.types),D.T=P}},Pe.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Pe.use=function(O){return D.H.use(O)},Pe.useActionState=function(O,P,se){return D.H.useActionState(O,P,se)},Pe.useCallback=function(O,P){return D.H.useCallback(O,P)},Pe.useContext=function(O){return D.H.useContext(O)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(O,P){return D.H.useDeferredValue(O,P)},Pe.useEffect=function(O,P){return D.H.useEffect(O,P)},Pe.useEffectEvent=function(O){return D.H.useEffectEvent(O)},Pe.useId=function(){return D.H.useId()},Pe.useImperativeHandle=function(O,P,se){return D.H.useImperativeHandle(O,P,se)},Pe.useInsertionEffect=function(O,P){return D.H.useInsertionEffect(O,P)},Pe.useLayoutEffect=function(O,P){return D.H.useLayoutEffect(O,P)},Pe.useMemo=function(O,P){return D.H.useMemo(O,P)},Pe.useOptimistic=function(O,P){return D.H.useOptimistic(O,P)},Pe.useReducer=function(O,P,se){return D.H.useReducer(O,P,se)},Pe.useRef=function(O){return D.H.useRef(O)},Pe.useState=function(O){return D.H.useState(O)},Pe.useSyncExternalStore=function(O,P,se){return D.H.useSyncExternalStore(O,P,se)},Pe.useTransition=function(){return D.H.useTransition()},Pe.version="19.2.4",Pe}var E2;function Il(){return E2||(E2=1,$y.exports=MA()),$y.exports}var R=Il();const Bt=ur(R),cj=xA({__proto__:null,default:Bt},[R]);var Yy={exports:{}},Zo={},Zy={exports:{}},Gy={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var M2;function kA(){return M2||(M2=1,(function(e){function t(q,$){var Z=q.length;q.push($);e:for(;0<Z;){var K=Z-1>>>1,W=q[K];if(0<s(W,$))q[K]=$,q[Z]=W,Z=K;else break e}}function r(q){return q.length===0?null:q[0]}function a(q){if(q.length===0)return null;var $=q[0],Z=q.pop();if(Z!==$){q[0]=Z;e:for(var K=0,W=q.length,O=W>>>1;K<O;){var P=2*(K+1)-1,se=q[P],ce=P+1,de=q[ce];if(0>s(se,Z))ce<W&&0>s(de,se)?(q[K]=de,q[ce]=Z,K=ce):(q[K]=se,q[P]=Z,K=P);else if(ce<W&&0>s(de,Z))q[K]=de,q[ce]=Z,K=ce;else break e}}return $}function s(q,$){var Z=q.sortIndex-$.sortIndex;return Z!==0?Z:q.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],y=[],m=1,g=null,v=3,b=!1,S=!1,_=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function A(q){for(var $=r(y);$!==null;){if($.callback===null)a(y);else if($.startTime<=q)a(y),$.sortIndex=$.expirationTime,t(d,$);else break;$=r(y)}}function z(q){if(_=!1,A(q),!S)if(r(d)!==null)S=!0,N||(N=!0,j());else{var $=r(y);$!==null&&re(z,$.startTime-q)}}var N=!1,D=-1,T=5,L=-1;function G(){return x?!0:!(e.unstable_now()-L<T)}function B(){if(x=!1,N){var q=e.unstable_now();L=q;var $=!0;try{e:{S=!1,_&&(_=!1,k(D),D=-1),b=!0;var Z=v;try{t:{for(A(q),g=r(d);g!==null&&!(g.expirationTime>q&&G());){var K=g.callback;if(typeof K=="function"){g.callback=null,v=g.priorityLevel;var W=K(g.expirationTime<=q);if(q=e.unstable_now(),typeof W=="function"){g.callback=W,A(q),$=!0;break t}g===r(d)&&a(d),A(q)}else a(d);g=r(d)}if(g!==null)$=!0;else{var O=r(y);O!==null&&re(z,O.startTime-q),$=!1}}break e}finally{g=null,v=Z,b=!1}$=void 0}}finally{$?j():N=!1}}}var j;if(typeof M=="function")j=function(){M(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Q=F.port2;F.port1.onmessage=B,j=function(){Q.postMessage(null)}}else j=function(){E(B,0)};function re(q,$){D=E(function(){q(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(q){switch(v){case 1:case 2:case 3:var $=3;break;default:$=v}var Z=v;v=$;try{return q()}finally{v=Z}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,$){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Z=v;v=q;try{return $()}finally{v=Z}},e.unstable_scheduleCallback=function(q,$,Z){var K=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?K+Z:K):Z=K,q){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Z+W,q={id:m++,callback:$,priorityLevel:q,startTime:Z,expirationTime:W,sortIndex:-1},Z>K?(q.sortIndex=Z,t(y,q),r(d)===null&&q===r(y)&&(_?(k(D),D=-1):_=!0,re(z,Z-K))):(q.sortIndex=W,t(d,q),S||b||(S=!0,N||(N=!0,j()))),q},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(q){var $=v;return function(){var Z=v;v=$;try{return q.apply(this,arguments)}finally{v=Z}}}})(Gy)),Gy}var k2;function AA(){return k2||(k2=1,Zy.exports=kA()),Zy.exports}var Qy={exports:{}},dn={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var A2;function CA(){if(A2)return dn;A2=1;var e=Il();function t(d){var y="https://react.dev/errors/"+d;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)y+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(d,y,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:d,containerInfo:y,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,y){if(d==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,dn.createPortal=function(d,y){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(t(299));return o(d,y,null,m)},dn.flushSync=function(d){var y=c.T,m=a.p;try{if(c.T=null,a.p=2,d)return d()}finally{c.T=y,a.p=m,a.d.f()}},dn.preconnect=function(d,y){typeof d=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,a.d.C(d,y))},dn.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},dn.preinit=function(d,y){if(typeof d=="string"&&y&&typeof y.as=="string"){var m=y.as,g=f(m,y.crossOrigin),v=typeof y.integrity=="string"?y.integrity:void 0,b=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;m==="style"?a.d.S(d,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):m==="script"&&a.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dn.preinitModule=function(d,y){if(typeof d=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var m=f(y.as,y.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&a.d.M(d)},dn.preload=function(d,y){if(typeof d=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var m=y.as,g=f(m,y.crossOrigin);a.d.L(d,m,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},dn.preloadModule=function(d,y){if(typeof d=="string")if(y){var m=f(y.as,y.crossOrigin);a.d.m(d,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:m,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else a.d.m(d)},dn.requestFormReset=function(d){a.d.r(d)},dn.unstable_batchedUpdates=function(d,y){return d(y)},dn.useFormState=function(d,y,m){return c.H.useFormState(d,y,m)},dn.useFormStatus=function(){return c.H.useHostTransitionStatus()},dn.version="19.2.4",dn}var C2;function Zw(){if(C2)return Qy.exports;C2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Qy.exports=CA(),Qy.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var T2;function TA(){if(T2)return Zo;T2=1;var e=AA(),t=Il(),r=Zw();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function d(n){if(o(n)!==n)throw Error(a(188))}function y(n){var i=n.alternate;if(!i){if(i=o(n),i===null)throw Error(a(188));return i!==n?null:n}for(var l=n,u=i;;){var h=l.return;if(h===null)break;var p=h.alternate;if(p===null){if(u=h.return,u!==null){l=u;continue}break}if(h.child===p.child){for(p=h.child;p;){if(p===l)return d(h),n;if(p===u)return d(h),i;p=p.sibling}throw Error(a(188))}if(l.return!==u.return)l=h,u=p;else{for(var w=!1,C=h.child;C;){if(C===l){w=!0,l=h,u=p;break}if(C===u){w=!0,u=h,l=p;break}C=C.sibling}if(!w){for(C=p.child;C;){if(C===l){w=!0,l=p,u=h;break}if(C===u){w=!0,u=p,l=h;break}C=C.sibling}if(!w)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?n:i}function m(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=m(n),i!==null)return i;n=n.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),M=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function j(n){return n===null||typeof n!="object"?null:(n=B&&n[B]||n["@@iterator"],typeof n=="function"?n:null)}var F=Symbol.for("react.client.reference");function Q(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===F?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _:return"Fragment";case E:return"Profiler";case x:return"StrictMode";case z:return"Suspense";case N:return"SuspenseList";case L:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case M:return n.displayName||"Context";case k:return(n._context.displayName||"Context")+".Consumer";case A:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case D:return i=n.displayName||null,i!==null?i:Q(n.type)||"Memo";case T:i=n._payload,n=n._init;try{return Q(n(i))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},K=[],W=-1;function O(n){return{current:n}}function P(n){0>W||(n.current=K[W],K[W]=null,W--)}function se(n,i){W++,K[W]=n.current,n.current=i}var ce=O(null),de=O(null),me=O(null),be=O(null);function ye(n,i){switch(se(me,i),se(de,n),se(ce,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Ib(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Ib(i),n=Fb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}P(ce),se(ce,n)}function he(){P(ce),P(de),P(me)}function qe(n){n.memoizedState!==null&&se(be,n);var i=ce.current,l=Fb(i,n.type);i!==l&&(se(de,n),se(ce,l))}function De(n){de.current===n&&(P(ce),P(de)),be.current===n&&(P(be),Po._currentValue=Z)}var Re,ze;function He(n){if(Re===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Re=i&&i[1]||"",ze=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Re+n+ze}var ut=!1;function Ge(n,i){if(!n||ut)return"";ut=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ie){var ne=ie}Reflect.construct(n,[],fe)}else{try{fe.call()}catch(ie){ne=ie}n.call(fe.prototype)}}else{try{throw Error()}catch(ie){ne=ie}(fe=n())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ie){if(ie&&ne&&typeof ie.stack=="string")return[ie.stack,ne.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),w=p[0],C=p[1];if(w&&C){var U=w.split(`
44
+ `),ee=C.split(`
45
+ `);for(h=u=0;u<U.length&&!U[u].includes("DetermineComponentFrameRoot");)u++;for(;h<ee.length&&!ee[h].includes("DetermineComponentFrameRoot");)h++;if(u===U.length||h===ee.length)for(u=U.length-1,h=ee.length-1;1<=u&&0<=h&&U[u]!==ee[h];)h--;for(;1<=u&&0<=h;u--,h--)if(U[u]!==ee[h]){if(u!==1||h!==1)do if(u--,h--,0>h||U[u]!==ee[h]){var oe=`
46
+ `+U[u].replace(" at new "," at ");return n.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",n.displayName)),oe}while(1<=u&&0<=h);break}}}finally{ut=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?He(l):""}function Dt(n,i){switch(n.tag){case 26:case 27:case 5:return He(n.type);case 16:return He("Lazy");case 13:return n.child!==i&&i!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return Ge(n.type,!1);case 11:return Ge(n.type.render,!1);case 1:return Ge(n.type,!0);case 31:return He("Activity");default:return""}}function Dn(n){try{var i="",l=null;do i+=Dt(n,l),l=n,n=n.return;while(n);return i}catch(u){return`
47
+ Error generating stack: `+u.message+`
48
+ `+u.stack}}var yn=Object.prototype.hasOwnProperty,Qn=e.unstable_scheduleCallback,Xn=e.unstable_cancelCallback,H=e.unstable_shouldYield,X=e.unstable_requestPaint,te=e.unstable_now,Se=e.unstable_getCurrentPriorityLevel,ge=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,Ve=e.unstable_LowPriority,Je=e.unstable_IdlePriority,rn=e.log,_n=e.unstable_setDisableYieldValue,Rt=null,an=null;function xn(n){if(typeof rn=="function"&&_n(n),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Rt,n)}catch{}}var Qt=Math.clz32?Math.clz32:Kl,Xl=Math.log,_s=Math.LN2;function Kl(n){return n>>>=0,n===0?32:31-(Xl(n)/_s|0)|0}var Vr=256,xs=262144,ws=4194304;function Pr(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Es(n,i,l){var u=n.pendingLanes;if(u===0)return 0;var h=0,p=n.suspendedLanes,w=n.pingedLanes;n=n.warmLanes;var C=u&134217727;return C!==0?(u=C&~p,u!==0?h=Pr(u):(w&=C,w!==0?h=Pr(w):l||(l=C&~n,l!==0&&(h=Pr(l))))):(C=u&~p,C!==0?h=Pr(C):w!==0?h=Pr(w):l||(l=u&~n,l!==0&&(h=Pr(l)))),h===0?0:i!==0&&i!==h&&(i&p)===0&&(p=h&-h,l=i&-i,p>=l||p===32&&(l&4194048)!==0)?i:h}function wa(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function Td(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lu(){var n=ws;return ws<<=1,(ws&62914560)===0&&(ws=4194304),n}function Wl(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function Ea(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Rd(n,i,l,u,h,p){var w=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var C=n.entanglements,U=n.expirationTimes,ee=n.hiddenUpdates;for(l=w&~l;0<l;){var oe=31-Qt(l),fe=1<<oe;C[oe]=0,U[oe]=-1;var ne=ee[oe];if(ne!==null)for(ee[oe]=null,oe=0;oe<ne.length;oe++){var ie=ne[oe];ie!==null&&(ie.lane&=-536870913)}l&=~fe}u!==0&&ju(n,u,0),p!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=p&~(w&~i))}function ju(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var u=31-Qt(i);n.entangledLanes|=i,n.entanglements[u]=n.entanglements[u]|1073741824|l&261930}function Bu(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var u=31-Qt(l),h=1<<u;h&i|n[u]&i&&(n[u]|=i),l&=~h}}function qu(n,i){var l=i&-i;return l=(l&42)!==0?1:Jl(l),(l&(n.suspendedLanes|i))!==0?0:l}function Jl(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function eo(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Uu(){var n=$.p;return n!==0?n:(n=window.event,n===void 0?32:h2(n.type))}function Hu(n,i){var l=$.p;try{return $.p=n,i()}finally{$.p=l}}var Mr=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Mr,fn="__reactProps$"+Mr,Ir="__reactContainer$"+Mr,Ms="__reactEvents$"+Mr,Vu="__reactListeners$"+Mr,Nd="__reactHandles$"+Mr,Pu="__reactResources$"+Mr,Ma="__reactMarker$"+Mr;function to(n){delete n[Xt],delete n[fn],delete n[Ms],delete n[Vu],delete n[Nd]}function wi(n){var i=n[Xt];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Ir]||l[Xt]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=Kb(n);n!==null;){if(l=n[Xt])return l;n=Kb(n)}return i}n=l,l=n.parentNode}return null}function Ei(n){if(n=n[Xt]||n[Ir]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Mi(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function ki(n){var i=n[Pu];return i||(i=n[Pu]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ht(n){n[Ma]=!0}var Iu=new Set,Fu={};function Fr(n,i){Ai(n,i),Ai(n+"Capture",i)}function Ai(n,i){for(Fu[n]=i,n=0;n<i.length;n++)Iu.add(i[n])}var Od=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),no={},$u={};function zd(n){return yn.call($u,n)?!0:yn.call(no,n)?!1:Od.test(n)?$u[n]=!0:(no[n]=!0,!1)}function ks(n,i,l){if(zd(i))if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+l)}}function As(n,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+l)}}function dr(n,i,l,u){if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(i,l,""+u)}}function wn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Yu(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Dd(n,i,l){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var h=u.get,p=u.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(w){l=""+w,p.call(this,w)}}),Object.defineProperty(n,i,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ci(n){if(!n._valueTracker){var i=Yu(n)?"checked":"value";n._valueTracker=Dd(n,i,""+n[i])}}function Zu(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return n&&(u=Yu(n)?n.checked?"true":"false":n.value),n=u,n!==l?(i.setValue(n),!0):!1}function ka(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Ld=/[\n"\\]/g;function En(n){return n.replace(Ld,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Aa(n,i,l,u,h,p,w,C){n.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.type=w:n.removeAttribute("type"),i!=null?w==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+wn(i)):n.value!==""+wn(i)&&(n.value=""+wn(i)):w!=="submit"&&w!=="reset"||n.removeAttribute("value"),i!=null?ro(n,w,wn(i)):l!=null?ro(n,w,wn(l)):u!=null&&n.removeAttribute("value"),h==null&&p!=null&&(n.defaultChecked=!!p),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.name=""+wn(C):n.removeAttribute("name")}function Gu(n,i,l,u,h,p,w,C){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),i!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||i!=null)){Ci(n);return}l=l!=null?""+wn(l):"",i=i!=null?""+wn(i):l,C||i===n.value||(n.value=i),n.defaultValue=i}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=C?n.checked:!!u,n.defaultChecked=!!u,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(n.name=w),Ci(n)}function ro(n,i,l){i==="number"&&ka(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function $r(n,i,l,u){if(n=n.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<n.length;l++)h=i.hasOwnProperty("$"+n[l].value),n[l].selected!==h&&(n[l].selected=h),h&&u&&(n[l].defaultSelected=!0)}else{for(l=""+wn(l),i=null,h=0;h<n.length;h++){if(n[h].value===l){n[h].selected=!0,u&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function q0(n,i,l){if(i!=null&&(i=""+wn(i),i!==n.value&&(n.value=i),l==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=l!=null?""+wn(l):""}function U0(n,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if(re(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),i=l}l=wn(i),n.defaultValue=l,u=n.textContent,u===l&&u!==""&&u!==null&&(n.value=u),Ci(n)}function Cs(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var h4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function H0(n,i,l){var u=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":u?n.setProperty(i,l):typeof l!="number"||l===0||h4.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function V0(n,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var h in i)u=i[h],i.hasOwnProperty(h)&&l[h]!==u&&H0(n,h,u)}else for(var p in i)i.hasOwnProperty(p)&&H0(n,p,i[p])}function jd(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var y4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),m4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Qu(n){return m4.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Yr(){}var Bd=null;function qd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ts=null,Rs=null;function P0(n){var i=Ei(n);if(i&&(n=i.stateNode)){var l=n[fn]||null;e:switch(n=i.stateNode,i.type){case"input":if(Aa(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+En(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==n&&u.form===n.form){var h=u[fn]||null;if(!h)throw Error(a(90));Aa(u,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===n.form&&Zu(u)}break e;case"textarea":q0(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&$r(n,!!l.multiple,i,!1)}}}var Ud=!1;function I0(n,i,l){if(Ud)return n(i,l);Ud=!0;try{var u=n(i);return u}finally{if(Ud=!1,(Ts!==null||Rs!==null)&&(jc(),Ts&&(i=Ts,n=Rs,Rs=Ts=null,P0(i),n)))for(i=0;i<n.length;i++)P0(n[i])}}function io(n,i){var l=n.stateNode;if(l===null)return null;var u=l[fn]||null;if(u===null)return null;l=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hd=!1;if(Zr)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){Hd=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Hd=!1}var Ti=null,Vd=null,Xu=null;function F0(){if(Xu)return Xu;var n,i=Vd,l=i.length,u,h="value"in Ti?Ti.value:Ti.textContent,p=h.length;for(n=0;n<l&&i[n]===h[n];n++);var w=l-n;for(u=1;u<=w&&i[l-u]===h[p-u];u++);return Xu=h.slice(n,1<u?1-u:void 0)}function Ku(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Wu(){return!0}function $0(){return!1}function Mn(n){function i(l,u,h,p,w){this._reactName=l,this._targetInst=h,this.type=u,this.nativeEvent=p,this.target=w,this.currentTarget=null;for(var C in n)n.hasOwnProperty(C)&&(l=n[C],this[C]=l?l(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Wu:$0,this.isPropagationStopped=$0,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Wu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wu)},persist:function(){},isPersistent:Wu}),i}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=Mn(Ca),so=g({},Ca,{view:0,detail:0}),g4=Mn(so),Pd,Id,lo,ec=g({},so,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$d,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==lo&&(lo&&n.type==="mousemove"?(Pd=n.screenX-lo.screenX,Id=n.screenY-lo.screenY):Id=Pd=0,lo=n),Pd)},movementY:function(n){return"movementY"in n?n.movementY:Id}}),Y0=Mn(ec),p4=g({},ec,{dataTransfer:0}),v4=Mn(p4),b4=g({},so,{relatedTarget:0}),Fd=Mn(b4),S4=g({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),_4=Mn(S4),x4=g({},Ca,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),w4=Mn(x4),E4=g({},Ca,{data:0}),Z0=Mn(E4),M4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},A4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C4(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=A4[n])?!!i[n]:!1}function $d(){return C4}var T4=g({},so,{key:function(n){if(n.key){var i=M4[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ku(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?k4[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$d,charCode:function(n){return n.type==="keypress"?Ku(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ku(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),R4=Mn(T4),N4=g({},ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),G0=Mn(N4),O4=g({},so,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$d}),z4=Mn(O4),D4=g({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),L4=Mn(D4),j4=g({},ec,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),B4=Mn(j4),q4=g({},Ca,{newState:0,oldState:0}),U4=Mn(q4),H4=[9,13,27,32],Yd=Zr&&"CompositionEvent"in window,oo=null;Zr&&"documentMode"in document&&(oo=document.documentMode);var V4=Zr&&"TextEvent"in window&&!oo,Q0=Zr&&(!Yd||oo&&8<oo&&11>=oo),X0=" ",K0=!1;function W0(n,i){switch(n){case"keyup":return H4.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J0(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ns=!1;function P4(n,i){switch(n){case"compositionend":return J0(i);case"keypress":return i.which!==32?null:(K0=!0,X0);case"textInput":return n=i.data,n===X0&&K0?null:n;default:return null}}function I4(n,i){if(Ns)return n==="compositionend"||!Yd&&W0(n,i)?(n=F0(),Xu=Vd=Ti=null,Ns=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Q0&&i.locale!=="ko"?null:i.data;default:return null}}var F4={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function e1(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!F4[n.type]:i==="textarea"}function t1(n,i,l,u){Ts?Rs?Rs.push(u):Rs=[u]:Ts=u,i=Ic(i,"onChange"),0<i.length&&(l=new Ju("onChange","change",null,l,u),n.push({event:l,listeners:i}))}var uo=null,co=null;function $4(n){Bb(n,0)}function tc(n){var i=Mi(n);if(Zu(i))return n}function n1(n,i){if(n==="change")return i}var r1=!1;if(Zr){var Zd;if(Zr){var Gd="oninput"in document;if(!Gd){var i1=document.createElement("div");i1.setAttribute("oninput","return;"),Gd=typeof i1.oninput=="function"}Zd=Gd}else Zd=!1;r1=Zd&&(!document.documentMode||9<document.documentMode)}function a1(){uo&&(uo.detachEvent("onpropertychange",s1),co=uo=null)}function s1(n){if(n.propertyName==="value"&&tc(co)){var i=[];t1(i,co,n,qd(n)),I0($4,i)}}function Y4(n,i,l){n==="focusin"?(a1(),uo=i,co=l,uo.attachEvent("onpropertychange",s1)):n==="focusout"&&a1()}function Z4(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return tc(co)}function G4(n,i){if(n==="click")return tc(i)}function Q4(n,i){if(n==="input"||n==="change")return tc(i)}function X4(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Ln=typeof Object.is=="function"?Object.is:X4;function fo(n,i){if(Ln(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var h=l[u];if(!yn.call(i,h)||!Ln(n[h],i[h]))return!1}return!0}function l1(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function o1(n,i){var l=l1(n);n=0;for(var u;l;){if(l.nodeType===3){if(u=n+l.textContent.length,n<=i&&u>=i)return{node:l,offset:i-n};n=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=l1(l)}}function u1(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?u1(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function c1(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=ka(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=ka(n.document)}return i}function Qd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var K4=Zr&&"documentMode"in document&&11>=document.documentMode,Os=null,Xd=null,ho=null,Kd=!1;function f1(n,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Kd||Os==null||Os!==ka(u)||(u=Os,"selectionStart"in u&&Qd(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ho&&fo(ho,u)||(ho=u,u=Ic(Xd,"onSelect"),0<u.length&&(i=new Ju("onSelect","select",null,i,l),n.push({event:i,listeners:u}),i.target=Os)))}function Ta(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var zs={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Wd={},d1={};Zr&&(d1=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function Ra(n){if(Wd[n])return Wd[n];if(!zs[n])return n;var i=zs[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in d1)return Wd[n]=i[l];return n}var h1=Ra("animationend"),y1=Ra("animationiteration"),m1=Ra("animationstart"),W4=Ra("transitionrun"),J4=Ra("transitionstart"),ek=Ra("transitioncancel"),g1=Ra("transitionend"),p1=new Map,Jd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jd.push("scrollEnd");function hr(n,i){p1.set(n,i),Fr(i,[n])}var nc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Kn=[],Ds=0,eh=0;function rc(){for(var n=Ds,i=eh=Ds=0;i<n;){var l=Kn[i];Kn[i++]=null;var u=Kn[i];Kn[i++]=null;var h=Kn[i];Kn[i++]=null;var p=Kn[i];if(Kn[i++]=null,u!==null&&h!==null){var w=u.pending;w===null?h.next=h:(h.next=w.next,w.next=h),u.pending=h}p!==0&&v1(l,h,p)}}function ic(n,i,l,u){Kn[Ds++]=n,Kn[Ds++]=i,Kn[Ds++]=l,Kn[Ds++]=u,eh|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function th(n,i,l,u){return ic(n,i,l,u),ac(n)}function Na(n,i){return ic(n,null,null,i),ac(n)}function v1(n,i,l){n.lanes|=l;var u=n.alternate;u!==null&&(u.lanes|=l);for(var h=!1,p=n.return;p!==null;)p.childLanes|=l,u=p.alternate,u!==null&&(u.childLanes|=l),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(h=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,h&&i!==null&&(h=31-Qt(l),n=p.hiddenUpdates,u=n[h],u===null?n[h]=[i]:u.push(i),i.lane=l|536870912),p):null}function ac(n){if(50<Lo)throw Lo=0,cy=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Ls={};function tk(n,i,l,u){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(n,i,l,u){return new tk(n,i,l,u)}function nh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Gr(n,i){var l=n.alternate;return l===null?(l=jn(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function b1(n,i){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,i=l.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function sc(n,i,l,u,h,p){var w=0;if(u=n,typeof n=="function")nh(n)&&(w=1);else if(typeof n=="string")w=sA(n,l,ce.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case L:return n=jn(31,l,i,h),n.elementType=L,n.lanes=p,n;case _:return Oa(l.children,h,p,i);case x:w=8,h|=24;break;case E:return n=jn(12,l,i,h|2),n.elementType=E,n.lanes=p,n;case z:return n=jn(13,l,i,h),n.elementType=z,n.lanes=p,n;case N:return n=jn(19,l,i,h),n.elementType=N,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case M:w=10;break e;case k:w=9;break e;case A:w=11;break e;case D:w=14;break e;case T:w=16,u=null;break e}w=29,l=Error(a(130,n===null?"null":typeof n,"")),u=null}return i=jn(w,l,i,h),i.elementType=n,i.type=u,i.lanes=p,i}function Oa(n,i,l,u){return n=jn(7,n,u,i),n.lanes=l,n}function rh(n,i,l){return n=jn(6,n,null,i),n.lanes=l,n}function S1(n){var i=jn(18,null,null,0);return i.stateNode=n,i}function ih(n,i,l){return i=jn(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var _1=new WeakMap;function Wn(n,i){if(typeof n=="object"&&n!==null){var l=_1.get(n);return l!==void 0?l:(i={value:n,source:i,stack:Dn(i)},_1.set(n,i),i)}return{value:n,source:i,stack:Dn(i)}}var js=[],Bs=0,lc=null,yo=0,Jn=[],er=0,Ri=null,kr=1,Ar="";function Qr(n,i){js[Bs++]=yo,js[Bs++]=lc,lc=n,yo=i}function x1(n,i,l){Jn[er++]=kr,Jn[er++]=Ar,Jn[er++]=Ri,Ri=n;var u=kr;n=Ar;var h=32-Qt(u)-1;u&=~(1<<h),l+=1;var p=32-Qt(i)+h;if(30<p){var w=h-h%5;p=(u&(1<<w)-1).toString(32),u>>=w,h-=w,kr=1<<32-Qt(i)+h|l<<h|u,Ar=p+n}else kr=1<<p|l<<h|u,Ar=n}function ah(n){n.return!==null&&(Qr(n,1),x1(n,1,0))}function sh(n){for(;n===lc;)lc=js[--Bs],js[Bs]=null,yo=js[--Bs],js[Bs]=null;for(;n===Ri;)Ri=Jn[--er],Jn[er]=null,Ar=Jn[--er],Jn[er]=null,kr=Jn[--er],Jn[er]=null}function w1(n,i){Jn[er++]=kr,Jn[er++]=Ar,Jn[er++]=Ri,kr=i.id,Ar=i.overflow,Ri=n}var sn=null,St=null,nt=!1,Ni=null,tr=!1,lh=Error(a(519));function Oi(n){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mo(Wn(i,n)),lh}function E1(n){var i=n.stateNode,l=n.type,u=n.memoizedProps;switch(i[Xt]=n,i[fn]=u,l){case"dialog":We("cancel",i),We("close",i);break;case"iframe":case"object":case"embed":We("load",i);break;case"video":case"audio":for(l=0;l<Bo.length;l++)We(Bo[l],i);break;case"source":We("error",i);break;case"img":case"image":case"link":We("error",i),We("load",i);break;case"details":We("toggle",i);break;case"input":We("invalid",i),Gu(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":We("invalid",i);break;case"textarea":We("invalid",i),U0(i,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||u.suppressHydrationWarning===!0||Vb(i.textContent,l)?(u.popover!=null&&(We("beforetoggle",i),We("toggle",i)),u.onScroll!=null&&We("scroll",i),u.onScrollEnd!=null&&We("scrollend",i),u.onClick!=null&&(i.onclick=Yr),i=!0):i=!1,i||Oi(n,!0)}function M1(n){for(sn=n.return;sn;)switch(sn.tag){case 5:case 31:case 13:tr=!1;return;case 27:case 3:tr=!0;return;default:sn=sn.return}}function qs(n){if(n!==sn)return!1;if(!nt)return M1(n),nt=!0,!1;var i=n.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||My(n.type,n.memoizedProps)),l=!l),l&&St&&Oi(n),M1(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));St=Xb(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));St=Xb(n)}else i===27?(i=St,Yi(n.type)?(n=Ry,Ry=null,St=n):St=i):St=sn?rr(n.stateNode.nextSibling):null;return!0}function za(){St=sn=null,nt=!1}function oh(){var n=Ni;return n!==null&&(Tn===null?Tn=n:Tn.push.apply(Tn,n),Ni=null),n}function mo(n){Ni===null?Ni=[n]:Ni.push(n)}var uh=O(null),Da=null,Xr=null;function zi(n,i,l){se(uh,i._currentValue),i._currentValue=l}function Kr(n){n._currentValue=uh.current,P(uh)}function ch(n,i,l){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===l)break;n=n.return}}function fh(n,i,l,u){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var p=h.dependencies;if(p!==null){var w=h.child;p=p.firstContext;e:for(;p!==null;){var C=p;p=h;for(var U=0;U<i.length;U++)if(C.context===i[U]){p.lanes|=l,C=p.alternate,C!==null&&(C.lanes|=l),ch(p.return,l,n),u||(w=null);break e}p=C.next}}else if(h.tag===18){if(w=h.return,w===null)throw Error(a(341));w.lanes|=l,p=w.alternate,p!==null&&(p.lanes|=l),ch(w,l,n),w=null}else w=h.child;if(w!==null)w.return=h;else for(w=h;w!==null;){if(w===n){w=null;break}if(h=w.sibling,h!==null){h.return=w.return,w=h;break}w=w.return}h=w}}function Us(n,i,l,u){n=null;for(var h=i,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var w=h.alternate;if(w===null)throw Error(a(387));if(w=w.memoizedProps,w!==null){var C=h.type;Ln(h.pendingProps.value,w.value)||(n!==null?n.push(C):n=[C])}}else if(h===be.current){if(w=h.alternate,w===null)throw Error(a(387));w.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Po):n=[Po])}h=h.return}n!==null&&fh(i,n,l,u),i.flags|=262144}function oc(n){for(n=n.firstContext;n!==null;){if(!Ln(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function La(n){Da=n,Xr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function ln(n){return k1(Da,n)}function uc(n,i){return Da===null&&La(n),k1(n,i)}function k1(n,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Xr===null){if(n===null)throw Error(a(308));Xr=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Xr=Xr.next=i;return l}var nk=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(l,u){n.push(u)}};this.abort=function(){i.aborted=!0,n.forEach(function(l){return l()})}},rk=e.unstable_scheduleCallback,ik=e.unstable_NormalPriority,Vt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dh(){return{controller:new nk,data:new Map,refCount:0}}function go(n){n.refCount--,n.refCount===0&&rk(ik,function(){n.controller.abort()})}var po=null,hh=0,Hs=0,Vs=null;function ak(n,i){if(po===null){var l=po=[];hh=0,Hs=gy(),Vs={status:"pending",value:void 0,then:function(u){l.push(u)}}}return hh++,i.then(A1,A1),i}function A1(){if(--hh===0&&po!==null){Vs!==null&&(Vs.status="fulfilled");var n=po;po=null,Hs=0,Vs=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function sk(n,i){var l=[],u={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return n.then(function(){u.status="fulfilled",u.value=i;for(var h=0;h<l.length;h++)(0,l[h])(i)},function(h){for(u.status="rejected",u.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),u}var C1=q.S;q.S=function(n,i){fb=te(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&ak(n,i),C1!==null&&C1(n,i)};var ja=O(null);function yh(){var n=ja.current;return n!==null?n:vt.pooledCache}function cc(n,i){i===null?se(ja,ja.current):se(ja,i.pool)}function T1(){var n=yh();return n===null?null:{parent:Vt._currentValue,pool:n}}var Ps=Error(a(460)),mh=Error(a(474)),fc=Error(a(542)),dc={then:function(){}};function R1(n){return n=n.status,n==="fulfilled"||n==="rejected"}function N1(n,i,l){switch(l=n[l],l===void 0?n.push(i):l!==i&&(i.then(Yr,Yr),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,z1(n),n;default:if(typeof i.status=="string")i.then(Yr,Yr);else{if(n=vt,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(u){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=u}},function(u){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,z1(n),n}throw qa=i,Ps}}function Ba(n){try{var i=n._init;return i(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(qa=l,Ps):l}}var qa=null;function O1(){if(qa===null)throw Error(a(459));var n=qa;return qa=null,n}function z1(n){if(n===Ps||n===fc)throw Error(a(483))}var Is=null,vo=0;function hc(n){var i=vo;return vo+=1,Is===null&&(Is=[]),N1(Is,n,i)}function bo(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function yc(n,i){throw i.$$typeof===v?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function D1(n){function i(Y,I){if(n){var J=Y.deletions;J===null?(Y.deletions=[I],Y.flags|=16):J.push(I)}}function l(Y,I){if(!n)return null;for(;I!==null;)i(Y,I),I=I.sibling;return null}function u(Y){for(var I=new Map;Y!==null;)Y.key!==null?I.set(Y.key,Y):I.set(Y.index,Y),Y=Y.sibling;return I}function h(Y,I){return Y=Gr(Y,I),Y.index=0,Y.sibling=null,Y}function p(Y,I,J){return Y.index=J,n?(J=Y.alternate,J!==null?(J=J.index,J<I?(Y.flags|=67108866,I):J):(Y.flags|=67108866,I)):(Y.flags|=1048576,I)}function w(Y){return n&&Y.alternate===null&&(Y.flags|=67108866),Y}function C(Y,I,J,ue){return I===null||I.tag!==6?(I=rh(J,Y.mode,ue),I.return=Y,I):(I=h(I,J),I.return=Y,I)}function U(Y,I,J,ue){var je=J.type;return je===_?oe(Y,I,J.props.children,ue,J.key):I!==null&&(I.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===T&&Ba(je)===I.type)?(I=h(I,J.props),bo(I,J),I.return=Y,I):(I=sc(J.type,J.key,J.props,null,Y.mode,ue),bo(I,J),I.return=Y,I)}function ee(Y,I,J,ue){return I===null||I.tag!==4||I.stateNode.containerInfo!==J.containerInfo||I.stateNode.implementation!==J.implementation?(I=ih(J,Y.mode,ue),I.return=Y,I):(I=h(I,J.children||[]),I.return=Y,I)}function oe(Y,I,J,ue,je){return I===null||I.tag!==7?(I=Oa(J,Y.mode,ue,je),I.return=Y,I):(I=h(I,J),I.return=Y,I)}function fe(Y,I,J){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=rh(""+I,Y.mode,J),I.return=Y,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return J=sc(I.type,I.key,I.props,null,Y.mode,J),bo(J,I),J.return=Y,J;case S:return I=ih(I,Y.mode,J),I.return=Y,I;case T:return I=Ba(I),fe(Y,I,J)}if(re(I)||j(I))return I=Oa(I,Y.mode,J,null),I.return=Y,I;if(typeof I.then=="function")return fe(Y,hc(I),J);if(I.$$typeof===M)return fe(Y,uc(Y,I),J);yc(Y,I)}return null}function ne(Y,I,J,ue){var je=I!==null?I.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return je!==null?null:C(Y,I,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case b:return J.key===je?U(Y,I,J,ue):null;case S:return J.key===je?ee(Y,I,J,ue):null;case T:return J=Ba(J),ne(Y,I,J,ue)}if(re(J)||j(J))return je!==null?null:oe(Y,I,J,ue,null);if(typeof J.then=="function")return ne(Y,I,hc(J),ue);if(J.$$typeof===M)return ne(Y,I,uc(Y,J),ue);yc(Y,J)}return null}function ie(Y,I,J,ue,je){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Y=Y.get(J)||null,C(I,Y,""+ue,je);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case b:return Y=Y.get(ue.key===null?J:ue.key)||null,U(I,Y,ue,je);case S:return Y=Y.get(ue.key===null?J:ue.key)||null,ee(I,Y,ue,je);case T:return ue=Ba(ue),ie(Y,I,J,ue,je)}if(re(ue)||j(ue))return Y=Y.get(J)||null,oe(I,Y,ue,je,null);if(typeof ue.then=="function")return ie(Y,I,J,hc(ue),je);if(ue.$$typeof===M)return ie(Y,I,J,uc(I,ue),je);yc(I,ue)}return null}function Me(Y,I,J,ue){for(var je=null,st=null,Ne=I,Ye=I=0,tt=null;Ne!==null&&Ye<J.length;Ye++){Ne.index>Ye?(tt=Ne,Ne=null):tt=Ne.sibling;var lt=ne(Y,Ne,J[Ye],ue);if(lt===null){Ne===null&&(Ne=tt);break}n&&Ne&&lt.alternate===null&&i(Y,Ne),I=p(lt,I,Ye),st===null?je=lt:st.sibling=lt,st=lt,Ne=tt}if(Ye===J.length)return l(Y,Ne),nt&&Qr(Y,Ye),je;if(Ne===null){for(;Ye<J.length;Ye++)Ne=fe(Y,J[Ye],ue),Ne!==null&&(I=p(Ne,I,Ye),st===null?je=Ne:st.sibling=Ne,st=Ne);return nt&&Qr(Y,Ye),je}for(Ne=u(Ne);Ye<J.length;Ye++)tt=ie(Ne,Y,Ye,J[Ye],ue),tt!==null&&(n&&tt.alternate!==null&&Ne.delete(tt.key===null?Ye:tt.key),I=p(tt,I,Ye),st===null?je=tt:st.sibling=tt,st=tt);return n&&Ne.forEach(function(Ki){return i(Y,Ki)}),nt&&Qr(Y,Ye),je}function Ue(Y,I,J,ue){if(J==null)throw Error(a(151));for(var je=null,st=null,Ne=I,Ye=I=0,tt=null,lt=J.next();Ne!==null&&!lt.done;Ye++,lt=J.next()){Ne.index>Ye?(tt=Ne,Ne=null):tt=Ne.sibling;var Ki=ne(Y,Ne,lt.value,ue);if(Ki===null){Ne===null&&(Ne=tt);break}n&&Ne&&Ki.alternate===null&&i(Y,Ne),I=p(Ki,I,Ye),st===null?je=Ki:st.sibling=Ki,st=Ki,Ne=tt}if(lt.done)return l(Y,Ne),nt&&Qr(Y,Ye),je;if(Ne===null){for(;!lt.done;Ye++,lt=J.next())lt=fe(Y,lt.value,ue),lt!==null&&(I=p(lt,I,Ye),st===null?je=lt:st.sibling=lt,st=lt);return nt&&Qr(Y,Ye),je}for(Ne=u(Ne);!lt.done;Ye++,lt=J.next())lt=ie(Ne,Y,Ye,lt.value,ue),lt!==null&&(n&&lt.alternate!==null&&Ne.delete(lt.key===null?Ye:lt.key),I=p(lt,I,Ye),st===null?je=lt:st.sibling=lt,st=lt);return n&&Ne.forEach(function(pA){return i(Y,pA)}),nt&&Qr(Y,Ye),je}function gt(Y,I,J,ue){if(typeof J=="object"&&J!==null&&J.type===_&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case b:e:{for(var je=J.key;I!==null;){if(I.key===je){if(je=J.type,je===_){if(I.tag===7){l(Y,I.sibling),ue=h(I,J.props.children),ue.return=Y,Y=ue;break e}}else if(I.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===T&&Ba(je)===I.type){l(Y,I.sibling),ue=h(I,J.props),bo(ue,J),ue.return=Y,Y=ue;break e}l(Y,I);break}else i(Y,I);I=I.sibling}J.type===_?(ue=Oa(J.props.children,Y.mode,ue,J.key),ue.return=Y,Y=ue):(ue=sc(J.type,J.key,J.props,null,Y.mode,ue),bo(ue,J),ue.return=Y,Y=ue)}return w(Y);case S:e:{for(je=J.key;I!==null;){if(I.key===je)if(I.tag===4&&I.stateNode.containerInfo===J.containerInfo&&I.stateNode.implementation===J.implementation){l(Y,I.sibling),ue=h(I,J.children||[]),ue.return=Y,Y=ue;break e}else{l(Y,I);break}else i(Y,I);I=I.sibling}ue=ih(J,Y.mode,ue),ue.return=Y,Y=ue}return w(Y);case T:return J=Ba(J),gt(Y,I,J,ue)}if(re(J))return Me(Y,I,J,ue);if(j(J)){if(je=j(J),typeof je!="function")throw Error(a(150));return J=je.call(J),Ue(Y,I,J,ue)}if(typeof J.then=="function")return gt(Y,I,hc(J),ue);if(J.$$typeof===M)return gt(Y,I,uc(Y,J),ue);yc(Y,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,I!==null&&I.tag===6?(l(Y,I.sibling),ue=h(I,J),ue.return=Y,Y=ue):(l(Y,I),ue=rh(J,Y.mode,ue),ue.return=Y,Y=ue),w(Y)):l(Y,I)}return function(Y,I,J,ue){try{vo=0;var je=gt(Y,I,J,ue);return Is=null,je}catch(Ne){if(Ne===Ps||Ne===fc)throw Ne;var st=jn(29,Ne,null,Y.mode);return st.lanes=ue,st.return=Y,st}finally{}}}var Ua=D1(!0),L1=D1(!1),Di=!1;function gh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ph(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Li(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ji(n,i,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(ct&2)!==0){var h=u.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),u.pending=i,i=ac(n),v1(n,null,l),i}return ic(n,u,i,l),ac(n)}function So(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var u=i.lanes;u&=n.pendingLanes,l|=u,i.lanes=l,Bu(n,l)}}function vh(n,i){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var h=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var w={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?h=p=w:p=p.next=w,l=l.next}while(l!==null);p===null?h=p=i:p=p.next=i}else h=p=i;l={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}var bh=!1;function _o(){if(bh){var n=Vs;if(n!==null)throw n}}function xo(n,i,l,u){bh=!1;var h=n.updateQueue;Di=!1;var p=h.firstBaseUpdate,w=h.lastBaseUpdate,C=h.shared.pending;if(C!==null){h.shared.pending=null;var U=C,ee=U.next;U.next=null,w===null?p=ee:w.next=ee,w=U;var oe=n.alternate;oe!==null&&(oe=oe.updateQueue,C=oe.lastBaseUpdate,C!==w&&(C===null?oe.firstBaseUpdate=ee:C.next=ee,oe.lastBaseUpdate=U))}if(p!==null){var fe=h.baseState;w=0,oe=ee=U=null,C=p;do{var ne=C.lane&-536870913,ie=ne!==C.lane;if(ie?(et&ne)===ne:(u&ne)===ne){ne!==0&&ne===Hs&&(bh=!0),oe!==null&&(oe=oe.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var Me=n,Ue=C;ne=i;var gt=l;switch(Ue.tag){case 1:if(Me=Ue.payload,typeof Me=="function"){fe=Me.call(gt,fe,ne);break e}fe=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Ue.payload,ne=typeof Me=="function"?Me.call(gt,fe,ne):Me,ne==null)break e;fe=g({},fe,ne);break e;case 2:Di=!0}}ne=C.callback,ne!==null&&(n.flags|=64,ie&&(n.flags|=8192),ie=h.callbacks,ie===null?h.callbacks=[ne]:ie.push(ne))}else ie={lane:ne,tag:C.tag,payload:C.payload,callback:C.callback,next:null},oe===null?(ee=oe=ie,U=fe):oe=oe.next=ie,w|=ne;if(C=C.next,C===null){if(C=h.shared.pending,C===null)break;ie=C,C=ie.next,ie.next=null,h.lastBaseUpdate=ie,h.shared.pending=null}}while(!0);oe===null&&(U=fe),h.baseState=U,h.firstBaseUpdate=ee,h.lastBaseUpdate=oe,p===null&&(h.shared.lanes=0),Vi|=w,n.lanes=w,n.memoizedState=fe}}function j1(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function B1(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)j1(l[n],i)}var Fs=O(null),mc=O(0);function q1(n,i){n=si,se(mc,n),se(Fs,i),si=n|i.baseLanes}function Sh(){se(mc,si),se(Fs,Fs.current)}function _h(){si=mc.current,P(Fs),P(mc)}var Bn=O(null),nr=null;function Bi(n){var i=n.alternate;se(Lt,Lt.current&1),se(Bn,n),nr===null&&(i===null||Fs.current!==null||i.memoizedState!==null)&&(nr=n)}function xh(n){se(Lt,Lt.current),se(Bn,n),nr===null&&(nr=n)}function U1(n){n.tag===22?(se(Lt,Lt.current),se(Bn,n),nr===null&&(nr=n)):qi()}function qi(){se(Lt,Lt.current),se(Bn,Bn.current)}function qn(n){P(Bn),nr===n&&(nr=null),P(Lt)}var Lt=O(0);function gc(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Cy(l)||Ty(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Wr=0,$e=null,yt=null,Pt=null,pc=!1,$s=!1,Ha=!1,vc=0,wo=0,Ys=null,lk=0;function Nt(){throw Error(a(321))}function wh(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!Ln(n[l],i[l]))return!1;return!0}function Eh(n,i,l,u,h,p){return Wr=p,$e=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,q.H=n===null||n.memoizedState===null?xv:Uh,Ha=!1,p=l(u,h),Ha=!1,$s&&(p=V1(i,l,u,h)),H1(n),p}function H1(n){q.H=ko;var i=yt!==null&&yt.next!==null;if(Wr=0,Pt=yt=$e=null,pc=!1,wo=0,Ys=null,i)throw Error(a(300));n===null||It||(n=n.dependencies,n!==null&&oc(n)&&(It=!0))}function V1(n,i,l,u){$e=n;var h=0;do{if($s&&(Ys=null),wo=0,$s=!1,25<=h)throw Error(a(301));if(h+=1,Pt=yt=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}q.H=wv,p=i(l,u)}while($s);return p}function ok(){var n=q.H,i=n.useState()[0];return i=typeof i.then=="function"?Eo(i):i,n=n.useState()[0],(yt!==null?yt.memoizedState:null)!==n&&($e.flags|=1024),i}function Mh(){var n=vc!==0;return vc=0,n}function kh(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function Ah(n){if(pc){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}pc=!1}Wr=0,Pt=yt=$e=null,$s=!1,wo=vc=0,Ys=null}function mn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?$e.memoizedState=Pt=n:Pt=Pt.next=n,Pt}function jt(){if(yt===null){var n=$e.alternate;n=n!==null?n.memoizedState:null}else n=yt.next;var i=Pt===null?$e.memoizedState:Pt.next;if(i!==null)Pt=i,yt=n;else{if(n===null)throw $e.alternate===null?Error(a(467)):Error(a(310));yt=n,n={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Pt===null?$e.memoizedState=Pt=n:Pt=Pt.next=n}return Pt}function bc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(n){var i=wo;return wo+=1,Ys===null&&(Ys=[]),n=N1(Ys,n,i),i=$e,(Pt===null?i.memoizedState:Pt.next)===null&&(i=i.alternate,q.H=i===null||i.memoizedState===null?xv:Uh),n}function Sc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Eo(n);if(n.$$typeof===M)return ln(n)}throw Error(a(438,String(n)))}function Ch(n){var i=null,l=$e.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var u=$e.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=bc(),$e.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(n),u=0;u<n;u++)l[u]=G;return i.index++,l}function Jr(n,i){return typeof i=="function"?i(n):i}function _c(n){var i=jt();return Th(i,yt,n)}function Th(n,i,l){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var h=n.baseQueue,p=u.pending;if(p!==null){if(h!==null){var w=h.next;h.next=p.next,p.next=w}i.baseQueue=h=p,u.pending=null}if(p=n.baseState,h===null)n.memoizedState=p;else{i=h.next;var C=w=null,U=null,ee=i,oe=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(et&fe)===fe:(Wr&fe)===fe){var ne=ee.revertLane;if(ne===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===Hs&&(oe=!0);else if((Wr&ne)===ne){ee=ee.next,ne===Hs&&(oe=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(C=U=fe,w=p):U=U.next=fe,$e.lanes|=ne,Vi|=ne;fe=ee.action,Ha&&l(p,fe),p=ee.hasEagerState?ee.eagerState:l(p,fe)}else ne={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(C=U=ne,w=p):U=U.next=ne,$e.lanes|=fe,Vi|=fe;ee=ee.next}while(ee!==null&&ee!==i);if(U===null?w=p:U.next=C,!Ln(p,n.memoizedState)&&(It=!0,oe&&(l=Vs,l!==null)))throw l;n.memoizedState=p,n.baseState=w,n.baseQueue=U,u.lastRenderedState=p}return h===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Rh(n){var i=jt(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=n;var u=l.dispatch,h=l.pending,p=i.memoizedState;if(h!==null){l.pending=null;var w=h=h.next;do p=n(p,w.action),w=w.next;while(w!==h);Ln(p,i.memoizedState)||(It=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),l.lastRenderedState=p}return[p,u]}function P1(n,i,l){var u=$e,h=jt(),p=nt;if(p){if(l===void 0)throw Error(a(407));l=l()}else l=i();var w=!Ln((yt||h).memoizedState,l);if(w&&(h.memoizedState=l,It=!0),h=h.queue,zh($1.bind(null,u,h,n),[n]),h.getSnapshot!==i||w||Pt!==null&&Pt.memoizedState.tag&1){if(u.flags|=2048,Zs(9,{destroy:void 0},F1.bind(null,u,h,l,i),null),vt===null)throw Error(a(349));p||(Wr&127)!==0||I1(u,i,l)}return l}function I1(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=$e.updateQueue,i===null?(i=bc(),$e.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function F1(n,i,l,u){i.value=l,i.getSnapshot=u,Y1(i)&&Z1(n)}function $1(n,i,l){return l(function(){Y1(i)&&Z1(n)})}function Y1(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Ln(n,l)}catch{return!0}}function Z1(n){var i=Na(n,2);i!==null&&Rn(i,n,2)}function Nh(n){var i=mn();if(typeof n=="function"){var l=n;if(n=l(),Ha){xn(!0);try{l()}finally{xn(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:n},i}function G1(n,i,l,u){return n.baseState=l,Th(n,yt,typeof u=="function"?u:Jr)}function uk(n,i,l,u,h){if(Ec(n))throw Error(a(485));if(n=i.action,n!==null){var p={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){p.listeners.push(w)}};q.T!==null?l(!0):p.isTransition=!1,u(p),l=i.pending,l===null?(p.next=i.pending=p,Q1(i,p)):(p.next=l.next,i.pending=l.next=p)}}function Q1(n,i){var l=i.action,u=i.payload,h=n.state;if(i.isTransition){var p=q.T,w={};q.T=w;try{var C=l(h,u),U=q.S;U!==null&&U(w,C),X1(n,i,C)}catch(ee){Oh(n,i,ee)}finally{p!==null&&w.types!==null&&(p.types=w.types),q.T=p}}else try{p=l(h,u),X1(n,i,p)}catch(ee){Oh(n,i,ee)}}function X1(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){K1(n,i,u)},function(u){return Oh(n,i,u)}):K1(n,i,l)}function K1(n,i,l){i.status="fulfilled",i.value=l,W1(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,Q1(n,l)))}function Oh(n,i,l){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,W1(i),i=i.next;while(i!==u)}n.action=null}function W1(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function J1(n,i){return i}function ev(n,i){if(nt){var l=vt.formState;if(l!==null){e:{var u=$e;if(nt){if(St){t:{for(var h=St,p=tr;h.nodeType!==8;){if(!p){h=null;break t}if(h=rr(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){St=rr(h.nextSibling),u=h.data==="F!";break e}}Oi(u)}u=!1}u&&(i=l[0])}}return l=mn(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:J1,lastRenderedState:i},l.queue=u,l=bv.bind(null,$e,u),u.dispatch=l,u=Nh(!1),p=qh.bind(null,$e,!1,u.queue),u=mn(),h={state:i,dispatch:null,action:n,pending:null},u.queue=h,l=uk.bind(null,$e,h,p,l),h.dispatch=l,u.memoizedState=n,[i,l,!1]}function tv(n){var i=jt();return nv(i,yt,n)}function nv(n,i,l){if(i=Th(n,i,J1)[0],n=_c(Jr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Eo(i)}catch(w){throw w===Ps?fc:w}else u=i;i=jt();var h=i.queue,p=h.dispatch;return l!==i.memoizedState&&($e.flags|=2048,Zs(9,{destroy:void 0},ck.bind(null,h,l),null)),[u,p,n]}function ck(n,i){n.action=i}function rv(n){var i=jt(),l=yt;if(l!==null)return nv(i,l,n);jt(),i=i.memoizedState,l=jt();var u=l.queue.dispatch;return l.memoizedState=n,[i,u,!1]}function Zs(n,i,l,u){return n={tag:n,create:l,deps:u,inst:i,next:null},i=$e.updateQueue,i===null&&(i=bc(),$e.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=n.next=n:(u=l.next,l.next=n,n.next=u,i.lastEffect=n),n}function iv(){return jt().memoizedState}function xc(n,i,l,u){var h=mn();$e.flags|=n,h.memoizedState=Zs(1|i,{destroy:void 0},l,u===void 0?null:u)}function wc(n,i,l,u){var h=jt();u=u===void 0?null:u;var p=h.memoizedState.inst;yt!==null&&u!==null&&wh(u,yt.memoizedState.deps)?h.memoizedState=Zs(i,p,l,u):($e.flags|=n,h.memoizedState=Zs(1|i,p,l,u))}function av(n,i){xc(8390656,8,n,i)}function zh(n,i){wc(2048,8,n,i)}function fk(n){$e.flags|=4;var i=$e.updateQueue;if(i===null)i=bc(),$e.updateQueue=i,i.events=[n];else{var l=i.events;l===null?i.events=[n]:l.push(n)}}function sv(n){var i=jt().memoizedState;return fk({ref:i,nextImpl:n}),function(){if((ct&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function lv(n,i){return wc(4,2,n,i)}function ov(n,i){return wc(4,4,n,i)}function uv(n,i){if(typeof i=="function"){n=n();var l=i(n);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function cv(n,i,l){l=l!=null?l.concat([n]):null,wc(4,4,uv.bind(null,i,n),l)}function Dh(){}function fv(n,i){var l=jt();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&wh(i,u[1])?u[0]:(l.memoizedState=[n,i],n)}function dv(n,i){var l=jt();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&wh(i,u[1]))return u[0];if(u=n(),Ha){xn(!0);try{n()}finally{xn(!1)}}return l.memoizedState=[u,i],u}function Lh(n,i,l){return l===void 0||(Wr&1073741824)!==0&&(et&261930)===0?n.memoizedState=i:(n.memoizedState=l,n=hb(),$e.lanes|=n,Vi|=n,l)}function hv(n,i,l,u){return Ln(l,i)?l:Fs.current!==null?(n=Lh(n,l,u),Ln(n,i)||(It=!0),n):(Wr&42)===0||(Wr&1073741824)!==0&&(et&261930)===0?(It=!0,n.memoizedState=l):(n=hb(),$e.lanes|=n,Vi|=n,i)}function yv(n,i,l,u,h){var p=$.p;$.p=p!==0&&8>p?p:8;var w=q.T,C={};q.T=C,qh(n,!1,i,l);try{var U=h(),ee=q.S;if(ee!==null&&ee(C,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var oe=sk(U,u);Mo(n,i,oe,Vn(n))}else Mo(n,i,u,Vn(n))}catch(fe){Mo(n,i,{then:function(){},status:"rejected",reason:fe},Vn())}finally{$.p=p,w!==null&&C.types!==null&&(w.types=C.types),q.T=w}}function dk(){}function jh(n,i,l,u){if(n.tag!==5)throw Error(a(476));var h=mv(n).queue;yv(n,h,i,Z,l===null?dk:function(){return gv(n),l(u)})}function mv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:Z},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function gv(n){var i=mv(n);i.next===null&&(i=n.alternate.memoizedState),Mo(n,i.next.queue,{},Vn())}function Bh(){return ln(Po)}function pv(){return jt().memoizedState}function vv(){return jt().memoizedState}function hk(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=Vn();n=Li(l);var u=ji(i,n,l);u!==null&&(Rn(u,i,l),So(u,i,l)),i={cache:dh()},n.payload=i;return}i=i.return}}function yk(n,i,l){var u=Vn();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ec(n)?Sv(i,l):(l=th(n,i,l,u),l!==null&&(Rn(l,n,u),_v(l,i,u)))}function bv(n,i,l){var u=Vn();Mo(n,i,l,u)}function Mo(n,i,l,u){var h={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ec(n))Sv(i,h);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var w=i.lastRenderedState,C=p(w,l);if(h.hasEagerState=!0,h.eagerState=C,Ln(C,w))return ic(n,i,h,0),vt===null&&rc(),!1}catch{}finally{}if(l=th(n,i,h,u),l!==null)return Rn(l,n,u),_v(l,i,u),!0}return!1}function qh(n,i,l,u){if(u={lane:2,revertLane:gy(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ec(n)){if(i)throw Error(a(479))}else i=th(n,l,u,2),i!==null&&Rn(i,n,2)}function Ec(n){var i=n.alternate;return n===$e||i!==null&&i===$e}function Sv(n,i){$s=pc=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function _v(n,i,l){if((l&4194048)!==0){var u=i.lanes;u&=n.pendingLanes,l|=u,i.lanes=l,Bu(n,l)}}var ko={readContext:ln,use:Sc,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};ko.useEffectEvent=Nt;var xv={readContext:ln,use:Sc,useCallback:function(n,i){return mn().memoizedState=[n,i===void 0?null:i],n},useContext:ln,useEffect:av,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,xc(4194308,4,uv.bind(null,i,n),l)},useLayoutEffect:function(n,i){return xc(4194308,4,n,i)},useInsertionEffect:function(n,i){xc(4,2,n,i)},useMemo:function(n,i){var l=mn();i=i===void 0?null:i;var u=n();if(Ha){xn(!0);try{n()}finally{xn(!1)}}return l.memoizedState=[u,i],u},useReducer:function(n,i,l){var u=mn();if(l!==void 0){var h=l(i);if(Ha){xn(!0);try{l(i)}finally{xn(!1)}}}else h=i;return u.memoizedState=u.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},u.queue=n,n=n.dispatch=yk.bind(null,$e,n),[u.memoizedState,n]},useRef:function(n){var i=mn();return n={current:n},i.memoizedState=n},useState:function(n){n=Nh(n);var i=n.queue,l=bv.bind(null,$e,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:Dh,useDeferredValue:function(n,i){var l=mn();return Lh(l,n,i)},useTransition:function(){var n=Nh(!1);return n=yv.bind(null,$e,n.queue,!0,!1),mn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var u=$e,h=mn();if(nt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),vt===null)throw Error(a(349));(et&127)!==0||I1(u,i,l)}h.memoizedState=l;var p={value:l,getSnapshot:i};return h.queue=p,av($1.bind(null,u,p,n),[n]),u.flags|=2048,Zs(9,{destroy:void 0},F1.bind(null,u,p,l,i),null),l},useId:function(){var n=mn(),i=vt.identifierPrefix;if(nt){var l=Ar,u=kr;l=(u&~(1<<32-Qt(u)-1)).toString(32)+l,i="_"+i+"R_"+l,l=vc++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=lk++,i="_"+i+"r_"+l.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:Bh,useFormState:ev,useActionState:ev,useOptimistic:function(n){var i=mn();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=qh.bind(null,$e,!0,l),l.dispatch=i,[n,i]},useMemoCache:Ch,useCacheRefresh:function(){return mn().memoizedState=hk.bind(null,$e)},useEffectEvent:function(n){var i=mn(),l={impl:n};return i.memoizedState=l,function(){if((ct&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Uh={readContext:ln,use:Sc,useCallback:fv,useContext:ln,useEffect:zh,useImperativeHandle:cv,useInsertionEffect:lv,useLayoutEffect:ov,useMemo:dv,useReducer:_c,useRef:iv,useState:function(){return _c(Jr)},useDebugValue:Dh,useDeferredValue:function(n,i){var l=jt();return hv(l,yt.memoizedState,n,i)},useTransition:function(){var n=_c(Jr)[0],i=jt().memoizedState;return[typeof n=="boolean"?n:Eo(n),i]},useSyncExternalStore:P1,useId:pv,useHostTransitionStatus:Bh,useFormState:tv,useActionState:tv,useOptimistic:function(n,i){var l=jt();return G1(l,yt,n,i)},useMemoCache:Ch,useCacheRefresh:vv};Uh.useEffectEvent=sv;var wv={readContext:ln,use:Sc,useCallback:fv,useContext:ln,useEffect:zh,useImperativeHandle:cv,useInsertionEffect:lv,useLayoutEffect:ov,useMemo:dv,useReducer:Rh,useRef:iv,useState:function(){return Rh(Jr)},useDebugValue:Dh,useDeferredValue:function(n,i){var l=jt();return yt===null?Lh(l,n,i):hv(l,yt.memoizedState,n,i)},useTransition:function(){var n=Rh(Jr)[0],i=jt().memoizedState;return[typeof n=="boolean"?n:Eo(n),i]},useSyncExternalStore:P1,useId:pv,useHostTransitionStatus:Bh,useFormState:rv,useActionState:rv,useOptimistic:function(n,i){var l=jt();return yt!==null?G1(l,yt,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Ch,useCacheRefresh:vv};wv.useEffectEvent=sv;function Hh(n,i,l,u){i=n.memoizedState,l=l(u,i),l=l==null?i:g({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Vh={enqueueSetState:function(n,i,l){n=n._reactInternals;var u=Vn(),h=Li(u);h.payload=i,l!=null&&(h.callback=l),i=ji(n,h,u),i!==null&&(Rn(i,n,u),So(i,n,u))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var u=Vn(),h=Li(u);h.tag=1,h.payload=i,l!=null&&(h.callback=l),i=ji(n,h,u),i!==null&&(Rn(i,n,u),So(i,n,u))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=Vn(),u=Li(l);u.tag=2,i!=null&&(u.callback=i),i=ji(n,u,l),i!==null&&(Rn(i,n,l),So(i,n,l))}};function Ev(n,i,l,u,h,p,w){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,w):i.prototype&&i.prototype.isPureReactComponent?!fo(l,u)||!fo(h,p):!0}function Mv(n,i,l,u){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==n&&Vh.enqueueReplaceState(i,i.state,null)}function Va(n,i){var l=i;if("ref"in i){l={};for(var u in i)u!=="ref"&&(l[u]=i[u])}if(n=n.defaultProps){l===i&&(l=g({},l));for(var h in n)l[h]===void 0&&(l[h]=n[h])}return l}function kv(n){nc(n)}function Av(n){console.error(n)}function Cv(n){nc(n)}function Mc(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function Tv(n,i,l){try{var u=n.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Ph(n,i,l){return l=Li(l),l.tag=3,l.payload={element:null},l.callback=function(){Mc(n,i)},l}function Rv(n){return n=Li(n),n.tag=3,n}function Nv(n,i,l,u){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var p=u.value;n.payload=function(){return h(p)},n.callback=function(){Tv(i,l,u)}}var w=l.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(n.callback=function(){Tv(i,l,u),typeof h!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var C=u.stack;this.componentDidCatch(u.value,{componentStack:C!==null?C:""})})}function mk(n,i,l,u,h){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&Us(i,l,h,!0),l=Bn.current,l!==null){switch(l.tag){case 31:case 13:return nr===null?Bc():l.alternate===null&&Ot===0&&(Ot=3),l.flags&=-257,l.flags|=65536,l.lanes=h,u===dc?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),hy(n,u,h)),!1;case 22:return l.flags|=65536,u===dc?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([u]):l.add(u)),hy(n,u,h)),!1}throw Error(a(435,l.tag))}return hy(n,u,h),Bc(),!1}if(nt)return i=Bn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,u!==lh&&(n=Error(a(422),{cause:u}),mo(Wn(n,l)))):(u!==lh&&(i=Error(a(423),{cause:u}),mo(Wn(i,l))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,u=Wn(u,l),h=Ph(n.stateNode,u,h),vh(n,h),Ot!==4&&(Ot=2)),!1;var p=Error(a(520),{cause:u});if(p=Wn(p,l),Do===null?Do=[p]:Do.push(p),Ot!==4&&(Ot=2),i===null)return!0;u=Wn(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=h&-h,l.lanes|=n,n=Ph(l.stateNode,u,n),vh(l,n),!1;case 1:if(i=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Pi===null||!Pi.has(p))))return l.flags|=65536,h&=-h,l.lanes|=h,h=Rv(h),Nv(h,n,l,u),vh(l,h),!1}l=l.return}while(l!==null);return!1}var Ih=Error(a(461)),It=!1;function on(n,i,l,u){i.child=n===null?L1(i,null,l,u):Ua(i,n.child,l,u)}function Ov(n,i,l,u,h){l=l.render;var p=i.ref;if("ref"in u){var w={};for(var C in u)C!=="ref"&&(w[C]=u[C])}else w=u;return La(i),u=Eh(n,i,l,w,p,h),C=Mh(),n!==null&&!It?(kh(n,i,h),ei(n,i,h)):(nt&&C&&ah(i),i.flags|=1,on(n,i,u,h),i.child)}function zv(n,i,l,u,h){if(n===null){var p=l.type;return typeof p=="function"&&!nh(p)&&p.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=p,Dv(n,i,p,u,h)):(n=sc(l.type,null,u,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(p=n.child,!Kh(n,h)){var w=p.memoizedProps;if(l=l.compare,l=l!==null?l:fo,l(w,u)&&n.ref===i.ref)return ei(n,i,h)}return i.flags|=1,n=Gr(p,u),n.ref=i.ref,n.return=i,i.child=n}function Dv(n,i,l,u,h){if(n!==null){var p=n.memoizedProps;if(fo(p,u)&&n.ref===i.ref)if(It=!1,i.pendingProps=u=p,Kh(n,h))(n.flags&131072)!==0&&(It=!0);else return i.lanes=n.lanes,ei(n,i,h)}return Fh(n,i,l,u,h)}function Lv(n,i,l,u){var h=u.children,p=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,n!==null){for(u=i.child=n.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;u=h&~p}else u=0,i.child=null;return jv(n,i,p,l,u)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&cc(i,p!==null?p.cachePool:null),p!==null?q1(i,p):Sh(),U1(i);else return u=i.lanes=536870912,jv(n,i,p!==null?p.baseLanes|l:l,l,u)}else p!==null?(cc(i,p.cachePool),q1(i,p),qi(),i.memoizedState=null):(n!==null&&cc(i,null),Sh(),qi());return on(n,i,h,l),i.child}function Ao(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function jv(n,i,l,u,h){var p=yh();return p=p===null?null:{parent:Vt._currentValue,pool:p},i.memoizedState={baseLanes:l,cachePool:p},n!==null&&cc(i,null),Sh(),U1(i),n!==null&&Us(n,i,u,!0),i.childLanes=h,null}function kc(n,i){return i=Cc({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function Bv(n,i,l){return Ua(i,n.child,null,l),n=kc(i,i.pendingProps),n.flags|=2,qn(i),i.memoizedState=null,n}function gk(n,i,l){var u=i.pendingProps,h=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(nt){if(u.mode==="hidden")return n=kc(i,u),i.lanes=536870912,Ao(null,n);if(xh(i),(n=St)?(n=Qb(n,tr),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:kr,overflow:Ar}:null,retryLane:536870912,hydrationErrors:null},l=S1(n),l.return=i,i.child=l,sn=i,St=null)):n=null,n===null)throw Oi(i);return i.lanes=536870912,null}return kc(i,u)}var p=n.memoizedState;if(p!==null){var w=p.dehydrated;if(xh(i),h)if(i.flags&256)i.flags&=-257,i=Bv(n,i,l);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(a(558));else if(It||Us(n,i,l,!1),h=(l&n.childLanes)!==0,It||h){if(u=vt,u!==null&&(w=qu(u,l),w!==0&&w!==p.retryLane))throw p.retryLane=w,Na(n,w),Rn(u,n,w),Ih;Bc(),i=Bv(n,i,l)}else n=p.treeContext,St=rr(w.nextSibling),sn=i,nt=!0,Ni=null,tr=!1,n!==null&&w1(i,n),i=kc(i,u),i.flags|=4096;return i}return n=Gr(n.child,{mode:u.mode,children:u.children}),n.ref=i.ref,i.child=n,n.return=i,n}function Ac(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function Fh(n,i,l,u,h){return La(i),l=Eh(n,i,l,u,void 0,h),u=Mh(),n!==null&&!It?(kh(n,i,h),ei(n,i,h)):(nt&&u&&ah(i),i.flags|=1,on(n,i,l,h),i.child)}function qv(n,i,l,u,h,p){return La(i),i.updateQueue=null,l=V1(i,u,l,h),H1(n),u=Mh(),n!==null&&!It?(kh(n,i,p),ei(n,i,p)):(nt&&u&&ah(i),i.flags|=1,on(n,i,l,p),i.child)}function Uv(n,i,l,u,h){if(La(i),i.stateNode===null){var p=Ls,w=l.contextType;typeof w=="object"&&w!==null&&(p=ln(w)),p=new l(u,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Vh,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=u,p.state=i.memoizedState,p.refs={},gh(i),w=l.contextType,p.context=typeof w=="object"&&w!==null?ln(w):Ls,p.state=i.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(Hh(i,l,w,u),p.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(w=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),w!==p.state&&Vh.enqueueReplaceState(p,p.state,null),xo(i,u,p,h),_o(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(n===null){p=i.stateNode;var C=i.memoizedProps,U=Va(l,C);p.props=U;var ee=p.context,oe=l.contextType;w=Ls,typeof oe=="object"&&oe!==null&&(w=ln(oe));var fe=l.getDerivedStateFromProps;oe=typeof fe=="function"||typeof p.getSnapshotBeforeUpdate=="function",C=i.pendingProps!==C,oe||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(C||ee!==w)&&Mv(i,p,u,w),Di=!1;var ne=i.memoizedState;p.state=ne,xo(i,u,p,h),_o(),ee=i.memoizedState,C||ne!==ee||Di?(typeof fe=="function"&&(Hh(i,l,fe,u),ee=i.memoizedState),(U=Di||Ev(i,l,U,u,ne,ee,w))?(oe||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=ee),p.props=u,p.state=ee,p.context=w,u=U):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{p=i.stateNode,ph(n,i),w=i.memoizedProps,oe=Va(l,w),p.props=oe,fe=i.pendingProps,ne=p.context,ee=l.contextType,U=Ls,typeof ee=="object"&&ee!==null&&(U=ln(ee)),C=l.getDerivedStateFromProps,(ee=typeof C=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==fe||ne!==U)&&Mv(i,p,u,U),Di=!1,ne=i.memoizedState,p.state=ne,xo(i,u,p,h),_o();var ie=i.memoizedState;w!==fe||ne!==ie||Di||n!==null&&n.dependencies!==null&&oc(n.dependencies)?(typeof C=="function"&&(Hh(i,l,C,u),ie=i.memoizedState),(oe=Di||Ev(i,l,oe,u,ne,ie,U)||n!==null&&n.dependencies!==null&&oc(n.dependencies))?(ee||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,ie,U),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,ie,U)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===n.memoizedProps&&ne===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&ne===n.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=ie),p.props=u,p.state=ie,p.context=U,u=oe):(typeof p.componentDidUpdate!="function"||w===n.memoizedProps&&ne===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&ne===n.memoizedState||(i.flags|=1024),u=!1)}return p=u,Ac(n,i),u=(i.flags&128)!==0,p||u?(p=i.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,n!==null&&u?(i.child=Ua(i,n.child,null,h),i.child=Ua(i,null,l,h)):on(n,i,l,h),i.memoizedState=p.state,n=i.child):n=ei(n,i,h),n}function Hv(n,i,l,u){return za(),i.flags|=256,on(n,i,l,u),i.child}var $h={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yh(n){return{baseLanes:n,cachePool:T1()}}function Zh(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=Hn),n}function Vv(n,i,l){var u=i.pendingProps,h=!1,p=(i.flags&128)!==0,w;if((w=p)||(w=n!==null&&n.memoizedState===null?!1:(Lt.current&2)!==0),w&&(h=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,n===null){if(nt){if(h?Bi(i):qi(),(n=St)?(n=Qb(n,tr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:kr,overflow:Ar}:null,retryLane:536870912,hydrationErrors:null},l=S1(n),l.return=i,i.child=l,sn=i,St=null)):n=null,n===null)throw Oi(i);return Ty(n)?i.lanes=32:i.lanes=536870912,null}var C=u.children;return u=u.fallback,h?(qi(),h=i.mode,C=Cc({mode:"hidden",children:C},h),u=Oa(u,h,l,null),C.return=i,u.return=i,C.sibling=u,i.child=C,u=i.child,u.memoizedState=Yh(l),u.childLanes=Zh(n,w,l),i.memoizedState=$h,Ao(null,u)):(Bi(i),Gh(i,C))}var U=n.memoizedState;if(U!==null&&(C=U.dehydrated,C!==null)){if(p)i.flags&256?(Bi(i),i.flags&=-257,i=Qh(n,i,l)):i.memoizedState!==null?(qi(),i.child=n.child,i.flags|=128,i=null):(qi(),C=u.fallback,h=i.mode,u=Cc({mode:"visible",children:u.children},h),C=Oa(C,h,l,null),C.flags|=2,u.return=i,C.return=i,u.sibling=C,i.child=u,Ua(i,n.child,null,l),u=i.child,u.memoizedState=Yh(l),u.childLanes=Zh(n,w,l),i.memoizedState=$h,i=Ao(null,u));else if(Bi(i),Ty(C)){if(w=C.nextSibling&&C.nextSibling.dataset,w)var ee=w.dgst;w=ee,u=Error(a(419)),u.stack="",u.digest=w,mo({value:u,source:null,stack:null}),i=Qh(n,i,l)}else if(It||Us(n,i,l,!1),w=(l&n.childLanes)!==0,It||w){if(w=vt,w!==null&&(u=qu(w,l),u!==0&&u!==U.retryLane))throw U.retryLane=u,Na(n,u),Rn(w,n,u),Ih;Cy(C)||Bc(),i=Qh(n,i,l)}else Cy(C)?(i.flags|=192,i.child=n.child,i=null):(n=U.treeContext,St=rr(C.nextSibling),sn=i,nt=!0,Ni=null,tr=!1,n!==null&&w1(i,n),i=Gh(i,u.children),i.flags|=4096);return i}return h?(qi(),C=u.fallback,h=i.mode,U=n.child,ee=U.sibling,u=Gr(U,{mode:"hidden",children:u.children}),u.subtreeFlags=U.subtreeFlags&65011712,ee!==null?C=Gr(ee,C):(C=Oa(C,h,l,null),C.flags|=2),C.return=i,u.return=i,u.sibling=C,i.child=u,Ao(null,u),u=i.child,C=n.child.memoizedState,C===null?C=Yh(l):(h=C.cachePool,h!==null?(U=Vt._currentValue,h=h.parent!==U?{parent:U,pool:U}:h):h=T1(),C={baseLanes:C.baseLanes|l,cachePool:h}),u.memoizedState=C,u.childLanes=Zh(n,w,l),i.memoizedState=$h,Ao(n.child,u)):(Bi(i),l=n.child,n=l.sibling,l=Gr(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,n!==null&&(w=i.deletions,w===null?(i.deletions=[n],i.flags|=16):w.push(n)),i.child=l,i.memoizedState=null,l)}function Gh(n,i){return i=Cc({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Cc(n,i){return n=jn(22,n,null,i),n.lanes=0,n}function Qh(n,i,l){return Ua(i,n.child,null,l),n=Gh(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Pv(n,i,l){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),ch(n.return,i,l)}function Xh(n,i,l,u,h,p){var w=n.memoizedState;w===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:h,treeForkCount:p}:(w.isBackwards=i,w.rendering=null,w.renderingStartTime=0,w.last=u,w.tail=l,w.tailMode=h,w.treeForkCount=p)}function Iv(n,i,l){var u=i.pendingProps,h=u.revealOrder,p=u.tail;u=u.children;var w=Lt.current,C=(w&2)!==0;if(C?(w=w&1|2,i.flags|=128):w&=1,se(Lt,w),on(n,i,u,l),u=nt?yo:0,!C&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Pv(n,l,i);else if(n.tag===19)Pv(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"forwards":for(l=i.child,h=null;l!==null;)n=l.alternate,n!==null&&gc(n)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),Xh(i,!1,h,l,p,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&gc(n)===null){i.child=h;break}n=h.sibling,h.sibling=l,l=h,h=n}Xh(i,!0,l,null,p,u);break;case"together":Xh(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function ei(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Vi|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(Us(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(a(153));if(i.child!==null){for(n=i.child,l=Gr(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=Gr(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function Kh(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&oc(n)))}function pk(n,i,l){switch(i.tag){case 3:ye(i,i.stateNode.containerInfo),zi(i,Vt,n.memoizedState.cache),za();break;case 27:case 5:qe(i);break;case 4:ye(i,i.stateNode.containerInfo);break;case 10:zi(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,xh(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Bi(i),i.flags|=128,null):(l&i.child.childLanes)!==0?Vv(n,i,l):(Bi(i),n=ei(n,i,l),n!==null?n.sibling:null);Bi(i);break;case 19:var h=(n.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(Us(n,i,l,!1),u=(l&i.childLanes)!==0),h){if(u)return Iv(n,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),se(Lt,Lt.current),u)break;return null;case 22:return i.lanes=0,Lv(n,i,l,i.pendingProps);case 24:zi(i,Vt,n.memoizedState.cache)}return ei(n,i,l)}function Fv(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)It=!0;else{if(!Kh(n,l)&&(i.flags&128)===0)return It=!1,pk(n,i,l);It=(n.flags&131072)!==0}else It=!1,nt&&(i.flags&1048576)!==0&&x1(i,yo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(n=Ba(i.elementType),i.type=n,typeof n=="function")nh(n)?(u=Va(n,u),i.tag=1,i=Uv(null,i,n,u,l)):(i.tag=0,i=Fh(null,i,n,u,l));else{if(n!=null){var h=n.$$typeof;if(h===A){i.tag=11,i=Ov(null,i,n,u,l);break e}else if(h===D){i.tag=14,i=zv(null,i,n,u,l);break e}}throw i=Q(n)||n,Error(a(306,i,""))}}return i;case 0:return Fh(n,i,i.type,i.pendingProps,l);case 1:return u=i.type,h=Va(u,i.pendingProps),Uv(n,i,u,h,l);case 3:e:{if(ye(i,i.stateNode.containerInfo),n===null)throw Error(a(387));u=i.pendingProps;var p=i.memoizedState;h=p.element,ph(n,i),xo(i,u,null,l);var w=i.memoizedState;if(u=w.cache,zi(i,Vt,u),u!==p.cache&&fh(i,[Vt],l,!0),_o(),u=w.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=p,i.memoizedState=p,i.flags&256){i=Hv(n,i,u,l);break e}else if(u!==h){h=Wn(Error(a(424)),i),mo(h),i=Hv(n,i,u,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(St=rr(n.firstChild),sn=i,nt=!0,Ni=null,tr=!0,l=L1(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(za(),u===h){i=ei(n,i,l);break e}on(n,i,u,l)}i=i.child}return i;case 26:return Ac(n,i),n===null?(l=t2(i.type,null,i.pendingProps,null))?i.memoizedState=l:nt||(l=i.type,n=i.pendingProps,u=Fc(me.current).createElement(l),u[Xt]=i,u[fn]=n,un(u,l,n),Ht(u),i.stateNode=u):i.memoizedState=t2(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return qe(i),n===null&&nt&&(u=i.stateNode=Wb(i.type,i.pendingProps,me.current),sn=i,tr=!0,h=St,Yi(i.type)?(Ry=h,St=rr(u.firstChild)):St=h),on(n,i,i.pendingProps.children,l),Ac(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&nt&&((h=u=St)&&(u=Zk(u,i.type,i.pendingProps,tr),u!==null?(i.stateNode=u,sn=i,St=rr(u.firstChild),tr=!1,h=!0):h=!1),h||Oi(i)),qe(i),h=i.type,p=i.pendingProps,w=n!==null?n.memoizedProps:null,u=p.children,My(h,p)?u=null:w!==null&&My(h,w)&&(i.flags|=32),i.memoizedState!==null&&(h=Eh(n,i,ok,null,null,l),Po._currentValue=h),Ac(n,i),on(n,i,u,l),i.child;case 6:return n===null&&nt&&((n=l=St)&&(l=Gk(l,i.pendingProps,tr),l!==null?(i.stateNode=l,sn=i,St=null,n=!0):n=!1),n||Oi(i)),null;case 13:return Vv(n,i,l);case 4:return ye(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Ua(i,null,u,l):on(n,i,u,l),i.child;case 11:return Ov(n,i,i.type,i.pendingProps,l);case 7:return on(n,i,i.pendingProps,l),i.child;case 8:return on(n,i,i.pendingProps.children,l),i.child;case 12:return on(n,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,zi(i,i.type,u.value),on(n,i,u.children,l),i.child;case 9:return h=i.type._context,u=i.pendingProps.children,La(i),h=ln(h),u=u(h),i.flags|=1,on(n,i,u,l),i.child;case 14:return zv(n,i,i.type,i.pendingProps,l);case 15:return Dv(n,i,i.type,i.pendingProps,l);case 19:return Iv(n,i,l);case 31:return gk(n,i,l);case 22:return Lv(n,i,l,i.pendingProps);case 24:return La(i),u=ln(Vt),n===null?(h=yh(),h===null&&(h=vt,p=dh(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=l),h=p),i.memoizedState={parent:u,cache:h},gh(i),zi(i,Vt,h)):((n.lanes&l)!==0&&(ph(n,i),xo(i,null,null,l),_o()),h=n.memoizedState,p=i.memoizedState,h.parent!==u?(h={parent:u,cache:u},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),zi(i,Vt,u)):(u=p.cache,zi(i,Vt,u),u!==h.cache&&fh(i,[Vt],l,!0))),on(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ti(n){n.flags|=4}function Wh(n,i,l,u,h){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(pb())n.flags|=8192;else throw qa=dc,mh}else n.flags&=-16777217}function $v(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!s2(i))if(pb())n.flags|=8192;else throw qa=dc,mh}function Tc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Lu():536870912,n.lanes|=i,Ks|=i)}function Co(n,i){if(!nt)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function _t(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,u=0;if(i)for(var h=n.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags&65011712,u|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=u,n.childLanes=l,i}function vk(n,i,l){var u=i.pendingProps;switch(sh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(i),null;case 1:return _t(i),null;case 3:return l=i.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Kr(Vt),he(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(qs(i)?ti(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,oh())),_t(i),null;case 26:var h=i.type,p=i.memoizedState;return n===null?(ti(i),p!==null?(_t(i),$v(i,p)):(_t(i),Wh(i,h,null,u,l))):p?p!==n.memoizedState?(ti(i),_t(i),$v(i,p)):(_t(i),i.flags&=-16777217):(n=n.memoizedProps,n!==u&&ti(i),_t(i),Wh(i,h,n,u,l)),null;case 27:if(De(i),l=me.current,h=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ti(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return _t(i),null}n=ce.current,qs(i)?E1(i):(n=Wb(h,u,l),i.stateNode=n,ti(i))}return _t(i),null;case 5:if(De(i),h=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ti(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return _t(i),null}if(p=ce.current,qs(i))E1(i);else{var w=Fc(me.current);switch(p){case 1:p=w.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:p=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":p=w.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":p=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":p=w.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?w.createElement("select",{is:u.is}):w.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?w.createElement(h,{is:u.is}):w.createElement(h)}}p[Xt]=i,p[fn]=u;e:for(w=i.child;w!==null;){if(w.tag===5||w.tag===6)p.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===i)break e;for(;w.sibling===null;){if(w.return===null||w.return===i)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}i.stateNode=p;e:switch(un(p,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ti(i)}}return _t(i),Wh(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,l),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==u&&ti(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(n=me.current,qs(i)){if(n=i.stateNode,l=i.memoizedProps,u=null,h=sn,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}n[Xt]=i,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Vb(n.nodeValue,l)),n||Oi(i,!0)}else n=Fc(n).createTextNode(u),n[Xt]=i,i.stateNode=n}return _t(i),null;case 31:if(l=i.memoizedState,n===null||n.memoizedState!==null){if(u=qs(i),l!==null){if(n===null){if(!u)throw Error(a(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Xt]=i}else za(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;_t(i),n=!1}else l=oh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return i.flags&256?(qn(i),i):(qn(i),null);if((i.flags&128)!==0)throw Error(a(558))}return _t(i),null;case 13:if(u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=qs(i),u!==null&&u.dehydrated!==null){if(n===null){if(!h)throw Error(a(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[Xt]=i}else za(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;_t(i),h=!1}else h=oh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(qn(i),i):(qn(i),null)}return qn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=u!==null,n=n!==null&&n.memoizedState!==null,l&&(u=i.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==h&&(u.flags|=2048)),l!==n&&l&&(i.child.flags|=8192),Tc(i,i.updateQueue),_t(i),null);case 4:return he(),n===null&&Sy(i.stateNode.containerInfo),_t(i),null;case 10:return Kr(i.type),_t(i),null;case 19:if(P(Lt),u=i.memoizedState,u===null)return _t(i),null;if(h=(i.flags&128)!==0,p=u.rendering,p===null)if(h)Co(u,!1);else{if(Ot!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(p=gc(n),p!==null){for(i.flags|=128,Co(u,!1),n=p.updateQueue,i.updateQueue=n,Tc(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)b1(l,n),l=l.sibling;return se(Lt,Lt.current&1|2),nt&&Qr(i,u.treeForkCount),i.child}n=n.sibling}u.tail!==null&&te()>Dc&&(i.flags|=128,h=!0,Co(u,!1),i.lanes=4194304)}else{if(!h)if(n=gc(p),n!==null){if(i.flags|=128,h=!0,n=n.updateQueue,i.updateQueue=n,Tc(i,n),Co(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!nt)return _t(i),null}else 2*te()-u.renderingStartTime>Dc&&l!==536870912&&(i.flags|=128,h=!0,Co(u,!1),i.lanes=4194304);u.isBackwards?(p.sibling=i.child,i.child=p):(n=u.last,n!==null?n.sibling=p:i.child=p,u.last=p)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=te(),n.sibling=null,l=Lt.current,se(Lt,h?l&1|2:l&1),nt&&Qr(i,u.treeForkCount),n):(_t(i),null);case 22:case 23:return qn(i),_h(),u=i.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(l&536870912)!==0&&(i.flags&128)===0&&(_t(i),i.subtreeFlags&6&&(i.flags|=8192)):_t(i),l=i.updateQueue,l!==null&&Tc(i,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048),n!==null&&P(ja),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Kr(Vt),_t(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function bk(n,i){switch(sh(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Kr(Vt),he(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return De(i),null;case 31:if(i.memoizedState!==null){if(qn(i),i.alternate===null)throw Error(a(340));za()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(qn(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));za()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return P(Lt),null;case 4:return he(),null;case 10:return Kr(i.type),null;case 22:case 23:return qn(i),_h(),n!==null&&P(ja),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Kr(Vt),null;case 25:return null;default:return null}}function Yv(n,i){switch(sh(i),i.tag){case 3:Kr(Vt),he();break;case 26:case 27:case 5:De(i);break;case 4:he();break;case 31:i.memoizedState!==null&&qn(i);break;case 13:qn(i);break;case 19:P(Lt);break;case 10:Kr(i.type);break;case 22:case 23:qn(i),_h(),n!==null&&P(ja);break;case 24:Kr(Vt)}}function To(n,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next;l=h;do{if((l.tag&n)===n){u=void 0;var p=l.create,w=l.inst;u=p(),w.destroy=u}l=l.next}while(l!==h)}}catch(C){ht(i,i.return,C)}}function Ui(n,i,l){try{var u=i.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var p=h.next;u=p;do{if((u.tag&n)===n){var w=u.inst,C=w.destroy;if(C!==void 0){w.destroy=void 0,h=i;var U=l,ee=C;try{ee()}catch(oe){ht(h,U,oe)}}}u=u.next}while(u!==p)}}catch(oe){ht(i,i.return,oe)}}function Zv(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{B1(i,l)}catch(u){ht(n,n.return,u)}}}function Gv(n,i,l){l.props=Va(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){ht(n,i,u)}}function Ro(n,i){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof l=="function"?n.refCleanup=l(u):l.current=u}}catch(h){ht(n,i,h)}}function Cr(n,i){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(h){ht(n,i,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){ht(n,i,h)}else l.current=null}function Qv(n){var i=n.type,l=n.memoizedProps,u=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(h){ht(n,n.return,h)}}function Jh(n,i,l){try{var u=n.stateNode;Vk(u,n.type,l,i),u[fn]=i}catch(h){ht(n,n.return,h)}}function Xv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Yi(n.type)||n.tag===4}function ey(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Xv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Yi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function ty(n,i,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(n),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Yr));else if(u!==4&&(u===27&&Yi(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(ty(n,i,l),n=n.sibling;n!==null;)ty(n,i,l),n=n.sibling}function Rc(n,i,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(u!==4&&(u===27&&Yi(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Rc(n,i,l),n=n.sibling;n!==null;)Rc(n,i,l),n=n.sibling}function Kv(n){var i=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);un(i,u,l),i[Xt]=n,i[fn]=l}catch(p){ht(n,n.return,p)}}var ni=!1,Ft=!1,ny=!1,Wv=typeof WeakSet=="function"?WeakSet:Set,en=null;function Sk(n,i){if(n=n.containerInfo,wy=Kc,n=c1(n),Qd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var h=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var w=0,C=-1,U=-1,ee=0,oe=0,fe=n,ne=null;t:for(;;){for(var ie;fe!==l||h!==0&&fe.nodeType!==3||(C=w+h),fe!==p||u!==0&&fe.nodeType!==3||(U=w+u),fe.nodeType===3&&(w+=fe.nodeValue.length),(ie=fe.firstChild)!==null;)ne=fe,fe=ie;for(;;){if(fe===n)break t;if(ne===l&&++ee===h&&(C=w),ne===p&&++oe===u&&(U=w),(ie=fe.nextSibling)!==null)break;fe=ne,ne=fe.parentNode}fe=ie}l=C===-1||U===-1?null:{start:C,end:U}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ey={focusedElem:n,selectionRange:l},Kc=!1,en=i;en!==null;)if(i=en,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,en=n;else for(;en!==null;){switch(i=en,p=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)h=n[l],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,l=i,h=p.memoizedProps,p=p.memoizedState,u=l.stateNode;try{var Me=Va(l.type,h);n=u.getSnapshotBeforeUpdate(Me,p),u.__reactInternalSnapshotBeforeUpdate=n}catch(Ue){ht(l,l.return,Ue)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,l=n.nodeType,l===9)Ay(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Ay(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=i.sibling,n!==null){n.return=i.return,en=n;break}en=i.return}}function Jv(n,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:ii(n,l),u&4&&To(5,l);break;case 1:if(ii(n,l),u&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(w){ht(l,l.return,w)}else{var h=Va(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(h,i,n.__reactInternalSnapshotBeforeUpdate)}catch(w){ht(l,l.return,w)}}u&64&&Zv(l),u&512&&Ro(l,l.return);break;case 3:if(ii(n,l),u&64&&(n=l.updateQueue,n!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{B1(n,i)}catch(w){ht(l,l.return,w)}}break;case 27:i===null&&u&4&&Kv(l);case 26:case 5:ii(n,l),i===null&&u&4&&Qv(l),u&512&&Ro(l,l.return);break;case 12:ii(n,l);break;case 31:ii(n,l),u&4&&nb(n,l);break;case 13:ii(n,l),u&4&&rb(n,l),u&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=Tk.bind(null,l),Qk(n,l))));break;case 22:if(u=l.memoizedState!==null||ni,!u){i=i!==null&&i.memoizedState!==null||Ft,h=ni;var p=Ft;ni=u,(Ft=i)&&!p?ai(n,l,(l.subtreeFlags&8772)!==0):ii(n,l),ni=h,Ft=p}break;case 30:break;default:ii(n,l)}}function eb(n){var i=n.alternate;i!==null&&(n.alternate=null,eb(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&to(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Et=null,kn=!1;function ri(n,i,l){for(l=l.child;l!==null;)tb(n,i,l),l=l.sibling}function tb(n,i,l){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Rt,l)}catch{}switch(l.tag){case 26:Ft||Cr(l,i),ri(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ft||Cr(l,i);var u=Et,h=kn;Yi(l.type)&&(Et=l.stateNode,kn=!1),ri(n,i,l),Uo(l.stateNode),Et=u,kn=h;break;case 5:Ft||Cr(l,i);case 6:if(u=Et,h=kn,Et=null,ri(n,i,l),Et=u,kn=h,Et!==null)if(kn)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(l.stateNode)}catch(p){ht(l,i,p)}else try{Et.removeChild(l.stateNode)}catch(p){ht(l,i,p)}break;case 18:Et!==null&&(kn?(n=Et,Zb(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),al(n)):Zb(Et,l.stateNode));break;case 4:u=Et,h=kn,Et=l.stateNode.containerInfo,kn=!0,ri(n,i,l),Et=u,kn=h;break;case 0:case 11:case 14:case 15:Ui(2,l,i),Ft||Ui(4,l,i),ri(n,i,l);break;case 1:Ft||(Cr(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Gv(l,i,u)),ri(n,i,l);break;case 21:ri(n,i,l);break;case 22:Ft=(u=Ft)||l.memoizedState!==null,ri(n,i,l),Ft=u;break;default:ri(n,i,l)}}function nb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{al(n)}catch(l){ht(i,i.return,l)}}}function rb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{al(n)}catch(l){ht(i,i.return,l)}}function _k(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Wv),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Wv),i;default:throw Error(a(435,n.tag))}}function Nc(n,i){var l=_k(n);i.forEach(function(u){if(!l.has(u)){l.add(u);var h=Rk.bind(null,n,u);u.then(h,h)}})}function An(n,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var h=l[u],p=n,w=i,C=w;e:for(;C!==null;){switch(C.tag){case 27:if(Yi(C.type)){Et=C.stateNode,kn=!1;break e}break;case 5:Et=C.stateNode,kn=!1;break e;case 3:case 4:Et=C.stateNode.containerInfo,kn=!0;break e}C=C.return}if(Et===null)throw Error(a(160));tb(p,w,h),Et=null,kn=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)ib(i,n),i=i.sibling}var yr=null;function ib(n,i){var l=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:An(i,n),Cn(n),u&4&&(Ui(3,n,n.return),To(3,n),Ui(5,n,n.return));break;case 1:An(i,n),Cn(n),u&512&&(Ft||l===null||Cr(l,l.return)),u&64&&ni&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var h=yr;if(An(i,n),Cn(n),u&512&&(Ft||l===null||Cr(l,l.return)),u&4){var p=l!==null?l.memoizedState:null;if(u=n.memoizedState,l===null)if(u===null)if(n.stateNode===null){e:{u=n.type,l=n.memoizedProps,h=h.ownerDocument||h;t:switch(u){case"title":p=h.getElementsByTagName("title")[0],(!p||p[Ma]||p[Xt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(u),h.head.insertBefore(p,h.querySelector("head > title"))),un(p,u,l),p[Xt]=n,Ht(p),u=p;break e;case"link":var w=i2("link","href",h).get(u+(l.href||""));if(w){for(var C=0;C<w.length;C++)if(p=w[C],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){w.splice(C,1);break t}}p=h.createElement(u),un(p,u,l),h.head.appendChild(p);break;case"meta":if(w=i2("meta","content",h).get(u+(l.content||""))){for(C=0;C<w.length;C++)if(p=w[C],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){w.splice(C,1);break t}}p=h.createElement(u),un(p,u,l),h.head.appendChild(p);break;default:throw Error(a(468,u))}p[Xt]=n,Ht(p),u=p}n.stateNode=u}else a2(h,n.type,n.stateNode);else n.stateNode=r2(h,u,n.memoizedProps);else p!==u?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,u===null?a2(h,n.type,n.stateNode):r2(h,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Jh(n,n.memoizedProps,l.memoizedProps)}break;case 27:An(i,n),Cn(n),u&512&&(Ft||l===null||Cr(l,l.return)),l!==null&&u&4&&Jh(n,n.memoizedProps,l.memoizedProps);break;case 5:if(An(i,n),Cn(n),u&512&&(Ft||l===null||Cr(l,l.return)),n.flags&32){h=n.stateNode;try{Cs(h,"")}catch(Me){ht(n,n.return,Me)}}u&4&&n.stateNode!=null&&(h=n.memoizedProps,Jh(n,h,l!==null?l.memoizedProps:h)),u&1024&&(ny=!0);break;case 6:if(An(i,n),Cn(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,l=n.stateNode;try{l.nodeValue=u}catch(Me){ht(n,n.return,Me)}}break;case 3:if(Zc=null,h=yr,yr=$c(i.containerInfo),An(i,n),yr=h,Cn(n),u&4&&l!==null&&l.memoizedState.isDehydrated)try{al(i.containerInfo)}catch(Me){ht(n,n.return,Me)}ny&&(ny=!1,ab(n));break;case 4:u=yr,yr=$c(n.stateNode.containerInfo),An(i,n),Cn(n),yr=u;break;case 12:An(i,n),Cn(n);break;case 31:An(i,n),Cn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Nc(n,u)));break;case 13:An(i,n),Cn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(zc=te()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Nc(n,u)));break;case 22:h=n.memoizedState!==null;var U=l!==null&&l.memoizedState!==null,ee=ni,oe=Ft;if(ni=ee||h,Ft=oe||U,An(i,n),Ft=oe,ni=ee,Cn(n),u&8192)e:for(i=n.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(l===null||U||ni||Ft||Pa(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){U=l=i;try{if(p=U.stateNode,h)w=p.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{C=U.stateNode;var fe=U.memoizedProps.style,ne=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;C.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Me){ht(U,U.return,Me)}}}else if(i.tag===6){if(l===null){U=i;try{U.stateNode.nodeValue=h?"":U.memoizedProps}catch(Me){ht(U,U.return,Me)}}}else if(i.tag===18){if(l===null){U=i;try{var ie=U.stateNode;h?Gb(ie,!0):Gb(U.stateNode,!1)}catch(Me){ht(U,U.return,Me)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=n.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Nc(n,l))));break;case 19:An(i,n),Cn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Nc(n,u)));break;case 30:break;case 21:break;default:An(i,n),Cn(n)}}function Cn(n){var i=n.flags;if(i&2){try{for(var l,u=n.return;u!==null;){if(Xv(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var h=l.stateNode,p=ey(n);Rc(n,p,h);break;case 5:var w=l.stateNode;l.flags&32&&(Cs(w,""),l.flags&=-33);var C=ey(n);Rc(n,C,w);break;case 3:case 4:var U=l.stateNode.containerInfo,ee=ey(n);ty(n,ee,U);break;default:throw Error(a(161))}}catch(oe){ht(n,n.return,oe)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function ab(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;ab(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function ii(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Jv(n,i.alternate,i),i=i.sibling}function Pa(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Ui(4,i,i.return),Pa(i);break;case 1:Cr(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Gv(i,i.return,l),Pa(i);break;case 27:Uo(i.stateNode);case 26:case 5:Cr(i,i.return),Pa(i);break;case 22:i.memoizedState===null&&Pa(i);break;case 30:Pa(i);break;default:Pa(i)}n=n.sibling}}function ai(n,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,h=n,p=i,w=p.flags;switch(p.tag){case 0:case 11:case 15:ai(h,p,l),To(4,p);break;case 1:if(ai(h,p,l),u=p,h=u.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(ee){ht(u,u.return,ee)}if(u=p,h=u.updateQueue,h!==null){var C=u.stateNode;try{var U=h.shared.hiddenCallbacks;if(U!==null)for(h.shared.hiddenCallbacks=null,h=0;h<U.length;h++)j1(U[h],C)}catch(ee){ht(u,u.return,ee)}}l&&w&64&&Zv(p),Ro(p,p.return);break;case 27:Kv(p);case 26:case 5:ai(h,p,l),l&&u===null&&w&4&&Qv(p),Ro(p,p.return);break;case 12:ai(h,p,l);break;case 31:ai(h,p,l),l&&w&4&&nb(h,p);break;case 13:ai(h,p,l),l&&w&4&&rb(h,p);break;case 22:p.memoizedState===null&&ai(h,p,l),Ro(p,p.return);break;case 30:break;default:ai(h,p,l)}i=i.sibling}}function ry(n,i){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&go(l))}function iy(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&go(n))}function mr(n,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)sb(n,i,l,u),i=i.sibling}function sb(n,i,l,u){var h=i.flags;switch(i.tag){case 0:case 11:case 15:mr(n,i,l,u),h&2048&&To(9,i);break;case 1:mr(n,i,l,u);break;case 3:mr(n,i,l,u),h&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&go(n)));break;case 12:if(h&2048){mr(n,i,l,u),n=i.stateNode;try{var p=i.memoizedProps,w=p.id,C=p.onPostCommit;typeof C=="function"&&C(w,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(U){ht(i,i.return,U)}}else mr(n,i,l,u);break;case 31:mr(n,i,l,u);break;case 13:mr(n,i,l,u);break;case 23:break;case 22:p=i.stateNode,w=i.alternate,i.memoizedState!==null?p._visibility&2?mr(n,i,l,u):No(n,i):p._visibility&2?mr(n,i,l,u):(p._visibility|=2,Gs(n,i,l,u,(i.subtreeFlags&10256)!==0||!1)),h&2048&&ry(w,i);break;case 24:mr(n,i,l,u),h&2048&&iy(i.alternate,i);break;default:mr(n,i,l,u)}}function Gs(n,i,l,u,h){for(h=h&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var p=n,w=i,C=l,U=u,ee=w.flags;switch(w.tag){case 0:case 11:case 15:Gs(p,w,C,U,h),To(8,w);break;case 23:break;case 22:var oe=w.stateNode;w.memoizedState!==null?oe._visibility&2?Gs(p,w,C,U,h):No(p,w):(oe._visibility|=2,Gs(p,w,C,U,h)),h&&ee&2048&&ry(w.alternate,w);break;case 24:Gs(p,w,C,U,h),h&&ee&2048&&iy(w.alternate,w);break;default:Gs(p,w,C,U,h)}i=i.sibling}}function No(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,u=i,h=u.flags;switch(u.tag){case 22:No(l,u),h&2048&&ry(u.alternate,u);break;case 24:No(l,u),h&2048&&iy(u.alternate,u);break;default:No(l,u)}i=i.sibling}}var Oo=8192;function Qs(n,i,l){if(n.subtreeFlags&Oo)for(n=n.child;n!==null;)lb(n,i,l),n=n.sibling}function lb(n,i,l){switch(n.tag){case 26:Qs(n,i,l),n.flags&Oo&&n.memoizedState!==null&&lA(l,yr,n.memoizedState,n.memoizedProps);break;case 5:Qs(n,i,l);break;case 3:case 4:var u=yr;yr=$c(n.stateNode.containerInfo),Qs(n,i,l),yr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Oo,Oo=16777216,Qs(n,i,l),Oo=u):Qs(n,i,l));break;default:Qs(n,i,l)}}function ob(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function zo(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];en=u,cb(u,n)}ob(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)ub(n),n=n.sibling}function ub(n){switch(n.tag){case 0:case 11:case 15:zo(n),n.flags&2048&&Ui(9,n,n.return);break;case 3:zo(n);break;case 12:zo(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Oc(n)):zo(n);break;default:zo(n)}}function Oc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];en=u,cb(u,n)}ob(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Ui(8,i,i.return),Oc(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Oc(i));break;default:Oc(i)}n=n.sibling}}function cb(n,i){for(;en!==null;){var l=en;switch(l.tag){case 0:case 11:case 15:Ui(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:go(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,en=u;else e:for(l=n;en!==null;){u=en;var h=u.sibling,p=u.return;if(eb(u),u===l){en=null;break e}if(h!==null){h.return=p,en=h;break e}en=p}}}var xk={getCacheForType:function(n){var i=ln(Vt),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l},cacheSignal:function(){return ln(Vt).controller.signal}},wk=typeof WeakMap=="function"?WeakMap:Map,ct=0,vt=null,Ke=null,et=0,dt=0,Un=null,Hi=!1,Xs=!1,ay=!1,si=0,Ot=0,Vi=0,Ia=0,sy=0,Hn=0,Ks=0,Do=null,Tn=null,ly=!1,zc=0,fb=0,Dc=1/0,Lc=null,Pi=null,Kt=0,Ii=null,Ws=null,li=0,oy=0,uy=null,db=null,Lo=0,cy=null;function Vn(){return(ct&2)!==0&&et!==0?et&-et:q.T!==null?gy():Uu()}function hb(){if(Hn===0)if((et&536870912)===0||nt){var n=xs;xs<<=1,(xs&3932160)===0&&(xs=262144),Hn=n}else Hn=536870912;return n=Bn.current,n!==null&&(n.flags|=32),Hn}function Rn(n,i,l){(n===vt&&(dt===2||dt===9)||n.cancelPendingCommit!==null)&&(Js(n,0),Fi(n,et,Hn,!1)),Ea(n,l),((ct&2)===0||n!==vt)&&(n===vt&&((ct&2)===0&&(Ia|=l),Ot===4&&Fi(n,et,Hn,!1)),Tr(n))}function yb(n,i,l){if((ct&6)!==0)throw Error(a(327));var u=!l&&(i&127)===0&&(i&n.expiredLanes)===0||wa(n,i),h=u?kk(n,i):dy(n,i,!0),p=u;do{if(h===0){Xs&&!u&&Fi(n,i,0,!1);break}else{if(l=n.current.alternate,p&&!Ek(l)){h=dy(n,i,!1),p=!1;continue}if(h===2){if(p=i,n.errorRecoveryDisabledLanes&p)var w=0;else w=n.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var C=n;h=Do;var U=C.current.memoizedState.isDehydrated;if(U&&(Js(C,w).flags|=256),w=dy(C,w,!1),w!==2){if(ay&&!U){C.errorRecoveryDisabledLanes|=p,Ia|=p,h=4;break e}p=Tn,Tn=h,p!==null&&(Tn===null?Tn=p:Tn.push.apply(Tn,p))}h=w}if(p=!1,h!==2)continue}}if(h===1){Js(n,0),Fi(n,i,0,!0);break}e:{switch(u=n,p=h,p){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Fi(u,i,Hn,!Hi);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(h=zc+300-te(),10<h)){if(Fi(u,i,Hn,!Hi),Es(u,0,!0)!==0)break e;li=i,u.timeoutHandle=$b(mb.bind(null,u,l,Tn,Lc,ly,i,Hn,Ia,Ks,Hi,p,"Throttled",-0,0),h);break e}mb(u,l,Tn,Lc,ly,i,Hn,Ia,Ks,Hi,p,null,-0,0)}}break}while(!0);Tr(n)}function mb(n,i,l,u,h,p,w,C,U,ee,oe,fe,ne,ie){if(n.timeoutHandle=-1,fe=i.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yr},lb(i,p,fe);var Me=(p&62914560)===p?zc-te():(p&4194048)===p?fb-te():0;if(Me=oA(fe,Me),Me!==null){li=p,n.cancelPendingCommit=Me(wb.bind(null,n,i,p,l,u,h,w,C,U,oe,fe,null,ne,ie)),Fi(n,p,w,!ee);return}}wb(n,i,p,l,u,h,w,C,U)}function Ek(n){for(var i=n;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var h=l[u],p=h.getSnapshot;h=h.value;try{if(!Ln(p(),h))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Fi(n,i,l,u){i&=~sy,i&=~Ia,n.suspendedLanes|=i,n.pingedLanes&=~i,u&&(n.warmLanes|=i),u=n.expirationTimes;for(var h=i;0<h;){var p=31-Qt(h),w=1<<p;u[p]=-1,h&=~w}l!==0&&ju(n,l,i)}function jc(){return(ct&6)===0?(jo(0),!1):!0}function fy(){if(Ke!==null){if(dt===0)var n=Ke.return;else n=Ke,Xr=Da=null,Ah(n),Is=null,vo=0,n=Ke;for(;n!==null;)Yv(n.alternate,n),n=n.return;Ke=null}}function Js(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,Fk(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),li=0,fy(),vt=n,Ke=l=Gr(n.current,null),et=i,dt=0,Un=null,Hi=!1,Xs=wa(n,i),ay=!1,Ks=Hn=sy=Ia=Vi=Ot=0,Tn=Do=null,ly=!1,(i&8)!==0&&(i|=i&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=i;0<u;){var h=31-Qt(u),p=1<<h;i|=n[h],u&=~p}return si=i,rc(),l}function gb(n,i){$e=null,q.H=ko,i===Ps||i===fc?(i=O1(),dt=3):i===mh?(i=O1(),dt=4):dt=i===Ih?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Un=i,Ke===null&&(Ot=1,Mc(n,Wn(i,n.current)))}function pb(){var n=Bn.current;return n===null?!0:(et&4194048)===et?nr===null:(et&62914560)===et||(et&536870912)!==0?n===nr:!1}function vb(){var n=q.H;return q.H=ko,n===null?ko:n}function bb(){var n=q.A;return q.A=xk,n}function Bc(){Ot=4,Hi||(et&4194048)!==et&&Bn.current!==null||(Xs=!0),(Vi&134217727)===0&&(Ia&134217727)===0||vt===null||Fi(vt,et,Hn,!1)}function dy(n,i,l){var u=ct;ct|=2;var h=vb(),p=bb();(vt!==n||et!==i)&&(Lc=null,Js(n,i)),i=!1;var w=Ot;e:do try{if(dt!==0&&Ke!==null){var C=Ke,U=Un;switch(dt){case 8:fy(),w=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(i=!0);var ee=dt;if(dt=0,Un=null,el(n,C,U,ee),l&&Xs){w=0;break e}break;default:ee=dt,dt=0,Un=null,el(n,C,U,ee)}}Mk(),w=Ot;break}catch(oe){gb(n,oe)}while(!0);return i&&n.shellSuspendCounter++,Xr=Da=null,ct=u,q.H=h,q.A=p,Ke===null&&(vt=null,et=0,rc()),w}function Mk(){for(;Ke!==null;)Sb(Ke)}function kk(n,i){var l=ct;ct|=2;var u=vb(),h=bb();vt!==n||et!==i?(Lc=null,Dc=te()+500,Js(n,i)):Xs=wa(n,i);e:do try{if(dt!==0&&Ke!==null){i=Ke;var p=Un;t:switch(dt){case 1:dt=0,Un=null,el(n,i,p,1);break;case 2:case 9:if(R1(p)){dt=0,Un=null,_b(i);break}i=function(){dt!==2&&dt!==9||vt!==n||(dt=7),Tr(n)},p.then(i,i);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:R1(p)?(dt=0,Un=null,_b(i)):(dt=0,Un=null,el(n,i,p,7));break;case 5:var w=null;switch(Ke.tag){case 26:w=Ke.memoizedState;case 5:case 27:var C=Ke;if(w?s2(w):C.stateNode.complete){dt=0,Un=null;var U=C.sibling;if(U!==null)Ke=U;else{var ee=C.return;ee!==null?(Ke=ee,qc(ee)):Ke=null}break t}}dt=0,Un=null,el(n,i,p,5);break;case 6:dt=0,Un=null,el(n,i,p,6);break;case 8:fy(),Ot=6;break e;default:throw Error(a(462))}}Ak();break}catch(oe){gb(n,oe)}while(!0);return Xr=Da=null,q.H=u,q.A=h,ct=l,Ke!==null?0:(vt=null,et=0,rc(),Ot)}function Ak(){for(;Ke!==null&&!H();)Sb(Ke)}function Sb(n){var i=Fv(n.alternate,n,si);n.memoizedProps=n.pendingProps,i===null?qc(n):Ke=i}function _b(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=qv(l,i,i.pendingProps,i.type,void 0,et);break;case 11:i=qv(l,i,i.pendingProps,i.type.render,i.ref,et);break;case 5:Ah(i);default:Yv(l,i),i=Ke=b1(i,si),i=Fv(l,i,si)}n.memoizedProps=n.pendingProps,i===null?qc(n):Ke=i}function el(n,i,l,u){Xr=Da=null,Ah(i),Is=null,vo=0;var h=i.return;try{if(mk(n,h,i,l,et)){Ot=1,Mc(n,Wn(l,n.current)),Ke=null;return}}catch(p){if(h!==null)throw Ke=h,p;Ot=1,Mc(n,Wn(l,n.current)),Ke=null;return}i.flags&32768?(nt||u===1?n=!0:Xs||(et&536870912)!==0?n=!1:(Hi=n=!0,(u===2||u===9||u===3||u===6)&&(u=Bn.current,u!==null&&u.tag===13&&(u.flags|=16384))),xb(i,n)):qc(i)}function qc(n){var i=n;do{if((i.flags&32768)!==0){xb(i,Hi);return}n=i.return;var l=vk(i.alternate,i,si);if(l!==null){Ke=l;return}if(i=i.sibling,i!==null){Ke=i;return}Ke=i=n}while(i!==null);Ot===0&&(Ot=5)}function xb(n,i){do{var l=bk(n.alternate,n);if(l!==null){l.flags&=32767,Ke=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(n=n.sibling,n!==null)){Ke=n;return}Ke=n=l}while(n!==null);Ot=6,Ke=null}function wb(n,i,l,u,h,p,w,C,U){n.cancelPendingCommit=null;do Uc();while(Kt!==0);if((ct&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(p=i.lanes|i.childLanes,p|=eh,Rd(n,l,p,w,C,U),n===vt&&(Ke=vt=null,et=0),Ws=i,Ii=n,li=l,oy=p,uy=h,db=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Nk(we,function(){return Cb(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=q.T,q.T=null,h=$.p,$.p=2,w=ct,ct|=4;try{Sk(n,i,l)}finally{ct=w,$.p=h,q.T=u}}Kt=1,Eb(),Mb(),kb()}}function Eb(){if(Kt===1){Kt=0;var n=Ii,i=Ws,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=q.T,q.T=null;var u=$.p;$.p=2;var h=ct;ct|=4;try{ib(i,n);var p=Ey,w=c1(n.containerInfo),C=p.focusedElem,U=p.selectionRange;if(w!==C&&C&&C.ownerDocument&&u1(C.ownerDocument.documentElement,C)){if(U!==null&&Qd(C)){var ee=U.start,oe=U.end;if(oe===void 0&&(oe=ee),"selectionStart"in C)C.selectionStart=ee,C.selectionEnd=Math.min(oe,C.value.length);else{var fe=C.ownerDocument||document,ne=fe&&fe.defaultView||window;if(ne.getSelection){var ie=ne.getSelection(),Me=C.textContent.length,Ue=Math.min(U.start,Me),gt=U.end===void 0?Ue:Math.min(U.end,Me);!ie.extend&&Ue>gt&&(w=gt,gt=Ue,Ue=w);var Y=o1(C,Ue),I=o1(C,gt);if(Y&&I&&(ie.rangeCount!==1||ie.anchorNode!==Y.node||ie.anchorOffset!==Y.offset||ie.focusNode!==I.node||ie.focusOffset!==I.offset)){var J=fe.createRange();J.setStart(Y.node,Y.offset),ie.removeAllRanges(),Ue>gt?(ie.addRange(J),ie.extend(I.node,I.offset)):(J.setEnd(I.node,I.offset),ie.addRange(J))}}}}for(fe=[],ie=C;ie=ie.parentNode;)ie.nodeType===1&&fe.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<fe.length;C++){var ue=fe[C];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}Kc=!!wy,Ey=wy=null}finally{ct=h,$.p=u,q.T=l}}n.current=i,Kt=2}}function Mb(){if(Kt===2){Kt=0;var n=Ii,i=Ws,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=q.T,q.T=null;var u=$.p;$.p=2;var h=ct;ct|=4;try{Jv(n,i.alternate,i)}finally{ct=h,$.p=u,q.T=l}}Kt=3}}function kb(){if(Kt===4||Kt===3){Kt=0,X();var n=Ii,i=Ws,l=li,u=db;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Kt=5:(Kt=0,Ws=Ii=null,Ab(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(Pi=null),eo(l),i=i.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Rt,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=q.T,h=$.p,$.p=2,q.T=null;try{for(var p=n.onRecoverableError,w=0;w<u.length;w++){var C=u[w];p(C.value,{componentStack:C.stack})}}finally{q.T=i,$.p=h}}(li&3)!==0&&Uc(),Tr(n),h=n.pendingLanes,(l&261930)!==0&&(h&42)!==0?n===cy?Lo++:(Lo=0,cy=n):Lo=0,jo(0)}}function Ab(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,go(i)))}function Uc(){return Eb(),Mb(),kb(),Cb()}function Cb(){if(Kt!==5)return!1;var n=Ii,i=oy;oy=0;var l=eo(li),u=q.T,h=$.p;try{$.p=32>l?32:l,q.T=null,l=uy,uy=null;var p=Ii,w=li;if(Kt=0,Ws=Ii=null,li=0,(ct&6)!==0)throw Error(a(331));var C=ct;if(ct|=4,ub(p.current),sb(p,p.current,w,l),ct=C,jo(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Rt,p)}catch{}return!0}finally{$.p=h,q.T=u,Ab(n,i)}}function Tb(n,i,l){i=Wn(l,i),i=Ph(n.stateNode,i,2),n=ji(n,i,2),n!==null&&(Ea(n,2),Tr(n))}function ht(n,i,l){if(n.tag===3)Tb(n,n,l);else for(;i!==null;){if(i.tag===3){Tb(i,n,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Pi===null||!Pi.has(u))){n=Wn(l,n),l=Rv(2),u=ji(i,l,2),u!==null&&(Nv(l,u,i,n),Ea(u,2),Tr(u));break}}i=i.return}}function hy(n,i,l){var u=n.pingCache;if(u===null){u=n.pingCache=new wk;var h=new Set;u.set(i,h)}else h=u.get(i),h===void 0&&(h=new Set,u.set(i,h));h.has(l)||(ay=!0,h.add(l),n=Ck.bind(null,n,i,l),i.then(n,n))}function Ck(n,i,l){var u=n.pingCache;u!==null&&u.delete(i),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,vt===n&&(et&l)===l&&(Ot===4||Ot===3&&(et&62914560)===et&&300>te()-zc?(ct&2)===0&&Js(n,0):sy|=l,Ks===et&&(Ks=0)),Tr(n)}function Rb(n,i){i===0&&(i=Lu()),n=Na(n,i),n!==null&&(Ea(n,i),Tr(n))}function Tk(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),Rb(n,l)}function Rk(n,i){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,h=n.memoizedState;h!==null&&(l=h.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),Rb(n,l)}function Nk(n,i){return Qn(n,i)}var Hc=null,tl=null,yy=!1,Vc=!1,my=!1,$i=0;function Tr(n){n!==tl&&n.next===null&&(tl===null?Hc=tl=n:tl=tl.next=n),Vc=!0,yy||(yy=!0,zk())}function jo(n,i){if(!my&&Vc){my=!0;do for(var l=!1,u=Hc;u!==null;){if(n!==0){var h=u.pendingLanes;if(h===0)var p=0;else{var w=u.suspendedLanes,C=u.pingedLanes;p=(1<<31-Qt(42|n)+1)-1,p&=h&~(w&~C),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,Db(u,p))}else p=et,p=Es(u,u===vt?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||wa(u,p)||(l=!0,Db(u,p));u=u.next}while(l);my=!1}}function Ok(){Nb()}function Nb(){Vc=yy=!1;var n=0;$i!==0&&Ik()&&(n=$i);for(var i=te(),l=null,u=Hc;u!==null;){var h=u.next,p=Ob(u,i);p===0?(u.next=null,l===null?Hc=h:l.next=h,h===null&&(tl=l)):(l=u,(n!==0||(p&3)!==0)&&(Vc=!0)),u=h}Kt!==0&&Kt!==5||jo(n),$i!==0&&($i=0)}function Ob(n,i){for(var l=n.suspendedLanes,u=n.pingedLanes,h=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var w=31-Qt(p),C=1<<w,U=h[w];U===-1?((C&l)===0||(C&u)!==0)&&(h[w]=Td(C,i)):U<=i&&(n.expiredLanes|=C),p&=~C}if(i=vt,l=et,l=Es(n,n===i?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,l===0||n===i&&(dt===2||dt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Xn(u),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||wa(n,l)){if(i=l&-l,i===n.callbackPriority)return i;switch(u!==null&&Xn(u),eo(l)){case 2:case 8:l=pe;break;case 32:l=we;break;case 268435456:l=Je;break;default:l=we}return u=zb.bind(null,n),l=Qn(l,u),n.callbackPriority=i,n.callbackNode=l,i}return u!==null&&u!==null&&Xn(u),n.callbackPriority=2,n.callbackNode=null,2}function zb(n,i){if(Kt!==0&&Kt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Uc()&&n.callbackNode!==l)return null;var u=et;return u=Es(n,n===vt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(yb(n,u,i),Ob(n,te()),n.callbackNode!=null&&n.callbackNode===l?zb.bind(null,n):null)}function Db(n,i){if(Uc())return null;yb(n,i,!0)}function zk(){$k(function(){(ct&6)!==0?Qn(ge,Ok):Nb()})}function gy(){if($i===0){var n=Hs;n===0&&(n=Vr,Vr<<=1,(Vr&261888)===0&&(Vr=256)),$i=n}return $i}function Lb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Qu(""+n)}function jb(n,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,n.id&&l.setAttribute("form",n.id),i.parentNode.insertBefore(l,i),n=new FormData(n),l.parentNode.removeChild(l),n}function Dk(n,i,l,u,h){if(i==="submit"&&l&&l.stateNode===h){var p=Lb((h[fn]||null).action),w=u.submitter;w&&(i=(i=w[fn]||null)?Lb(i.formAction):w.getAttribute("formAction"),i!==null&&(p=i,w=null));var C=new Ju("action","action",null,u,h);n.push({event:C,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if($i!==0){var U=w?jb(h,w):new FormData(h);jh(l,{pending:!0,data:U,method:h.method,action:p},null,U)}}else typeof p=="function"&&(C.preventDefault(),U=w?jb(h,w):new FormData(h),jh(l,{pending:!0,data:U,method:h.method,action:p},p,U))},currentTarget:h}]})}}for(var py=0;py<Jd.length;py++){var vy=Jd[py],Lk=vy.toLowerCase(),jk=vy[0].toUpperCase()+vy.slice(1);hr(Lk,"on"+jk)}hr(h1,"onAnimationEnd"),hr(y1,"onAnimationIteration"),hr(m1,"onAnimationStart"),hr("dblclick","onDoubleClick"),hr("focusin","onFocus"),hr("focusout","onBlur"),hr(W4,"onTransitionRun"),hr(J4,"onTransitionStart"),hr(ek,"onTransitionCancel"),hr(g1,"onTransitionEnd"),Ai("onMouseEnter",["mouseout","mouseover"]),Ai("onMouseLeave",["mouseout","mouseover"]),Ai("onPointerEnter",["pointerout","pointerover"]),Ai("onPointerLeave",["pointerout","pointerover"]),Fr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bo));function Bb(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var u=n[l],h=u.event;u=u.listeners;e:{var p=void 0;if(i)for(var w=u.length-1;0<=w;w--){var C=u[w],U=C.instance,ee=C.currentTarget;if(C=C.listener,U!==p&&h.isPropagationStopped())break e;p=C,h.currentTarget=ee;try{p(h)}catch(oe){nc(oe)}h.currentTarget=null,p=U}else for(w=0;w<u.length;w++){if(C=u[w],U=C.instance,ee=C.currentTarget,C=C.listener,U!==p&&h.isPropagationStopped())break e;p=C,h.currentTarget=ee;try{p(h)}catch(oe){nc(oe)}h.currentTarget=null,p=U}}}}function We(n,i){var l=i[Ms];l===void 0&&(l=i[Ms]=new Set);var u=n+"__bubble";l.has(u)||(qb(i,n,2,!1),l.add(u))}function by(n,i,l){var u=0;i&&(u|=4),qb(l,n,u,i)}var Pc="_reactListening"+Math.random().toString(36).slice(2);function Sy(n){if(!n[Pc]){n[Pc]=!0,Iu.forEach(function(l){l!=="selectionchange"&&(Bk.has(l)||by(l,!1,n),by(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Pc]||(i[Pc]=!0,by("selectionchange",!1,i))}}function qb(n,i,l,u){switch(h2(i)){case 2:var h=fA;break;case 8:h=dA;break;default:h=Ly}l=h.bind(null,i,l,n),h=void 0,!Hd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),u?h!==void 0?n.addEventListener(i,l,{capture:!0,passive:h}):n.addEventListener(i,l,!0):h!==void 0?n.addEventListener(i,l,{passive:h}):n.addEventListener(i,l,!1)}function _y(n,i,l,u,h){var p=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var w=u.tag;if(w===3||w===4){var C=u.stateNode.containerInfo;if(C===h)break;if(w===4)for(w=u.return;w!==null;){var U=w.tag;if((U===3||U===4)&&w.stateNode.containerInfo===h)return;w=w.return}for(;C!==null;){if(w=wi(C),w===null)return;if(U=w.tag,U===5||U===6||U===26||U===27){u=p=w;continue e}C=C.parentNode}}u=u.return}I0(function(){var ee=p,oe=qd(l),fe=[];e:{var ne=p1.get(n);if(ne!==void 0){var ie=Ju,Me=n;switch(n){case"keypress":if(Ku(l)===0)break e;case"keydown":case"keyup":ie=R4;break;case"focusin":Me="focus",ie=Fd;break;case"focusout":Me="blur",ie=Fd;break;case"beforeblur":case"afterblur":ie=Fd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=Y0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=v4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=z4;break;case h1:case y1:case m1:ie=_4;break;case g1:ie=L4;break;case"scroll":case"scrollend":ie=g4;break;case"wheel":ie=B4;break;case"copy":case"cut":case"paste":ie=w4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=G0;break;case"toggle":case"beforetoggle":ie=U4}var Ue=(i&4)!==0,gt=!Ue&&(n==="scroll"||n==="scrollend"),Y=Ue?ne!==null?ne+"Capture":null:ne;Ue=[];for(var I=ee,J;I!==null;){var ue=I;if(J=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||J===null||Y===null||(ue=io(I,Y),ue!=null&&Ue.push(qo(I,ue,J))),gt)break;I=I.return}0<Ue.length&&(ne=new ie(ne,Me,null,l,oe),fe.push({event:ne,listeners:Ue}))}}if((i&7)===0){e:{if(ne=n==="mouseover"||n==="pointerover",ie=n==="mouseout"||n==="pointerout",ne&&l!==Bd&&(Me=l.relatedTarget||l.fromElement)&&(wi(Me)||Me[Ir]))break e;if((ie||ne)&&(ne=oe.window===oe?oe:(ne=oe.ownerDocument)?ne.defaultView||ne.parentWindow:window,ie?(Me=l.relatedTarget||l.toElement,ie=ee,Me=Me?wi(Me):null,Me!==null&&(gt=o(Me),Ue=Me.tag,Me!==gt||Ue!==5&&Ue!==27&&Ue!==6)&&(Me=null)):(ie=null,Me=ee),ie!==Me)){if(Ue=Y0,ue="onMouseLeave",Y="onMouseEnter",I="mouse",(n==="pointerout"||n==="pointerover")&&(Ue=G0,ue="onPointerLeave",Y="onPointerEnter",I="pointer"),gt=ie==null?ne:Mi(ie),J=Me==null?ne:Mi(Me),ne=new Ue(ue,I+"leave",ie,l,oe),ne.target=gt,ne.relatedTarget=J,ue=null,wi(oe)===ee&&(Ue=new Ue(Y,I+"enter",Me,l,oe),Ue.target=J,Ue.relatedTarget=gt,ue=Ue),gt=ue,ie&&Me)t:{for(Ue=qk,Y=ie,I=Me,J=0,ue=Y;ue;ue=Ue(ue))J++;ue=0;for(var je=I;je;je=Ue(je))ue++;for(;0<J-ue;)Y=Ue(Y),J--;for(;0<ue-J;)I=Ue(I),ue--;for(;J--;){if(Y===I||I!==null&&Y===I.alternate){Ue=Y;break t}Y=Ue(Y),I=Ue(I)}Ue=null}else Ue=null;ie!==null&&Ub(fe,ne,ie,Ue,!1),Me!==null&&gt!==null&&Ub(fe,gt,Me,Ue,!0)}}e:{if(ne=ee?Mi(ee):window,ie=ne.nodeName&&ne.nodeName.toLowerCase(),ie==="select"||ie==="input"&&ne.type==="file")var st=n1;else if(e1(ne))if(r1)st=Q4;else{st=Z4;var Ne=Y4}else ie=ne.nodeName,!ie||ie.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&jd(ee.elementType)&&(st=n1):st=G4;if(st&&(st=st(n,ee))){t1(fe,st,l,oe);break e}Ne&&Ne(n,ne,ee),n==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&ro(ne,"number",ne.value)}switch(Ne=ee?Mi(ee):window,n){case"focusin":(e1(Ne)||Ne.contentEditable==="true")&&(Os=Ne,Xd=ee,ho=null);break;case"focusout":ho=Xd=Os=null;break;case"mousedown":Kd=!0;break;case"contextmenu":case"mouseup":case"dragend":Kd=!1,f1(fe,l,oe);break;case"selectionchange":if(K4)break;case"keydown":case"keyup":f1(fe,l,oe)}var Ye;if(Yd)e:{switch(n){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else Ns?W0(n,l)&&(tt="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(tt="onCompositionStart");tt&&(Q0&&l.locale!=="ko"&&(Ns||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&Ns&&(Ye=F0()):(Ti=oe,Vd="value"in Ti?Ti.value:Ti.textContent,Ns=!0)),Ne=Ic(ee,tt),0<Ne.length&&(tt=new Z0(tt,n,null,l,oe),fe.push({event:tt,listeners:Ne}),Ye?tt.data=Ye:(Ye=J0(l),Ye!==null&&(tt.data=Ye)))),(Ye=V4?P4(n,l):I4(n,l))&&(tt=Ic(ee,"onBeforeInput"),0<tt.length&&(Ne=new Z0("onBeforeInput","beforeinput",null,l,oe),fe.push({event:Ne,listeners:tt}),Ne.data=Ye)),Dk(fe,n,ee,l,oe)}Bb(fe,i)})}function qo(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Ic(n,i){for(var l=i+"Capture",u=[];n!==null;){var h=n,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=io(n,l),h!=null&&u.unshift(qo(n,h,p)),h=io(n,i),h!=null&&u.push(qo(n,h,p))),n.tag===3)return u;n=n.return}return[]}function qk(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Ub(n,i,l,u,h){for(var p=i._reactName,w=[];l!==null&&l!==u;){var C=l,U=C.alternate,ee=C.stateNode;if(C=C.tag,U!==null&&U===u)break;C!==5&&C!==26&&C!==27||ee===null||(U=ee,h?(ee=io(l,p),ee!=null&&w.unshift(qo(l,ee,U))):h||(ee=io(l,p),ee!=null&&w.push(qo(l,ee,U)))),l=l.return}w.length!==0&&n.push({event:i,listeners:w})}var Uk=/\r\n?/g,Hk=/\u0000|\uFFFD/g;function Hb(n){return(typeof n=="string"?n:""+n).replace(Uk,`
49
+ `).replace(Hk,"")}function Vb(n,i){return i=Hb(i),Hb(n)===i}function mt(n,i,l,u,h,p){switch(l){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||Cs(n,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&Cs(n,""+u);break;case"className":As(n,"class",u);break;case"tabIndex":As(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":As(n,l,u);break;case"style":V0(n,u,p);break;case"data":if(i!=="object"){As(n,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Qu(""+u),n.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(i!=="input"&&mt(n,i,"name",h.name,h,null),mt(n,i,"formEncType",h.formEncType,h,null),mt(n,i,"formMethod",h.formMethod,h,null),mt(n,i,"formTarget",h.formTarget,h,null)):(mt(n,i,"encType",h.encType,h,null),mt(n,i,"method",h.method,h,null),mt(n,i,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Qu(""+u),n.setAttribute(l,u);break;case"onClick":u!=null&&(n.onclick=Yr);break;case"onScroll":u!=null&&We("scroll",n);break;case"onScrollEnd":u!=null&&We("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}l=Qu(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""+u):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":u===!0?n.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,u):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(l,u):n.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(l):n.setAttribute(l,u);break;case"popover":We("beforetoggle",n),We("toggle",n),ks(n,"popover",u);break;case"xlinkActuate":dr(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":dr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":dr(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":dr(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":dr(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":dr(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":dr(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":dr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":dr(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":ks(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=y4.get(l)||l,ks(n,l,u))}}function xy(n,i,l,u,h,p){switch(l){case"style":V0(n,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"children":typeof u=="string"?Cs(n,u):(typeof u=="number"||typeof u=="bigint")&&Cs(n,""+u);break;case"onScroll":u!=null&&We("scroll",n);break;case"onScrollEnd":u!=null&&We("scrollend",n);break;case"onClick":u!=null&&(n.onclick=Yr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fu.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),i=l.slice(2,h?l.length-7:void 0),p=n[fn]||null,p=p!=null?p[l]:null,typeof p=="function"&&n.removeEventListener(i,p,h),typeof u=="function")){typeof p!="function"&&p!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,u,h);break e}l in n?n[l]=u:u===!0?n.setAttribute(l,""):ks(n,l,u)}}}function un(n,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",n),We("load",n);var u=!1,h=!1,p;for(p in l)if(l.hasOwnProperty(p)){var w=l[p];if(w!=null)switch(p){case"src":u=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:mt(n,i,p,w,l,null)}}h&&mt(n,i,"srcSet",l.srcSet,l,null),u&&mt(n,i,"src",l.src,l,null);return;case"input":We("invalid",n);var C=p=w=h=null,U=null,ee=null;for(u in l)if(l.hasOwnProperty(u)){var oe=l[u];if(oe!=null)switch(u){case"name":h=oe;break;case"type":w=oe;break;case"checked":U=oe;break;case"defaultChecked":ee=oe;break;case"value":p=oe;break;case"defaultValue":C=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(a(137,i));break;default:mt(n,i,u,oe,l,null)}}Gu(n,p,C,U,ee,w,h,!1);return;case"select":We("invalid",n),u=w=p=null;for(h in l)if(l.hasOwnProperty(h)&&(C=l[h],C!=null))switch(h){case"value":p=C;break;case"defaultValue":w=C;break;case"multiple":u=C;default:mt(n,i,h,C,l,null)}i=p,l=w,n.multiple=!!u,i!=null?$r(n,!!u,i,!1):l!=null&&$r(n,!!u,l,!0);return;case"textarea":We("invalid",n),p=h=u=null;for(w in l)if(l.hasOwnProperty(w)&&(C=l[w],C!=null))switch(w){case"value":u=C;break;case"defaultValue":h=C;break;case"children":p=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(a(91));break;default:mt(n,i,w,C,l,null)}U0(n,u,h,p);return;case"option":for(U in l)if(l.hasOwnProperty(U)&&(u=l[U],u!=null))switch(U){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:mt(n,i,U,u,l,null)}return;case"dialog":We("beforetoggle",n),We("toggle",n),We("cancel",n),We("close",n);break;case"iframe":case"object":We("load",n);break;case"video":case"audio":for(u=0;u<Bo.length;u++)We(Bo[u],n);break;case"image":We("error",n),We("load",n);break;case"details":We("toggle",n);break;case"embed":case"source":case"link":We("error",n),We("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in l)if(l.hasOwnProperty(ee)&&(u=l[ee],u!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:mt(n,i,ee,u,l,null)}return;default:if(jd(i)){for(oe in l)l.hasOwnProperty(oe)&&(u=l[oe],u!==void 0&&xy(n,i,oe,u,l,void 0));return}}for(C in l)l.hasOwnProperty(C)&&(u=l[C],u!=null&&mt(n,i,C,u,l,null))}function Vk(n,i,l,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,w=null,C=null,U=null,ee=null,oe=null;for(ie in l){var fe=l[ie];if(l.hasOwnProperty(ie)&&fe!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":U=fe;default:u.hasOwnProperty(ie)||mt(n,i,ie,null,u,fe)}}for(var ne in u){var ie=u[ne];if(fe=l[ne],u.hasOwnProperty(ne)&&(ie!=null||fe!=null))switch(ne){case"type":p=ie;break;case"name":h=ie;break;case"checked":ee=ie;break;case"defaultChecked":oe=ie;break;case"value":w=ie;break;case"defaultValue":C=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,i));break;default:ie!==fe&&mt(n,i,ne,ie,u,fe)}}Aa(n,w,C,U,ee,oe,p,h);return;case"select":ie=w=C=ne=null;for(p in l)if(U=l[p],l.hasOwnProperty(p)&&U!=null)switch(p){case"value":break;case"multiple":ie=U;default:u.hasOwnProperty(p)||mt(n,i,p,null,u,U)}for(h in u)if(p=u[h],U=l[h],u.hasOwnProperty(h)&&(p!=null||U!=null))switch(h){case"value":ne=p;break;case"defaultValue":C=p;break;case"multiple":w=p;default:p!==U&&mt(n,i,h,p,u,U)}i=C,l=w,u=ie,ne!=null?$r(n,!!l,ne,!1):!!u!=!!l&&(i!=null?$r(n,!!l,i,!0):$r(n,!!l,l?[]:"",!1));return;case"textarea":ie=ne=null;for(C in l)if(h=l[C],l.hasOwnProperty(C)&&h!=null&&!u.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:mt(n,i,C,null,u,h)}for(w in u)if(h=u[w],p=l[w],u.hasOwnProperty(w)&&(h!=null||p!=null))switch(w){case"value":ne=h;break;case"defaultValue":ie=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==p&&mt(n,i,w,h,u,p)}q0(n,ne,ie);return;case"option":for(var Me in l)if(ne=l[Me],l.hasOwnProperty(Me)&&ne!=null&&!u.hasOwnProperty(Me))switch(Me){case"selected":n.selected=!1;break;default:mt(n,i,Me,null,u,ne)}for(U in u)if(ne=u[U],ie=l[U],u.hasOwnProperty(U)&&ne!==ie&&(ne!=null||ie!=null))switch(U){case"selected":n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:mt(n,i,U,ne,u,ie)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ue in l)ne=l[Ue],l.hasOwnProperty(Ue)&&ne!=null&&!u.hasOwnProperty(Ue)&&mt(n,i,Ue,null,u,ne);for(ee in u)if(ne=u[ee],ie=l[ee],u.hasOwnProperty(ee)&&ne!==ie&&(ne!=null||ie!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,i));break;default:mt(n,i,ee,ne,u,ie)}return;default:if(jd(i)){for(var gt in l)ne=l[gt],l.hasOwnProperty(gt)&&ne!==void 0&&!u.hasOwnProperty(gt)&&xy(n,i,gt,void 0,u,ne);for(oe in u)ne=u[oe],ie=l[oe],!u.hasOwnProperty(oe)||ne===ie||ne===void 0&&ie===void 0||xy(n,i,oe,ne,u,ie);return}}for(var Y in l)ne=l[Y],l.hasOwnProperty(Y)&&ne!=null&&!u.hasOwnProperty(Y)&&mt(n,i,Y,null,u,ne);for(fe in u)ne=u[fe],ie=l[fe],!u.hasOwnProperty(fe)||ne===ie||ne==null&&ie==null||mt(n,i,fe,ne,u,ie)}function Pb(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Pk(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var h=l[u],p=h.transferSize,w=h.initiatorType,C=h.duration;if(p&&C&&Pb(w)){for(w=0,C=h.responseEnd,u+=1;u<l.length;u++){var U=l[u],ee=U.startTime;if(ee>C)break;var oe=U.transferSize,fe=U.initiatorType;oe&&Pb(fe)&&(U=U.responseEnd,w+=oe*(U<C?1:(C-ee)/(U-ee)))}if(--u,i+=8*(p+w)/(h.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var wy=null,Ey=null;function Fc(n){return n.nodeType===9?n:n.ownerDocument}function Ib(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Fb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function My(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var ky=null;function Ik(){var n=window.event;return n&&n.type==="popstate"?n===ky?!1:(ky=n,!0):(ky=null,!1)}var $b=typeof setTimeout=="function"?setTimeout:void 0,Fk=typeof clearTimeout=="function"?clearTimeout:void 0,Yb=typeof Promise=="function"?Promise:void 0,$k=typeof queueMicrotask=="function"?queueMicrotask:typeof Yb<"u"?function(n){return Yb.resolve(null).then(n).catch(Yk)}:$b;function Yk(n){setTimeout(function(){throw n})}function Yi(n){return n==="head"}function Zb(n,i){var l=i,u=0;do{var h=l.nextSibling;if(n.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"||l==="/&"){if(u===0){n.removeChild(h),al(i);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Uo(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,Uo(l);for(var p=l.firstChild;p;){var w=p.nextSibling,C=p.nodeName;p[Ma]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=w}}else l==="body"&&Uo(n.ownerDocument.body);l=h}while(l);al(i)}function Gb(n,i){var l=n;n=0;do{var u=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=u}while(l)}function Ay(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ay(l),to(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function Zk(n,i,l,u){for(;n.nodeType===1;){var h=l;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Ma])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=rr(n.nextSibling),n===null)break}return null}function Gk(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=rr(n.nextSibling),n===null))return null;return n}function Qb(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=rr(n.nextSibling),n===null))return null;return n}function Cy(n){return n.data==="$?"||n.data==="$~"}function Ty(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Qk(n,i){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||l.readyState!=="loading")i();else{var u=function(){i(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function rr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Ry=null;function Xb(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(i===0)return rr(n.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}n=n.nextSibling}return null}function Kb(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return n;i--}else l!=="/$"&&l!=="/&"||i++}n=n.previousSibling}return null}function Wb(n,i,l){switch(i=Fc(l),n){case"html":if(n=i.documentElement,!n)throw Error(a(452));return n;case"head":if(n=i.head,!n)throw Error(a(453));return n;case"body":if(n=i.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Uo(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);to(n)}var ir=new Map,Jb=new Set;function $c(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var oi=$.d;$.d={f:Xk,r:Kk,D:Wk,C:Jk,L:eA,m:tA,X:rA,S:nA,M:iA};function Xk(){var n=oi.f(),i=jc();return n||i}function Kk(n){var i=Ei(n);i!==null&&i.tag===5&&i.type==="form"?gv(i):oi.r(n)}var nl=typeof document>"u"?null:document;function e2(n,i,l){var u=nl;if(u&&typeof i=="string"&&i){var h=En(i);h='link[rel="'+n+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),Jb.has(h)||(Jb.add(h),n={rel:n,crossOrigin:l,href:i},u.querySelector(h)===null&&(i=u.createElement("link"),un(i,"link",n),Ht(i),u.head.appendChild(i)))}}function Wk(n){oi.D(n),e2("dns-prefetch",n,null)}function Jk(n,i){oi.C(n,i),e2("preconnect",n,i)}function eA(n,i,l){oi.L(n,i,l);var u=nl;if(u&&n&&i){var h='link[rel="preload"][as="'+En(i)+'"]';i==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+En(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+En(l.imageSizes)+'"]')):h+='[href="'+En(n)+'"]';var p=h;switch(i){case"style":p=rl(n);break;case"script":p=il(n)}ir.has(p)||(n=g({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),ir.set(p,n),u.querySelector(h)!==null||i==="style"&&u.querySelector(Ho(p))||i==="script"&&u.querySelector(Vo(p))||(i=u.createElement("link"),un(i,"link",n),Ht(i),u.head.appendChild(i)))}}function tA(n,i){oi.m(n,i);var l=nl;if(l&&n){var u=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+En(u)+'"][href="'+En(n)+'"]',p=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=il(n)}if(!ir.has(p)&&(n=g({rel:"modulepreload",href:n},i),ir.set(p,n),l.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Vo(p)))return}u=l.createElement("link"),un(u,"link",n),Ht(u),l.head.appendChild(u)}}}function nA(n,i,l){oi.S(n,i,l);var u=nl;if(u&&n){var h=ki(u).hoistableStyles,p=rl(n);i=i||"default";var w=h.get(p);if(!w){var C={loading:0,preload:null};if(w=u.querySelector(Ho(p)))C.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":i},l),(l=ir.get(p))&&Ny(n,l);var U=w=u.createElement("link");Ht(U),un(U,"link",n),U._p=new Promise(function(ee,oe){U.onload=ee,U.onerror=oe}),U.addEventListener("load",function(){C.loading|=1}),U.addEventListener("error",function(){C.loading|=2}),C.loading|=4,Yc(w,i,u)}w={type:"stylesheet",instance:w,count:1,state:C},h.set(p,w)}}}function rA(n,i){oi.X(n,i);var l=nl;if(l&&n){var u=ki(l).hoistableScripts,h=il(n),p=u.get(h);p||(p=l.querySelector(Vo(h)),p||(n=g({src:n,async:!0},i),(i=ir.get(h))&&Oy(n,i),p=l.createElement("script"),Ht(p),un(p,"link",n),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(h,p))}}function iA(n,i){oi.M(n,i);var l=nl;if(l&&n){var u=ki(l).hoistableScripts,h=il(n),p=u.get(h);p||(p=l.querySelector(Vo(h)),p||(n=g({src:n,async:!0,type:"module"},i),(i=ir.get(h))&&Oy(n,i),p=l.createElement("script"),Ht(p),un(p,"link",n),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(h,p))}}function t2(n,i,l,u){var h=(h=me.current)?$c(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=rl(l.href),l=ki(h).hoistableStyles,u=l.get(i),u||(u={type:"style",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=rl(l.href);var p=ki(h).hoistableStyles,w=p.get(n);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,w),(p=h.querySelector(Ho(n)))&&!p._p&&(w.instance=p,w.state.loading=5),ir.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ir.set(n,l),p||aA(h,n,l,w.state))),i&&u===null)throw Error(a(528,""));return w}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=il(l),l=ki(h).hoistableScripts,u=l.get(i),u||(u={type:"script",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function rl(n){return'href="'+En(n)+'"'}function Ho(n){return'link[rel="stylesheet"]['+n+"]"}function n2(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function aA(n,i,l,u){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=n.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),un(i,"link",l),Ht(i),n.head.appendChild(i))}function il(n){return'[src="'+En(n)+'"]'}function Vo(n){return"script[async]"+n}function r2(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=n.querySelector('style[data-href~="'+En(l.href)+'"]');if(u)return i.instance=u,Ht(u),u;var h=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ht(u),un(u,"style",h),Yc(u,l.precedence,n),i.instance=u;case"stylesheet":h=rl(l.href);var p=n.querySelector(Ho(h));if(p)return i.state.loading|=4,i.instance=p,Ht(p),p;u=n2(l),(h=ir.get(h))&&Ny(u,h),p=(n.ownerDocument||n).createElement("link"),Ht(p);var w=p;return w._p=new Promise(function(C,U){w.onload=C,w.onerror=U}),un(p,"link",u),i.state.loading|=4,Yc(p,l.precedence,n),i.instance=p;case"script":return p=il(l.src),(h=n.querySelector(Vo(p)))?(i.instance=h,Ht(h),h):(u=l,(h=ir.get(p))&&(u=g({},l),Oy(u,h)),n=n.ownerDocument||n,h=n.createElement("script"),Ht(h),un(h,"link",u),n.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Yc(u,l.precedence,n));return i.instance}function Yc(n,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,p=h,w=0;w<u.length;w++){var C=u[w];if(C.dataset.precedence===i)p=C;else if(p!==h)break}p?p.parentNode.insertBefore(n,p.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function Ny(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Oy(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Zc=null;function i2(n,i,l){if(Zc===null){var u=new Map,h=Zc=new Map;h.set(l,u)}else h=Zc,u=h.get(l),u||(u=new Map,h.set(l,u));if(u.has(n))return u;for(u.set(n,null),l=l.getElementsByTagName(n),h=0;h<l.length;h++){var p=l[h];if(!(p[Ma]||p[Xt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var w=p.getAttribute(i)||"";w=n+w;var C=u.get(w);C?C.push(p):u.set(w,[p])}}return u}function a2(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function sA(n,i,l){if(l===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function s2(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function lA(n,i,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var h=rl(u.href),p=i.querySelector(Ho(h));if(p){i=p._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Gc.bind(n),i.then(n,n)),l.state.loading|=4,l.instance=p,Ht(p);return}p=i.ownerDocument||i,u=n2(u),(h=ir.get(h))&&Ny(u,h),p=p.createElement("link"),Ht(p);var w=p;w._p=new Promise(function(C,U){w.onload=C,w.onerror=U}),un(p,"link",u),l.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=Gc.bind(n),i.addEventListener("load",l),i.addEventListener("error",l))}}var zy=0;function oA(n,i){return n.stylesheets&&n.count===0&&Xc(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var u=setTimeout(function(){if(n.stylesheets&&Xc(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+i);0<n.imgBytes&&zy===0&&(zy=62500*Pk());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Xc(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>zy?50:800)+i);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function Gc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Qc=null;function Xc(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Qc=new Map,i.forEach(uA,n),Qc=null,Gc.call(n))}function uA(n,i){if(!(i.state.loading&4)){var l=Qc.get(n);if(l)var u=l.get(null);else{l=new Map,Qc.set(n,l);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var w=h[p];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(l.set(w.dataset.precedence,w),u=w)}u&&l.set(null,u)}h=i.instance,w=h.getAttribute("data-precedence"),p=l.get(w)||u,p===u&&l.set(null,h),l.set(w,h),this.count++,u=Gc.bind(this),h.addEventListener("load",u),h.addEventListener("error",u),p?p.parentNode.insertBefore(h,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),i.state.loading|=4}}var Po={$$typeof:M,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function cA(n,i,l,u,h,p,w,C,U){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.hiddenUpdates=Wl(null),this.identifierPrefix=u,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function l2(n,i,l,u,h,p,w,C,U,ee,oe,fe){return n=new cA(n,i,l,w,U,ee,oe,fe,C),i=1,p===!0&&(i|=24),p=jn(3,null,null,i),n.current=p,p.stateNode=n,i=dh(),i.refCount++,n.pooledCache=i,i.refCount++,p.memoizedState={element:u,isDehydrated:l,cache:i},gh(p),n}function o2(n){return n?(n=Ls,n):Ls}function u2(n,i,l,u,h,p){h=o2(h),u.context===null?u.context=h:u.pendingContext=h,u=Li(i),u.payload={element:l},p=p===void 0?null:p,p!==null&&(u.callback=p),l=ji(n,u,i),l!==null&&(Rn(l,n,i),So(l,n,i))}function c2(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function Dy(n,i){c2(n,i),(n=n.alternate)&&c2(n,i)}function f2(n){if(n.tag===13||n.tag===31){var i=Na(n,67108864);i!==null&&Rn(i,n,67108864),Dy(n,67108864)}}function d2(n){if(n.tag===13||n.tag===31){var i=Vn();i=Jl(i);var l=Na(n,i);l!==null&&Rn(l,n,i),Dy(n,i)}}var Kc=!0;function fA(n,i,l,u){var h=q.T;q.T=null;var p=$.p;try{$.p=2,Ly(n,i,l,u)}finally{$.p=p,q.T=h}}function dA(n,i,l,u){var h=q.T;q.T=null;var p=$.p;try{$.p=8,Ly(n,i,l,u)}finally{$.p=p,q.T=h}}function Ly(n,i,l,u){if(Kc){var h=jy(u);if(h===null)_y(n,i,u,Wc,l),y2(n,u);else if(yA(h,n,i,l,u))u.stopPropagation();else if(y2(n,u),i&4&&-1<hA.indexOf(n)){for(;h!==null;){var p=Ei(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var w=Pr(p.pendingLanes);if(w!==0){var C=p;for(C.pendingLanes|=2,C.entangledLanes|=2;w;){var U=1<<31-Qt(w);C.entanglements[1]|=U,w&=~U}Tr(p),(ct&6)===0&&(Dc=te()+500,jo(0))}}break;case 31:case 13:C=Na(p,2),C!==null&&Rn(C,p,2),jc(),Dy(p,2)}if(p=jy(u),p===null&&_y(n,i,u,Wc,l),p===h)break;h=p}h!==null&&u.stopPropagation()}else _y(n,i,u,null,l)}}function jy(n){return n=qd(n),By(n)}var Wc=null;function By(n){if(Wc=null,n=wi(n),n!==null){var i=o(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=c(i),n!==null)return n;n=null}else if(l===31){if(n=f(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Wc=n,null}function h2(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Se()){case ge:return 2;case pe:return 8;case we:case Ve:return 32;case Je:return 268435456;default:return 32}default:return 32}}var qy=!1,Zi=null,Gi=null,Qi=null,Io=new Map,Fo=new Map,Xi=[],hA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function y2(n,i){switch(n){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Io.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fo.delete(i.pointerId)}}function $o(n,i,l,u,h,p){return n===null||n.nativeEvent!==p?(n={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:p,targetContainers:[h]},i!==null&&(i=Ei(i),i!==null&&f2(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function yA(n,i,l,u,h){switch(i){case"focusin":return Zi=$o(Zi,n,i,l,u,h),!0;case"dragenter":return Gi=$o(Gi,n,i,l,u,h),!0;case"mouseover":return Qi=$o(Qi,n,i,l,u,h),!0;case"pointerover":var p=h.pointerId;return Io.set(p,$o(Io.get(p)||null,n,i,l,u,h)),!0;case"gotpointercapture":return p=h.pointerId,Fo.set(p,$o(Fo.get(p)||null,n,i,l,u,h)),!0}return!1}function m2(n){var i=wi(n.target);if(i!==null){var l=o(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){n.blockedOn=i,Hu(n.priority,function(){d2(l)});return}}else if(i===31){if(i=f(l),i!==null){n.blockedOn=i,Hu(n.priority,function(){d2(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Jc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=jy(n.nativeEvent);if(l===null){l=n.nativeEvent;var u=new l.constructor(l.type,l);Bd=u,l.target.dispatchEvent(u),Bd=null}else return i=Ei(l),i!==null&&f2(i),n.blockedOn=l,!1;i.shift()}return!0}function g2(n,i,l){Jc(n)&&l.delete(i)}function mA(){qy=!1,Zi!==null&&Jc(Zi)&&(Zi=null),Gi!==null&&Jc(Gi)&&(Gi=null),Qi!==null&&Jc(Qi)&&(Qi=null),Io.forEach(g2),Fo.forEach(g2)}function ef(n,i){n.blockedOn===i&&(n.blockedOn=null,qy||(qy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,mA)))}var tf=null;function p2(n){tf!==n&&(tf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){tf===n&&(tf=null);for(var i=0;i<n.length;i+=3){var l=n[i],u=n[i+1],h=n[i+2];if(typeof u!="function"){if(By(u||l)===null)continue;break}var p=Ei(l);p!==null&&(n.splice(i,3),i-=3,jh(p,{pending:!0,data:h,method:l.method,action:u},u,h))}}))}function al(n){function i(U){return ef(U,n)}Zi!==null&&ef(Zi,n),Gi!==null&&ef(Gi,n),Qi!==null&&ef(Qi,n),Io.forEach(i),Fo.forEach(i);for(var l=0;l<Xi.length;l++){var u=Xi[l];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Xi.length&&(l=Xi[0],l.blockedOn===null);)m2(l),l.blockedOn===null&&Xi.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var h=l[u],p=l[u+1],w=h[fn]||null;if(typeof p=="function")w||p2(l);else if(w){var C=null;if(p&&p.hasAttribute("formAction")){if(h=p,w=p[fn]||null)C=w.formAction;else if(By(h)!==null)continue}else C=w.action;typeof C=="function"?l[u+1]=C:(l.splice(u,3),u-=3),p2(l)}}}function v2(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(w){return h=w})},focusReset:"manual",scroll:"manual"})}function i(){h!==null&&(h(),h=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),h!==null&&(h(),h=null)}}}function Uy(n){this._internalRoot=n}nf.prototype.render=Uy.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=Vn();u2(l,u,n,i,null,null)},nf.prototype.unmount=Uy.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;u2(n.current,2,null,n,null,null),jc(),i[Ir]=null}};function nf(n){this._internalRoot=n}nf.prototype.unstable_scheduleHydration=function(n){if(n){var i=Uu();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Xi.length&&i!==0&&i<Xi[l].priority;l++);Xi.splice(l,0,n),l===0&&m2(n)}};var b2=t.version;if(b2!=="19.2.4")throw Error(a(527,b2,"19.2.4"));$.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=y(i),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var gA={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rf.isDisabled&&rf.supportsFiber)try{Rt=rf.inject(gA),an=rf}catch{}}return Zo.createRoot=function(n,i){if(!s(n))throw Error(a(299));var l=!1,u="",h=kv,p=Av,w=Cv;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError)),i=l2(n,1,!1,null,null,l,u,null,h,p,w,v2),n[Ir]=i.current,Sy(n),new Uy(i)},Zo.hydrateRoot=function(n,i,l){if(!s(n))throw Error(a(299));var u=!1,h="",p=kv,w=Av,C=Cv,U=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(C=l.onRecoverableError),l.formState!==void 0&&(U=l.formState)),i=l2(n,1,!0,i,l??null,u,h,U,p,w,C,v2),i.context=o2(null),l=i.current,u=Vn(),u=Jl(u),h=Li(u),h.callback=null,ji(l,h,u),l=u,i.current.lanes=l,Ea(i,l),Tr(i),n[Ir]=i.current,Sy(n),new nf(i)},Zo.version="19.2.4",Zo}var R2;function RA(){if(R2)return Yy.exports;R2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yy.exports=TA(),Yy.exports}var NA=RA();const fj=ur(NA);var Fl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xa,oa,vl,zw,OA=(zw=class extends Fl{constructor(){super();Le(this,Xa);Le(this,oa);Le(this,vl);_e(this,vl,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){V(this,oa)||this.setEventListener(V(this,vl))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,oa))==null||t.call(this),_e(this,oa,void 0))}setEventListener(t){var r;_e(this,vl,t),(r=V(this,oa))==null||r.call(this),_e(this,oa,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){V(this,Xa)!==t&&(_e(this,Xa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof V(this,Xa)=="boolean"?V(this,Xa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xa=new WeakMap,oa=new WeakMap,vl=new WeakMap,zw),$p=new OA,zA={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ua,Fp,Dw,DA=(Dw=class{constructor(){Le(this,ua,zA);Le(this,Fp,!1)}setTimeoutProvider(e){_e(this,ua,e)}setTimeout(e,t){return V(this,ua).setTimeout(e,t)}clearTimeout(e){V(this,ua).clearTimeout(e)}setInterval(e,t){return V(this,ua).setInterval(e,t)}clearInterval(e){V(this,ua).clearInterval(e)}},ua=new WeakMap,Fp=new WeakMap,Dw),Ga=new DA;function LA(e){setTimeout(e,0)}var jA=typeof window>"u"||"Deno"in globalThis;function vn(){}function BA(e,t){return typeof e=="function"?e(t):e}function Qg(e){return typeof e=="number"&&e>=0&&e!==1/0}function Gw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pa(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function N2(e,t){const{type:r="all",exact:a,fetchStatus:s,predicate:o,queryKey:c,stale:f}=e;if(c){if(a){if(t.queryHash!==Yp(c,t.options))return!1}else if(!iu(t.queryKey,c))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||o&&!o(t))}function O2(e,t){const{exact:r,status:a,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(os(t.options.mutationKey)!==os(o))return!1}else if(!iu(t.options.mutationKey,o))return!1}return!(a&&t.state.status!==a||s&&!s(t))}function Yp(e,t){return((t==null?void 0:t.queryKeyHashFn)||os)(e)}function os(e){return JSON.stringify(e,(t,r)=>Xg(r)?Object.keys(r).sort().reduce((a,s)=>(a[s]=r[s],a),{}):r)}function iu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>iu(e[r],t[r])):!1}var qA=Object.prototype.hasOwnProperty;function Zp(e,t,r=0){if(e===t)return e;if(r>500)return t;const a=z2(e)&&z2(t);if(!a&&!(Xg(e)&&Xg(t)))return t;const o=(a?e:Object.keys(e)).length,c=a?t:Object.keys(t),f=c.length,d=a?new Array(f):{};let y=0;for(let m=0;m<f;m++){const g=a?m:c[m],v=e[g],b=t[g];if(v===b){d[g]=v,(a?m<o:qA.call(e,g))&&y++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){d[g]=b;continue}const S=Zp(v,b,r+1);d[g]=S,S===v&&y++}return o===f&&y===o?e:d}function Af(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function z2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xg(e){if(!D2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!D2(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function D2(e){return Object.prototype.toString.call(e)==="[object Object]"}function UA(e){return new Promise(t=>{Ga.setTimeout(t,e)})}function Kg(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Zp(e,t):t}function HA(e,t,r=0){const a=[...e,t];return r&&a.length>r?a.slice(1):a}function VA(e,t,r=0){const a=[t,...e];return r&&a.length>r?a.slice(0,-1):a}var Gp=Symbol();function Qw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Gp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Qp(e,t){return typeof e=="function"?e(...t):!!e}function PA(e,t,r){let a=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),a||(a=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}var au=(()=>{let e=()=>jA;return{isServer(){return e()},setIsServer(t){e=t}}})();function Wg(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function a(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{a({status:"fulfilled",value:s}),e(s)},r.reject=s=>{a({status:"rejected",reason:s}),t(s)},r}var IA=LA;function FA(){let e=[],t=0,r=f=>{f()},a=f=>{f()},s=IA;const o=f=>{t?e.push(f):s(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&s(()=>{a(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||c()}return d},batchCalls:f=>(...d)=>{o(()=>{f(...d)})},schedule:o,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{a=f},setScheduler:f=>{s=f}}}var qt=FA(),bl,ca,Sl,Lw,$A=(Lw=class extends Fl{constructor(){super();Le(this,bl,!0);Le(this,ca);Le(this,Sl);_e(this,Sl,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){V(this,ca)||this.setEventListener(V(this,Sl))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,ca))==null||t.call(this),_e(this,ca,void 0))}setEventListener(t){var r;_e(this,Sl,t),(r=V(this,ca))==null||r.call(this),_e(this,ca,t(this.setOnline.bind(this)))}setOnline(t){V(this,bl)!==t&&(_e(this,bl,t),this.listeners.forEach(a=>{a(t)}))}isOnline(){return V(this,bl)}},bl=new WeakMap,ca=new WeakMap,Sl=new WeakMap,Lw),Cf=new $A;function YA(e){return Math.min(1e3*2**e,3e4)}function Xw(e){return(e??"online")==="online"?Cf.isOnline():!0}var Jg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kw(e){let t=!1,r=0,a;const s=Wg(),o=()=>s.status!=="pending",c=_=>{var x;if(!o()){const E=new Jg(_);v(E),(x=e.onCancel)==null||x.call(e,E)}},f=()=>{t=!0},d=()=>{t=!1},y=()=>$p.isFocused()&&(e.networkMode==="always"||Cf.isOnline())&&e.canRun(),m=()=>Xw(e.networkMode)&&e.canRun(),g=_=>{o()||(a==null||a(),s.resolve(_))},v=_=>{o()||(a==null||a(),s.reject(_))},b=()=>new Promise(_=>{var x;a=E=>{(o()||y())&&_(E)},(x=e.onPause)==null||x.call(e)}).then(()=>{var _;a=void 0,o()||(_=e.onContinue)==null||_.call(e)}),S=()=>{if(o())return;let _;const x=r===0?e.initialPromise:void 0;try{_=x??e.fn()}catch(E){_=Promise.reject(E)}Promise.resolve(_).then(g).catch(E=>{var N;if(o())return;const k=e.retry??(au.isServer()?0:3),M=e.retryDelay??YA,A=typeof M=="function"?M(r,E):M,z=k===!0||typeof k=="number"&&r<k||typeof k=="function"&&k(r,E);if(t||!z){v(E);return}r++,(N=e.onFail)==null||N.call(e,r,E),UA(A).then(()=>y()?void 0:b()).then(()=>{t?v(E):S()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(a==null||a(),s),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?S():b().then(S),s)}}var Ka,jw,Ww=(jw=class{constructor(){Le(this,Ka)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qg(this.gcTime)&&_e(this,Ka,Ga.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(au.isServer()?1/0:300*1e3))}clearGcTimeout(){V(this,Ka)&&(Ga.clearTimeout(V(this,Ka)),_e(this,Ka,void 0))}},Ka=new WeakMap,jw),Wa,_l,ar,Ja,tn,Su,es,Pn,Jw,ci,Bw,ZA=(Bw=class extends Ww{constructor(t){super();Le(this,Pn);Le(this,Wa);Le(this,_l);Le(this,ar);Le(this,Ja);Le(this,tn);Le(this,Su);Le(this,es);_e(this,es,!1),_e(this,Su,t.defaultOptions),this.setOptions(t.options),this.observers=[],_e(this,Ja,t.client),_e(this,ar,V(this,Ja).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_e(this,Wa,j2(this.options)),this.state=t.state??V(this,Wa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,tn))==null?void 0:t.promise}setOptions(t){if(this.options={...V(this,Su),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=j2(this.options);r.data!==void 0&&(this.setState(L2(r.data,r.dataUpdatedAt)),_e(this,Wa,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,ar).remove(this)}setData(t,r){const a=Kg(this.state.data,t,this.options);return Ze(this,Pn,ci).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(t,r){Ze(this,Pn,ci).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var a,s;const r=(a=V(this,tn))==null?void 0:a.promise;return(s=V(this,tn))==null||s.cancel(t),r?r.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return V(this,Wa)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gp||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Gw(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=V(this,tn))==null||r.continue()}onOnline(){var r;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=V(this,tn))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,ar).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(V(this,tn)&&(V(this,es)||Ze(this,Pn,Jw).call(this)?V(this,tn).cancel({revert:!0}):V(this,tn).cancelRetry()),this.scheduleGc()),V(this,ar).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ze(this,Pn,ci).call(this,{type:"invalidate"})}async fetch(t,r){var d,y,m,g,v,b,S,_,x,E,k,M;if(this.state.fetchStatus!=="idle"&&((d=V(this,tn))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(V(this,tn))return V(this,tn).continueRetry(),V(this,tn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const A=this.observers.find(z=>z.options.queryFn);A&&this.setOptions(A.options)}const a=new AbortController,s=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(_e(this,es,!0),a.signal)})},o=()=>{const A=Qw(this.options,r),N=(()=>{const D={client:V(this,Ja),queryKey:this.queryKey,meta:this.meta};return s(D),D})();return _e(this,es,!1),this.options.persister?this.options.persister(A,N,this):A(N)},f=(()=>{const A={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:V(this,Ja),state:this.state,fetchFn:o};return s(A),A})();(y=this.options.behavior)==null||y.onFetch(f,this),_e(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=f.fetchOptions)==null?void 0:m.meta))&&Ze(this,Pn,ci).call(this,{type:"fetch",meta:(g=f.fetchOptions)==null?void 0:g.meta}),_e(this,tn,Kw({initialPromise:r==null?void 0:r.initialPromise,fn:f.fetchFn,onCancel:A=>{A instanceof Jg&&A.revert&&this.setState({...V(this,_l),fetchStatus:"idle"}),a.abort()},onFail:(A,z)=>{Ze(this,Pn,ci).call(this,{type:"failed",failureCount:A,error:z})},onPause:()=>{Ze(this,Pn,ci).call(this,{type:"pause"})},onContinue:()=>{Ze(this,Pn,ci).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const A=await V(this,tn).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(b=(v=V(this,ar).config).onSuccess)==null||b.call(v,A,this),(_=(S=V(this,ar).config).onSettled)==null||_.call(S,A,this.state.error,this),A}catch(A){if(A instanceof Jg){if(A.silent)return V(this,tn).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Ze(this,Pn,ci).call(this,{type:"error",error:A}),(E=(x=V(this,ar).config).onError)==null||E.call(x,A,this),(M=(k=V(this,ar).config).onSettled)==null||M.call(k,this.state.data,A,this),A}finally{this.scheduleGc()}}},Wa=new WeakMap,_l=new WeakMap,ar=new WeakMap,Ja=new WeakMap,tn=new WeakMap,Su=new WeakMap,es=new WeakMap,Pn=new WeakSet,Jw=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ci=function(t){const r=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...eE(a.data,this.options),fetchMeta:t.meta??null};case"success":const s={...a,...L2(t.data,t.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _e(this,_l,t.manual?s:void 0),s;case"error":const o=t.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=r(this.state),qt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),V(this,ar).notify({query:this,type:"updated",action:t})})},Bw);function eE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function L2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function j2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,a=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Nn,rt,_u,gn,ts,xl,di,fa,xu,wl,El,ns,rs,da,Ml,ft,Wo,ep,tp,np,rp,ip,ap,sp,nE,qw,tE=(qw=class extends Fl{constructor(t,r){super();Le(this,ft);Le(this,Nn);Le(this,rt);Le(this,_u);Le(this,gn);Le(this,ts);Le(this,xl);Le(this,di);Le(this,fa);Le(this,xu);Le(this,wl);Le(this,El);Le(this,ns);Le(this,rs);Le(this,da);Le(this,Ml,new Set);this.options=r,_e(this,Nn,t),_e(this,fa,null),_e(this,di,Wg()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,rt).addObserver(this),B2(V(this,rt),this.options)?Ze(this,ft,Wo).call(this):this.updateResult(),Ze(this,ft,rp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lp(V(this,rt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lp(V(this,rt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ze(this,ft,ip).call(this),Ze(this,ft,ap).call(this),V(this,rt).removeObserver(this)}setOptions(t){const r=this.options,a=V(this,rt);if(this.options=V(this,Nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,V(this,rt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ze(this,ft,sp).call(this),V(this,rt).setOptions(this.options),r._defaulted&&!Af(this.options,r)&&V(this,Nn).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,rt),observer:this});const s=this.hasListeners();s&&q2(V(this,rt),a,this.options,r)&&Ze(this,ft,Wo).call(this),this.updateResult(),s&&(V(this,rt)!==a||sr(this.options.enabled,V(this,rt))!==sr(r.enabled,V(this,rt))||pa(this.options.staleTime,V(this,rt))!==pa(r.staleTime,V(this,rt)))&&Ze(this,ft,ep).call(this);const o=Ze(this,ft,tp).call(this);s&&(V(this,rt)!==a||sr(this.options.enabled,V(this,rt))!==sr(r.enabled,V(this,rt))||o!==V(this,da))&&Ze(this,ft,np).call(this,o)}getOptimisticResult(t){const r=V(this,Nn).getQueryCache().build(V(this,Nn),t),a=this.createResult(r,t);return QA(this,a)&&(_e(this,gn,a),_e(this,xl,this.options),_e(this,ts,V(this,rt).state)),a}getCurrentResult(){return V(this,gn)}trackResult(t,r){return new Proxy(t,{get:(a,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&V(this,di).status==="pending"&&V(this,di).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,s))})}trackProp(t){V(this,Ml).add(t)}getCurrentQuery(){return V(this,rt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=V(this,Nn).defaultQueryOptions(t),a=V(this,Nn).getQueryCache().build(V(this,Nn),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(t){return Ze(this,ft,Wo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,gn)))}createResult(t,r){var L;const a=V(this,rt),s=this.options,o=V(this,gn),c=V(this,ts),f=V(this,xl),y=t!==a?t.state:V(this,_u),{state:m}=t;let g={...m},v=!1,b;if(r._optimisticResults){const G=this.hasListeners(),B=!G&&B2(t,r),j=G&&q2(t,a,r,s);(B||j)&&(g={...g,...eE(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:_,status:x}=g;b=g.data;let E=!1;if(r.placeholderData!==void 0&&b===void 0&&x==="pending"){let G;o!=null&&o.isPlaceholderData&&r.placeholderData===(f==null?void 0:f.placeholderData)?(G=o.data,E=!0):G=typeof r.placeholderData=="function"?r.placeholderData((L=V(this,El))==null?void 0:L.state.data,V(this,El)):r.placeholderData,G!==void 0&&(x="success",b=Kg(o==null?void 0:o.data,G,r),v=!0)}if(r.select&&b!==void 0&&!E)if(o&&b===(c==null?void 0:c.data)&&r.select===V(this,xu))b=V(this,wl);else try{_e(this,xu,r.select),b=r.select(b),b=Kg(o==null?void 0:o.data,b,r),_e(this,wl,b),_e(this,fa,null)}catch(G){_e(this,fa,G)}V(this,fa)&&(S=V(this,fa),b=V(this,wl),_=Date.now(),x="error");const k=g.fetchStatus==="fetching",M=x==="pending",A=x==="error",z=M&&k,N=b!==void 0,T={status:x,fetchStatus:g.fetchStatus,isPending:M,isSuccess:x==="success",isError:A,isInitialLoading:z,isLoading:z,data:b,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:g.dataUpdateCount>y.dataUpdateCount||g.errorUpdateCount>y.errorUpdateCount,isFetching:k,isRefetching:k&&!M,isLoadingError:A&&!N,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:A&&N,isStale:Xp(t,r),refetch:this.refetch,promise:V(this,di),isEnabled:sr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const G=T.data!==void 0,B=T.status==="error"&&!G,j=re=>{B?re.reject(T.error):G&&re.resolve(T.data)},F=()=>{const re=_e(this,di,T.promise=Wg());j(re)},Q=V(this,di);switch(Q.status){case"pending":t.queryHash===a.queryHash&&j(Q);break;case"fulfilled":(B||T.data!==Q.value)&&F();break;case"rejected":(!B||T.error!==Q.reason)&&F();break}}return T}updateResult(){const t=V(this,gn),r=this.createResult(V(this,rt),this.options);if(_e(this,ts,V(this,rt).state),_e(this,xl,this.options),V(this,ts).data!==void 0&&_e(this,El,V(this,rt)),Af(r,t))return;_e(this,gn,r);const a=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!V(this,Ml).size)return!0;const c=new Set(o??V(this,Ml));return this.options.throwOnError&&c.add("error"),Object.keys(V(this,gn)).some(f=>{const d=f;return V(this,gn)[d]!==t[d]&&c.has(d)})};Ze(this,ft,nE).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ze(this,ft,rp).call(this)}},Nn=new WeakMap,rt=new WeakMap,_u=new WeakMap,gn=new WeakMap,ts=new WeakMap,xl=new WeakMap,di=new WeakMap,fa=new WeakMap,xu=new WeakMap,wl=new WeakMap,El=new WeakMap,ns=new WeakMap,rs=new WeakMap,da=new WeakMap,Ml=new WeakMap,ft=new WeakSet,Wo=function(t){Ze(this,ft,sp).call(this);let r=V(this,rt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(vn)),r},ep=function(){Ze(this,ft,ip).call(this);const t=pa(this.options.staleTime,V(this,rt));if(au.isServer()||V(this,gn).isStale||!Qg(t))return;const a=Gw(V(this,gn).dataUpdatedAt,t)+1;_e(this,ns,Ga.setTimeout(()=>{V(this,gn).isStale||this.updateResult()},a))},tp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,rt)):this.options.refetchInterval)??!1},np=function(t){Ze(this,ft,ap).call(this),_e(this,da,t),!(au.isServer()||sr(this.options.enabled,V(this,rt))===!1||!Qg(V(this,da))||V(this,da)===0)&&_e(this,rs,Ga.setInterval(()=>{(this.options.refetchIntervalInBackground||$p.isFocused())&&Ze(this,ft,Wo).call(this)},V(this,da)))},rp=function(){Ze(this,ft,ep).call(this),Ze(this,ft,np).call(this,Ze(this,ft,tp).call(this))},ip=function(){V(this,ns)&&(Ga.clearTimeout(V(this,ns)),_e(this,ns,void 0))},ap=function(){V(this,rs)&&(Ga.clearInterval(V(this,rs)),_e(this,rs,void 0))},sp=function(){const t=V(this,Nn).getQueryCache().build(V(this,Nn),this.options);if(t===V(this,rt))return;const r=V(this,rt);_e(this,rt,t),_e(this,_u,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},nE=function(t){qt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(V(this,gn))}),V(this,Nn).getQueryCache().notify({query:V(this,rt),type:"observerResultsUpdated"})})},qw);function GA(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function B2(e,t){return GA(e,t)||e.state.data!==void 0&&lp(e,t,t.refetchOnMount)}function lp(e,t,r){if(sr(t.enabled,e)!==!1&&pa(t.staleTime,e)!=="static"){const a=typeof r=="function"?r(e):r;return a==="always"||a!==!1&&Xp(e,t)}return!1}function q2(e,t,r,a){return(e!==t||sr(a.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Xp(e,r)}function Xp(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(pa(t.staleTime,e))}function QA(e,t){return!Af(e.getCurrentResult(),t)}function Tf(e){return{onFetch:(t,r)=>{var m,g,v,b,S;const a=t.options,s=(v=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],c=((S=t.state.data)==null?void 0:S.pageParams)||[];let f={pages:[],pageParams:[]},d=0;const y=async()=>{let _=!1;const x=M=>{PA(M,()=>t.signal,()=>_=!0)},E=Qw(t.options,t.fetchOptions),k=async(M,A,z)=>{if(_)return Promise.reject();if(A==null&&M.pages.length)return Promise.resolve(M);const D=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:A,direction:z?"backward":"forward",meta:t.options.meta};return x(B),B})(),T=await E(D),{maxPages:L}=t.options,G=z?VA:HA;return{pages:G(M.pages,T,L),pageParams:G(M.pageParams,A,L)}};if(s&&o.length){const M=s==="backward",A=M?rE:op,z={pages:o,pageParams:c},N=A(a,z);f=await k(z,N,M)}else{const M=e??o.length;do{const A=d===0?c[0]??a.initialPageParam:op(a,f);if(d>0&&A==null)break;f=await k(f,A),d++}while(d<M)}return f};t.options.persister?t.fetchFn=()=>{var _,x;return(x=(_=t.options).persister)==null?void 0:x.call(_,y,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=y}}}function op(e,{pages:t,pageParams:r}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,r[a],r):void 0}function rE(e,{pages:t,pageParams:r}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,r[0],r):void 0}function XA(e,t){return t?op(e,t)!=null:!1}function KA(e,t){return!t||!e.getPreviousPageParam?!1:rE(e,t)!=null}var WA=class extends tE{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Tf()})}getOptimisticResult(e){return e.behavior=Tf(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var S,_;const{state:r}=e,a=super.createResult(e,t),{isFetching:s,isRefetching:o,isError:c,isRefetchError:f}=a,d=(_=(S=r.fetchMeta)==null?void 0:S.fetchMore)==null?void 0:_.direction,y=c&&d==="forward",m=s&&d==="forward",g=c&&d==="backward",v=s&&d==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:XA(t,r.data),hasPreviousPage:KA(t,r.data),isFetchNextPageError:y,isFetchingNextPage:m,isFetchPreviousPageError:g,isFetchingPreviousPage:v,isRefetchError:f&&!y&&!g,isRefetching:o&&!m&&!v}}},wu,Or,hn,is,zr,ra,Uw,JA=(Uw=class extends Ww{constructor(t){super();Le(this,zr);Le(this,wu);Le(this,Or);Le(this,hn);Le(this,is);_e(this,wu,t.client),this.mutationId=t.mutationId,_e(this,hn,t.mutationCache),_e(this,Or,[]),this.state=t.state||iE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Or).includes(t)||(V(this,Or).push(t),this.clearGcTimeout(),V(this,hn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_e(this,Or,V(this,Or).filter(r=>r!==t)),this.scheduleGc(),V(this,hn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Or).length||(this.state.status==="pending"?this.scheduleGc():V(this,hn).remove(this))}continue(){var t;return((t=V(this,is))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,f,d,y,m,g,v,b,S,_,x,E,k,M,A,z,N,D;const r=()=>{Ze(this,zr,ra).call(this,{type:"continue"})},a={client:V(this,wu),meta:this.options.meta,mutationKey:this.options.mutationKey};_e(this,is,Kw({fn:()=>this.options.mutationFn?this.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(T,L)=>{Ze(this,zr,ra).call(this,{type:"failed",failureCount:T,error:L})},onPause:()=>{Ze(this,zr,ra).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,hn).canRun(this)}));const s=this.state.status==="pending",o=!V(this,is).canStart();try{if(s)r();else{Ze(this,zr,ra).call(this,{type:"pending",variables:t,isPaused:o}),V(this,hn).config.onMutate&&await V(this,hn).config.onMutate(t,this,a);const L=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t,a));L!==this.state.context&&Ze(this,zr,ra).call(this,{type:"pending",context:L,variables:t,isPaused:o})}const T=await V(this,is).start();return await((y=(d=V(this,hn).config).onSuccess)==null?void 0:y.call(d,T,t,this.state.context,this,a)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,T,t,this.state.context,a)),await((b=(v=V(this,hn).config).onSettled)==null?void 0:b.call(v,T,null,this.state.variables,this.state.context,this,a)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,T,null,t,this.state.context,a)),Ze(this,zr,ra).call(this,{type:"success",data:T}),T}catch(T){try{await((E=(x=V(this,hn).config).onError)==null?void 0:E.call(x,T,t,this.state.context,this,a))}catch(L){Promise.reject(L)}try{await((M=(k=this.options).onError)==null?void 0:M.call(k,T,t,this.state.context,a))}catch(L){Promise.reject(L)}try{await((z=(A=V(this,hn).config).onSettled)==null?void 0:z.call(A,void 0,T,this.state.variables,this.state.context,this,a))}catch(L){Promise.reject(L)}try{await((D=(N=this.options).onSettled)==null?void 0:D.call(N,void 0,T,t,this.state.context,a))}catch(L){Promise.reject(L)}throw Ze(this,zr,ra).call(this,{type:"error",error:T}),T}finally{V(this,hn).runNext(this)}}},wu=new WeakMap,Or=new WeakMap,hn=new WeakMap,is=new WeakMap,zr=new WeakSet,ra=function(t){const r=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),qt.batch(()=>{V(this,Or).forEach(a=>{a.onMutationUpdate(t)}),V(this,hn).notify({mutation:this,type:"updated",action:t})})},Uw);function iE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hi,pr,Eu,Hw,eC=(Hw=class extends Fl{constructor(t={}){super();Le(this,hi);Le(this,pr);Le(this,Eu);this.config=t,_e(this,hi,new Set),_e(this,pr,new Map),_e(this,Eu,0)}build(t,r,a){const s=new JA({client:t,mutationCache:this,mutationId:++af(this,Eu)._,options:t.defaultMutationOptions(r),state:a});return this.add(s),s}add(t){V(this,hi).add(t);const r=sf(t);if(typeof r=="string"){const a=V(this,pr).get(r);a?a.push(t):V(this,pr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(V(this,hi).delete(t)){const r=sf(t);if(typeof r=="string"){const a=V(this,pr).get(r);if(a)if(a.length>1){const s=a.indexOf(t);s!==-1&&a.splice(s,1)}else a[0]===t&&V(this,pr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=sf(t);if(typeof r=="string"){const a=V(this,pr).get(r),s=a==null?void 0:a.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var a;const r=sf(t);if(typeof r=="string"){const s=(a=V(this,pr).get(r))==null?void 0:a.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qt.batch(()=>{V(this,hi).forEach(t=>{this.notify({type:"removed",mutation:t})}),V(this,hi).clear(),V(this,pr).clear()})}getAll(){return Array.from(V(this,hi))}find(t){const r={exact:!0,...t};return this.getAll().find(a=>O2(r,a))}findAll(t={}){return this.getAll().filter(r=>O2(t,r))}notify(t){qt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return qt.batch(()=>Promise.all(t.map(r=>r.continue().catch(vn))))}},hi=new WeakMap,pr=new WeakMap,Eu=new WeakMap,Hw);function sf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var yi,ha,On,mi,vi,xf,up,Vw,tC=(Vw=class extends Fl{constructor(r,a){super();Le(this,vi);Le(this,yi);Le(this,ha);Le(this,On);Le(this,mi);_e(this,yi,r),this.setOptions(a),this.bindMethods(),Ze(this,vi,xf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const a=this.options;this.options=V(this,yi).defaultMutationOptions(r),Af(this.options,a)||V(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:V(this,On),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&os(a.mutationKey)!==os(this.options.mutationKey)?this.reset():((s=V(this,On))==null?void 0:s.state.status)==="pending"&&V(this,On).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=V(this,On))==null||r.removeObserver(this)}onMutationUpdate(r){Ze(this,vi,xf).call(this),Ze(this,vi,up).call(this,r)}getCurrentResult(){return V(this,ha)}reset(){var r;(r=V(this,On))==null||r.removeObserver(this),_e(this,On,void 0),Ze(this,vi,xf).call(this),Ze(this,vi,up).call(this)}mutate(r,a){var s;return _e(this,mi,a),(s=V(this,On))==null||s.removeObserver(this),_e(this,On,V(this,yi).getMutationCache().build(V(this,yi),this.options)),V(this,On).addObserver(this),V(this,On).execute(r)}},yi=new WeakMap,ha=new WeakMap,On=new WeakMap,mi=new WeakMap,vi=new WeakSet,xf=function(){var a;const r=((a=V(this,On))==null?void 0:a.state)??iE();_e(this,ha,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},up=function(r){qt.batch(()=>{var a,s,o,c,f,d,y,m;if(V(this,mi)&&this.hasListeners()){const g=V(this,ha).variables,v=V(this,ha).context,b={client:V(this,yi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(s=(a=V(this,mi)).onSuccess)==null||s.call(a,r.data,g,v,b)}catch(S){Promise.reject(S)}try{(c=(o=V(this,mi)).onSettled)==null||c.call(o,r.data,null,g,v,b)}catch(S){Promise.reject(S)}}else if((r==null?void 0:r.type)==="error"){try{(d=(f=V(this,mi)).onError)==null||d.call(f,r.error,g,v,b)}catch(S){Promise.reject(S)}try{(m=(y=V(this,mi)).onSettled)==null||m.call(y,void 0,r.error,g,v,b)}catch(S){Promise.reject(S)}}}this.listeners.forEach(g=>{g(V(this,ha))})})},Vw),Dr,Pw,nC=(Pw=class extends Fl{constructor(t={}){super();Le(this,Dr);this.config=t,_e(this,Dr,new Map)}build(t,r,a){const s=r.queryKey,o=r.queryHash??Yp(s,r);let c=this.get(o);return c||(c=new ZA({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(r),state:a,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){V(this,Dr).has(t.queryHash)||(V(this,Dr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=V(this,Dr).get(t.queryHash);r&&(t.destroy(),r===t&&V(this,Dr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,Dr).get(t)}getAll(){return[...V(this,Dr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(a=>N2(r,a))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(a=>N2(t,a)):r}notify(t){qt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){qt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dr=new WeakMap,Pw),zt,ya,ma,kl,Al,ga,Cl,Tl,Iw,hj=(Iw=class{constructor(e={}){Le(this,zt);Le(this,ya);Le(this,ma);Le(this,kl);Le(this,Al);Le(this,ga);Le(this,Cl);Le(this,Tl);_e(this,zt,e.queryCache||new nC),_e(this,ya,e.mutationCache||new eC),_e(this,ma,e.defaultOptions||{}),_e(this,kl,new Map),_e(this,Al,new Map),_e(this,ga,0)}mount(){af(this,ga)._++,V(this,ga)===1&&(_e(this,Cl,$p.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,zt).onFocus())})),_e(this,Tl,Cf.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,zt).onOnline())})))}unmount(){var e,t;af(this,ga)._--,V(this,ga)===0&&((e=V(this,Cl))==null||e.call(this),_e(this,Cl,void 0),(t=V(this,Tl))==null||t.call(this),_e(this,Tl,void 0))}isFetching(e){return V(this,zt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,ya).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=V(this,zt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=V(this,zt).build(this,t),a=r.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(pa(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return V(this,zt).findAll(e).map(({queryKey:t,state:r})=>{const a=r.data;return[t,a]})}setQueryData(e,t,r){const a=this.defaultQueryOptions({queryKey:e}),s=V(this,zt).get(a.queryHash),o=s==null?void 0:s.state.data,c=BA(t,o);if(c!==void 0)return V(this,zt).build(this,a).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return qt.batch(()=>V(this,zt).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=V(this,zt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=V(this,zt);qt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=V(this,zt);return qt.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},a=qt.batch(()=>V(this,zt).findAll(e).map(s=>s.cancel(r)));return Promise.all(a).then(vn).catch(vn)}invalidateQueries(e,t={}){return qt.batch(()=>(V(this,zt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},a=qt.batch(()=>V(this,zt).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(vn)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=V(this,zt).build(this,t);return r.isStaleByTime(pa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=Tf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=Tf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cf.isOnline()?V(this,ya).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,zt)}getMutationCache(){return V(this,ya)}getDefaultOptions(){return V(this,ma)}setDefaultOptions(e){_e(this,ma,e)}setQueryDefaults(e,t){V(this,kl).set(os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,kl).values()],r={};return t.forEach(a=>{iu(e,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(e,t){V(this,Al).set(os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,Al).values()],r={};return t.forEach(a=>{iu(e,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ma).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Gp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ma).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,zt).clear(),V(this,ya).clear()}},zt=new WeakMap,ya=new WeakMap,ma=new WeakMap,kl=new WeakMap,Al=new WeakMap,ga=new WeakMap,Cl=new WeakMap,Tl=new WeakMap,Iw),aE=R.createContext(void 0),Mu=e=>{const t=R.useContext(aE);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yj=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),le.jsx(aE.Provider,{value:e,children:t})),sE=R.createContext(!1),rC=()=>R.useContext(sE);sE.Provider;function iC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var aC=R.createContext(iC()),sC=()=>R.useContext(aC),lC=(e,t,r)=>{const a=r!=null&&r.state.error&&typeof e.throwOnError=="function"?Qp(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(t.isReset()||(e.retryOnMount=!1))},oC=e=>{R.useEffect(()=>{e.clearReset()},[e])},uC=({result:e,errorResetBoundary:t,throwOnError:r,query:a,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(s&&e.data===void 0||Qp(r,[e.error,a])),cC=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...s)=>r(a(...s)):r(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},fC=(e,t)=>e.isLoading&&e.isFetching&&!t,dC=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,U2=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function lE(e,t,r){var v,b,S,_;const a=rC(),s=sC(),o=Mu(r),c=o.defaultQueryOptions(e);(b=(v=o.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,c);const f=o.getQueryCache().get(c.queryHash);c._optimisticResults=a?"isRestoring":"optimistic",cC(c),lC(c,s,f),oC(s);const d=!o.getQueryCache().get(c.queryHash),[y]=R.useState(()=>new t(o,c)),m=y.getOptimisticResult(c),g=!a&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(x=>{const E=g?y.subscribe(qt.batchCalls(x)):vn;return y.updateResult(),E},[y,g]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),R.useEffect(()=>{y.setOptions(c)},[c,y]),dC(c,m))throw U2(c,y,s);if(uC({result:m,errorResetBoundary:s,throwOnError:c.throwOnError,query:f,suspense:c.suspense}))throw m.error;if((_=(S=o.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||_.call(S,c,m),c.experimental_prefetchInRender&&!au.isServer()&&fC(m,a)){const x=d?U2(c,y,s):f==null?void 0:f.promise;x==null||x.catch(vn).finally(()=>{y.updateResult()})}return c.notifyOnChangeProps?m:y.trackResult(m)}function mj(e,t){return lE(e,tE,t)}function gj(e,t){const r=Mu(t),a=r.getQueryCache();return R.useSyncExternalStore(R.useCallback(s=>a.subscribe(qt.batchCalls(s)),[a]),()=>r.isFetching(e),()=>r.isFetching(e))}function pj(e,t){const r=Mu(t);return hC({filters:{...e,status:"pending"}},r).length}function H2(e,t){return e.findAll(t.filters).map(r=>t.select?t.select(r):r.state)}function hC(e={},t){const r=Mu(t).getMutationCache(),a=R.useRef(e),s=R.useRef(null);return s.current===null&&(s.current=H2(r,e)),R.useEffect(()=>{a.current=e}),R.useSyncExternalStore(R.useCallback(o=>r.subscribe(()=>{const c=Zp(s.current,H2(r,a.current));s.current!==c&&(s.current=c,qt.schedule(o))}),[r]),()=>s.current,()=>s.current)}function vj(e,t){const r=Mu(t),[a]=R.useState(()=>new tC(r,e));R.useEffect(()=>{a.setOptions(e)},[a,e]);const s=R.useSyncExternalStore(R.useCallback(c=>a.subscribe(qt.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),o=R.useCallback((c,f)=>{a.mutate(c,f).catch(vn)},[a]);if(s.error&&Qp(a.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}function bj(e,t){return lE(e,WA,t)}/**
50
+ * react-router v7.13.1
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var V2="popstate";function P2(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function yC(e={}){function t(a,s){var y;let o=(y=s.state)==null?void 0:y.masked,{pathname:c,search:f,hash:d}=o||a.location;return cp("",{pathname:c,search:f,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default",o?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,s){return typeof s=="string"?s:su(s)}return gC(t,r,null,e)}function kt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mC(){return Math.random().toString(36).substring(2,10)}function I2(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function cp(e,t,r=null,a,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$l(t):t,state:r,key:t&&t.key||a||mC(),unstable_mask:s}}function su({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function $l(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function gC(e,t,r,a={}){let{window:s=document.defaultView,v5Compat:o=!1}=a,c=s.history,f="POP",d=null,y=m();y==null&&(y=0,c.replaceState({...c.state,idx:y},""));function m(){return(c.state||{idx:null}).idx}function g(){f="POP";let x=m(),E=x==null?null:x-y;y=x,d&&d({action:f,location:_.location,delta:E})}function v(x,E){f="PUSH";let k=P2(x)?x:cp(_.location,x,E);y=m()+1;let M=I2(k,y),A=_.createHref(k.unstable_mask||k);try{c.pushState(M,"",A)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(A)}o&&d&&d({action:f,location:_.location,delta:1})}function b(x,E){f="REPLACE";let k=P2(x)?x:cp(_.location,x,E);y=m();let M=I2(k,y),A=_.createHref(k.unstable_mask||k);c.replaceState(M,"",A),o&&d&&d({action:f,location:_.location,delta:0})}function S(x){return pC(x)}let _={get action(){return f},get location(){return e(s,c)},listen(x){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(V2,g),d=x,()=>{s.removeEventListener(V2,g),d=null}},createHref(x){return t(s,x)},createURL:S,encodeLocation(x){let E=S(x);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:v,replace:b,go(x){return c.go(x)}};return _}function pC(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),kt(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:su(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function oE(e,t,r="/"){return vC(e,t,r,!1)}function vC(e,t,r,a){let s=typeof t=="string"?$l(t):t,o=bi(s.pathname||"/",r);if(o==null)return null;let c=uE(e);bC(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let y=RC(o);f=CC(c[d],y,a)}return f}function uE(e,t=[],r=[],a="",s=!1){let o=(c,f,d=s,y)=>{let m={relativePath:y===void 0?c.path||"":y,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&d)return;kt(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let g=jr([a,m.relativePath]),v=r.concat(m);c.children&&c.children.length>0&&(kt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),uE(c.children,t,v,g,d)),!(c.path==null&&!c.index)&&t.push({path:g,score:kC(g,c.index),routesMeta:v})};return e.forEach((c,f)=>{var d;if(c.path===""||!((d=c.path)!=null&&d.includes("?")))o(c,f);else for(let y of cE(c.path))o(c,f,!0,y)}),t}function cE(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return s?[o,""]:[o];let c=cE(a.join("/")),f=[];return f.push(...c.map(d=>d===""?o:[o,d].join("/"))),s&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function bC(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:AC(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var SC=/^:[\w-]+$/,_C=3,xC=2,wC=1,EC=10,MC=-2,F2=e=>e==="*";function kC(e,t){let r=e.split("/"),a=r.length;return r.some(F2)&&(a+=MC),t&&(a+=xC),r.filter(s=>!F2(s)).reduce((s,o)=>s+(SC.test(o)?_C:o===""?wC:EC),a)}function AC(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function CC(e,t,r=!1){let{routesMeta:a}=e,s={},o="/",c=[];for(let f=0;f<a.length;++f){let d=a[f],y=f===a.length-1,m=o==="/"?t:t.slice(o.length)||"/",g=Rf({path:d.relativePath,caseSensitive:d.caseSensitive,end:y},m),v=d.route;if(!g&&y&&r&&!a[a.length-1].route.index&&(g=Rf({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!g)return null;Object.assign(s,g.params),c.push({params:s,pathname:jr([o,g.pathname]),pathnameBase:DC(jr([o,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(o=jr([o,g.pathnameBase]))}return c}function Rf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=TC(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:a.reduce((y,{paramName:m,isOptional:g},v)=>{if(m==="*"){let S=f[v]||"";c=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const b=f[v];return g&&!b?y[m]=void 0:y[m]=(b||"").replace(/%2F/g,"/"),y},{}),pathname:o,pathnameBase:c,pattern:e}}function TC(e,t=!1,r=!0){lr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d,y,m)=>{if(a.push({paramName:f,isOptional:d!=null}),d){let g=m.charAt(y+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function RC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function bi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}var NC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function OC(e,t="/"){let{pathname:r,search:a="",hash:s=""}=typeof e=="string"?$l(e):e,o;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?o=$2(r.substring(1),"/"):o=$2(r,t)):o=t,{pathname:o,search:LC(a),hash:jC(s)}}function $2(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Xy(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. 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 zC(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Kp(e){let t=zC(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function sd(e,t,r,a=!1){let s;typeof e=="string"?s=$l(e):(s={...e},kt(!s.pathname||!s.pathname.includes("?"),Xy("?","pathname","search",s)),kt(!s.pathname||!s.pathname.includes("#"),Xy("#","pathname","hash",s)),kt(!s.search||!s.search.includes("#"),Xy("#","search","hash",s)));let o=e===""||s.pathname==="",c=o?"/":s.pathname,f;if(c==null)f=r;else{let g=t.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;s.pathname=v.join("/")}f=g>=0?t[g]:"/"}let d=OC(s,f),y=c&&c!=="/"&&c.endsWith("/"),m=(o||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(y||m)&&(d.pathname+="/"),d}var jr=e=>e.join("/").replace(/\/\/+/g,"/"),DC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,BC=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function qC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function UC(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var fE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dE(e,t){let r=e;if(typeof r!="string"||!NC.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,s=!1;if(fE)try{let o=new URL(window.location.href),c=r.startsWith("//")?new URL(o.protocol+r):new URL(r),f=bi(c.pathname,t);c.origin===o.origin&&f!=null?r=f+c.search+c.hash:s=!0}catch{lr(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hE=["POST","PUT","PATCH","DELETE"];new Set(hE);var HC=["GET",...hE];new Set(HC);var Yl=R.createContext(null);Yl.displayName="DataRouter";var ld=R.createContext(null);ld.displayName="DataRouterState";var VC=R.createContext(!1),yE=R.createContext({isTransitioning:!1});yE.displayName="ViewTransition";var PC=R.createContext(new Map);PC.displayName="Fetchers";var IC=R.createContext(null);IC.displayName="Await";var Gn=R.createContext(null);Gn.displayName="Navigation";var ku=R.createContext(null);ku.displayName="Location";var cr=R.createContext({outlet:null,matches:[],isDataRoute:!1});cr.displayName="Route";var Wp=R.createContext(null);Wp.displayName="RouteError";var mE="REACT_ROUTER_ERROR",FC="REDIRECT",$C="ROUTE_ERROR_RESPONSE";function YC(e){if(e.startsWith(`${mE}:${FC}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function ZC(e){if(e.startsWith(`${mE}:${$C}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new BC(t.status,t.statusText,t.data)}catch{}}function GC(e,{relative:t}={}){kt(Zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=R.useContext(Gn),{hash:s,pathname:o,search:c}=Au(e,{relative:t}),f=o;return r!=="/"&&(f=o==="/"?r:jr([r,o])),a.createHref({pathname:f,search:c,hash:s})}function Zl(){return R.useContext(ku)!=null}function Hr(){return kt(Zl(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(ku).location}var gE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pE(e){R.useContext(Gn).static||R.useLayoutEffect(e)}function Jp(){let{isDataRoute:e}=R.useContext(cr);return e?l5():QC()}function QC(){kt(Zl(),"useNavigate() may be used only in the context of a <Router> component.");let e=R.useContext(Yl),{basename:t,navigator:r}=R.useContext(Gn),{matches:a}=R.useContext(cr),{pathname:s}=Hr(),o=JSON.stringify(Kp(a)),c=R.useRef(!1);return pE(()=>{c.current=!0}),R.useCallback((d,y={})=>{if(lr(c.current,gE),!c.current)return;if(typeof d=="number"){r.go(d);return}let m=sd(d,JSON.parse(o),s,y.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:jr([t,m.pathname])),(y.replace?r.replace:r.push)(m,y.state,y)},[t,r,o,s,e])}var vE=R.createContext(null);function Sj(){return R.useContext(vE)}function _j(e){let t=R.useContext(cr).outlet;return R.useMemo(()=>t&&R.createElement(vE.Provider,{value:e},t),[t,e])}function xj(){let{matches:e}=R.useContext(cr),t=e[e.length-1];return t?t.params:{}}function Au(e,{relative:t}={}){let{matches:r}=R.useContext(cr),{pathname:a}=Hr(),s=JSON.stringify(Kp(r));return R.useMemo(()=>sd(e,JSON.parse(s),a,t==="path"),[e,s,a,t])}function XC(e,t){return bE(e,t)}function bE(e,t,r){var x;kt(Zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=R.useContext(Gn),{matches:s}=R.useContext(cr),o=s[s.length-1],c=o?o.params:{},f=o?o.pathname:"/",d=o?o.pathnameBase:"/",y=o&&o.route;{let E=y&&y.path||"";_E(f,!y||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let m=Hr(),g;if(t){let E=typeof t=="string"?$l(t):t;kt(d==="/"||((x=E.pathname)==null?void 0:x.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${E.pathname}" was given in the \`location\` prop.`),g=E}else g=m;let v=g.pathname||"/",b=v;if(d!=="/"){let E=d.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(E.length).join("/")}let S=oE(e,{pathname:b});lr(y||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),lr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=t5(S&&S.map(E=>Object.assign({},E,{params:Object.assign({},c,E.params),pathname:jr([d,a.encodeLocation?a.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?d:jr([d,a.encodeLocation?a.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,r);return t&&_?R.createElement(ku.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},_):_}function KC(){let e=s5(),t=qC(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:o},"ErrorBoundary")," or"," ",R.createElement("code",{style:o},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),r?R.createElement("pre",{style:s},r):null,c)}var WC=R.createElement(KC,null),SE=class extends R.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||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=ZC(e.digest);r&&(e=r)}let t=e!==void 0?R.createElement(cr.Provider,{value:this.props.routeContext},R.createElement(Wp.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?R.createElement(JC,{error:e},t):t}};SE.contextType=VC;var Ky=new WeakMap;function JC({children:e,error:t}){let{basename:r}=R.useContext(Gn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=YC(t.digest);if(a){let s=Ky.get(t);if(s)throw s;let o=dE(a.location,r);if(fE&&!Ky.get(t))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Ky.set(t,c),c}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function e5({routeContext:e,match:t,children:r}){let a=R.useContext(Yl);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),R.createElement(cr.Provider,{value:e},r)}function t5(e,t=[],r){let a=r==null?void 0:r.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let s=e,o=a==null?void 0:a.errors;if(o!=null){let m=s.findIndex(g=>g.route.id&&(o==null?void 0:o[g.route.id])!==void 0);kt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,m+1))}let c=!1,f=-1;if(r&&a){c=a.renderFallback;for(let m=0;m<s.length;m++){let g=s[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=m),g.route.id){let{loaderData:v,errors:b}=a,S=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||S){r.isStatic&&(c=!0),f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}}let d=r==null?void 0:r.onError,y=a&&d?(m,g)=>{var v,b;d(m,{location:a.location,params:((b=(v=a.matches)==null?void 0:v[0])==null?void 0:b.params)??{},unstable_pattern:UC(a.matches),errorInfo:g})}:void 0;return s.reduceRight((m,g,v)=>{let b,S=!1,_=null,x=null;a&&(b=o&&g.route.id?o[g.route.id]:void 0,_=g.route.errorElement||WC,c&&(f<0&&v===0?(_E("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,x=null):f===v&&(S=!0,x=g.route.hydrateFallbackElement||null)));let E=t.concat(s.slice(0,v+1)),k=()=>{let M;return b?M=_:S?M=x:g.route.Component?M=R.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=m,R.createElement(e5,{match:g,routeContext:{outlet:m,matches:E,isDataRoute:a!=null},children:M})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?R.createElement(SE,{location:a.location,revalidation:a.revalidation,component:_,error:b,children:k(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:y}):k()},null)}function e0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n5(e){let t=R.useContext(Yl);return kt(t,e0(e)),t}function r5(e){let t=R.useContext(ld);return kt(t,e0(e)),t}function i5(e){let t=R.useContext(cr);return kt(t,e0(e)),t}function t0(e){let t=i5(e),r=t.matches[t.matches.length-1];return kt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function a5(){return t0("useRouteId")}function s5(){var a;let e=R.useContext(Wp),t=r5("useRouteError"),r=t0("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[r]}function l5(){let{router:e}=n5("useNavigate"),t=t0("useNavigate"),r=R.useRef(!1);return pE(()=>{r.current=!0}),R.useCallback(async(s,o={})=>{lr(r.current,gE),r.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...o}))},[e,t])}var Y2={};function _E(e,t,r){!t&&!Y2[e]&&(Y2[e]=!0,lr(!1,r))}R.memo(o5);function o5({routes:e,future:t,state:r,isStatic:a,onError:s}){return bE(e,void 0,{state:r,isStatic:a,onError:s})}function wj({to:e,replace:t,state:r,relative:a}){kt(Zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=R.useContext(Gn);lr(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=R.useContext(cr),{pathname:c}=Hr(),f=Jp(),d=sd(e,Kp(o),c,a==="path"),y=JSON.stringify(d);return R.useEffect(()=>{f(JSON.parse(y),{replace:t,state:r,relative:a})},[f,y,a,t,r]),null}function u5(e){kt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function c5({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:s,static:o=!1,unstable_useTransitions:c}){kt(!Zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=R.useMemo(()=>({basename:f,navigator:s,static:o,unstable_useTransitions:c,future:{}}),[f,s,o,c]);typeof r=="string"&&(r=$l(r));let{pathname:y="/",search:m="",hash:g="",state:v=null,key:b="default",unstable_mask:S}=r,_=R.useMemo(()=>{let x=bi(y,f);return x==null?null:{location:{pathname:x,search:m,hash:g,state:v,key:b,unstable_mask:S},navigationType:a}},[f,y,m,g,v,b,a,S]);return lr(_!=null,`<Router basename="${f}"> is not able to match the URL "${y}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:R.createElement(Gn.Provider,{value:d},R.createElement(ku.Provider,{children:t,value:_}))}function Ej({children:e,location:t}){return XC(fp(e),t)}function fp(e,t=[]){let r=[];return R.Children.forEach(e,(a,s)=>{if(!R.isValidElement(a))return;let o=[...t,s];if(a.type===R.Fragment){r.push.apply(r,fp(a.props.children,o));return}kt(a.type===u5,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),kt(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=fp(a.props.children,o)),r.push(c)}),r}var wf="get",Ef="application/x-www-form-urlencoded";function od(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function f5(e){return od(e)&&e.tagName.toLowerCase()==="button"}function d5(e){return od(e)&&e.tagName.toLowerCase()==="form"}function h5(e){return od(e)&&e.tagName.toLowerCase()==="input"}function y5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function m5(e,t){return e.button===0&&(!t||t==="_self")&&!y5(e)}function dp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(s=>[r,s]):[[r,a]])},[]))}function g5(e,t){let r=dp(e);return t&&t.forEach((a,s)=>{r.has(s)||t.getAll(s).forEach(o=>{r.append(s,o)})}),r}var lf=null;function p5(){if(lf===null)try{new FormData(document.createElement("form"),0),lf=!1}catch{lf=!0}return lf}var v5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wy(e){return e!=null&&!v5.has(e)?(lr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ef}"`),null):e}function b5(e,t){let r,a,s,o,c;if(d5(e)){let f=e.getAttribute("action");a=f?bi(f,t):null,r=e.getAttribute("method")||wf,s=Wy(e.getAttribute("enctype"))||Ef,o=new FormData(e)}else if(f5(e)||h5(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(a=d?bi(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||wf,s=Wy(e.getAttribute("formenctype"))||Wy(f.getAttribute("enctype"))||Ef,o=new FormData(f,e),!p5()){let{name:y,type:m,value:g}=e;if(m==="image"){let v=y?`${y}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else y&&o.append(y,g)}}else{if(od(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=wf,a=null,s=Ef,c=e}return o&&s==="text/plain"&&(c=o,o=void 0),{action:a,method:r.toLowerCase(),encType:s,formData:o,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function n0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function S5(e,t,r,a){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${a}`:s.pathname=`${s.pathname}.${a}`:s.pathname==="/"?s.pathname=`_root.${a}`:t&&bi(s.pathname,t)==="/"?s.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function _5(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function x5(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function w5(e,t,r){let a=await Promise.all(e.map(async s=>{let o=t.routes[s.route.id];if(o){let c=await _5(o,r);return c.links?c.links():[]}return[]}));return A5(a.flat(1).filter(x5).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Z2(e,t,r,a,s,o){let c=(d,y)=>r[y]?d.route.id!==r[y].route.id:!0,f=(d,y)=>{var m;return r[y].pathname!==d.pathname||((m=r[y].route.path)==null?void 0:m.endsWith("*"))&&r[y].params["*"]!==d.params["*"]};return o==="assets"?t.filter((d,y)=>c(d,y)||f(d,y)):o==="data"?t.filter((d,y)=>{var g;let m=a.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(c(d,y)||f(d,y))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function E5(e,t,{includeHydrateFallback:r}={}){return M5(e.map(a=>{let s=t.routes[a.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function M5(e){return[...new Set(e)]}function k5(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function A5(e,t){let r=new Set;return new Set(t),e.reduce((a,s)=>{let o=JSON.stringify(k5(s));return r.has(o)||(r.add(o),a.push({key:o,link:s})),a},[])}function xE(){let e=R.useContext(Yl);return n0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function C5(){let e=R.useContext(ld);return n0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var r0=R.createContext(void 0);r0.displayName="FrameworkContext";function wE(){let e=R.useContext(r0);return n0(e,"You must render this element inside a <HydratedRouter> element"),e}function T5(e,t){let r=R.useContext(r0),[a,s]=R.useState(!1),[o,c]=R.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:y,onMouseLeave:m,onTouchStart:g}=t,v=R.useRef(null);R.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let _=E=>{E.forEach(k=>{c(k.isIntersecting)})},x=new IntersectionObserver(_,{threshold:.5});return v.current&&x.observe(v.current),()=>{x.disconnect()}}},[e]),R.useEffect(()=>{if(a){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[a]);let b=()=>{s(!0)},S=()=>{s(!1),c(!1)};return r?e!=="intent"?[o,v,{}]:[o,v,{onFocus:Go(f,b),onBlur:Go(d,S),onMouseEnter:Go(y,b),onMouseLeave:Go(m,S),onTouchStart:Go(g,b)}]:[!1,v,{}]}function Go(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function R5({page:e,...t}){let{router:r}=xE(),a=R.useMemo(()=>oE(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?R.createElement(O5,{page:e,matches:a,...t}):null}function N5(e){let{manifest:t,routeModules:r}=wE(),[a,s]=R.useState([]);return R.useEffect(()=>{let o=!1;return w5(e,t,r).then(c=>{o||s(c)}),()=>{o=!0}},[e,t,r]),a}function O5({page:e,matches:t,...r}){let a=Hr(),{future:s,manifest:o,routeModules:c}=wE(),{basename:f}=xE(),{loaderData:d,matches:y}=C5(),m=R.useMemo(()=>Z2(e,t,y,o,a,"data"),[e,t,y,o,a]),g=R.useMemo(()=>Z2(e,t,y,o,a,"assets"),[e,t,y,o,a]),v=R.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let _=new Set,x=!1;if(t.forEach(k=>{var A;let M=o.routes[k.route.id];!M||!M.hasLoader||(!m.some(z=>z.route.id===k.route.id)&&k.route.id in d&&((A=c[k.route.id])!=null&&A.shouldRevalidate)||M.hasClientLoader?x=!0:_.add(k.route.id))}),_.size===0)return[];let E=S5(e,f,s.unstable_trailingSlashAwareDataRequests,"data");return x&&_.size>0&&E.searchParams.set("_routes",t.filter(k=>_.has(k.route.id)).map(k=>k.route.id).join(",")),[E.pathname+E.search]},[f,s.unstable_trailingSlashAwareDataRequests,d,a,o,m,t,e,c]),b=R.useMemo(()=>E5(g,o),[g,o]),S=N5(g);return R.createElement(R.Fragment,null,v.map(_=>R.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...r})),b.map(_=>R.createElement("link",{key:_,rel:"modulepreload",href:_,...r})),S.map(({key:_,link:x})=>R.createElement("link",{key:_,nonce:r.nonce,...x,crossOrigin:x.crossOrigin??r.crossOrigin})))}function z5(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var D5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{D5&&(window.__reactRouterVersion="7.13.1")}catch{}function Mj({basename:e,children:t,unstable_useTransitions:r,window:a}){let s=R.useRef();s.current==null&&(s.current=yC({window:a,v5Compat:!0}));let o=s.current,[c,f]=R.useState({action:o.action,location:o.location}),d=R.useCallback(y=>{r===!1?f(y):R.startTransition(()=>f(y))},[r]);return R.useLayoutEffect(()=>o.listen(d),[o,d]),R.createElement(c5,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:o,unstable_useTransitions:r})}var EE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ME=R.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:s,reloadDocument:o,replace:c,unstable_mask:f,state:d,target:y,to:m,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:b,...S},_){let{basename:x,navigator:E,unstable_useTransitions:k}=R.useContext(Gn),M=typeof m=="string"&&EE.test(m),A=dE(m,x);m=A.to;let z=GC(m,{relative:s}),N=Hr(),D=null;if(f){let re=sd(f,[],N.unstable_mask?N.unstable_mask.pathname:"/",!0);x!=="/"&&(re.pathname=re.pathname==="/"?x:jr([x,re.pathname])),D=E.createHref(re)}let[T,L,G]=T5(a,S),B=q5(m,{replace:c,unstable_mask:f,state:d,target:y,preventScrollReset:g,relative:s,viewTransition:v,unstable_defaultShouldRevalidate:b,unstable_useTransitions:k});function j(re){t&&t(re),re.defaultPrevented||B(re)}let F=!(A.isExternal||o),Q=R.createElement("a",{...S,...G,href:(F?D:void 0)||A.absoluteURL||z,onClick:F?j:t,ref:z5(_,L),target:y,"data-discover":!M&&r==="render"?"true":void 0});return T&&!M?R.createElement(R.Fragment,null,Q,R.createElement(R5,{page:z})):Q});ME.displayName="Link";var L5=R.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:s=!1,style:o,to:c,viewTransition:f,children:d,...y},m){let g=Au(c,{relative:y.relative}),v=Hr(),b=R.useContext(ld),{navigator:S,basename:_}=R.useContext(Gn),x=b!=null&&I5(g)&&f===!0,E=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,k=v.pathname,M=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(k=k.toLowerCase(),M=M?M.toLowerCase():null,E=E.toLowerCase()),M&&_&&(M=bi(M,_)||M);const A=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let z=k===E||!s&&k.startsWith(E)&&k.charAt(A)==="/",N=M!=null&&(M===E||!s&&M.startsWith(E)&&M.charAt(E.length)==="/"),D={isActive:z,isPending:N,isTransitioning:x},T=z?t:void 0,L;typeof a=="function"?L=a(D):L=[a,z?"active":null,N?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let G=typeof o=="function"?o(D):o;return R.createElement(ME,{...y,"aria-current":T,className:L,ref:m,style:G,to:c,viewTransition:f},typeof d=="function"?d(D):d)});L5.displayName="NavLink";var j5=R.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:s,state:o,method:c=wf,action:f,onSubmit:d,relative:y,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:v,...b},S)=>{let{unstable_useTransitions:_}=R.useContext(Gn),x=V5(),E=P5(f,{relative:y}),k=c.toLowerCase()==="get"?"get":"post",M=typeof f=="string"&&EE.test(f),A=z=>{if(d&&d(z),z.defaultPrevented)return;z.preventDefault();let N=z.nativeEvent.submitter,D=(N==null?void 0:N.getAttribute("formmethod"))||c,T=()=>x(N||z.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:s,state:o,relative:y,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:v});_&&r!==!1?R.startTransition(()=>T()):T()};return R.createElement("form",{ref:S,method:k,action:E,onSubmit:a?d:A,...b,"data-discover":!M&&e==="render"?"true":void 0})});j5.displayName="Form";function B5(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kE(e){let t=R.useContext(Yl);return kt(t,B5(e)),t}function q5(e,{target:t,replace:r,unstable_mask:a,state:s,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:y}={}){let m=Jp(),g=Hr(),v=Au(e,{relative:c});return R.useCallback(b=>{if(m5(b,t)){b.preventDefault();let S=r!==void 0?r:su(g)===su(v),_=()=>m(e,{replace:S,unstable_mask:a,state:s,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d});y?R.startTransition(()=>_()):_()}},[g,m,v,r,a,s,t,e,o,c,f,d,y])}function kj(e){lr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=R.useRef(dp(e)),r=R.useRef(!1),a=Hr(),s=R.useMemo(()=>g5(a.search,r.current?null:t.current),[a.search]),o=Jp(),c=R.useCallback((f,d)=>{const y=dp(typeof f=="function"?f(new URLSearchParams(s)):f);r.current=!0,o("?"+y,d)},[o,s]);return[s,c]}var U5=0,H5=()=>`__${String(++U5)}__`;function V5(){let{router:e}=kE("useSubmit"),{basename:t}=R.useContext(Gn),r=a5(),a=e.fetch,s=e.navigate;return R.useCallback(async(o,c={})=>{let{action:f,method:d,encType:y,formData:m,body:g}=b5(o,t);if(c.navigate===!1){let v=c.fetcherKey||H5();await a(v,r,c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:m,body:g,formMethod:c.method||d,formEncType:c.encType||y,flushSync:c.flushSync})}else await s(c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:m,body:g,formMethod:c.method||d,formEncType:c.encType||y,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,s,t,r])}function P5(e,{relative:t}={}){let{basename:r}=R.useContext(Gn),a=R.useContext(cr);kt(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),o={...Au(e||".",{relative:t})},c=Hr();if(e==null){o.search=c.search;let f=new URLSearchParams(o.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(g=>g).forEach(g=>f.append("index",g));let m=f.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:jr([r,o.pathname])),su(o)}function I5(e,{relative:t}={}){let r=R.useContext(yE);kt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=kE("useViewTransitionState"),s=Au(e,{relative:t});if(!r.isTransitioning)return!1;let o=bi(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=bi(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Rf(s.pathname,c)!=null||Rf(s.pathname,o)!=null}var AE=Zw();const Aj=ur(AE);var Nf=function(){return Nf=Object.assign||function(t){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Nf.apply(this,arguments)};function F5(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function Cj(e,t,r){if(r||arguments.length===2)for(var a=0,s=t.length,o;a<s;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}function Jy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $5(e,t){var r=R.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=t,r.facade}var Y5=typeof window<"u"?R.useLayoutEffect:R.useEffect,G2=new WeakMap;function Tj(e,t){var r=$5(null,function(a){return e.forEach(function(s){return Jy(s,a)})});return Y5(function(){var a=G2.get(r);if(a){var s=new Set(a),o=new Set(e),c=r.current;s.forEach(function(f){o.has(f)||Jy(f,null)}),o.forEach(function(f){s.has(f)||Jy(f,c)})}G2.set(r,e)},[e]),r}function Z5(e){return e}function G5(e,t){t===void 0&&(t=Z5);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var c=t(o,a);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(o){for(a=!0;r.length;){var c=r;r=[],c.forEach(o)}r={push:function(f){return o(f)},filter:function(){return r}}},assignMedium:function(o){a=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(o),c=r}var d=function(){var m=c;c=[],m.forEach(o)},y=function(){return Promise.resolve().then(d)};y(),r={push:function(m){c.push(m),y()},filter:function(m){return c=c.filter(m),r}}}};return s}function Rj(e){e===void 0&&(e={});var t=G5(null);return t.options=Nf({async:!0,ssr:!1},e),t}var CE=function(e){var t=e.sideCar,r=F5(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return R.createElement(a,Nf({},r))};CE.isSideCarExport=!0;function Nj(e,t){return e.useMedium(t),CE}var Q5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function X5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Q5();return t&&e.setAttribute("nonce",t),e}function K5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function W5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var J5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=X5())&&(K5(t,r),W5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eT=function(){var e=J5();return function(t,r){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Oj=function(){var e=eT(),t=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return t},tT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sl=new WeakMap,of=new WeakMap,uf={},em=0,TE=function(e){return e&&(e.host||TE(e.parentNode))},nT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=TE(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},rT=function(e,t,r,a){var s=nT(t,Array.isArray(e)?e:[e]);uf[r]||(uf[r]=new WeakMap);var o=uf[r],c=[],f=new Set,d=new Set(s),y=function(g){!g||f.has(g)||(f.add(g),y(g.parentNode))};s.forEach(y);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(f.has(v))m(v);else try{var b=v.getAttribute(a),S=b!==null&&b!=="false",_=(sl.get(v)||0)+1,x=(o.get(v)||0)+1;sl.set(v,_),o.set(v,x),c.push(v),_===1&&S&&of.set(v,!0),x===1&&v.setAttribute(r,"true"),S||v.setAttribute(a,"true")}catch(E){console.error("aria-hidden: cannot operate on ",v,E)}})};return m(t),f.clear(),em++,function(){c.forEach(function(g){var v=sl.get(g)-1,b=o.get(g)-1;sl.set(g,v),o.set(g,b),v||(of.has(g)||g.removeAttribute(a),of.delete(g)),b||g.removeAttribute(r)}),em--,em||(sl=new WeakMap,sl=new WeakMap,of=new WeakMap,uf={})}},zj=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=tT(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),rT(a,s,r,"aria-hidden")):function(){return null}};/**
61
+ * @license lucide-react v0.525.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const iT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aT=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase()),Q2=e=>{const t=aT(e);return t.charAt(0).toUpperCase()+t.slice(1)},RE=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim(),sT=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
66
+ * @license lucide-react v0.525.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */var lT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
71
+ * @license lucide-react v0.525.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const oT=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...f},d)=>R.createElement("svg",{ref:d,...lT,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:RE("lucide",s),...!o&&!sT(f)&&{"aria-hidden":"true"},...f},[...c.map(([y,m])=>R.createElement(y,m)),...Array.isArray(o)?o:[o]]));/**
76
+ * @license lucide-react v0.525.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const ae=(e,t)=>{const r=R.forwardRef(({className:a,...s},o)=>R.createElement(oT,{ref:o,iconNode:t,className:RE(`lucide-${iT(Q2(e))}`,`lucide-${e}`,a),...s}));return r.displayName=Q2(e),r};/**
81
+ * @license lucide-react v0.525.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const uT=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Dj=ae("activity",uT);/**
86
+ * @license lucide-react v0.525.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const cT=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],Lj=ae("archive-restore",cT);/**
91
+ * @license lucide-react v0.525.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const fT=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],jj=ae("arrow-down",fT);/**
96
+ * @license lucide-react v0.525.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const dT=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Bj=ae("arrow-left",dT);/**
101
+ * @license lucide-react v0.525.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const hT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qj=ae("arrow-right",hT);/**
106
+ * @license lucide-react v0.525.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const yT=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Uj=ae("arrow-up-right",yT);/**
111
+ * @license lucide-react v0.525.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const mT=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Hj=ae("arrow-up",mT);/**
116
+ * @license lucide-react v0.525.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const gT=[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]],Vj=ae("book-copy",gT);/**
121
+ * @license lucide-react v0.525.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const pT=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Pj=ae("bot",pT);/**
126
+ * @license lucide-react v0.525.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const vT=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Ij=ae("brain-circuit",vT);/**
131
+ * @license lucide-react v0.525.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const bT=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Fj=ae("briefcase-business",bT);/**
136
+ * @license lucide-react v0.525.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const ST=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],$j=ae("calendar-days",ST);/**
141
+ * @license lucide-react v0.525.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const _T=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Yj=ae("chart-column",_T);/**
146
+ * @license lucide-react v0.525.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const xT=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Zj=ae("check-check",xT);/**
151
+ * @license lucide-react v0.525.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const wT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gj=ae("check",wT);/**
156
+ * @license lucide-react v0.525.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const ET=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qj=ae("chevron-down",ET);/**
161
+ * @license lucide-react v0.525.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const MT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Xj=ae("chevron-right",MT);/**
166
+ * @license lucide-react v0.525.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const kT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Kj=ae("chevron-up",kT);/**
171
+ * @license lucide-react v0.525.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const AT=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],Wj=ae("chevrons-left",AT);/**
176
+ * @license lucide-react v0.525.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const CT=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],Jj=ae("chevrons-right",CT);/**
181
+ * @license lucide-react v0.525.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const TT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],eB=ae("circle-alert",TT);/**
186
+ * @license lucide-react v0.525.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const RT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],tB=ae("circle-check",RT);/**
191
+ * @license lucide-react v0.525.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const NT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],nB=ae("circle-pause",NT);/**
196
+ * @license lucide-react v0.525.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const OT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],rB=ae("circle-question-mark",OT);/**
201
+ * @license lucide-react v0.525.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const zT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],iB=ae("circle-x",zT);/**
206
+ * @license lucide-react v0.525.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const DT=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],aB=ae("clipboard-list",DT);/**
211
+ * @license lucide-react v0.525.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const LT=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],sB=ae("clipboard-paste",LT);/**
216
+ * @license lucide-react v0.525.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const jT=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lB=ae("clock-3",jT);/**
221
+ * @license lucide-react v0.525.0 - ISC
222
+ *
223
+ * This source code is licensed under the ISC license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */const BT=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]],oB=ae("cloud-sun",BT);/**
226
+ * @license lucide-react v0.525.0 - ISC
227
+ *
228
+ * This source code is licensed under the ISC license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */const qT=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],uB=ae("cloud-upload",qT);/**
231
+ * @license lucide-react v0.525.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */const UT=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],cB=ae("cloud",UT);/**
236
+ * @license lucide-react v0.525.0 - ISC
237
+ *
238
+ * This source code is licensed under the ISC license.
239
+ * See the LICENSE file in the root directory of this source tree.
240
+ */const HT=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fB=ae("compass",HT);/**
241
+ * @license lucide-react v0.525.0 - ISC
242
+ *
243
+ * This source code is licensed under the ISC license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */const VT=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],dB=ae("copy-plus",VT);/**
246
+ * @license lucide-react v0.525.0 - ISC
247
+ *
248
+ * This source code is licensed under the ISC license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */const PT=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],hB=ae("copy",PT);/**
251
+ * @license lucide-react v0.525.0 - ISC
252
+ *
253
+ * This source code is licensed under the ISC license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */const IT=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],yB=ae("cpu",IT);/**
256
+ * @license lucide-react v0.525.0 - ISC
257
+ *
258
+ * This source code is licensed under the ISC license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */const FT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],mB=ae("database-zap",FT);/**
261
+ * @license lucide-react v0.525.0 - ISC
262
+ *
263
+ * This source code is licensed under the ISC license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */const $T=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],gB=ae("database",$T);/**
266
+ * @license lucide-react v0.525.0 - ISC
267
+ *
268
+ * This source code is licensed under the ISC license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */const YT=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],pB=ae("dumbbell",YT);/**
271
+ * @license lucide-react v0.525.0 - ISC
272
+ *
273
+ * This source code is licensed under the ISC license.
274
+ * See the LICENSE file in the root directory of this source tree.
275
+ */const ZT=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],vB=ae("ellipsis",ZT);/**
276
+ * @license lucide-react v0.525.0 - ISC
277
+ *
278
+ * This source code is licensed under the ISC license.
279
+ * See the LICENSE file in the root directory of this source tree.
280
+ */const GT=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],bB=ae("external-link",GT);/**
281
+ * @license lucide-react v0.525.0 - ISC
282
+ *
283
+ * This source code is licensed under the ISC license.
284
+ * See the LICENSE file in the root directory of this source tree.
285
+ */const QT=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],SB=ae("eye-off",QT);/**
286
+ * @license lucide-react v0.525.0 - ISC
287
+ *
288
+ * This source code is licensed under the ISC license.
289
+ * See the LICENSE file in the root directory of this source tree.
290
+ */const XT=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_B=ae("eye",XT);/**
291
+ * @license lucide-react v0.525.0 - ISC
292
+ *
293
+ * This source code is licensed under the ISC license.
294
+ * See the LICENSE file in the root directory of this source tree.
295
+ */const KT=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],xB=ae("file-archive",KT);/**
296
+ * @license lucide-react v0.525.0 - ISC
297
+ *
298
+ * This source code is licensed under the ISC license.
299
+ * See the LICENSE file in the root directory of this source tree.
300
+ */const WT=[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]],wB=ae("file-stack",WT);/**
301
+ * @license lucide-react v0.525.0 - ISC
302
+ *
303
+ * This source code is licensed under the ISC license.
304
+ * See the LICENSE file in the root directory of this source tree.
305
+ */const JT=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],EB=ae("file-text",JT);/**
306
+ * @license lucide-react v0.525.0 - ISC
307
+ *
308
+ * This source code is licensed under the ISC license.
309
+ * See the LICENSE file in the root directory of this source tree.
310
+ */const eR=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],MB=ae("flame",eR);/**
311
+ * @license lucide-react v0.525.0 - ISC
312
+ *
313
+ * This source code is licensed under the ISC license.
314
+ * See the LICENSE file in the root directory of this source tree.
315
+ */const tR=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],kB=ae("folder-open",tR);/**
316
+ * @license lucide-react v0.525.0 - ISC
317
+ *
318
+ * This source code is licensed under the ISC license.
319
+ * See the LICENSE file in the root directory of this source tree.
320
+ */const nR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],AB=ae("frown",nR);/**
321
+ * @license lucide-react v0.525.0 - ISC
322
+ *
323
+ * This source code is licensed under the ISC license.
324
+ * See the LICENSE file in the root directory of this source tree.
325
+ */const rR=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],CB=ae("git-branch-plus",rR);/**
326
+ * @license lucide-react v0.525.0 - ISC
327
+ *
328
+ * This source code is licensed under the ISC license.
329
+ * See the LICENSE file in the root directory of this source tree.
330
+ */const iR=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],TB=ae("git-branch",iR);/**
331
+ * @license lucide-react v0.525.0 - ISC
332
+ *
333
+ * This source code is licensed under the ISC license.
334
+ * See the LICENSE file in the root directory of this source tree.
335
+ */const aR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],RB=ae("globe",aR);/**
336
+ * @license lucide-react v0.525.0 - ISC
337
+ *
338
+ * This source code is licensed under the ISC license.
339
+ * See the LICENSE file in the root directory of this source tree.
340
+ */const sR=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],NB=ae("grip-vertical",sR);/**
341
+ * @license lucide-react v0.525.0 - ISC
342
+ *
343
+ * This source code is licensed under the ISC license.
344
+ * See the LICENSE file in the root directory of this source tree.
345
+ */const lR=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],OB=ae("heart-handshake",lR);/**
346
+ * @license lucide-react v0.525.0 - ISC
347
+ *
348
+ * This source code is licensed under the ISC license.
349
+ * See the LICENSE file in the root directory of this source tree.
350
+ */const oR=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],zB=ae("heart-pulse",oR);/**
351
+ * @license lucide-react v0.525.0 - ISC
352
+ *
353
+ * This source code is licensed under the ISC license.
354
+ * See the LICENSE file in the root directory of this source tree.
355
+ */const uR=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],DB=ae("heart",uR);/**
356
+ * @license lucide-react v0.525.0 - ISC
357
+ *
358
+ * This source code is licensed under the ISC license.
359
+ * See the LICENSE file in the root directory of this source tree.
360
+ */const cR=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],LB=ae("history",cR);/**
361
+ * @license lucide-react v0.525.0 - ISC
362
+ *
363
+ * This source code is licensed under the ISC license.
364
+ * See the LICENSE file in the root directory of this source tree.
365
+ */const fR=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],jB=ae("image-plus",fR);/**
366
+ * @license lucide-react v0.525.0 - ISC
367
+ *
368
+ * This source code is licensed under the ISC license.
369
+ * See the LICENSE file in the root directory of this source tree.
370
+ */const dR=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],BB=ae("key-round",dR);/**
371
+ * @license lucide-react v0.525.0 - ISC
372
+ *
373
+ * This source code is licensed under the ISC license.
374
+ * See the LICENSE file in the root directory of this source tree.
375
+ */const hR=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],qB=ae("layers",hR);/**
376
+ * @license lucide-react v0.525.0 - ISC
377
+ *
378
+ * This source code is licensed under the ISC license.
379
+ * See the LICENSE file in the root directory of this source tree.
380
+ */const yR=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],UB=ae("layout-dashboard",yR);/**
381
+ * @license lucide-react v0.525.0 - ISC
382
+ *
383
+ * This source code is licensed under the ISC license.
384
+ * See the LICENSE file in the root directory of this source tree.
385
+ */const mR=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],HB=ae("layout-grid",mR);/**
386
+ * @license lucide-react v0.525.0 - ISC
387
+ *
388
+ * This source code is licensed under the ISC license.
389
+ * See the LICENSE file in the root directory of this source tree.
390
+ */const gR=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],VB=ae("layout-template",gR);/**
391
+ * @license lucide-react v0.525.0 - ISC
392
+ *
393
+ * This source code is licensed under the ISC license.
394
+ * See the LICENSE file in the root directory of this source tree.
395
+ */const pR=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],PB=ae("library-big",pR);/**
396
+ * @license lucide-react v0.525.0 - ISC
397
+ *
398
+ * This source code is licensed under the ISC license.
399
+ * See the LICENSE file in the root directory of this source tree.
400
+ */const vR=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],IB=ae("link-2",vR);/**
401
+ * @license lucide-react v0.525.0 - ISC
402
+ *
403
+ * This source code is licensed under the ISC license.
404
+ * See the LICENSE file in the root directory of this source tree.
405
+ */const bR=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],FB=ae("list-checks",bR);/**
406
+ * @license lucide-react v0.525.0 - ISC
407
+ *
408
+ * This source code is licensed under the ISC license.
409
+ * See the LICENSE file in the root directory of this source tree.
410
+ */const SR=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],$B=ae("list-plus",SR);/**
411
+ * @license lucide-react v0.525.0 - ISC
412
+ *
413
+ * This source code is licensed under the ISC license.
414
+ * See the LICENSE file in the root directory of this source tree.
415
+ */const _R=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],YB=ae("list-todo",_R);/**
416
+ * @license lucide-react v0.525.0 - ISC
417
+ *
418
+ * This source code is licensed under the ISC license.
419
+ * See the LICENSE file in the root directory of this source tree.
420
+ */const xR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ZB=ae("loader-circle",xR);/**
421
+ * @license lucide-react v0.525.0 - ISC
422
+ *
423
+ * This source code is licensed under the ISC license.
424
+ * See the LICENSE file in the root directory of this source tree.
425
+ */const wR=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],GB=ae("map-pin",wR);/**
426
+ * @license lucide-react v0.525.0 - ISC
427
+ *
428
+ * This source code is licensed under the ISC license.
429
+ * See the LICENSE file in the root directory of this source tree.
430
+ */const ER=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],QB=ae("map",ER);/**
431
+ * @license lucide-react v0.525.0 - ISC
432
+ *
433
+ * This source code is licensed under the ISC license.
434
+ * See the LICENSE file in the root directory of this source tree.
435
+ */const MR=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],XB=ae("maximize-2",MR);/**
436
+ * @license lucide-react v0.525.0 - ISC
437
+ *
438
+ * This source code is licensed under the ISC license.
439
+ * See the LICENSE file in the root directory of this source tree.
440
+ */const kR=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],KB=ae("maximize",kR);/**
441
+ * @license lucide-react v0.525.0 - ISC
442
+ *
443
+ * This source code is licensed under the ISC license.
444
+ * See the LICENSE file in the root directory of this source tree.
445
+ */const AR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],WB=ae("meh",AR);/**
446
+ * @license lucide-react v0.525.0 - ISC
447
+ *
448
+ * This source code is licensed under the ISC license.
449
+ * See the LICENSE file in the root directory of this source tree.
450
+ */const CR=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],JB=ae("message-square",CR);/**
451
+ * @license lucide-react v0.525.0 - ISC
452
+ *
453
+ * This source code is licensed under the ISC license.
454
+ * See the LICENSE file in the root directory of this source tree.
455
+ */const TR=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],eq=ae("minimize-2",TR);/**
456
+ * @license lucide-react v0.525.0 - ISC
457
+ *
458
+ * This source code is licensed under the ISC license.
459
+ * See the LICENSE file in the root directory of this source tree.
460
+ */const RR=[["path",{d:"M5 12h14",key:"1ays0h"}]],tq=ae("minus",RR);/**
461
+ * @license lucide-react v0.525.0 - ISC
462
+ *
463
+ * This source code is licensed under the ISC license.
464
+ * See the LICENSE file in the root directory of this source tree.
465
+ */const NR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]],nq=ae("moon-star",NR);/**
466
+ * @license lucide-react v0.525.0 - ISC
467
+ *
468
+ * This source code is licensed under the ISC license.
469
+ * See the LICENSE file in the root directory of this source tree.
470
+ */const OR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],rq=ae("moon",OR);/**
471
+ * @license lucide-react v0.525.0 - ISC
472
+ *
473
+ * This source code is licensed under the ISC license.
474
+ * See the LICENSE file in the root directory of this source tree.
475
+ */const zR=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],iq=ae("move",zR);/**
476
+ * @license lucide-react v0.525.0 - ISC
477
+ *
478
+ * This source code is licensed under the ISC license.
479
+ * See the LICENSE file in the root directory of this source tree.
480
+ */const DR=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["path",{d:"m9 9 12-2",key:"1e64n2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],aq=ae("music-4",DR);/**
481
+ * @license lucide-react v0.525.0 - ISC
482
+ *
483
+ * This source code is licensed under the ISC license.
484
+ * See the LICENSE file in the root directory of this source tree.
485
+ */const LR=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],sq=ae("network",LR);/**
486
+ * @license lucide-react v0.525.0 - ISC
487
+ *
488
+ * This source code is licensed under the ISC license.
489
+ * See the LICENSE file in the root directory of this source tree.
490
+ */const jR=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],lq=ae("notebook-pen",jR);/**
491
+ * @license lucide-react v0.525.0 - ISC
492
+ *
493
+ * This source code is licensed under the ISC license.
494
+ * See the LICENSE file in the root directory of this source tree.
495
+ */const BR=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],oq=ae("orbit",BR);/**
496
+ * @license lucide-react v0.525.0 - ISC
497
+ *
498
+ * This source code is licensed under the ISC license.
499
+ * See the LICENSE file in the root directory of this source tree.
500
+ */const qR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],uq=ae("panel-right-close",qR);/**
501
+ * @license lucide-react v0.525.0 - ISC
502
+ *
503
+ * This source code is licensed under the ISC license.
504
+ * See the LICENSE file in the root directory of this source tree.
505
+ */const UR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],cq=ae("panel-right-open",UR);/**
506
+ * @license lucide-react v0.525.0 - ISC
507
+ *
508
+ * This source code is licensed under the ISC license.
509
+ * See the LICENSE file in the root directory of this source tree.
510
+ */const HR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],fq=ae("panel-top",HR);/**
511
+ * @license lucide-react v0.525.0 - ISC
512
+ *
513
+ * This source code is licensed under the ISC license.
514
+ * See the LICENSE file in the root directory of this source tree.
515
+ */const VR=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],dq=ae("party-popper",VR);/**
516
+ * @license lucide-react v0.525.0 - ISC
517
+ *
518
+ * This source code is licensed under the ISC license.
519
+ * See the LICENSE file in the root directory of this source tree.
520
+ */const PR=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]],hq=ae("pencil-line",PR);/**
521
+ * @license lucide-react v0.525.0 - ISC
522
+ *
523
+ * This source code is licensed under the ISC license.
524
+ * See the LICENSE file in the root directory of this source tree.
525
+ */const IR=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],yq=ae("pencil",IR);/**
526
+ * @license lucide-react v0.525.0 - ISC
527
+ *
528
+ * This source code is licensed under the ISC license.
529
+ * See the LICENSE file in the root directory of this source tree.
530
+ */const FR=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],mq=ae("play",FR);/**
531
+ * @license lucide-react v0.525.0 - ISC
532
+ *
533
+ * This source code is licensed under the ISC license.
534
+ * See the LICENSE file in the root directory of this source tree.
535
+ */const $R=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],gq=ae("plug-zap",$R);/**
536
+ * @license lucide-react v0.525.0 - ISC
537
+ *
538
+ * This source code is licensed under the ISC license.
539
+ * See the LICENSE file in the root directory of this source tree.
540
+ */const YR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pq=ae("plus",YR);/**
541
+ * @license lucide-react v0.525.0 - ISC
542
+ *
543
+ * This source code is licensed under the ISC license.
544
+ * See the LICENSE file in the root directory of this source tree.
545
+ */const ZR=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],vq=ae("qr-code",ZR);/**
546
+ * @license lucide-react v0.525.0 - ISC
547
+ *
548
+ * This source code is licensed under the ISC license.
549
+ * See the LICENSE file in the root directory of this source tree.
550
+ */const GR=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],bq=ae("quote",GR);/**
551
+ * @license lucide-react v0.525.0 - ISC
552
+ *
553
+ * This source code is licensed under the ISC license.
554
+ * See the LICENSE file in the root directory of this source tree.
555
+ */const QR=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],Sq=ae("radar",QR);/**
556
+ * @license lucide-react v0.525.0 - ISC
557
+ *
558
+ * This source code is licensed under the ISC license.
559
+ * See the LICENSE file in the root directory of this source tree.
560
+ */const XR=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],_q=ae("refresh-ccw",XR);/**
561
+ * @license lucide-react v0.525.0 - ISC
562
+ *
563
+ * This source code is licensed under the ISC license.
564
+ * See the LICENSE file in the root directory of this source tree.
565
+ */const KR=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],xq=ae("refresh-cw",KR);/**
566
+ * @license lucide-react v0.525.0 - ISC
567
+ *
568
+ * This source code is licensed under the ISC license.
569
+ * See the LICENSE file in the root directory of this source tree.
570
+ */const WR=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],wq=ae("repeat",WR);/**
571
+ * @license lucide-react v0.525.0 - ISC
572
+ *
573
+ * This source code is licensed under the ISC license.
574
+ * See the LICENSE file in the root directory of this source tree.
575
+ */const JR=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Eq=ae("rocket",JR);/**
576
+ * @license lucide-react v0.525.0 - ISC
577
+ *
578
+ * This source code is licensed under the ISC license.
579
+ * See the LICENSE file in the root directory of this source tree.
580
+ */const e6=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Mq=ae("rotate-ccw",e6);/**
581
+ * @license lucide-react v0.525.0 - ISC
582
+ *
583
+ * This source code is licensed under the ISC license.
584
+ * See the LICENSE file in the root directory of this source tree.
585
+ */const t6=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],kq=ae("route",t6);/**
586
+ * @license lucide-react v0.525.0 - ISC
587
+ *
588
+ * This source code is licensed under the ISC license.
589
+ * See the LICENSE file in the root directory of this source tree.
590
+ */const n6=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Aq=ae("save",n6);/**
591
+ * @license lucide-react v0.525.0 - ISC
592
+ *
593
+ * This source code is licensed under the ISC license.
594
+ * See the LICENSE file in the root directory of this source tree.
595
+ */const r6=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],Cq=ae("scissors",r6);/**
596
+ * @license lucide-react v0.525.0 - ISC
597
+ *
598
+ * This source code is licensed under the ISC license.
599
+ * See the LICENSE file in the root directory of this source tree.
600
+ */const i6=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Tq=ae("scroll-text",i6);/**
601
+ * @license lucide-react v0.525.0 - ISC
602
+ *
603
+ * This source code is licensed under the ISC license.
604
+ * See the LICENSE file in the root directory of this source tree.
605
+ */const a6=[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Rq=ae("search-check",a6);/**
606
+ * @license lucide-react v0.525.0 - ISC
607
+ *
608
+ * This source code is licensed under the ISC license.
609
+ * See the LICENSE file in the root directory of this source tree.
610
+ */const s6=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Nq=ae("search",s6);/**
611
+ * @license lucide-react v0.525.0 - ISC
612
+ *
613
+ * This source code is licensed under the ISC license.
614
+ * See the LICENSE file in the root directory of this source tree.
615
+ */const l6=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],Oq=ae("send-horizontal",l6);/**
616
+ * @license lucide-react v0.525.0 - ISC
617
+ *
618
+ * This source code is licensed under the ISC license.
619
+ * See the LICENSE file in the root directory of this source tree.
620
+ */const o6=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],zq=ae("settings-2",o6);/**
621
+ * @license lucide-react v0.525.0 - ISC
622
+ *
623
+ * This source code is licensed under the ISC license.
624
+ * See the LICENSE file in the root directory of this source tree.
625
+ */const u6=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Dq=ae("settings",u6);/**
626
+ * @license lucide-react v0.525.0 - ISC
627
+ *
628
+ * This source code is licensed under the ISC license.
629
+ * See the LICENSE file in the root directory of this source tree.
630
+ */const c6=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],Lq=ae("shapes",c6);/**
631
+ * @license lucide-react v0.525.0 - ISC
632
+ *
633
+ * This source code is licensed under the ISC license.
634
+ * See the LICENSE file in the root directory of this source tree.
635
+ */const f6=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],jq=ae("shield-ban",f6);/**
636
+ * @license lucide-react v0.525.0 - ISC
637
+ *
638
+ * This source code is licensed under the ISC license.
639
+ * See the LICENSE file in the root directory of this source tree.
640
+ */const d6=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],Bq=ae("shield-off",d6);/**
641
+ * @license lucide-react v0.525.0 - ISC
642
+ *
643
+ * This source code is licensed under the ISC license.
644
+ * See the LICENSE file in the root directory of this source tree.
645
+ */const h6=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],qq=ae("sliders-horizontal",h6);/**
646
+ * @license lucide-react v0.525.0 - ISC
647
+ *
648
+ * This source code is licensed under the ISC license.
649
+ * See the LICENSE file in the root directory of this source tree.
650
+ */const y6=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Uq=ae("smartphone",y6);/**
651
+ * @license lucide-react v0.525.0 - ISC
652
+ *
653
+ * This source code is licensed under the ISC license.
654
+ * See the LICENSE file in the root directory of this source tree.
655
+ */const m6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],Hq=ae("smile",m6);/**
656
+ * @license lucide-react v0.525.0 - ISC
657
+ *
658
+ * This source code is licensed under the ISC license.
659
+ * See the LICENSE file in the root directory of this source tree.
660
+ */const g6=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Vq=ae("sparkles",g6);/**
661
+ * @license lucide-react v0.525.0 - ISC
662
+ *
663
+ * This source code is licensed under the ISC license.
664
+ * See the LICENSE file in the root directory of this source tree.
665
+ */const p6=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],Pq=ae("split",p6);/**
666
+ * @license lucide-react v0.525.0 - ISC
667
+ *
668
+ * This source code is licensed under the ISC license.
669
+ * See the LICENSE file in the root directory of this source tree.
670
+ */const v6=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Iq=ae("square-pen",v6);/**
671
+ * @license lucide-react v0.525.0 - ISC
672
+ *
673
+ * This source code is licensed under the ISC license.
674
+ * See the LICENSE file in the root directory of this source tree.
675
+ */const b6=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],Fq=ae("square-terminal",b6);/**
676
+ * @license lucide-react v0.525.0 - ISC
677
+ *
678
+ * This source code is licensed under the ISC license.
679
+ * See the LICENSE file in the root directory of this source tree.
680
+ */const S6=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],$q=ae("square",S6);/**
681
+ * @license lucide-react v0.525.0 - ISC
682
+ *
683
+ * This source code is licensed under the ISC license.
684
+ * See the LICENSE file in the root directory of this source tree.
685
+ */const _6=[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]],Yq=ae("sticky-note",_6);/**
686
+ * @license lucide-react v0.525.0 - ISC
687
+ *
688
+ * This source code is licensed under the ISC license.
689
+ * See the LICENSE file in the root directory of this source tree.
690
+ */const x6=[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],Zq=ae("table-properties",x6);/**
691
+ * @license lucide-react v0.525.0 - ISC
692
+ *
693
+ * This source code is licensed under the ISC license.
694
+ * See the LICENSE file in the root directory of this source tree.
695
+ */const w6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Gq=ae("target",w6);/**
696
+ * @license lucide-react v0.525.0 - ISC
697
+ *
698
+ * This source code is licensed under the ISC license.
699
+ * See the LICENSE file in the root directory of this source tree.
700
+ */const E6=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],Qq=ae("timer-reset",E6);/**
701
+ * @license lucide-react v0.525.0 - ISC
702
+ *
703
+ * This source code is licensed under the ISC license.
704
+ * See the LICENSE file in the root directory of this source tree.
705
+ */const M6=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Xq=ae("timer",M6);/**
706
+ * @license lucide-react v0.525.0 - ISC
707
+ *
708
+ * This source code is licensed under the ISC license.
709
+ * See the LICENSE file in the root directory of this source tree.
710
+ */const k6=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Kq=ae("trash-2",k6);/**
711
+ * @license lucide-react v0.525.0 - ISC
712
+ *
713
+ * This source code is licensed under the ISC license.
714
+ * See the LICENSE file in the root directory of this source tree.
715
+ */const A6=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Wq=ae("triangle-alert",A6);/**
716
+ * @license lucide-react v0.525.0 - ISC
717
+ *
718
+ * This source code is licensed under the ISC license.
719
+ * See the LICENSE file in the root directory of this source tree.
720
+ */const C6=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Jq=ae("trophy",C6);/**
721
+ * @license lucide-react v0.525.0 - ISC
722
+ *
723
+ * This source code is licensed under the ISC license.
724
+ * See the LICENSE file in the root directory of this source tree.
725
+ */const T6=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],eU=ae("type",T6);/**
726
+ * @license lucide-react v0.525.0 - ISC
727
+ *
728
+ * This source code is licensed under the ISC license.
729
+ * See the LICENSE file in the root directory of this source tree.
730
+ */const R6=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],tU=ae("unfold-vertical",R6);/**
731
+ * @license lucide-react v0.525.0 - ISC
732
+ *
733
+ * This source code is licensed under the ISC license.
734
+ * See the LICENSE file in the root directory of this source tree.
735
+ */const N6=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],nU=ae("upload",N6);/**
736
+ * @license lucide-react v0.525.0 - ISC
737
+ *
738
+ * This source code is licensed under the ISC license.
739
+ * See the LICENSE file in the root directory of this source tree.
740
+ */const O6=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],rU=ae("user-round",O6);/**
741
+ * @license lucide-react v0.525.0 - ISC
742
+ *
743
+ * This source code is licensed under the ISC license.
744
+ * See the LICENSE file in the root directory of this source tree.
745
+ */const z6=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],iU=ae("users",z6);/**
746
+ * @license lucide-react v0.525.0 - ISC
747
+ *
748
+ * This source code is licensed under the ISC license.
749
+ * See the LICENSE file in the root directory of this source tree.
750
+ */const D6=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],aU=ae("wand-sparkles",D6);/**
751
+ * @license lucide-react v0.525.0 - ISC
752
+ *
753
+ * This source code is licensed under the ISC license.
754
+ * See the LICENSE file in the root directory of this source tree.
755
+ */const L6=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],sU=ae("waves",L6);/**
756
+ * @license lucide-react v0.525.0 - ISC
757
+ *
758
+ * This source code is licensed under the ISC license.
759
+ * See the LICENSE file in the root directory of this source tree.
760
+ */const j6=[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]],lU=ae("waypoints",j6);/**
761
+ * @license lucide-react v0.525.0 - ISC
762
+ *
763
+ * This source code is licensed under the ISC license.
764
+ * See the LICENSE file in the root directory of this source tree.
765
+ */const B6=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],oU=ae("workflow",B6);/**
766
+ * @license lucide-react v0.525.0 - ISC
767
+ *
768
+ * This source code is licensed under the ISC license.
769
+ * See the LICENSE file in the root directory of this source tree.
770
+ */const q6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],uU=ae("x",q6);/**
771
+ * @license lucide-react v0.525.0 - ISC
772
+ *
773
+ * This source code is licensed under the ISC license.
774
+ * See the LICENSE file in the root directory of this source tree.
775
+ */const U6=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],cU=ae("zap",U6);function NE(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=NE(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function H6(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=NE(e))&&(a&&(a+=" "),a+=t);return a}const V6=(e,t)=>{const r=new Array(e.length+t.length);for(let a=0;a<e.length;a++)r[a]=e[a];for(let a=0;a<t.length;a++)r[e.length+a]=t[a];return r},P6=(e,t)=>({classGroupId:e,validator:t}),OE=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Of="-",X2=[],I6="arbitrary..",F6=e=>{const t=Y6(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return $6(c);const f=c.split(Of),d=f[0]===""&&f.length>1?1:0;return zE(f,d,t)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=a[c],y=r[c];return d?y?V6(y,d):d:y||X2}return r[c]||X2}}},zE=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const y=zE(e,t+1,o);if(y)return y}const c=r.validators;if(c===null)return;const f=t===0?e.join(Of):e.slice(t).join(Of),d=c.length;for(let y=0;y<d;y++){const m=c[y];if(m.validator(f))return m.classGroupId}},$6=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?I6+a:void 0})(),Y6=e=>{const{theme:t,classGroups:r}=e;return Z6(r,t)},Z6=(e,t)=>{const r=OE();for(const a in e){const s=e[a];i0(s,r,a,t)}return r},i0=(e,t,r,a)=>{const s=e.length;for(let o=0;o<s;o++){const c=e[o];G6(c,t,r,a)}},G6=(e,t,r,a)=>{if(typeof e=="string"){Q6(e,t,r);return}if(typeof e=="function"){X6(e,t,r,a);return}K6(e,t,r,a)},Q6=(e,t,r)=>{const a=e===""?t:DE(t,e);a.classGroupId=r},X6=(e,t,r,a)=>{if(W6(e)){i0(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(P6(r,e))},K6=(e,t,r,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c<o;c++){const[f,d]=s[c];i0(d,DE(t,f),r,a)}},DE=(e,t)=>{let r=e;const a=t.split(Of),s=a.length;for(let o=0;o<s;o++){const c=a[o];let f=r.nextPart.get(c);f||(f=OE(),r.nextPart.set(c,f)),r=f}return r},W6=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,J6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null);const s=(o,c)=>{r[o]=c,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(o){let c=r[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return s(o,c),c},set(o,c){o in r?r[o]=c:s(o,c)}}},hp="!",K2=":",eN=[],W2=(e,t,r,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),tN=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const o=[];let c=0,f=0,d=0,y;const m=s.length;for(let _=0;_<m;_++){const x=s[_];if(c===0&&f===0){if(x===K2){o.push(s.slice(d,_)),d=_+1;continue}if(x==="/"){y=_;continue}}x==="["?c++:x==="]"?c--:x==="("?f++:x===")"&&f--}const g=o.length===0?s:s.slice(d);let v=g,b=!1;g.endsWith(hp)?(v=g.slice(0,-1),b=!0):g.startsWith(hp)&&(v=g.slice(1),b=!0);const S=y&&y>d?y-d:void 0;return W2(o,b,v,S)};if(t){const s=t+K2,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):W2(eN,!1,c,void 0,!0)}if(r){const s=a;a=o=>r({className:o,parseClassName:s})}return a},nN=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{const a=[];let s=[];for(let o=0;o<r.length;o++){const c=r[o],f=c[0]==="[",d=t.has(c);f||d?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},rN=e=>({cache:J6(e.cacheSize),parseClassName:tN(e),sortModifiers:nN(e),...F6(e)}),iN=/\s+/,aN=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o}=t,c=[],f=e.trim().split(iN);let d="";for(let y=f.length-1;y>=0;y-=1){const m=f[y],{isExternal:g,modifiers:v,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:_}=r(m);if(g){d=m+(d.length>0?" "+d:d);continue}let x=!!_,E=a(x?S.substring(0,_):S);if(!E){if(!x){d=m+(d.length>0?" "+d:d);continue}if(E=a(S),!E){d=m+(d.length>0?" "+d:d);continue}x=!1}const k=v.length===0?"":v.length===1?v[0]:o(v).join(":"),M=b?k+hp:k,A=M+E;if(c.indexOf(A)>-1)continue;c.push(A);const z=s(E,x);for(let N=0;N<z.length;++N){const D=z[N];c.push(M+D)}d=m+(d.length>0?" "+d:d)}return d},sN=(...e)=>{let t=0,r,a,s="";for(;t<e.length;)(r=e[t++])&&(a=LE(r))&&(s&&(s+=" "),s+=a);return s},LE=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=LE(e[a]))&&(r&&(r+=" "),r+=t);return r},lN=(e,...t)=>{let r,a,s,o;const c=d=>{const y=t.reduce((m,g)=>g(m),e());return r=rN(y),a=r.cache.get,s=r.cache.set,o=f,f(d)},f=d=>{const y=a(d);if(y)return y;const m=aN(d,r);return s(d,m),m};return o=c,(...d)=>o(sN(...d))},oN=[],Wt=e=>{const t=r=>r[e]||oN;return t.isThemeGetter=!0,t},jE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,BE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wi=e=>uN.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Ji=e=>!!e&&Number.isInteger(Number(e)),tm=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),ui=e=>cN.test(e),qE=()=>!0,mN=e=>fN.test(e)&&!dN.test(e),a0=()=>!1,gN=e=>hN.test(e),pN=e=>yN.test(e),vN=e=>!ke(e)&&!Ae(e),bN=e=>xa(e,VE,a0),ke=e=>jE.test(e),Fa=e=>xa(e,PE,mN),J2=e=>xa(e,AN,Qe),SN=e=>xa(e,FE,qE),_N=e=>xa(e,IE,a0),eS=e=>xa(e,UE,a0),xN=e=>xa(e,HE,pN),cf=e=>xa(e,$E,gN),Ae=e=>BE.test(e),Qo=e=>vs(e,PE),wN=e=>vs(e,IE),tS=e=>vs(e,UE),EN=e=>vs(e,VE),MN=e=>vs(e,HE),ff=e=>vs(e,$E,!0),kN=e=>vs(e,FE,!0),xa=(e,t,r)=>{const a=jE.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},vs=(e,t,r=!1)=>{const a=BE.exec(e);return a?a[1]?t(a[1]):r:!1},UE=e=>e==="position"||e==="percentage",HE=e=>e==="image"||e==="url",VE=e=>e==="length"||e==="size"||e==="bg-size",PE=e=>e==="length",AN=e=>e==="number",IE=e=>e==="family-name",FE=e=>e==="number"||e==="weight",$E=e=>e==="shadow",CN=()=>{const e=Wt("color"),t=Wt("font"),r=Wt("text"),a=Wt("font-weight"),s=Wt("tracking"),o=Wt("leading"),c=Wt("breakpoint"),f=Wt("container"),d=Wt("spacing"),y=Wt("radius"),m=Wt("shadow"),g=Wt("inset-shadow"),v=Wt("text-shadow"),b=Wt("drop-shadow"),S=Wt("blur"),_=Wt("perspective"),x=Wt("aspect"),E=Wt("ease"),k=Wt("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...A(),Ae,ke],N=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],T=()=>[Ae,ke,d],L=()=>[Wi,"full","auto",...T()],G=()=>[Ji,"none","subgrid",Ae,ke],B=()=>["auto",{span:["full",Ji,Ae,ke]},Ji,Ae,ke],j=()=>[Ji,"auto",Ae,ke],F=()=>["auto","min","max","fr",Ae,ke],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...T()],$=()=>[Wi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],Z=()=>[Wi,"screen","full","dvw","lvw","svw","min","max","fit",...T()],K=()=>[Wi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],W=()=>[e,Ae,ke],O=()=>[...A(),tS,eS,{position:[Ae,ke]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",EN,bN,{size:[Ae,ke]}],ce=()=>[tm,Qo,Fa],de=()=>["","none","full",y,Ae,ke],me=()=>["",Qe,Qo,Fa],be=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Qe,tm,tS,eS],qe=()=>["","none",S,Ae,ke],De=()=>["none",Qe,Ae,ke],Re=()=>["none",Qe,Ae,ke],ze=()=>[Qe,Ae,ke],He=()=>[Wi,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ui],breakpoint:[ui],color:[qE],container:[ui],"drop-shadow":[ui],ease:["in","out","in-out"],font:[vN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ui],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ui],shadow:[ui],spacing:["px",Qe],text:[ui],"text-shadow":[ui],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wi,ke,Ae,x]}],container:["container"],columns:[{columns:[Qe,ke,Ae,f]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Ji,"auto",Ae,ke]}],basis:[{basis:[Wi,"full","auto",f,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Wi,"auto","initial","none",ke]}],grow:[{grow:["",Qe,Ae,ke]}],shrink:[{shrink:["",Qe,Ae,ke]}],order:[{order:[Ji,"first","last","none",Ae,ke]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mbs:[{mbs:q()}],mbe:[{mbe:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[f,"screen",...$()]}],"min-w":[{"min-w":[f,"screen","none",...$()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,Qo,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,kN,SN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tm,ke]}],"font-family":[{font:[wN,_N,t]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Ae,ke]}],"line-clamp":[{"line-clamp":[Qe,"none",Ae,J2]}],leading:[{leading:[o,...T()]}],"list-image":[{"list-image":["none",Ae,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ae,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",Ae,Fa]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Qe,"auto",Ae,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ae,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ji,Ae,ke],radial:["",Ae,ke],conic:[Ji,Ae,ke]},MN,xN]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,Ae,ke]}],"outline-w":[{outline:["",Qe,Qo,Fa]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",m,ff,cf]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",g,ff,cf]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Qe,Fa]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",v,ff,cf]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Qe,Ae,ke]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[Ae,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ae,ke]}],filter:[{filter:["","none",Ae,ke]}],blur:[{blur:qe()}],brightness:[{brightness:[Qe,Ae,ke]}],contrast:[{contrast:[Qe,Ae,ke]}],"drop-shadow":[{"drop-shadow":["","none",b,ff,cf]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Qe,Ae,ke]}],"hue-rotate":[{"hue-rotate":[Qe,Ae,ke]}],invert:[{invert:["",Qe,Ae,ke]}],saturate:[{saturate:[Qe,Ae,ke]}],sepia:[{sepia:["",Qe,Ae,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Ae,ke]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,Ae,ke]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,Ae,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,Ae,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,Ae,ke]}],"backdrop-invert":[{"backdrop-invert":["",Qe,Ae,ke]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,Ae,ke]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,Ae,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,Ae,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ae,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",Ae,ke]}],ease:[{ease:["linear","initial",E,Ae,ke]}],delay:[{delay:[Qe,Ae,ke]}],animate:[{animate:["none",k,Ae,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,Ae,ke]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[Ae,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:He()}],"translate-x":[{"translate-x":He()}],"translate-y":[{"translate-y":He()}],"translate-z":[{"translate-z":He()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ae,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ae,ke]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Qe,Qo,Fa,J2]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fU=lN(CN),nS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rS=H6,dU=(e,t)=>r=>{var a;if((t==null?void 0:t.variants)==null)return rS(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,c=Object.keys(s).map(y=>{const m=r==null?void 0:r[y],g=o==null?void 0:o[y];if(m===null)return null;const v=nS(m)||nS(g);return s[y][v]}),f=r&&Object.entries(r).reduce((y,m)=>{let[g,v]=m;return v===void 0||(y[g]=v),y},{}),d=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((y,m)=>{let{class:g,className:v,...b}=m;return Object.entries(b).every(S=>{let[_,x]=S;return Array.isArray(x)?x.includes({...o,...f}[_]):{...o,...f}[_]===x})?[...y,g,v]:y},[]);return rS(e,c,d,r==null?void 0:r.class,r==null?void 0:r.className)};var ot;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const o={};for(const c of s)o[c]=c;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(f=>typeof s[s[f]]!="number"),c={};for(const f of o)c[f]=s[f];return e.objectValues(c)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&o.push(c);return o},e.find=(s,o)=>{for(const c of s)if(o(c))return c},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function a(s,o=" | "){return s.map(c=>typeof c=="string"?`'${c}'`:c).join(o)}e.joinValues=a,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(ot||(ot={}));var iS;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(iS||(iS={}));const Te=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ia=e=>{switch(typeof e){case"undefined":return Te.undefined;case"string":return Te.string;case"number":return Number.isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.unknown}},ve=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Si extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(o){return o.message},a={_errors:[]},s=o=>{for(const c of o.issues)if(c.code==="invalid_union")c.unionErrors.map(s);else if(c.code==="invalid_return_type")s(c.returnTypeError);else if(c.code==="invalid_arguments")s(c.argumentsError);else if(c.path.length===0)a._errors.push(r(c));else{let f=a,d=0;for(;d<c.path.length;){const y=c.path[d];d===c.path.length-1?(f[y]=f[y]||{_errors:[]},f[y]._errors.push(r(c))):f[y]=f[y]||{_errors:[]},f=f[y],d++}}};return s(this),a}static assert(t){if(!(t instanceof Si))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},a=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];r[o]=r[o]||[],r[o].push(t(s))}else a.push(t(s));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}Si.create=e=>new Si(e);const yp=(e,t)=>{let r;switch(e.code){case ve.invalid_type:e.received===Te.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ve.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ot.jsonStringifyReplacer)}`;break;case ve.unrecognized_keys:r=`Unrecognized key(s) in object: ${ot.joinValues(e.keys,", ")}`;break;case ve.invalid_union:r="Invalid input";break;case ve.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ot.joinValues(e.options)}`;break;case ve.invalid_enum_value:r=`Invalid enum value. Expected ${ot.joinValues(e.options)}, received '${e.received}'`;break;case ve.invalid_arguments:r="Invalid function arguments";break;case ve.invalid_return_type:r="Invalid function return type";break;case ve.invalid_date:r="Invalid date";break;case ve.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ot.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ve.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ve.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ve.custom:r="Invalid input";break;case ve.invalid_intersection_types:r="Intersection results could not be merged";break;case ve.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ve.not_finite:r="Number must be finite";break;default:r=t.defaultError,ot.assertNever(e)}return{message:r}};let TN=yp;function RN(){return TN}const NN=e=>{const{data:t,path:r,errorMaps:a,issueData:s}=e,o=[...r,...s.path||[]],c={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let f="";const d=a.filter(y=>!!y).slice().reverse();for(const y of d)f=y(c,{data:t,defaultError:f}).message;return{...s,path:o,message:f}};function xe(e,t){const r=RN(),a=NN({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===yp?void 0:yp].filter(s=>!!s)});e.common.issues.push(a)}class Yn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const a=[];for(const s of r){if(s.status==="aborted")return Ie;s.status==="dirty"&&t.dirty(),a.push(s.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,r){const a=[];for(const s of r){const o=await s.key,c=await s.value;a.push({key:o,value:c})}return Yn.mergeObjectSync(t,a)}static mergeObjectSync(t,r){const a={};for(const s of r){const{key:o,value:c}=s;if(o.status==="aborted"||c.status==="aborted")return Ie;o.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof c.value<"u"||s.alwaysSet)&&(a[o.value]=c.value)}return{status:t.value,value:a}}}const Ie=Object.freeze({status:"aborted"}),Jo=e=>({status:"dirty",value:e}),fr=e=>({status:"valid",value:e}),aS=e=>e.status==="aborted",sS=e=>e.status==="dirty",Rl=e=>e.status==="valid",zf=e=>typeof Promise<"u"&&e instanceof Promise;var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));class Sa{constructor(t,r,a,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const lS=(e,t)=>{if(Rl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Si(e.common.issues);return this._error=r,this._error}}};function Xe(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(c,f)=>{const{message:d}=e;return c.code==="invalid_enum_value"?{message:d??f.defaultError}:typeof f.data>"u"?{message:d??a??f.defaultError}:c.code!=="invalid_type"?{message:f.defaultError}:{message:d??r??f.defaultError}},description:s}}class at{get description(){return this._def.description}_getType(t){return ia(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:ia(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Yn,ctx:{common:t.parent.common,data:t.data,parsedType:ia(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(zf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const a=this.safeParse(t,r);if(a.success)return a.data;throw a.error}safeParse(t,r){const a={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)},s=this._parseSync({data:t,path:a.path,parent:a});return lS(a,s)}"~validate"(t){var a,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:r});return Rl(o)?{value:o.value}:{issues:r.common.issues}}catch(o){(s=(a=o==null?void 0:o.message)==null?void 0:a.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(o=>Rl(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(t,r){const a=await this.safeParseAsync(t,r);if(a.success)return a.data;throw a.error}async safeParseAsync(t,r){const a={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)},s=this._parse({data:t,path:a.path,parent:a}),o=await(zf(s)?s:Promise.resolve(s));return lS(a,o)}refine(t,r){const a=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,o)=>{const c=t(s),f=()=>o.addIssue({code:ve.custom,...a(s)});return typeof Promise<"u"&&c instanceof Promise?c.then(d=>d?!0:(f(),!1)):c?!0:(f(),!1)})}refinement(t,r){return this._refinement((a,s)=>t(a)?!0:(s.addIssue(typeof r=="function"?r(a,s):r),!1))}_refinement(t){return new zl({schema:this,typeName:Fe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return va.create(this,this._def)}nullable(){return Dl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Br.create(this)}promise(){return Bf.create(this,this._def)}or(t){return Lf.create([this,t],this._def)}and(t){return jf.create(this,t,this._def)}transform(t){return new zl({...Xe(this._def),schema:this,typeName:Fe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new gp({...Xe(this._def),innerType:this,defaultValue:r,typeName:Fe.ZodDefault})}brand(){return new eO({typeName:Fe.ZodBranded,type:this,...Xe(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new pp({...Xe(this._def),innerType:this,catchValue:r,typeName:Fe.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return s0.create(this,t)}readonly(){return vp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ON=/^c[^\s-]{8,}$/i,zN=/^[0-9a-z]+$/,DN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,LN=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,jN=/^[a-z0-9_-]{21}$/i,BN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qN=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,UN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,HN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let nm;const VN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,PN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,IN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,FN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$N=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,YN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,YE="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ZN=new RegExp(`^${YE}$`);function ZE(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function GN(e){return new RegExp(`^${ZE(e)}$`)}function QN(e){let t=`${YE}T${ZE(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function XN(e,t){return!!((t==="v4"||!t)&&VN.test(e)||(t==="v6"||!t)&&IN.test(e))}function KN(e,t){if(!BN.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const a=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(a));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function WN(e,t){return!!((t==="v4"||!t)&&PN.test(e)||(t==="v6"||!t)&&FN.test(e))}class gi extends at{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.string,received:o.parsedType}),Ie}const a=new Yn;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="length"){const c=t.data.length>o.value,f=t.data.length<o.value;(c||f)&&(s=this._getOrReturnCtx(t,s),c?xe(s,{code:ve.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):f&&xe(s,{code:ve.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),a.dirty())}else if(o.kind==="email")UN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"email",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="emoji")nm||(nm=new RegExp(HN,"u")),nm.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"emoji",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="uuid")LN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"uuid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="nanoid")jN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"nanoid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid")ON.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"cuid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid2")zN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"cuid2",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="ulid")DN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"ulid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),xe(s,{validation:"url",code:ve.invalid_string,message:o.message}),a.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"regex",code:ve.invalid_string,message:o.message}),a.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),a.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:{startsWith:o.value},message:o.message}),a.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:{endsWith:o.value},message:o.message}),a.dirty()):o.kind==="datetime"?QN(o).test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:"datetime",message:o.message}),a.dirty()):o.kind==="date"?ZN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:"date",message:o.message}),a.dirty()):o.kind==="time"?GN(o).test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:"time",message:o.message}),a.dirty()):o.kind==="duration"?qN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"duration",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="ip"?XN(t.data,o.version)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"ip",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="jwt"?KN(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"jwt",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="cidr"?WN(t.data,o.version)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"cidr",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="base64"?$N.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"base64",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="base64url"?YN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"base64url",code:ve.invalid_string,message:o.message}),a.dirty()):ot.assertNever(o);return{status:a.value,value:t.data}}_regex(t,r,a){return this.refinement(s=>t.test(s),{validation:r,code:ve.invalid_string,...Oe.errToObj(a)})}_addCheck(t){return new gi({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Oe.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Oe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Oe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Oe.errToObj(r)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new gi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new gi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new gi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}gi.create=e=>new gi({checks:[],typeName:Fe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Xe(e)});function JN(e,t){const r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,o=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return o%c/10**s}class us extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Te.number){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.number,received:o.parsedType}),Ie}let a;const s=new Yn;for(const o of this._def.checks)o.kind==="int"?ot.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?JN(t.data,o.value)!==0&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_finite,message:o.message}),s.dirty()):ot.assertNever(o);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Oe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Oe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Oe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Oe.toString(r))}setLimit(t,r,a,s){return new us({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Oe.toString(s)}]})}_addCheck(t){return new us({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ot.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(r)&&Number.isFinite(t)}}us.create=e=>new us({checks:[],typeName:Fe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Xe(e)});class cs extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Te.bigint)return this._getInvalidInput(t);let a;const s=new Yn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):ot.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return xe(r,{code:ve.invalid_type,expected:Te.bigint,received:r.parsedType}),Ie}gte(t,r){return this.setLimit("min",t,!0,Oe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Oe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Oe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Oe.toString(r))}setLimit(t,r,a,s){return new cs({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Oe.toString(s)}]})}_addCheck(t){return new cs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}cs.create=e=>new cs({checks:[],typeName:Fe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Xe(e)});class Df extends at{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Te.boolean){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.boolean,received:a.parsedType}),Ie}return fr(t.data)}}Df.create=e=>new Df({typeName:Fe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Xe(e)});class Nl extends at{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Te.date){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.date,received:o.parsedType}),Ie}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_date}),Ie}const a=new Yn;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),a.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),a.dirty()):ot.assertNever(o);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Nl({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Nl.create=e=>new Nl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Fe.ZodDate,...Xe(e)});class oS extends at{_parse(t){if(this._getType(t)!==Te.symbol){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.symbol,received:a.parsedType}),Ie}return fr(t.data)}}oS.create=e=>new oS({typeName:Fe.ZodSymbol,...Xe(e)});class uS extends at{_parse(t){if(this._getType(t)!==Te.undefined){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.undefined,received:a.parsedType}),Ie}return fr(t.data)}}uS.create=e=>new uS({typeName:Fe.ZodUndefined,...Xe(e)});class cS extends at{_parse(t){if(this._getType(t)!==Te.null){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.null,received:a.parsedType}),Ie}return fr(t.data)}}cS.create=e=>new cS({typeName:Fe.ZodNull,...Xe(e)});class fS extends at{constructor(){super(...arguments),this._any=!0}_parse(t){return fr(t.data)}}fS.create=e=>new fS({typeName:Fe.ZodAny,...Xe(e)});class dS extends at{constructor(){super(...arguments),this._unknown=!0}_parse(t){return fr(t.data)}}dS.create=e=>new dS({typeName:Fe.ZodUnknown,...Xe(e)});class _a extends at{_parse(t){const r=this._getOrReturnCtx(t);return xe(r,{code:ve.invalid_type,expected:Te.never,received:r.parsedType}),Ie}}_a.create=e=>new _a({typeName:Fe.ZodNever,...Xe(e)});class hS extends at{_parse(t){if(this._getType(t)!==Te.undefined){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.void,received:a.parsedType}),Ie}return fr(t.data)}}hS.create=e=>new hS({typeName:Fe.ZodVoid,...Xe(e)});class Br extends at{_parse(t){const{ctx:r,status:a}=this._processInputParams(t),s=this._def;if(r.parsedType!==Te.array)return xe(r,{code:ve.invalid_type,expected:Te.array,received:r.parsedType}),Ie;if(s.exactLength!==null){const c=r.data.length>s.exactLength.value,f=r.data.length<s.exactLength.value;(c||f)&&(xe(r,{code:c?ve.too_big:ve.too_small,minimum:f?s.exactLength.value:void 0,maximum:c?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(xe(r,{code:ve.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(xe(r,{code:ve.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((c,f)=>s.type._parseAsync(new Sa(r,c,r.path,f)))).then(c=>Yn.mergeArray(a,c));const o=[...r.data].map((c,f)=>s.type._parseSync(new Sa(r,c,r.path,f)));return Yn.mergeArray(a,o)}get element(){return this._def.type}min(t,r){return new Br({...this._def,minLength:{value:t,message:Oe.toString(r)}})}max(t,r){return new Br({...this._def,maxLength:{value:t,message:Oe.toString(r)}})}length(t,r){return new Br({...this._def,exactLength:{value:t,message:Oe.toString(r)}})}nonempty(t){return this.min(1,t)}}Br.create=(e,t)=>new Br({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Fe.ZodArray,...Xe(t)});function dl(e){if(e instanceof Yt){const t={};for(const r in e.shape){const a=e.shape[r];t[r]=va.create(dl(a))}return new Yt({...e._def,shape:()=>t})}else return e instanceof Br?new Br({...e._def,type:dl(e.element)}):e instanceof va?va.create(dl(e.unwrap())):e instanceof Dl?Dl.create(dl(e.unwrap())):e instanceof fs?fs.create(e.items.map(t=>dl(t))):e}class Yt extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ot.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Te.object){const y=this._getOrReturnCtx(t);return xe(y,{code:ve.invalid_type,expected:Te.object,received:y.parsedType}),Ie}const{status:a,ctx:s}=this._processInputParams(t),{shape:o,keys:c}=this._getCached(),f=[];if(!(this._def.catchall instanceof _a&&this._def.unknownKeys==="strip"))for(const y in s.data)c.includes(y)||f.push(y);const d=[];for(const y of c){const m=o[y],g=s.data[y];d.push({key:{status:"valid",value:y},value:m._parse(new Sa(s,g,s.path,y)),alwaysSet:y in s.data})}if(this._def.catchall instanceof _a){const y=this._def.unknownKeys;if(y==="passthrough")for(const m of f)d.push({key:{status:"valid",value:m},value:{status:"valid",value:s.data[m]}});else if(y==="strict")f.length>0&&(xe(s,{code:ve.unrecognized_keys,keys:f}),a.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const m of f){const g=s.data[m];d.push({key:{status:"valid",value:m},value:y._parse(new Sa(s,g,s.path,m)),alwaysSet:m in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const y=[];for(const m of d){const g=await m.key,v=await m.value;y.push({key:g,value:v,alwaysSet:m.alwaysSet})}return y}).then(y=>Yn.mergeObjectSync(a,y)):Yn.mergeObjectSync(a,d)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new Yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,a)=>{var o,c;const s=((c=(o=this._def).errorMap)==null?void 0:c.call(o,r,a).message)??a.defaultError;return r.code==="unrecognized_keys"?{message:Oe.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Yt({...this._def,unknownKeys:"strip"})}passthrough(){return new Yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Fe.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Yt({...this._def,catchall:t})}pick(t){const r={};for(const a of ot.objectKeys(t))t[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new Yt({...this._def,shape:()=>r})}omit(t){const r={};for(const a of ot.objectKeys(this.shape))t[a]||(r[a]=this.shape[a]);return new Yt({...this._def,shape:()=>r})}deepPartial(){return dl(this)}partial(t){const r={};for(const a of ot.objectKeys(this.shape)){const s=this.shape[a];t&&!t[a]?r[a]=s:r[a]=s.optional()}return new Yt({...this._def,shape:()=>r})}required(t){const r={};for(const a of ot.objectKeys(this.shape))if(t&&!t[a])r[a]=this.shape[a];else{let o=this.shape[a];for(;o instanceof va;)o=o._def.innerType;r[a]=o}return new Yt({...this._def,shape:()=>r})}keyof(){return GE(ot.objectKeys(this.shape))}}Yt.create=(e,t)=>new Yt({shape:()=>e,unknownKeys:"strip",catchall:_a.create(),typeName:Fe.ZodObject,...Xe(t)});Yt.strictCreate=(e,t)=>new Yt({shape:()=>e,unknownKeys:"strict",catchall:_a.create(),typeName:Fe.ZodObject,...Xe(t)});Yt.lazycreate=(e,t)=>new Yt({shape:e,unknownKeys:"strip",catchall:_a.create(),typeName:Fe.ZodObject,...Xe(t)});class Lf extends at{_parse(t){const{ctx:r}=this._processInputParams(t),a=this._def.options;function s(o){for(const f of o)if(f.result.status==="valid")return f.result;for(const f of o)if(f.result.status==="dirty")return r.common.issues.push(...f.ctx.common.issues),f.result;const c=o.map(f=>new Si(f.ctx.common.issues));return xe(r,{code:ve.invalid_union,unionErrors:c}),Ie}if(r.common.async)return Promise.all(a.map(async o=>{const c={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:c}),ctx:c}})).then(s);{let o;const c=[];for(const d of a){const y={...r,common:{...r.common,issues:[]},parent:null},m=d._parseSync({data:r.data,path:r.path,parent:y});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:y}),y.common.issues.length&&c.push(y.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const f=c.map(d=>new Si(d));return xe(r,{code:ve.invalid_union,unionErrors:f}),Ie}}get options(){return this._def.options}}Lf.create=(e,t)=>new Lf({options:e,typeName:Fe.ZodUnion,...Xe(t)});function mp(e,t){const r=ia(e),a=ia(t);if(e===t)return{valid:!0,data:e};if(r===Te.object&&a===Te.object){const s=ot.objectKeys(t),o=ot.objectKeys(e).filter(f=>s.indexOf(f)!==-1),c={...e,...t};for(const f of o){const d=mp(e[f],t[f]);if(!d.valid)return{valid:!1};c[f]=d.data}return{valid:!0,data:c}}else if(r===Te.array&&a===Te.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const c=e[o],f=t[o],d=mp(c,f);if(!d.valid)return{valid:!1};s.push(d.data)}return{valid:!0,data:s}}else return r===Te.date&&a===Te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class jf extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t),s=(o,c)=>{if(aS(o)||aS(c))return Ie;const f=mp(o.value,c.value);return f.valid?((sS(o)||sS(c))&&r.dirty(),{status:r.value,value:f.data}):(xe(a,{code:ve.invalid_intersection_types}),Ie)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([o,c])=>s(o,c)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}jf.create=(e,t,r)=>new jf({left:e,right:t,typeName:Fe.ZodIntersection,...Xe(r)});class fs extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.array)return xe(a,{code:ve.invalid_type,expected:Te.array,received:a.parsedType}),Ie;if(a.data.length<this._def.items.length)return xe(a,{code:ve.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ie;!this._def.rest&&a.data.length>this._def.items.length&&(xe(a,{code:ve.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...a.data].map((c,f)=>{const d=this._def.items[f]||this._def.rest;return d?d._parse(new Sa(a,c,a.path,f)):null}).filter(c=>!!c);return a.common.async?Promise.all(o).then(c=>Yn.mergeArray(r,c)):Yn.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new fs({...this._def,rest:t})}}fs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new fs({items:e,typeName:Fe.ZodTuple,rest:null,...Xe(t)})};class yS extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.map)return xe(a,{code:ve.invalid_type,expected:Te.map,received:a.parsedType}),Ie;const s=this._def.keyType,o=this._def.valueType,c=[...a.data.entries()].map(([f,d],y)=>({key:s._parse(new Sa(a,f,a.path,[y,"key"])),value:o._parse(new Sa(a,d,a.path,[y,"value"]))}));if(a.common.async){const f=new Map;return Promise.resolve().then(async()=>{for(const d of c){const y=await d.key,m=await d.value;if(y.status==="aborted"||m.status==="aborted")return Ie;(y.status==="dirty"||m.status==="dirty")&&r.dirty(),f.set(y.value,m.value)}return{status:r.value,value:f}})}else{const f=new Map;for(const d of c){const y=d.key,m=d.value;if(y.status==="aborted"||m.status==="aborted")return Ie;(y.status==="dirty"||m.status==="dirty")&&r.dirty(),f.set(y.value,m.value)}return{status:r.value,value:f}}}}yS.create=(e,t,r)=>new yS({valueType:t,keyType:e,typeName:Fe.ZodMap,...Xe(r)});class lu extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.set)return xe(a,{code:ve.invalid_type,expected:Te.set,received:a.parsedType}),Ie;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(xe(a,{code:ve.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(xe(a,{code:ve.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const o=this._def.valueType;function c(d){const y=new Set;for(const m of d){if(m.status==="aborted")return Ie;m.status==="dirty"&&r.dirty(),y.add(m.value)}return{status:r.value,value:y}}const f=[...a.data.values()].map((d,y)=>o._parse(new Sa(a,d,a.path,y)));return a.common.async?Promise.all(f).then(d=>c(d)):c(f)}min(t,r){return new lu({...this._def,minSize:{value:t,message:Oe.toString(r)}})}max(t,r){return new lu({...this._def,maxSize:{value:t,message:Oe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}lu.create=(e,t)=>new lu({valueType:e,minSize:null,maxSize:null,typeName:Fe.ZodSet,...Xe(t)});class mS extends at{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}mS.create=(e,t)=>new mS({getter:e,typeName:Fe.ZodLazy,...Xe(t)});class gS extends at{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return xe(r,{received:r.data,code:ve.invalid_literal,expected:this._def.value}),Ie}return{status:"valid",value:t.data}}get value(){return this._def.value}}gS.create=(e,t)=>new gS({value:e,typeName:Fe.ZodLiteral,...Xe(t)});function GE(e,t){return new Ol({values:e,typeName:Fe.ZodEnum,...Xe(t)})}class Ol extends at{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),a=this._def.values;return xe(r,{expected:ot.joinValues(a),received:r.parsedType,code:ve.invalid_type}),Ie}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),a=this._def.values;return xe(r,{received:r.data,code:ve.invalid_enum_value,options:a}),Ie}return fr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Ol.create(t,{...this._def,...r})}exclude(t,r=this._def){return Ol.create(this.options.filter(a=>!t.includes(a)),{...this._def,...r})}}Ol.create=GE;class pS extends at{_parse(t){const r=ot.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==Te.string&&a.parsedType!==Te.number){const s=ot.objectValues(r);return xe(a,{expected:ot.joinValues(s),received:a.parsedType,code:ve.invalid_type}),Ie}if(this._cache||(this._cache=new Set(ot.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=ot.objectValues(r);return xe(a,{received:a.data,code:ve.invalid_enum_value,options:s}),Ie}return fr(t.data)}get enum(){return this._def.values}}pS.create=(e,t)=>new pS({values:e,typeName:Fe.ZodNativeEnum,...Xe(t)});class Bf extends at{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.promise&&r.common.async===!1)return xe(r,{code:ve.invalid_type,expected:Te.promise,received:r.parsedType}),Ie;const a=r.parsedType===Te.promise?r.data:Promise.resolve(r.data);return fr(a.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Bf.create=(e,t)=>new Bf({type:e,typeName:Fe.ZodPromise,...Xe(t)});class zl extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Fe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:a}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:c=>{xe(a,c),c.fatal?r.abort():r.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const c=s.transform(a.data,o);if(a.common.async)return Promise.resolve(c).then(async f=>{if(r.value==="aborted")return Ie;const d=await this._def.schema._parseAsync({data:f,path:a.path,parent:a});return d.status==="aborted"?Ie:d.status==="dirty"||r.value==="dirty"?Jo(d.value):d});{if(r.value==="aborted")return Ie;const f=this._def.schema._parseSync({data:c,path:a.path,parent:a});return f.status==="aborted"?Ie:f.status==="dirty"||r.value==="dirty"?Jo(f.value):f}}if(s.type==="refinement"){const c=f=>{const d=s.refinement(f,o);if(a.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return f};if(a.common.async===!1){const f=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return f.status==="aborted"?Ie:(f.status==="dirty"&&r.dirty(),c(f.value),{status:r.value,value:f.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(f=>f.status==="aborted"?Ie:(f.status==="dirty"&&r.dirty(),c(f.value).then(()=>({status:r.value,value:f.value}))))}if(s.type==="transform")if(a.common.async===!1){const c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Rl(c))return Ie;const f=s.transform(c.value,o);if(f instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:f}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(c=>Rl(c)?Promise.resolve(s.transform(c.value,o)).then(f=>({status:r.value,value:f})):Ie);ot.assertNever(s)}}zl.create=(e,t,r)=>new zl({schema:e,typeName:Fe.ZodEffects,effect:t,...Xe(r)});zl.createWithPreprocess=(e,t,r)=>new zl({schema:t,effect:{type:"preprocess",transform:e},typeName:Fe.ZodEffects,...Xe(r)});class va extends at{_parse(t){return this._getType(t)===Te.undefined?fr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}va.create=(e,t)=>new va({innerType:e,typeName:Fe.ZodOptional,...Xe(t)});class Dl extends at{_parse(t){return this._getType(t)===Te.null?fr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Dl.create=(e,t)=>new Dl({innerType:e,typeName:Fe.ZodNullable,...Xe(t)});class gp extends at{_parse(t){const{ctx:r}=this._processInputParams(t);let a=r.data;return r.parsedType===Te.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}gp.create=(e,t)=>new gp({innerType:e,typeName:Fe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Xe(t)});class pp extends at{_parse(t){const{ctx:r}=this._processInputParams(t),a={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return zf(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Si(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Si(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}pp.create=(e,t)=>new pp({innerType:e,typeName:Fe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Xe(t)});class vS extends at{_parse(t){if(this._getType(t)!==Te.nan){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.nan,received:a.parsedType}),Ie}return{status:"valid",value:t.data}}}vS.create=e=>new vS({typeName:Fe.ZodNaN,...Xe(e)});class eO extends at{_parse(t){const{ctx:r}=this._processInputParams(t),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}}class s0 extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Ie:o.status==="dirty"?(r.dirty(),Jo(o.value)):this._def.out._parseAsync({data:o.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Ie:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(t,r){return new s0({in:t,out:r,typeName:Fe.ZodPipeline})}}class vp extends at{_parse(t){const r=this._def.innerType._parse(t),a=s=>(Rl(s)&&(s.value=Object.freeze(s.value)),s);return zf(r)?r.then(s=>a(s)):a(r)}unwrap(){return this._def.innerType}}vp.create=(e,t)=>new vp({innerType:e,typeName:Fe.ZodReadonly,...Xe(t)});var Fe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Fe||(Fe={}));const hU=gi.create,yU=us.create;cs.create;const mU=Df.create;Nl.create;_a.create;const gU=Br.create,pU=Yt.create;Lf.create;jf.create;fs.create;const vU=Ol.create;Bf.create;va.create;Dl.create;const bU={string:(e=>gi.create({...e,coerce:!0})),number:(e=>us.create({...e,coerce:!0})),boolean:(e=>Df.create({...e,coerce:!0})),bigint:(e=>cs.create({...e,coerce:!0})),date:(e=>Nl.create({...e,coerce:!0}))},bS=e=>{let t;const r=new Set,a=(y,m)=>{const g=typeof y=="function"?y(t):y;if(!Object.is(g,t)){const v=t;t=m??(typeof g!="object"||g===null)?g:Object.assign({},t,g),r.forEach(b=>b(t,v))}},s=()=>t,f={setState:a,getState:s,getInitialState:()=>d,subscribe:y=>(r.add(y),()=>r.delete(y))},d=t=e(a,s,f);return f},tO=(e=>e?bS(e):bS),nO=e=>e;function rO(e,t=nO){const r=Bt.useSyncExternalStore(e.subscribe,Bt.useCallback(()=>t(e.getState()),[e,t]),Bt.useCallback(()=>t(e.getInitialState()),[e,t]));return Bt.useDebugValue(r),r}const SS=e=>{const t=tO(e),r=a=>rO(t,a);return Object.assign(r,t),r},SU=(e=>e?SS(e):SS);function Gt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let r=0,a;r<e.length;r++)(a=Gt(e[r]))!==""&&(t+=(t&&" ")+a);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}const qr={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:r,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?r:a}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},ou=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],QE=["Enter"," ","Escape"],XE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:r})=>`Moved selected node ${e}. New position, x: ${t}, y: ${r}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Ll;(function(e){e.Strict="strict",e.Loose="loose"})(Ll||(Ll={}));var as;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(as||(as={}));var uu;(function(e){e.Partial="partial",e.Full="full"})(uu||(uu={}));const KE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var sa;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(sa||(sa={}));var qf;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(qf||(qf={}));var Be;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Be||(Be={}));const _S={[Be.Left]:Be.Right,[Be.Right]:Be.Left,[Be.Top]:Be.Bottom,[Be.Bottom]:Be.Top};function WE(e){return e===null?null:e?"valid":"invalid"}const JE=e=>"id"in e&&"source"in e&&"target"in e,iO=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),l0=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Cu=(e,t=[0,0])=>{const{width:r,height:a}=xi(e),s=e.origin??t,o=r*s[0],c=a*s[1];return{x:e.position.x-o,y:e.position.y-c}},aO=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const r=e.reduce((a,s)=>{const o=typeof s=="string";let c=!t.nodeLookup&&!o?s:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(s):l0(s)?s:t.nodeLookup.get(s.id));const f=c?Uf(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return ud(a,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return cd(r)},Tu=(e,t={})=>{let r={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(s=>{(t.filter===void 0||t.filter(s))&&(r=ud(r,Uf(s)),a=!0)}),a?cd(r):{x:0,y:0,width:0,height:0}},o0=(e,t,[r,a,s]=[0,0,1],o=!1,c=!1)=>{const f={...Nu(t,[r,a,s]),width:t.width/s,height:t.height/s},d=[];for(const y of e.values()){const{measured:m,selectable:g=!0,hidden:v=!1}=y;if(c&&!g||v)continue;const b=m.width??y.width??y.initialWidth??null,S=m.height??y.height??y.initialHeight??null,_=cu(f,Bl(y)),x=(b??0)*(S??0),E=o&&_>0;(!y.internals.handleBounds||E||_>=x||y.dragging)&&d.push(y)}return d},sO=(e,t)=>{const r=new Set;return e.forEach(a=>{r.add(a.id)}),t.filter(a=>r.has(a.source)||r.has(a.target))};function lO(e,t){const r=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{s.measured.width&&s.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!s.hidden)&&(!a||a.has(s.id))&&r.set(s.id,s)}),r}async function oO({nodes:e,width:t,height:r,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return Promise.resolve(!0);const f=lO(e,c),d=Tu(f),y=u0(d,t,r,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??o,(c==null?void 0:c.padding)??.1);return await a.setViewport(y,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),Promise.resolve(!0)}function eM({nodeId:e,nextPosition:t,nodeLookup:r,nodeOrigin:a=[0,0],nodeExtent:s,onError:o}){const c=r.get(e),f=c.parentId?r.get(c.parentId):void 0,{x:d,y}=f?f.internals.positionAbsolute:{x:0,y:0},m=c.origin??a;let g=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!f)o==null||o("005",qr.error005());else{const b=f.measured.width,S=f.measured.height;b&&S&&(g=[[d,y],[d+b,y+S]])}else f&&ql(c.extent)&&(g=[[c.extent[0][0]+d,c.extent[0][1]+y],[c.extent[1][0]+d,c.extent[1][1]+y]]);const v=ql(g)?ds(t,g,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",qr.error015())),{position:{x:v.x-d+(c.measured.width??0)*m[0],y:v.y-y+(c.measured.height??0)*m[1]},positionAbsolute:v}}async function uO({nodesToRemove:e=[],edgesToRemove:t=[],nodes:r,edges:a,onBeforeDelete:s}){const o=new Set(e.map(v=>v.id)),c=[];for(const v of r){if(v.deletable===!1)continue;const b=o.has(v.id),S=!b&&v.parentId&&c.find(_=>_.id===v.parentId);(b||S)&&c.push(v)}const f=new Set(t.map(v=>v.id)),d=a.filter(v=>v.deletable!==!1),m=sO(c,d);for(const v of d)f.has(v.id)&&!m.find(S=>S.id===v.id)&&m.push(v);if(!s)return{edges:m,nodes:c};const g=await s({nodes:c,edges:m});return typeof g=="boolean"?g?{edges:m,nodes:c}:{edges:[],nodes:[]}:g}const jl=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),ds=(e={x:0,y:0},t,r)=>({x:jl(e.x,t[0][0],t[1][0]-((r==null?void 0:r.width)??0)),y:jl(e.y,t[0][1],t[1][1]-((r==null?void 0:r.height)??0))});function tM(e,t,r){const{width:a,height:s}=xi(r),{x:o,y:c}=r.internals.positionAbsolute;return ds(e,[[o,c],[o+a,c+s]],t)}const xS=(e,t,r)=>e<t?jl(Math.abs(e-t),1,t)/t:e>r?-jl(Math.abs(e-r),1,t)/t:0,nM=(e,t,r=15,a=40)=>{const s=xS(e.x,a,t.width-a)*r,o=xS(e.y,a,t.height-a)*r;return[s,o]},ud=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),bp=({x:e,y:t,width:r,height:a})=>({x:e,y:t,x2:e+r,y2:t+a}),cd=({x:e,y:t,x2:r,y2:a})=>({x:e,y:t,width:r-e,height:a-t}),Bl=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=l0(e)?e.internals.positionAbsolute:Cu(e,t);return{x:r,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},Uf=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=l0(e)?e.internals.positionAbsolute:Cu(e,t);return{x:r,y:a,x2:r+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},rM=(e,t)=>cd(ud(bp(e),bp(t))),cu=(e,t)=>{const r=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),a=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(r*a)},wS=e=>xr(e.width)&&xr(e.height)&&xr(e.x)&&xr(e.y),xr=e=>!isNaN(e)&&isFinite(e),cO=(e,t)=>{},Ru=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Nu=({x:e,y:t},[r,a,s],o=!1,c=[1,1])=>{const f={x:(e-r)/s,y:(t-a)/s};return o?Ru(f,c):f},Hf=({x:e,y:t},[r,a,s])=>({x:e*s+r,y:t*s+a});function ll(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const r=parseFloat(e);if(!Number.isNaN(r))return Math.floor(r)}if(typeof e=="string"&&e.endsWith("%")){const r=parseFloat(e);if(!Number.isNaN(r))return Math.floor(t*r*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function fO(e,t,r){if(typeof e=="string"||typeof e=="number"){const a=ll(e,r),s=ll(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=ll(e.top??e.y??0,r),s=ll(e.bottom??e.y??0,r),o=ll(e.left??e.x??0,t),c=ll(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:o,x:o+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function dO(e,t,r,a,s,o){const{x:c,y:f}=Hf(e,[t,r,a]),{x:d,y}=Hf({x:e.x+e.width,y:e.y+e.height},[t,r,a]),m=s-d,g=o-y;return{left:Math.floor(c),top:Math.floor(f),right:Math.floor(m),bottom:Math.floor(g)}}const u0=(e,t,r,a,s,o)=>{const c=fO(o,t,r),f=(t-c.x)/e.width,d=(r-c.y)/e.height,y=Math.min(f,d),m=jl(y,a,s),g=e.x+e.width/2,v=e.y+e.height/2,b=t/2-g*m,S=r/2-v*m,_=dO(e,b,S,m,t,r),x={left:Math.min(_.left-c.left,0),top:Math.min(_.top-c.top,0),right:Math.min(_.right-c.right,0),bottom:Math.min(_.bottom-c.bottom,0)};return{x:b-x.left+x.right,y:S-x.top+x.bottom,zoom:m}},fu=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function ql(e){return e!=null&&e!=="parent"}function xi(e){var t,r;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight??0}}function iM(e){var t,r;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight)!==void 0}function aM(e,t={width:0,height:0},r,a,s){const o={...e},c=a.get(r);if(c){const f=c.origin||s;o.x+=c.internals.positionAbsolute.x-(t.width??0)*f[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*f[1]}return o}function ES(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function hO(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function yO(e){return{...XE,...e||{}}}function tu(e,{snapGrid:t=[0,0],snapToGrid:r=!1,transform:a,containerBounds:s}){const{x:o,y:c}=wr(e),f=Nu({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:d,y}=r?Ru(f,t):f;return{xSnapped:d,ySnapped:y,...f}}const c0=e=>({width:e.offsetWidth,height:e.offsetHeight}),sM=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},mO=["INPUT","SELECT","TEXTAREA"];function lM(e){var a,s;const t=((s=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:s[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:mO.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const oM=e=>"clientX"in e,wr=(e,t)=>{var o,c;const r=oM(e),a=r?e.clientX:(o=e.touches)==null?void 0:o[0].clientX,s=r?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},MS=(e,t,r,a,s)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(c=>{const f=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:s,position:c.getAttribute("data-handlepos"),x:(f.left-r.left)/a,y:(f.top-r.top)/a,...c0(c)}})};function uM({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:f}){const d=e*.125+s*.375+c*.375+r*.125,y=t*.125+o*.375+f*.375+a*.125,m=Math.abs(d-e),g=Math.abs(y-t);return[d,y,m,g]}function df(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function kS({pos:e,x1:t,y1:r,x2:a,y2:s,c:o}){switch(e){case Be.Left:return[t-df(t-a,o),r];case Be.Right:return[t+df(a-t,o),r];case Be.Top:return[t,r-df(r-s,o)];case Be.Bottom:return[t,r+df(s-r,o)]}}function cM({sourceX:e,sourceY:t,sourcePosition:r=Be.Bottom,targetX:a,targetY:s,targetPosition:o=Be.Top,curvature:c=.25}){const[f,d]=kS({pos:r,x1:e,y1:t,x2:a,y2:s,c}),[y,m]=kS({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[g,v,b,S]=uM({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:f,sourceControlY:d,targetControlX:y,targetControlY:m});return[`M${e},${t} C${f},${d} ${y},${m} ${a},${s}`,g,v,b,S]}function fM({sourceX:e,sourceY:t,targetX:r,targetY:a}){const s=Math.abs(r-e)/2,o=r<e?r+s:r-s,c=Math.abs(a-t)/2,f=a<t?a+c:a-c;return[o,f,s,c]}function gO({sourceNode:e,targetNode:t,selected:r=!1,zIndex:a=0,elevateOnSelect:s=!1,zIndexMode:o="basic"}){if(o==="manual")return a;const c=s&&r?a+1e3:a,f=Math.max(e.parentId||s&&e.selected?e.internals.z:0,t.parentId||s&&t.selected?t.internals.z:0);return c+f}function pO({sourceNode:e,targetNode:t,width:r,height:a,transform:s}){const o=ud(Uf(e),Uf(t));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const c={x:-s[0]/s[2],y:-s[1]/s[2],width:r/s[2],height:a/s[2]};return cu(c,cd(o))>0}const vO=({source:e,sourceHandle:t,target:r,targetHandle:a})=>`xy-edge__${e}${t||""}-${r}${a||""}`,bO=(e,t)=>t.some(r=>r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)),SO=(e,t,r={})=>{if(!e.source||!e.target)return t;const a=r.getEdgeId||vO;let s;return JE(e)?s={...e}:s={...e,id:a(e)},bO(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function dM({sourceX:e,sourceY:t,targetX:r,targetY:a}){const[s,o,c,f]=fM({sourceX:e,sourceY:t,targetX:r,targetY:a});return[`M ${e},${t}L ${r},${a}`,s,o,c,f]}const AS={[Be.Left]:{x:-1,y:0},[Be.Right]:{x:1,y:0},[Be.Top]:{x:0,y:-1},[Be.Bottom]:{x:0,y:1}},_O=({source:e,sourcePosition:t=Be.Bottom,target:r})=>t===Be.Left||t===Be.Right?e.x<r.x?{x:1,y:0}:{x:-1,y:0}:e.y<r.y?{x:0,y:1}:{x:0,y:-1},CS=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function xO({source:e,sourcePosition:t=Be.Bottom,target:r,targetPosition:a=Be.Top,center:s,offset:o,stepPosition:c}){const f=AS[t],d=AS[a],y={x:e.x+f.x*o,y:e.y+f.y*o},m={x:r.x+d.x*o,y:r.y+d.y*o},g=_O({source:y,sourcePosition:t,target:m}),v=g.x!==0?"x":"y",b=g[v];let S=[],_,x;const E={x:0,y:0},k={x:0,y:0},[,,M,A]=fM({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(f[v]*d[v]===-1){v==="x"?(_=s.x??y.x+(m.x-y.x)*c,x=s.y??(y.y+m.y)/2):(_=s.x??(y.x+m.x)/2,x=s.y??y.y+(m.y-y.y)*c);const T=[{x:_,y:y.y},{x:_,y:m.y}],L=[{x:y.x,y:x},{x:m.x,y:x}];f[v]===b?S=v==="x"?T:L:S=v==="x"?L:T}else{const T=[{x:y.x,y:m.y}],L=[{x:m.x,y:y.y}];if(v==="x"?S=f.x===b?L:T:S=f.y===b?T:L,t===a){const Q=Math.abs(e[v]-r[v]);if(Q<=o){const re=Math.min(o-1,o-Q);f[v]===b?E[v]=(y[v]>e[v]?-1:1)*re:k[v]=(m[v]>r[v]?-1:1)*re}}if(t!==a){const Q=v==="x"?"y":"x",re=f[v]===d[Q],q=y[Q]>m[Q],$=y[Q]<m[Q];(f[v]===1&&(!re&&q||re&&$)||f[v]!==1&&(!re&&$||re&&q))&&(S=v==="x"?T:L)}const G={x:y.x+E.x,y:y.y+E.y},B={x:m.x+k.x,y:m.y+k.y},j=Math.max(Math.abs(G.x-S[0].x),Math.abs(B.x-S[0].x)),F=Math.max(Math.abs(G.y-S[0].y),Math.abs(B.y-S[0].y));j>=F?(_=(G.x+B.x)/2,x=S[0].y):(_=S[0].x,x=(G.y+B.y)/2)}const z={x:y.x+E.x,y:y.y+E.y},N={x:m.x+k.x,y:m.y+k.y};return[[e,...z.x!==S[0].x||z.y!==S[0].y?[z]:[],...S,...N.x!==S[S.length-1].x||N.y!==S[S.length-1].y?[N]:[],r],_,x,M,A]}function wO(e,t,r,a){const s=Math.min(CS(e,t)/2,CS(t,r)/2,a),{x:o,y:c}=t;if(e.x===o&&o===r.x||e.y===c&&c===r.y)return`L${o} ${c}`;if(e.y===c){const y=e.x<r.x?-1:1,m=e.y<r.y?1:-1;return`L ${o+s*y},${c}Q ${o},${c} ${o},${c+s*m}`}const f=e.x<r.x?1:-1,d=e.y<r.y?-1:1;return`L ${o},${c+s*d}Q ${o},${c} ${o+s*f},${c}`}function Sp({sourceX:e,sourceY:t,sourcePosition:r=Be.Bottom,targetX:a,targetY:s,targetPosition:o=Be.Top,borderRadius:c=5,centerX:f,centerY:d,offset:y=20,stepPosition:m=.5}){const[g,v,b,S,_]=xO({source:{x:e,y:t},sourcePosition:r,target:{x:a,y:s},targetPosition:o,center:{x:f,y:d},offset:y,stepPosition:m});let x=`M${g[0].x} ${g[0].y}`;for(let E=1;E<g.length-1;E++)x+=wO(g[E-1],g[E],g[E+1],c);return x+=`L${g[g.length-1].x} ${g[g.length-1].y}`,[x,v,b,S,_]}function TS(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function EO(e){var g;const{sourceNode:t,targetNode:r}=e;if(!TS(t)||!TS(r))return null;const a=t.internals.handleBounds||RS(t.handles),s=r.internals.handleBounds||RS(r.handles),o=NS((a==null?void 0:a.source)??[],e.sourceHandle),c=NS(e.connectionMode===Ll.Strict?(s==null?void 0:s.target)??[]:((s==null?void 0:s.target)??[]).concat((s==null?void 0:s.source)??[]),e.targetHandle);if(!o||!c)return(g=e.onError)==null||g.call(e,"008",qr.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const f=(o==null?void 0:o.position)||Be.Bottom,d=(c==null?void 0:c.position)||Be.Top,y=hs(t,o,f),m=hs(r,c,d);return{sourceX:y.x,sourceY:y.y,targetX:m.x,targetY:m.y,sourcePosition:f,targetPosition:d}}function RS(e){if(!e)return null;const t=[],r=[];for(const a of e)a.width=a.width??1,a.height=a.height??1,a.type==="source"?t.push(a):a.type==="target"&&r.push(a);return{source:t,target:r}}function hs(e,t,r=Be.Left,a=!1){const s=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,o=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:c,height:f}=t??xi(e);if(a)return{x:s+c/2,y:o+f/2};switch((t==null?void 0:t.position)??r){case Be.Top:return{x:s+c/2,y:o};case Be.Right:return{x:s+c,y:o+f/2};case Be.Bottom:return{x:s+c/2,y:o+f};case Be.Left:return{x:s,y:o+f/2}}}function NS(e,t){return e&&(t?e.find(r=>r.id===t):e[0])||null}function _p(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function MO(e,{id:t,defaultColor:r,defaultMarkerStart:a,defaultMarkerEnd:s}){const o=new Set;return e.reduce((c,f)=>([f.markerStart||a,f.markerEnd||s].forEach(d=>{if(d&&typeof d=="object"){const y=_p(d,t);o.has(y)||(c.push({id:y,color:d.color||r,...d}),o.add(y))}}),c),[]).sort((c,f)=>c.id.localeCompare(f.id))}const hM=1e3,kO=10,f0={nodeOrigin:[0,0],nodeExtent:ou,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},AO={...f0,checkEquality:!0};function d0(e,t){const r={...e};for(const a in t)t[a]!==void 0&&(r[a]=t[a]);return r}function CO(e,t,r){const a=d0(f0,r);for(const s of e.values())if(s.parentId)y0(s,e,t,a);else{const o=Cu(s,a.nodeOrigin),c=ql(s.extent)?s.extent:a.nodeExtent,f=ds(o,c,xi(s));s.internals.positionAbsolute=f}}function TO(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const r=[],a=[];for(const s of e.handles){const o={id:s.id,width:s.width??1,height:s.height??1,nodeId:e.id,x:s.x,y:s.y,position:s.position,type:s.type};s.type==="source"?r.push(o):s.type==="target"&&a.push(o)}return{source:r,target:a}}function h0(e){return e==="manual"}function xp(e,t,r,a={}){var m,g;const s=d0(AO,a),o={i:0},c=new Map(t),f=s!=null&&s.elevateNodesOnSelect&&!h0(s.zIndexMode)?hM:0;let d=e.length>0,y=!1;t.clear(),r.clear();for(const v of e){let b=c.get(v.id);if(s.checkEquality&&v===(b==null?void 0:b.internals.userNode))t.set(v.id,b);else{const S=Cu(v,s.nodeOrigin),_=ql(v.extent)?v.extent:s.nodeExtent,x=ds(S,_,xi(v));b={...s.defaults,...v,measured:{width:(m=v.measured)==null?void 0:m.width,height:(g=v.measured)==null?void 0:g.height},internals:{positionAbsolute:x,handleBounds:TO(v,b),z:yM(v,f,s.zIndexMode),userNode:v}},t.set(v.id,b)}(b.measured===void 0||b.measured.width===void 0||b.measured.height===void 0)&&!b.hidden&&(d=!1),v.parentId&&y0(b,t,r,a,o),y||(y=v.selected??!1)}return{nodesInitialized:d,hasSelectedNodes:y}}function RO(e,t){if(!e.parentId)return;const r=t.get(e.parentId);r?r.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function y0(e,t,r,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:f,zIndexMode:d}=d0(f0,a),y=e.parentId,m=t.get(y);if(!m){console.warn(`Parent node ${y} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}RO(e,r),s&&!m.parentId&&m.internals.rootParentIndex===void 0&&d==="auto"&&(m.internals.rootParentIndex=++s.i,m.internals.z=m.internals.z+s.i*kO),s&&m.internals.rootParentIndex!==void 0&&(s.i=m.internals.rootParentIndex);const g=o&&!h0(d)?hM:0,{x:v,y:b,z:S}=NO(e,m,c,f,g,d),{positionAbsolute:_}=e.internals,x=v!==_.x||b!==_.y;(x||S!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:v,y:b}:_,z:S}})}function yM(e,t,r){const a=xr(e.zIndex)?e.zIndex:0;return h0(r)?a:a+(e.selected?t:0)}function NO(e,t,r,a,s,o){const{x:c,y:f}=t.internals.positionAbsolute,d=xi(e),y=Cu(e,r),m=ql(e.extent)?ds(y,e.extent,d):y;let g=ds({x:c+m.x,y:f+m.y},a,d);e.extent==="parent"&&(g=tM(g,d,t));const v=yM(e,s,o),b=t.internals.z??0;return{x:g.x,y:g.y,z:b>=v?b+1:v}}function m0(e,t,r,a=[0,0]){var c;const s=[],o=new Map;for(const f of e){const d=t.get(f.parentId);if(!d)continue;const y=((c=o.get(f.parentId))==null?void 0:c.expandedRect)??Bl(d),m=rM(y,f.rect);o.set(f.parentId,{expandedRect:m,parent:d})}return o.size>0&&o.forEach(({expandedRect:f,parent:d},y)=>{var M;const m=d.internals.positionAbsolute,g=xi(d),v=d.origin??a,b=f.x<m.x?Math.round(Math.abs(m.x-f.x)):0,S=f.y<m.y?Math.round(Math.abs(m.y-f.y)):0,_=Math.max(g.width,Math.round(f.width)),x=Math.max(g.height,Math.round(f.height)),E=(_-g.width)*v[0],k=(x-g.height)*v[1];(b>0||S>0||E||k)&&(s.push({id:y,type:"position",position:{x:d.position.x-b+E,y:d.position.y-S+k}}),(M=r.get(y))==null||M.forEach(A=>{e.some(z=>z.id===A.id)||s.push({id:A.id,type:"position",position:{x:A.position.x+b,y:A.position.y+S}})})),(g.width<f.width||g.height<f.height||b||S)&&s.push({id:y,type:"dimensions",setAttributes:!0,dimensions:{width:_+(b?v[0]*b-E:0),height:x+(S?v[1]*S-k:0)}})}),s}function OO(e,t,r,a,s,o,c){const f=a==null?void 0:a.querySelector(".xyflow__viewport");let d=!1;if(!f)return{changes:[],updatedInternals:d};const y=[],m=window.getComputedStyle(f),{m22:g}=new window.DOMMatrixReadOnly(m.transform),v=[];for(const b of e.values()){const S=t.get(b.id);if(!S)continue;if(S.hidden){t.set(S.id,{...S,internals:{...S.internals,handleBounds:void 0}}),d=!0;continue}const _=c0(b.nodeElement),x=S.measured.width!==_.width||S.measured.height!==_.height;if(!!(_.width&&_.height&&(x||!S.internals.handleBounds||b.force))){const k=b.nodeElement.getBoundingClientRect(),M=ql(S.extent)?S.extent:o;let{positionAbsolute:A}=S.internals;S.parentId&&S.extent==="parent"?A=tM(A,_,t.get(S.parentId)):M&&(A=ds(A,M,_));const z={...S,measured:_,internals:{...S.internals,positionAbsolute:A,handleBounds:{source:MS("source",b.nodeElement,k,g,S.id),target:MS("target",b.nodeElement,k,g,S.id)}}};t.set(S.id,z),S.parentId&&y0(z,t,r,{nodeOrigin:s,zIndexMode:c}),d=!0,x&&(y.push({id:S.id,type:"dimensions",dimensions:_}),S.expandParent&&S.parentId&&v.push({id:S.id,parentId:S.parentId,rect:Bl(z,s)}))}}if(v.length>0){const b=m0(v,t,r,s);y.push(...b)}return{changes:y,updatedInternals:d}}async function zO({delta:e,panZoom:t,transform:r,translateExtent:a,width:s,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const c=await t.setViewportConstrained({x:r[0]+e.x,y:r[1]+e.y,zoom:r[2]},[[0,0],[s,o]],a),f=!!c&&(c.x!==r[0]||c.y!==r[1]||c.k!==r[2]);return Promise.resolve(f)}function OS(e,t,r,a,s,o){let c=s;const f=a.get(c)||new Map;a.set(c,f.set(r,t)),c=`${s}-${e}`;const d=a.get(c)||new Map;if(a.set(c,d.set(r,t)),o){c=`${s}-${e}-${o}`;const y=a.get(c)||new Map;a.set(c,y.set(r,t))}}function mM(e,t,r){e.clear(),t.clear();for(const a of r){const{source:s,target:o,sourceHandle:c=null,targetHandle:f=null}=a,d={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:f},y=`${s}-${c}--${o}-${f}`,m=`${o}-${f}--${s}-${c}`;OS("source",d,m,e,s,c),OS("target",d,y,e,o,f),t.set(a.id,a)}}function gM(e,t){if(!e.parentId)return!1;const r=t.get(e.parentId);return r?r.selected?!0:gM(r,t):!1}function zS(e,t,r){var s;let a=e;do{if((s=a==null?void 0:a.matches)!=null&&s.call(a,t))return!0;if(a===r)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function DO(e,t,r,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!gM(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const f=e.get(o);f&&s.set(o,{id:o,position:f.position||{x:0,y:0},distance:{x:r.x-f.internals.positionAbsolute.x,y:r.y-f.internals.positionAbsolute.y},extent:f.extent,parentId:f.parentId,origin:f.origin,expandParent:f.expandParent,internals:{positionAbsolute:f.internals.positionAbsolute||{x:0,y:0}},measured:{width:f.measured.width??0,height:f.measured.height??0}})}return s}function rm({nodeId:e,dragItems:t,nodeLookup:r,dragging:a=!0}){var c,f,d;const s=[];for(const[y,m]of t){const g=(c=r.get(y))==null?void 0:c.internals.userNode;g&&s.push({...g,position:m.position,dragging:a})}if(!e)return[s[0],s];const o=(f=r.get(e))==null?void 0:f.internals.userNode;return[o?{...o,position:((d=t.get(e))==null?void 0:d.position)||o.position,dragging:a}:s[0],s]}function LO({dragItems:e,snapGrid:t,x:r,y:a}){const s=e.values().next().value;if(!s)return null;const o={x:r-s.distance.x,y:a-s.distance.y},c=Ru(o,t);return{x:c.x-o.x,y:c.y-o.y}}function jO({onNodeMouseDown:e,getStoreItems:t,onDragStart:r,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,f=new Map,d=!1,y={x:0,y:0},m=null,g=!1,v=null,b=!1,S=!1,_=null;function x({noDragClassName:k,handleSelector:M,domNode:A,isSelectable:z,nodeId:N,nodeClickDistance:D=0}){v=ad(A);function T({x:j,y:F}){const{nodeLookup:Q,nodeExtent:re,snapGrid:q,snapToGrid:$,nodeOrigin:Z,onNodeDrag:K,onSelectionDrag:W,onError:O,updateNodePositions:P}=t();o={x:j,y:F};let se=!1;const ce=f.size>1,de=ce&&re?bp(Tu(f)):null,me=ce&&$?LO({dragItems:f,snapGrid:q,x:j,y:F}):null;for(const[be,ye]of f){if(!Q.has(be))continue;let he={x:j-ye.distance.x,y:F-ye.distance.y};$&&(he=me?{x:Math.round(he.x+me.x),y:Math.round(he.y+me.y)}:Ru(he,q));let qe=null;if(ce&&re&&!ye.extent&&de){const{positionAbsolute:ze}=ye.internals,He=ze.x-de.x+re[0][0],ut=ze.x+ye.measured.width-de.x2+re[1][0],Ge=ze.y-de.y+re[0][1],Dt=ze.y+ye.measured.height-de.y2+re[1][1];qe=[[He,Ge],[ut,Dt]]}const{position:De,positionAbsolute:Re}=eM({nodeId:be,nextPosition:he,nodeLookup:Q,nodeExtent:qe||re,nodeOrigin:Z,onError:O});se=se||ye.position.x!==De.x||ye.position.y!==De.y,ye.position=De,ye.internals.positionAbsolute=Re}if(S=S||se,!!se&&(P(f,!0),_&&(a||K||!N&&W))){const[be,ye]=rm({nodeId:N,dragItems:f,nodeLookup:Q});a==null||a(_,f,be,ye),K==null||K(_,be,ye),N||W==null||W(_,ye)}}async function L(){if(!m)return;const{transform:j,panBy:F,autoPanSpeed:Q,autoPanOnNodeDrag:re}=t();if(!re){d=!1,cancelAnimationFrame(c);return}const[q,$]=nM(y,m,Q);(q!==0||$!==0)&&(o.x=(o.x??0)-q/j[2],o.y=(o.y??0)-$/j[2],await F({x:q,y:$})&&T(o)),c=requestAnimationFrame(L)}function G(j){var ce;const{nodeLookup:F,multiSelectionActive:Q,nodesDraggable:re,transform:q,snapGrid:$,snapToGrid:Z,selectNodesOnDrag:K,onNodeDragStart:W,onSelectionDragStart:O,unselectNodesAndEdges:P}=t();g=!0,(!K||!z)&&!Q&&N&&((ce=F.get(N))!=null&&ce.selected||P()),z&&K&&N&&(e==null||e(N));const se=tu(j.sourceEvent,{transform:q,snapGrid:$,snapToGrid:Z,containerBounds:m});if(o=se,f=DO(F,re,se,N),f.size>0&&(r||W||!N&&O)){const[de,me]=rm({nodeId:N,dragItems:f,nodeLookup:F});r==null||r(j.sourceEvent,f,de,me),W==null||W(j.sourceEvent,de,me),N||O==null||O(j.sourceEvent,me)}}const B=Yw().clickDistance(D).on("start",j=>{const{domNode:F,nodeDragThreshold:Q,transform:re,snapGrid:q,snapToGrid:$}=t();m=(F==null?void 0:F.getBoundingClientRect())||null,b=!1,S=!1,_=j.sourceEvent,Q===0&&G(j),o=tu(j.sourceEvent,{transform:re,snapGrid:q,snapToGrid:$,containerBounds:m}),y=wr(j.sourceEvent,m)}).on("drag",j=>{const{autoPanOnNodeDrag:F,transform:Q,snapGrid:re,snapToGrid:q,nodeDragThreshold:$,nodeLookup:Z}=t(),K=tu(j.sourceEvent,{transform:Q,snapGrid:re,snapToGrid:q,containerBounds:m});if(_=j.sourceEvent,(j.sourceEvent.type==="touchmove"&&j.sourceEvent.touches.length>1||N&&!Z.has(N))&&(b=!0),!b){if(!d&&F&&g&&(d=!0,L()),!g){const W=wr(j.sourceEvent,m),O=W.x-y.x,P=W.y-y.y;Math.sqrt(O*O+P*P)>$&&G(j)}(o.x!==K.xSnapped||o.y!==K.ySnapped)&&f&&g&&(y=wr(j.sourceEvent,m),T(K))}}).on("end",j=>{if(!(!g||b)&&(d=!1,g=!1,cancelAnimationFrame(c),f.size>0)){const{nodeLookup:F,updateNodePositions:Q,onNodeDragStop:re,onSelectionDragStop:q}=t();if(S&&(Q(f,!1),S=!1),s||re||!N&&q){const[$,Z]=rm({nodeId:N,dragItems:f,nodeLookup:F,dragging:!1});s==null||s(j.sourceEvent,f,$,Z),re==null||re(j.sourceEvent,$,Z),N||q==null||q(j.sourceEvent,Z)}}}).filter(j=>{const F=j.target;return!j.button&&(!k||!zS(F,`.${k}`,A))&&(!M||zS(F,M,A))});v.call(B)}function E(){v==null||v.on(".drag",null)}return{update:x,destroy:E}}function BO(e,t,r){const a=[],s={x:e.x-r,y:e.y-r,width:r*2,height:r*2};for(const o of t.values())cu(s,Bl(o))>0&&a.push(o);return a}const qO=250;function UO(e,t,r,a){var f,d;let s=[],o=1/0;const c=BO(e,r,t+qO);for(const y of c){const m=[...((f=y.internals.handleBounds)==null?void 0:f.source)??[],...((d=y.internals.handleBounds)==null?void 0:d.target)??[]];for(const g of m){if(a.nodeId===g.nodeId&&a.type===g.type&&a.id===g.id)continue;const{x:v,y:b}=hs(y,g,g.position,!0),S=Math.sqrt(Math.pow(v-e.x,2)+Math.pow(b-e.y,2));S>t||(S<o?(s=[{...g,x:v,y:b}],o=S):S===o&&s.push({...g,x:v,y:b}))}}if(!s.length)return null;if(s.length>1){const y=a.type==="source"?"target":"source";return s.find(m=>m.type===y)??s[0]}return s[0]}function pM(e,t,r,a,s,o=!1){var y,m,g;const c=a.get(e);if(!c)return null;const f=s==="strict"?(y=c.internals.handleBounds)==null?void 0:y[t]:[...((m=c.internals.handleBounds)==null?void 0:m.source)??[],...((g=c.internals.handleBounds)==null?void 0:g.target)??[]],d=(r?f==null?void 0:f.find(v=>v.id===r):f==null?void 0:f[0])??null;return d&&o?{...d,...hs(c,d,d.position,!0)}:d}function vM(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function HO(e,t){let r=null;return t?r=!0:e&&!t&&(r=!1),r}const bM=()=>!0;function VO(e,{connectionMode:t,connectionRadius:r,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:f,nodeLookup:d,lib:y,autoPanOnConnect:m,flowId:g,panBy:v,cancelConnection:b,onConnectStart:S,onConnect:_,onConnectEnd:x,isValidConnection:E=bM,onReconnectEnd:k,updateConnection:M,getTransform:A,getFromHandle:z,autoPanSpeed:N,dragThreshold:D=1,handleDomNode:T}){const L=sM(e.target);let G=0,B;const{x:j,y:F}=wr(e),Q=vM(o,T),re=f==null?void 0:f.getBoundingClientRect();let q=!1;if(!re||!Q)return;const $=pM(s,Q,a,d,t);if(!$)return;let Z=wr(e,re),K=!1,W=null,O=!1,P=null;function se(){if(!m||!re)return;const[De,Re]=nM(Z,re,N);v({x:De,y:Re}),G=requestAnimationFrame(se)}const ce={...$,nodeId:s,type:Q,position:$.position},de=d.get(s);let be={inProgress:!0,isValid:null,from:hs(de,ce,Be.Left,!0),fromHandle:ce,fromPosition:ce.position,fromNode:de,to:Z,toHandle:null,toPosition:_S[ce.position],toNode:null,pointer:Z};function ye(){q=!0,M(be),S==null||S(e,{nodeId:s,handleId:a,handleType:Q})}D===0&&ye();function he(De){if(!q){const{x:Dt,y:Dn}=wr(De),yn=Dt-j,Qn=Dn-F;if(!(yn*yn+Qn*Qn>D*D))return;ye()}if(!z()||!ce){qe(De);return}const Re=A();Z=wr(De,re),B=UO(Nu(Z,Re,!1,[1,1]),r,d,ce),K||(se(),K=!0);const ze=SM(De,{handle:B,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:E,doc:L,lib:y,flowId:g,nodeLookup:d});P=ze.handleDomNode,W=ze.connection,O=HO(!!B,ze.isValid);const He=d.get(s),ut=He?hs(He,ce,Be.Left,!0):be.from,Ge={...be,from:ut,isValid:O,to:ze.toHandle&&O?Hf({x:ze.toHandle.x,y:ze.toHandle.y},Re):Z,toHandle:ze.toHandle,toPosition:O&&ze.toHandle?ze.toHandle.position:_S[ce.position],toNode:ze.toHandle?d.get(ze.toHandle.nodeId):null,pointer:Z};M(Ge),be=Ge}function qe(De){if(!("touches"in De&&De.touches.length>0)){if(q){(B||P)&&W&&O&&(_==null||_(W));const{inProgress:Re,...ze}=be,He={...ze,toPosition:be.toHandle?be.toPosition:null};x==null||x(De,He),o&&(k==null||k(De,He))}b(),cancelAnimationFrame(G),K=!1,O=!1,W=null,P=null,L.removeEventListener("mousemove",he),L.removeEventListener("mouseup",qe),L.removeEventListener("touchmove",he),L.removeEventListener("touchend",qe)}}L.addEventListener("mousemove",he),L.addEventListener("mouseup",qe),L.addEventListener("touchmove",he),L.addEventListener("touchend",qe)}function SM(e,{handle:t,connectionMode:r,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:f,flowId:d,isValidConnection:y=bM,nodeLookup:m}){const g=o==="target",v=t?c.querySelector(`.${f}-flow__handle[data-id="${d}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:b,y:S}=wr(e),_=c.elementFromPoint(b,S),x=_!=null&&_.classList.contains(`${f}-flow__handle`)?_:v,E={handleDomNode:x,isValid:!1,connection:null,toHandle:null};if(x){const k=vM(void 0,x),M=x.getAttribute("data-nodeid"),A=x.getAttribute("data-handleid"),z=x.classList.contains("connectable"),N=x.classList.contains("connectableend");if(!M||!k)return E;const D={source:g?M:a,sourceHandle:g?A:s,target:g?a:M,targetHandle:g?s:A};E.connection=D;const L=z&&N&&(r===Ll.Strict?g&&k==="source"||!g&&k==="target":M!==a||A!==s);E.isValid=L&&y(D),E.toHandle=pM(M,k,A,m,r,!0)}return E}const wp={onPointerDown:VO,isValid:SM};function PO({domNode:e,panZoom:t,getTransform:r,getViewScale:a}){const s=ad(e);function o({translateExtent:f,width:d,height:y,zoomStep:m=1,pannable:g=!0,zoomable:v=!0,inversePan:b=!1}){const S=M=>{if(M.sourceEvent.type!=="wheel"||!t)return;const A=r(),z=M.sourceEvent.ctrlKey&&fu()?10:1,N=-M.sourceEvent.deltaY*(M.sourceEvent.deltaMode===1?.05:M.sourceEvent.deltaMode?1:.002)*m,D=A[2]*Math.pow(2,N*z);t.scaleTo(D)};let _=[0,0];const x=M=>{(M.sourceEvent.type==="mousedown"||M.sourceEvent.type==="touchstart")&&(_=[M.sourceEvent.clientX??M.sourceEvent.touches[0].clientX,M.sourceEvent.clientY??M.sourceEvent.touches[0].clientY])},E=M=>{const A=r();if(M.sourceEvent.type!=="mousemove"&&M.sourceEvent.type!=="touchmove"||!t)return;const z=[M.sourceEvent.clientX??M.sourceEvent.touches[0].clientX,M.sourceEvent.clientY??M.sourceEvent.touches[0].clientY],N=[z[0]-_[0],z[1]-_[1]];_=z;const D=a()*Math.max(A[2],Math.log(A[2]))*(b?-1:1),T={x:A[0]-N[0]*D,y:A[1]-N[1]*D},L=[[0,0],[d,y]];t.setViewportConstrained({x:T.x,y:T.y,zoom:A[2]},L,f)},k=$w().on("start",x).on("zoom",g?E:null).on("zoom.wheel",v?S:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:Fw}}const fd=e=>({x:e.x,y:e.y,zoom:e.k}),im=({x:e,y:t,zoom:r})=>SA.translate(e,t).scale(r),ml=(e,t)=>e.target.closest(`.${t}`),_M=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),IO=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,am=(e,t=0,r=IO,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(r).on("end",a):e},xM=e=>{const t=e.ctrlKey&&fu()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function FO({zoomPanValues:e,noWheelClassName:t,d3Selection:r,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:f,onPanZoom:d,onPanZoomEnd:y}){return m=>{if(ml(m,t))return m.ctrlKey&&m.preventDefault(),!1;m.preventDefault(),m.stopImmediatePropagation();const g=r.property("__zoom").k||1;if(m.ctrlKey&&c){const x=Fw(m),E=xM(m),k=g*Math.pow(2,E);a.scaleTo(r,k,x,m);return}const v=m.deltaMode===1?20:1;let b=s===as.Vertical?0:m.deltaX*v,S=s===as.Horizontal?0:m.deltaY*v;!fu()&&m.shiftKey&&s!==as.Vertical&&(b=m.deltaY*v,S=0),a.translateBy(r,-(b/g)*o,-(S/g)*o,{internal:!0});const _=fd(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(d==null||d(m,_),e.panScrollTimeout=setTimeout(()=>{y==null||y(m,_),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,f==null||f(m,_))}}function $O({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:r}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,f=ml(a,e);if(a.ctrlKey&&o&&f&&a.preventDefault(),c||f)return null;a.preventDefault(),r.call(this,a,s)}}function YO({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:r}){return a=>{var o,c,f;if((o=a.sourceEvent)!=null&&o.internal)return;const s=fd(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((f=a.sourceEvent)==null?void 0:f.type)==="mousedown"&&t(!0),r&&(r==null||r(a.sourceEvent,s))}}function ZO({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:r,onTransformChange:a,onPanZoom:s}){return o=>{var c,f;e.usedRightMouseButton=!!(r&&_M(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),s&&!((f=o.sourceEvent)!=null&&f.internal)&&(s==null||s(o.sourceEvent,fd(o.transform)))}}function GO({zoomPanValues:e,panOnDrag:t,panOnScroll:r,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:o}){return c=>{var f;if(!((f=c.sourceEvent)!=null&&f.internal)&&(e.isZoomingOrPanning=!1,o&&_M(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const d=fd(c.transform);e.prevViewport=d,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,d)},r?150:0)}}}function QO({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:r,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:f,noPanClassName:d,lib:y,connectionInProgress:m}){return g=>{var x;const v=e||t,b=r&&g.ctrlKey,S=g.type==="wheel";if(g.button===1&&g.type==="mousedown"&&(ml(g,`${y}-flow__node`)||ml(g,`${y}-flow__edge`)))return!0;if(!a&&!v&&!s&&!o&&!r||c||m&&!S||ml(g,f)&&S||ml(g,d)&&(!S||s&&S&&!e)||!r&&g.ctrlKey&&S)return!1;if(!r&&g.type==="touchstart"&&((x=g.touches)==null?void 0:x.length)>1)return g.preventDefault(),!1;if(!v&&!s&&!b&&S||!a&&(g.type==="mousedown"||g.type==="touchstart")||Array.isArray(a)&&!a.includes(g.button)&&g.type==="mousedown")return!1;const _=Array.isArray(a)&&a.includes(g.button)||!g.button||g.button<=1;return(!g.ctrlKey||S)&&_}}function XO({domNode:e,minZoom:t,maxZoom:r,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:f,onDraggingChange:d}){const y={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},m=e.getBoundingClientRect(),g=$w().scaleExtent([t,r]).translateExtent(a),v=ad(e).call(g);k({x:s.x,y:s.y,zoom:jl(s.zoom,t,r)},[[0,0],[m.width,m.height]],a);const b=v.on("wheel.zoom"),S=v.on("dblclick.zoom");g.wheelDelta(xM);function _(B,j){return v?new Promise(F=>{g==null||g.interpolate((j==null?void 0:j.interpolate)==="linear"?Iy:Py).transform(am(v,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>F(!0)),B)}):Promise.resolve(!1)}function x({noWheelClassName:B,noPanClassName:j,onPaneContextMenu:F,userSelectionActive:Q,panOnScroll:re,panOnDrag:q,panOnScrollMode:$,panOnScrollSpeed:Z,preventScrolling:K,zoomOnPinch:W,zoomOnScroll:O,zoomOnDoubleClick:P,zoomActivationKeyPressed:se,lib:ce,onTransformChange:de,connectionInProgress:me,paneClickDistance:be,selectionOnDrag:ye}){Q&&!y.isZoomingOrPanning&&E();const he=re&&!se&&!Q;g.clickDistance(ye?1/0:!xr(be)||be<0?0:be);const qe=he?FO({zoomPanValues:y,noWheelClassName:B,d3Selection:v,d3Zoom:g,panOnScrollMode:$,panOnScrollSpeed:Z,zoomOnPinch:W,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:f}):$O({noWheelClassName:B,preventScrolling:K,d3ZoomHandler:b});if(v.on("wheel.zoom",qe,{passive:!1}),!Q){const Re=YO({zoomPanValues:y,onDraggingChange:d,onPanZoomStart:c});g.on("start",Re);const ze=ZO({zoomPanValues:y,panOnDrag:q,onPaneContextMenu:!!F,onPanZoom:o,onTransformChange:de});g.on("zoom",ze);const He=GO({zoomPanValues:y,panOnDrag:q,panOnScroll:re,onPaneContextMenu:F,onPanZoomEnd:f,onDraggingChange:d});g.on("end",He)}const De=QO({zoomActivationKeyPressed:se,panOnDrag:q,zoomOnScroll:O,panOnScroll:re,zoomOnDoubleClick:P,zoomOnPinch:W,userSelectionActive:Q,noPanClassName:j,noWheelClassName:B,lib:ce,connectionInProgress:me});g.filter(De),P?v.on("dblclick.zoom",S):v.on("dblclick.zoom",null)}function E(){g.on("zoom",null)}async function k(B,j,F){const Q=im(B),re=g==null?void 0:g.constrain()(Q,j,F);return re&&await _(re),new Promise(q=>q(re))}async function M(B,j){const F=im(B);return await _(F,j),new Promise(Q=>Q(F))}function A(B){if(v){const j=im(B),F=v.property("__zoom");(F.k!==B.zoom||F.x!==B.x||F.y!==B.y)&&(g==null||g.transform(v,j,null,{sync:!0}))}}function z(){const B=v?_A(v.node()):{x:0,y:0,k:1};return{x:B.x,y:B.y,zoom:B.k}}function N(B,j){return v?new Promise(F=>{g==null||g.interpolate((j==null?void 0:j.interpolate)==="linear"?Iy:Py).scaleTo(am(v,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>F(!0)),B)}):Promise.resolve(!1)}function D(B,j){return v?new Promise(F=>{g==null||g.interpolate((j==null?void 0:j.interpolate)==="linear"?Iy:Py).scaleBy(am(v,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>F(!0)),B)}):Promise.resolve(!1)}function T(B){g==null||g.scaleExtent(B)}function L(B){g==null||g.translateExtent(B)}function G(B){const j=!xr(B)||B<0?0:B;g==null||g.clickDistance(j)}return{update:x,destroy:E,setViewport:M,setViewportConstrained:k,getViewport:z,scaleTo:N,scaleBy:D,setScaleExtent:T,setTranslateExtent:L,syncViewport:A,setClickDistance:G}}var Ul;(function(e){e.Line="line",e.Handle="handle"})(Ul||(Ul={}));function KO({width:e,prevWidth:t,height:r,prevHeight:a,affectsX:s,affectsY:o}){const c=e-t,f=r-a,d=[c>0?1:c<0?-1:0,f>0?1:f<0?-1:0];return c&&s&&(d[0]=d[0]*-1),f&&o&&(d[1]=d[1]*-1),d}function DS(e){const t=e.includes("right")||e.includes("left"),r=e.includes("bottom")||e.includes("top"),a=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:r,affectsX:a,affectsY:s}}function ea(e,t){return Math.max(0,t-e)}function ta(e,t){return Math.max(0,e-t)}function hf(e,t,r){return Math.max(0,t-e,e-r)}function LS(e,t){return e?!t:t}function WO(e,t,r,a,s,o,c,f){let{affectsX:d,affectsY:y}=t;const{isHorizontal:m,isVertical:g}=t,v=m&&g,{xSnapped:b,ySnapped:S}=r,{minWidth:_,maxWidth:x,minHeight:E,maxHeight:k}=a,{x:M,y:A,width:z,height:N,aspectRatio:D}=e;let T=Math.floor(m?b-e.pointerX:0),L=Math.floor(g?S-e.pointerY:0);const G=z+(d?-T:T),B=N+(y?-L:L),j=-o[0]*z,F=-o[1]*N;let Q=hf(G,_,x),re=hf(B,E,k);if(c){let Z=0,K=0;d&&T<0?Z=ea(M+T+j,c[0][0]):!d&&T>0&&(Z=ta(M+G+j,c[1][0])),y&&L<0?K=ea(A+L+F,c[0][1]):!y&&L>0&&(K=ta(A+B+F,c[1][1])),Q=Math.max(Q,Z),re=Math.max(re,K)}if(f){let Z=0,K=0;d&&T>0?Z=ta(M+T,f[0][0]):!d&&T<0&&(Z=ea(M+G,f[1][0])),y&&L>0?K=ta(A+L,f[0][1]):!y&&L<0&&(K=ea(A+B,f[1][1])),Q=Math.max(Q,Z),re=Math.max(re,K)}if(s){if(m){const Z=hf(G/D,E,k)*D;if(Q=Math.max(Q,Z),c){let K=0;!d&&!y||d&&!y&&v?K=ta(A+F+G/D,c[1][1])*D:K=ea(A+F+(d?T:-T)/D,c[0][1])*D,Q=Math.max(Q,K)}if(f){let K=0;!d&&!y||d&&!y&&v?K=ea(A+G/D,f[1][1])*D:K=ta(A+(d?T:-T)/D,f[0][1])*D,Q=Math.max(Q,K)}}if(g){const Z=hf(B*D,_,x)/D;if(re=Math.max(re,Z),c){let K=0;!d&&!y||y&&!d&&v?K=ta(M+B*D+j,c[1][0])/D:K=ea(M+(y?L:-L)*D+j,c[0][0])/D,re=Math.max(re,K)}if(f){let K=0;!d&&!y||y&&!d&&v?K=ea(M+B*D,f[1][0])/D:K=ta(M+(y?L:-L)*D,f[0][0])/D,re=Math.max(re,K)}}}L=L+(L<0?re:-re),T=T+(T<0?Q:-Q),s&&(v?G>B*D?L=(LS(d,y)?-T:T)/D:T=(LS(d,y)?-L:L)*D:m?(L=T/D,y=d):(T=L*D,d=y));const q=d?M+T:M,$=y?A+L:A;return{width:z+(d?-T:T),height:N+(y?-L:L),x:o[0]*T*(d?-1:1)+q,y:o[1]*L*(y?-1:1)+$}}const wM={width:0,height:0,x:0,y:0},JO={...wM,pointerX:0,pointerY:0,aspectRatio:1};function e8(e){return[[0,0],[e.measured.width,e.measured.height]]}function t8(e,t,r){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,f=r[0]*o,d=r[1]*c;return[[a-f,s-d],[a+o-f,s+c-d]]}function n8({domNode:e,nodeId:t,getStoreItems:r,onChange:a,onEnd:s}){const o=ad(e);let c={controlDirection:DS("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function f({controlPosition:y,boundaries:m,keepAspectRatio:g,resizeDirection:v,onResizeStart:b,onResize:S,onResizeEnd:_,shouldResize:x}){let E={...wM},k={...JO};c={boundaries:m,resizeDirection:v,keepAspectRatio:g,controlDirection:DS(y)};let M,A=null,z=[],N,D,T,L=!1;const G=Yw().on("start",B=>{const{nodeLookup:j,transform:F,snapGrid:Q,snapToGrid:re,nodeOrigin:q,paneDomNode:$}=r();if(M=j.get(t),!M)return;A=($==null?void 0:$.getBoundingClientRect())??null;const{xSnapped:Z,ySnapped:K}=tu(B.sourceEvent,{transform:F,snapGrid:Q,snapToGrid:re,containerBounds:A});E={width:M.measured.width??0,height:M.measured.height??0,x:M.position.x??0,y:M.position.y??0},k={...E,pointerX:Z,pointerY:K,aspectRatio:E.width/E.height},N=void 0,M.parentId&&(M.extent==="parent"||M.expandParent)&&(N=j.get(M.parentId),D=N&&M.extent==="parent"?e8(N):void 0),z=[],T=void 0;for(const[W,O]of j)if(O.parentId===t&&(z.push({id:W,position:{...O.position},extent:O.extent}),O.extent==="parent"||O.expandParent)){const P=t8(O,M,O.origin??q);T?T=[[Math.min(P[0][0],T[0][0]),Math.min(P[0][1],T[0][1])],[Math.max(P[1][0],T[1][0]),Math.max(P[1][1],T[1][1])]]:T=P}b==null||b(B,{...E})}).on("drag",B=>{const{transform:j,snapGrid:F,snapToGrid:Q,nodeOrigin:re}=r(),q=tu(B.sourceEvent,{transform:j,snapGrid:F,snapToGrid:Q,containerBounds:A}),$=[];if(!M)return;const{x:Z,y:K,width:W,height:O}=E,P={},se=M.origin??re,{width:ce,height:de,x:me,y:be}=WO(k,c.controlDirection,q,c.boundaries,c.keepAspectRatio,se,D,T),ye=ce!==W,he=de!==O,qe=me!==Z&&ye,De=be!==K&&he;if(!qe&&!De&&!ye&&!he)return;if((qe||De||se[0]===1||se[1]===1)&&(P.x=qe?me:E.x,P.y=De?be:E.y,E.x=P.x,E.y=P.y,z.length>0)){const ut=me-Z,Ge=be-K;for(const Dt of z)Dt.position={x:Dt.position.x-ut+se[0]*(ce-W),y:Dt.position.y-Ge+se[1]*(de-O)},$.push(Dt)}if((ye||he)&&(P.width=ye&&(!c.resizeDirection||c.resizeDirection==="horizontal")?ce:E.width,P.height=he&&(!c.resizeDirection||c.resizeDirection==="vertical")?de:E.height,E.width=P.width,E.height=P.height),N&&M.expandParent){const ut=se[0]*(P.width??0);P.x&&P.x<ut&&(E.x=ut,k.x=k.x-(P.x-ut));const Ge=se[1]*(P.height??0);P.y&&P.y<Ge&&(E.y=Ge,k.y=k.y-(P.y-Ge))}const Re=KO({width:E.width,prevWidth:W,height:E.height,prevHeight:O,affectsX:c.controlDirection.affectsX,affectsY:c.controlDirection.affectsY}),ze={...E,direction:Re};(x==null?void 0:x(B,ze))!==!1&&(L=!0,S==null||S(B,ze),a(P,$))}).on("end",B=>{L&&(_==null||_(B,{...E}),s==null||s({...E}),L=!1)});o.call(G)}function d(){o.on(".drag",null)}return{update:f,destroy:d}}var sm={exports:{}},lm={},om={exports:{}},um={};/**
776
+ * @license React
777
+ * use-sync-external-store-shim.production.js
778
+ *
779
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
780
+ *
781
+ * This source code is licensed under the MIT license found in the
782
+ * LICENSE file in the root directory of this source tree.
783
+ */var jS;function r8(){if(jS)return um;jS=1;var e=Il();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function f(g,v){var b=v(),S=a({inst:{value:b,getSnapshot:v}}),_=S[0].inst,x=S[1];return o(function(){_.value=b,_.getSnapshot=v,d(_)&&x({inst:_})},[g,b,v]),s(function(){return d(_)&&x({inst:_}),g(function(){d(_)&&x({inst:_})})},[g]),c(b),b}function d(g){var v=g.getSnapshot;g=g.value;try{var b=v();return!r(g,b)}catch{return!0}}function y(g,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:f;return um.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,um}var BS;function i8(){return BS||(BS=1,om.exports=r8()),om.exports}/**
784
+ * @license React
785
+ * use-sync-external-store-shim/with-selector.production.js
786
+ *
787
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
788
+ *
789
+ * This source code is licensed under the MIT license found in the
790
+ * LICENSE file in the root directory of this source tree.
791
+ */var qS;function a8(){if(qS)return lm;qS=1;var e=Il(),t=i8();function r(y,m){return y===m&&(y!==0||1/y===1/m)||y!==y&&m!==m}var a=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,f=e.useMemo,d=e.useDebugValue;return lm.useSyncExternalStoreWithSelector=function(y,m,g,v,b){var S=o(null);if(S.current===null){var _={hasValue:!1,value:null};S.current=_}else _=S.current;S=f(function(){function E(N){if(!k){if(k=!0,M=N,N=v(N),b!==void 0&&_.hasValue){var D=_.value;if(b(D,N))return A=D}return A=N}if(D=A,a(M,N))return D;var T=v(N);return b!==void 0&&b(D,T)?(M=N,D):(M=N,A=T)}var k=!1,M,A,z=g===void 0?null:g;return[function(){return E(m())},z===null?void 0:function(){return E(z())}]},[m,g,v,b]);var x=s(y,S[0],S[1]);return c(function(){_.hasValue=!0,_.value=x},[x]),d(x),x},lm}var US;function s8(){return US||(US=1,sm.exports=a8()),sm.exports}var l8=s8();const o8=ur(l8),u8={},HS=e=>{let t;const r=new Set,a=(m,g)=>{const v=typeof m=="function"?m(t):m;if(!Object.is(v,t)){const b=t;t=g??(typeof v!="object"||v===null)?v:Object.assign({},t,v),r.forEach(S=>S(t,b))}},s=()=>t,d={setState:a,getState:s,getInitialState:()=>y,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(u8?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},y=t=e(a,s,d);return d},c8=e=>e?HS(e):HS,{useDebugValue:f8}=Bt,{useSyncExternalStoreWithSelector:d8}=o8,h8=e=>e;function EM(e,t=h8,r){const a=d8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return f8(a),a}const VS=(e,t)=>{const r=c8(e),a=(s,o=t)=>EM(r,s,o);return Object.assign(a,r),a},y8=(e,t)=>e?VS(e,t):VS;function At(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,s]of e)if(!Object.is(s,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const a of r)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}const dd=R.createContext(null),m8=dd.Provider,MM=qr.error001();function it(e,t){const r=R.useContext(dd);if(r===null)throw new Error(MM);return EM(r,e,t)}function Ct(){const e=R.useContext(dd);if(e===null)throw new Error(MM);return R.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const PS={display:"none"},g8={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},kM="react-flow__node-desc",AM="react-flow__edge-desc",p8="react-flow__aria-live",v8=e=>e.ariaLiveMessage,b8=e=>e.ariaLabelConfig;function S8({rfId:e}){const t=it(v8);return le.jsx("div",{id:`${p8}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:g8,children:t})}function _8({rfId:e,disableKeyboardA11y:t}){const r=it(b8);return le.jsxs(le.Fragment,{children:[le.jsx("div",{id:`${kM}-${e}`,style:PS,children:t?r["node.a11yDescription.default"]:r["node.a11yDescription.keyboardDisabled"]}),le.jsx("div",{id:`${AM}-${e}`,style:PS,children:r["edge.a11yDescription.default"]}),!t&&le.jsx(S8,{rfId:e})]})}const hd=R.forwardRef(({position:e="top-left",children:t,className:r,style:a,...s},o)=>{const c=`${e}`.split("-");return le.jsx("div",{className:Gt(["react-flow__panel",r,...c]),style:a,ref:o,...s,children:t})});hd.displayName="Panel";function x8({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:le.jsx(hd,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:le.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const w8=e=>{const t=[],r=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&r.push(a);return{selectedNodes:t,selectedEdges:r}},yf=e=>e.id;function E8(e,t){return At(e.selectedNodes.map(yf),t.selectedNodes.map(yf))&&At(e.selectedEdges.map(yf),t.selectedEdges.map(yf))}function M8({onSelectionChange:e}){const t=Ct(),{selectedNodes:r,selectedEdges:a}=it(w8,E8);return R.useEffect(()=>{const s={nodes:r,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(o=>o(s))},[r,a,e]),null}const k8=e=>!!e.onSelectionChangeHandlers;function A8({onSelectionChange:e}){const t=it(k8);return e||t?le.jsx(M8,{onSelectionChange:e}):null}const Ep=typeof window<"u"?R.useLayoutEffect:R.useEffect,CM=[0,0],C8={x:0,y:0,zoom:1},T8=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],IS=[...T8,"rfId"],R8=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),FS={translateExtent:ou,nodeOrigin:CM,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function N8(e){const{setNodes:t,setEdges:r,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:f,setDefaultNodesAndEdges:d}=it(R8,At),y=Ct();Ep(()=>(d(e.defaultNodes,e.defaultEdges),()=>{m.current=FS,f()}),[]);const m=R.useRef(FS);return Ep(()=>{for(const g of IS){const v=e[g],b=m.current[g];v!==b&&(typeof e[g]>"u"||(g==="nodes"?t(v):g==="edges"?r(v):g==="minZoom"?a(v):g==="maxZoom"?s(v):g==="translateExtent"?o(v):g==="nodeExtent"?c(v):g==="ariaLabelConfig"?y.setState({ariaLabelConfig:yO(v)}):g==="fitView"?y.setState({fitViewQueued:v}):g==="fitViewOptions"?y.setState({fitViewOptions:v}):y.setState({[g]:v})))}m.current=e},IS.map(g=>e[g])),null}function $S(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function O8(e){var a;const[t,r]=R.useState(e==="system"?null:e);return R.useEffect(()=>{if(e!=="system"){r(e);return}const s=$S(),o=()=>r(s!=null&&s.matches?"dark":"light");return o(),s==null||s.addEventListener("change",o),()=>{s==null||s.removeEventListener("change",o)}},[e]),t!==null?t:(a=$S())!=null&&a.matches?"dark":"light"}const YS=typeof document<"u"?document:null;function du(e=null,t={target:YS,actInsideInputWithModifier:!0}){const[r,a]=R.useState(!1),s=R.useRef(!1),o=R.useRef(new Set([])),[c,f]=R.useMemo(()=>{if(e!==null){const y=(Array.isArray(e)?e:[e]).filter(g=>typeof g=="string").map(g=>g.replace("+",`
792
+ `).replace(`
793
+
794
+ `,`
795
+ +`).split(`
796
+ `)),m=y.reduce((g,v)=>g.concat(...v),[]);return[y,m]}return[[],[]]},[e]);return R.useEffect(()=>{const d=(t==null?void 0:t.target)??YS,y=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const m=b=>{var x,E;if(s.current=b.ctrlKey||b.metaKey||b.shiftKey||b.altKey,(!s.current||s.current&&!y)&&lM(b))return!1;const _=GS(b.code,f);if(o.current.add(b[_]),ZS(c,o.current,!1)){const k=((E=(x=b.composedPath)==null?void 0:x.call(b))==null?void 0:E[0])||b.target,M=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";t.preventDefault!==!1&&(s.current||!M)&&b.preventDefault(),a(!0)}},g=b=>{const S=GS(b.code,f);ZS(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(b[S]),b.key==="Meta"&&o.current.clear(),s.current=!1},v=()=>{o.current.clear(),a(!1)};return d==null||d.addEventListener("keydown",m),d==null||d.addEventListener("keyup",g),window.addEventListener("blur",v),window.addEventListener("contextmenu",v),()=>{d==null||d.removeEventListener("keydown",m),d==null||d.removeEventListener("keyup",g),window.removeEventListener("blur",v),window.removeEventListener("contextmenu",v)}}},[e,a]),r}function ZS(e,t,r){return e.filter(a=>r||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function GS(e,t){return t.includes(e)?"code":"key"}const z8=()=>{const e=Ct();return R.useMemo(()=>({zoomIn:t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,r)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,r):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,r)=>{const{transform:[a,s,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??o},r),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,r,a]=e.getState().transform;return{x:t,y:r,zoom:a}},setCenter:async(t,r,a)=>e.getState().setCenter(t,r,a),fitBounds:async(t,r)=>{const{width:a,height:s,minZoom:o,maxZoom:c,panZoom:f}=e.getState(),d=u0(t,a,s,o,c,(r==null?void 0:r.padding)??.1);return f?(await f.setViewport(d,{duration:r==null?void 0:r.duration,ease:r==null?void 0:r.ease,interpolate:r==null?void 0:r.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,r={})=>{const{transform:a,snapGrid:s,snapToGrid:o,domNode:c}=e.getState();if(!c)return t;const{x:f,y:d}=c.getBoundingClientRect(),y={x:t.x-f,y:t.y-d},m=r.snapGrid??s,g=r.snapToGrid??o;return Nu(y,a,g,m)},flowToScreenPosition:t=>{const{transform:r,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=Hf(t,r);return{x:c.x+s,y:c.y+o}}}),[])};function TM(e,t){const r=[],a=new Map,s=[];for(const o of e)if(o.type==="add"){s.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){r.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){r.push({...c[0].item});continue}const f={...o};for(const d of c)D8(d,f);r.push(f)}return s.length&&s.forEach(o=>{o.index!==void 0?r.splice(o.index,0,{...o.item}):r.push({...o.item})}),r}function D8(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function L8(e,t){return TM(e,t)}function j8(e,t){return TM(e,t)}function $a(e,t){return{id:e,type:"select",selected:t}}function gl(e,t=new Set,r=!1){const a=[];for(const[s,o]of e){const c=t.has(s);!(o.selected===void 0&&!c)&&o.selected!==c&&(r&&(o.selected=c),a.push($a(o.id,c)))}return a}function QS({items:e=[],lookup:t}){var s;const r=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,c]of e.entries()){const f=t.get(c.id),d=((s=f==null?void 0:f.internals)==null?void 0:s.userNode)??f;d!==void 0&&d!==c&&r.push({id:c.id,item:c,type:"replace"}),d===void 0&&r.push({item:c,type:"add",index:o})}for(const[o]of t)a.get(o)===void 0&&r.push({id:o,type:"remove"});return r}function XS(e){return{id:e.id,type:"remove"}}const KS=e=>iO(e),B8=e=>JE(e);function RM(e){return R.forwardRef(e)}function WS(e){const[t,r]=R.useState(BigInt(0)),[a]=R.useState(()=>q8(()=>r(s=>s+BigInt(1))));return Ep(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function q8(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:r=>{t.push(r),e()}}}const NM=R.createContext(null);function U8({children:e}){const t=Ct(),r=R.useCallback(f=>{const{nodes:d=[],setNodes:y,hasDefaultNodes:m,onNodesChange:g,nodeLookup:v,fitViewQueued:b,onNodesChangeMiddlewareMap:S}=t.getState();let _=d;for(const E of f)_=typeof E=="function"?E(_):E;let x=QS({items:_,lookup:v});for(const E of S.values())x=E(x);m&&y(_),x.length>0?g==null||g(x):b&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:k,setNodes:M}=t.getState();E&&M(k)})},[]),a=WS(r),s=R.useCallback(f=>{const{edges:d=[],setEdges:y,hasDefaultEdges:m,onEdgesChange:g,edgeLookup:v}=t.getState();let b=d;for(const S of f)b=typeof S=="function"?S(b):S;m?y(b):g&&g(QS({items:b,lookup:v}))},[]),o=WS(s),c=R.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return le.jsx(NM.Provider,{value:c,children:e})}function H8(){const e=R.useContext(NM);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const V8=e=>!!e.panZoom;function g0(){const e=z8(),t=Ct(),r=H8(),a=it(V8),s=R.useMemo(()=>{const o=g=>t.getState().nodeLookup.get(g),c=g=>{r.nodeQueue.push(g)},f=g=>{r.edgeQueue.push(g)},d=g=>{var E,k;const{nodeLookup:v,nodeOrigin:b}=t.getState(),S=KS(g)?g:v.get(g.id),_=S.parentId?aM(S.position,S.measured,S.parentId,v,b):S.position,x={...S,position:_,width:((E=S.measured)==null?void 0:E.width)??S.width,height:((k=S.measured)==null?void 0:k.height)??S.height};return Bl(x)},y=(g,v,b={replace:!1})=>{c(S=>S.map(_=>{if(_.id===g){const x=typeof v=="function"?v(_):v;return b.replace&&KS(x)?x:{..._,...x}}return _}))},m=(g,v,b={replace:!1})=>{f(S=>S.map(_=>{if(_.id===g){const x=typeof v=="function"?v(_):v;return b.replace&&B8(x)?x:{..._,...x}}return _}))};return{getNodes:()=>t.getState().nodes.map(g=>({...g})),getNode:g=>{var v;return(v=o(g))==null?void 0:v.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:g=[]}=t.getState();return g.map(v=>({...v}))},getEdge:g=>t.getState().edgeLookup.get(g),setNodes:c,setEdges:f,addNodes:g=>{const v=Array.isArray(g)?g:[g];r.nodeQueue.push(b=>[...b,...v])},addEdges:g=>{const v=Array.isArray(g)?g:[g];r.edgeQueue.push(b=>[...b,...v])},toObject:()=>{const{nodes:g=[],edges:v=[],transform:b}=t.getState(),[S,_,x]=b;return{nodes:g.map(E=>({...E})),edges:v.map(E=>({...E})),viewport:{x:S,y:_,zoom:x}}},deleteElements:async({nodes:g=[],edges:v=[]})=>{const{nodes:b,edges:S,onNodesDelete:_,onEdgesDelete:x,triggerNodeChanges:E,triggerEdgeChanges:k,onDelete:M,onBeforeDelete:A}=t.getState(),{nodes:z,edges:N}=await uO({nodesToRemove:g,edgesToRemove:v,nodes:b,edges:S,onBeforeDelete:A}),D=N.length>0,T=z.length>0;if(D){const L=N.map(XS);x==null||x(N),k(L)}if(T){const L=z.map(XS);_==null||_(z),E(L)}return(T||D)&&(M==null||M({nodes:z,edges:N})),{deletedNodes:z,deletedEdges:N}},getIntersectingNodes:(g,v=!0,b)=>{const S=wS(g),_=S?g:d(g),x=b!==void 0;return _?(b||t.getState().nodes).filter(E=>{const k=t.getState().nodeLookup.get(E.id);if(k&&!S&&(E.id===g.id||!k.internals.positionAbsolute))return!1;const M=Bl(x?E:k),A=cu(M,_);return v&&A>0||A>=M.width*M.height||A>=_.width*_.height}):[]},isNodeIntersecting:(g,v,b=!0)=>{const _=wS(g)?g:d(g);if(!_)return!1;const x=cu(_,v);return b&&x>0||x>=v.width*v.height||x>=_.width*_.height},updateNode:y,updateNodeData:(g,v,b={replace:!1})=>{y(g,S=>{const _=typeof v=="function"?v(S):v;return b.replace?{...S,data:_}:{...S,data:{...S.data,..._}}},b)},updateEdge:m,updateEdgeData:(g,v,b={replace:!1})=>{m(g,S=>{const _=typeof v=="function"?v(S):v;return b.replace?{...S,data:_}:{...S,data:{...S.data,..._}}},b)},getNodesBounds:g=>{const{nodeLookup:v,nodeOrigin:b}=t.getState();return aO(g,{nodeLookup:v,nodeOrigin:b})},getHandleConnections:({type:g,id:v,nodeId:b})=>{var S;return Array.from(((S=t.getState().connectionLookup.get(`${b}-${g}${v?`-${v}`:""}`))==null?void 0:S.values())??[])},getNodeConnections:({type:g,handleId:v,nodeId:b})=>{var S;return Array.from(((S=t.getState().connectionLookup.get(`${b}${g?v?`-${g}-${v}`:`-${g}`:""}`))==null?void 0:S.values())??[])},fitView:async g=>{const v=t.getState().fitViewResolver??hO();return t.setState({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:v}),r.nodeQueue.push(b=>[...b]),v.promise}}},[]);return R.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const JS=e=>e.selected,P8=typeof window<"u"?window:void 0;function I8({deleteKeyCode:e,multiSelectionKeyCode:t}){const r=Ct(),{deleteElements:a}=g0(),s=du(e,{actInsideInputWithModifier:!1}),o=du(t,{target:P8});R.useEffect(()=>{if(s){const{edges:c,nodes:f}=r.getState();a({nodes:f.filter(JS),edges:c.filter(JS)}),r.setState({nodesSelectionActive:!1})}},[s]),R.useEffect(()=>{r.setState({multiSelectionActive:o})},[o])}function F8(e){const t=Ct();R.useEffect(()=>{const r=()=>{var s,o,c,f;if(!e.current||!(((o=(s=e.current).checkVisibility)==null?void 0:o.call(s))??!0))return!1;const a=c0(e.current);(a.height===0||a.width===0)&&((f=(c=t.getState()).onError)==null||f.call(c,"004",qr.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){r(),window.addEventListener("resize",r);const a=new ResizeObserver(()=>r());return a.observe(e.current),()=>{window.removeEventListener("resize",r),a&&e.current&&a.unobserve(e.current)}}},[])}const yd={position:"absolute",width:"100%",height:"100%",top:0,left:0},$8=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function Y8({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:r=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=as.Free,zoomOnDoubleClick:c=!0,panOnDrag:f=!0,defaultViewport:d,translateExtent:y,minZoom:m,maxZoom:g,zoomActivationKeyCode:v,preventScrolling:b=!0,children:S,noWheelClassName:_,noPanClassName:x,onViewportChange:E,isControlledViewport:k,paneClickDistance:M,selectionOnDrag:A}){const z=Ct(),N=R.useRef(null),{userSelectionActive:D,lib:T,connectionInProgress:L}=it($8,At),G=du(v),B=R.useRef();F8(N);const j=R.useCallback(F=>{E==null||E({x:F[0],y:F[1],zoom:F[2]}),k||z.setState({transform:F})},[E,k]);return R.useEffect(()=>{if(N.current){B.current=XO({domNode:N.current,minZoom:m,maxZoom:g,translateExtent:y,viewport:d,onDraggingChange:q=>z.setState($=>$.paneDragging===q?$:{paneDragging:q}),onPanZoomStart:(q,$)=>{const{onViewportChangeStart:Z,onMoveStart:K}=z.getState();K==null||K(q,$),Z==null||Z($)},onPanZoom:(q,$)=>{const{onViewportChange:Z,onMove:K}=z.getState();K==null||K(q,$),Z==null||Z($)},onPanZoomEnd:(q,$)=>{const{onViewportChangeEnd:Z,onMoveEnd:K}=z.getState();K==null||K(q,$),Z==null||Z($)}});const{x:F,y:Q,zoom:re}=B.current.getViewport();return z.setState({panZoom:B.current,transform:[F,Q,re],domNode:N.current.closest(".react-flow")}),()=>{var q;(q=B.current)==null||q.destroy()}}},[]),R.useEffect(()=>{var F;(F=B.current)==null||F.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:r,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:f,zoomActivationKeyPressed:G,preventScrolling:b,noPanClassName:x,userSelectionActive:D,noWheelClassName:_,lib:T,onTransformChange:j,connectionInProgress:L,selectionOnDrag:A,paneClickDistance:M})},[e,t,r,a,s,o,c,f,G,b,x,D,_,T,j,L,A,M]),le.jsx("div",{className:"react-flow__renderer",ref:N,style:yd,children:S})}const Z8=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function G8(){const{userSelectionActive:e,userSelectionRect:t}=it(Z8,At);return e&&t?le.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const cm=(e,t)=>r=>{r.target===t.current&&(e==null||e(r))},Q8=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function X8({isSelecting:e,selectionKeyPressed:t,selectionMode:r=uu.Full,panOnDrag:a,paneClickDistance:s,selectionOnDrag:o,onSelectionStart:c,onSelectionEnd:f,onPaneClick:d,onPaneContextMenu:y,onPaneScroll:m,onPaneMouseEnter:g,onPaneMouseMove:v,onPaneMouseLeave:b,children:S}){const _=Ct(),{userSelectionActive:x,elementsSelectable:E,dragging:k,connectionInProgress:M}=it(Q8,At),A=E&&(e||x),z=R.useRef(null),N=R.useRef(),D=R.useRef(new Set),T=R.useRef(new Set),L=R.useRef(!1),G=Z=>{if(L.current||M){L.current=!1;return}d==null||d(Z),_.getState().resetSelectedElements(),_.setState({nodesSelectionActive:!1})},B=Z=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){Z.preventDefault();return}y==null||y(Z)},j=m?Z=>m(Z):void 0,F=Z=>{L.current&&(Z.stopPropagation(),L.current=!1)},Q=Z=>{var de,me;const{domNode:K}=_.getState();if(N.current=K==null?void 0:K.getBoundingClientRect(),!N.current)return;const W=Z.target===z.current;if(!W&&!!Z.target.closest(".nokey")||!e||!(o&&W||t)||Z.button!==0||!Z.isPrimary)return;(me=(de=Z.target)==null?void 0:de.setPointerCapture)==null||me.call(de,Z.pointerId),L.current=!1;const{x:se,y:ce}=wr(Z.nativeEvent,N.current);_.setState({userSelectionRect:{width:0,height:0,startX:se,startY:ce,x:se,y:ce}}),W||(Z.stopPropagation(),Z.preventDefault())},re=Z=>{const{userSelectionRect:K,transform:W,nodeLookup:O,edgeLookup:P,connectionLookup:se,triggerNodeChanges:ce,triggerEdgeChanges:de,defaultEdgeOptions:me,resetSelectedElements:be}=_.getState();if(!N.current||!K)return;const{x:ye,y:he}=wr(Z.nativeEvent,N.current),{startX:qe,startY:De}=K;if(!L.current){const Ge=t?0:s;if(Math.hypot(ye-qe,he-De)<=Ge)return;be(),c==null||c(Z)}L.current=!0;const Re={startX:qe,startY:De,x:ye<qe?ye:qe,y:he<De?he:De,width:Math.abs(ye-qe),height:Math.abs(he-De)},ze=D.current,He=T.current;D.current=new Set(o0(O,Re,W,r===uu.Partial,!0).map(Ge=>Ge.id)),T.current=new Set;const ut=(me==null?void 0:me.selectable)??!0;for(const Ge of D.current){const Dt=se.get(Ge);if(Dt)for(const{edgeId:Dn}of Dt.values()){const yn=P.get(Dn);yn&&(yn.selectable??ut)&&T.current.add(Dn)}}if(!ES(ze,D.current)){const Ge=gl(O,D.current,!0);ce(Ge)}if(!ES(He,T.current)){const Ge=gl(P,T.current);de(Ge)}_.setState({userSelectionRect:Re,userSelectionActive:!0,nodesSelectionActive:!1})},q=Z=>{var K,W;Z.button===0&&((W=(K=Z.target)==null?void 0:K.releasePointerCapture)==null||W.call(K,Z.pointerId),!x&&Z.target===z.current&&_.getState().userSelectionRect&&(G==null||G(Z)),_.setState({userSelectionActive:!1,userSelectionRect:null}),L.current&&(f==null||f(Z),_.setState({nodesSelectionActive:D.current.size>0})))},$=a===!0||Array.isArray(a)&&a.includes(0);return le.jsxs("div",{className:Gt(["react-flow__pane",{draggable:$,dragging:k,selection:e}]),onClick:A?void 0:cm(G,z),onContextMenu:cm(B,z),onWheel:cm(j,z),onPointerEnter:A?void 0:g,onPointerMove:A?re:v,onPointerUp:A?q:void 0,onPointerDownCapture:A?Q:void 0,onClickCapture:A?F:void 0,onPointerLeave:b,ref:z,style:yd,children:[S,le.jsx(G8,{})]})}function Mp({id:e,store:t,unselect:r=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:f,onError:d}=t.getState(),y=f.get(e);if(!y){d==null||d("012",qr.error012(e));return}t.setState({nodesSelectionActive:!1}),y.selected?(r||y.selected&&c)&&(o({nodes:[y],edges:[]}),requestAnimationFrame(()=>{var m;return(m=a==null?void 0:a.current)==null?void 0:m.blur()})):s([e])}function OM({nodeRef:e,disabled:t=!1,noDragClassName:r,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const f=Ct(),[d,y]=R.useState(!1),m=R.useRef();return R.useEffect(()=>{m.current=jO({getStoreItems:()=>f.getState(),onNodeMouseDown:g=>{Mp({id:g,store:f,nodeRef:e})},onDragStart:()=>{y(!0)},onDragStop:()=>{y(!1)}})},[]),R.useEffect(()=>{if(!(t||!e.current||!m.current))return m.current.update({noDragClassName:r,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c}),()=>{var g;(g=m.current)==null||g.destroy()}},[r,a,t,o,e,s,c]),d}const K8=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function zM(){const e=Ct();return R.useCallback(r=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:f,updateNodePositions:d,nodeLookup:y,nodeOrigin:m}=e.getState(),g=new Map,v=K8(c),b=s?o[0]:5,S=s?o[1]:5,_=r.direction.x*b*r.factor,x=r.direction.y*S*r.factor;for(const[,E]of y){if(!v(E))continue;let k={x:E.internals.positionAbsolute.x+_,y:E.internals.positionAbsolute.y+x};s&&(k=Ru(k,o));const{position:M,positionAbsolute:A}=eM({nodeId:E.id,nextPosition:k,nodeLookup:y,nodeExtent:a,nodeOrigin:m,onError:f});E.position=M,E.internals.positionAbsolute=A,g.set(E.id,E)}d(g)},[])}const p0=R.createContext(null),W8=p0.Provider;p0.Consumer;const DM=()=>R.useContext(p0),J8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),ez=(e,t,r)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:f,toHandle:d,isValid:y}=c,m=(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===r;return{connectingFrom:(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===r,connectingTo:m,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===r,isPossibleEndHandle:o===Ll.Strict?(f==null?void 0:f.type)!==r:e!==(f==null?void 0:f.nodeId)||t!==(f==null?void 0:f.id),connectionInProcess:!!f,clickConnectionInProcess:!!s,valid:m&&y}};function tz({type:e="source",position:t=Be.Top,isValidConnection:r,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:f,children:d,className:y,onMouseDown:m,onTouchStart:g,...v},b){var re,q;const S=c||null,_=e==="target",x=Ct(),E=DM(),{connectOnClick:k,noPanClassName:M,rfId:A}=it(J8,At),{connectingFrom:z,connectingTo:N,clickConnecting:D,isPossibleEndHandle:T,connectionInProcess:L,clickConnectionInProcess:G,valid:B}=it(ez(E,S,e),At);E||(q=(re=x.getState()).onError)==null||q.call(re,"010",qr.error010());const j=$=>{const{defaultEdgeOptions:Z,onConnect:K,hasDefaultEdges:W}=x.getState(),O={...Z,...$};if(W){const{edges:P,setEdges:se}=x.getState();se(SO(O,P))}K==null||K(O),f==null||f(O)},F=$=>{if(!E)return;const Z=oM($.nativeEvent);if(s&&(Z&&$.button===0||!Z)){const K=x.getState();wp.onPointerDown($.nativeEvent,{handleDomNode:$.currentTarget,autoPanOnConnect:K.autoPanOnConnect,connectionMode:K.connectionMode,connectionRadius:K.connectionRadius,domNode:K.domNode,nodeLookup:K.nodeLookup,lib:K.lib,isTarget:_,handleId:S,nodeId:E,flowId:K.rfId,panBy:K.panBy,cancelConnection:K.cancelConnection,onConnectStart:K.onConnectStart,onConnectEnd:(...W)=>{var O,P;return(P=(O=x.getState()).onConnectEnd)==null?void 0:P.call(O,...W)},updateConnection:K.updateConnection,onConnect:j,isValidConnection:r||((...W)=>{var O,P;return((P=(O=x.getState()).isValidConnection)==null?void 0:P.call(O,...W))??!0}),getTransform:()=>x.getState().transform,getFromHandle:()=>x.getState().connection.fromHandle,autoPanSpeed:K.autoPanSpeed,dragThreshold:K.connectionDragThreshold})}Z?m==null||m($):g==null||g($)},Q=$=>{const{onClickConnectStart:Z,onClickConnectEnd:K,connectionClickStartHandle:W,connectionMode:O,isValidConnection:P,lib:se,rfId:ce,nodeLookup:de,connection:me}=x.getState();if(!E||!W&&!s)return;if(!W){Z==null||Z($.nativeEvent,{nodeId:E,handleId:S,handleType:e}),x.setState({connectionClickStartHandle:{nodeId:E,type:e,id:S}});return}const be=sM($.target),ye=r||P,{connection:he,isValid:qe}=wp.isValid($.nativeEvent,{handle:{nodeId:E,id:S,type:e},connectionMode:O,fromNodeId:W.nodeId,fromHandleId:W.id||null,fromType:W.type,isValidConnection:ye,flowId:ce,doc:be,lib:se,nodeLookup:de});qe&&he&&j(he);const De=structuredClone(me);delete De.inProgress,De.toPosition=De.toHandle?De.toHandle.position:null,K==null||K($,De),x.setState({connectionClickStartHandle:null})};return le.jsx("div",{"data-handleid":S,"data-nodeid":E,"data-handlepos":t,"data-id":`${A}-${E}-${S}-${e}`,className:Gt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",M,y,{source:!_,target:_,connectable:a,connectablestart:s,connectableend:o,clickconnecting:D,connectingfrom:z,connectingto:N,valid:B,connectionindicator:a&&(!L||T)&&(L||G?o:s)}]),onMouseDown:F,onTouchStart:F,onClick:k?Q:void 0,ref:b,...v,children:d})}const Vf=R.memo(RM(tz));function nz({data:e,isConnectable:t,sourcePosition:r=Be.Bottom}){return le.jsxs(le.Fragment,{children:[e==null?void 0:e.label,le.jsx(Vf,{type:"source",position:r,isConnectable:t})]})}function rz({data:e,isConnectable:t,targetPosition:r=Be.Top,sourcePosition:a=Be.Bottom}){return le.jsxs(le.Fragment,{children:[le.jsx(Vf,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label,le.jsx(Vf,{type:"source",position:a,isConnectable:t})]})}function iz(){return null}function az({data:e,isConnectable:t,targetPosition:r=Be.Top}){return le.jsxs(le.Fragment,{children:[le.jsx(Vf,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label]})}const Pf={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},e_={input:nz,default:rz,output:az,group:iz};function sz(e){var t,r,a,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((r=e.style)==null?void 0:r.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const lz=e=>{const{width:t,height:r,x:a,y:s}=Tu(e.nodeLookup,{filter:o=>!!o.selected});return{width:xr(t)?t:null,height:xr(r)?r:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${s}px)`}};function oz({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:r}){const a=Ct(),{width:s,height:o,transformString:c,userSelectionActive:f}=it(lz,At),d=zM(),y=R.useRef(null);R.useEffect(()=>{var b;r||(b=y.current)==null||b.focus({preventScroll:!0})},[r]);const m=!f&&s!==null&&o!==null;if(OM({nodeRef:y,disabled:!m}),!m)return null;const g=e?b=>{const S=a.getState().nodes.filter(_=>_.selected);e(b,S)}:void 0,v=b=>{Object.prototype.hasOwnProperty.call(Pf,b.key)&&(b.preventDefault(),d({direction:Pf[b.key],factor:b.shiftKey?4:1}))};return le.jsx("div",{className:Gt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:le.jsx("div",{ref:y,className:"react-flow__nodesselection-rect",onContextMenu:g,tabIndex:r?void 0:-1,onKeyDown:r?void 0:v,style:{width:s,height:o}})})}const t_=typeof window<"u"?window:void 0,uz=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function LM({children:e,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:f,deleteKeyCode:d,selectionKeyCode:y,selectionOnDrag:m,selectionMode:g,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:S,panActivationKeyCode:_,zoomActivationKeyCode:x,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:M,panOnScroll:A,panOnScrollSpeed:z,panOnScrollMode:N,zoomOnDoubleClick:D,panOnDrag:T,defaultViewport:L,translateExtent:G,minZoom:B,maxZoom:j,preventScrolling:F,onSelectionContextMenu:Q,noWheelClassName:re,noPanClassName:q,disableKeyboardA11y:$,onViewportChange:Z,isControlledViewport:K}){const{nodesSelectionActive:W,userSelectionActive:O}=it(uz,At),P=du(y,{target:t_}),se=du(_,{target:t_}),ce=se||T,de=se||A,me=m&&ce!==!0,be=P||O||me;return I8({deleteKeyCode:d,multiSelectionKeyCode:S}),le.jsx(Y8,{onPaneContextMenu:o,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:M,panOnScroll:de,panOnScrollSpeed:z,panOnScrollMode:N,zoomOnDoubleClick:D,panOnDrag:!P&&ce,defaultViewport:L,translateExtent:G,minZoom:B,maxZoom:j,zoomActivationKeyCode:x,preventScrolling:F,noWheelClassName:re,noPanClassName:q,onViewportChange:Z,isControlledViewport:K,paneClickDistance:f,selectionOnDrag:me,children:le.jsxs(X8,{onSelectionStart:v,onSelectionEnd:b,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:ce,isSelecting:!!be,selectionMode:g,selectionKeyPressed:P,paneClickDistance:f,selectionOnDrag:me,children:[e,W&&le.jsx(oz,{onSelectionContextMenu:Q,noPanClassName:q,disableKeyboardA11y:$})]})})}LM.displayName="FlowRenderer";const cz=R.memo(LM),fz=e=>t=>e?o0(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(r=>r.id):Array.from(t.nodeLookup.keys());function dz(e){return it(R.useCallback(fz(e),[e]),At)}const hz=e=>e.updateNodeInternals;function yz(){const e=it(hz),[t]=R.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(r=>{const a=new Map;r.forEach(s=>{const o=s.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:s.target,force:!0})}),e(a)}));return R.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function mz({node:e,nodeType:t,hasDimensions:r,resizeObserver:a}){const s=Ct(),o=R.useRef(null),c=R.useRef(null),f=R.useRef(e.sourcePosition),d=R.useRef(e.targetPosition),y=R.useRef(t),m=r&&!!e.internals.handleBounds;return R.useEffect(()=>{o.current&&!e.hidden&&(!m||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[m,e.hidden]),R.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),R.useEffect(()=>{if(o.current){const g=y.current!==t,v=f.current!==e.sourcePosition,b=d.current!==e.targetPosition;(g||v||b)&&(y.current=t,f.current=e.sourcePosition,d.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function gz({id:e,onClick:t,onMouseEnter:r,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:f,elementsSelectable:d,nodesConnectable:y,nodesFocusable:m,resizeObserver:g,noDragClassName:v,noPanClassName:b,disableKeyboardA11y:S,rfId:_,nodeTypes:x,nodeClickDistance:E,onError:k}){const{node:M,internals:A,isParent:z}=it(ye=>{const he=ye.nodeLookup.get(e),qe=ye.parentLookup.has(e);return{node:he,internals:he.internals,isParent:qe}},At);let N=M.type||"default",D=(x==null?void 0:x[N])||e_[N];D===void 0&&(k==null||k("003",qr.error003(N)),N="default",D=(x==null?void 0:x.default)||e_.default);const T=!!(M.draggable||f&&typeof M.draggable>"u"),L=!!(M.selectable||d&&typeof M.selectable>"u"),G=!!(M.connectable||y&&typeof M.connectable>"u"),B=!!(M.focusable||m&&typeof M.focusable>"u"),j=Ct(),F=iM(M),Q=mz({node:M,nodeType:N,hasDimensions:F,resizeObserver:g}),re=OM({nodeRef:Q,disabled:M.hidden||!T,noDragClassName:v,handleSelector:M.dragHandle,nodeId:e,isSelectable:L,nodeClickDistance:E}),q=zM();if(M.hidden)return null;const $=xi(M),Z=sz(M),K=L||T||t||r||a||s,W=r?ye=>r(ye,{...A.userNode}):void 0,O=a?ye=>a(ye,{...A.userNode}):void 0,P=s?ye=>s(ye,{...A.userNode}):void 0,se=o?ye=>o(ye,{...A.userNode}):void 0,ce=c?ye=>c(ye,{...A.userNode}):void 0,de=ye=>{const{selectNodesOnDrag:he,nodeDragThreshold:qe}=j.getState();L&&(!he||!T||qe>0)&&Mp({id:e,store:j,nodeRef:Q}),t&&t(ye,{...A.userNode})},me=ye=>{if(!(lM(ye.nativeEvent)||S)){if(QE.includes(ye.key)&&L){const he=ye.key==="Escape";Mp({id:e,store:j,unselect:he,nodeRef:Q})}else if(T&&M.selected&&Object.prototype.hasOwnProperty.call(Pf,ye.key)){ye.preventDefault();const{ariaLabelConfig:he}=j.getState();j.setState({ariaLiveMessage:he["node.a11yDescription.ariaLiveMessage"]({direction:ye.key.replace("Arrow","").toLowerCase(),x:~~A.positionAbsolute.x,y:~~A.positionAbsolute.y})}),q({direction:Pf[ye.key],factor:ye.shiftKey?4:1})}}},be=()=>{var He;if(S||!((He=Q.current)!=null&&He.matches(":focus-visible")))return;const{transform:ye,width:he,height:qe,autoPanOnNodeFocus:De,setCenter:Re}=j.getState();if(!De)return;o0(new Map([[e,M]]),{x:0,y:0,width:he,height:qe},ye,!0).length>0||Re(M.position.x+$.width/2,M.position.y+$.height/2,{zoom:ye[2]})};return le.jsx("div",{className:Gt(["react-flow__node",`react-flow__node-${N}`,{[b]:T},M.className,{selected:M.selected,selectable:L,parent:z,draggable:T,dragging:re}]),ref:Q,style:{zIndex:A.z,transform:`translate(${A.positionAbsolute.x}px,${A.positionAbsolute.y}px)`,pointerEvents:K?"all":"none",visibility:F?"visible":"hidden",...M.style,...Z},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:W,onMouseMove:O,onMouseLeave:P,onContextMenu:se,onClick:de,onDoubleClick:ce,onKeyDown:B?me:void 0,tabIndex:B?0:void 0,onFocus:B?be:void 0,role:M.ariaRole??(B?"group":void 0),"aria-roledescription":"node","aria-describedby":S?void 0:`${kM}-${_}`,"aria-label":M.ariaLabel,...M.domAttributes,children:le.jsx(W8,{value:e,children:le.jsx(D,{id:e,data:M.data,type:N,positionAbsoluteX:A.positionAbsolute.x,positionAbsoluteY:A.positionAbsolute.y,selected:M.selected??!1,selectable:L,draggable:T,deletable:M.deletable??!0,isConnectable:G,sourcePosition:M.sourcePosition,targetPosition:M.targetPosition,dragging:re,dragHandle:M.dragHandle,zIndex:A.z,parentId:M.parentId,...$})})})}var pz=R.memo(gz);const vz=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function jM(e){const{nodesDraggable:t,nodesConnectable:r,nodesFocusable:a,elementsSelectable:s,onError:o}=it(vz,At),c=dz(e.onlyRenderVisibleElements),f=yz();return le.jsx("div",{className:"react-flow__nodes",style:yd,children:c.map(d=>le.jsx(pz,{id:d,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:f,nodesDraggable:t,nodesConnectable:r,nodesFocusable:a,elementsSelectable:s,nodeClickDistance:e.nodeClickDistance,onError:o},d))})}jM.displayName="NodeRenderer";const bz=R.memo(jM);function Sz(e){return it(R.useCallback(r=>{if(!e)return r.edges.map(s=>s.id);const a=[];if(r.width&&r.height)for(const s of r.edges){const o=r.nodeLookup.get(s.source),c=r.nodeLookup.get(s.target);o&&c&&pO({sourceNode:o,targetNode:c,width:r.width,height:r.height,transform:r.transform})&&a.push(s.id)}return a},[e]),At)}const _z=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e}};return le.jsx("polyline",{className:"arrow",style:r,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},xz=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e,fill:e}};return le.jsx("polyline",{className:"arrowclosed",style:r,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},n_={[qf.Arrow]:_z,[qf.ArrowClosed]:xz};function wz(e){const t=Ct();return R.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(n_,e)?n_[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",qr.error009(e)),null)},[e])}const Ez=({id:e,type:t,color:r,width:a=12.5,height:s=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:f="auto-start-reverse"})=>{const d=wz(t);return d?le.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:f,refX:"0",refY:"0",children:le.jsx(d,{color:r,strokeWidth:c})}):null},BM=({defaultColor:e,rfId:t})=>{const r=it(o=>o.edges),a=it(o=>o.defaultEdgeOptions),s=R.useMemo(()=>MO(r,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[r,a,t,e]);return s.length?le.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:le.jsx("defs",{children:s.map(o=>le.jsx(Ez,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};BM.displayName="MarkerDefinitions";var Mz=R.memo(BM);function qM({x:e,y:t,label:r,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:f=2,children:d,className:y,...m}){const[g,v]=R.useState({x:1,y:0,width:0,height:0}),b=Gt(["react-flow__edge-textwrapper",y]),S=R.useRef(null);return R.useEffect(()=>{if(S.current){const _=S.current.getBBox();v({x:_.x,y:_.y,width:_.width,height:_.height})}},[r]),r?le.jsxs("g",{transform:`translate(${e-g.width/2} ${t-g.height/2})`,className:b,visibility:g.width?"visible":"hidden",...m,children:[s&&le.jsx("rect",{width:g.width+2*c[0],x:-c[0],y:-c[1],height:g.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:f,ry:f}),le.jsx("text",{className:"react-flow__edge-text",y:g.height/2,dy:"0.3em",ref:S,style:a,children:r}),d]}):null}qM.displayName="EdgeText";const kz=R.memo(qM);function md({path:e,labelX:t,labelY:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,interactionWidth:y=20,...m}){return le.jsxs(le.Fragment,{children:[le.jsx("path",{...m,d:e,fill:"none",className:Gt(["react-flow__edge-path",m.className])}),y?le.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:y,className:"react-flow__edge-interaction"}):null,a&&xr(t)&&xr(r)?le.jsx(kz,{x:t,y:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d}):null]})}function r_({pos:e,x1:t,y1:r,x2:a,y2:s}){return e===Be.Left||e===Be.Right?[.5*(t+a),r]:[t,.5*(r+s)]}function UM({sourceX:e,sourceY:t,sourcePosition:r=Be.Bottom,targetX:a,targetY:s,targetPosition:o=Be.Top}){const[c,f]=r_({pos:r,x1:e,y1:t,x2:a,y2:s}),[d,y]=r_({pos:o,x1:a,y1:s,x2:e,y2:t}),[m,g,v,b]=uM({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:f,targetControlX:d,targetControlY:y});return[`M${e},${t} C${c},${f} ${d},${y} ${a},${s}`,m,g,v,b]}function HM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:f,label:d,labelStyle:y,labelShowBg:m,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:x,interactionWidth:E})=>{const[k,M,A]=UM({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:f}),z=e.isInternal?void 0:t;return le.jsx(md,{id:z,path:k,labelX:M,labelY:A,label:d,labelStyle:y,labelShowBg:m,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:x,interactionWidth:E})})}const Az=HM({isInternal:!1}),VM=HM({isInternal:!0});Az.displayName="SimpleBezierEdge";VM.displayName="SimpleBezierEdgeInternal";function PM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:m,labelBgBorderRadius:g,style:v,sourcePosition:b=Be.Bottom,targetPosition:S=Be.Top,markerEnd:_,markerStart:x,pathOptions:E,interactionWidth:k})=>{const[M,A,z]=Sp({sourceX:r,sourceY:a,sourcePosition:b,targetX:s,targetY:o,targetPosition:S,borderRadius:E==null?void 0:E.borderRadius,offset:E==null?void 0:E.offset,stepPosition:E==null?void 0:E.stepPosition}),N=e.isInternal?void 0:t;return le.jsx(md,{id:N,path:M,labelX:A,labelY:z,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:m,labelBgBorderRadius:g,style:v,markerEnd:_,markerStart:x,interactionWidth:k})})}const IM=PM({isInternal:!1}),FM=PM({isInternal:!0});IM.displayName="SmoothStepEdge";FM.displayName="SmoothStepEdgeInternal";function $M(e){return R.memo(({id:t,...r})=>{var s;const a=e.isInternal?void 0:t;return le.jsx(IM,{...r,id:a,pathOptions:R.useMemo(()=>{var o;return{borderRadius:0,offset:(o=r.pathOptions)==null?void 0:o.offset}},[(s=r.pathOptions)==null?void 0:s.offset])})})}const Cz=$M({isInternal:!1}),YM=$M({isInternal:!0});Cz.displayName="StepEdge";YM.displayName="StepEdgeInternal";function ZM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:m,labelBgBorderRadius:g,style:v,markerEnd:b,markerStart:S,interactionWidth:_})=>{const[x,E,k]=dM({sourceX:r,sourceY:a,targetX:s,targetY:o}),M=e.isInternal?void 0:t;return le.jsx(md,{id:M,path:x,labelX:E,labelY:k,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:m,labelBgBorderRadius:g,style:v,markerEnd:b,markerStart:S,interactionWidth:_})})}const Tz=ZM({isInternal:!1}),GM=ZM({isInternal:!0});Tz.displayName="StraightEdge";GM.displayName="StraightEdgeInternal";function QM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c=Be.Bottom,targetPosition:f=Be.Top,label:d,labelStyle:y,labelShowBg:m,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:x,pathOptions:E,interactionWidth:k})=>{const[M,A,z]=cM({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:f,curvature:E==null?void 0:E.curvature}),N=e.isInternal?void 0:t;return le.jsx(md,{id:N,path:M,labelX:A,labelY:z,label:d,labelStyle:y,labelShowBg:m,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:x,interactionWidth:k})})}const Rz=QM({isInternal:!1}),XM=QM({isInternal:!0});Rz.displayName="BezierEdge";XM.displayName="BezierEdgeInternal";const i_={default:XM,straight:GM,step:YM,smoothstep:FM,simplebezier:VM},a_={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Nz=(e,t,r)=>r===Be.Left?e-t:r===Be.Right?e+t:e,Oz=(e,t,r)=>r===Be.Top?e-t:r===Be.Bottom?e+t:e,s_="react-flow__edgeupdater";function l_({position:e,centerX:t,centerY:r,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:f}){return le.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:Gt([s_,`${s_}-${f}`]),cx:Nz(t,a,e),cy:Oz(r,a,e),r:a,stroke:"transparent",fill:"transparent"})}function zz({isReconnectable:e,reconnectRadius:t,edge:r,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:f,targetPosition:d,onReconnect:y,onReconnectStart:m,onReconnectEnd:g,setReconnecting:v,setUpdateHover:b}){const S=Ct(),_=(A,z)=>{if(A.button!==0)return;const{autoPanOnConnect:N,domNode:D,connectionMode:T,connectionRadius:L,lib:G,onConnectStart:B,cancelConnection:j,nodeLookup:F,rfId:Q,panBy:re,updateConnection:q}=S.getState(),$=z.type==="target",Z=(O,P)=>{v(!1),g==null||g(O,r,z.type,P)},K=O=>y==null?void 0:y(r,O),W=(O,P)=>{v(!0),m==null||m(A,r,z.type),B==null||B(O,P)};wp.onPointerDown(A.nativeEvent,{autoPanOnConnect:N,connectionMode:T,connectionRadius:L,domNode:D,handleId:z.id,nodeId:z.nodeId,nodeLookup:F,isTarget:$,edgeUpdaterType:z.type,lib:G,flowId:Q,cancelConnection:j,panBy:re,isValidConnection:(...O)=>{var P,se;return((se=(P=S.getState()).isValidConnection)==null?void 0:se.call(P,...O))??!0},onConnect:K,onConnectStart:W,onConnectEnd:(...O)=>{var P,se;return(se=(P=S.getState()).onConnectEnd)==null?void 0:se.call(P,...O)},onReconnectEnd:Z,updateConnection:q,getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,dragThreshold:S.getState().connectionDragThreshold,handleDomNode:A.currentTarget})},x=A=>_(A,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),E=A=>_(A,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),k=()=>b(!0),M=()=>b(!1);return le.jsxs(le.Fragment,{children:[(e===!0||e==="source")&&le.jsx(l_,{position:f,centerX:a,centerY:s,radius:t,onMouseDown:x,onMouseEnter:k,onMouseOut:M,type:"source"}),(e===!0||e==="target")&&le.jsx(l_,{position:d,centerX:o,centerY:c,radius:t,onMouseDown:E,onMouseEnter:k,onMouseOut:M,type:"target"})]})}function Dz({id:e,edgesFocusable:t,edgesReconnectable:r,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:f,onMouseMove:d,onMouseLeave:y,reconnectRadius:m,onReconnect:g,onReconnectStart:v,onReconnectEnd:b,rfId:S,edgeTypes:_,noPanClassName:x,onError:E,disableKeyboardA11y:k}){let M=it(Re=>Re.edgeLookup.get(e));const A=it(Re=>Re.defaultEdgeOptions);M=A?{...A,...M}:M;let z=M.type||"default",N=(_==null?void 0:_[z])||i_[z];N===void 0&&(E==null||E("011",qr.error011(z)),z="default",N=(_==null?void 0:_.default)||i_.default);const D=!!(M.focusable||t&&typeof M.focusable>"u"),T=typeof g<"u"&&(M.reconnectable||r&&typeof M.reconnectable>"u"),L=!!(M.selectable||a&&typeof M.selectable>"u"),G=R.useRef(null),[B,j]=R.useState(!1),[F,Q]=R.useState(!1),re=Ct(),{zIndex:q,sourceX:$,sourceY:Z,targetX:K,targetY:W,sourcePosition:O,targetPosition:P}=it(R.useCallback(Re=>{const ze=Re.nodeLookup.get(M.source),He=Re.nodeLookup.get(M.target);if(!ze||!He)return{zIndex:M.zIndex,...a_};const ut=EO({id:e,sourceNode:ze,targetNode:He,sourceHandle:M.sourceHandle||null,targetHandle:M.targetHandle||null,connectionMode:Re.connectionMode,onError:E});return{zIndex:gO({selected:M.selected,zIndex:M.zIndex,sourceNode:ze,targetNode:He,elevateOnSelect:Re.elevateEdgesOnSelect,zIndexMode:Re.zIndexMode}),...ut||a_}},[M.source,M.target,M.sourceHandle,M.targetHandle,M.selected,M.zIndex]),At),se=R.useMemo(()=>M.markerStart?`url('#${_p(M.markerStart,S)}')`:void 0,[M.markerStart,S]),ce=R.useMemo(()=>M.markerEnd?`url('#${_p(M.markerEnd,S)}')`:void 0,[M.markerEnd,S]);if(M.hidden||$===null||Z===null||K===null||W===null)return null;const de=Re=>{var Ge;const{addSelectedEdges:ze,unselectNodesAndEdges:He,multiSelectionActive:ut}=re.getState();L&&(re.setState({nodesSelectionActive:!1}),M.selected&&ut?(He({nodes:[],edges:[M]}),(Ge=G.current)==null||Ge.blur()):ze([e])),s&&s(Re,M)},me=o?Re=>{o(Re,{...M})}:void 0,be=c?Re=>{c(Re,{...M})}:void 0,ye=f?Re=>{f(Re,{...M})}:void 0,he=d?Re=>{d(Re,{...M})}:void 0,qe=y?Re=>{y(Re,{...M})}:void 0,De=Re=>{var ze;if(!k&&QE.includes(Re.key)&&L){const{unselectNodesAndEdges:He,addSelectedEdges:ut}=re.getState();Re.key==="Escape"?((ze=G.current)==null||ze.blur(),He({edges:[M]})):ut([e])}};return le.jsx("svg",{style:{zIndex:q},children:le.jsxs("g",{className:Gt(["react-flow__edge",`react-flow__edge-${z}`,M.className,x,{selected:M.selected,animated:M.animated,inactive:!L&&!s,updating:B,selectable:L}]),onClick:de,onDoubleClick:me,onContextMenu:be,onMouseEnter:ye,onMouseMove:he,onMouseLeave:qe,onKeyDown:D?De:void 0,tabIndex:D?0:void 0,role:M.ariaRole??(D?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":M.ariaLabel===null?void 0:M.ariaLabel||`Edge from ${M.source} to ${M.target}`,"aria-describedby":D?`${AM}-${S}`:void 0,ref:G,...M.domAttributes,children:[!F&&le.jsx(N,{id:e,source:M.source,target:M.target,type:M.type,selected:M.selected,animated:M.animated,selectable:L,deletable:M.deletable??!0,label:M.label,labelStyle:M.labelStyle,labelShowBg:M.labelShowBg,labelBgStyle:M.labelBgStyle,labelBgPadding:M.labelBgPadding,labelBgBorderRadius:M.labelBgBorderRadius,sourceX:$,sourceY:Z,targetX:K,targetY:W,sourcePosition:O,targetPosition:P,data:M.data,style:M.style,sourceHandleId:M.sourceHandle,targetHandleId:M.targetHandle,markerStart:se,markerEnd:ce,pathOptions:"pathOptions"in M?M.pathOptions:void 0,interactionWidth:M.interactionWidth}),T&&le.jsx(zz,{edge:M,isReconnectable:T,reconnectRadius:m,onReconnect:g,onReconnectStart:v,onReconnectEnd:b,sourceX:$,sourceY:Z,targetX:K,targetY:W,sourcePosition:O,targetPosition:P,setUpdateHover:j,setReconnecting:Q})]})})}var Lz=R.memo(Dz);const jz=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function KM({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:r,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:f,onEdgeMouseMove:d,onEdgeMouseLeave:y,onEdgeClick:m,reconnectRadius:g,onEdgeDoubleClick:v,onReconnectStart:b,onReconnectEnd:S,disableKeyboardA11y:_}){const{edgesFocusable:x,edgesReconnectable:E,elementsSelectable:k,onError:M}=it(jz,At),A=Sz(t);return le.jsxs("div",{className:"react-flow__edges",children:[le.jsx(Mz,{defaultColor:e,rfId:r}),A.map(z=>le.jsx(Lz,{id:z,edgesFocusable:x,edgesReconnectable:E,elementsSelectable:k,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:f,onMouseMove:d,onMouseLeave:y,onClick:m,reconnectRadius:g,onDoubleClick:v,onReconnectStart:b,onReconnectEnd:S,rfId:r,onError:M,edgeTypes:a,disableKeyboardA11y:_},z))]})}KM.displayName="EdgeRenderer";const Bz=R.memo(KM),qz=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Uz({children:e}){const t=it(qz);return le.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function Hz(e){const t=g0(),r=R.useRef(!1);R.useEffect(()=>{!r.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),r.current=!0)},[e,t.viewportInitialized])}const Vz=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function Pz(e){const t=it(Vz),r=Ct();return R.useEffect(()=>{e&&(t==null||t(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function Iz(e){return e.connection.inProgress?{...e.connection,to:Nu(e.connection.to,e.transform)}:{...e.connection}}function Fz(e){return Iz}function $z(e){const t=Fz();return it(t,At)}const Yz=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function Zz({containerStyle:e,style:t,type:r,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:f,inProgress:d}=it(Yz,At);return!(o&&s&&d)?null:le.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:le.jsx("g",{className:Gt(["react-flow__connection",WE(f)]),children:le.jsx(WM,{style:t,type:r,CustomComponent:a,isValid:f})})})}const WM=({style:e,type:t=sa.Bezier,CustomComponent:r,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:f,fromPosition:d,to:y,toNode:m,toHandle:g,toPosition:v,pointer:b}=$z();if(!s)return;if(r)return le.jsx(r,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:f,fromX:o.x,fromY:o.y,toX:y.x,toY:y.y,fromPosition:d,toPosition:v,connectionStatus:WE(a),toNode:m,toHandle:g,pointer:b});let S="";const _={sourceX:o.x,sourceY:o.y,sourcePosition:d,targetX:y.x,targetY:y.y,targetPosition:v};switch(t){case sa.Bezier:[S]=cM(_);break;case sa.SimpleBezier:[S]=UM(_);break;case sa.Step:[S]=Sp({..._,borderRadius:0});break;case sa.SmoothStep:[S]=Sp(_);break;default:[S]=dM(_)}return le.jsx("path",{d:S,fill:"none",className:"react-flow__connection-path",style:e})};WM.displayName="ConnectionLine";const Gz={};function o_(e=Gz){R.useRef(e),Ct(),R.useEffect(()=>{},[e])}function Qz(){Ct(),R.useRef(!1),R.useEffect(()=>{},[])}function JM({nodeTypes:e,edgeTypes:t,onInit:r,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:f,onNodeMouseMove:d,onNodeMouseLeave:y,onNodeContextMenu:m,onSelectionContextMenu:g,onSelectionStart:v,onSelectionEnd:b,connectionLineType:S,connectionLineStyle:_,connectionLineComponent:x,connectionLineContainerStyle:E,selectionKeyCode:k,selectionOnDrag:M,selectionMode:A,multiSelectionKeyCode:z,panActivationKeyCode:N,zoomActivationKeyCode:D,deleteKeyCode:T,onlyRenderVisibleElements:L,elementsSelectable:G,defaultViewport:B,translateExtent:j,minZoom:F,maxZoom:Q,preventScrolling:re,defaultMarkerColor:q,zoomOnScroll:$,zoomOnPinch:Z,panOnScroll:K,panOnScrollSpeed:W,panOnScrollMode:O,zoomOnDoubleClick:P,panOnDrag:se,onPaneClick:ce,onPaneMouseEnter:de,onPaneMouseMove:me,onPaneMouseLeave:be,onPaneScroll:ye,onPaneContextMenu:he,paneClickDistance:qe,nodeClickDistance:De,onEdgeContextMenu:Re,onEdgeMouseEnter:ze,onEdgeMouseMove:He,onEdgeMouseLeave:ut,reconnectRadius:Ge,onReconnect:Dt,onReconnectStart:Dn,onReconnectEnd:yn,noDragClassName:Qn,noWheelClassName:Xn,noPanClassName:H,disableKeyboardA11y:X,nodeExtent:te,rfId:Se,viewport:ge,onViewportChange:pe}){return o_(e),o_(t),Qz(),Hz(r),Pz(ge),le.jsx(cz,{onPaneClick:ce,onPaneMouseEnter:de,onPaneMouseMove:me,onPaneMouseLeave:be,onPaneContextMenu:he,onPaneScroll:ye,paneClickDistance:qe,deleteKeyCode:T,selectionKeyCode:k,selectionOnDrag:M,selectionMode:A,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:z,panActivationKeyCode:N,zoomActivationKeyCode:D,elementsSelectable:G,zoomOnScroll:$,zoomOnPinch:Z,zoomOnDoubleClick:P,panOnScroll:K,panOnScrollSpeed:W,panOnScrollMode:O,panOnDrag:se,defaultViewport:B,translateExtent:j,minZoom:F,maxZoom:Q,onSelectionContextMenu:g,preventScrolling:re,noDragClassName:Qn,noWheelClassName:Xn,noPanClassName:H,disableKeyboardA11y:X,onViewportChange:pe,isControlledViewport:!!ge,children:le.jsxs(Uz,{children:[le.jsx(Bz,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Dt,onReconnectStart:Dn,onReconnectEnd:yn,onlyRenderVisibleElements:L,onEdgeContextMenu:Re,onEdgeMouseEnter:ze,onEdgeMouseMove:He,onEdgeMouseLeave:ut,reconnectRadius:Ge,defaultMarkerColor:q,noPanClassName:H,disableKeyboardA11y:X,rfId:Se}),le.jsx(Zz,{style:_,type:S,component:x,containerStyle:E}),le.jsx("div",{className:"react-flow__edgelabel-renderer"}),le.jsx(bz,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:f,onNodeMouseMove:d,onNodeMouseLeave:y,onNodeContextMenu:m,nodeClickDistance:De,onlyRenderVisibleElements:L,noPanClassName:H,noDragClassName:Qn,disableKeyboardA11y:X,nodeExtent:te,rfId:Se}),le.jsx("div",{className:"react-flow__viewport-portal"})]})})}JM.displayName="GraphView";const Xz=R.memo(JM),u_=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:f,minZoom:d=.5,maxZoom:y=2,nodeOrigin:m,nodeExtent:g,zIndexMode:v="basic"}={})=>{const b=new Map,S=new Map,_=new Map,x=new Map,E=a??t??[],k=r??e??[],M=m??[0,0],A=g??ou;mM(_,x,E);const{nodesInitialized:z}=xp(k,b,S,{nodeOrigin:M,nodeExtent:A,zIndexMode:v});let N=[0,0,1];if(c&&s&&o){const D=Tu(b,{filter:B=>!!((B.width||B.initialWidth)&&(B.height||B.initialHeight))}),{x:T,y:L,zoom:G}=u0(D,s,o,d,y,(f==null?void 0:f.padding)??.1);N=[T,L,G]}return{rfId:"1",width:s??0,height:o??0,transform:N,nodes:k,nodesInitialized:z,nodeLookup:b,parentLookup:S,edges:E,edgeLookup:x,connectionLookup:_,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:d,maxZoom:y,translateExtent:ou,nodeExtent:A,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ll.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:M,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:c??!1,fitViewOptions:f,fitViewResolver:null,connection:{...KE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:cO,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:XE,zIndexMode:v,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Kz=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:f,minZoom:d,maxZoom:y,nodeOrigin:m,nodeExtent:g,zIndexMode:v})=>y8((b,S)=>{async function _(){const{nodeLookup:x,panZoom:E,fitViewOptions:k,fitViewResolver:M,width:A,height:z,minZoom:N,maxZoom:D}=S();E&&(await oO({nodes:x,width:A,height:z,panZoom:E,minZoom:N,maxZoom:D},k),M==null||M.resolve(!0),b({fitViewResolver:null}))}return{...u_({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:f,minZoom:d,maxZoom:y,nodeOrigin:m,nodeExtent:g,defaultNodes:r,defaultEdges:a,zIndexMode:v}),setNodes:x=>{const{nodeLookup:E,parentLookup:k,nodeOrigin:M,elevateNodesOnSelect:A,fitViewQueued:z,zIndexMode:N,nodesSelectionActive:D}=S(),{nodesInitialized:T,hasSelectedNodes:L}=xp(x,E,k,{nodeOrigin:M,nodeExtent:g,elevateNodesOnSelect:A,checkEquality:!0,zIndexMode:N}),G=D&&L;z&&T?(_(),b({nodes:x,nodesInitialized:T,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:G})):b({nodes:x,nodesInitialized:T,nodesSelectionActive:G})},setEdges:x=>{const{connectionLookup:E,edgeLookup:k}=S();mM(E,k,x),b({edges:x})},setDefaultNodesAndEdges:(x,E)=>{if(x){const{setNodes:k}=S();k(x),b({hasDefaultNodes:!0})}if(E){const{setEdges:k}=S();k(E),b({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:E,nodeLookup:k,parentLookup:M,domNode:A,nodeOrigin:z,nodeExtent:N,debug:D,fitViewQueued:T,zIndexMode:L}=S(),{changes:G,updatedInternals:B}=OO(x,k,M,A,z,N,L);B&&(CO(k,M,{nodeOrigin:z,nodeExtent:N,zIndexMode:L}),T?(_(),b({fitViewQueued:!1,fitViewOptions:void 0})):b({}),(G==null?void 0:G.length)>0&&(D&&console.log("React Flow: trigger node changes",G),E==null||E(G)))},updateNodePositions:(x,E=!1)=>{const k=[];let M=[];const{nodeLookup:A,triggerNodeChanges:z,connection:N,updateConnection:D,onNodesChangeMiddlewareMap:T}=S();for(const[L,G]of x){const B=A.get(L),j=!!(B!=null&&B.expandParent&&(B!=null&&B.parentId)&&(G!=null&&G.position)),F={id:L,type:"position",position:j?{x:Math.max(0,G.position.x),y:Math.max(0,G.position.y)}:G.position,dragging:E};if(B&&N.inProgress&&N.fromNode.id===B.id){const Q=hs(B,N.fromHandle,Be.Left,!0);D({...N,from:Q})}j&&B.parentId&&k.push({id:L,parentId:B.parentId,rect:{...G.internals.positionAbsolute,width:G.measured.width??0,height:G.measured.height??0}}),M.push(F)}if(k.length>0){const{parentLookup:L,nodeOrigin:G}=S(),B=m0(k,A,L,G);M.push(...B)}for(const L of T.values())M=L(M);z(M)},triggerNodeChanges:x=>{const{onNodesChange:E,setNodes:k,nodes:M,hasDefaultNodes:A,debug:z}=S();if(x!=null&&x.length){if(A){const N=L8(x,M);k(N)}z&&console.log("React Flow: trigger node changes",x),E==null||E(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:E,setEdges:k,edges:M,hasDefaultEdges:A,debug:z}=S();if(x!=null&&x.length){if(A){const N=j8(x,M);k(N)}z&&console.log("React Flow: trigger edge changes",x),E==null||E(x)}},addSelectedNodes:x=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:M,triggerNodeChanges:A,triggerEdgeChanges:z}=S();if(E){const N=x.map(D=>$a(D,!0));A(N);return}A(gl(M,new Set([...x]),!0)),z(gl(k))},addSelectedEdges:x=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:M,triggerNodeChanges:A,triggerEdgeChanges:z}=S();if(E){const N=x.map(D=>$a(D,!0));z(N);return}z(gl(k,new Set([...x]))),A(gl(M,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:E}={})=>{const{edges:k,nodes:M,nodeLookup:A,triggerNodeChanges:z,triggerEdgeChanges:N}=S(),D=x||M,T=E||k,L=[];for(const B of D){if(!B.selected)continue;const j=A.get(B.id);j&&(j.selected=!1),L.push($a(B.id,!1))}const G=[];for(const B of T)B.selected&&G.push($a(B.id,!1));z(L),N(G)},setMinZoom:x=>{const{panZoom:E,maxZoom:k}=S();E==null||E.setScaleExtent([x,k]),b({minZoom:x})},setMaxZoom:x=>{const{panZoom:E,minZoom:k}=S();E==null||E.setScaleExtent([k,x]),b({maxZoom:x})},setTranslateExtent:x=>{var E;(E=S().panZoom)==null||E.setTranslateExtent(x),b({translateExtent:x})},resetSelectedElements:()=>{const{edges:x,nodes:E,triggerNodeChanges:k,triggerEdgeChanges:M,elementsSelectable:A}=S();if(!A)return;const z=E.reduce((D,T)=>T.selected?[...D,$a(T.id,!1)]:D,[]),N=x.reduce((D,T)=>T.selected?[...D,$a(T.id,!1)]:D,[]);k(z),M(N)},setNodeExtent:x=>{const{nodes:E,nodeLookup:k,parentLookup:M,nodeOrigin:A,elevateNodesOnSelect:z,nodeExtent:N,zIndexMode:D}=S();x[0][0]===N[0][0]&&x[0][1]===N[0][1]&&x[1][0]===N[1][0]&&x[1][1]===N[1][1]||(xp(E,k,M,{nodeOrigin:A,nodeExtent:x,elevateNodesOnSelect:z,checkEquality:!1,zIndexMode:D}),b({nodeExtent:x}))},panBy:x=>{const{transform:E,width:k,height:M,panZoom:A,translateExtent:z}=S();return zO({delta:x,panZoom:A,transform:E,translateExtent:z,width:k,height:M})},setCenter:async(x,E,k)=>{const{width:M,height:A,maxZoom:z,panZoom:N}=S();if(!N)return Promise.resolve(!1);const D=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:z;return await N.setViewport({x:M/2-x*D,y:A/2-E*D,zoom:D},{duration:k==null?void 0:k.duration,ease:k==null?void 0:k.ease,interpolate:k==null?void 0:k.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{b({connection:{...KE}})},updateConnection:x=>{b({connection:x})},reset:()=>b({...u_()})}},Object.is);function Wz({initialNodes:e,initialEdges:t,defaultNodes:r,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:f,initialFitViewOptions:d,fitView:y,nodeOrigin:m,nodeExtent:g,zIndexMode:v,children:b}){const[S]=R.useState(()=>Kz({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:y,minZoom:c,maxZoom:f,fitViewOptions:d,nodeOrigin:m,nodeExtent:g,zIndexMode:v}));return le.jsx(m8,{value:S,children:le.jsx(U8,{children:b})})}function Jz({children:e,nodes:t,edges:r,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:f,fitViewOptions:d,minZoom:y,maxZoom:m,nodeOrigin:g,nodeExtent:v,zIndexMode:b}){return R.useContext(dd)?le.jsx(le.Fragment,{children:e}):le.jsx(Wz,{initialNodes:t,initialEdges:r,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:f,initialFitViewOptions:d,initialMinZoom:y,initialMaxZoom:m,nodeOrigin:g,nodeExtent:v,zIndexMode:b,children:e})}const e9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function t9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:f,onEdgeClick:d,onInit:y,onMove:m,onMoveStart:g,onMoveEnd:v,onConnect:b,onConnectStart:S,onConnectEnd:_,onClickConnectStart:x,onClickConnectEnd:E,onNodeMouseEnter:k,onNodeMouseMove:M,onNodeMouseLeave:A,onNodeContextMenu:z,onNodeDoubleClick:N,onNodeDragStart:D,onNodeDrag:T,onNodeDragStop:L,onNodesDelete:G,onEdgesDelete:B,onDelete:j,onSelectionChange:F,onSelectionDragStart:Q,onSelectionDrag:re,onSelectionDragStop:q,onSelectionContextMenu:$,onSelectionStart:Z,onSelectionEnd:K,onBeforeDelete:W,connectionMode:O,connectionLineType:P=sa.Bezier,connectionLineStyle:se,connectionLineComponent:ce,connectionLineContainerStyle:de,deleteKeyCode:me="Backspace",selectionKeyCode:be="Shift",selectionOnDrag:ye=!1,selectionMode:he=uu.Full,panActivationKeyCode:qe="Space",multiSelectionKeyCode:De=fu()?"Meta":"Control",zoomActivationKeyCode:Re=fu()?"Meta":"Control",snapToGrid:ze,snapGrid:He,onlyRenderVisibleElements:ut=!1,selectNodesOnDrag:Ge,nodesDraggable:Dt,autoPanOnNodeFocus:Dn,nodesConnectable:yn,nodesFocusable:Qn,nodeOrigin:Xn=CM,edgesFocusable:H,edgesReconnectable:X,elementsSelectable:te=!0,defaultViewport:Se=C8,minZoom:ge=.5,maxZoom:pe=2,translateExtent:we=ou,preventScrolling:Ve=!0,nodeExtent:Je,defaultMarkerColor:rn="#b1b1b7",zoomOnScroll:_n=!0,zoomOnPinch:Rt=!0,panOnScroll:an=!1,panOnScrollSpeed:xn=.5,panOnScrollMode:Qt=as.Free,zoomOnDoubleClick:Xl=!0,panOnDrag:_s=!0,onPaneClick:Kl,onPaneMouseEnter:Vr,onPaneMouseMove:xs,onPaneMouseLeave:ws,onPaneScroll:Pr,onPaneContextMenu:Es,paneClickDistance:wa=1,nodeClickDistance:Td=0,children:Lu,onReconnect:Wl,onReconnectStart:Ea,onReconnectEnd:Rd,onEdgeContextMenu:ju,onEdgeDoubleClick:Bu,onEdgeMouseEnter:qu,onEdgeMouseMove:Jl,onEdgeMouseLeave:eo,reconnectRadius:Uu=10,onNodesChange:Hu,onEdgesChange:Mr,noDragClassName:Xt="nodrag",noWheelClassName:fn="nowheel",noPanClassName:Ir="nopan",fitView:Ms,fitViewOptions:Vu,connectOnClick:Nd,attributionPosition:Pu,proOptions:Ma,defaultEdgeOptions:to,elevateNodesOnSelect:wi=!0,elevateEdgesOnSelect:Ei=!1,disableKeyboardA11y:Mi=!1,autoPanOnConnect:ki,autoPanOnNodeDrag:Ht,autoPanSpeed:Iu,connectionRadius:Fu,isValidConnection:Fr,onError:Ai,style:Od,id:no,nodeDragThreshold:$u,connectionDragThreshold:zd,viewport:ks,onViewportChange:As,width:dr,height:wn,colorMode:Yu="light",debug:Dd,onScroll:Ci,ariaLabelConfig:Zu,zIndexMode:ka="basic",...Ld},En){const Aa=no||"1",Gu=O8(Yu),ro=R.useCallback($r=>{$r.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Ci==null||Ci($r)},[Ci]);return le.jsx("div",{"data-testid":"rf__wrapper",...Ld,onScroll:ro,style:{...Od,...e9},ref:En,className:Gt(["react-flow",s,Gu]),id:no,role:"application",children:le.jsxs(Jz,{nodes:e,edges:t,width:dr,height:wn,fitView:Ms,fitViewOptions:Vu,minZoom:ge,maxZoom:pe,nodeOrigin:Xn,nodeExtent:Je,zIndexMode:ka,children:[le.jsx(N8,{nodes:e,edges:t,defaultNodes:r,defaultEdges:a,onConnect:b,onConnectStart:S,onConnectEnd:_,onClickConnectStart:x,onClickConnectEnd:E,nodesDraggable:Dt,autoPanOnNodeFocus:Dn,nodesConnectable:yn,nodesFocusable:Qn,edgesFocusable:H,edgesReconnectable:X,elementsSelectable:te,elevateNodesOnSelect:wi,elevateEdgesOnSelect:Ei,minZoom:ge,maxZoom:pe,nodeExtent:Je,onNodesChange:Hu,onEdgesChange:Mr,snapToGrid:ze,snapGrid:He,connectionMode:O,translateExtent:we,connectOnClick:Nd,defaultEdgeOptions:to,fitView:Ms,fitViewOptions:Vu,onNodesDelete:G,onEdgesDelete:B,onDelete:j,onNodeDragStart:D,onNodeDrag:T,onNodeDragStop:L,onSelectionDrag:re,onSelectionDragStart:Q,onSelectionDragStop:q,onMove:m,onMoveStart:g,onMoveEnd:v,noPanClassName:Ir,nodeOrigin:Xn,rfId:Aa,autoPanOnConnect:ki,autoPanOnNodeDrag:Ht,autoPanSpeed:Iu,onError:Ai,connectionRadius:Fu,isValidConnection:Fr,selectNodesOnDrag:Ge,nodeDragThreshold:$u,connectionDragThreshold:zd,onBeforeDelete:W,debug:Dd,ariaLabelConfig:Zu,zIndexMode:ka}),le.jsx(Xz,{onInit:y,onNodeClick:f,onEdgeClick:d,onNodeMouseEnter:k,onNodeMouseMove:M,onNodeMouseLeave:A,onNodeContextMenu:z,onNodeDoubleClick:N,nodeTypes:o,edgeTypes:c,connectionLineType:P,connectionLineStyle:se,connectionLineComponent:ce,connectionLineContainerStyle:de,selectionKeyCode:be,selectionOnDrag:ye,selectionMode:he,deleteKeyCode:me,multiSelectionKeyCode:De,panActivationKeyCode:qe,zoomActivationKeyCode:Re,onlyRenderVisibleElements:ut,defaultViewport:Se,translateExtent:we,minZoom:ge,maxZoom:pe,preventScrolling:Ve,zoomOnScroll:_n,zoomOnPinch:Rt,zoomOnDoubleClick:Xl,panOnScroll:an,panOnScrollSpeed:xn,panOnScrollMode:Qt,panOnDrag:_s,onPaneClick:Kl,onPaneMouseEnter:Vr,onPaneMouseMove:xs,onPaneMouseLeave:ws,onPaneScroll:Pr,onPaneContextMenu:Es,paneClickDistance:wa,nodeClickDistance:Td,onSelectionContextMenu:$,onSelectionStart:Z,onSelectionEnd:K,onReconnect:Wl,onReconnectStart:Ea,onReconnectEnd:Rd,onEdgeContextMenu:ju,onEdgeDoubleClick:Bu,onEdgeMouseEnter:qu,onEdgeMouseMove:Jl,onEdgeMouseLeave:eo,reconnectRadius:Uu,defaultMarkerColor:rn,noDragClassName:Xt,noWheelClassName:fn,noPanClassName:Ir,rfId:Aa,disableKeyboardA11y:Mi,nodeExtent:Je,viewport:ks,onViewportChange:As}),le.jsx(A8,{onSelectionChange:F}),Lu,le.jsx(x8,{proOptions:Ma,position:Pu}),le.jsx(_8,{rfId:Aa,disableKeyboardA11y:Mi})]})})}var _U=RM(t9);function n9({dimensions:e,lineWidth:t,variant:r,className:a}){return le.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Gt(["react-flow__background-pattern",r,a])})}function r9({radius:e,className:t}){return le.jsx("circle",{cx:e,cy:e,r:e,className:Gt(["react-flow__background-pattern","dots",t])})}var ba;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ba||(ba={}));const i9={[ba.Dots]:1,[ba.Lines]:1,[ba.Cross]:6},a9=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function e3({id:e,variant:t=ba.Dots,gap:r=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:f,style:d,className:y,patternClassName:m}){const g=R.useRef(null),{transform:v,patternId:b}=it(a9,At),S=a||i9[t],_=t===ba.Dots,x=t===ba.Cross,E=Array.isArray(r)?r:[r,r],k=[E[0]*v[2]||1,E[1]*v[2]||1],M=S*v[2],A=Array.isArray(o)?o:[o,o],z=x?[M,M]:k,N=[A[0]*v[2]||1+z[0]/2,A[1]*v[2]||1+z[1]/2],D=`${b}${e||""}`;return le.jsxs("svg",{className:Gt(["react-flow__background",y]),style:{...d,...yd,"--xy-background-color-props":f,"--xy-background-pattern-color-props":c},ref:g,"data-testid":"rf__background",children:[le.jsx("pattern",{id:D,x:v[0]%k[0],y:v[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${N[0]},-${N[1]})`,children:_?le.jsx(r9,{radius:M/2,className:m}):le.jsx(n9,{dimensions:z,lineWidth:s,variant:t,className:m})}),le.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}e3.displayName="Background";const xU=R.memo(e3);function s9(){return le.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:le.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function l9(){return le.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:le.jsx("path",{d:"M0 0h32v4.2H0z"})})}function o9(){return le.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:le.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function u9(){return le.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:le.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function c9(){return le.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:le.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function mf({children:e,className:t,...r}){return le.jsx("button",{type:"button",className:Gt(["react-flow__controls-button",t]),...r,children:e})}const f9=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function t3({style:e,showZoom:t=!0,showFitView:r=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:f,onInteractiveChange:d,className:y,children:m,position:g="bottom-left",orientation:v="vertical","aria-label":b}){const S=Ct(),{isInteractive:_,minZoomReached:x,maxZoomReached:E,ariaLabelConfig:k}=it(f9,At),{zoomIn:M,zoomOut:A,fitView:z}=g0(),N=()=>{M(),o==null||o()},D=()=>{A(),c==null||c()},T=()=>{z(s),f==null||f()},L=()=>{S.setState({nodesDraggable:!_,nodesConnectable:!_,elementsSelectable:!_}),d==null||d(!_)},G=v==="horizontal"?"horizontal":"vertical";return le.jsxs(hd,{className:Gt(["react-flow__controls",G,y]),position:g,style:e,"data-testid":"rf__controls","aria-label":b??k["controls.ariaLabel"],children:[t&&le.jsxs(le.Fragment,{children:[le.jsx(mf,{onClick:N,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:E,children:le.jsx(s9,{})}),le.jsx(mf,{onClick:D,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:x,children:le.jsx(l9,{})})]}),r&&le.jsx(mf,{className:"react-flow__controls-fitview",onClick:T,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:le.jsx(o9,{})}),a&&le.jsx(mf,{className:"react-flow__controls-interactive",onClick:L,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:_?le.jsx(c9,{}):le.jsx(u9,{})}),m]})}t3.displayName="Controls";const wU=R.memo(t3);function d9({id:e,x:t,y:r,width:a,height:s,style:o,color:c,strokeColor:f,strokeWidth:d,className:y,borderRadius:m,shapeRendering:g,selected:v,onClick:b}){const{background:S,backgroundColor:_}=o||{},x=c||S||_;return le.jsx("rect",{className:Gt(["react-flow__minimap-node",{selected:v},y]),x:t,y:r,rx:m,ry:m,width:a,height:s,style:{fill:x,stroke:f,strokeWidth:d},shapeRendering:g,onClick:b?E=>b(E,e):void 0})}const h9=R.memo(d9),y9=e=>e.nodes.map(t=>t.id),fm=e=>e instanceof Function?e:()=>e;function m9({nodeStrokeColor:e,nodeColor:t,nodeClassName:r="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=h9,onClick:c}){const f=it(y9,At),d=fm(t),y=fm(e),m=fm(r),g=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return le.jsx(le.Fragment,{children:f.map(v=>le.jsx(p9,{id:v,nodeColorFunc:d,nodeStrokeColorFunc:y,nodeClassNameFunc:m,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:g},v))})}function g9({id:e,nodeColorFunc:t,nodeStrokeColorFunc:r,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:f,onClick:d}){const{node:y,x:m,y:g,width:v,height:b}=it(S=>{const _=S.nodeLookup.get(e);if(!_)return{node:void 0,x:0,y:0,width:0,height:0};const x=_.internals.userNode,{x:E,y:k}=_.internals.positionAbsolute,{width:M,height:A}=xi(x);return{node:x,x:E,y:k,width:M,height:A}},At);return!y||y.hidden||!iM(y)?null:le.jsx(f,{x:m,y:g,width:v,height:b,style:y.style,selected:!!y.selected,className:a(y),color:t(y),borderRadius:s,strokeColor:r(y),strokeWidth:o,shapeRendering:c,onClick:d,id:y.id})}const p9=R.memo(g9);var v9=R.memo(m9);const b9=200,S9=150,_9=e=>!e.hidden,x9=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?rM(Tu(e.nodeLookup,{filter:_9}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},w9="react-flow__minimap-desc";function n3({style:e,className:t,nodeStrokeColor:r,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:f,bgColor:d,maskColor:y,maskStrokeColor:m,maskStrokeWidth:g,position:v="bottom-right",onClick:b,onNodeClick:S,pannable:_=!1,zoomable:x=!1,ariaLabel:E,inversePan:k,zoomStep:M=1,offsetScale:A=5}){const z=Ct(),N=R.useRef(null),{boundingRect:D,viewBB:T,rfId:L,panZoom:G,translateExtent:B,flowWidth:j,flowHeight:F,ariaLabelConfig:Q}=it(x9,At),re=(e==null?void 0:e.width)??b9,q=(e==null?void 0:e.height)??S9,$=D.width/re,Z=D.height/q,K=Math.max($,Z),W=K*re,O=K*q,P=A*K,se=D.x-(W-D.width)/2-P,ce=D.y-(O-D.height)/2-P,de=W+P*2,me=O+P*2,be=`${w9}-${L}`,ye=R.useRef(0),he=R.useRef();ye.current=K,R.useEffect(()=>{if(N.current&&G)return he.current=PO({domNode:N.current,panZoom:G,getTransform:()=>z.getState().transform,getViewScale:()=>ye.current}),()=>{var ze;(ze=he.current)==null||ze.destroy()}},[G]),R.useEffect(()=>{var ze;(ze=he.current)==null||ze.update({translateExtent:B,width:j,height:F,inversePan:k,pannable:_,zoomStep:M,zoomable:x})},[_,x,k,M,B,j,F]);const qe=b?ze=>{var Ge;const[He,ut]=((Ge=he.current)==null?void 0:Ge.pointer(ze))||[0,0];b(ze,{x:He,y:ut})}:void 0,De=S?R.useCallback((ze,He)=>{const ut=z.getState().nodeLookup.get(He).internals.userNode;S(ze,ut)},[]):void 0,Re=E??Q["minimap.ariaLabel"];return le.jsx(hd,{position:v,style:{...e,"--xy-minimap-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-background-color-props":typeof y=="string"?y:void 0,"--xy-minimap-mask-stroke-color-props":typeof m=="string"?m:void 0,"--xy-minimap-mask-stroke-width-props":typeof g=="number"?g*K:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:Gt(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:le.jsxs("svg",{width:re,height:q,viewBox:`${se} ${ce} ${de} ${me}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":be,ref:N,onClick:qe,children:[Re&&le.jsx("title",{id:be,children:Re}),le.jsx(v9,{onClick:De,nodeColor:a,nodeStrokeColor:r,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:f}),le.jsx("path",{className:"react-flow__minimap-mask",d:`M${se-P},${ce-P}h${de+P*2}v${me+P*2}h${-de-P*2}z
797
+ M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}n3.displayName="MiniMap";const EU=R.memo(n3),E9=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,M9={[Ul.Line]:"right",[Ul.Handle]:"bottom-right"};function k9({nodeId:e,position:t,variant:r=Ul.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:f=10,minHeight:d=10,maxWidth:y=Number.MAX_VALUE,maxHeight:m=Number.MAX_VALUE,keepAspectRatio:g=!1,resizeDirection:v,autoScale:b=!0,shouldResize:S,onResizeStart:_,onResize:x,onResizeEnd:E}){const k=DM(),M=typeof e=="string"?e:k,A=Ct(),z=R.useRef(null),N=r===Ul.Handle,D=it(R.useCallback(E9(N&&b),[N,b]),At),T=R.useRef(null),L=t??M9[r];R.useEffect(()=>{if(!(!z.current||!M))return T.current||(T.current=n8({domNode:z.current,nodeId:M,getStoreItems:()=>{const{nodeLookup:B,transform:j,snapGrid:F,snapToGrid:Q,nodeOrigin:re,domNode:q}=A.getState();return{nodeLookup:B,transform:j,snapGrid:F,snapToGrid:Q,nodeOrigin:re,paneDomNode:q}},onChange:(B,j)=>{const{triggerNodeChanges:F,nodeLookup:Q,parentLookup:re,nodeOrigin:q}=A.getState(),$=[],Z={x:B.x,y:B.y},K=Q.get(M);if(K&&K.expandParent&&K.parentId){const W=K.origin??q,O=B.width??K.measured.width??0,P=B.height??K.measured.height??0,se={id:K.id,parentId:K.parentId,rect:{width:O,height:P,...aM({x:B.x??K.position.x,y:B.y??K.position.y},{width:O,height:P},K.parentId,Q,W)}},ce=m0([se],Q,re,q);$.push(...ce),Z.x=B.x?Math.max(W[0]*O,B.x):void 0,Z.y=B.y?Math.max(W[1]*P,B.y):void 0}if(Z.x!==void 0&&Z.y!==void 0){const W={id:M,type:"position",position:{...Z}};$.push(W)}if(B.width!==void 0&&B.height!==void 0){const O={id:M,type:"dimensions",resizing:!0,setAttributes:v?v==="horizontal"?"width":"height":!0,dimensions:{width:B.width,height:B.height}};$.push(O)}for(const W of j){const O={...W,type:"position"};$.push(O)}F($)},onEnd:({width:B,height:j})=>{const F={id:M,type:"dimensions",resizing:!1,dimensions:{width:B,height:j}};A.getState().triggerNodeChanges([F])}})),T.current.update({controlPosition:L,boundaries:{minWidth:f,minHeight:d,maxWidth:y,maxHeight:m},keepAspectRatio:g,resizeDirection:v,onResizeStart:_,onResize:x,onResizeEnd:E,shouldResize:S}),()=>{var B;(B=T.current)==null||B.destroy()}},[L,f,d,y,m,g,_,x,E,S]);const G=L.split("-");return le.jsx("div",{className:Gt(["react-flow__resize-control","nodrag",...G,r,a]),ref:z,style:{...s,scale:D,...c&&{[N?"backgroundColor":"borderColor"]:c}},children:o})}R.memo(k9);var dm={},hm={},c_;function A9(){return c_||(c_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(hm)),hm}var ym={},f_;function r3(){return f_||(f_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(ym)),ym}var mm={},d_;function v0(){return d_||(d_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var a;return typeof r=="string"||typeof r=="symbol"?r:Object.is((a=r==null?void 0:r.valueOf)==null?void 0:a.call(r),-0)?"-0":String(r)}e.toKey=t})(mm)),mm}var gm={},pm={},h_;function C9(){return h_||(h_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const a=String(r);return a==="0"&&Object.is(Number(r),-0)?"-0":a}e.toString=t})(pm)),pm}var y_;function b0(){return y_||(y_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=C9(),r=v0();function a(s){if(Array.isArray(s))return s.map(r.toKey);if(typeof s=="symbol")return[s];s=t.toString(s);const o=[],c=s.length;if(c===0)return o;let f=0,d="",y="",m=!1;for(s.charCodeAt(0)===46&&(o.push(""),f++);f<c;){const g=s[f];y?g==="\\"&&f+1<c?(f++,d+=s[f]):g===y?y="":d+=g:m?g==='"'||g==="'"?y=g:g==="]"?(m=!1,o.push(d),d=""):d+=g:g==="["?(m=!0,d&&(o.push(d),d="")):g==="."?d&&(o.push(d),d=""):d+=g,f++}return d&&o.push(d),o}e.toPath=a})(gm)),gm}var m_;function S0(){return m_||(m_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=A9(),r=r3(),a=v0(),s=b0();function o(f,d,y){if(f==null)return y;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return y;const m=f[d];return m===void 0?r.isDeepKey(d)?o(f,s.toPath(d),y):y:m}case"number":case"symbol":{typeof d=="number"&&(d=a.toKey(d));const m=f[d];return m===void 0?y:m}default:{if(Array.isArray(d))return c(f,d,y);if(Object.is(d==null?void 0:d.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return y;const m=f[d];return m===void 0?y:m}}}function c(f,d,y){if(d.length===0)return y;let m=f;for(let g=0;g<d.length;g++){if(m==null||t.isUnsafeProperty(d[g]))return y;m=m[d[g]]}return m===void 0?y:m}e.get=o})(dm)),dm}var vm,g_;function T9(){return g_||(g_=1,vm=S0().get),vm}var R9=T9();const MU=ur(R9);var bm={},Sm={},p_;function N9(){return p_||(p_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a){const s=new Map;for(let o=0;o<r.length;o++){const c=r[o],f=a(c,o,r);s.has(f)||s.set(f,c)}return Array.from(s.values())}e.uniqBy=t})(Sm)),Sm}var _m={},v_;function O9(){return v_||(v_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a){return function(...s){return r.apply(this,s.slice(0,a))}}e.ary=t})(_m)),_m}var xm={},b_;function i3(){return b_||(b_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(xm)),xm}var wm={},Em={},Mm={},S_;function z9(){return S_||(S_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Mm)),Mm}var __;function a3(){return __||(__=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z9();function r(a){return a!=null&&typeof a!="function"&&t.isLength(a.length)}e.isArrayLike=r})(Em)),Em}var km={},x_;function D9(){return x_||(x_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(km)),km}var w_;function L9(){return w_||(w_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=a3(),r=D9();function a(s){return r.isObjectLike(s)&&t.isArrayLike(s)}e.isArrayLikeObject=a})(wm)),wm}var Am={},Cm={},E_;function j9(){return E_||(E_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=S0();function r(a){return function(s){return t.get(s,a)}}e.property=r})(Cm)),Cm}var Tm={},Rm={},Nm={},Om={},M_;function s3(){return M_||(M_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Om)),Om}var zm={},k_;function l3(){return k_||(k_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(zm)),zm}var Dm={},A_;function o3(){return A_||(A_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a){return r===a||Number.isNaN(r)&&Number.isNaN(a)}e.isEqualsSameValueZero=t})(Dm)),Dm}var C_;function B9(){return C_||(C_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s3(),r=l3(),a=o3();function s(m,g,v){return typeof v!="function"?s(m,g,()=>{}):o(m,g,function b(S,_,x,E,k,M){const A=v(S,_,x,E,k,M);return A!==void 0?!!A:o(S,_,b,M)},new Map)}function o(m,g,v,b){if(g===m)return!0;switch(typeof g){case"object":return c(m,g,v,b);case"function":return Object.keys(g).length>0?o(m,{...g},v,b):a.isEqualsSameValueZero(m,g);default:return t.isObject(m)?typeof g=="string"?g==="":!0:a.isEqualsSameValueZero(m,g)}}function c(m,g,v,b){if(g==null)return!0;if(Array.isArray(g))return d(m,g,v,b);if(g instanceof Map)return f(m,g,v,b);if(g instanceof Set)return y(m,g,v,b);const S=Object.keys(g);if(m==null||r.isPrimitive(m))return S.length===0;if(S.length===0)return!0;if(b!=null&&b.has(g))return b.get(g)===m;b==null||b.set(g,m);try{for(let _=0;_<S.length;_++){const x=S[_];if(!r.isPrimitive(m)&&!(x in m)||g[x]===void 0&&m[x]!==void 0||g[x]===null&&m[x]!==null||!v(m[x],g[x],x,m,g,b))return!1}return!0}finally{b==null||b.delete(g)}}function f(m,g,v,b){if(g.size===0)return!0;if(!(m instanceof Map))return!1;for(const[S,_]of g.entries()){const x=m.get(S);if(v(x,_,S,m,g,b)===!1)return!1}return!0}function d(m,g,v,b){if(g.length===0)return!0;if(!Array.isArray(m))return!1;const S=new Set;for(let _=0;_<g.length;_++){const x=g[_];let E=!1;for(let k=0;k<m.length;k++){if(S.has(k))continue;const M=m[k];let A=!1;if(v(M,x,_,m,g,b)&&(A=!0),A){S.add(k),E=!0;break}}if(!E)return!1}return!0}function y(m,g,v,b){return g.size===0?!0:m instanceof Set?d([...m],[...g],v,b):!1}e.isMatchWith=s,e.isSetMatch=y})(Nm)),Nm}var T_;function u3(){return T_||(T_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=B9();function r(a,s){return t.isMatchWith(a,s,()=>{})}e.isMatch=r})(Rm)),Rm}var Lm={},jm={},Bm={},R_;function q9(){return R_||(R_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(a=>Object.prototype.propertyIsEnumerable.call(r,a))}e.getSymbols=t})(Bm)),Bm}var qm={},N_;function _0(){return N_||(N_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(qm)),qm}var Um={},O_;function c3(){return O_||(O_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",a="[object Number]",s="[object Boolean]",o="[object Arguments]",c="[object Symbol]",f="[object Date]",d="[object Map]",y="[object Set]",m="[object Array]",g="[object Function]",v="[object ArrayBuffer]",b="[object Object]",S="[object Error]",_="[object DataView]",x="[object Uint8Array]",E="[object Uint8ClampedArray]",k="[object Uint16Array]",M="[object Uint32Array]",A="[object BigUint64Array]",z="[object Int8Array]",N="[object Int16Array]",D="[object Int32Array]",T="[object BigInt64Array]",L="[object Float32Array]",G="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=v,e.arrayTag=m,e.bigInt64ArrayTag=T,e.bigUint64ArrayTag=A,e.booleanTag=s,e.dataViewTag=_,e.dateTag=f,e.errorTag=S,e.float32ArrayTag=L,e.float64ArrayTag=G,e.functionTag=g,e.int16ArrayTag=N,e.int32ArrayTag=D,e.int8ArrayTag=z,e.mapTag=d,e.numberTag=a,e.objectTag=b,e.regexpTag=t,e.setTag=y,e.stringTag=r,e.symbolTag=c,e.uint16ArrayTag=k,e.uint32ArrayTag=M,e.uint8ArrayTag=x,e.uint8ClampedArrayTag=E})(Um)),Um}var Hm={},z_;function U9(){return z_||(z_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(Hm)),Hm}var D_;function f3(){return D_||(D_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q9(),r=_0(),a=c3(),s=l3(),o=U9();function c(m,g){return f(m,void 0,m,new Map,g)}function f(m,g,v,b=new Map,S=void 0){const _=S==null?void 0:S(m,g,v,b);if(_!==void 0)return _;if(s.isPrimitive(m))return m;if(b.has(m))return b.get(m);if(Array.isArray(m)){const x=new Array(m.length);b.set(m,x);for(let E=0;E<m.length;E++)x[E]=f(m[E],E,v,b,S);return Object.hasOwn(m,"index")&&(x.index=m.index),Object.hasOwn(m,"input")&&(x.input=m.input),x}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const x=new RegExp(m.source,m.flags);return x.lastIndex=m.lastIndex,x}if(m instanceof Map){const x=new Map;b.set(m,x);for(const[E,k]of m)x.set(E,f(k,E,v,b,S));return x}if(m instanceof Set){const x=new Set;b.set(m,x);for(const E of m)x.add(f(E,void 0,v,b,S));return x}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(o.isTypedArray(m)){const x=new(Object.getPrototypeOf(m)).constructor(m.length);b.set(m,x);for(let E=0;E<m.length;E++)x[E]=f(m[E],E,v,b,S);return x}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const x=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return b.set(m,x),d(x,m,v,b,S),x}if(typeof File<"u"&&m instanceof File){const x=new File([m],m.name,{type:m.type});return b.set(m,x),d(x,m,v,b,S),x}if(typeof Blob<"u"&&m instanceof Blob){const x=new Blob([m],{type:m.type});return b.set(m,x),d(x,m,v,b,S),x}if(m instanceof Error){const x=structuredClone(m);return b.set(m,x),x.message=m.message,x.name=m.name,x.stack=m.stack,x.cause=m.cause,x.constructor=m.constructor,d(x,m,v,b,S),x}if(m instanceof Boolean){const x=new Boolean(m.valueOf());return b.set(m,x),d(x,m,v,b,S),x}if(m instanceof Number){const x=new Number(m.valueOf());return b.set(m,x),d(x,m,v,b,S),x}if(m instanceof String){const x=new String(m.valueOf());return b.set(m,x),d(x,m,v,b,S),x}if(typeof m=="object"&&y(m)){const x=Object.create(Object.getPrototypeOf(m));return b.set(m,x),d(x,m,v,b,S),x}return m}function d(m,g,v=m,b,S){const _=[...Object.keys(g),...t.getSymbols(g)];for(let x=0;x<_.length;x++){const E=_[x],k=Object.getOwnPropertyDescriptor(m,E);(k==null||k.writable)&&(m[E]=f(g[E],E,v,b,S))}}function y(m){switch(r.getTag(m)){case a.argumentsTag:case a.arrayTag:case a.arrayBufferTag:case a.dataViewTag:case a.booleanTag:case a.dateTag:case a.float32ArrayTag:case a.float64ArrayTag:case a.int8ArrayTag:case a.int16ArrayTag:case a.int32ArrayTag:case a.mapTag:case a.numberTag:case a.objectTag:case a.regexpTag:case a.setTag:case a.stringTag:case a.symbolTag:case a.uint8ArrayTag:case a.uint8ClampedArrayTag:case a.uint16ArrayTag:case a.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=c,e.cloneDeepWithImpl=f,e.copyProperties=d})(jm)),jm}var L_;function H9(){return L_||(L_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=f3();function r(a){return t.cloneDeepWithImpl(a,void 0,a,new Map,void 0)}e.cloneDeep=r})(Lm)),Lm}var j_;function V9(){return j_||(j_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=u3(),r=H9();function a(s){return s=r.cloneDeep(s),o=>t.isMatch(o,s)}e.matches=a})(Tm)),Tm}var Vm={},Pm={},Im={},B_;function P9(){return B_||(B_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=f3(),r=_0(),a=c3();function s(o,c){return t.cloneDeepWith(o,(f,d,y,m)=>{const g=c==null?void 0:c(f,d,y,m);if(g!==void 0)return g;if(typeof o=="object"){if(r.getTag(o)===a.objectTag&&typeof o.constructor!="function"){const v={};return m.set(o,v),t.copyProperties(v,o,y,m),v}switch(Object.prototype.toString.call(o)){case a.numberTag:case a.stringTag:case a.booleanTag:{const v=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(v,o),v}case a.argumentsTag:{const v={};return t.copyProperties(v,o),v.length=o.length,v[Symbol.iterator]=o[Symbol.iterator],v}default:return}}})}e.cloneDeepWith=s})(Im)),Im}var q_;function I9(){return q_||(q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=P9();function r(a){return t.cloneDeepWith(a)}e.cloneDeep=r})(Pm)),Pm}var Fm={},$m={},U_;function d3(){return U_||(U_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(a,s=Number.MAX_SAFE_INTEGER){switch(typeof a){case"number":return Number.isInteger(a)&&a>=0&&a<s;case"symbol":return!1;case"string":return t.test(a)}}e.isIndex=r})($m)),$m}var Ym={},H_;function F9(){return H_||(H_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_0();function r(a){return a!==null&&typeof a=="object"&&t.getTag(a)==="[object Arguments]"}e.isArguments=r})(Ym)),Ym}var V_;function $9(){return V_||(V_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=r3(),r=d3(),a=F9(),s=b0();function o(c,f){let d;if(Array.isArray(f)?d=f:typeof f=="string"&&t.isDeepKey(f)&&(c==null?void 0:c[f])==null?d=s.toPath(f):d=[f],d.length===0)return!1;let y=c;for(let m=0;m<d.length;m++){const g=d[m];if((y==null||!Object.hasOwn(y,g))&&!((Array.isArray(y)||a.isArguments(y))&&r.isIndex(g)&&g<y.length))return!1;y=y[g]}return!0}e.has=o})(Fm)),Fm}var P_;function Y9(){return P_||(P_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=u3(),r=v0(),a=I9(),s=S0(),o=$9();function c(f,d){switch(typeof f){case"object":{Object.is(f==null?void 0:f.valueOf(),-0)&&(f="-0");break}case"number":{f=r.toKey(f);break}}return d=a.cloneDeep(d),function(y){const m=s.get(y,f);return m===void 0?o.has(y,f):d===void 0?m===void 0:t.isMatch(m,d)}}e.matchesProperty=c})(Vm)),Vm}var I_;function Z9(){return I_||(I_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i3(),r=j9(),a=V9(),s=Y9();function o(c){if(c==null)return t.identity;switch(typeof c){case"function":return c;case"object":return Array.isArray(c)&&c.length===2?s.matchesProperty(c[0],c[1]):a.matches(c);case"string":case"symbol":case"number":return r.property(c)}}e.iteratee=o})(Am)),Am}var F_;function G9(){return F_||(F_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N9(),r=O9(),a=i3(),s=L9(),o=Z9();function c(f,d=a.identity){return s.isArrayLikeObject(f)?t.uniqBy(Array.from(f),r.ary(o.iteratee(d),1)):[]}e.uniqBy=c})(bm)),bm}var Zm,$_;function Q9(){return $_||($_=1,Zm=G9().uniqBy),Zm}var X9=Q9();const kU=ur(X9);function K9(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function W9(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function J9(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var Y_=e=>Array.isArray(e)?e:[e];function e7(e){const t=Array.isArray(e[0])?e[0]:e;return J9(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function t7(e,t){const r=[],{length:a}=e;for(let s=0;s<a;s++)r.push(e[s].apply(null,t));return r}var n7=class{constructor(e){this.value=e}deref(){return this.value}},r7=typeof WeakRef<"u"?WeakRef:n7,i7=0,Z_=1;function gf(){return{s:i7,v:void 0,o:null,p:null}}function h3(e,t={}){let r=gf();const{resultEqualityCheck:a}=t;let s,o=0;function c(){var g;let f=r;const{length:d}=arguments;for(let v=0,b=d;v<b;v++){const S=arguments[v];if(typeof S=="function"||typeof S=="object"&&S!==null){let _=f.o;_===null&&(f.o=_=new WeakMap);const x=_.get(S);x===void 0?(f=gf(),_.set(S,f)):f=x}else{let _=f.p;_===null&&(f.p=_=new Map);const x=_.get(S);x===void 0?(f=gf(),_.set(S,f)):f=x}}const y=f;let m;if(f.s===Z_)m=f.v;else if(m=e.apply(null,arguments),o++,a){const v=((g=s==null?void 0:s.deref)==null?void 0:g.call(s))??s;v!=null&&a(v,m)&&(m=v,o!==0&&o--),s=typeof m=="object"&&m!==null||typeof m=="function"?new r7(m):m}return y.s=Z_,y.v=m,m}return c.clearCache=()=>{r=gf(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function a7(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...s)=>{let o=0,c=0,f,d={},y=s.pop();typeof y=="object"&&(d=y,y=s.pop()),K9(y,`createSelector expects an output function after the inputs, but received: [${typeof y}]`);const m={...r,...d},{memoize:g,memoizeOptions:v=[],argsMemoize:b=h3,argsMemoizeOptions:S=[]}=m,_=Y_(v),x=Y_(S),E=e7(s),k=g(function(){return o++,y.apply(null,arguments)},..._),M=b(function(){c++;const z=t7(E,arguments);return f=k.apply(null,z),f},...x);return Object.assign(M,{resultFunc:y,memoizedResultFunc:k,dependencies:E,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:g,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var s7=a7(h3),l7=Object.assign((e,t=s7)=>{W9(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),a=r.map(o=>e[o]);return t(a,(...o)=>o.reduce((c,f,d)=>(c[r[d]]=f,c),{}))},{withTypes:()=>l7}),Gm={},Qm={},Xm={},G_;function o7(){return G_||(G_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(a){return typeof a=="symbol"?1:a===null?2:a===void 0?3:a!==a?4:0}const r=(a,s,o)=>{if(a!==s){const c=t(a),f=t(s);if(c===f&&c===0){if(a<s)return o==="desc"?1:-1;if(a>s)return o==="desc"?-1:1}return o==="desc"?f-c:c-f}return 0};e.compareValues=r})(Xm)),Xm}var Km={},Wm={},Q_;function y3(){return Q_||(Q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Wm)),Wm}var X_;function u7(){return X_||(X_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y3(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(o,c){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(a.test(o)||!r.test(o))||c!=null&&Object.hasOwn(c,o)}e.isKey=s})(Km)),Km}var K_;function c7(){return K_||(K_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=o7(),r=u7(),a=b0();function s(o,c,f,d){if(o==null)return[];f=d?void 0:f,Array.isArray(o)||(o=Object.values(o)),Array.isArray(c)||(c=c==null?[null]:[c]),c.length===0&&(c=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(b=>String(b));const y=(b,S)=>{let _=b;for(let x=0;x<S.length&&_!=null;++x)_=_[S[x]];return _},m=(b,S)=>S==null||b==null?S:typeof b=="object"&&"key"in b?Object.hasOwn(S,b.key)?S[b.key]:y(S,b.path):typeof b=="function"?b(S):Array.isArray(b)?y(S,b):typeof S=="object"?S[b]:S,g=c.map(b=>(Array.isArray(b)&&b.length===1&&(b=b[0]),b==null||typeof b=="function"||Array.isArray(b)||r.isKey(b)?b:{key:b,path:a.toPath(b)}));return o.map(b=>({original:b,criteria:g.map(S=>m(S,b))})).slice().sort((b,S)=>{for(let _=0;_<g.length;_++){const x=t.compareValues(b.criteria[_],S.criteria[_],f[_]);if(x!==0)return x}return 0}).map(b=>b.original)}e.orderBy=s})(Qm)),Qm}var Jm={},W_;function f7(){return W_||(W_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a=1){const s=[],o=Math.floor(a),c=(f,d)=>{for(let y=0;y<f.length;y++){const m=f[y];Array.isArray(m)&&d<o?c(m,d+1):s.push(m)}};return c(r,0),s}e.flatten=t})(Jm)),Jm}var eg={},J_;function m3(){return J_||(J_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d3(),r=a3(),a=s3(),s=o3();function o(c,f,d){return a.isObject(d)&&(typeof f=="number"&&r.isArrayLike(d)&&t.isIndex(f)&&f<d.length||typeof f=="string"&&f in d)?s.isEqualsSameValueZero(d[f],c):!1}e.isIterateeCall=o})(eg)),eg}var ex;function d7(){return ex||(ex=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=c7(),r=f7(),a=m3();function s(o,...c){const f=c.length;return f>1&&a.isIterateeCall(o,c[0],c[1])?c=[]:f>2&&a.isIterateeCall(c[0],c[1],c[2])&&(c=[c[0]]),t.orderBy(o,r.flatten(c),["asc"])}e.sortBy=s})(Gm)),Gm}var tg,tx;function h7(){return tx||(tx=1,tg=d7().sortBy),tg}var y7=h7();const AU=ur(y7);function cn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var m7=typeof Symbol=="function"&&Symbol.observable||"@@observable",nx=m7,ng=()=>Math.random().toString(36).substring(7).split("").join("."),g7={INIT:`@@redux/INIT${ng()}`,REPLACE:`@@redux/REPLACE${ng()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ng()}`},If=g7;function x0(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function g3(e,t,r){if(typeof e!="function")throw new Error(cn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(cn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(cn(1));return r(g3)(e,t)}let a=e,s=t,o=new Map,c=o,f=0,d=!1;function y(){c===o&&(c=new Map,o.forEach((x,E)=>{c.set(E,x)}))}function m(){if(d)throw new Error(cn(3));return s}function g(x){if(typeof x!="function")throw new Error(cn(4));if(d)throw new Error(cn(5));let E=!0;y();const k=f++;return c.set(k,x),function(){if(E){if(d)throw new Error(cn(6));E=!1,y(),c.delete(k),o=null}}}function v(x){if(!x0(x))throw new Error(cn(7));if(typeof x.type>"u")throw new Error(cn(8));if(typeof x.type!="string")throw new Error(cn(17));if(d)throw new Error(cn(9));try{d=!0,s=a(s,x)}finally{d=!1}return(o=c).forEach(k=>{k()}),x}function b(x){if(typeof x!="function")throw new Error(cn(10));a=x,v({type:If.REPLACE})}function S(){const x=g;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(cn(11));function k(){const A=E;A.next&&A.next(m())}return k(),{unsubscribe:x(k)}},[nx](){return this}}}return v({type:If.INIT}),{dispatch:v,subscribe:g,getState:m,replaceReducer:b,[nx]:S}}function p7(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:If.INIT})>"u")throw new Error(cn(12));if(typeof r(void 0,{type:If.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(cn(13))})}function v7(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const a=Object.keys(r);let s;try{p7(r)}catch(o){s=o}return function(c={},f){if(s)throw s;let d=!1;const y={};for(let m=0;m<a.length;m++){const g=a[m],v=r[g],b=c[g],S=v(b,f);if(typeof S>"u")throw f&&f.type,new Error(cn(14));y[g]=S,d=d||S!==b}return d=d||a.length!==Object.keys(c).length,d?y:c}}function Ff(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function b7(...e){return t=>(r,a)=>{const s=t(r,a);let o=()=>{throw new Error(cn(15))};const c={getState:s.getState,dispatch:(d,...y)=>o(d,...y)},f=e.map(d=>d(c));return o=Ff(...f)(s.dispatch),{...s,dispatch:o}}}function p3(e){return x0(e)&&"type"in e&&typeof e.type=="string"}var v3=Symbol.for("immer-nothing"),rx=Symbol.for("immer-draftable"),Sn=Symbol.for("immer-state");function vr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fn=Object,Hl=Fn.getPrototypeOf,$f="constructor",gd="prototype",kp="configurable",Yf="enumerable",Mf="writable",hu="value",_i=e=>!!e&&!!e[Sn];function Er(e){var t;return e?b3(e)||vd(e)||!!e[rx]||!!((t=e[$f])!=null&&t[rx])||bd(e)||Sd(e):!1}var S7=Fn[gd][$f].toString(),ix=new WeakMap;function b3(e){if(!e||!w0(e))return!1;const t=Hl(e);if(t===null||t===Fn[gd])return!0;const r=Fn.hasOwnProperty.call(t,$f)&&t[$f];if(r===Object)return!0;if(!hl(r))return!1;let a=ix.get(r);return a===void 0&&(a=Function.toString.call(r),ix.set(r,a)),a===S7}function pd(e,t,r=!0){Ou(e)===0?(r?Reflect.ownKeys(e):Fn.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((a,s)=>t(s,a,e))}function Ou(e){const t=e[Sn];return t?t.type_:vd(e)?1:bd(e)?2:Sd(e)?3:0}var ax=(e,t,r=Ou(e))=>r===2?e.has(t):Fn[gd].hasOwnProperty.call(e,t),Ap=(e,t,r=Ou(e))=>r===2?e.get(t):e[t],Zf=(e,t,r,a=Ou(e))=>{a===2?e.set(t,r):a===3?e.add(r):e[t]=r};function _7(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var vd=Array.isArray,bd=e=>e instanceof Map,Sd=e=>e instanceof Set,w0=e=>typeof e=="object",hl=e=>typeof e=="function",rg=e=>typeof e=="boolean";function x7(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fi=e=>e.copy_||e.base_,E0=e=>e.modified_?e.copy_:e.base_;function Cp(e,t){if(bd(e))return new Map(e);if(Sd(e))return new Set(e);if(vd(e))return Array[gd].slice.call(e);const r=b3(e);if(t===!0||t==="class_only"&&!r){const a=Fn.getOwnPropertyDescriptors(e);delete a[Sn];let s=Reflect.ownKeys(a);for(let o=0;o<s.length;o++){const c=s[o],f=a[c];f[Mf]===!1&&(f[Mf]=!0,f[kp]=!0),(f.get||f.set)&&(a[c]={[kp]:!0,[Mf]:!0,[Yf]:f[Yf],[hu]:e[c]})}return Fn.create(Hl(e),a)}else{const a=Hl(e);if(a!==null&&r)return{...e};const s=Fn.create(a);return Fn.assign(s,e)}}function M0(e,t=!1){return _d(e)||_i(e)||!Er(e)||(Ou(e)>1&&Fn.defineProperties(e,{set:pf,add:pf,clear:pf,delete:pf}),Fn.freeze(e),t&&pd(e,(r,a)=>{M0(a,!0)},!1)),e}function w7(){vr(2)}var pf={[hu]:w7};function _d(e){return e===null||!w0(e)?!0:Fn.isFrozen(e)}var Gf="MapSet",Tp="Patches",sx="ArrayMethods",S3={};function ys(e){const t=S3[e];return t||vr(0,e),t}var lx=e=>!!S3[e],yu,_3=()=>yu,E7=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:lx(Gf)?ys(Gf):void 0,arrayMethodsPlugin_:lx(sx)?ys(sx):void 0});function ox(e,t){t&&(e.patchPlugin_=ys(Tp),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rp(e){Np(e),e.drafts_.forEach(M7),e.drafts_=null}function Np(e){e===yu&&(yu=e.parent_)}var ux=e=>yu=E7(yu,e);function M7(e){const t=e[Sn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function cx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Sn].modified_&&(Rp(t),vr(4)),Er(e)&&(e=fx(t,e));const{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[Sn].base_,e,t)}else e=fx(t,r);return k7(t,e,!0),Rp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==v3?e:void 0}function fx(e,t){if(_d(t))return t;const r=t[Sn];if(!r)return Qf(t,e.handledSet_,e);if(!xd(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:a}=r;if(a)for(;a.length>0;)a.pop()(e);E3(r,e)}return r.copy_}function k7(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&M0(t,r)}function x3(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var xd=(e,t)=>e.scope_===t,A7=[];function w3(e,t,r,a){const s=fi(e),o=e.type_;if(a!==void 0&&Ap(s,a,o)===t){Zf(s,a,r,o);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;pd(s,(d,y)=>{if(_i(y)){const m=f.get(y)||[];m.push(d),f.set(y,m)}})}const c=e.draftLocations_.get(t)??A7;for(const f of c)Zf(s,f,r,o)}function C7(e,t,r){e.callbacks_.push(function(s){var f;const o=t;if(!o||!xd(o,s))return;(f=s.mapSetPlugin_)==null||f.fixSetContents(o);const c=E0(o);w3(e,o.draft_??o,c,r),E3(o,s)})}function E3(e,t){var a;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((a=e.assigned_)==null?void 0:a.size)??0)>0)){const{patchPlugin_:s}=t;if(s){const o=s.getPath(e);o&&s.generatePatches_(e,o,t)}x3(e)}}function T7(e,t,r){const{scope_:a}=e;if(_i(r)){const s=r[Sn];xd(s,a)&&s.callbacks_.push(function(){kf(e);const c=E0(s);w3(e,r,c,t)})}else Er(r)&&e.callbacks_.push(function(){const o=fi(e);e.type_===3?o.has(r)&&Qf(r,a.handledSet_,a):Ap(o,t,e.type_)===r&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Qf(Ap(e.copy_,t,e.type_),a.handledSet_,a)})}function Qf(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||_i(e)||t.has(e)||!Er(e)||_d(e)||(t.add(e),pd(e,(a,s)=>{if(_i(s)){const o=s[Sn];if(xd(o,r)){const c=E0(o);Zf(e,a,c,e.type_),x3(o)}}else Er(s)&&Qf(s,t,r)})),e}function R7(e,t){const r=vd(e),a={type_:r?1:0,scope_:t?t.scope_:_3(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let s=a,o=Xf;r&&(s=[a],o=mu);const{revoke:c,proxy:f}=Proxy.revocable(s,o);return a.draft_=f,a.revoke_=c,[f,a]}var Xf={get(e,t){if(t===Sn)return e;let r=e.scope_.arrayMethodsPlugin_;const a=e.type_===1&&typeof t=="string";if(a&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const s=fi(e);if(!ax(s,t,e.type_))return N7(e,s,t);const o=s[t];if(e.finalized_||!Er(o)||a&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&x7(t))return o;if(o===ig(e.base_,t)){kf(e);const c=e.type_===1?+t:t,f=zp(e.scope_,o,e,c);return e.copy_[c]=f}return o},has(e,t){return t in fi(e)},ownKeys(e){return Reflect.ownKeys(fi(e))},set(e,t,r){const a=M3(fi(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){const s=ig(fi(e),t),o=s==null?void 0:s[Sn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(_7(r,s)&&(r!==void 0||ax(e.base_,t,e.type_)))return!0;kf(e),Op(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),T7(e,t,r)),!0},deleteProperty(e,t){return kf(e),ig(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Op(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fi(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{[Mf]:!0,[kp]:e.type_!==1||t!=="length",[Yf]:a[Yf],[hu]:r[t]}},defineProperty(){vr(11)},getPrototypeOf(e){return Hl(e.base_)},setPrototypeOf(){vr(12)}},mu={};for(let e in Xf){let t=Xf[e];mu[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}mu.deleteProperty=function(e,t){return mu.set.call(this,e,t,void 0)};mu.set=function(e,t,r){return Xf.set.call(this,e[0],t,r,e[0])};function ig(e,t){const r=e[Sn];return(r?fi(r):e)[t]}function N7(e,t,r){var s;const a=M3(t,r);return a?hu in a?a[hu]:(s=a.get)==null?void 0:s.call(e.draft_):void 0}function M3(e,t){if(!(t in e))return;let r=Hl(e);for(;r;){const a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Hl(r)}}function Op(e){e.modified_||(e.modified_=!0,e.parent_&&Op(e.parent_))}function kf(e){e.copy_||(e.assigned_=new Map,e.copy_=Cp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var O7=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,a,s)=>{if(hl(r)&&!hl(a)){const c=a;a=r;const f=this;return function(y=c,...m){return f.produce(y,g=>a.call(this,g,...m))}}hl(a)||vr(6),s!==void 0&&!hl(s)&&vr(7);let o;if(Er(r)){const c=ux(this),f=zp(c,r,void 0);let d=!0;try{o=a(f),d=!1}finally{d?Rp(c):Np(c)}return ox(c,s),cx(o,c)}else if(!r||!w0(r)){if(o=a(r),o===void 0&&(o=r),o===v3&&(o=void 0),this.autoFreeze_&&M0(o,!0),s){const c=[],f=[];ys(Tp).generateReplacementPatches_(r,o,{patches_:c,inversePatches_:f}),s(c,f)}return o}else vr(1,r)},this.produceWithPatches=(r,a)=>{if(hl(r))return(f,...d)=>this.produceWithPatches(f,y=>r(y,...d));let s,o;return[this.produce(r,a,(f,d)=>{s=f,o=d}),s,o]},rg(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),rg(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),rg(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Er(t)||vr(8),_i(t)&&(t=z7(t));const r=ux(this),a=zp(r,t,void 0);return a[Sn].isManual_=!0,Np(r),a}finishDraft(t,r){const a=t&&t[Sn];(!a||!a.isManual_)&&vr(9);const{scope_:s}=a;return ox(s,r),cx(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let a;for(a=r.length-1;a>=0;a--){const o=r[a];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}a>-1&&(r=r.slice(a+1));const s=ys(Tp).applyPatches_;return _i(t)?s(t,r):this.produce(t,o=>s(o,r))}};function zp(e,t,r,a){const[s,o]=bd(t)?ys(Gf).proxyMap_(t,r):Sd(t)?ys(Gf).proxySet_(t,r):R7(t,r);return((r==null?void 0:r.scope_)??_3()).drafts_.push(s),o.callbacks_=(r==null?void 0:r.callbacks_)??[],o.key_=a,r&&a!==void 0?C7(r,o,a):o.callbacks_.push(function(d){var m;(m=d.mapSetPlugin_)==null||m.fixSetContents(o);const{patchPlugin_:y}=d;o.modified_&&y&&y.generatePatches_(o,[],d)}),s}function z7(e){return _i(e)||vr(10,e),k3(e)}function k3(e){if(!Er(e)||_d(e))return e;const t=e[Sn];let r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Cp(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Cp(e,!0);return pd(r,(s,o)=>{Zf(r,s,k3(o))},a),t&&(t.finalized_=!1),r}var D7=new O7,A3=D7.produce;function C3(e){return({dispatch:r,getState:a})=>s=>o=>typeof o=="function"?o(r,a,e):s(o)}var L7=C3(),j7=C3,B7=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ff:Ff.apply(null,arguments)};function Vl(e,t){function r(...a){if(t){let s=t(...a);if(!s)throw new Error($n(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>p3(a)&&a.type===e,r}var T3=class eu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,eu.prototype)}static get[Symbol.species](){return eu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new eu(...t[0].concat(this)):new eu(...t.concat(this))}};function dx(e){return Er(e)?A3(e,()=>{}):e}function vf(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function q7(e){return typeof e=="boolean"}var U7=()=>function(t){const{thunk:r=!0,immutableCheck:a=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=t??{};let c=new T3;return r&&(q7(r)?c.push(L7):c.push(j7(r.extraArgument))),c},R3="RTK_autoBatch",TU=()=>e=>({payload:e,meta:{[R3]:!0}}),hx=e=>t=>{setTimeout(t,e)},H7=(e={type:"raf"})=>t=>(...r)=>{const a=t(...r);let s=!0,o=!1,c=!1;const f=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hx(10):e.type==="callback"?e.queueNotification:hx(e.timeout),y=()=>{c=!1,o&&(o=!1,f.forEach(m=>m()))};return Object.assign({},a,{subscribe(m){const g=()=>s&&m(),v=a.subscribe(g);return f.add(m),()=>{v(),f.delete(m)}},dispatch(m){var g;try{return s=!((g=m==null?void 0:m.meta)!=null&&g[R3]),o=!s,o&&(c||(c=!0,d(y))),a.dispatch(m)}finally{s=!0}}})},V7=e=>function(r){const{autoBatch:a=!0}=r??{};let s=new T3(e);return a&&s.push(H7(typeof a=="object"?a:void 0)),s};function RU(e){const t=U7(),{reducer:r=void 0,middleware:a,devTools:s=!0,preloadedState:o=void 0,enhancers:c=void 0}=e||{};let f;if(typeof r=="function")f=r;else if(x0(r))f=v7(r);else throw new Error($n(1));let d;typeof a=="function"?d=a(t):d=t();let y=Ff;s&&(y=B7({trace:!1,...typeof s=="object"&&s}));const m=b7(...d),g=V7(m);let v=typeof c=="function"?c(g):g();const b=y(...v);return g3(f,o,b)}function N3(e){const t={},r=[];let a;const s={addCase(o,c){const f=typeof o=="string"?o:o.type;if(!f)throw new Error($n(28));if(f in t)throw new Error($n(29));return t[f]=c,s},addAsyncThunk(o,c){return c.pending&&(t[o.pending.type]=c.pending),c.rejected&&(t[o.rejected.type]=c.rejected),c.fulfilled&&(t[o.fulfilled.type]=c.fulfilled),c.settled&&r.push({matcher:o.settled,reducer:c.settled}),s},addMatcher(o,c){return r.push({matcher:o,reducer:c}),s},addDefaultCase(o){return a=o,s}};return e(s),[t,r,a]}function P7(e){return typeof e=="function"}function I7(e,t){let[r,a,s]=N3(t),o;if(P7(e))o=()=>dx(e());else{const f=dx(e);o=()=>f}function c(f=o(),d){let y=[r[d.type],...a.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return y.filter(m=>!!m).length===0&&(y=[s]),y.reduce((m,g)=>{if(g)if(_i(m)){const b=g(m,d);return b===void 0?m:b}else{if(Er(m))return A3(m,v=>g(v,d));{const v=g(m,d);if(v===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return m},f)}return c.getInitialState=o,c}var F7="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$7=(e=21)=>{let t="",r=e;for(;r--;)t+=F7[Math.random()*64|0];return t},Y7=Symbol.for("rtk-slice-createasyncthunk");function Z7(e,t){return`${e}/${t}`}function G7({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Y7];return function(s){const{name:o,reducerPath:c=o}=s;if(!o)throw new Error($n(11));const f=(typeof s.reducers=="function"?s.reducers(X7()):s.reducers)||{},d=Object.keys(f),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(A,z){const N=typeof A=="string"?A:A.type;if(!N)throw new Error($n(12));if(N in y.sliceCaseReducersByType)throw new Error($n(13));return y.sliceCaseReducersByType[N]=z,m},addMatcher(A,z){return y.sliceMatchers.push({matcher:A,reducer:z}),m},exposeAction(A,z){return y.actionCreators[A]=z,m},exposeCaseReducer(A,z){return y.sliceCaseReducersByName[A]=z,m}};d.forEach(A=>{const z=f[A],N={reducerName:A,type:Z7(o,A),createNotation:typeof s.reducers=="function"};W7(z)?eD(N,z,m,t):K7(N,z,m)});function g(){const[A={},z=[],N=void 0]=typeof s.extraReducers=="function"?N3(s.extraReducers):[s.extraReducers],D={...A,...y.sliceCaseReducersByType};return I7(s.initialState,T=>{for(let L in D)T.addCase(L,D[L]);for(let L of y.sliceMatchers)T.addMatcher(L.matcher,L.reducer);for(let L of z)T.addMatcher(L.matcher,L.reducer);N&&T.addDefaultCase(N)})}const v=A=>A,b=new Map,S=new WeakMap;let _;function x(A,z){return _||(_=g()),_(A,z)}function E(){return _||(_=g()),_.getInitialState()}function k(A,z=!1){function N(T){let L=T[A];return typeof L>"u"&&z&&(L=vf(S,N,E)),L}function D(T=v){const L=vf(b,z,()=>new WeakMap);return vf(L,T,()=>{const G={};for(const[B,j]of Object.entries(s.selectors??{}))G[B]=Q7(j,T,()=>vf(S,T,E),z);return G})}return{reducerPath:A,getSelectors:D,get selectors(){return D(N)},selectSlice:N}}const M={name:o,reducer:x,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:E,...k(c),injectInto(A,{reducerPath:z,...N}={}){const D=z??c;return A.inject({reducerPath:D,reducer:x},N),{...M,...k(D,!0)}}};return M}}function Q7(e,t,r,a){function s(o,...c){let f=t(o);return typeof f>"u"&&a&&(f=r()),e(f,...c)}return s.unwrapped=e,s}var NU=G7();function X7(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function K7({type:e,reducerName:t,createNotation:r},a,s){let o,c;if("reducer"in a){if(r&&!J7(a))throw new Error($n(17));o=a.reducer,c=a.prepare}else o=a;s.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,c?Vl(e,c):Vl(e))}function W7(e){return e._reducerDefinitionType==="asyncThunk"}function J7(e){return e._reducerDefinitionType==="reducerWithPrepare"}function eD({type:e,reducerName:t},r,a,s){if(!s)throw new Error($n(18));const{payloadCreator:o,fulfilled:c,pending:f,rejected:d,settled:y,options:m}=r,g=s(e,o,m);a.exposeAction(t,g),c&&a.addCase(g.fulfilled,c),f&&a.addCase(g.pending,f),d&&a.addCase(g.rejected,d),y&&a.addMatcher(g.settled,y),a.exposeCaseReducer(t,{fulfilled:c||bf,pending:f||bf,rejected:d||bf,settled:y||bf})}function bf(){}var tD="task",O3="listener",z3="completed",k0="cancelled",nD=`task-${k0}`,rD=`task-${z3}`,Dp=`${O3}-${k0}`,iD=`${O3}-${z3}`,wd=class{constructor(e){Hy(this,"name","TaskAbortError");Hy(this,"message");this.code=e,this.message=`${tD} ${k0} (reason: ${e})`}},A0=(e,t)=>{if(typeof e!="function")throw new TypeError($n(32))},Kf=()=>{},D3=(e,t=Kf)=>(e.catch(t),e),L3=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ss=e=>{if(e.aborted)throw new wd(e.reason)};function j3(e,t){let r=Kf;return new Promise((a,s)=>{const o=()=>s(new wd(e.reason));if(e.aborted){o();return}r=L3(e,o),t.finally(()=>r()).then(a,s)}).finally(()=>{r=Kf})}var aD=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof wd?"cancelled":"rejected",error:r}}finally{t==null||t()}},Wf=e=>t=>D3(j3(e,t).then(r=>(ss(e),r))),B3=e=>{const t=Wf(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:pl}=Object,yx={},Ed="listenerMiddleware",sD=(e,t)=>{const r=a=>L3(e,()=>a.abort(e.reason));return(a,s)=>{A0(a);const o=new AbortController;r(o);const c=aD(async()=>{ss(e),ss(o.signal);const f=await a({pause:Wf(o.signal),delay:B3(o.signal),signal:o.signal});return ss(o.signal),f},()=>o.abort(rD));return s!=null&&s.autoJoin&&t.push(c.catch(Kf)),{result:Wf(e)(c),cancel(){o.abort(nD)}}}},lD=(e,t)=>{const r=async(a,s)=>{ss(t);let o=()=>{};const f=[new Promise((d,y)=>{let m=e({predicate:a,effect:(g,v)=>{v.unsubscribe(),d([g,v.getState(),v.getOriginalState()])}});o=()=>{m(),y()}})];s!=null&&f.push(new Promise(d=>setTimeout(d,s,null)));try{const d=await j3(t,Promise.race(f));return ss(t),d}finally{o()}};return(a,s)=>D3(r(a,s))},q3=e=>{let{type:t,actionCreator:r,matcher:a,predicate:s,effect:o}=e;if(t)s=Vl(t).match;else if(r)t=r.type,s=r.match;else if(a)s=a;else if(!s)throw new Error($n(21));return A0(o),{predicate:s,type:t,effect:o}},U3=pl(e=>{const{type:t,predicate:r,effect:a}=q3(e);return{id:$7(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error($n(22))}}},{withTypes:()=>U3}),mx=(e,t)=>{const{type:r,effect:a,predicate:s}=q3(t);return Array.from(e.values()).find(o=>(typeof r=="string"?o.type===r:o.predicate===s)&&o.effect===a)},Lp=e=>{e.pending.forEach(t=>{t.abort(Dp)})},oD=(e,t)=>()=>{for(const r of t.keys())Lp(r);e.clear()},gx=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},H3=pl(Vl(`${Ed}/add`),{withTypes:()=>H3}),uD=Vl(`${Ed}/removeAll`),V3=pl(Vl(`${Ed}/remove`),{withTypes:()=>V3}),cD=(...e)=>{console.error(`${Ed}/error`,...e)},OU=(e={})=>{const t=new Map,r=new Map,a=b=>{const S=r.get(b)??0;r.set(b,S+1)},s=b=>{const S=r.get(b)??1;S===1?r.delete(b):r.set(b,S-1)},{extra:o,onError:c=cD}=e;A0(c);const f=b=>(b.unsubscribe=()=>t.delete(b.id),t.set(b.id,b),S=>{b.unsubscribe(),S!=null&&S.cancelActive&&Lp(b)}),d=b=>{const S=mx(t,b)??U3(b);return f(S)};pl(d,{withTypes:()=>d});const y=b=>{const S=mx(t,b);return S&&(S.unsubscribe(),b.cancelActive&&Lp(S)),!!S};pl(y,{withTypes:()=>y});const m=async(b,S,_,x)=>{const E=new AbortController,k=lD(d,E.signal),M=[];try{b.pending.add(E),a(b),await Promise.resolve(b.effect(S,pl({},_,{getOriginalState:x,condition:(A,z)=>k(A,z).then(Boolean),take:k,delay:B3(E.signal),pause:Wf(E.signal),extra:o,signal:E.signal,fork:sD(E.signal,M),unsubscribe:b.unsubscribe,subscribe:()=>{t.set(b.id,b)},cancelActiveListeners:()=>{b.pending.forEach((A,z,N)=>{A!==E&&(A.abort(Dp),N.delete(A))})},cancel:()=>{E.abort(Dp),b.pending.delete(E)},throwIfCancelled:()=>{ss(E.signal)}})))}catch(A){A instanceof wd||gx(c,A,{raisedBy:"effect"})}finally{await Promise.all(M),E.abort(iD),s(b),b.pending.delete(E)}},g=oD(t,r);return{middleware:b=>S=>_=>{if(!p3(_))return S(_);if(H3.match(_))return d(_.payload);if(uD.match(_)){g();return}if(V3.match(_))return y(_.payload);let x=b.getState();const E=()=>{if(x===yx)throw new Error($n(23));return x};let k;try{if(k=S(_),t.size>0){const M=b.getState(),A=Array.from(t.values());for(const z of A){let N=!1;try{N=z.predicate(_,M,x)}catch(D){N=!1,gx(c,D,{raisedBy:"predicate"})}N&&m(z,_,b,E)}}}finally{x=yx}return k},startListening:d,stopListening:y,clearListeners:g}};function $n(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ag={},sg={},lg={},px;function fD(){return px||(px=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a,{signal:s,edges:o}={}){let c,f=null;const d=o!=null&&o.includes("leading"),y=o==null||o.includes("trailing"),m=()=>{f!==null&&(r.apply(c,f),c=void 0,f=null)},g=()=>{y&&m(),_()};let v=null;const b=()=>{v!=null&&clearTimeout(v),v=setTimeout(()=>{v=null,g()},a)},S=()=>{v!==null&&(clearTimeout(v),v=null)},_=()=>{S(),c=void 0,f=null},x=()=>{m()},E=function(...k){if(s!=null&&s.aborted)return;c=this,f=k;const M=v==null;b(),d&&M&&m()};return E.schedule=b,E.cancel=_,E.flush=x,s==null||s.addEventListener("abort",_,{once:!0}),E}e.debounce=t})(lg)),lg}var vx;function dD(){return vx||(vx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fD();function r(a,s=0,o={}){typeof o!="object"&&(o={});const{leading:c=!1,trailing:f=!0,maxWait:d}=o,y=Array(2);c&&(y[0]="leading"),f&&(y[1]="trailing");let m,g=null;const v=t.debounce(function(..._){m=a.apply(this,_),g=null},s,{edges:y}),b=function(..._){return d!=null&&(g===null&&(g=Date.now()),Date.now()-g>=d)?(m=a.apply(this,_),g=Date.now(),v.cancel(),v.schedule(),m):(v.apply(this,_),m)},S=()=>(v.flush(),m);return b.cancel=v.cancel,b.flush=S,b}e.debounce=r})(sg)),sg}var bx;function hD(){return bx||(bx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dD();function r(a,s=0,o={}){const{leading:c=!0,trailing:f=!0}=o;return t.debounce(a,s,{leading:c,maxWait:s,trailing:f})}e.throttle=r})(ag)),ag}var og,Sx;function yD(){return Sx||(Sx=1,og=hD().throttle),og}var mD=yD();const zU=ur(mD);var P3=Symbol.for("immer-nothing"),_x=Symbol.for("immer-draftable"),Zn=Symbol.for("immer-state");function br(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gu=Object.getPrototypeOf;function Pl(e){return!!e&&!!e[Zn]}function ms(e){var t;return e?I3(e)||Array.isArray(e)||!!e[_x]||!!((t=e.constructor)!=null&&t[_x])||zu(e)||kd(e):!1}var gD=Object.prototype.constructor.toString(),xx=new WeakMap;function I3(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let a=xx.get(r);return a===void 0&&(a=Function.toString.call(r),xx.set(r,a)),a===gD}function Jf(e,t,r=!0){Md(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((a,s)=>t(s,a,e))}function Md(e){const t=e[Zn];return t?t.type_:Array.isArray(e)?1:zu(e)?2:kd(e)?3:0}function jp(e,t){return Md(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function F3(e,t,r){const a=Md(e);a===2?e.set(t,r):a===3?e.add(r):e[t]=r}function pD(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function zu(e){return e instanceof Map}function kd(e){return e instanceof Set}function Ya(e){return e.copy_||e.base_}function Bp(e,t){if(zu(e))return new Map(e);if(kd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=I3(e);if(t===!0||t==="class_only"&&!r){const a=Object.getOwnPropertyDescriptors(e);delete a[Zn];let s=Reflect.ownKeys(a);for(let o=0;o<s.length;o++){const c=s[o],f=a[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(a[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[c]})}return Object.create(gu(e),a)}else{const a=gu(e);if(a!==null&&r)return{...e};const s=Object.create(a);return Object.assign(s,e)}}function C0(e,t=!1){return Ad(e)||Pl(e)||!ms(e)||(Md(e)>1&&Object.defineProperties(e,{set:Sf,add:Sf,clear:Sf,delete:Sf}),Object.freeze(e),t&&Object.values(e).forEach(r=>C0(r,!0))),e}function vD(){br(2)}var Sf={value:vD};function Ad(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var bD={};function gs(e){const t=bD[e];return t||br(0,e),t}var pu;function $3(){return pu}function SD(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wx(e,t){t&&(gs("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function qp(e){Up(e),e.drafts_.forEach(_D),e.drafts_=null}function Up(e){e===pu&&(pu=e.parent_)}function Ex(e){return pu=SD(pu,e)}function _D(e){const t=e[Zn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Mx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Zn].modified_&&(qp(t),br(4)),ms(e)&&(e=ed(t,e),t.parent_||td(t,e)),t.patches_&&gs("Patches").generateReplacementPatches_(r[Zn].base_,e,t.patches_,t.inversePatches_)):e=ed(t,r,[]),qp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==P3?e:void 0}function ed(e,t,r){if(Ad(t))return t;const a=e.immer_.shouldUseStrictIteration(),s=t[Zn];if(!s)return Jf(t,(o,c)=>kx(e,s,t,o,c,r),a),t;if(s.scope_!==e)return t;if(!s.modified_)return td(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let c=o,f=!1;s.type_===3&&(c=new Set(o),o.clear(),f=!0),Jf(c,(d,y)=>kx(e,s,o,d,y,r,f),a),td(e,o,!1),r&&e.patches_&&gs("Patches").generatePatches_(s,r,e.patches_,e.inversePatches_)}return s.copy_}function kx(e,t,r,a,s,o,c){if(s==null||typeof s!="object"&&!c)return;const f=Ad(s);if(!(f&&!c)){if(Pl(s)){const d=o&&t&&t.type_!==3&&!jp(t.assigned_,a)?o.concat(a):void 0,y=ed(e,s,d);if(F3(r,a,y),Pl(y))e.canAutoFreeze_=!1;else return}else c&&r.add(s);if(ms(s)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[a]===s&&f)return;ed(e,s),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&(zu(r)?r.has(a):Object.prototype.propertyIsEnumerable.call(r,a))&&td(e,s)}}}function td(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&C0(t,r)}function xD(e,t){const r=Array.isArray(e),a={type_:r?1:0,scope_:t?t.scope_:$3(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=a,o=T0;r&&(s=[a],o=vu);const{revoke:c,proxy:f}=Proxy.revocable(s,o);return a.draft_=f,a.revoke_=c,f}var T0={get(e,t){if(t===Zn)return e;const r=Ya(e);if(!jp(r,t))return wD(e,r,t);const a=r[t];return e.finalized_||!ms(a)?a:a===ug(e.base_,t)?(cg(e),e.copy_[t]=Vp(a,e)):a},has(e,t){return t in Ya(e)},ownKeys(e){return Reflect.ownKeys(Ya(e))},set(e,t,r){const a=Y3(Ya(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){const s=ug(Ya(e),t),o=s==null?void 0:s[Zn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(pD(r,s)&&(r!==void 0||jp(e.base_,t)))return!0;cg(e),Hp(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ug(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,cg(e),Hp(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ya(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:a.enumerable,value:r[t]}},defineProperty(){br(11)},getPrototypeOf(e){return gu(e.base_)},setPrototypeOf(){br(12)}},vu={};Jf(T0,(e,t)=>{vu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});vu.deleteProperty=function(e,t){return vu.set.call(this,e,t,void 0)};vu.set=function(e,t,r){return T0.set.call(this,e[0],t,r,e[0])};function ug(e,t){const r=e[Zn];return(r?Ya(r):e)[t]}function wD(e,t,r){var s;const a=Y3(t,r);return a?"value"in a?a.value:(s=a.get)==null?void 0:s.call(e.draft_):void 0}function Y3(e,t){if(!(t in e))return;let r=gu(e);for(;r;){const a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=gu(r)}}function Hp(e){e.modified_||(e.modified_=!0,e.parent_&&Hp(e.parent_))}function cg(e){e.copy_||(e.copy_=Bp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ED=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,a)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const c=this;return function(d=o,...y){return c.produce(d,m=>r.call(this,m,...y))}}typeof r!="function"&&br(6),a!==void 0&&typeof a!="function"&&br(7);let s;if(ms(t)){const o=Ex(this),c=Vp(t,void 0);let f=!0;try{s=r(c),f=!1}finally{f?qp(o):Up(o)}return wx(o,a),Mx(s,o)}else if(!t||typeof t!="object"){if(s=r(t),s===void 0&&(s=t),s===P3&&(s=void 0),this.autoFreeze_&&C0(s,!0),a){const o=[],c=[];gs("Patches").generateReplacementPatches_(t,s,o,c),a(o,c)}return s}else br(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(c,...f)=>this.produceWithPatches(c,d=>t(d,...f));let a,s;return[this.produce(t,r,(c,f)=>{a=c,s=f}),a,s]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ms(e)||br(8),Pl(e)&&(e=MD(e));const t=Ex(this),r=Vp(e,void 0);return r[Zn].isManual_=!0,Up(t),r}finishDraft(e,t){const r=e&&e[Zn];(!r||!r.isManual_)&&br(9);const{scope_:a}=r;return wx(a,t),Mx(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));const a=gs("Patches").applyPatches_;return Pl(e)?a(e,t):this.produce(e,s=>a(s,t))}};function Vp(e,t){const r=zu(e)?gs("MapSet").proxyMap_(e,t):kd(e)?gs("MapSet").proxySet_(e,t):xD(e,t);return(t?t.scope_:$3()).drafts_.push(r),r}function MD(e){return Pl(e)||br(10,e),Z3(e)}function Z3(e){if(!ms(e)||Ad(e))return e;const t=e[Zn];let r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Bp(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Bp(e,!0);return Jf(r,(s,o)=>{F3(r,s,Z3(o))},a),t&&(t.finalized_=!1),r}var kD=new ED;kD.produce;function DU(e){return e}var fg={exports:{}},dg={};/**
798
+ * @license React
799
+ * use-sync-external-store-with-selector.production.js
800
+ *
801
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
802
+ *
803
+ * This source code is licensed under the MIT license found in the
804
+ * LICENSE file in the root directory of this source tree.
805
+ */var Ax;function AD(){if(Ax)return dg;Ax=1;var e=Il();function t(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var r=typeof Object.is=="function"?Object.is:t,a=e.useSyncExternalStore,s=e.useRef,o=e.useEffect,c=e.useMemo,f=e.useDebugValue;return dg.useSyncExternalStoreWithSelector=function(d,y,m,g,v){var b=s(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=c(function(){function x(z){if(!E){if(E=!0,k=z,z=g(z),v!==void 0&&S.hasValue){var N=S.value;if(v(N,z))return M=N}return M=z}if(N=M,r(k,z))return N;var D=g(z);return v!==void 0&&v(N,D)?(k=z,N):(k=z,M=D)}var E=!1,k,M,A=m===void 0?null:m;return[function(){return x(y())},A===null?void 0:function(){return x(A())}]},[y,m,g,v]);var _=a(d,b[0],b[1]);return o(function(){S.hasValue=!0,S.value=_},[_]),f(_),_},dg}var Cx;function CD(){return Cx||(Cx=1,fg.exports=AD()),fg.exports}CD();function TD(e){e()}function RD(){let e=null,t=null;return{clear(){e=null,t=null},notify(){TD(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0;const s=t={callback:r,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!a||e===null||(a=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var Tx={notify(){},get:()=>[]};function ND(e,t){let r,a=Tx,s=0,o=!1;function c(_){m();const x=a.subscribe(_);let E=!1;return()=>{E||(E=!0,x(),g())}}function f(){a.notify()}function d(){S.onStateChange&&S.onStateChange()}function y(){return o}function m(){s++,r||(r=e.subscribe(d),a=RD())}function g(){s--,r&&s===0&&(r(),r=void 0,a.clear(),a=Tx)}function v(){o||(o=!0,m())}function b(){o&&(o=!1,g())}const S={addNestedSub:c,notifyNestedSubs:f,handleChangeWrapper:d,isSubscribed:y,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>a};return S}var OD=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zD=OD(),DD=()=>typeof navigator<"u"&&navigator.product==="ReactNative",LD=DD(),jD=()=>zD||LD?R.useLayoutEffect:R.useEffect,BD=jD();function Rx(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function LU(e,t){if(Rx(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(t,r[s])||!Rx(e[r[s]],t[r[s]]))return!1;return!0}var hg=Symbol.for("react-redux-context"),yg=typeof globalThis<"u"?globalThis:{};function qD(){if(!R.createContext)return{};const e=yg[hg]??(yg[hg]=new Map);let t=e.get(R.createContext);return t||(t=R.createContext(null),e.set(R.createContext,t)),t}var UD=qD();function HD(e){const{children:t,context:r,serverState:a,store:s}=e,o=R.useMemo(()=>{const d=ND(s);return{store:s,subscription:d,getServerState:a?()=>a:void 0}},[s,a]),c=R.useMemo(()=>s.getState(),[s]);BD(()=>{const{subscription:d}=o;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),c!==s.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[o,c]);const f=r||UD;return R.createElement(f.Provider,{value:o},t)}var jU=HD,mg={},gg={},pg={},Nx;function VD(){return Nx||(Nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y3();function r(a){return t.isSymbol(a)?NaN:Number(a)}e.toNumber=r})(pg)),pg}var Ox;function PD(){return Ox||(Ox=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VD();function r(a){return a?(a=t.toNumber(a),a===1/0||a===-1/0?(a<0?-1:1)*Number.MAX_VALUE:a===a?a:0):a===0?a:0}e.toFinite=r})(gg)),gg}var zx;function ID(){return zx||(zx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=m3(),r=PD();function a(s,o,c){c&&typeof c!="number"&&t.isIterateeCall(s,o,c)&&(o=c=void 0),s=r.toFinite(s),o===void 0?(o=s,s=0):o=r.toFinite(o),c=c===void 0?s<o?1:-1:r.toFinite(c);const f=Math.max(Math.ceil((o-s)/(c||1)),0),d=new Array(f);for(let y=0;y<f;y++)d[y]=s,s+=c;return d}e.range=a})(mg)),mg}var vg,Dx;function FD(){return Dx||(Dx=1,vg=ID().range),vg}var $D=FD();const BU=ur($D);var Gl=1e9,YD={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},N0,Mt=!0,or="[DecimalError] ",ls=or+"Invalid argument: ",R0=or+"Exponent out of range: ",Ql=Math.floor,Za=Math.pow,ZD=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,In,nn=1e7,wt=7,G3=9007199254740991,nd=Ql(G3/wt),Ee={};Ee.absoluteValue=Ee.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ee.comparedTo=Ee.cmp=function(e){var t,r,a,s,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(a=o.d.length,s=e.d.length,t=0,r=a<s?a:s;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return a===s?0:a>s^o.s<0?1:-1};Ee.decimalPlaces=Ee.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*wt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ee.dividedBy=Ee.div=function(e){return pi(this,new this.constructor(e))};Ee.dividedToIntegerBy=Ee.idiv=function(e){var t=this,r=t.constructor;return bt(pi(t,new r(e),0,1),r.precision)};Ee.equals=Ee.eq=function(e){return!this.cmp(e)};Ee.exponent=function(){return Zt(this)};Ee.greaterThan=Ee.gt=function(e){return this.cmp(e)>0};Ee.greaterThanOrEqualTo=Ee.gte=function(e){return this.cmp(e)>=0};Ee.isInteger=Ee.isint=function(){return this.e>this.d.length-2};Ee.isNegative=Ee.isneg=function(){return this.s<0};Ee.isPositive=Ee.ispos=function(){return this.s>0};Ee.isZero=function(){return this.s===0};Ee.lessThan=Ee.lt=function(e){return this.cmp(e)<0};Ee.lessThanOrEqualTo=Ee.lte=function(e){return this.cmp(e)<1};Ee.logarithm=Ee.log=function(e){var t,r=this,a=r.constructor,s=a.precision,o=s+5;if(e===void 0)e=new a(10);else if(e=new a(e),e.s<1||e.eq(In))throw Error(or+"NaN");if(r.s<1)throw Error(or+(r.s?"NaN":"-Infinity"));return r.eq(In)?new a(0):(Mt=!1,t=pi(bu(r,o),bu(e,o),o),Mt=!0,bt(t,s))};Ee.minus=Ee.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?K3(t,e):Q3(t,(e.s=-e.s,e))};Ee.modulo=Ee.mod=function(e){var t,r=this,a=r.constructor,s=a.precision;if(e=new a(e),!e.s)throw Error(or+"NaN");return r.s?(Mt=!1,t=pi(r,e,0,1).times(e),Mt=!0,r.minus(t)):bt(new a(r),s)};Ee.naturalExponential=Ee.exp=function(){return X3(this)};Ee.naturalLogarithm=Ee.ln=function(){return bu(this)};Ee.negated=Ee.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ee.plus=Ee.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Q3(t,e):K3(t,(e.s=-e.s,e))};Ee.precision=Ee.sd=function(e){var t,r,a,s=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ls+e);if(t=Zt(s)+1,a=s.d.length-1,r=a*wt+1,a=s.d[a],a){for(;a%10==0;a/=10)r--;for(a=s.d[0];a>=10;a/=10)r++}return e&&t>r?t:r};Ee.squareRoot=Ee.sqrt=function(){var e,t,r,a,s,o,c,f=this,d=f.constructor;if(f.s<1){if(!f.s)return new d(0);throw Error(or+"NaN")}for(e=Zt(f),Mt=!1,s=Math.sqrt(+f),s==0||s==1/0?(t=Lr(f.d),(t.length+e)%2==0&&(t+="0"),s=Math.sqrt(t),e=Ql((e+1)/2)-(e<0||e%2),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),a=new d(t)):a=new d(s.toString()),r=d.precision,s=c=r+3;;)if(o=a,a=o.plus(pi(f,o,c+2)).times(.5),Lr(o.d).slice(0,c)===(t=Lr(a.d)).slice(0,c)){if(t=t.slice(c-3,c+1),s==c&&t=="4999"){if(bt(o,r+1,0),o.times(o).eq(f)){a=o;break}}else if(t!="9999")break;c+=4}return Mt=!0,bt(a,r)};Ee.times=Ee.mul=function(e){var t,r,a,s,o,c,f,d,y,m=this,g=m.constructor,v=m.d,b=(e=new g(e)).d;if(!m.s||!e.s)return new g(0);for(e.s*=m.s,r=m.e+e.e,d=v.length,y=b.length,d<y&&(o=v,v=b,b=o,c=d,d=y,y=c),o=[],c=d+y,a=c;a--;)o.push(0);for(a=y;--a>=0;){for(t=0,s=d+a;s>a;)f=o[s]+b[a]*v[s-a-1]+t,o[s--]=f%nn|0,t=f/nn|0;o[s]=(o[s]+t)%nn|0}for(;!o[--c];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Mt?bt(e,g.precision):e};Ee.toDecimalPlaces=Ee.todp=function(e,t){var r=this,a=r.constructor;return r=new a(r),e===void 0?r:(Ur(e,0,Gl),t===void 0?t=a.rounding:Ur(t,0,8),bt(r,e+Zt(r)+1,t))};Ee.toExponential=function(e,t){var r,a=this,s=a.constructor;return e===void 0?r=ps(a,!0):(Ur(e,0,Gl),t===void 0?t=s.rounding:Ur(t,0,8),a=bt(new s(a),e+1,t),r=ps(a,!0,e+1)),r};Ee.toFixed=function(e,t){var r,a,s=this,o=s.constructor;return e===void 0?ps(s):(Ur(e,0,Gl),t===void 0?t=o.rounding:Ur(t,0,8),a=bt(new o(s),e+Zt(s)+1,t),r=ps(a.abs(),!1,e+Zt(a)+1),s.isneg()&&!s.isZero()?"-"+r:r)};Ee.toInteger=Ee.toint=function(){var e=this,t=e.constructor;return bt(new t(e),Zt(e)+1,t.rounding)};Ee.toNumber=function(){return+this};Ee.toPower=Ee.pow=function(e){var t,r,a,s,o,c,f=this,d=f.constructor,y=12,m=+(e=new d(e));if(!e.s)return new d(In);if(f=new d(f),!f.s){if(e.s<1)throw Error(or+"Infinity");return f}if(f.eq(In))return f;if(a=d.precision,e.eq(In))return bt(f,a);if(t=e.e,r=e.d.length-1,c=t>=r,o=f.s,c){if((r=m<0?-m:m)<=G3){for(s=new d(In),t=Math.ceil(a/wt+4),Mt=!1;r%2&&(s=s.times(f),jx(s.d,t)),r=Ql(r/2),r!==0;)f=f.times(f),jx(f.d,t);return Mt=!0,e.s<0?new d(In).div(s):bt(s,a)}}else if(o<0)throw Error(or+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,f.s=1,Mt=!1,s=e.times(bu(f,a+y)),Mt=!0,s=X3(s),s.s=o,s};Ee.toPrecision=function(e,t){var r,a,s=this,o=s.constructor;return e===void 0?(r=Zt(s),a=ps(s,r<=o.toExpNeg||r>=o.toExpPos)):(Ur(e,1,Gl),t===void 0?t=o.rounding:Ur(t,0,8),s=bt(new o(s),e,t),r=Zt(s),a=ps(s,e<=r||r<=o.toExpNeg,e)),a};Ee.toSignificantDigits=Ee.tosd=function(e,t){var r=this,a=r.constructor;return e===void 0?(e=a.precision,t=a.rounding):(Ur(e,1,Gl),t===void 0?t=a.rounding:Ur(t,0,8)),bt(new a(r),e,t)};Ee.toString=Ee.valueOf=Ee.val=Ee.toJSON=Ee[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Zt(e),r=e.constructor;return ps(e,t<=r.toExpNeg||t>=r.toExpPos)};function Q3(e,t){var r,a,s,o,c,f,d,y,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),Mt?bt(t,g):t;if(d=e.d,y=t.d,c=e.e,s=t.e,d=d.slice(),o=c-s,o){for(o<0?(a=d,o=-o,f=y.length):(a=y,s=c,f=d.length),c=Math.ceil(g/wt),f=c>f?c+1:f+1,o>f&&(o=f,a.length=1),a.reverse();o--;)a.push(0);a.reverse()}for(f=d.length,o=y.length,f-o<0&&(o=f,a=y,y=d,d=a),r=0;o;)r=(d[--o]=d[o]+y[o]+r)/nn|0,d[o]%=nn;for(r&&(d.unshift(r),++s),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=s,Mt?bt(t,g):t}function Ur(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ls+e)}function Lr(e){var t,r,a,s=e.length-1,o="",c=e[0];if(s>0){for(o+=c,t=1;t<s;t++)a=e[t]+"",r=wt-a.length,r&&(o+=aa(r)),o+=a;c=e[t],a=c+"",r=wt-a.length,r&&(o+=aa(r))}else if(c===0)return"0";for(;c%10===0;)c/=10;return o+c}var pi=(function(){function e(a,s){var o,c=0,f=a.length;for(a=a.slice();f--;)o=a[f]*s+c,a[f]=o%nn|0,c=o/nn|0;return c&&a.unshift(c),a}function t(a,s,o,c){var f,d;if(o!=c)d=o>c?1:-1;else for(f=d=0;f<o;f++)if(a[f]!=s[f]){d=a[f]>s[f]?1:-1;break}return d}function r(a,s,o){for(var c=0;o--;)a[o]-=c,c=a[o]<s[o]?1:0,a[o]=c*nn+a[o]-s[o];for(;!a[0]&&a.length>1;)a.shift()}return function(a,s,o,c){var f,d,y,m,g,v,b,S,_,x,E,k,M,A,z,N,D,T,L=a.constructor,G=a.s==s.s?1:-1,B=a.d,j=s.d;if(!a.s)return new L(a);if(!s.s)throw Error(or+"Division by zero");for(d=a.e-s.e,D=j.length,z=B.length,b=new L(G),S=b.d=[],y=0;j[y]==(B[y]||0);)++y;if(j[y]>(B[y]||0)&&--d,o==null?k=o=L.precision:c?k=o+(Zt(a)-Zt(s))+1:k=o,k<0)return new L(0);if(k=k/wt+2|0,y=0,D==1)for(m=0,j=j[0],k++;(y<z||m)&&k--;y++)M=m*nn+(B[y]||0),S[y]=M/j|0,m=M%j|0;else{for(m=nn/(j[0]+1)|0,m>1&&(j=e(j,m),B=e(B,m),D=j.length,z=B.length),A=D,_=B.slice(0,D),x=_.length;x<D;)_[x++]=0;T=j.slice(),T.unshift(0),N=j[0],j[1]>=nn/2&&++N;do m=0,f=t(j,_,D,x),f<0?(E=_[0],D!=x&&(E=E*nn+(_[1]||0)),m=E/N|0,m>1?(m>=nn&&(m=nn-1),g=e(j,m),v=g.length,x=_.length,f=t(g,_,v,x),f==1&&(m--,r(g,D<v?T:j,v))):(m==0&&(f=m=1),g=j.slice()),v=g.length,v<x&&g.unshift(0),r(_,g,x),f==-1&&(x=_.length,f=t(j,_,D,x),f<1&&(m++,r(_,D<x?T:j,x))),x=_.length):f===0&&(m++,_=[0]),S[y++]=m,f&&_[0]?_[x++]=B[A]||0:(_=[B[A]],x=1);while((A++<z||_[0]!==void 0)&&k--)}return S[0]||S.shift(),b.e=d,bt(b,c?o+Zt(b)+1:o)}})();function X3(e,t){var r,a,s,o,c,f,d=0,y=0,m=e.constructor,g=m.precision;if(Zt(e)>16)throw Error(R0+Zt(e));if(!e.s)return new m(In);for(Mt=!1,f=g,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),y+=5;for(a=Math.log(Za(2,y))/Math.LN10*2+5|0,f+=a,r=s=o=new m(In),m.precision=f;;){if(s=bt(s.times(e),f),r=r.times(++d),c=o.plus(pi(s,r,f)),Lr(c.d).slice(0,f)===Lr(o.d).slice(0,f)){for(;y--;)o=bt(o.times(o),f);return m.precision=g,t==null?(Mt=!0,bt(o,g)):o}o=c}}function Zt(e){for(var t=e.e*wt,r=e.d[0];r>=10;r/=10)t++;return t}function bg(e,t,r){if(t>e.LN10.sd())throw Mt=!0,r&&(e.precision=r),Error(or+"LN10 precision limit exceeded");return bt(new e(e.LN10),t)}function aa(e){for(var t="";e--;)t+="0";return t}function bu(e,t){var r,a,s,o,c,f,d,y,m,g=1,v=10,b=e,S=b.d,_=b.constructor,x=_.precision;if(b.s<1)throw Error(or+(b.s?"NaN":"-Infinity"));if(b.eq(In))return new _(0);if(t==null?(Mt=!1,y=x):y=t,b.eq(10))return t==null&&(Mt=!0),bg(_,y);if(y+=v,_.precision=y,r=Lr(S),a=r.charAt(0),o=Zt(b),Math.abs(o)<15e14){for(;a<7&&a!=1||a==1&&r.charAt(1)>3;)b=b.times(e),r=Lr(b.d),a=r.charAt(0),g++;o=Zt(b),a>1?(b=new _("0."+r),o++):b=new _(a+"."+r.slice(1))}else return d=bg(_,y+2,x).times(o+""),b=bu(new _(a+"."+r.slice(1)),y-v).plus(d),_.precision=x,t==null?(Mt=!0,bt(b,x)):b;for(f=c=b=pi(b.minus(In),b.plus(In),y),m=bt(b.times(b),y),s=3;;){if(c=bt(c.times(m),y),d=f.plus(pi(c,new _(s),y)),Lr(d.d).slice(0,y)===Lr(f.d).slice(0,y))return f=f.times(2),o!==0&&(f=f.plus(bg(_,y+2,x).times(o+""))),f=pi(f,new _(g),y),_.precision=x,t==null?(Mt=!0,bt(f,x)):f;f=d,s+=2}}function Lx(e,t){var r,a,s;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(r<0&&(r=a),r+=+t.slice(a+1),t=t.substring(0,a)):r<0&&(r=t.length),a=0;t.charCodeAt(a)===48;)++a;for(s=t.length;t.charCodeAt(s-1)===48;)--s;if(t=t.slice(a,s),t){if(s-=a,r=r-a-1,e.e=Ql(r/wt),e.d=[],a=(r+1)%wt,r<0&&(a+=wt),a<s){for(a&&e.d.push(+t.slice(0,a)),s-=wt;a<s;)e.d.push(+t.slice(a,a+=wt));t=t.slice(a),a=wt-t.length}else a-=s;for(;a--;)t+="0";if(e.d.push(+t),Mt&&(e.e>nd||e.e<-nd))throw Error(R0+r)}else e.s=0,e.e=0,e.d=[0];return e}function bt(e,t,r){var a,s,o,c,f,d,y,m,g=e.d;for(c=1,o=g[0];o>=10;o/=10)c++;if(a=t-c,a<0)a+=wt,s=t,y=g[m=0];else{if(m=Math.ceil((a+1)/wt),o=g.length,m>=o)return e;for(y=o=g[m],c=1;o>=10;o/=10)c++;a%=wt,s=a-wt+c}if(r!==void 0&&(o=Za(10,c-s-1),f=y/o%10|0,d=t<0||g[m+1]!==void 0||y%o,d=r<4?(f||d)&&(r==0||r==(e.s<0?3:2)):f>5||f==5&&(r==4||d||r==6&&(a>0?s>0?y/Za(10,c-s):0:g[m-1])%10&1||r==(e.s<0?8:7))),t<1||!g[0])return d?(o=Zt(e),g.length=1,t=t-o-1,g[0]=Za(10,(wt-t%wt)%wt),e.e=Ql(-t/wt)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(a==0?(g.length=m,o=1,m--):(g.length=m+1,o=Za(10,wt-a),g[m]=s>0?(y/Za(10,c-s)%Za(10,s)|0)*o:0),d)for(;;)if(m==0){(g[0]+=o)==nn&&(g[0]=1,++e.e);break}else{if(g[m]+=o,g[m]!=nn)break;g[m--]=0,o=1}for(a=g.length;g[--a]===0;)g.pop();if(Mt&&(e.e>nd||e.e<-nd))throw Error(R0+Zt(e));return e}function K3(e,t){var r,a,s,o,c,f,d,y,m,g,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),Mt?bt(t,b):t;if(d=e.d,g=t.d,a=t.e,y=e.e,d=d.slice(),c=y-a,c){for(m=c<0,m?(r=d,c=-c,f=g.length):(r=g,a=y,f=d.length),s=Math.max(Math.ceil(b/wt),f)+2,c>s&&(c=s,r.length=1),r.reverse(),s=c;s--;)r.push(0);r.reverse()}else{for(s=d.length,f=g.length,m=s<f,m&&(f=s),s=0;s<f;s++)if(d[s]!=g[s]){m=d[s]<g[s];break}c=0}for(m&&(r=d,d=g,g=r,t.s=-t.s),f=d.length,s=g.length-f;s>0;--s)d[f++]=0;for(s=g.length;s>c;){if(d[--s]<g[s]){for(o=s;o&&d[--o]===0;)d[o]=nn-1;--d[o],d[s]+=nn}d[s]-=g[s]}for(;d[--f]===0;)d.pop();for(;d[0]===0;d.shift())--a;return d[0]?(t.d=d,t.e=a,Mt?bt(t,b):t):new v(0)}function ps(e,t,r){var a,s=Zt(e),o=Lr(e.d),c=o.length;return t?(r&&(a=r-c)>0?o=o.charAt(0)+"."+o.slice(1)+aa(a):c>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(s<0?"e":"e+")+s):s<0?(o="0."+aa(-s-1)+o,r&&(a=r-c)>0&&(o+=aa(a))):s>=c?(o+=aa(s+1-c),r&&(a=r-s-1)>0&&(o=o+"."+aa(a))):((a=s+1)<c&&(o=o.slice(0,a)+"."+o.slice(a)),r&&(a=r-c)>0&&(s+1===c&&(o+="."),o+=aa(a))),e.s<0?"-"+o:o}function jx(e,t){if(e.length>t)return e.length=t,!0}function W3(e){var t,r,a;function s(o){var c=this;if(!(c instanceof s))return new s(o);if(c.constructor=s,o instanceof s){c.s=o.s,c.e=o.e,c.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ls+o);if(o>0)c.s=1;else if(o<0)o=-o,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(o===~~o&&o<1e7){c.e=0,c.d=[o];return}return Lx(c,o.toString())}else if(typeof o!="string")throw Error(ls+o);if(o.charCodeAt(0)===45?(o=o.slice(1),c.s=-1):c.s=1,ZD.test(o))Lx(c,o);else throw Error(ls+o)}if(s.prototype=Ee,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.clone=W3,s.config=s.set=GD,e===void 0&&(e={}),e)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<a.length;)e.hasOwnProperty(r=a[t++])||(e[r]=this[r]);return s.config(e),s}function GD(e){if(!e||typeof e!="object")throw Error(or+"Object expected");var t,r,a,s=["precision",1,Gl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<s.length;t+=3)if((a=e[r=s[t]])!==void 0)if(Ql(a)===a&&a>=s[t+1]&&a<=s[t+2])this[r]=a;else throw Error(ls+r+": "+a);if((a=e[r="LN10"])!==void 0)if(a==Math.LN10)this[r]=new this(a);else throw Error(ls+r+": "+a);return this}var N0=W3(YD);In=new N0(1);const qU=N0;class UU extends Map{constructor(t,r=KD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,s]of t)this.set(a,s)}get(t){return super.get(Bx(this,t))}has(t){return super.has(Bx(this,t))}set(t,r){return super.set(QD(this,t),r)}delete(t){return super.delete(XD(this,t))}}function Bx({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function QD({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function XD({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function KD(e){return e!==null&&typeof e=="object"?e.valueOf():e}var Sg={exports:{}},qx;function WD(){return qx||(qx=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(r=!1));function s(d,y,m){this.fn=d,this.context=y,this.once=m||!1}function o(d,y,m,g,v){if(typeof m!="function")throw new TypeError("The listener must be a function");var b=new s(m,g||d,v),S=r?r+y:y;return d._events[S]?d._events[S].fn?d._events[S]=[d._events[S],b]:d._events[S].push(b):(d._events[S]=b,d._eventsCount++),d}function c(d,y){--d._eventsCount===0?d._events=new a:delete d._events[y]}function f(){this._events=new a,this._eventsCount=0}f.prototype.eventNames=function(){var y=[],m,g;if(this._eventsCount===0)return y;for(g in m=this._events)t.call(m,g)&&y.push(r?g.slice(1):g);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(m)):y},f.prototype.listeners=function(y){var m=r?r+y:y,g=this._events[m];if(!g)return[];if(g.fn)return[g.fn];for(var v=0,b=g.length,S=new Array(b);v<b;v++)S[v]=g[v].fn;return S},f.prototype.listenerCount=function(y){var m=r?r+y:y,g=this._events[m];return g?g.fn?1:g.length:0},f.prototype.emit=function(y,m,g,v,b,S){var _=r?r+y:y;if(!this._events[_])return!1;var x=this._events[_],E=arguments.length,k,M;if(x.fn){switch(x.once&&this.removeListener(y,x.fn,void 0,!0),E){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,m),!0;case 3:return x.fn.call(x.context,m,g),!0;case 4:return x.fn.call(x.context,m,g,v),!0;case 5:return x.fn.call(x.context,m,g,v,b),!0;case 6:return x.fn.call(x.context,m,g,v,b,S),!0}for(M=1,k=new Array(E-1);M<E;M++)k[M-1]=arguments[M];x.fn.apply(x.context,k)}else{var A=x.length,z;for(M=0;M<A;M++)switch(x[M].once&&this.removeListener(y,x[M].fn,void 0,!0),E){case 1:x[M].fn.call(x[M].context);break;case 2:x[M].fn.call(x[M].context,m);break;case 3:x[M].fn.call(x[M].context,m,g);break;case 4:x[M].fn.call(x[M].context,m,g,v);break;default:if(!k)for(z=1,k=new Array(E-1);z<E;z++)k[z-1]=arguments[z];x[M].fn.apply(x[M].context,k)}}return!0},f.prototype.on=function(y,m,g){return o(this,y,m,g,!1)},f.prototype.once=function(y,m,g){return o(this,y,m,g,!0)},f.prototype.removeListener=function(y,m,g,v){var b=r?r+y:y;if(!this._events[b])return this;if(!m)return c(this,b),this;var S=this._events[b];if(S.fn)S.fn===m&&(!v||S.once)&&(!g||S.context===g)&&c(this,b);else{for(var _=0,x=[],E=S.length;_<E;_++)(S[_].fn!==m||v&&!S[_].once||g&&S[_].context!==g)&&x.push(S[_]);x.length?this._events[b]=x.length===1?x[0]:x:c(this,b)}return this},f.prototype.removeAllListeners=function(y){var m;return y?(m=r?r+y:y,this._events[m]&&c(this,m)):(this._events=new a,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=r,f.EventEmitter=f,e.exports=f})(Sg)),Sg.exports}var JD=WD();const HU=ur(JD);var _g={exports:{}},pt={};/**
806
+ * @license React
807
+ * react-is.production.js
808
+ *
809
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
810
+ *
811
+ * This source code is licensed under the MIT license found in the
812
+ * LICENSE file in the root directory of this source tree.
813
+ */var Ux;function eL(){if(Ux)return pt;Ux=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function S(_){if(typeof _=="object"&&_!==null){var x=_.$$typeof;switch(x){case e:switch(_=_.type,_){case r:case s:case a:case d:case y:case v:return _;default:switch(_=_&&_.$$typeof,_){case c:case f:case g:case m:return _;case o:return _;default:return x}}case t:return x}}}return pt.ContextConsumer=o,pt.ContextProvider=c,pt.Element=e,pt.ForwardRef=f,pt.Fragment=r,pt.Lazy=g,pt.Memo=m,pt.Portal=t,pt.Profiler=s,pt.StrictMode=a,pt.Suspense=d,pt.SuspenseList=y,pt.isContextConsumer=function(_){return S(_)===o},pt.isContextProvider=function(_){return S(_)===c},pt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},pt.isForwardRef=function(_){return S(_)===f},pt.isFragment=function(_){return S(_)===r},pt.isLazy=function(_){return S(_)===g},pt.isMemo=function(_){return S(_)===m},pt.isPortal=function(_){return S(_)===t},pt.isProfiler=function(_){return S(_)===s},pt.isStrictMode=function(_){return S(_)===a},pt.isSuspense=function(_){return S(_)===d},pt.isSuspenseList=function(_){return S(_)===y},pt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===s||_===a||_===d||_===y||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===c||_.$$typeof===o||_.$$typeof===f||_.$$typeof===b||_.getModuleId!==void 0)},pt.typeOf=S,pt}var Hx;function tL(){return Hx||(Hx=1,_g.exports=eL()),_g.exports}var VU=tL(),xg={},Vx;function nL(){return Vx||(Vx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var s;if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const o=r[Symbol.toStringTag];return o==null||!((s=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))!=null&&s.writable)?!1:r.toString()===`[object ${o}]`}let a=r;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(r)===a}e.isPlainObject=t})(xg)),xg}var wg,Px;function rL(){return Px||(Px=1,wg=nL().isPlainObject),wg}var iL=rL();const PU=ur(iL);var aL="Invariant failed";function IU(e,t){throw new Error(aL)}function ol(e,t,r){let a=r.initialDeps??[],s,o=!0;function c(){var f,d,y;let m;r.key&&((f=r.debug)!=null&&f.call(r))&&(m=Date.now());const g=e();if(!(g.length!==a.length||g.some((S,_)=>a[_]!==S)))return s;a=g;let b;if(r.key&&((d=r.debug)!=null&&d.call(r))&&(b=Date.now()),s=t(...g),r.key&&((y=r.debug)!=null&&y.call(r))){const S=Math.round((Date.now()-m)*100)/100,_=Math.round((Date.now()-b)*100)/100,x=_/16,E=(k,M)=>{for(k=String(k);k.length<M;)k=" "+k;return k};console.info(`%c⏱ ${E(_,5)} /${E(S,5)} ms`,`
814
+ font-size: .6rem;
815
+ font-weight: bold;
816
+ color: hsl(${Math.max(0,Math.min(120-120*x,120))}deg 100% 31%);`,r==null?void 0:r.key)}return r!=null&&r.onChange&&!(o&&r.skipInitialOnChange)&&r.onChange(s),o=!1,s}return c.updateDeps=f=>{a=f},c}function Ix(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const sL=(e,t)=>Math.abs(e-t)<1.01,lL=(e,t,r)=>{let a;return function(...s){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,s),r)}},Fx=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},oL=e=>e,uL=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let s=t;s<=r;s++)a.push(s);return a},cL=(e,t)=>{const r=e.scrollElement;if(!r)return;const a=e.targetWindow;if(!a)return;const s=c=>{const{width:f,height:d}=c;t({width:Math.round(f),height:Math.round(d)})};if(s(Fx(r)),!a.ResizeObserver)return()=>{};const o=new a.ResizeObserver(c=>{const f=()=>{const d=c[0];if(d!=null&&d.borderBoxSize){const y=d.borderBoxSize[0];if(y){s({width:y.inlineSize,height:y.blockSize});return}}s(Fx(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},$x={passive:!0},Yx=typeof window>"u"?!0:"onscrollend"in window,fL=(e,t)=>{const r=e.scrollElement;if(!r)return;const a=e.targetWindow;if(!a)return;let s=0;const o=e.options.useScrollendEvent&&Yx?()=>{}:lL(a,()=>{t(s,!1)},e.options.isScrollingResetDelay),c=m=>()=>{const{horizontal:g,isRtl:v}=e.options;s=g?r.scrollLeft*(v&&-1||1):r.scrollTop,o(),t(s,m)},f=c(!0),d=c(!1);r.addEventListener("scroll",f,$x);const y=e.options.useScrollendEvent&&Yx;return y&&r.addEventListener("scrollend",d,$x),()=>{r.removeEventListener("scroll",f),y&&r.removeEventListener("scrollend",d)}},dL=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},hL=(e,{adjustments:t=0,behavior:r},a)=>{var s,o;const c=e+t;(o=(s=a.scrollElement)==null?void 0:s.scrollTo)==null||o.call(s,{[a.options.horizontal?"left":"top"]:c,behavior:r})};class yL{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var r,a,s;return((s=(a=(r=this.targetWindow)==null?void 0:r.performance)==null?void 0:a.now)==null?void 0:s.call(a))??Date.now()},this.observer=(()=>{let r=null;const a=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(s=>{s.forEach(o=>{const c=()=>{const f=o.target,d=this.indexFromElement(f);if(!f.isConnected){this.observer.unobserve(f);return}this.shouldMeasureDuringScroll(d)&&this.resizeItem(d,this.options.measureElement(f,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=a())==null||s.disconnect(),r=null},observe:s=>{var o;return(o=a())==null?void 0:o.observe(s,{box:"border-box"})},unobserve:s=>{var o;return(o=a())==null?void 0:o.unobserve(s)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([a,s])=>{typeof s>"u"&&delete r[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:oL,rangeExtractor:uL,onChange:()=>{},measureElement:dL,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var a,s;(s=(a=this.options).onChange)==null||s.call(a,this,r)},this.maybeNotify=ol(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=o,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,a)=>{const s=new Map,o=new Map;for(let c=a-1;c>=0;c--){const f=r[c];if(s.has(f.lane))continue;const d=o.get(f.lane);if(d==null||f.end>d.end?o.set(f.lane,f):f.end<d.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=ol(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,a,s,o,c,f)=>(this.prevLanes!==void 0&&this.prevLanes!==f&&(this.lanesChangedFlag=!0),this.prevLanes=f,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:a,scrollMargin:s,getItemKey:o,enabled:c,lanes:f}),{key:!1}),this.getMeasurements=ol(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:a,scrollMargin:s,getItemKey:o,enabled:c,lanes:f},d)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const v of this.laneAssignments.keys())v>=r&&this.laneAssignments.delete(v);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const y=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const m=this.measurementsCache.slice(0,y),g=new Array(f).fill(void 0);for(let v=0;v<y;v++){const b=m[v];b&&(g[b.lane]=v)}for(let v=y;v<r;v++){const b=o(v),S=this.laneAssignments.get(v);let _,x;if(S!==void 0&&this.options.lanes>1){_=S;const A=g[_],z=A!==void 0?m[A]:void 0;x=z?z.end+this.options.gap:a+s}else{const A=this.options.lanes===1?m[v-1]:this.getFurthestMeasurement(m,v);x=A?A.end+this.options.gap:a+s,_=A?A.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,_)}const E=d.get(b),k=typeof E=="number"?E:this.options.estimateSize(v),M=x+k;m[v]={index:v,start:x,size:k,end:M,key:b,lane:_},g[_]=v}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ol(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,a,s,o)=>this.range=r.length>0&&a>0?mL({measurements:r,outerSize:a,scrollOffset:s,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ol(()=>{let r=null,a=null;const s=this.calculateRange();return s&&(r=s.startIndex,a=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,a]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,a]},(r,a,s,o,c)=>o===null||c===null?[]:r({startIndex:o,endIndex:c,overscan:a,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const a=this.options.indexAttribute,s=r.getAttribute(a);return s?parseInt(s,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=r=>{var a;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((a=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:a.index);if(s!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),c=Math.max(0,s-o),f=Math.min(this.options.count-1,s+o);return r>=c&&r<=f}return!0},this.measureElement=r=>{if(!r){this.elementsCache.forEach((c,f)=>{c.isConnected||(this.observer.unobserve(c),this.elementsCache.delete(f))});return}const a=this.indexFromElement(r),s=this.options.getItemKey(a),o=this.elementsCache.get(s);o!==r&&(o&&this.observer.unobserve(o),this.observer.observe(r),this.elementsCache.set(s,r)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(a)&&this.resizeItem(a,this.options.measureElement(r,void 0,this))},this.resizeItem=(r,a)=>{var s;const o=this.measurementsCache[r];if(!o)return;const c=this.itemSizeCache.get(o.key)??o.size,f=a-c;f!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,f,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,a)),this.notify(!1))},this.getVirtualItems=ol(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,a)=>{const s=[];for(let o=0,c=r.length;o<c;o++){const f=r[o],d=a[f];s.push(d)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const a=this.getMeasurements();if(a.length!==0)return Ix(a[J3(0,a.length-1,s=>Ix(a[s]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,a,s=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),c=this.getScrollOffset();a==="auto"&&(a=r>=c+o?"end":"start"),a==="center"?r+=(s-o)/2:a==="end"&&(r-=o);const f=this.getMaxScrollOffset();return Math.max(Math.min(f,r),0)},this.getOffsetForIndex=(r,a="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const s=this.getSize(),o=this.getScrollOffset(),c=this.measurementsCache[r];if(!c)return;if(a==="auto")if(c.end>=o+s-this.options.scrollPaddingEnd)a="end";else if(c.start<=o+this.options.scrollPaddingStart)a="start";else return[o,a];if(a==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),a];const f=a==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,a,c.size),a]},this.scrollToOffset=(r,{align:a="start",behavior:s="auto"}={})=>{const o=this.getOffsetForAlignment(r,a),c=this.now();this.scrollState={index:null,align:a,behavior:s,startedAt:c,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(r,{align:a="auto",behavior:s="auto"}={})=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.getOffsetForIndex(r,a);if(!o)return;const[c,f]=o,d=this.now();this.scrollState={index:r,align:f,behavior:s,startedAt:d,lastTargetOffset:c,stableFrames:0},this._scrollToOffset(c,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(r,{behavior:a="auto"}={})=>{const s=this.getScrollOffset()+r,o=this.now();this.scrollState={index:null,align:"start",behavior:a,startedAt:o,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var r;const a=this.getMeasurements();let s;if(a.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((r=a[a.length-1])==null?void 0:r.end)??0;else{const o=Array(this.options.lanes).fill(null);let c=a.length-1;for(;c>=0&&o.some(f=>f===null);){const f=a[c];o[f.lane]===null&&(o[f.lane]=f.end),c--}s=Math.max(...o.filter(f=>f!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:a,behavior:s})=>{this.options.scrollToFn(r,{behavior:s,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const a=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=a?a[0]:this.scrollState.lastTargetOffset,o=1,c=s!==this.scrollState.lastTargetOffset;if(!c&&sL(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.scrollState=null;return}}else this.scrollState.stableFrames=0,c&&(this.scrollState.lastTargetOffset=s,this.scrollState.behavior="auto",this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const J3=(e,t,r,a)=>{for(;e<=t;){const s=(e+t)/2|0,o=r(s);if(o<a)e=s+1;else if(o>a)t=s-1;else return s}return e>0?e-1:0};function mL({measurements:e,outerSize:t,scrollOffset:r,lanes:a}){const s=e.length-1,o=d=>e[d].start;if(e.length<=a)return{startIndex:0,endIndex:s};let c=J3(0,s,o,r),f=c;if(a===1)for(;f<s&&e[f].end<r+t;)f++;else if(a>1){const d=Array(a).fill(0);for(;f<s&&d.some(m=>m<r+t);){const m=e[f];d[m.lane]=m.end,f++}const y=Array(a).fill(r+t);for(;c>=0&&y.some(m=>m>=r);){const m=e[c];y[m.lane]=m.start,c--}c=Math.max(0,c-c%a),f=Math.min(s,f+(a-1-f%a))}return{startIndex:c,endIndex:f}}const Zx=typeof document<"u"?R.useLayoutEffect:R.useEffect;function gL({useFlushSync:e=!0,...t}){const r=R.useReducer(()=>({}),{})[1],a={...t,onChange:(o,c)=>{var f;e&&c?AE.flushSync(r):r(),(f=t.onChange)==null||f.call(t,o,c)}},[s]=R.useState(()=>new yL(a));return s.setOptions(a),Zx(()=>s._didMount(),[]),Zx(()=>s._willUpdate()),s}function FU(e){return gL({observeElementRect:cL,observeElementOffset:fL,scrollToFn:hL,...e})}var Du=e=>e.type==="checkbox",Qa=e=>e instanceof Date,zn=e=>e==null;const e4=e=>typeof e=="object";var Ut=e=>!zn(e)&&!Array.isArray(e)&&e4(e)&&!Qa(e),pL=e=>Ut(e)&&e.target?Du(e.target)?e.target.checked:e.target.value:e,t4=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vL=(e,t)=>e.has(t4(t)),bL=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},O0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Jt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(O0&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(Ut(e)&&bL(e)))return e;const a=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=Jt(e[s]));return a}var Cd=e=>/^\w*$/.test(e),Tt=e=>e===void 0,z0=e=>Array.isArray(e)?e.filter(Boolean):[],D0=e=>z0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ce=(e,t,r)=>{if(!t||!Ut(e))return r;const a=(Cd(t)?[t]:D0(t)).reduce((s,o)=>zn(s)?s:s[o],e);return Tt(a)||a===e?Tt(e[t])?r:e[t]:a},Nr=e=>typeof e=="boolean",Sr=e=>typeof e=="function",xt=(e,t,r)=>{let a=-1;const s=Cd(t)?[t]:D0(t),o=s.length,c=o-1;for(;++a<o;){const f=s[a];let d=r;if(a!==c){const y=e[f];d=Ut(y)||Array.isArray(y)?y:isNaN(+s[a+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;e[f]=d,e=e[f]}};const ul={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},_r={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Eg="form",n4="root",SL=Bt.createContext(null);SL.displayName="HookFormControlContext";var _L=(e,t,r,a=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const c=o;return t._proxyFormState[c]!==_r.all&&(t._proxyFormState[c]=!a||_r.all),e[c]}});return s};const xL=typeof window<"u"?Bt.useLayoutEffect:Bt.useEffect;var bn=e=>typeof e=="string",wL=(e,t,r,a,s)=>bn(e)?(a&&t.watch.add(e),Ce(r,e,s)):Array.isArray(e)?e.map(o=>(a&&t.watch.add(o),Ce(r,o))):(a&&(t.watchAll=!0),r),Pp=e=>zn(e)||!e4(e);function la(e,t,r=new WeakSet){if(Pp(e)||Pp(t))return Object.is(e,t);if(Qa(e)&&Qa(t))return Object.is(e.getTime(),t.getTime());const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of a){const c=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const f=t[o];if(Qa(c)&&Qa(f)||Ut(c)&&Ut(f)||Array.isArray(c)&&Array.isArray(f)?!la(c,f,r):!Object.is(c,f))return!1}}return!0}const EL=Bt.createContext(null);EL.displayName="HookFormContext";var ML=(e,t,r,a,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{},nu=e=>Array.isArray(e)?e:[e],Gx=()=>{let e=[];return{get observers(){return e},next:s=>{for(const o of e)o.next&&o.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(o=>o!==s)}}),unsubscribe:()=>{e=[]}}};function r4(e,t){const r={};for(const a in e)if(e.hasOwnProperty(a)){const s=e[a],o=t[a];if(s&&Ut(s)&&o){const c=r4(s,o);Ut(c)&&(r[a]=c)}else e[a]&&(r[a]=o)}return r}var pn=e=>Ut(e)&&!Object.keys(e).length,L0=e=>e.type==="file",rd=e=>{if(!O0)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},i4=e=>e.type==="select-multiple",j0=e=>e.type==="radio",kL=e=>j0(e)||Du(e),Mg=e=>rd(e)&&e.isConnected;function AL(e,t){const r=t.slice(0,-1).length;let a=0;for(;a<r;)e=Tt(e)?a++:e[t[a++]];return e}function CL(e){for(const t in e)if(e.hasOwnProperty(t)&&!Tt(e[t]))return!1;return!0}function $t(e,t){const r=Array.isArray(t)?t:Cd(t)?[t]:D0(t),a=r.length===1?e:AL(e,r),s=r.length-1,o=r[s];return a&&delete a[o],s!==0&&(Ut(a)&&pn(a)||Array.isArray(a)&&CL(a))&&$t(e,r.slice(0,-1)),e}var TL=e=>{for(const t in e)if(Sr(e[t]))return!0;return!1};function a4(e){return Array.isArray(e)||Ut(e)&&!TL(e)}function Ip(e,t={}){for(const r in e){const a=e[r];a4(a)?(t[r]=Array.isArray(a)?[]:{},Ip(a,t[r])):Tt(a)||(t[r]=!0)}return t}function yl(e,t,r){r||(r=Ip(t));for(const a in e){const s=e[a];if(a4(s))Tt(t)||Pp(r[a])?r[a]=Ip(s,Array.isArray(s)?[]:{}):yl(s,zn(t)?{}:t[a],r[a]);else{const o=t[a];r[a]=!la(s,o)}}return r}const Qx={value:!1,isValid:!1},Xx={value:!0,isValid:!0};var s4=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Tt(e[0].attributes.value)?Tt(e[0].value)||e[0].value===""?Xx:{value:e[0].value,isValid:!0}:Xx:Qx}return Qx},l4=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>Tt(e)?e:t?e===""?NaN:e&&+e:r&&bn(e)?new Date(e):a?a(e):e;const Kx={isValid:!1,value:null};var o4=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Kx):Kx;function Wx(e){const t=e.ref;return L0(t)?t.files:j0(t)?o4(e.refs).value:i4(t)?[...t.selectedOptions].map(({value:r})=>r):Du(t)?s4(e.refs).value:l4(Tt(t.value)?e.ref.value:t.value,e)}var RL=(e,t,r,a)=>{const s={};for(const o of e){const c=Ce(t,o);c&&xt(s,o,c._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}},id=e=>e instanceof RegExp,Xo=e=>Tt(e)?e:id(e)?e.source:Ut(e)?id(e.value)?e.value.source:e.value:e,Jx=e=>({isOnSubmit:!e||e===_r.onSubmit,isOnBlur:e===_r.onBlur,isOnChange:e===_r.onChange,isOnAll:e===_r.all,isOnTouch:e===_r.onTouched});const ew="AsyncFunction";var NL=e=>!!e&&!!e.validate&&!!(Sr(e.validate)&&e.validate.constructor.name===ew||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ew)),OL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),tw=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(a=>e.startsWith(a)&&/^\.\w+/.test(e.slice(a.length))));const ru=(e,t,r,a)=>{for(const s of r||Object.keys(e)){const o=Ce(e,s);if(o){const{_f:c,...f}=o;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],s)&&!a)return!0;if(c.ref&&t(c.ref,c.name)&&!a)return!0;if(ru(f,t))break}else if(Ut(f)&&ru(f,t))break}}};function nw(e,t,r){const a=Ce(e,r);if(a||Cd(r))return{error:a,name:r};const s=r.split(".");for(;s.length;){const o=s.join("."),c=Ce(t,o),f=Ce(e,o);if(c&&!Array.isArray(c)&&r!==o)return{name:r};if(f&&f.type)return{name:o,error:f};if(f&&f.root&&f.root.type)return{name:`${o}.root`,error:f.root};s.pop()}return{name:r}}var zL=(e,t,r,a)=>{r(e);const{name:s,...o}=e;return pn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(c=>t[c]===(!a||_r.all))},DL=(e,t,r)=>!e||!t||e===t||nu(e).some(a=>a&&(r?a===t:a.startsWith(t)||t.startsWith(a))),LL=(e,t,r,a,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?a.isOnBlur:s.isOnBlur)?!e:(r?a.isOnChange:s.isOnChange)?e:!0,jL=(e,t)=>!z0(Ce(e,t)).length&&$t(e,t),BL=(e,t,r)=>{const a=nu(Ce(e,r));return xt(a,n4,t[r]),xt(e,r,a),e};function rw(e,t,r="validate"){if(bn(e)||Array.isArray(e)&&e.every(bn)||Nr(e)&&!e)return{type:r,message:bn(e)?e:"",ref:t}}var cl=e=>Ut(e)&&!id(e)?e:{value:e,message:""},iw=async(e,t,r,a,s,o)=>{const{ref:c,refs:f,required:d,maxLength:y,minLength:m,min:g,max:v,pattern:b,validate:S,name:_,valueAsNumber:x,mount:E}=e._f,k=Ce(r,_);if(!E||t.has(_))return{};const M=f?f[0]:c,A=j=>{s&&M.reportValidity&&(M.setCustomValidity(Nr(j)?"":j||""),M.reportValidity())},z={},N=j0(c),D=Du(c),T=N||D,L=(x||L0(c))&&Tt(c.value)&&Tt(k)||rd(c)&&c.value===""||k===""||Array.isArray(k)&&!k.length,G=ML.bind(null,_,a,z),B=(j,F,Q,re=gr.maxLength,q=gr.minLength)=>{const $=j?F:Q;z[_]={type:j?re:q,message:$,ref:c,...G(j?re:q,$)}};if(o?!Array.isArray(k)||!k.length:d&&(!T&&(L||zn(k))||Nr(k)&&!k||D&&!s4(f).isValid||N&&!o4(f).isValid)){const{value:j,message:F}=bn(d)?{value:!!d,message:d}:cl(d);if(j&&(z[_]={type:gr.required,message:F,ref:M,...G(gr.required,F)},!a))return A(F),z}if(!L&&(!zn(g)||!zn(v))){let j,F;const Q=cl(v),re=cl(g);if(!zn(k)&&!isNaN(k)){const q=c.valueAsNumber||k&&+k;zn(Q.value)||(j=q>Q.value),zn(re.value)||(F=q<re.value)}else{const q=c.valueAsDate||new Date(k),$=W=>new Date(new Date().toDateString()+" "+W),Z=c.type=="time",K=c.type=="week";bn(Q.value)&&k&&(j=Z?$(k)>$(Q.value):K?k>Q.value:q>new Date(Q.value)),bn(re.value)&&k&&(F=Z?$(k)<$(re.value):K?k<re.value:q<new Date(re.value))}if((j||F)&&(B(!!j,Q.message,re.message,gr.max,gr.min),!a))return A(z[_].message),z}if((y||m)&&!L&&(bn(k)||o&&Array.isArray(k))){const j=cl(y),F=cl(m),Q=!zn(j.value)&&k.length>+j.value,re=!zn(F.value)&&k.length<+F.value;if((Q||re)&&(B(Q,j.message,F.message),!a))return A(z[_].message),z}if(b&&!L&&bn(k)){const{value:j,message:F}=cl(b);if(id(j)&&!k.match(j)&&(z[_]={type:gr.pattern,message:F,ref:c,...G(gr.pattern,F)},!a))return A(F),z}if(S){if(Sr(S)){const j=await S(k,r),F=rw(j,M);if(F&&(z[_]={...F,...G(gr.validate,F.message)},!a))return A(F.message),z}else if(Ut(S)){let j={};for(const F in S){if(!pn(j)&&!a)break;const Q=rw(await S[F](k,r),M,F);Q&&(j={...Q,...G(F,Q.message)},A(Q.message),a&&(z[_]=j))}if(!pn(j)&&(z[_]={ref:M,...j},!a))return z}}return A(!0),z};const qL={mode:_r.onSubmit,reValidateMode:_r.onChange,shouldFocusError:!0};function UL(e={}){let t={...qL,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Sr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},a={},s=Ut(t.defaultValues)||Ut(t.values)?Jt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Jt(s),c={action:!1,mount:!1,watch:!1,keepIsValid:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,y=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={...m};let v={...g};const b={array:Gx(),state:Gx()},S=t.criteriaMode===_r.all,_=H=>X=>{clearTimeout(y),y=setTimeout(H,X)},x=async H=>{if(!c.keepIsValid&&!t.disabled&&(g.isValid||v.isValid||H)){let X;t.resolver?(X=pn((await T()).errors),E()):X=await B({fields:a,onlyCheckValid:!0,eventType:ul.VALID}),X!==r.isValid&&b.state.next({isValid:X})}},E=(H,X)=>{!t.disabled&&(g.isValidating||g.validatingFields||v.isValidating||v.validatingFields)&&((H||Array.from(f.mount)).forEach(te=>{te&&(X?xt(r.validatingFields,te,X):$t(r.validatingFields,te))}),b.state.next({validatingFields:r.validatingFields,isValidating:!pn(r.validatingFields)}))},k=(H,X=[],te,Se,ge=!0,pe=!0)=>{if(Se&&te&&!t.disabled){if(c.action=!0,pe&&Array.isArray(Ce(a,H))){const we=te(Ce(a,H),Se.argA,Se.argB);ge&&xt(a,H,we)}if(pe&&Array.isArray(Ce(r.errors,H))){const we=te(Ce(r.errors,H),Se.argA,Se.argB);ge&&xt(r.errors,H,we),jL(r.errors,H)}if((g.touchedFields||v.touchedFields)&&pe&&Array.isArray(Ce(r.touchedFields,H))){const we=te(Ce(r.touchedFields,H),Se.argA,Se.argB);ge&&xt(r.touchedFields,H,we)}if(g.dirtyFields||v.dirtyFields){const we=yl(s,o),Ve=t4(H);xt(r.dirtyFields,Ve,Ce(we,Ve))}b.state.next({name:H,isDirty:F(H,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else xt(o,H,X)},M=(H,X)=>{xt(r.errors,H,X),b.state.next({errors:r.errors})},A=H=>{r.errors=H,b.state.next({errors:r.errors,isValid:!1})},z=(H,X,te,Se)=>{const ge=Ce(a,H);if(ge){const pe=Ce(o,H,Tt(te)?Ce(s,H):te);Tt(pe)||Se&&Se.defaultChecked||X?xt(o,H,X?pe:Wx(ge._f)):q(H,pe),c.mount&&!c.action&&x()}},N=(H,X,te,Se,ge)=>{let pe=!1,we=!1;const Ve={name:H};if(!t.disabled){if(!te||Se){(g.isDirty||v.isDirty)&&(we=r.isDirty,r.isDirty=Ve.isDirty=F(),pe=we!==Ve.isDirty);const Je=la(Ce(s,H),X);we=!!Ce(r.dirtyFields,H),Je?$t(r.dirtyFields,H):xt(r.dirtyFields,H,!0),Ve.dirtyFields=r.dirtyFields,pe=pe||(g.dirtyFields||v.dirtyFields)&&we!==!Je}if(te){const Je=Ce(r.touchedFields,H);Je||(xt(r.touchedFields,H,te),Ve.touchedFields=r.touchedFields,pe=pe||(g.touchedFields||v.touchedFields)&&Je!==te)}pe&&ge&&b.state.next(Ve)}return pe?Ve:{}},D=(H,X,te,Se)=>{const ge=Ce(r.errors,H),pe=(g.isValid||v.isValid)&&Nr(X)&&r.isValid!==X;if(t.delayError&&te?(d=_(()=>M(H,te)),d(t.delayError)):(clearTimeout(y),d=null,te?xt(r.errors,H,te):$t(r.errors,H)),(te?!la(ge,te):ge)||!pn(Se)||pe){const we={...Se,...pe&&Nr(X)?{isValid:X}:{},errors:r.errors,name:H};r={...r,...we},b.state.next(we)}},T=async H=>(E(H,!0),await t.resolver(o,t.context,RL(H||f.mount,a,t.criteriaMode,t.shouldUseNativeValidation))),L=async H=>{const{errors:X}=await T(H);if(E(H),H)for(const te of H){const Se=Ce(X,te);Se?xt(r.errors,te,Se):$t(r.errors,te)}else r.errors=X;return X},G=async({name:H,eventType:X})=>{if(e.validate){const te=await e.validate({formValues:o,formState:r,name:H,eventType:X});if(Ut(te))for(const Se in te)te[Se]&&de(`${Eg}.${Se}`,{message:bn(te.message)?te.message:"",type:gr.validate});else bn(te)||!te?de(Eg,{message:te||"",type:gr.validate}):ce(Eg);return te}return!0},B=async({fields:H,onlyCheckValid:X,name:te,eventType:Se,context:ge={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(ge.runRootValidation=!0,!await G({name:te,eventType:Se})&&(ge.valid=!1,X)))return ge.valid;for(const pe in H){const we=H[pe];if(we){const{_f:Ve,...Je}=we;if(Ve){const rn=f.array.has(Ve.name),_n=we._f&&NL(we._f);_n&&g.validatingFields&&E([Ve.name],!0);const Rt=await iw(we,f.disabled,o,S,t.shouldUseNativeValidation&&!X,rn);if(_n&&g.validatingFields&&E([Ve.name]),Rt[Ve.name]&&(ge.valid=!1,X)||(!X&&(Ce(Rt,Ve.name)?rn?BL(r.errors,Rt,Ve.name):xt(r.errors,Ve.name,Rt[Ve.name]):$t(r.errors,Ve.name)),e.shouldUseNativeValidation&&Rt[Ve.name]))break}!pn(Je)&&await B({context:ge,onlyCheckValid:X,fields:Je,name:pe,eventType:Se})}}return ge.valid},j=()=>{for(const H of f.unMount){const X=Ce(a,H);X&&(X._f.refs?X._f.refs.every(te=>!Mg(te)):!Mg(X._f.ref))&&he(H)}f.unMount=new Set},F=(H,X)=>!t.disabled&&(H&&X&&xt(o,H,X),!la(P(),s)),Q=(H,X,te)=>wL(H,f,{...c.mount?o:Tt(X)?s:bn(H)?{[H]:X}:X},te,X),re=H=>z0(Ce(c.mount?o:s,H,t.shouldUnregister?Ce(s,H,[]):[])),q=(H,X,te={})=>{const Se=Ce(a,H);let ge=X;if(Se){const pe=Se._f;pe&&(!pe.disabled&&xt(o,H,l4(X,pe)),ge=rd(pe.ref)&&zn(X)?"":X,i4(pe.ref)?[...pe.ref.options].forEach(we=>we.selected=ge.includes(we.value)):pe.refs?Du(pe.ref)?pe.refs.forEach(we=>{(!we.defaultChecked||!we.disabled)&&(Array.isArray(ge)?we.checked=!!ge.find(Ve=>Ve===we.value):we.checked=ge===we.value||!!ge)}):pe.refs.forEach(we=>we.checked=we.value===ge):L0(pe.ref)?pe.ref.value="":(pe.ref.value=ge,pe.ref.type||b.state.next({name:H,values:Jt(o)})))}(te.shouldDirty||te.shouldTouch)&&N(H,ge,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&O(H)},$=(H,X,te)=>{for(const Se in X){if(!X.hasOwnProperty(Se))return;const ge=X[Se],pe=H+"."+Se,we=Ce(a,pe);(f.array.has(H)||Ut(ge)||we&&!we._f)&&!Qa(ge)?$(pe,ge,te):q(pe,ge,te)}},Z=(H,X,te={})=>{const Se=Ce(a,H),ge=f.array.has(H),pe=Jt(X);xt(o,H,pe),ge?(b.array.next({name:H,values:Jt(o)}),(g.isDirty||g.dirtyFields||v.isDirty||v.dirtyFields)&&te.shouldDirty&&b.state.next({name:H,dirtyFields:yl(s,o),isDirty:F(H,pe)})):Se&&!Se._f&&!zn(pe)?$(H,pe,te):q(H,pe,te),tw(H,f)?b.state.next({...r,name:H,values:Jt(o)}):b.state.next({name:c.mount?H:void 0,values:Jt(o)})},K=async H=>{c.mount=!0;const X=H.target;let te=X.name,Se=!0;const ge=Ce(a,te),pe=Je=>{Se=Number.isNaN(Je)||Qa(Je)&&isNaN(Je.getTime())||la(Je,Ce(o,te,Je))},we=Jx(t.mode),Ve=Jx(t.reValidateMode);if(ge){let Je,rn;const _n=X.type?Wx(ge._f):pL(H),Rt=H.type===ul.BLUR||H.type===ul.FOCUS_OUT,an=!OL(ge._f)&&!e.validate&&!t.resolver&&!Ce(r.errors,te)&&!ge._f.deps||LL(Rt,Ce(r.touchedFields,te),r.isSubmitted,Ve,we),xn=tw(te,f,Rt);xt(o,te,_n),Rt?(!X||!X.readOnly)&&(ge._f.onBlur&&ge._f.onBlur(H),d&&d(0)):ge._f.onChange&&ge._f.onChange(H);const Qt=N(te,_n,Rt),Xl=!pn(Qt)||xn;if(!Rt&&b.state.next({name:te,type:H.type,values:Jt(o)}),an)return(g.isValid||v.isValid)&&(t.mode==="onBlur"?Rt&&x():Rt||x()),Xl&&b.state.next({name:te,...xn?{}:Qt});if(!t.resolver&&e.validate&&await G({name:te,eventType:H.type}),!Rt&&xn&&b.state.next({...r}),t.resolver){const{errors:_s}=await T([te]);if(E([te]),pe(_n),Se){const Kl=nw(r.errors,a,te),Vr=nw(_s,a,Kl.name||te);Je=Vr.error,te=Vr.name,rn=pn(_s)}}else E([te],!0),Je=(await iw(ge,f.disabled,o,S,t.shouldUseNativeValidation))[te],E([te]),pe(_n),Se&&(Je?rn=!1:(g.isValid||v.isValid)&&(rn=await B({fields:a,onlyCheckValid:!0,name:te,eventType:H.type})));Se&&(ge._f.deps&&(!Array.isArray(ge._f.deps)||ge._f.deps.length>0)&&O(ge._f.deps),D(te,rn,Je,Qt))}},W=(H,X)=>{if(Ce(r.errors,X)&&H.focus)return H.focus(),1},O=async(H,X={})=>{let te,Se;const ge=nu(H);if(t.resolver){const pe=await L(Tt(H)?H:ge);te=pn(pe),Se=H?!ge.some(we=>Ce(pe,we)):te}else H?(Se=(await Promise.all(ge.map(async pe=>{const we=Ce(a,pe);return await B({fields:we&&we._f?{[pe]:we}:we,eventType:ul.TRIGGER})}))).every(Boolean),!(!Se&&!r.isValid)&&x()):Se=te=await B({fields:a,name:H,eventType:ul.TRIGGER});return b.state.next({...!bn(H)||(g.isValid||v.isValid)&&te!==r.isValid?{}:{name:H},...t.resolver||!H?{isValid:te}:{},errors:r.errors}),X.shouldFocus&&!Se&&ru(a,W,H?ge:f.mount),Se},P=(H,X)=>{let te={...c.mount?o:s};return X&&(te=r4(X.dirtyFields?r.dirtyFields:r.touchedFields,te)),Tt(H)?te:bn(H)?Ce(te,H):H.map(Se=>Ce(te,Se))},se=(H,X)=>({invalid:!!Ce((X||r).errors,H),isDirty:!!Ce((X||r).dirtyFields,H),error:Ce((X||r).errors,H),isValidating:!!Ce(r.validatingFields,H),isTouched:!!Ce((X||r).touchedFields,H)}),ce=H=>{const X=H?nu(H):void 0;X==null||X.forEach(te=>$t(r.errors,te)),X?X.forEach(te=>{b.state.next({name:te,errors:r.errors})}):b.state.next({errors:{}})},de=(H,X,te)=>{const Se=(Ce(a,H,{_f:{}})._f||{}).ref,ge=Ce(r.errors,H)||{},{ref:pe,message:we,type:Ve,...Je}=ge;xt(r.errors,H,{...Je,...X,ref:Se}),b.state.next({name:H,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&Se&&Se.focus&&Se.focus()},me=(H,X)=>Sr(H)?b.state.subscribe({next:te=>"values"in te&&H(Q(void 0,X),te)}):Q(H,X,!0),be=H=>b.state.subscribe({next:X=>{DL(H.name,X.name,H.exact)&&zL(X,H.formState||g,yn,H.reRenderRoot)&&H.callback({values:{...o},...r,...X,defaultValues:s})}}).unsubscribe,ye=H=>(c.mount=!0,v={...v,...H.formState},be({...H,formState:{...m,...H.formState}})),he=(H,X={})=>{for(const te of H?nu(H):f.mount)f.mount.delete(te),f.array.delete(te),X.keepValue||($t(a,te),$t(o,te)),!X.keepError&&$t(r.errors,te),!X.keepDirty&&$t(r.dirtyFields,te),!X.keepTouched&&$t(r.touchedFields,te),!X.keepIsValidating&&$t(r.validatingFields,te),!t.shouldUnregister&&!X.keepDefaultValue&&$t(s,te);b.state.next({values:Jt(o)}),b.state.next({...r,...X.keepDirty?{isDirty:F()}:{}}),!X.keepIsValid&&x()},qe=({disabled:H,name:X})=>{if(Nr(H)&&c.mount||H||f.disabled.has(X)){const ge=f.disabled.has(X)!==!!H;H?f.disabled.add(X):f.disabled.delete(X),ge&&c.mount&&!c.action&&x()}},De=(H,X={})=>{let te=Ce(a,H);const Se=Nr(X.disabled)||Nr(t.disabled);return xt(a,H,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:H}},name:H,mount:!0,...X}}),f.mount.add(H),te?qe({disabled:Nr(X.disabled)?X.disabled:t.disabled,name:H}):z(H,!0,X.value),{...Se?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:Xo(X.min),max:Xo(X.max),minLength:Xo(X.minLength),maxLength:Xo(X.maxLength),pattern:Xo(X.pattern)}:{},name:H,onChange:K,onBlur:K,ref:ge=>{if(ge){De(H,X),te=Ce(a,H);const pe=Tt(ge.value)&&ge.querySelectorAll&&ge.querySelectorAll("input,select,textarea")[0]||ge,we=kL(pe),Ve=te._f.refs||[];if(we?Ve.find(Je=>Je===pe):pe===te._f.ref)return;xt(a,H,{_f:{...te._f,...we?{refs:[...Ve.filter(Mg),pe,...Array.isArray(Ce(s,H))?[{}]:[]],ref:{type:pe.type,name:H}}:{ref:pe}}}),z(H,!1,void 0,pe)}else te=Ce(a,H,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(vL(f.array,H)&&c.action)&&f.unMount.add(H)}}},Re=()=>t.shouldFocusError&&ru(a,W,f.mount),ze=H=>{Nr(H)&&(b.state.next({disabled:H}),ru(a,(X,te)=>{const Se=Ce(a,te);Se&&(X.disabled=Se._f.disabled||H,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(ge=>{ge.disabled=Se._f.disabled||H}))},0,!1))},He=(H,X)=>async te=>{let Se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let ge=Jt(o);if(b.state.next({isSubmitting:!0}),t.resolver){const{errors:pe,values:we}=await T();E(),r.errors=pe,ge=Jt(we)}else await B({fields:a,eventType:ul.SUBMIT});if(f.disabled.size)for(const pe of f.disabled)$t(ge,pe);if($t(r.errors,n4),pn(r.errors)){b.state.next({errors:{}});try{await H(ge,te)}catch(pe){Se=pe}}else X&&await X({...r.errors},te),Re(),setTimeout(Re);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:pn(r.errors)&&!Se,submitCount:r.submitCount+1,errors:r.errors}),Se)throw Se},ut=(H,X={})=>{Ce(a,H)&&(Tt(X.defaultValue)?Z(H,Jt(Ce(s,H))):(Z(H,X.defaultValue),xt(s,H,Jt(X.defaultValue))),X.keepTouched||$t(r.touchedFields,H),X.keepDirty||($t(r.dirtyFields,H),r.isDirty=X.defaultValue?F(H,Jt(Ce(s,H))):F()),X.keepError||($t(r.errors,H),g.isValid&&x()),b.state.next({...r}))},Ge=(H,X={})=>{const te=H?Jt(H):s,Se=Jt(te),ge=pn(H),pe=ge?s:Se;if(X.keepDefaultValues||(s=te),!X.keepValues){if(X.keepDirtyValues){const we=new Set([...f.mount,...Object.keys(yl(s,o))]);for(const Ve of Array.from(we)){const Je=Ce(r.dirtyFields,Ve),rn=Ce(o,Ve),_n=Ce(pe,Ve);Je&&!Tt(rn)?xt(pe,Ve,rn):!Je&&!Tt(_n)&&Z(Ve,_n)}}else{if(O0&&Tt(H))for(const we of f.mount){const Ve=Ce(a,we);if(Ve&&Ve._f){const Je=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(rd(Je)){const rn=Je.closest("form");if(rn){rn.reset();break}}}}if(X.keepFieldsRef)for(const we of f.mount)Z(we,Ce(pe,we));else a={}}o=t.shouldUnregister?X.keepDefaultValues?Jt(s):{}:Jt(pe),b.array.next({values:{...pe}}),b.state.next({values:{...pe}})}f={mount:X.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!g.isValid||!!X.keepIsValid||!!X.keepDirtyValues||!t.shouldUnregister&&!pn(pe),c.watch=!!t.shouldUnregister,c.keepIsValid=!!X.keepIsValid,c.action=!1,X.keepErrors||(r.errors={}),b.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:ge?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!la(H,s)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ge?{}:X.keepDirtyValues?X.keepDefaultValues&&o?yl(s,o):r.dirtyFields:X.keepDefaultValues&&H?yl(s,H):X.keepDirty?r.dirtyFields:{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Dt=(H,X)=>Ge(Sr(H)?H(o):H,{...t.resetOptions,...X}),Dn=(H,X={})=>{const te=Ce(a,H),Se=te&&te._f;if(Se){const ge=Se.refs?Se.refs[0]:Se.ref;ge.focus&&setTimeout(()=>{ge.focus(),X.shouldSelect&&Sr(ge.select)&&ge.select()})}},yn=H=>{r={...r,...H}},Xn={control:{register:De,unregister:he,getFieldState:se,handleSubmit:He,setError:de,_subscribe:be,_runSchema:T,_updateIsValidating:E,_focusError:Re,_getWatch:Q,_getDirty:F,_setValid:x,_setFieldArray:k,_setDisabledField:qe,_setErrors:A,_getFieldArray:re,_reset:Ge,_resetDefaultValues:()=>Sr(t.defaultValues)&&t.defaultValues().then(H=>{Dt(H,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:j,_disableForm:ze,_subjects:b,_proxyFormState:g,get _fields(){return a},get _formValues(){return o},get _state(){return c},set _state(H){c=H},get _defaultValues(){return s},get _names(){return f},set _names(H){f=H},get _formState(){return r},get _options(){return t},set _options(H){t={...t,...H}}},subscribe:ye,trigger:O,register:De,handleSubmit:He,watch:me,setValue:Z,getValues:P,reset:Dt,resetField:ut,clearErrors:ce,unregister:he,setError:de,setFocus:Dn,getFieldState:se};return{...Xn,formControl:Xn}}function $U(e={}){const t=Bt.useRef(void 0),r=Bt.useRef(void 0),[a,s]=Bt.useState({isDirty:!1,isValidating:!1,isLoading:Sr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Sr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!Sr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...f}=UL(e);t.current={...f,formState:a}}const o=t.current.control;return o._options=e,xL(()=>{const c=o._subscribe({formState:o._proxyFormState,callback:()=>s({...o._formState}),reRenderRoot:!0});return s(f=>({...f,isReady:!0})),o._formState.isReady=!0,c},[o]),Bt.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Bt.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),Bt.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),Bt.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),Bt.useEffect(()=>{if(o._proxyFormState.isDirty){const c=o._getDirty();c!==a.isDirty&&o._subjects.state.next({isDirty:c})}},[o,a.isDirty]),Bt.useEffect(()=>{var c;e.values&&!la(e.values,r.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((c=o._options.resetOptions)===null||c===void 0)&&c.keepIsValid||o._setValid(),r.current=e.values,s(f=>({...f}))):o._resetDefaultValues()},[o,e.values]),Bt.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Bt.useMemo(()=>_L(a,o),[o,a]),t.current}var fl={},kg,aw;function HL(){return aw||(aw=1,kg=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),kg}var Ag={},na={},sw;function bs(){if(sw)return na;sw=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return na.getSymbolSize=function(a){if(!a)throw new Error('"version" cannot be null or undefined');if(a<1||a>40)throw new Error('"version" should be in range from 1 to 40');return a*4+17},na.getSymbolTotalCodewords=function(a){return t[a]},na.getBCHDigit=function(r){let a=0;for(;r!==0;)a++,r>>>=1;return a},na.setToSJISFunction=function(a){if(typeof a!="function")throw new Error('"toSJISFunc" is not a valid function.');e=a},na.isKanjiModeEnabled=function(){return typeof e<"u"},na.toSJIS=function(a){return e(a)},na}var Cg={},lw;function B0(){return lw||(lw=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},e.from=function(a,s){if(e.isValid(a))return a;try{return t(a)}catch{return s}}})(Cg)),Cg}var Tg,ow;function VL(){if(ow)return Tg;ow=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const r=Math.floor(t/8);return(this.buffer[r]>>>7-t%8&1)===1},put:function(t,r){for(let a=0;a<r;a++)this.putBit((t>>>r-a-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},Tg=e,Tg}var Rg,uw;function PL(){if(uw)return Rg;uw=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,a,s){const o=t*this.size+r;this.data[o]=a,s&&(this.reservedBit[o]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,a){this.data[t*this.size+r]^=a},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},Rg=e,Rg}var Ng={},cw;function IL(){return cw||(cw=1,(function(e){const t=bs().getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const s=Math.floor(a/7)+2,o=t(a),c=o===145?26:Math.ceil((o-13)/(2*s-2))*2,f=[o-7];for(let d=1;d<s-1;d++)f[d]=f[d-1]-c;return f.push(6),f.reverse()},e.getPositions=function(a){const s=[],o=e.getRowColCoords(a),c=o.length;for(let f=0;f<c;f++)for(let d=0;d<c;d++)f===0&&d===0||f===0&&d===c-1||f===c-1&&d===0||s.push([o[f],o[d]]);return s}})(Ng)),Ng}var Og={},fw;function FL(){if(fw)return Og;fw=1;const e=bs().getSymbolSize,t=7;return Og.getPositions=function(a){const s=e(a);return[[0,0],[s-t,0],[0,s-t]]},Og}var zg={},dw;function $L(){return dw||(dw=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},e.from=function(s){return e.isValid(s)?parseInt(s,10):void 0},e.getPenaltyN1=function(s){const o=s.size;let c=0,f=0,d=0,y=null,m=null;for(let g=0;g<o;g++){f=d=0,y=m=null;for(let v=0;v<o;v++){let b=s.get(g,v);b===y?f++:(f>=5&&(c+=t.N1+(f-5)),y=b,f=1),b=s.get(v,g),b===m?d++:(d>=5&&(c+=t.N1+(d-5)),m=b,d=1)}f>=5&&(c+=t.N1+(f-5)),d>=5&&(c+=t.N1+(d-5))}return c},e.getPenaltyN2=function(s){const o=s.size;let c=0;for(let f=0;f<o-1;f++)for(let d=0;d<o-1;d++){const y=s.get(f,d)+s.get(f,d+1)+s.get(f+1,d)+s.get(f+1,d+1);(y===4||y===0)&&c++}return c*t.N2},e.getPenaltyN3=function(s){const o=s.size;let c=0,f=0,d=0;for(let y=0;y<o;y++){f=d=0;for(let m=0;m<o;m++)f=f<<1&2047|s.get(y,m),m>=10&&(f===1488||f===93)&&c++,d=d<<1&2047|s.get(m,y),m>=10&&(d===1488||d===93)&&c++}return c*t.N3},e.getPenaltyN4=function(s){let o=0;const c=s.data.length;for(let d=0;d<c;d++)o+=s.data[d];return Math.abs(Math.ceil(o*100/c/5)-10)*t.N4};function r(a,s,o){switch(a){case e.Patterns.PATTERN000:return(s+o)%2===0;case e.Patterns.PATTERN001:return s%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(s+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return s*o%2+s*o%3===0;case e.Patterns.PATTERN110:return(s*o%2+s*o%3)%2===0;case e.Patterns.PATTERN111:return(s*o%3+(s+o)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(s,o){const c=o.size;for(let f=0;f<c;f++)for(let d=0;d<c;d++)o.isReserved(d,f)||o.xor(d,f,r(s,d,f))},e.getBestMask=function(s,o){const c=Object.keys(e.Patterns).length;let f=0,d=1/0;for(let y=0;y<c;y++){o(y),e.applyMask(y,s);const m=e.getPenaltyN1(s)+e.getPenaltyN2(s)+e.getPenaltyN3(s)+e.getPenaltyN4(s);e.applyMask(y,s),m<d&&(d=m,f=y)}return f}})(zg)),zg}var _f={},hw;function u4(){if(hw)return _f;hw=1;const e=B0(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return _f.getBlocksCount=function(s,o){switch(o){case e.L:return t[(s-1)*4+0];case e.M:return t[(s-1)*4+1];case e.Q:return t[(s-1)*4+2];case e.H:return t[(s-1)*4+3];default:return}},_f.getTotalCodewordsCount=function(s,o){switch(o){case e.L:return r[(s-1)*4+0];case e.M:return r[(s-1)*4+1];case e.Q:return r[(s-1)*4+2];case e.H:return r[(s-1)*4+3];default:return}},_f}var Dg={},Ko={},yw;function YL(){if(yw)return Ko;yw=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let a=1;for(let s=0;s<255;s++)e[s]=a,t[a]=s,a<<=1,a&256&&(a^=285);for(let s=255;s<512;s++)e[s]=e[s-255]})(),Ko.log=function(a){if(a<1)throw new Error("log("+a+")");return t[a]},Ko.exp=function(a){return e[a]},Ko.mul=function(a,s){return a===0||s===0?0:e[t[a]+t[s]]},Ko}var mw;function ZL(){return mw||(mw=1,(function(e){const t=YL();e.mul=function(a,s){const o=new Uint8Array(a.length+s.length-1);for(let c=0;c<a.length;c++)for(let f=0;f<s.length;f++)o[c+f]^=t.mul(a[c],s[f]);return o},e.mod=function(a,s){let o=new Uint8Array(a);for(;o.length-s.length>=0;){const c=o[0];for(let d=0;d<s.length;d++)o[d]^=t.mul(s[d],c);let f=0;for(;f<o.length&&o[f]===0;)f++;o=o.slice(f)}return o},e.generateECPolynomial=function(a){let s=new Uint8Array([1]);for(let o=0;o<a;o++)s=e.mul(s,new Uint8Array([1,t.exp(o)]));return s}})(Dg)),Dg}var Lg,gw;function GL(){if(gw)return Lg;gw=1;const e=ZL();function t(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(a){this.degree=a,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(a){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(a.length+this.degree);s.set(a);const o=e.mod(s,this.genPoly),c=this.degree-o.length;if(c>0){const f=new Uint8Array(this.degree);return f.set(o,c),f}return o},Lg=t,Lg}var jg={},Bg={},qg={},pw;function c4(){return pw||(pw=1,qg.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),qg}var Rr={},vw;function f4(){if(vw)return Rr;vw=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
817
+ ]))+`;Rr.KANJI=new RegExp(r,"g"),Rr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Rr.BYTE=new RegExp(a,"g"),Rr.NUMERIC=new RegExp(e,"g"),Rr.ALPHANUMERIC=new RegExp(t,"g");const s=new RegExp("^"+r+"$"),o=new RegExp("^"+e+"$"),c=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Rr.testKanji=function(d){return s.test(d)},Rr.testNumeric=function(d){return o.test(d)},Rr.testAlphanumeric=function(d){return c.test(d)},Rr}var bw;function Ss(){return bw||(bw=1,(function(e){const t=c4(),r=f4();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,c){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(c))throw new Error("Invalid version: "+c);return c>=1&&c<10?o.ccBits[0]:c<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return r.testNumeric(o)?e.NUMERIC:r.testAlphanumeric(o)?e.ALPHANUMERIC:r.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function a(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+s)}}e.from=function(o,c){if(e.isValid(o))return o;try{return a(o)}catch{return c}}})(Bg)),Bg}var Sw;function QL(){return Sw||(Sw=1,(function(e){const t=bs(),r=u4(),a=B0(),s=Ss(),o=c4(),c=7973,f=t.getBCHDigit(c);function d(v,b,S){for(let _=1;_<=40;_++)if(b<=e.getCapacity(_,S,v))return _}function y(v,b){return s.getCharCountIndicator(v,b)+4}function m(v,b){let S=0;return v.forEach(function(_){const x=y(_.mode,b);S+=x+_.getBitsLength()}),S}function g(v,b){for(let S=1;S<=40;S++)if(m(v,S)<=e.getCapacity(S,b,s.MIXED))return S}e.from=function(b,S){return o.isValid(b)?parseInt(b,10):S},e.getCapacity=function(b,S,_){if(!o.isValid(b))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=s.BYTE);const x=t.getSymbolTotalCodewords(b),E=r.getTotalCodewordsCount(b,S),k=(x-E)*8;if(_===s.MIXED)return k;const M=k-y(_,b);switch(_){case s.NUMERIC:return Math.floor(M/10*3);case s.ALPHANUMERIC:return Math.floor(M/11*2);case s.KANJI:return Math.floor(M/13);case s.BYTE:default:return Math.floor(M/8)}},e.getBestVersionForData=function(b,S){let _;const x=a.from(S,a.M);if(Array.isArray(b)){if(b.length>1)return g(b,x);if(b.length===0)return 1;_=b[0]}else _=b;return d(_.mode,_.getLength(),x)},e.getEncodedBits=function(b){if(!o.isValid(b)||b<7)throw new Error("Invalid QR Code version");let S=b<<12;for(;t.getBCHDigit(S)-f>=0;)S^=c<<t.getBCHDigit(S)-f;return b<<12|S}})(jg)),jg}var Ug={},_w;function XL(){if(_w)return Ug;_w=1;const e=bs(),t=1335,r=21522,a=e.getBCHDigit(t);return Ug.getEncodedBits=function(o,c){const f=o.bit<<3|c;let d=f<<10;for(;e.getBCHDigit(d)-a>=0;)d^=t<<e.getBCHDigit(d)-a;return(f<<10|d)^r},Ug}var Hg={},Vg,xw;function KL(){if(xw)return Vg;xw=1;const e=Ss();function t(r){this.mode=e.NUMERIC,this.data=r.toString()}return t.getBitsLength=function(a){return 10*Math.floor(a/3)+(a%3?a%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(a){let s,o,c;for(s=0;s+3<=this.data.length;s+=3)o=this.data.substr(s,3),c=parseInt(o,10),a.put(c,10);const f=this.data.length-s;f>0&&(o=this.data.substr(s),c=parseInt(o,10),a.put(c,f*3+1))},Vg=t,Vg}var Pg,ww;function WL(){if(ww)return Pg;ww=1;const e=Ss(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(a){this.mode=e.ALPHANUMERIC,this.data=a}return r.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){let o;for(o=0;o+2<=this.data.length;o+=2){let c=t.indexOf(this.data[o])*45;c+=t.indexOf(this.data[o+1]),s.put(c,11)}this.data.length%2&&s.put(t.indexOf(this.data[o]),6)},Pg=r,Pg}var Ig,Ew;function JL(){if(Ew)return Ig;Ew=1;const e=Ss();function t(r){this.mode=e.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return t.getBitsLength=function(a){return a*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){for(let a=0,s=this.data.length;a<s;a++)r.put(this.data[a],8)},Ig=t,Ig}var Fg,Mw;function ej(){if(Mw)return Fg;Mw=1;const e=Ss(),t=bs();function r(a){this.mode=e.KANJI,this.data=a}return r.getBitsLength=function(s){return s*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(a){let s;for(s=0;s<this.data.length;s++){let o=t.toSJIS(this.data[s]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[s]+`
818
+ Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),a.put(o,13)}},Fg=r,Fg}var $g={exports:{}},kw;function tj(){return kw||(kw=1,(function(e){var t={single_source_shortest_paths:function(r,a,s){var o={},c={};c[a]=0;var f=t.PriorityQueue.make();f.push(a,0);for(var d,y,m,g,v,b,S,_,x;!f.empty();){d=f.pop(),y=d.value,g=d.cost,v=r[y]||{};for(m in v)v.hasOwnProperty(m)&&(b=v[m],S=g+b,_=c[m],x=typeof c[m]>"u",(x||_>S)&&(c[m]=S,f.push(m,S),o[m]=y))}if(typeof s<"u"&&typeof c[s]>"u"){var E=["Could not find a path from ",a," to ",s,"."].join("");throw new Error(E)}return o},extract_shortest_path_from_predecessor_list:function(r,a){for(var s=[],o=a;o;)s.push(o),r[o],o=r[o];return s.reverse(),s},find_path:function(r,a,s){var o=t.single_source_shortest_paths(r,a,s);return t.extract_shortest_path_from_predecessor_list(o,s)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,s={},o;r=r||{};for(o in a)a.hasOwnProperty(o)&&(s[o]=a[o]);return s.queue=[],s.sorter=r.sorter||a.default_sorter,s},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var s={value:r,cost:a};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})($g)),$g.exports}var Aw;function nj(){return Aw||(Aw=1,(function(e){const t=Ss(),r=KL(),a=WL(),s=JL(),o=ej(),c=f4(),f=bs(),d=tj();function y(E){return unescape(encodeURIComponent(E)).length}function m(E,k,M){const A=[];let z;for(;(z=E.exec(M))!==null;)A.push({data:z[0],index:z.index,mode:k,length:z[0].length});return A}function g(E){const k=m(c.NUMERIC,t.NUMERIC,E),M=m(c.ALPHANUMERIC,t.ALPHANUMERIC,E);let A,z;return f.isKanjiModeEnabled()?(A=m(c.BYTE,t.BYTE,E),z=m(c.KANJI,t.KANJI,E)):(A=m(c.BYTE_KANJI,t.BYTE,E),z=[]),k.concat(M,A,z).sort(function(D,T){return D.index-T.index}).map(function(D){return{data:D.data,mode:D.mode,length:D.length}})}function v(E,k){switch(k){case t.NUMERIC:return r.getBitsLength(E);case t.ALPHANUMERIC:return a.getBitsLength(E);case t.KANJI:return o.getBitsLength(E);case t.BYTE:return s.getBitsLength(E)}}function b(E){return E.reduce(function(k,M){const A=k.length-1>=0?k[k.length-1]:null;return A&&A.mode===M.mode?(k[k.length-1].data+=M.data,k):(k.push(M),k)},[])}function S(E){const k=[];for(let M=0;M<E.length;M++){const A=E[M];switch(A.mode){case t.NUMERIC:k.push([A,{data:A.data,mode:t.ALPHANUMERIC,length:A.length},{data:A.data,mode:t.BYTE,length:A.length}]);break;case t.ALPHANUMERIC:k.push([A,{data:A.data,mode:t.BYTE,length:A.length}]);break;case t.KANJI:k.push([A,{data:A.data,mode:t.BYTE,length:y(A.data)}]);break;case t.BYTE:k.push([{data:A.data,mode:t.BYTE,length:y(A.data)}])}}return k}function _(E,k){const M={},A={start:{}};let z=["start"];for(let N=0;N<E.length;N++){const D=E[N],T=[];for(let L=0;L<D.length;L++){const G=D[L],B=""+N+L;T.push(B),M[B]={node:G,lastCount:0},A[B]={};for(let j=0;j<z.length;j++){const F=z[j];M[F]&&M[F].node.mode===G.mode?(A[F][B]=v(M[F].lastCount+G.length,G.mode)-v(M[F].lastCount,G.mode),M[F].lastCount+=G.length):(M[F]&&(M[F].lastCount=G.length),A[F][B]=v(G.length,G.mode)+4+t.getCharCountIndicator(G.mode,k))}}z=T}for(let N=0;N<z.length;N++)A[z[N]].end=0;return{map:A,table:M}}function x(E,k){let M;const A=t.getBestModeForData(E);if(M=t.from(k,A),M!==t.BYTE&&M.bit<A.bit)throw new Error('"'+E+'" cannot be encoded with mode '+t.toString(M)+`.
819
+ Suggested mode is: `+t.toString(A));switch(M===t.KANJI&&!f.isKanjiModeEnabled()&&(M=t.BYTE),M){case t.NUMERIC:return new r(E);case t.ALPHANUMERIC:return new a(E);case t.KANJI:return new o(E);case t.BYTE:return new s(E)}}e.fromArray=function(k){return k.reduce(function(M,A){return typeof A=="string"?M.push(x(A,null)):A.data&&M.push(x(A.data,A.mode)),M},[])},e.fromString=function(k,M){const A=g(k,f.isKanjiModeEnabled()),z=S(A),N=_(z,M),D=d.find_path(N.map,"start","end"),T=[];for(let L=1;L<D.length-1;L++)T.push(N.table[D[L]].node);return e.fromArray(b(T))},e.rawSplit=function(k){return e.fromArray(g(k,f.isKanjiModeEnabled()))}})(Hg)),Hg}var Cw;function rj(){if(Cw)return Ag;Cw=1;const e=bs(),t=B0(),r=VL(),a=PL(),s=IL(),o=FL(),c=$L(),f=u4(),d=GL(),y=QL(),m=XL(),g=Ss(),v=nj();function b(N,D){const T=N.size,L=o.getPositions(D);for(let G=0;G<L.length;G++){const B=L[G][0],j=L[G][1];for(let F=-1;F<=7;F++)if(!(B+F<=-1||T<=B+F))for(let Q=-1;Q<=7;Q++)j+Q<=-1||T<=j+Q||(F>=0&&F<=6&&(Q===0||Q===6)||Q>=0&&Q<=6&&(F===0||F===6)||F>=2&&F<=4&&Q>=2&&Q<=4?N.set(B+F,j+Q,!0,!0):N.set(B+F,j+Q,!1,!0))}}function S(N){const D=N.size;for(let T=8;T<D-8;T++){const L=T%2===0;N.set(T,6,L,!0),N.set(6,T,L,!0)}}function _(N,D){const T=s.getPositions(D);for(let L=0;L<T.length;L++){const G=T[L][0],B=T[L][1];for(let j=-2;j<=2;j++)for(let F=-2;F<=2;F++)j===-2||j===2||F===-2||F===2||j===0&&F===0?N.set(G+j,B+F,!0,!0):N.set(G+j,B+F,!1,!0)}}function x(N,D){const T=N.size,L=y.getEncodedBits(D);let G,B,j;for(let F=0;F<18;F++)G=Math.floor(F/3),B=F%3+T-8-3,j=(L>>F&1)===1,N.set(G,B,j,!0),N.set(B,G,j,!0)}function E(N,D,T){const L=N.size,G=m.getEncodedBits(D,T);let B,j;for(B=0;B<15;B++)j=(G>>B&1)===1,B<6?N.set(B,8,j,!0):B<8?N.set(B+1,8,j,!0):N.set(L-15+B,8,j,!0),B<8?N.set(8,L-B-1,j,!0):B<9?N.set(8,15-B-1+1,j,!0):N.set(8,15-B-1,j,!0);N.set(L-8,8,1,!0)}function k(N,D){const T=N.size;let L=-1,G=T-1,B=7,j=0;for(let F=T-1;F>0;F-=2)for(F===6&&F--;;){for(let Q=0;Q<2;Q++)if(!N.isReserved(G,F-Q)){let re=!1;j<D.length&&(re=(D[j]>>>B&1)===1),N.set(G,F-Q,re),B--,B===-1&&(j++,B=7)}if(G+=L,G<0||T<=G){G-=L,L=-L;break}}}function M(N,D,T){const L=new r;T.forEach(function(Q){L.put(Q.mode.bit,4),L.put(Q.getLength(),g.getCharCountIndicator(Q.mode,N)),Q.write(L)});const G=e.getSymbolTotalCodewords(N),B=f.getTotalCodewordsCount(N,D),j=(G-B)*8;for(L.getLengthInBits()+4<=j&&L.put(0,4);L.getLengthInBits()%8!==0;)L.putBit(0);const F=(j-L.getLengthInBits())/8;for(let Q=0;Q<F;Q++)L.put(Q%2?17:236,8);return A(L,N,D)}function A(N,D,T){const L=e.getSymbolTotalCodewords(D),G=f.getTotalCodewordsCount(D,T),B=L-G,j=f.getBlocksCount(D,T),F=L%j,Q=j-F,re=Math.floor(L/j),q=Math.floor(B/j),$=q+1,Z=re-q,K=new d(Z);let W=0;const O=new Array(j),P=new Array(j);let se=0;const ce=new Uint8Array(N.buffer);for(let he=0;he<j;he++){const qe=he<Q?q:$;O[he]=ce.slice(W,W+qe),P[he]=K.encode(O[he]),W+=qe,se=Math.max(se,qe)}const de=new Uint8Array(L);let me=0,be,ye;for(be=0;be<se;be++)for(ye=0;ye<j;ye++)be<O[ye].length&&(de[me++]=O[ye][be]);for(be=0;be<Z;be++)for(ye=0;ye<j;ye++)de[me++]=P[ye][be];return de}function z(N,D,T,L){let G;if(Array.isArray(N))G=v.fromArray(N);else if(typeof N=="string"){let re=D;if(!re){const q=v.rawSplit(N);re=y.getBestVersionForData(q,T)}G=v.fromString(N,re||40)}else throw new Error("Invalid data");const B=y.getBestVersionForData(G,T);if(!B)throw new Error("The amount of data is too big to be stored in a QR Code");if(!D)D=B;else if(D<B)throw new Error(`
820
+ The chosen QR Code version cannot contain this amount of data.
821
+ Minimum version required to store current data is: `+B+`.
822
+ `);const j=M(D,T,G),F=e.getSymbolSize(D),Q=new a(F);return b(Q,D),S(Q),_(Q,D),E(Q,T,0),D>=7&&x(Q,D),k(Q,j),isNaN(L)&&(L=c.getBestMask(Q,E.bind(null,Q,T))),c.applyMask(L,Q),E(Q,T,L),{modules:Q,version:D,errorCorrectionLevel:T,maskPattern:L,segments:G}}return Ag.create=function(D,T){if(typeof D>"u"||D==="")throw new Error("No input text");let L=t.M,G,B;return typeof T<"u"&&(L=t.from(T.errorCorrectionLevel,t.M),G=y.from(T.version),B=c.from(T.maskPattern),T.toSJISFunc&&e.setToSJISFunction(T.toSJISFunc)),z(D,G,L,B)},Ag}var Yg={},Zg={},Tw;function d4(){return Tw||(Tw=1,(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let a=r.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+r);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(o){return[o,o]}))),a.length===6&&a.push("F","F");const s=parseInt(a.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const s=typeof a.margin>"u"||a.margin===null||a.margin<0?4:a.margin,o=a.width&&a.width>=21?a.width:void 0,c=a.scale||4;return{width:o,scale:o?4:c,margin:s,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,s){return s.width&&s.width>=a+s.margin*2?s.width/(a+s.margin*2):s.scale},e.getImageWidth=function(a,s){const o=e.getScale(a,s);return Math.floor((a+s.margin*2)*o)},e.qrToImageData=function(a,s,o){const c=s.modules.size,f=s.modules.data,d=e.getScale(c,o),y=Math.floor((c+o.margin*2)*d),m=o.margin*d,g=[o.color.light,o.color.dark];for(let v=0;v<y;v++)for(let b=0;b<y;b++){let S=(v*y+b)*4,_=o.color.light;if(v>=m&&b>=m&&v<y-m&&b<y-m){const x=Math.floor((v-m)/d),E=Math.floor((b-m)/d);_=g[f[x*c+E]?1:0]}a[S++]=_.r,a[S++]=_.g,a[S++]=_.b,a[S]=_.a}}})(Zg)),Zg}var Rw;function ij(){return Rw||(Rw=1,(function(e){const t=d4();function r(s,o,c){s.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=c,o.width=c,o.style.height=c+"px",o.style.width=c+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,c,f){let d=f,y=c;typeof d>"u"&&(!c||!c.getContext)&&(d=c,c=void 0),c||(y=a()),d=t.getOptions(d);const m=t.getImageWidth(o.modules.size,d),g=y.getContext("2d"),v=g.createImageData(m,m);return t.qrToImageData(v.data,o,d),r(g,y,m),g.putImageData(v,0,0),y},e.renderToDataURL=function(o,c,f){let d=f;typeof d>"u"&&(!c||!c.getContext)&&(d=c,c=void 0),d||(d={});const y=e.render(o,c,d),m=d.type||"image/png",g=d.rendererOpts||{};return y.toDataURL(m,g.quality)}})(Yg)),Yg}var Gg={},Nw;function aj(){if(Nw)return Gg;Nw=1;const e=d4();function t(s,o){const c=s.a/255,f=o+'="'+s.hex+'"';return c<1?f+" "+o+'-opacity="'+c.toFixed(2).slice(1)+'"':f}function r(s,o,c){let f=s+o;return typeof c<"u"&&(f+=" "+c),f}function a(s,o,c){let f="",d=0,y=!1,m=0;for(let g=0;g<s.length;g++){const v=Math.floor(g%o),b=Math.floor(g/o);!v&&!y&&(y=!0),s[g]?(m++,g>0&&v>0&&s[g-1]||(f+=y?r("M",v+c,.5+b+c):r("m",d,0),d=0,y=!1),v+1<o&&s[g+1]||(f+=r("h",m),m=0)):d++}return f}return Gg.render=function(o,c,f){const d=e.getOptions(c),y=o.modules.size,m=o.modules.data,g=y+d.margin*2,v=d.color.light.a?"<path "+t(d.color.light,"fill")+' d="M0 0h'+g+"v"+g+'H0z"/>':"",b="<path "+t(d.color.dark,"stroke")+' d="'+a(m,y,d.margin)+'"/>',S='viewBox="0 0 '+g+" "+g+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+S+' shape-rendering="crispEdges">'+v+b+`</svg>
823
+ `;return typeof f=="function"&&f(null,x),x},Gg}var Ow;function sj(){if(Ow)return fl;Ow=1;const e=HL(),t=rj(),r=ij(),a=aj();function s(o,c,f,d,y){const m=[].slice.call(arguments,1),g=m.length,v=typeof m[g-1]=="function";if(!v&&!e())throw new Error("Callback required as last argument");if(v){if(g<2)throw new Error("Too few arguments provided");g===2?(y=f,f=c,c=d=void 0):g===3&&(c.getContext&&typeof y>"u"?(y=d,d=void 0):(y=d,d=f,f=c,c=void 0))}else{if(g<1)throw new Error("Too few arguments provided");return g===1?(f=c,c=d=void 0):g===2&&!c.getContext&&(d=f,f=c,c=void 0),new Promise(function(b,S){try{const _=t.create(f,d);b(o(_,c,d))}catch(_){S(_)}})}try{const b=t.create(f,d);y(null,o(b,c,d))}catch(b){y(b)}}return fl.create=t.create,fl.toCanvas=s.bind(null,r.render),fl.toDataURL=s.bind(null,r.renderToDataURL),fl.toString=s.bind(null,function(o,c,f){return a.render(o,f)}),fl}var lj=sj();const YU=ur(lj);export{Nq as $,IU as A,Vl as B,OU as C,qU as D,HU as E,RU as F,v7 as G,H7 as H,UU as I,Bt as J,fU as K,EB as L,kq as M,wq as N,DB as O,jU as P,bq as Q,cj as R,Lq as S,xq as T,TB as U,YB as V,kB as W,Gq as X,Jp as Y,mj as Z,F5 as _,AE as a,Jj as a$,ZB as a0,qj as a1,$j as a2,Sq as a3,lq as a4,Vj as a5,UB as a6,lB as a7,cU as a8,Ij as a9,OB as aA,rq as aB,Hr as aC,L5 as aD,Xq as aE,Qq as aF,mq as aG,$q as aH,nB as aI,Zj as aJ,_q as aK,Mu as aL,sq as aM,QB as aN,pB as aO,Uj as aP,Yj as aQ,ku as aR,_j as aS,gj as aT,vj as aU,Sj as aV,HB as aW,pj as aX,MB as aY,Dj as aZ,ME as a_,Fj as aa,qq as ab,Dq as ac,dU as ad,rB as ae,uU as af,Bj as ag,Gj as ah,vU as ai,hU as aj,pU as ak,gU as al,bU as am,mU as an,yU as ao,ve as ap,Pj as aq,rU as ar,Vq as as,oq as at,sU as au,FB as av,Yq as aw,CB as ax,lU as ay,tU as az,Aj as b,qf as b$,Wj as b0,NB as b1,iU as b2,kj as b3,pq as b4,GB as b5,SU as b6,hq as b7,jq as b8,sB as b9,dq as bA,Hq as bB,WB as bC,AB as bD,Kj as bE,Qj as bF,bj as bG,FU as bH,Aq as bI,eU as bJ,Mq as bK,Hj as bL,jj as bM,eq as bN,XB as bO,SB as bP,oU as bQ,oB as bR,aq as bS,bB as bT,zq as bU,Uq as bV,Tq as bW,Jq as bX,Lj as bY,PB as bZ,mB as b_,Kq as ba,hB as bb,Cq as bc,vB as bd,IB as be,_U as bf,xU as bg,EU as bh,wU as bi,SO as bj,j8 as bk,L8 as bl,Vf as bm,Be as bn,Fq as bo,Oq as bp,yB as bq,JB as br,gB as bs,xj as bt,_B as bu,yq as bv,fB as bw,eB as bx,iB as by,Wq as bz,Rj as c,Xj as c0,Pq as c1,qB as c2,Zq as c3,LB as c4,iq as c5,tq as c6,KB as c7,$U as c8,Iq as c9,u5 as cA,wj as cB,hj as cC,fj as cD,yj as cE,Mj as cF,VB as ca,wB as cb,Eq as cc,dB as cd,tB as ce,Rq as cf,uq as cg,cq as ch,BB as ci,aB as cj,cB as ck,YU as cl,vq as cm,Bq as cn,uB as co,gq as cp,nq as cq,zB as cr,nU as cs,RB as ct,xB as cu,aU as cv,fq as cw,$B as cx,jB as cy,Ej as cz,Nf as d,Cj as e,Nj as f,H6 as g,zj as h,MU as i,le as j,kU as k,s7 as l,AU as m,NU as n,z7 as o,TU as p,DU as q,R as r,Oj as s,zU as t,Tj as u,LU as v,l8 as w,BU as x,VU as y,PU as z};
824
+ //# sourceMappingURL=vendor-D9PTEPSB.js.map