function Wc(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ys={exports:{}},dl={},ws={exports:{}},R={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var nr=Symbol.for("react.element"),Hc=Symbol.for("react.portal"),Qc=Symbol.for("react.fragment"),Kc=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),Xc=Symbol.for("react.provider"),Gc=Symbol.for("react.context"),Zc=Symbol.for("react.forward_ref"),Jc=Symbol.for("react.suspense"),qc=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),bo=Symbol.iterator;function ef(e){return e===null||typeof e!="object"?null:(e=bo&&e[bo]||e["@@iterator"],typeof e=="function"?e:null)}var xs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ss=Object.assign,ks={};function fn(e,t,n){this.props=e,this.context=t,this.refs=ks,this.updater=n||xs}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Es(){}Es.prototype=fn.prototype;function no(e,t,n){this.props=e,this.context=t,this.refs=ks,this.updater=n||xs}var ro=no.prototype=new Es;ro.constructor=no;Ss(ro,fn.prototype);ro.isPureReactComponent=!0;var eu=Array.isArray,Cs=Object.prototype.hasOwnProperty,lo={current:null},_s={key:!0,ref:!0,__self:!0,__source:!0};function Ps(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Cs.call(t,r)&&!_s.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=_[Q];if(0>>1;Ql(Il,L))Stl(ar,Il)?(_[Q]=ar,_[St]=L,Q=St):(_[Q]=Il,_[xt]=L,Q=xt);else if(Stl(ar,L))_[Q]=ar,_[St]=L,Q=St;else break e}}return z}function l(_,z){var L=_.sortIndex-z.sortIndex;return L!==0?L:_.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],c=[],m=1,p=null,h=3,y=!1,w=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=_)r(c),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(c)}}function g(_){if(x=!1,d(_),!w)if(n(s)!==null)w=!0,Rl(E);else{var z=n(c);z!==null&&Ol(g,z.startTime-_)}}function E(_,z){w=!1,x&&(x=!1,f(T),T=-1),y=!0;var L=h;try{for(d(z),p=n(s);p!==null&&(!(p.expirationTime>z)||_&&!Te());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,h=p.priorityLevel;var Z=Q(p.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?p.callback=Z:p===n(s)&&r(s),d(z)}else r(s);p=n(s)}if(p!==null)var sr=!0;else{var xt=n(c);xt!==null&&Ol(g,xt.startTime-z),sr=!1}return sr}finally{p=null,h=L,y=!1}}var N=!1,j=null,T=-1,H=5,O=-1;function Te(){return!(e.unstable_now()-O_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var L=h;h=z;try{return _()}finally{h=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=h;h=_;try{return z()}finally{h=L}},e.unstable_scheduleCallback=function(_,z,L){var Q=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0Q?(_.sortIndex=L,t(c,_),n(s)===null&&_===n(c)&&(x?(f(T),T=-1):x=!0,Ol(g,L-Q))):(_.sortIndex=Z,t(s,_),w||y||(w=!0,Rl(E))),_},e.unstable_shouldYield=Te,e.unstable_wrapCallback=function(_){var z=h;return function(){var L=h;h=z;try{return _.apply(this,arguments)}finally{h=L}}}})(Ls);zs.exports=Ls;var hf=zs.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mf=P,we=hf;function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ui=Object.prototype.hasOwnProperty,vf=/^[: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]*$/,nu={},ru={};function gf(e){return ui.call(ru,e)?!0:ui.call(nu,e)?!1:vf.test(e)?ru[e]=!0:(nu[e]=!0,!1)}function yf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wf(e,t,n,r){if(t===null||typeof t>"u"||yf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ae(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){te[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var oo=/[\-:]([a-z])/g;function uo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(oo,uo);te[t]=new ae(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(oo,uo);te[t]=new ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(oo,uo);te[t]=new ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});te.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function so(e,t,n,r){var l=te.hasOwnProperty(t)?te[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` `+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{Dl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_n(e):""}function xf(e){switch(e.tag){case 5:return _n(e.type);case 16:return _n("Lazy");case 13:return _n("Suspense");case 19:return _n("SuspenseList");case 0:case 2:case 15:return e=Ul(e.type,!1),e;case 11:return e=Ul(e.type.render,!1),e;case 1:return e=Ul(e.type,!0),e;default:return""}}function fi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ut:return"Fragment";case Dt:return"Portal";case si:return"Profiler";case ao:return"StrictMode";case ai:return"Suspense";case ci:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Is:return(e.displayName||"Context")+".Consumer";case Os:return(e._context.displayName||"Context")+".Provider";case co:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fo:return t=e.displayName||null,t!==null?t:fi(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return fi(e(t))}catch{}}return null}function Sf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fi(t);case 8:return t===ao?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ms(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kf(e){var t=Ms(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=kf(e))}function Ds(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ms(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ar(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function di(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Us(e,t){t=t.checked,t!=null&&so(e,"checked",t,!1)}function pi(e,t){Us(e,t);var n=mt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hi(e,t.type,n):t.hasOwnProperty("defaultValue")&&hi(e,t.type,mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ou(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function hi(e,t,n){(t!=="number"||Ar(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pn=Array.isArray;function Gt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function An(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ef=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){Ef.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Ws(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function Vs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ws(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Cf=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gi(e,t){if(t){if(Cf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function yi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 wi=null;function po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xi=null,Zt=null,Jt=null;function au(e){if(e=ir(e)){if(typeof xi!="function")throw Error(S(280));var t=e.stateNode;t&&(t=gl(t),xi(e.stateNode,e.type,t))}}function Hs(e){Zt?Jt?Jt.push(e):Jt=[e]:Zt=e}function Qs(){if(Zt){var e=Zt,t=Jt;if(Jt=Zt=null,au(e),t)for(e=0;e>>=0,e===0?32:31-(Ff(e)/Mf|0)|0}var hr=64,mr=4194304;function Nn(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Nn(u):(i&=o,i!==0&&(r=Nn(i)))}else o=n&~l,o!==0?r=Nn(o):i!==0&&(r=Nn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ie(t),e[t]=n}function Af(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rn),yu=" ",wu=!1;function fa(e,t){switch(e){case"keyup":return hd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function da(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $t=!1;function vd(e,t){switch(e){case"compositionend":return da(t);case"keypress":return t.which!==32?null:(wu=!0,yu);case"textInput":return e=t.data,e===yu&&wu?null:e;default:return null}}function gd(e,t){if($t)return e==="compositionend"||!So&&fa(e,t)?(e=aa(),zr=yo=lt=null,$t=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Eu(n)}}function va(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?va(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ga(){for(var e=window,t=Ar();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ar(e.document)}return t}function ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pd(e){var t=ga(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&va(n.ownerDocument.documentElement,n)){if(r!==null&&ko(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Cu(n,i);var o=Cu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,At=null,Pi=null,In=null,Ni=!1;function _u(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ni||At==null||At!==Ar(r)||(r=At,"selectionStart"in r&&ko(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),In&&Kn(In,r)||(In=r,r=Yr(Pi,"onSelect"),0Vt||(e.current=Oi[Vt],Oi[Vt]=null,Vt--)}function M(e,t){Vt++,Oi[Vt]=e.current,e.current=t}var vt={},ie=yt(vt),de=yt(!1),Tt=vt;function ln(e,t){var n=e.type.contextTypes;if(!n)return vt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Gr(){U(de),U(ie)}function Ru(e,t,n){if(ie.current!==vt)throw Error(S(168));M(ie,t),M(de,n)}function Pa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,Sf(e)||"Unknown",l));return W({},n,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vt,Tt=ie.current,M(ie,e),M(de,de.current),!0}function Ou(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Pa(e,t,Tt),r.__reactInternalMemoizedMergedChildContext=e,U(de),U(ie),M(ie,e)):U(de),M(de,n)}var He=null,yl=!1,ql=!1;function Na(e){He===null?He=[e]:He.push(e)}function Ud(e){yl=!0,Na(e)}function wt(){if(!ql&&He!==null){ql=!0;var e=0,t=F;try{var n=He;for(F=1;e>=o,l-=o,Qe=1<<32-Ie(t)+l|n<T?(H=j,j=null):H=j.sibling;var O=h(f,j,d[T],g);if(O===null){j===null&&(j=H);break}e&&j&&O.alternate===null&&t(f,j),a=i(O,a,T),N===null?E=O:N.sibling=O,N=O,j=H}if(T===d.length)return n(f,j),$&&kt(f,T),E;if(j===null){for(;TT?(H=j,j=null):H=j.sibling;var Te=h(f,j,O.value,g);if(Te===null){j===null&&(j=H);break}e&&j&&Te.alternate===null&&t(f,j),a=i(Te,a,T),N===null?E=Te:N.sibling=Te,N=Te,j=H}if(O.done)return n(f,j),$&&kt(f,T),E;if(j===null){for(;!O.done;T++,O=d.next())O=p(f,O.value,g),O!==null&&(a=i(O,a,T),N===null?E=O:N.sibling=O,N=O);return $&&kt(f,T),E}for(j=r(f,j);!O.done;T++,O=d.next())O=y(j,f,T,O.value,g),O!==null&&(e&&O.alternate!==null&&j.delete(O.key===null?T:O.key),a=i(O,a,T),N===null?E=O:N.sibling=O,N=O);return e&&j.forEach(function(mn){return t(f,mn)}),$&&kt(f,T),E}function k(f,a,d,g){if(typeof d=="object"&&d!==null&&d.type===Ut&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case fr:e:{for(var E=d.key,N=a;N!==null;){if(N.key===E){if(E=d.type,E===Ut){if(N.tag===7){n(f,N.sibling),a=l(N,d.props.children),a.return=f,f=a;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===et&&Mu(E)===N.type){n(f,N.sibling),a=l(N,d.props),a.ref=kn(f,N,d),a.return=f,f=a;break e}n(f,N);break}else t(f,N);N=N.sibling}d.type===Ut?(a=jt(d.props.children,f.mode,g,d.key),a.return=f,f=a):(g=Ur(d.type,d.key,d.props,null,f.mode,g),g.ref=kn(f,a,d),g.return=f,f=g)}return o(f);case Dt:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=oi(d,f.mode,g),a.return=f,f=a}return o(f);case et:return N=d._init,k(f,a,N(d._payload),g)}if(Pn(d))return w(f,a,d,g);if(gn(d))return x(f,a,d,g);kr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=ii(d,f.mode,g),a.return=f,f=a),o(f)):n(f,a)}return k}var un=La(!0),Ra=La(!1),br=yt(null),el=null,Kt=null,Po=null;function No(){Po=Kt=el=null}function jo(e){var t=br.current;U(br),e._currentValue=t}function Mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bt(e,t){el=e,Po=Kt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(fe=!0),e.firstContext=null)}function Ne(e){var t=e._currentValue;if(Po!==e)if(e={context:e,memoizedValue:t,next:null},Kt===null){if(el===null)throw Error(S(308));Kt=e,el.dependencies={lanes:0,firstContext:e}}else Kt=Kt.next=e;return t}var _t=null;function To(e){_t===null?_t=[e]:_t.push(e)}function Oa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,To(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ze(e,r)}function Ze(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tt=!1;function zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ye(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ft(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ze(e,n)}return l=r.interleaved,l===null?(t.next=t,To(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ze(e,n)}function Rr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mo(e,n)}}function Du(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var l=e.updateQueue;tt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,o===null?i=c:o.next=c,o=s;var m=e.alternate;m!==null&&(m=m.updateQueue,u=m.lastBaseUpdate,u!==o&&(u===null?m.firstBaseUpdate=c:u.next=c,m.lastBaseUpdate=s))}if(i!==null){var p=l.baseState;o=0,m=c=s=null,u=i;do{var h=u.lane,y=u.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:y,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,x=u;switch(h=t,y=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){p=w.call(y,p,h);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,h=typeof w=="function"?w.call(y,p,h):w,h==null)break e;p=W({},p,h);break e;case 2:tt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else y={eventTime:y,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(c=m=y,s=p):m=m.next=y,o|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(m===null&&(s=p),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Rt|=o,e.lanes=o,e.memoizedState=p}}function Uu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ei.transition;ei.transition={};try{e(!1),t()}finally{F=n,ei.transition=r}}function Ja(){return je().memoizedState}function Wd(e,t,n){var r=pt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))ba(t,n);else if(n=Oa(e,t,n,r),n!==null){var l=ue();Fe(n,e,r,l),ec(n,t,r)}}function Vd(e,t,n){var r=pt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))ba(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Me(u,o)){var s=t.interleaved;s===null?(l.next=l,To(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Oa(e,t,l,r),n!==null&&(l=ue(),Fe(n,e,r,l),ec(n,t,r))}}function qa(e){var t=e.alternate;return e===B||t!==null&&t===B}function ba(e,t){Fn=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ec(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mo(e,n)}}var ll={readContext:Ne,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},Hd={readContext:Ne,useCallback:function(e,t){return Ue().memoizedState=[e,t===void 0?null:t],e},useContext:Ne,useEffect:Au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ir(4194308,4,Ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ir(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ir(4,2,e,t)},useMemo:function(e,t){var n=Ue();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ue();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wd.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Ue();return e={current:e},t.memoizedState=e},useState:$u,useDebugValue:Uo,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=$u(!1),t=e[0];return e=Bd.bind(null,e[1]),Ue().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=Ue();if($){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),q===null)throw Error(S(349));Lt&30||Ua(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Au(Aa.bind(null,r,i,e),[e]),r.flags|=2048,er(9,$a.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ue(),t=q.identifierPrefix;if($){var n=Ke,r=Qe;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[$e]=t,e[Gn]=r,cc(e,t,!1,!1),t.stateNode=e;e:{switch(o=yi(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lcn&&(t.flags|=128,r=!0,En(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),En(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return re(t),null}else 2*K()-i.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,En(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=K(),t.sibling=null,n=A.current,M(A,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Ho(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function qd(e,t){switch(Co(t),t.tag){case 1:return pe(t.type)&&Gr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sn(),U(de),U(ie),Oo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ro(t),null;case 13:if(U(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(A),null;case 4:return sn(),null;case 10:return jo(t.type._context),null;case 22:case 23:return Ho(),null;case 24:return null;default:return null}}var Cr=!1,le=!1,bd=typeof WeakSet=="function"?WeakSet:Set,C=null;function Yt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Qi(e,t,n){try{n()}catch(r){V(e,t,r)}}var Ju=!1;function ep(e,t){if(ji=Qr,e=ga(),ko(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,c=0,m=0,p=e,h=null;t:for(;;){for(var y;p!==n||l!==0&&p.nodeType!==3||(u=o+l),p!==i||r!==0&&p.nodeType!==3||(s=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(y=p.firstChild)!==null;)h=p,p=y;for(;;){if(p===e)break t;if(h===n&&++c===l&&(u=o),h===i&&++m===r&&(s=o),(y=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ti={focusedElem:e,selectionRange:n},Qr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,k=w.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Le(t.type,x),k);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(g){V(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return w=Ju,Ju=!1,w}function Mn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Qi(t,n,i)}l=l.next}while(l!==r)}}function Sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ki(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$e],delete t[Gn],delete t[Ri],delete t[Md],delete t[Dd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hc(e){return e.tag===5||e.tag===3||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xr));else if(r!==4&&(e=e.child,e!==null))for(Yi(e,t,n),e=e.sibling;e!==null;)Yi(e,t,n),e=e.sibling}function Xi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xi(e,t,n),e=e.sibling;e!==null;)Xi(e,t,n),e=e.sibling}var b=null,Re=!1;function be(e,t,n){for(n=n.child;n!==null;)mc(e,t,n),n=n.sibling}function mc(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(pl,n)}catch{}switch(n.tag){case 5:le||Yt(n,t);case 6:var r=b,l=Re;b=null,be(e,t,n),b=r,Re=l,b!==null&&(Re?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(Re?(e=b,n=n.stateNode,e.nodeType===8?Jl(e.parentNode,n):e.nodeType===1&&Jl(e,n),Hn(e)):Jl(b,n.stateNode));break;case 4:r=b,l=Re,b=n.stateNode.containerInfo,Re=!0,be(e,t,n),b=r,Re=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qi(n,t,o),l=l.next}while(l!==r)}be(e,t,n);break;case 1:if(!le&&(Yt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,be(e,t,n),le=r):be(e,t,n);break;default:be(e,t,n)}}function bu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bd),t.forEach(function(r){var l=ap.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*np(r/1960))-r,10e?16:e,it===null)var r=!1;else{if(e=it,it=null,ul=0,I&6)throw Error(S(331));var l=I;for(I|=4,C=e.current;C!==null;){var i=C,o=i.child;if(C.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sK()-Wo?Nt(e,0):Bo|=n),he(e,t)}function Ec(e,t){t===0&&(e.mode&1?(t=mr,mr<<=1,!(mr&130023424)&&(mr=4194304)):t=1);var n=ue();e=Ze(e,t),e!==null&&(rr(e,t,n),he(e,n))}function sp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ec(e,n)}function ap(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Ec(e,n)}var Cc;Cc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||de.current)fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return fe=!1,Zd(e,t,n);fe=!!(e.flags&131072)}else fe=!1,$&&t.flags&1048576&&ja(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fr(e,t),e=t.pendingProps;var l=ln(t,ie.current);bt(t,n),l=Fo(null,t,r,e,l,n);var i=Mo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(i=!0,Zr(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,zo(t),l.updater=xl,t.stateNode=l,l._reactInternals=t,Ui(t,r,e,n),t=Bi(null,t,r,!0,i,n)):(t.tag=0,$&&i&&Eo(t),oe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=fp(r),e=Le(r,e),l){case 0:t=Ai(null,t,r,e,n);break e;case 1:t=Xu(null,t,r,e,n);break e;case 11:t=Ku(null,t,r,e,n);break e;case 14:t=Yu(null,t,r,Le(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ai(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Xu(e,t,r,l,n);case 3:e:{if(uc(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ia(e,t),tl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=an(Error(S(423)),t),t=Gu(e,t,r,n,l);break e}else if(r!==l){l=an(Error(S(424)),t),t=Gu(e,t,r,n,l);break e}else for(ge=ct(t.stateNode.containerInfo.firstChild),ye=t,$=!0,Oe=null,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===l){t=Je(e,t,n);break e}oe(e,t,r,n)}t=t.child}return t;case 5:return Fa(t),e===null&&Fi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,zi(r,l)?o=null:i!==null&&zi(r,i)&&(t.flags|=32),oc(e,t),oe(e,t,o,n),t.child;case 6:return e===null&&Fi(t),null;case 13:return sc(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=un(t,null,r,n):oe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ku(e,t,r,l,n);case 7:return oe(e,t,t.pendingProps,n),t.child;case 8:return oe(e,t,t.pendingProps.children,n),t.child;case 12:return oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,M(br,r._currentValue),r._currentValue=o,i!==null)if(Me(i.value,o)){if(i.children===l.children&&!de.current){t=Je(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ye(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mi(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(S(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Mi(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}oe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,bt(t,n),l=Ne(l),r=r(l),t.flags|=1,oe(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),Yu(e,t,r,l,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Fr(e,t),t.tag=1,pe(r)?(e=!0,Zr(t)):e=!1,bt(t,n),tc(t,r,l),Ui(t,r,l,n),Bi(null,t,r,!0,e,n);case 19:return ac(e,t,n);case 22:return ic(e,t,n)}throw Error(S(156,t.tag))};function _c(e,t){return qs(e,t)}function cp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(e,t,n,r){return new cp(e,t,n,r)}function Ko(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fp(e){if(typeof e=="function")return Ko(e)?1:0;if(e!=null){if(e=e.$$typeof,e===co)return 11;if(e===fo)return 14}return 2}function ht(e,t){var n=e.alternate;return n===null?(n=_e(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ur(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ko(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ut:return jt(n.children,l,i,t);case ao:o=8,l|=8;break;case si:return e=_e(12,n,t,l|2),e.elementType=si,e.lanes=i,e;case ai:return e=_e(13,n,t,l),e.elementType=ai,e.lanes=i,e;case ci:return e=_e(19,n,t,l),e.elementType=ci,e.lanes=i,e;case Fs:return El(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Os:o=10;break e;case Is:o=9;break e;case co:o=11;break e;case fo:o=14;break e;case et:o=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=_e(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function jt(e,t,n,r){return e=_e(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=_e(22,e,r,t),e.elementType=Fs,e.lanes=n,e.stateNode={isHidden:!1},e}function ii(e,t,n){return e=_e(6,e,null,t),e.lanes=n,e}function oi(e,t,n){return t=_e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Al(0),this.expirationTimes=Al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Yo(e,t,n,r,l,i,o,u,s){return e=new dp(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_e(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zo(i),e}function pp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tc)}catch(e){console.error(e)}}Tc(),Ts.exports=xe;var yp=Ts.exports,Tn,us=yp;Tn=us.createRoot,us.hydrateRoot;/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xp(){return Math.random().toString(36).substr(2,8)}function as(e,t){return{usr:e.state,key:e.key,idx:t}}function bi(e,t,n,r){return n===void 0&&(n=null),cl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jl(t):t,{state:n,key:t&&t.key||r||xp()})}function Lc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function jl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Sp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=ot.Pop,s=null,c=m();c==null&&(c=0,o.replaceState(cl({},o.state,{idx:c}),""));function m(){return(o.state||{idx:null}).idx}function p(){u=ot.Pop;let k=m(),f=k==null?null:k-c;c=k,s&&s({action:u,location:x.location,delta:f})}function h(k,f){u=ot.Push;let a=bi(x.location,k,f);c=m()+1;let d=as(a,c),g=x.createHref(a);try{o.pushState(d,"",g)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(g)}i&&s&&s({action:u,location:x.location,delta:1})}function y(k,f){u=ot.Replace;let a=bi(x.location,k,f);c=m();let d=as(a,c),g=x.createHref(a);o.replaceState(d,"",g),i&&s&&s({action:u,location:x.location,delta:0})}function w(k){let f=l.location.origin!=="null"?l.location.origin:l.location.href,a=typeof k=="string"?k:Lc(k);return a=a.replace(/ $/,"%20"),me(f,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,f)}let x={get action(){return u},get location(){return e(l,o)},listen(k){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(ss,p),s=k,()=>{l.removeEventListener(ss,p),s=null}},createHref(k){return t(l,k)},createURL:w,encodeLocation(k){let f=w(k);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:y,go(k){return o.go(k)}};return x}var cs;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cs||(cs={}));function kp(e,t,n){return n===void 0&&(n="/"),Ep(e,t,n)}function Ep(e,t,n,r){let l=typeof t=="string"?jl(t):t,i=Ic(l.pathname||"/",n);if(i==null)return null;let o=Rc(e);Cp(o);let u=null;for(let s=0;u==null&&s{let s={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(me(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=tn([r,s.relativePath]),m=n.concat(s);i.children&&i.children.length>0&&(me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Rc(i.children,t,m,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Lp(c,i.index),routesMeta:m})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let s of Oc(i.path))l(i,o,s)}),t}function Oc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Oc(r.join("/")),u=[];return u.push(...o.map(s=>s===""?i:[i,s].join("/"))),l&&u.push(...o),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Cp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Rp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _p=/^:[\w-]+$/,Pp=3,Np=2,jp=1,Tp=10,zp=-2,fs=e=>e==="*";function Lp(e,t){let n=e.split("/"),r=n.length;return n.some(fs)&&(r+=zp),t&&(r+=Np),n.filter(l=>!fs(l)).reduce((l,i)=>l+(_p.test(i)?Pp:i===""?jp:Tp),r)}function Rp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Op(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let u=0;u{let{paramName:h,isOptional:y}=m;if(h==="*"){let x=u[p]||"";o=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const w=u[p];return y&&!w?c[h]=void 0:c[h]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function Fp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Mp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ic(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const tn=e=>e.join("/").replace(/\/\/+/g,"/"),Dp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function Up(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fc=["post","put","patch","delete"];new Set(Fc);const $p=["get",...Fc];new Set($p);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},k,{params:Object.assign({},u,k.params),pathname:tn([s,l.encodeLocation?l.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?s:tn([s,l.encodeLocation?l.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,n,r);return t&&x?P.createElement(Tl.Provider,{value:{location:fl({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ot.Pop}},x):x}function Qp(){let e=bp(),t=Up(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:l},n):null,null)}const Kp=P.createElement(Qp,null);class Yp extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(zl.Provider,{value:this.props.routeContext},P.createElement(Dc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xp(e){let{routeContext:t,match:n,children:r}=e,l=P.useContext(Ap);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(zl.Provider,{value:t},r)}function Gp(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let m=o.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);m>=0||me(!1),o=o.slice(0,Math.min(o.length,m+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((m,p,h)=>{let y,w=!1,x=null,k=null;n&&(y=u&&p.route.id?u[p.route.id]:void 0,x=p.route.errorElement||Kp,s&&(c<0&&h===0?(eh("route-fallback"),w=!0,k=null):c===h&&(w=!0,k=p.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,h+1)),a=()=>{let d;return y?d=x:w?d=k:p.route.Component?d=P.createElement(p.route.Component,null):p.route.element?d=p.route.element:d=m,P.createElement(Xp,{match:p,routeContext:{outlet:m,matches:f,isDataRoute:n!=null},children:d})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?P.createElement(Yp,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:a(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):a()},null)}var Uc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Uc||{});function Zp(e){let t=P.useContext(Bp);return t||me(!1),t}function Jp(e){let t=P.useContext(zl);return t||me(!1),t}function qp(e){let t=Jp(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function bp(){var e;let t=P.useContext(Dc),n=Zp(Uc.UseRouteError),r=qp();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const ds={};function eh(e,t,n){ds[e]||(ds[e]=!0)}function th(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function $r(e){me(!1)}function nh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ot.Pop,navigator:i,static:o=!1,future:u}=e;Jo()&&me(!1);let s=t.replace(/^\/*/,"/"),c=P.useMemo(()=>({basename:s,navigator:i,static:o,future:fl({v7_relativeSplatPath:!1},u)}),[s,u,i,o]);typeof r=="string"&&(r=jl(r));let{pathname:m="/",search:p="",hash:h="",state:y=null,key:w="default"}=r,x=P.useMemo(()=>{let k=Ic(m,s);return k==null?null:{location:{pathname:k,search:p,hash:h,state:y,key:w},navigationType:l}},[s,m,p,h,y,w,l]);return x==null?null:P.createElement(Mc.Provider,{value:c},P.createElement(Tl.Provider,{children:n,value:x}))}function rh(e){let{children:t,location:n}=e;return Vp(eo(t),n)}new Promise(()=>{});function eo(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,l)=>{if(!P.isValidElement(r))return;let i=[...t,l];if(r.type===P.Fragment){n.push.apply(n,eo(r.props.children,i));return}r.type!==$r&&me(!1),!r.props.index||!r.props.children||me(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=eo(r.props.children,i)),n.push(o)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const lh="6";try{window.__reactRouterVersion=lh}catch{}const ih="startTransition",ps=uf[ih];function oh(e){let{basename:t,children:n,future:r,window:l}=e,i=P.useRef();i.current==null&&(i.current=wp({window:l,v5Compat:!0}));let o=i.current,[u,s]=P.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},m=P.useCallback(p=>{c&&ps?ps(()=>s(p)):s(p)},[s,c]);return P.useLayoutEffect(()=>o.listen(m),[o,m]),P.useEffect(()=>th(r),[r]),P.createElement(nh,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}var hs;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hs||(hs={}));var ms;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ms||(ms={}));function to(){return v.jsx("div",{children:"Welcome to the Helix Admin Dashboard"})}const uh=()=>{var e;return((e=window.helixData)==null?void 0:e.restUrl)||"/wp-json/helix/v1/"},sh=()=>{var e;return((e=window.helixData)==null?void 0:e.nonce)||""},$c=async(e,t={})=>{const n=`${uh()}${e}`,r={headers:{"Content-Type":"application/json","X-WP-Nonce":sh()},credentials:"include"},l={...r,...t,headers:{...r.headers,...t.headers}};try{const i=await fetch(n,l);if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.message||`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(i){throw i}},ah=async()=>$c("settings"),ch=async e=>$c("settings",{method:"POST",body:JSON.stringify(e)}),fh=()=>{const[e,t]=P.useState({}),[n,r]=P.useState({}),[l,i]=P.useState(!0),[o,u]=P.useState(!1),[s,c]=P.useState(null),[m,p]=P.useState(!1),h=P.useCallback(async()=>{try{i(!0),c(null);const f=await ah(),a={};Object.keys(f).forEach(d=>{Object.keys(f[d]).forEach(g=>{a[g]=f[d][g].value})}),t(a),r(a),p(!1)}catch(f){c(f.message)}finally{i(!1)}},[]),y=P.useCallback((f,a)=>{t(d=>{const g={...d,[f]:a},E=Object.keys(g).some(N=>g[N]!==n[N]);return p(E),g})},[n]),w=P.useCallback(async()=>{try{u(!0),c(null);const f={};if(Object.keys(e).forEach(d=>{e[d]!==n[d]&&(f[d]=e[d])}),Object.keys(f).length===0)return{success:!0,message:"No changes to save"};const a=await ch(f);return r(e),p(!1),{success:!0,message:"Settings saved successfully",updated:a.updated,errors:a.errors}}catch(f){return c(f.message),{success:!1,message:f.message}}finally{u(!1)}},[e,n]),x=P.useCallback(()=>{t(n),p(!1),c(null)},[n]),k=P.useCallback(f=>{y(f,n[f])},[n,y]);return P.useEffect(()=>{h()},[h]),P.useEffect(()=>{const f=a=>{if(m)return a.preventDefault(),a.returnValue="You have unsaved changes. Are you sure you want to leave?",a.returnValue};return window.addEventListener("beforeunload",f),()=>window.removeEventListener("beforeunload",f)},[m]),{settings:e,loading:l,saving:o,error:s,hasUnsavedChanges:m,updateSetting:y,saveSettings:w,resetSettings:x,resetSetting:k,loadSettings:h}},dh=({activeTab:e,onTabChange:t,hasUnsavedChanges:n})=>{const r=[{id:"site",label:"Site Information",icon:"🏠"},{id:"content",label:"Content & Reading",icon:"📖"},{id:"writing",label:"Writing & Publishing",icon:"âœī¸"},{id:"media",label:"Media & Assets",icon:"đŸ–ŧī¸"},{id:"users",label:"Users & Membership",icon:"đŸ‘Ĩ"},{id:"helix",label:"Helix Settings",icon:"âš™ī¸"}];return v.jsx("div",{className:"helix-settings-tabs",children:v.jsx("nav",{className:"helix-tabs-nav",role:"tablist",children:r.map(l=>v.jsxs("button",{type:"button",role:"tab","aria-selected":e===l.id,"aria-controls":`${l.id}-panel`,className:`helix-tab ${e===l.id?"active":""}`,onClick:()=>t(l.id),children:[v.jsx("span",{className:"helix-tab-icon",children:l.icon}),v.jsx("span",{className:"helix-tab-label",children:l.label}),n&&v.jsx("span",{className:"helix-tab-indicator",title:"Unsaved changes",children:"●"})]},l.id))})})},ph=({onSave:e,onReset:t,saving:n=!1,hasUnsavedChanges:r=!1,disabled:l=!1})=>v.jsxs("div",{className:"helix-save-buttons",children:[v.jsx("button",{type:"button",onClick:e,disabled:l||n||!r,className:`helix-btn helix-btn-primary ${n?"saving":""}`,children:n?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"helix-spinner"}),"Saving..."]}):"Save Changes"}),r&&!n&&v.jsx("button",{type:"button",onClick:t,className:"helix-btn helix-btn-secondary",children:"Reset Changes"}),!r&&!n&&v.jsx("span",{className:"helix-save-status",children:"✓ All changes saved"})]}),vs=({type:e="info",message:t,onClose:n,autoClose:r=!0,duration:l=5e3})=>{const[i,o]=P.useState(!0);if(P.useEffect(()=>{if(r&&l>0){const s=setTimeout(()=>{o(!1),setTimeout(()=>n==null?void 0:n(),300)},l);return()=>clearTimeout(s)}},[r,l,n]),!i)return null;const u=()=>{switch(e){case"success":return"✅";case"error":return"❌";case"warning":return"âš ī¸";default:return"â„šī¸"}};return v.jsx("div",{className:`helix-notification helix-notification-${e} ${i?"visible":""}`,children:v.jsxs("div",{className:"helix-notification-content",children:[v.jsx("span",{className:"helix-notification-icon",children:u()}),v.jsx("span",{className:"helix-notification-message",children:t}),n&&v.jsx("button",{type:"button",onClick:()=>{o(!1),setTimeout(()=>n(),300)},className:"helix-notification-close","aria-label":"Close notification",children:"×"})]})})},hn=({title:e,description:t,children:n,className:r=""})=>v.jsxs("div",{className:`helix-settings-section ${r}`,children:[e&&v.jsxs("div",{className:"helix-settings-section-header",children:[v.jsx("h3",{className:"helix-settings-section-title",children:e}),t&&v.jsx("p",{className:"helix-settings-section-description",children:t})]}),v.jsx("div",{className:"helix-settings-section-content",children:n})]}),Ll=({label:e,description:t,error:n,required:r=!1,children:l,className:i=""})=>v.jsxs("div",{className:`helix-form-field ${i}`,children:[e&&v.jsxs("label",{className:"helix-form-label",children:[e,r&&v.jsx("span",{className:"helix-required",children:"*"})]}),v.jsx("div",{className:"helix-form-control",children:l}),t&&v.jsx("p",{className:"helix-form-description",children:t}),n&&v.jsx("p",{className:"helix-form-error",children:n})]}),Ve=({label:e,description:t,value:n,onChange:r,placeholder:l="",type:i="text",required:o=!1,disabled:u=!1,error:s=null,className:c="",...m})=>{const p=h=>{r(h.target.value)};return v.jsx(Ll,{label:e,description:t,error:s,required:o,className:c,children:v.jsx("input",{type:i,value:n||"",onChange:p,placeholder:l,required:o,disabled:u,className:"helix-text-input",...m})})},gs=({settings:e,updateSetting:t})=>v.jsx(hn,{title:"Site Information",description:"Basic information about your WordPress site",children:v.jsxs("div",{className:"helix-settings-grid",children:[v.jsx(Ve,{label:"Site Title",description:"In a few words, explain what this site is about.",value:e.siteTitle,onChange:n=>t("siteTitle",n),placeholder:"My Awesome Site",required:!0}),v.jsx(Ve,{label:"Tagline",description:"A brief description of your site, usually displayed under the title.",value:e.tagline,onChange:n=>t("tagline",n),placeholder:"Just another WordPress site"}),v.jsx(Ve,{label:"WordPress Address (URL)",description:"The address of your WordPress core files.",value:e.siteUrl,onChange:n=>t("siteUrl",n),type:"url",placeholder:"https://example.com"}),v.jsx(Ve,{label:"Site Address (URL)",description:"The address you want people to type in their browser to reach your website.",value:e.homeUrl,onChange:n=>t("homeUrl",n),type:"url",placeholder:"https://example.com"}),v.jsx(Ve,{label:"Administration Email Address",description:"This address is used for admin purposes, like new user notification.",value:e.adminEmail,onChange:n=>t("adminEmail",n),type:"email",placeholder:"admin@example.com",required:!0}),v.jsx(Ve,{label:"Site Language",description:"The language for your site interface.",value:e.language,onChange:n=>t("language",n),placeholder:"en_US"}),v.jsx(Ve,{label:"Timezone",description:"Choose either a city in the same timezone as you or a UTC timezone offset.",value:e.timezone,onChange:n=>t("timezone",n),placeholder:"UTC"})]})}),nn=({label:e,description:t,value:n,onChange:r,options:l=[],required:i=!1,disabled:o=!1,error:u=null,className:s="",placeholder:c="Select an option...",...m})=>{const p=h=>{r(h.target.value)};return v.jsx(Ll,{label:e,description:t,error:u,required:i,className:s,children:v.jsxs("select",{value:n||"",onChange:p,required:i,disabled:o,className:"helix-select-input",...m,children:[c&&v.jsx("option",{value:"",disabled:!0,children:c}),l.map(h=>v.jsx("option",{value:h.value,children:h.label},h.value))]})})},ke=({label:e,description:t,value:n,onChange:r,min:l=null,max:i=null,step:o=1,required:u=!1,disabled:s=!1,error:c=null,className:m="",...p})=>{const h=y=>{const w=y.target.value;r(w===""?"":Number(w))};return v.jsx(Ll,{label:e,description:t,error:c,required:u,className:m,children:v.jsx("input",{type:"number",value:n||"",onChange:h,min:l,max:i,step:o,required:u,disabled:s,className:"helix-number-input",...p})})},ur=({label:e,description:t,value:n,onChange:r,required:l=!1,disabled:i=!1,error:o=null,className:u="",...s})=>{const c=m=>{r(m.target.checked)};return v.jsx(Ll,{description:t,error:o,required:l,className:`helix-toggle-field ${u}`,children:v.jsxs("label",{className:"helix-toggle-wrapper",children:[v.jsx("input",{type:"checkbox",checked:!!n,onChange:c,required:l,disabled:i,className:"helix-toggle-input",...s}),v.jsx("span",{className:"helix-toggle-slider"}),v.jsx("span",{className:"helix-toggle-label",children:e})]})})},hh=({settings:e,updateSetting:t})=>{const n=[{value:"posts",label:"Your latest posts"},{value:"page",label:"A static page"}],r=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:2,label:"Tuesday"},{value:3,label:"Wednesday"},{value:4,label:"Thursday"},{value:5,label:"Friday"},{value:6,label:"Saturday"}];return v.jsx(hn,{title:"Content & Reading",description:"Settings that affect how your content is displayed",children:v.jsxs("div",{className:"helix-settings-grid",children:[v.jsx(nn,{label:"Your homepage displays",description:"What to show on the front page of your site.",value:e.showOnFront,onChange:l=>t("showOnFront",l),options:n}),e.showOnFront==="page"&&v.jsxs(v.Fragment,{children:[v.jsx(ke,{label:"Homepage",description:"The page to show on the front page (Page ID).",value:e.pageOnFront,onChange:l=>t("pageOnFront",l),min:0}),v.jsx(ke,{label:"Posts page",description:"The page to show posts (Page ID).",value:e.pageForPosts,onChange:l=>t("pageForPosts",l),min:0})]}),v.jsx(ke,{label:"Blog pages show at most",description:"Number of posts to show per page.",value:e.postsPerPage,onChange:l=>t("postsPerPage",l),min:1,max:100}),v.jsx(ur,{label:"Discourage search engines from indexing this site",description:"This will discourage, but not prevent, search engines from indexing this site.",value:!e.blogPublic,onChange:l=>t("blogPublic",!l)}),v.jsx(Ve,{label:"Date Format",description:"Format for displaying dates throughout your site.",value:e.dateFormat,onChange:l=>t("dateFormat",l),placeholder:"F j, Y"}),v.jsx(Ve,{label:"Time Format",description:"Format for displaying times throughout your site.",value:e.timeFormat,onChange:l=>t("timeFormat",l),placeholder:"g:i a"}),v.jsx(nn,{label:"Week Starts On",description:"The day of the week the calendar should start on.",value:e.startOfWeek,onChange:l=>t("startOfWeek",parseInt(l)),options:r})]})})},mh=({settings:e,updateSetting:t})=>{const n=[{value:"standard",label:"Standard"},{value:"aside",label:"Aside"},{value:"gallery",label:"Gallery"},{value:"image",label:"Image"},{value:"link",label:"Link"},{value:"quote",label:"Quote"},{value:"status",label:"Status"},{value:"video",label:"Video"},{value:"audio",label:"Audio"},{value:"chat",label:"Chat"}],r=[{value:"open",label:"Open"},{value:"closed",label:"Closed"}];return v.jsx(hn,{title:"Writing & Publishing",description:"Settings for content creation and publishing",children:v.jsxs("div",{className:"helix-settings-grid",children:[v.jsx(ke,{label:"Default Post Category",description:"The default category for new posts (Category ID).",value:e.defaultCategory,onChange:l=>t("defaultCategory",l),min:1}),v.jsx(nn,{label:"Default Post Format",description:"The default format for new posts.",value:e.defaultPostFormat,onChange:l=>t("defaultPostFormat",l),options:n}),v.jsx(ur,{label:"Convert emoticons like :-) and :-P to graphics on display",description:"Transform text emoticons into graphical representations.",value:e.useSmilies,onChange:l=>t("useSmilies",l)}),v.jsx(nn,{label:"Default comment status",description:"Allow people to submit comments on new posts.",value:e.defaultCommentStatus,onChange:l=>t("defaultCommentStatus",l),options:r}),v.jsx(nn,{label:"Default ping status",description:"Allow link notifications from other blogs (pingbacks and trackbacks) on new posts.",value:e.defaultPingStatus,onChange:l=>t("defaultPingStatus",l),options:r})]})})},vh=({settings:e,updateSetting:t})=>v.jsx(hn,{title:"Media & Assets",description:"Settings for media files, images, and site branding",children:v.jsxs("div",{className:"helix-settings-grid",children:[v.jsx(ke,{label:"Site Logo",description:"The site logo (Media ID). Upload a logo in Media Library and enter its ID here.",value:e.siteLogo,onChange:n=>t("siteLogo",n),min:0}),v.jsx(ke,{label:"Site Icon (Favicon)",description:"The site icon/favicon (Media ID). Upload an icon in Media Library and enter its ID here.",value:e.siteIcon,onChange:n=>t("siteIcon",n),min:0}),v.jsxs("div",{className:"helix-settings-subsection",children:[v.jsx("h4",{children:"Image Sizes"}),v.jsx(ke,{label:"Thumbnail Width",description:"Maximum width of thumbnail images in pixels.",value:e.thumbnailSizeW,onChange:n=>t("thumbnailSizeW",n),min:0,max:2e3}),v.jsx(ke,{label:"Thumbnail Height",description:"Maximum height of thumbnail images in pixels.",value:e.thumbnailSizeH,onChange:n=>t("thumbnailSizeH",n),min:0,max:2e3}),v.jsx(ke,{label:"Medium Width",description:"Maximum width of medium-sized images in pixels.",value:e.mediumSizeW,onChange:n=>t("mediumSizeW",n),min:0,max:2e3}),v.jsx(ke,{label:"Medium Height",description:"Maximum height of medium-sized images in pixels.",value:e.mediumSizeH,onChange:n=>t("mediumSizeH",n),min:0,max:2e3}),v.jsx(ke,{label:"Large Width",description:"Maximum width of large-sized images in pixels.",value:e.largeSizeW,onChange:n=>t("largeSizeW",n),min:0,max:4e3}),v.jsx(ke,{label:"Large Height",description:"Maximum height of large-sized images in pixels.",value:e.largeSizeH,onChange:n=>t("largeSizeH",n),min:0,max:4e3})]}),v.jsx(ur,{label:"Organize my uploads into month- and year-based folders",description:"Organize uploaded files into date-based folder structure.",value:e.uploadsUseYearmonthFolders,onChange:n=>t("uploadsUseYearmonthFolders",n)})]})}),gh=({settings:e,updateSetting:t})=>{const n=[{value:"subscriber",label:"Subscriber"},{value:"contributor",label:"Contributor"},{value:"author",label:"Author"},{value:"editor",label:"Editor"},{value:"administrator",label:"Administrator"}];return v.jsx(hn,{title:"Users & Membership",description:"Settings for user registration and default permissions",children:v.jsxs("div",{className:"helix-settings-grid",children:[v.jsx(ur,{label:"Anyone can register",description:"Allow anyone to register as a user on your site.",value:e.usersCanRegister,onChange:r=>t("usersCanRegister",r)}),v.jsx(nn,{label:"New User Default Role",description:"The default role assigned to new users when they register.",value:e.defaultRole,onChange:r=>t("defaultRole",r),options:n})]})})},yh=({settings:e,updateSetting:t})=>v.jsx(hn,{title:"Helix Settings",description:"Settings specific to the Helix plugin",children:v.jsx("div",{className:"helix-settings-grid",children:v.jsx(ur,{label:"Use Default WordPress Admin",description:"Switch back to the default WordPress admin interface instead of using Helix.",value:e.helixUseDefaultAdmin,onChange:n=>t("helixUseDefaultAdmin",n)})})});function Ac(){const{settings:e,loading:t,saving:n,error:r,hasUnsavedChanges:l,updateSetting:i,saveSettings:o,resetSettings:u}=fh(),[s,c]=P.useState("site"),[m,p]=P.useState(null),h=async()=>{const k=await o();k.success?p({type:"success",message:k.message||"Settings saved successfully!"}):p({type:"error",message:k.message||"Failed to save settings. Please try again."})},y=()=>{u(),p({type:"info",message:"Changes have been reset to their original values."})},w=k=>{l&&!window.confirm("You have unsaved changes. Are you sure you want to switch tabs? Your changes will be lost.")||c(k)},x=()=>{const k={settings:e,updateSetting:i};switch(s){case"site":return v.jsx(gs,{...k});case"content":return v.jsx(hh,{...k});case"writing":return v.jsx(mh,{...k});case"media":return v.jsx(vh,{...k});case"users":return v.jsx(gh,{...k});case"helix":return v.jsx(yh,{...k});default:return v.jsx(gs,{...k})}};return t?v.jsx("div",{className:"helix-settings-page",children:v.jsxs("div",{className:"helix-loading",children:[v.jsx("div",{className:"helix-spinner"}),v.jsx("p",{children:"Loading settings..."})]})}):v.jsxs("div",{className:"helix-settings-page",children:[v.jsxs("div",{className:"helix-settings-header",children:[v.jsx("h1",{children:"Settings"}),v.jsx("p",{children:"Manage your WordPress site configuration"})]}),r&&v.jsx(vs,{type:"error",message:r,onClose:()=>{},autoClose:!1}),m&&v.jsx(vs,{type:m.type,message:m.message,onClose:()=>p(null)}),v.jsx(dh,{activeTab:s,onTabChange:w,hasUnsavedChanges:l}),v.jsx("div",{className:"helix-settings-content",children:v.jsx("div",{id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,className:"helix-tab-panel",children:x()})}),v.jsx("div",{className:"helix-settings-footer",children:v.jsx(ph,{onSave:h,onReset:y,saving:n,hasUnsavedChanges:l})})]})}function wh(){return v.jsx("div",{children:"Two-Factor Authentication Setup"})}function xh(){return v.jsx(oh,{children:v.jsxs(rh,{children:[v.jsx($r,{path:"/",element:v.jsx(to,{})}),v.jsx($r,{path:"/settings",element:v.jsx(Ac,{})}),v.jsx($r,{path:"/2fa",element:v.jsx(wh,{})})]})})}document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("helix-root");e&&Tn(e).render(v.jsx(xh,{}));const t=document.getElementById("helix-settings-root");t&&Tn(t).render(v.jsx(Ac,{}));const n=document.getElementById("helix-posts-root");n&&Tn(n).render(v.jsx(to,{}));const r=document.getElementById("helix-users-root");r&&Tn(r).render(v.jsx(to,{}))});