| Server IP : 138.197.107.151 / Your IP : 216.73.217.7 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/silversharkdev/public/react-bk/assets/ |
Upload File : |
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function mf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Eh={exports:{}},Yo={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qy;function Rx(){if(qy)return Yo;qy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(l,c,f){var p=null;if(f!==void 0&&(p=""+f),c.key!==void 0&&(p=""+c.key),"key"in c){f={};for(var v in c)v!=="key"&&(f[v]=c[v])}else f=c;return c=f.ref,{$$typeof:n,type:l,key:p,ref:c!==void 0?c:null,props:f}}return Yo.Fragment=a,Yo.jsx=s,Yo.jsxs=s,Yo}var Vy;function Dx(){return Vy||(Vy=1,Eh.exports=Rx()),Eh.exports}var E=Dx(),_h={exports:{}},wt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Py;function jx(){if(Py)return wt;Py=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),w=Symbol.iterator;function j(q){return q===null||typeof q!="object"?null:(q=w&&q[w]||q["@@iterator"],typeof q=="function"?q:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,O={};function U(q,he,Ne){this.props=q,this.context=he,this.refs=O,this.updater=Ne||M}U.prototype.isReactComponent={},U.prototype.setState=function(q,he){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,he,"setState")},U.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function L(){}L.prototype=U.prototype;function P(q,he,Ne){this.props=q,this.context=he,this.refs=O,this.updater=Ne||M}var Z=P.prototype=new L;Z.constructor=P,z(Z,U.prototype),Z.isPureReactComponent=!0;var ee=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},ie=Object.prototype.hasOwnProperty;function g(q,he,Ne,ye,Re,He){return Ne=He.ref,{$$typeof:n,type:q,key:he,ref:Ne!==void 0?Ne:null,props:He}}function Q(q,he){return g(q.type,he,void 0,void 0,void 0,q.props)}function ne(q){return typeof q=="object"&&q!==null&&q.$$typeof===n}function ze(q){var he={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(Ne){return he[Ne]})}var ke=/\/+/g;function je(q,he){return typeof q=="object"&&q!==null&&q.key!=null?ze(""+q.key):he.toString(36)}function Ee(){}function Xe(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(Ee,Ee):(q.status="pending",q.then(function(he){q.status==="pending"&&(q.status="fulfilled",q.value=he)},function(he){q.status==="pending"&&(q.status="rejected",q.reason=he)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function $e(q,he,Ne,ye,Re){var He=typeof q;(He==="undefined"||He==="boolean")&&(q=null);var Ve=!1;if(q===null)Ve=!0;else switch(He){case"bigint":case"string":case"number":Ve=!0;break;case"object":switch(q.$$typeof){case n:case a:Ve=!0;break;case A:return Ve=q._init,$e(Ve(q._payload),he,Ne,ye,Re)}}if(Ve)return Re=Re(q),Ve=ye===""?"."+je(q,0):ye,ee(Re)?(Ne="",Ve!=null&&(Ne=Ve.replace(ke,"$&/")+"/"),$e(Re,he,Ne,"",function(Mt){return Mt})):Re!=null&&(ne(Re)&&(Re=Q(Re,Ne+(Re.key==null||q&&q.key===Re.key?"":(""+Re.key).replace(ke,"$&/")+"/")+Ve)),he.push(Re)),1;Ve=0;var Yt=ye===""?".":ye+":";if(ee(q))for(var Ge=0;Ge<q.length;Ge++)ye=q[Ge],He=Yt+je(ye,Ge),Ve+=$e(ye,he,Ne,He,Re);else if(Ge=j(q),typeof Ge=="function")for(q=Ge.call(q),Ge=0;!(ye=q.next()).done;)ye=ye.value,He=Yt+je(ye,Ge++),Ve+=$e(ye,he,Ne,He,Re);else if(He==="object"){if(typeof q.then=="function")return $e(Xe(q),he,Ne,ye,Re);throw he=String(q),Error("Objects are not valid as a React child (found: "+(he==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":he)+"). If you meant to render a collection of children, use an array instead.")}return Ve}function W(q,he,Ne){if(q==null)return q;var ye=[],Re=0;return $e(q,ye,"","",function(He){return he.call(Ne,He,Re++)}),ye}function pe(q){if(q._status===-1){var he=q._result;he=he(),he.then(function(Ne){(q._status===0||q._status===-1)&&(q._status=1,q._result=Ne)},function(Ne){(q._status===0||q._status===-1)&&(q._status=2,q._result=Ne)}),q._status===-1&&(q._status=0,q._result=he)}if(q._status===1)return q._result.default;throw q._result}var Ue=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var he=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(he))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)};function Ye(){}return wt.Children={map:W,forEach:function(q,he,Ne){W(q,function(){he.apply(this,arguments)},Ne)},count:function(q){var he=0;return W(q,function(){he++}),he},toArray:function(q){return W(q,function(he){return he})||[]},only:function(q){if(!ne(q))throw Error("React.Children.only expected to receive a single React element child.");return q}},wt.Component=U,wt.Fragment=s,wt.Profiler=c,wt.PureComponent=P,wt.StrictMode=l,wt.Suspense=S,wt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,wt.__COMPILER_RUNTIME={__proto__:null,c:function(q){return I.H.useMemoCache(q)}},wt.cache=function(q){return function(){return q.apply(null,arguments)}},wt.cloneElement=function(q,he,Ne){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var ye=z({},q.props),Re=q.key,He=void 0;if(he!=null)for(Ve in he.ref!==void 0&&(He=void 0),he.key!==void 0&&(Re=""+he.key),he)!ie.call(he,Ve)||Ve==="key"||Ve==="__self"||Ve==="__source"||Ve==="ref"&&he.ref===void 0||(ye[Ve]=he[Ve]);var Ve=arguments.length-2;if(Ve===1)ye.children=Ne;else if(1<Ve){for(var Yt=Array(Ve),Ge=0;Ge<Ve;Ge++)Yt[Ge]=arguments[Ge+2];ye.children=Yt}return g(q.type,Re,void 0,void 0,He,ye)},wt.createContext=function(q){return q={$$typeof:p,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:f,_context:q},q},wt.createElement=function(q,he,Ne){var ye,Re={},He=null;if(he!=null)for(ye in he.key!==void 0&&(He=""+he.key),he)ie.call(he,ye)&&ye!=="key"&&ye!=="__self"&&ye!=="__source"&&(Re[ye]=he[ye]);var Ve=arguments.length-2;if(Ve===1)Re.children=Ne;else if(1<Ve){for(var Yt=Array(Ve),Ge=0;Ge<Ve;Ge++)Yt[Ge]=arguments[Ge+2];Re.children=Yt}if(q&&q.defaultProps)for(ye in Ve=q.defaultProps,Ve)Re[ye]===void 0&&(Re[ye]=Ve[ye]);return g(q,He,void 0,void 0,null,Re)},wt.createRef=function(){return{current:null}},wt.forwardRef=function(q){return{$$typeof:v,render:q}},wt.isValidElement=ne,wt.lazy=function(q){return{$$typeof:A,_payload:{_status:-1,_result:q},_init:pe}},wt.memo=function(q,he){return{$$typeof:x,type:q,compare:he===void 0?null:he}},wt.startTransition=function(q){var he=I.T,Ne={};I.T=Ne;try{var ye=q(),Re=I.S;Re!==null&&Re(Ne,ye),typeof ye=="object"&&ye!==null&&typeof ye.then=="function"&&ye.then(Ye,Ue)}catch(He){Ue(He)}finally{I.T=he}},wt.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},wt.use=function(q){return I.H.use(q)},wt.useActionState=function(q,he,Ne){return I.H.useActionState(q,he,Ne)},wt.useCallback=function(q,he){return I.H.useCallback(q,he)},wt.useContext=function(q){return I.H.useContext(q)},wt.useDebugValue=function(){},wt.useDeferredValue=function(q,he){return I.H.useDeferredValue(q,he)},wt.useEffect=function(q,he,Ne){var ye=I.H;if(typeof Ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ye.useEffect(q,he)},wt.useId=function(){return I.H.useId()},wt.useImperativeHandle=function(q,he,Ne){return I.H.useImperativeHandle(q,he,Ne)},wt.useInsertionEffect=function(q,he){return I.H.useInsertionEffect(q,he)},wt.useLayoutEffect=function(q,he){return I.H.useLayoutEffect(q,he)},wt.useMemo=function(q,he){return I.H.useMemo(q,he)},wt.useOptimistic=function(q,he){return I.H.useOptimistic(q,he)},wt.useReducer=function(q,he,Ne){return I.H.useReducer(q,he,Ne)},wt.useRef=function(q){return I.H.useRef(q)},wt.useState=function(q){return I.H.useState(q)},wt.useSyncExternalStore=function(q,he,Ne){return I.H.useSyncExternalStore(q,he,Ne)},wt.useTransition=function(){return I.H.useTransition()},wt.version="19.1.1",wt}var Yy;function fu(){return Yy||(Yy=1,_h.exports=jx()),_h.exports}var D=fu();const Ae=mf(D);var Th={exports:{}},Zo={},Ch={exports:{}},Nh={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Zy;function Ox(){return Zy||(Zy=1,(function(n){function a(W,pe){var Ue=W.length;W.push(pe);e:for(;0<Ue;){var Ye=Ue-1>>>1,q=W[Ye];if(0<c(q,pe))W[Ye]=pe,W[Ue]=q,Ue=Ye;else break e}}function s(W){return W.length===0?null:W[0]}function l(W){if(W.length===0)return null;var pe=W[0],Ue=W.pop();if(Ue!==pe){W[0]=Ue;e:for(var Ye=0,q=W.length,he=q>>>1;Ye<he;){var Ne=2*(Ye+1)-1,ye=W[Ne],Re=Ne+1,He=W[Re];if(0>c(ye,Ue))Re<q&&0>c(He,ye)?(W[Ye]=He,W[Re]=Ue,Ye=Re):(W[Ye]=ye,W[Ne]=Ue,Ye=Ne);else if(Re<q&&0>c(He,Ue))W[Ye]=He,W[Re]=Ue,Ye=Re;else break e}}return pe}function c(W,pe){var Ue=W.sortIndex-pe.sortIndex;return Ue!==0?Ue:W.id-pe.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var p=Date,v=p.now();n.unstable_now=function(){return p.now()-v}}var S=[],x=[],A=1,w=null,j=3,M=!1,z=!1,O=!1,U=!1,L=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function ee(W){for(var pe=s(x);pe!==null;){if(pe.callback===null)l(x);else if(pe.startTime<=W)l(x),pe.sortIndex=pe.expirationTime,a(S,pe);else break;pe=s(x)}}function I(W){if(O=!1,ee(W),!z)if(s(S)!==null)z=!0,ie||(ie=!0,je());else{var pe=s(x);pe!==null&&$e(I,pe.startTime-W)}}var ie=!1,g=-1,Q=5,ne=-1;function ze(){return U?!0:!(n.unstable_now()-ne<Q)}function ke(){if(U=!1,ie){var W=n.unstable_now();ne=W;var pe=!0;try{e:{z=!1,O&&(O=!1,P(g),g=-1),M=!0;var Ue=j;try{t:{for(ee(W),w=s(S);w!==null&&!(w.expirationTime>W&&ze());){var Ye=w.callback;if(typeof Ye=="function"){w.callback=null,j=w.priorityLevel;var q=Ye(w.expirationTime<=W);if(W=n.unstable_now(),typeof q=="function"){w.callback=q,ee(W),pe=!0;break t}w===s(S)&&l(S),ee(W)}else l(S);w=s(S)}if(w!==null)pe=!0;else{var he=s(x);he!==null&&$e(I,he.startTime-W),pe=!1}}break e}finally{w=null,j=Ue,M=!1}pe=void 0}}finally{pe?je():ie=!1}}}var je;if(typeof Z=="function")je=function(){Z(ke)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,Xe=Ee.port2;Ee.port1.onmessage=ke,je=function(){Xe.postMessage(null)}}else je=function(){L(ke,0)};function $e(W,pe){g=L(function(){W(n.unstable_now())},pe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(W){W.callback=null},n.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<W?Math.floor(1e3/W):5},n.unstable_getCurrentPriorityLevel=function(){return j},n.unstable_next=function(W){switch(j){case 1:case 2:case 3:var pe=3;break;default:pe=j}var Ue=j;j=pe;try{return W()}finally{j=Ue}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(W,pe){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Ue=j;j=W;try{return pe()}finally{j=Ue}},n.unstable_scheduleCallback=function(W,pe,Ue){var Ye=n.unstable_now();switch(typeof Ue=="object"&&Ue!==null?(Ue=Ue.delay,Ue=typeof Ue=="number"&&0<Ue?Ye+Ue:Ye):Ue=Ye,W){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=Ue+q,W={id:A++,callback:pe,priorityLevel:W,startTime:Ue,expirationTime:q,sortIndex:-1},Ue>Ye?(W.sortIndex=Ue,a(x,W),s(S)===null&&W===s(x)&&(O?(P(g),g=-1):O=!0,$e(I,Ue-Ye))):(W.sortIndex=q,a(S,W),z||M||(z=!0,ie||(ie=!0,je()))),W},n.unstable_shouldYield=ze,n.unstable_wrapCallback=function(W){var pe=j;return function(){var Ue=j;j=pe;try{return W.apply(this,arguments)}finally{j=Ue}}}})(Nh)),Nh}var Xy;function kx(){return Xy||(Xy=1,Ch.exports=Ox()),Ch.exports}var Rh={exports:{}},ya={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fy;function Mx(){if(Fy)return ya;Fy=1;var n=fu();function a(S){var x="https://react.dev/errors/"+S;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)x+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+S+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(S,x,A){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:w==null?null:""+w,children:S,containerInfo:x,implementation:A}}var p=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(S,x){if(S==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ya.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ya.createPortal=function(S,x){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(a(299));return f(S,x,null,A)},ya.flushSync=function(S){var x=p.T,A=l.p;try{if(p.T=null,l.p=2,S)return S()}finally{p.T=x,l.p=A,l.d.f()}},ya.preconnect=function(S,x){typeof S=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,l.d.C(S,x))},ya.prefetchDNS=function(S){typeof S=="string"&&l.d.D(S)},ya.preinit=function(S,x){if(typeof S=="string"&&x&&typeof x.as=="string"){var A=x.as,w=v(A,x.crossOrigin),j=typeof x.integrity=="string"?x.integrity:void 0,M=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;A==="style"?l.d.S(S,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:w,integrity:j,fetchPriority:M}):A==="script"&&l.d.X(S,{crossOrigin:w,integrity:j,fetchPriority:M,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ya.preinitModule=function(S,x){if(typeof S=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var A=v(x.as,x.crossOrigin);l.d.M(S,{crossOrigin:A,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&l.d.M(S)},ya.preload=function(S,x){if(typeof S=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var A=x.as,w=v(A,x.crossOrigin);l.d.L(S,A,{crossOrigin:w,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ya.preloadModule=function(S,x){if(typeof S=="string")if(x){var A=v(x.as,x.crossOrigin);l.d.m(S,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:A,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else l.d.m(S)},ya.requestFormReset=function(S){l.d.r(S)},ya.unstable_batchedUpdates=function(S,x){return S(x)},ya.useFormState=function(S,x,A){return p.H.useFormState(S,x,A)},ya.useFormStatus=function(){return p.H.useHostTransitionStatus()},ya.version="19.1.1",ya}var Gy;function gf(){if(Gy)return Rh.exports;Gy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Rh.exports=Mx(),Rh.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Iy;function Lx(){if(Iy)return Zo;Iy=1;var n=kx(),a=fu(),s=gf();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(l(188))}function S(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var r=e,o=t;;){var d=r.return;if(d===null)break;var m=d.alternate;if(m===null){if(o=d.return,o!==null){r=o;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===r)return v(d),e;if(m===o)return v(d),t;m=m.sibling}throw Error(l(188))}if(r.return!==o.return)r=d,o=m;else{for(var T=!1,R=d.child;R;){if(R===r){T=!0,r=d,o=m;break}if(R===o){T=!0,o=d,r=m;break}R=R.sibling}if(!T){for(R=m.child;R;){if(R===r){T=!0,r=m,o=d;break}if(R===o){T=!0,o=m,r=d;break}R=R.sibling}if(!T)throw Error(l(189))}}if(r.alternate!==o)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function je(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Ee=Symbol.for("react.client.reference");function Xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case U:return"Profiler";case O:return"StrictMode";case I:return"Suspense";case ie:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case Z:return(e.displayName||"Context")+".Provider";case P:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case g:return t=e.displayName||null,t!==null?t:Xe(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return Xe(e(t))}catch{}}return null}var $e=Array.isArray,W=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ue={pending:!1,data:null,method:null,action:null},Ye=[],q=-1;function he(e){return{current:e}}function Ne(e){0>q||(e.current=Ye[q],Ye[q]=null,q--)}function ye(e,t){q++,Ye[q]=e.current,e.current=t}var Re=he(null),He=he(null),Ve=he(null),Yt=he(null);function Ge(e,t){switch(ye(Ve,t),ye(He,e),ye(Re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?py(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=py(t),e=my(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ne(Re),ye(Re,e)}function Mt(){Ne(Re),Ne(He),Ne(Ve)}function tt(e){e.memoizedState!==null&&ye(Yt,e);var t=Re.current,r=my(t,e.type);t!==r&&(ye(He,e),ye(Re,r))}function fn(e){He.current===e&&(Ne(Re),Ne(He)),Yt.current===e&&(Ne(Yt),Bo._currentValue=Ue)}var Nt=Object.prototype.hasOwnProperty,hn=n.unstable_scheduleCallback,ln=n.unstable_cancelCallback,zn=n.unstable_shouldYield,jn=n.unstable_requestPaint,Ht=n.unstable_now,Sn=n.unstable_getCurrentPriorityLevel,mn=n.unstable_ImmediatePriority,_n=n.unstable_UserBlockingPriority,ea=n.unstable_NormalPriority,At=n.unstable_LowPriority,H=n.unstable_IdlePriority,$=n.log,X=n.unstable_setDisableYieldValue,Ce=null,Te=null;function te(e){if(typeof $=="function"&&X(e),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(Ce,e)}catch{}}var de=Math.clz32?Math.clz32:Et,Oe=Math.log,lt=Math.LN2;function Et(e){return e>>>=0,e===0?32:31-(Oe(e)/lt|0)|0}var Qt=256,Zt=4194304;function gn(e){var t=e&42;if(t!==0)return t;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: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gn(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var d=0,m=e.suspendedLanes,T=e.pingedLanes;e=e.warmLanes;var R=o&134217727;return R!==0?(o=R&~m,o!==0?d=gn(o):(T&=R,T!==0?d=gn(T):r||(r=R&~e,r!==0&&(d=gn(r))))):(R=o&~m,R!==0?d=gn(R):T!==0?d=gn(T):r||(r=o&~e,r!==0&&(d=gn(r)))),d===0?0:t!==0&&t!==d&&(t&m)===0&&(m=d&-d,r=t&-t,m>=r||m===32&&(r&4194048)!==0)?t:d}function yn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ha(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Tn(){var e=Qt;return Qt<<=1,(Qt&4194048)===0&&(Qt=256),e}function Xt(){var e=Zt;return Zt<<=1,(Zt&62914560)===0&&(Zt=4194304),e}function Ft(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vn(e,t,r,o,d,m){var T=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var R=e.entanglements,V=e.expirationTimes,se=e.hiddenUpdates;for(r=T&~r;0<r;){var Se=31-de(r),_e=1<<Se;R[Se]=0,V[Se]=-1;var oe=se[Se];if(oe!==null)for(se[Se]=null,Se=0;Se<oe.length;Se++){var ue=oe[Se];ue!==null&&(ue.lane&=-536870913)}r&=~_e}o!==0&&Ie(e,o,0),m!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=m&~(T&~t))}function Ie(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-de(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&4194090}function gt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-de(r),d=1<<o;d&t|e[o]&t&&(e[o]|=t),r&=~d}}function ft(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Dt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function On(){var e=pe.p;return e!==0?e:(e=window.event,e===void 0?32:My(e.type))}function Jt(e,t){var r=pe.p;try{return pe.p=e,t()}finally{pe.p=r}}var yt=Math.random().toString(36).slice(2),Tt="__reactFiber$"+yt,ht="__reactProps$"+yt,Lt="__reactContainer$"+yt,Un="__reactEvents$"+yt,kn="__reactListeners$"+yt,ba="__reactHandles$"+yt,Ka="__reactResources$"+yt,Ta="__reactMarker$"+yt;function hs(e){delete e[Tt],delete e[ht],delete e[Un],delete e[kn],delete e[ba]}function Ha(e){var t=e[Tt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Lt]||r[Tt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=by(e);e!==null;){if(r=e[Tt])return r;e=by(e)}return t}e=r,r=e.parentNode}return null}function cr(e){if(e=e[Tt]||e[Lt]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ti(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function xa(e){var t=e[Ka];return t||(t=e[Ka]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Cn(e){e[Ta]=!0}var Di=new Set,ji={};function Ca(e,t){fr(e,t),fr(e+"Capture",t)}function fr(e,t){for(ji[e]=t,e=0;e<t.length;e++)Di.add(t[e])}var Fl=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]*$"),jr={},ps={};function ms(e){return Nt.call(ps,e)?!0:Nt.call(jr,e)?!1:Fl.test(e)?ps[e]=!0:(jr[e]=!0,!1)}function Or(e,t,r){if(ms(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function ni(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Na(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}var ai,fe;function be(e){if(ai===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ai=t&&t[1]||"",fe=-1<r.stack.indexOf(`
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ai+e+fe}var qe=!1;function rt(e,t){if(!e||qe)return"";qe=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(ue){var oe=ue}Reflect.construct(e,[],_e)}else{try{_e.call()}catch(ue){oe=ue}e.call(_e.prototype)}}else{try{throw Error()}catch(ue){oe=ue}(_e=e())&&typeof _e.catch=="function"&&_e.catch(function(){})}}catch(ue){if(ue&&oe&&typeof ue.stack=="string")return[ue.stack,oe.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),T=m[0],R=m[1];if(T&&R){var V=T.split(`
`),se=R.split(`
`);for(d=o=0;o<V.length&&!V[o].includes("DetermineComponentFrameRoot");)o++;for(;d<se.length&&!se[d].includes("DetermineComponentFrameRoot");)d++;if(o===V.length||d===se.length)for(o=V.length-1,d=se.length-1;1<=o&&0<=d&&V[o]!==se[d];)d--;for(;1<=o&&0<=d;o--,d--)if(V[o]!==se[d]){if(o!==1||d!==1)do if(o--,d--,0>d||V[o]!==se[d]){var Se=`
`+V[o].replace(" at new "," at ");return e.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",e.displayName)),Se}while(1<=o&&0<=d);break}}}finally{qe=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?be(r):""}function Qe(e){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be("Lazy");case 13:return be("Suspense");case 19:return be("SuspenseList");case 0:case 15:return rt(e.type,!1);case 11:return rt(e.type.render,!1);case 1:return rt(e.type,!0);case 31:return be("Activity");default:return""}}function tn(e){try{var t="";do t+=Qe(e),e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}function ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pa(e){var t=wn(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var d=r.get,m=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(T){o=""+T,m.call(this,T)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(T){o=""+T},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ra(e){e._valueTracker||(e._valueTracker=pa(e))}function kr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=wn(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function $a(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}}var Au=/[\n"\\]/g;function ua(e){return e.replace(Au,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zs(e,t,r,o,d,m,T,R){e.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.type=T:e.removeAttribute("type"),t!=null?T==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ot(t)):e.value!==""+ot(t)&&(e.value=""+ot(t)):T!=="submit"&&T!=="reset"||e.removeAttribute("value"),t!=null?Gl(e,T,ot(t)):r!=null?Gl(e,T,ot(r)):o!=null&&e.removeAttribute("value"),d==null&&m!=null&&(e.defaultChecked=!!m),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+ot(R):e.removeAttribute("name")}function Eu(e,t,r,o,d,m,T,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),t!=null||r!=null){if(!(m!=="submit"&&m!=="reset"||t!=null))return;r=r!=null?""+ot(r):"",t=t!=null?""+ot(t):r,R||t===e.value||(e.value=t),e.defaultValue=t}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=R?e.checked:!!o,e.defaultChecked=!!o,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(e.name=T)}function Gl(e,t,r){t==="number"&&$a(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ta(e,t,r,o){if(e=e.options,t){t={};for(var d=0;d<r.length;d++)t["$"+r[d]]=!0;for(r=0;r<e.length;r++)d=t.hasOwnProperty("$"+e[r].value),e[r].selected!==d&&(e[r].selected=d),d&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ot(r),t=null,d=0;d<e.length;d++){if(e[d].value===r){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Il(e,t,r){if(t!=null&&(t=""+ot(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+ot(r):""}function Oi(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(l(92));if($e(o)){if(1<o.length)throw Error(l(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=ot(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o)}function ki(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var kf=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 Mr(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||kf.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Lr(e,t,r){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in t)o=t[d],t.hasOwnProperty(d)&&r[d]!==o&&Mr(e,d,o)}else for(var m in t)t.hasOwnProperty(m)&&Mr(e,m,t[m])}function gs(e){if(e.indexOf("-")===-1)return!1;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 Mf=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"]]),ys=/^[\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 vs(e){return ys.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var bs=null;function Xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ri=null,Mi=null;function Ql(e){var t=cr(e);if(t&&(e=t.stateNode)){var r=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zs(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+ua(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var d=o[ht]||null;if(!d)throw Error(l(90));Zs(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&kr(o)}break e;case"textarea":Il(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&ta(e,!!r.multiple,t,!1)}}}var Kl=!1;function _u(e,t,r){if(Kl)return e(t,r);Kl=!0;try{var o=e(t);return o}finally{if(Kl=!1,(ri!==null||Mi!==null)&&(cc(),ri&&(t=ri,e=Mi,Mi=ri=null,Ql(t),e)))for(t=0;t<e.length;t++)Ql(e[t])}}function ii(e,t){var r=e.stateNode;if(r===null)return null;var o=r[ht]||null;if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,t,typeof r));return r}var dr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$l=!1;if(dr)try{var xs={};Object.defineProperty(xs,"passive",{get:function(){$l=!0}}),window.addEventListener("test",xs,xs),window.removeEventListener("test",xs,xs)}catch{$l=!1}var zr=null,Wl=null,Fs=null;function Tu(){if(Fs)return Fs;var e,t=Wl,r=t.length,o,d="value"in zr?zr.value:zr.textContent,m=d.length;for(e=0;e<r&&t[e]===d[e];e++);var T=r-e;for(o=1;o<=T&&t[r-o]===d[m-o];o++);return Fs=d.slice(e,1<o?1-o:void 0)}function Ss(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Li(){return!0}function Jl(){return!1}function na(e){function t(r,o,d,m,T){this._reactName=r,this._targetInst=d,this.type=o,this.nativeEvent=m,this.target=T,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(r=e[R],this[R]=r?r(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Li:Jl,this.isPropagationStopped=Jl,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Li)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Li)},persist:function(){},isPersistent:Li}),t}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ws=na(Ur),si=A({},Ur,{view:0,detail:0}),Lf=na(si),eo,to,hr,As=A({},si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xe,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hr&&(hr&&e.type==="mousemove"?(eo=e.screenX-hr.screenX,to=e.screenY-hr.screenY):to=eo=0,hr=e),eo)},movementY:function(e){return"movementY"in e?e.movementY:to}}),Gs=na(As),zf=A({},As,{dataTransfer:0}),Uf=na(zf),Bf=A({},si,{relatedTarget:0}),u=na(Bf),h=A({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),y=na(h),b=A({},Ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_=na(b),C=A({},Ur,{data:0}),N=na(C),Y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B={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"},K={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function me(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K[e])?!!t[e]:!1}function xe(){return me}var le=A({},si,{key:function(e){if(e.key){var t=Y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?B[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xe,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),De=na(le),pt=A({},As,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zt=na(pt),bt=A({},si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xe}),In=na(bt),Bn=A({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wa=na(Bn),Ja=A({},As,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jt=na(Ja),li=A({},Ur,{newState:0,oldState:0}),qt=na(li),An=[9,13,27,32],oi=dr&&"CompositionEvent"in window,ui=null;dr&&"documentMode"in document&&(ui=document.documentMode);var er=dr&&"TextEvent"in window&&!ui,zi=dr&&(!oi||ui&&8<ui&&11>=ui),qa=" ",pr=!1;function mr(e,t){switch(e){case"keyup":return An.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function gr(e,t){switch(e){case"compositionend":return Sa(t);case"keypress":return t.which!==32?null:(pr=!0,qa);case"textInput":return e=t.data,e===qa&&pr?null:e;default:return null}}function yr(e,t){if(Br)return e==="compositionend"||!oi&&mr(e,t)?(e=Tu(),Fs=Wl=zr=null,Br=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zi&&t.locale!=="ko"?null:t.data;default:return null}}var Hf={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 Cu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hf[e.type]:t==="textarea"}function Nu(e,t,r,o){ri?Mi?Mi.push(o):Mi=[o]:ri=o,t=gc(t,"onChange"),0<t.length&&(r=new ws("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Vt=null,Hr=null;function Va(e){uy(e,0)}function vr(e){var t=ti(e);if(kr(t))return e}function Ru(e,t){if(e==="change")return t}var Du=!1;if(dr){var Is;if(dr){var br="oninput"in document;if(!br){var Qs=document.createElement("div");Qs.setAttribute("oninput","return;"),br=typeof Qs.oninput=="function"}Is=br}else Is=!1;Du=Is&&(!document.documentMode||9<document.documentMode)}function xr(){Vt&&(Vt.detachEvent("onpropertychange",no),Hr=Vt=null)}function no(e){if(e.propertyName==="value"&&vr(Hr)){var t=[];Nu(t,Hr,e,Xs(e)),_u(Va,t)}}function Es(e,t,r){e==="focusin"?(xr(),Vt=t,Hr=r,Vt.attachEvent("onpropertychange",no)):e==="focusout"&&xr()}function Ks(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vr(Hr)}function $s(e,t){if(e==="click")return vr(t)}function ao(e,t){if(e==="input"||e==="change")return vr(t)}function qf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var aa=typeof Object.is=="function"?Object.is:qf;function ci(e,t){if(aa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var d=r[o];if(!Nt.call(t,d)||!aa(e[d],t[d]))return!1}return!0}function Ws(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ju(e,t){var r=Ws(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ws(r)}}function Js(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Js(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ro(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$a(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=$a(e.document)}return t}function k(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")}var F=dr&&"documentMode"in document&&11>=document.documentMode,re=null,ce=null,ve=null,Le=!1;function Ze(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Le||re==null||re!==$a(o)||(o=re,"selectionStart"in o&&k(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ve&&ci(ve,o)||(ve=o,o=gc(ce,"onSelect"),0<o.length&&(t=new ws("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=re)))}function Ke(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Pe={animationend:Ke("Animation","AnimationEnd"),animationiteration:Ke("Animation","AnimationIteration"),animationstart:Ke("Animation","AnimationStart"),transitionrun:Ke("Transition","TransitionRun"),transitionstart:Ke("Transition","TransitionStart"),transitioncancel:Ke("Transition","TransitionCancel"),transitionend:Ke("Transition","TransitionEnd")},St={},ut={};dr&&(ut=document.createElement("div").style,"AnimationEvent"in window||(delete Pe.animationend.animation,delete Pe.animationiteration.animation,delete Pe.animationstart.animation),"TransitionEvent"in window||delete Pe.transitionend.transition);function st(e){if(St[e])return St[e];if(!Pe[e])return e;var t=Pe[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in ut)return St[e]=t[r];return e}var _t=st("animationend"),it=st("animationiteration"),nn=st("animationstart"),ma=st("transitionrun"),ra=st("transitionstart"),Da=st("transitioncancel"),Pa=st("transitionend"),fi=new Map,Qn="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(" ");Qn.push("scrollEnd");function Sr(e,t){fi.set(e,t),Ca(t,[e])}var Fp=new WeakMap;function tr(e,t){if(typeof e=="object"&&e!==null){var r=Fp.get(e);return r!==void 0?r:(t={value:e,source:t,stack:tn(t)},Fp.set(e,t),t)}return{value:e,source:t,stack:tn(t)}}var nr=[],el=0,Vf=0;function Ou(){for(var e=el,t=Vf=el=0;t<e;){var r=nr[t];nr[t++]=null;var o=nr[t];nr[t++]=null;var d=nr[t];nr[t++]=null;var m=nr[t];if(nr[t++]=null,o!==null&&d!==null){var T=o.pending;T===null?d.next=d:(d.next=T.next,T.next=d),o.pending=d}m!==0&&Gp(r,d,m)}}function ku(e,t,r,o){nr[el++]=e,nr[el++]=t,nr[el++]=r,nr[el++]=o,Vf|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Pf(e,t,r,o){return ku(e,t,r,o),Mu(e)}function tl(e,t){return ku(e,null,null,t),Mu(e)}function Gp(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var d=!1,m=e.return;m!==null;)m.childLanes|=r,o=m.alternate,o!==null&&(o.childLanes|=r),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(d=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,d&&t!==null&&(d=31-de(r),e=m.hiddenUpdates,o=e[d],o===null?e[d]=[t]:o.push(t),t.lane=r|536870912),m):null}function Mu(e){if(50<Do)throw Do=0,Id=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var nl={};function p1(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ya(e,t,r,o){return new p1(e,t,r,o)}function Yf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var r=e.alternate;return r===null?(r=Ya(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Ip(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Lu(e,t,r,o,d,m){var T=0;if(o=e,typeof e=="function")Yf(e)&&(T=1);else if(typeof e=="string")T=gx(e,r,Re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=Ya(31,r,t,d),e.elementType=ne,e.lanes=m,e;case z:return _s(r.children,d,m,t);case O:T=8,d|=24;break;case U:return e=Ya(12,r,t,d|2),e.elementType=U,e.lanes=m,e;case I:return e=Ya(13,r,t,d),e.elementType=I,e.lanes=m,e;case ie:return e=Ya(19,r,t,d),e.elementType=ie,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:case Z:T=10;break e;case P:T=9;break e;case ee:T=11;break e;case g:T=14;break e;case Q:T=16,o=null;break e}T=29,r=Error(l(130,e===null?"null":typeof e,"")),o=null}return t=Ya(T,r,t,d),t.elementType=e,t.type=o,t.lanes=m,t}function _s(e,t,r,o){return e=Ya(7,e,o,t),e.lanes=r,e}function Zf(e,t,r){return e=Ya(6,e,null,t),e.lanes=r,e}function Xf(e,t,r){return t=Ya(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var al=[],rl=0,zu=null,Uu=0,ar=[],rr=0,Ts=null,hi=1,pi="";function Cs(e,t){al[rl++]=Uu,al[rl++]=zu,zu=e,Uu=t}function Qp(e,t,r){ar[rr++]=hi,ar[rr++]=pi,ar[rr++]=Ts,Ts=e;var o=hi;e=pi;var d=32-de(o)-1;o&=~(1<<d),r+=1;var m=32-de(t)+d;if(30<m){var T=d-d%5;m=(o&(1<<T)-1).toString(32),o>>=T,d-=T,hi=1<<32-de(t)+d|r<<d|o,pi=m+e}else hi=1<<m|r<<d|o,pi=e}function Ff(e){e.return!==null&&(Cs(e,1),Qp(e,1,0))}function Gf(e){for(;e===zu;)zu=al[--rl],al[rl]=null,Uu=al[--rl],al[rl]=null;for(;e===Ts;)Ts=ar[--rr],ar[rr]=null,pi=ar[--rr],ar[rr]=null,hi=ar[--rr],ar[rr]=null}var wa=null,Mn=null,en=!1,Ns=null,qr=!1,If=Error(l(519));function Rs(e){var t=Error(l(418,""));throw lo(tr(t,e)),If}function Kp(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[Tt]=e,t[ht]=o,r){case"dialog":Bt("cancel",t),Bt("close",t);break;case"iframe":case"object":case"embed":Bt("load",t);break;case"video":case"audio":for(r=0;r<Oo.length;r++)Bt(Oo[r],t);break;case"source":Bt("error",t);break;case"img":case"image":case"link":Bt("error",t),Bt("load",t);break;case"details":Bt("toggle",t);break;case"input":Bt("invalid",t),Eu(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),Ra(t);break;case"select":Bt("invalid",t);break;case"textarea":Bt("invalid",t),Oi(t,o.value,o.defaultValue,o.children),Ra(t)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||hy(t.textContent,r)?(o.popover!=null&&(Bt("beforetoggle",t),Bt("toggle",t)),o.onScroll!=null&&Bt("scroll",t),o.onScrollEnd!=null&&Bt("scrollend",t),o.onClick!=null&&(t.onclick=yc),t=!0):t=!1,t||Rs(e)}function $p(e){for(wa=e.return;wa;)switch(wa.tag){case 5:case 13:qr=!1;return;case 27:case 3:qr=!0;return;default:wa=wa.return}}function io(e){if(e!==wa)return!1;if(!en)return $p(e),en=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||ch(e.type,e.memoizedProps)),r=!r),r&&Mn&&Rs(e),$p(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(t===0){Mn=Ar(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++;e=e.nextSibling}Mn=null}}else t===27?(t=Mn,Wi(e.type)?(e=ph,ph=null,Mn=e):Mn=t):Mn=wa?Ar(e.stateNode.nextSibling):null;return!0}function so(){Mn=wa=null,en=!1}function Wp(){var e=Ns;return e!==null&&(ka===null?ka=e:ka.push.apply(ka,e),Ns=null),e}function lo(e){Ns===null?Ns=[e]:Ns.push(e)}var Qf=he(null),Ds=null,mi=null;function Ui(e,t,r){ye(Qf,t._currentValue),t._currentValue=r}function gi(e){e._currentValue=Qf.current,Ne(Qf)}function Kf(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function $f(e,t,r,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var m=d.dependencies;if(m!==null){var T=d.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=d;for(var V=0;V<t.length;V++)if(R.context===t[V]){m.lanes|=r,R=m.alternate,R!==null&&(R.lanes|=r),Kf(m.return,r,e),o||(T=null);break e}m=R.next}}else if(d.tag===18){if(T=d.return,T===null)throw Error(l(341));T.lanes|=r,m=T.alternate,m!==null&&(m.lanes|=r),Kf(T,r,e),T=null}else T=d.child;if(T!==null)T.return=d;else for(T=d;T!==null;){if(T===e){T=null;break}if(d=T.sibling,d!==null){d.return=T.return,T=d;break}T=T.return}d=T}}function oo(e,t,r,o){e=null;for(var d=t,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var T=d.alternate;if(T===null)throw Error(l(387));if(T=T.memoizedProps,T!==null){var R=d.type;aa(d.pendingProps.value,T.value)||(e!==null?e.push(R):e=[R])}}else if(d===Yt.current){if(T=d.alternate,T===null)throw Error(l(387));T.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Bo):e=[Bo])}d=d.return}e!==null&&$f(t,e,r,o),t.flags|=262144}function Bu(e){for(e=e.firstContext;e!==null;){if(!aa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function js(e){Ds=e,mi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ga(e){return Jp(Ds,e)}function Hu(e,t){return Ds===null&&js(e),Jp(e,t)}function Jp(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},mi===null){if(e===null)throw Error(l(308));mi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else mi=mi.next=t;return r}var m1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},g1=n.unstable_scheduleCallback,y1=n.unstable_NormalPriority,Kn={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wf(){return{controller:new m1,data:new Map,refCount:0}}function uo(e){e.refCount--,e.refCount===0&&g1(y1,function(){e.controller.abort()})}var co=null,Jf=0,il=0,sl=null;function v1(e,t){if(co===null){var r=co=[];Jf=0,il=th(),sl={status:"pending",value:void 0,then:function(o){r.push(o)}}}return Jf++,t.then(em,em),t}function em(){if(--Jf===0&&co!==null){sl!==null&&(sl.status="fulfilled");var e=co;co=null,il=0,sl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function b1(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(d){r.push(d)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var d=0;d<r.length;d++)(0,r[d])(t)},function(d){for(o.status="rejected",o.reason=d,d=0;d<r.length;d++)(0,r[d])(void 0)}),o}var tm=W.S;W.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&v1(e,t),tm!==null&&tm(e,t)};var Os=he(null);function ed(){var e=Os.current;return e!==null?e:pn.pooledCache}function qu(e,t){t===null?ye(Os,Os.current):ye(Os,t.pool)}function nm(){var e=ed();return e===null?null:{parent:Kn._currentValue,pool:e}}var fo=Error(l(460)),am=Error(l(474)),Vu=Error(l(542)),td={then:function(){}};function rm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Pu(){}function im(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Pu,Pu),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e;default:if(typeof t.status=="string")t.then(Pu,Pu);else{if(e=pn,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=o}},function(o){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e}throw ho=t,fo}}var ho=null;function sm(){if(ho===null)throw Error(l(459));var e=ho;return ho=null,e}function lm(e){if(e===fo||e===Vu)throw Error(l(483))}var Bi=!1;function nd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ad(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qi(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(an&2)!==0){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,t=Mu(e),Gp(e,null,r),t}return ku(e,o,t,r),Mu(e)}function po(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,gt(e,r)}}function rd(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var d=null,m=null;if(r=r.firstBaseUpdate,r!==null){do{var T={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};m===null?d=m=T:m=m.next=T,r=r.next}while(r!==null);m===null?d=m=t:m=m.next=t}else d=m=t;r={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var id=!1;function mo(){if(id){var e=sl;if(e!==null)throw e}}function go(e,t,r,o){id=!1;var d=e.updateQueue;Bi=!1;var m=d.firstBaseUpdate,T=d.lastBaseUpdate,R=d.shared.pending;if(R!==null){d.shared.pending=null;var V=R,se=V.next;V.next=null,T===null?m=se:T.next=se,T=V;var Se=e.alternate;Se!==null&&(Se=Se.updateQueue,R=Se.lastBaseUpdate,R!==T&&(R===null?Se.firstBaseUpdate=se:R.next=se,Se.lastBaseUpdate=V))}if(m!==null){var _e=d.baseState;T=0,Se=se=V=null,R=m;do{var oe=R.lane&-536870913,ue=oe!==R.lane;if(ue?(Gt&oe)===oe:(o&oe)===oe){oe!==0&&oe===il&&(id=!0),Se!==null&&(Se=Se.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var mt=e,ct=R;oe=t;var cn=r;switch(ct.tag){case 1:if(mt=ct.payload,typeof mt=="function"){_e=mt.call(cn,_e,oe);break e}_e=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=ct.payload,oe=typeof mt=="function"?mt.call(cn,_e,oe):mt,oe==null)break e;_e=A({},_e,oe);break e;case 2:Bi=!0}}oe=R.callback,oe!==null&&(e.flags|=64,ue&&(e.flags|=8192),ue=d.callbacks,ue===null?d.callbacks=[oe]:ue.push(oe))}else ue={lane:oe,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Se===null?(se=Se=ue,V=_e):Se=Se.next=ue,T|=oe;if(R=R.next,R===null){if(R=d.shared.pending,R===null)break;ue=R,R=ue.next,ue.next=null,d.lastBaseUpdate=ue,d.shared.pending=null}}while(!0);Se===null&&(V=_e),d.baseState=V,d.firstBaseUpdate=se,d.lastBaseUpdate=Se,m===null&&(d.shared.lanes=0),Ii|=T,e.lanes=T,e.memoizedState=_e}}function om(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function um(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)om(r[e],t)}var ll=he(null),Yu=he(0);function cm(e,t){e=Ai,ye(Yu,e),ye(ll,t),Ai=e|t.baseLanes}function sd(){ye(Yu,Ai),ye(ll,ll.current)}function ld(){Ai=Yu.current,Ne(ll),Ne(Yu)}var Vi=0,Ct=null,on=null,Yn=null,Zu=!1,ol=!1,ks=!1,Xu=0,yo=0,ul=null,x1=0;function Hn(){throw Error(l(321))}function od(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!aa(e[r],t[r]))return!1;return!0}function ud(e,t,r,o,d,m){return Vi=m,Ct=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e===null||e.memoizedState===null?Gm:Im,ks=!1,m=r(o,d),ks=!1,ol&&(m=dm(t,r,o,d)),fm(e),m}function fm(e){W.H=$u;var t=on!==null&&on.next!==null;if(Vi=0,Yn=on=Ct=null,Zu=!1,yo=0,ul=null,t)throw Error(l(300));e===null||ia||(e=e.dependencies,e!==null&&Bu(e)&&(ia=!0))}function dm(e,t,r,o){Ct=e;var d=0;do{if(ol&&(ul=null),yo=0,ol=!1,25<=d)throw Error(l(301));if(d+=1,Yn=on=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}W.H=C1,m=t(r,o)}while(ol);return m}function S1(){var e=W.H,t=e.useState()[0];return t=typeof t.then=="function"?vo(t):t,e=e.useState()[0],(on!==null?on.memoizedState:null)!==e&&(Ct.flags|=1024),t}function cd(){var e=Xu!==0;return Xu=0,e}function fd(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function dd(e){if(Zu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zu=!1}Vi=0,Yn=on=Ct=null,ol=!1,yo=Xu=0,ul=null}function ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yn===null?Ct.memoizedState=Yn=e:Yn=Yn.next=e,Yn}function Zn(){if(on===null){var e=Ct.alternate;e=e!==null?e.memoizedState:null}else e=on.next;var t=Yn===null?Ct.memoizedState:Yn.next;if(t!==null)Yn=t,on=e;else{if(e===null)throw Ct.alternate===null?Error(l(467)):Error(l(310));on=e,e={memoizedState:on.memoizedState,baseState:on.baseState,baseQueue:on.baseQueue,queue:on.queue,next:null},Yn===null?Ct.memoizedState=Yn=e:Yn=Yn.next=e}return Yn}function hd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vo(e){var t=yo;return yo+=1,ul===null&&(ul=[]),e=im(ul,e,t),t=Ct,(Yn===null?t.memoizedState:Yn.next)===null&&(t=t.alternate,W.H=t===null||t.memoizedState===null?Gm:Im),e}function Fu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vo(e);if(e.$$typeof===Z)return ga(e)}throw Error(l(438,String(e)))}function pd(e){var t=null,r=Ct.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=Ct.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=hd(),Ct.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=ze;return t.index++,r}function yi(e,t){return typeof t=="function"?t(e):t}function Gu(e){var t=Zn();return md(t,on,e)}function md(e,t,r){var o=e.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=r;var d=e.baseQueue,m=o.pending;if(m!==null){if(d!==null){var T=d.next;d.next=m.next,m.next=T}t.baseQueue=d=m,o.pending=null}if(m=e.baseState,d===null)e.memoizedState=m;else{t=d.next;var R=T=null,V=null,se=t,Se=!1;do{var _e=se.lane&-536870913;if(_e!==se.lane?(Gt&_e)===_e:(Vi&_e)===_e){var oe=se.revertLane;if(oe===0)V!==null&&(V=V.next={lane:0,revertLane:0,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),_e===il&&(Se=!0);else if((Vi&oe)===oe){se=se.next,oe===il&&(Se=!0);continue}else _e={lane:0,revertLane:se.revertLane,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},V===null?(R=V=_e,T=m):V=V.next=_e,Ct.lanes|=oe,Ii|=oe;_e=se.action,ks&&r(m,_e),m=se.hasEagerState?se.eagerState:r(m,_e)}else oe={lane:_e,revertLane:se.revertLane,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},V===null?(R=V=oe,T=m):V=V.next=oe,Ct.lanes|=_e,Ii|=_e;se=se.next}while(se!==null&&se!==t);if(V===null?T=m:V.next=R,!aa(m,e.memoizedState)&&(ia=!0,Se&&(r=sl,r!==null)))throw r;e.memoizedState=m,e.baseState=T,e.baseQueue=V,o.lastRenderedState=m}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function gd(e){var t=Zn(),r=t.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var o=r.dispatch,d=r.pending,m=t.memoizedState;if(d!==null){r.pending=null;var T=d=d.next;do m=e(m,T.action),T=T.next;while(T!==d);aa(m,t.memoizedState)||(ia=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),r.lastRenderedState=m}return[m,o]}function hm(e,t,r){var o=Ct,d=Zn(),m=en;if(m){if(r===void 0)throw Error(l(407));r=r()}else r=t();var T=!aa((on||d).memoizedState,r);T&&(d.memoizedState=r,ia=!0),d=d.queue;var R=gm.bind(null,o,d,e);if(bo(2048,8,R,[e]),d.getSnapshot!==t||T||Yn!==null&&Yn.memoizedState.tag&1){if(o.flags|=2048,cl(9,Iu(),mm.bind(null,o,d,r,t),null),pn===null)throw Error(l(349));m||(Vi&124)!==0||pm(o,t,r)}return r}function pm(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ct.updateQueue,t===null?(t=hd(),Ct.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function mm(e,t,r,o){t.value=r,t.getSnapshot=o,ym(t)&&vm(e)}function gm(e,t,r){return r(function(){ym(t)&&vm(e)})}function ym(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!aa(e,r)}catch{return!0}}function vm(e){var t=tl(e,2);t!==null&&Ia(t,e,2)}function yd(e){var t=ja();if(typeof e=="function"){var r=e;if(e=r(),ks){te(!0);try{r()}finally{te(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yi,lastRenderedState:e},t}function bm(e,t,r,o){return e.baseState=r,md(e,on,typeof o=="function"?o:yi)}function w1(e,t,r,o,d){if(Ku(e))throw Error(l(485));if(e=t.action,e!==null){var m={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){m.listeners.push(T)}};W.T!==null?r(!0):m.isTransition=!1,o(m),r=t.pending,r===null?(m.next=t.pending=m,xm(t,m)):(m.next=r.next,t.pending=r.next=m)}}function xm(e,t){var r=t.action,o=t.payload,d=e.state;if(t.isTransition){var m=W.T,T={};W.T=T;try{var R=r(d,o),V=W.S;V!==null&&V(T,R),Sm(e,t,R)}catch(se){vd(e,t,se)}finally{W.T=m}}else try{m=r(d,o),Sm(e,t,m)}catch(se){vd(e,t,se)}}function Sm(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){wm(e,t,o)},function(o){return vd(e,t,o)}):wm(e,t,r)}function wm(e,t,r){t.status="fulfilled",t.value=r,Am(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,xm(e,r)))}function vd(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,Am(t),t=t.next;while(t!==o)}e.action=null}function Am(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Em(e,t){return t}function _m(e,t){if(en){var r=pn.formState;if(r!==null){e:{var o=Ct;if(en){if(Mn){t:{for(var d=Mn,m=qr;d.nodeType!==8;){if(!m){d=null;break t}if(d=Ar(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){Mn=Ar(d.nextSibling),o=d.data==="F!";break e}}Rs(o)}o=!1}o&&(t=r[0])}}return r=ja(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Em,lastRenderedState:t},r.queue=o,r=Zm.bind(null,Ct,o),o.dispatch=r,o=yd(!1),m=Ad.bind(null,Ct,!1,o.queue),o=ja(),d={state:t,dispatch:null,action:e,pending:null},o.queue=d,r=w1.bind(null,Ct,d,m,r),d.dispatch=r,o.memoizedState=e,[t,r,!1]}function Tm(e){var t=Zn();return Cm(t,on,e)}function Cm(e,t,r){if(t=md(e,t,Em)[0],e=Gu(yi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=vo(t)}catch(T){throw T===fo?Vu:T}else o=t;t=Zn();var d=t.queue,m=d.dispatch;return r!==t.memoizedState&&(Ct.flags|=2048,cl(9,Iu(),A1.bind(null,d,r),null)),[o,m,e]}function A1(e,t){e.action=t}function Nm(e){var t=Zn(),r=on;if(r!==null)return Cm(t,r,e);Zn(),t=t.memoizedState,r=Zn();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function cl(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=Ct.updateQueue,t===null&&(t=hd(),Ct.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function Iu(){return{destroy:void 0,resource:void 0}}function Rm(){return Zn().memoizedState}function Qu(e,t,r,o){var d=ja();o=o===void 0?null:o,Ct.flags|=e,d.memoizedState=cl(1|t,Iu(),r,o)}function bo(e,t,r,o){var d=Zn();o=o===void 0?null:o;var m=d.memoizedState.inst;on!==null&&o!==null&&od(o,on.memoizedState.deps)?d.memoizedState=cl(t,m,r,o):(Ct.flags|=e,d.memoizedState=cl(1|t,m,r,o))}function Dm(e,t){Qu(8390656,8,e,t)}function jm(e,t){bo(2048,8,e,t)}function Om(e,t){return bo(4,2,e,t)}function km(e,t){return bo(4,4,e,t)}function Mm(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lm(e,t,r){r=r!=null?r.concat([e]):null,bo(4,4,Mm.bind(null,t,e),r)}function bd(){}function zm(e,t){var r=Zn();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&od(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function Um(e,t){var r=Zn();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&od(t,o[1]))return o[0];if(o=e(),ks){te(!0);try{e()}finally{te(!1)}}return r.memoizedState=[o,t],o}function xd(e,t,r){return r===void 0||(Vi&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=qg(),Ct.lanes|=e,Ii|=e,r)}function Bm(e,t,r,o){return aa(r,t)?r:ll.current!==null?(e=xd(e,r,o),aa(e,t)||(ia=!0),e):(Vi&42)===0?(ia=!0,e.memoizedState=r):(e=qg(),Ct.lanes|=e,Ii|=e,t)}function Hm(e,t,r,o,d){var m=pe.p;pe.p=m!==0&&8>m?m:8;var T=W.T,R={};W.T=R,Ad(e,!1,t,r);try{var V=d(),se=W.S;if(se!==null&&se(R,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var Se=b1(V,o);xo(e,t,Se,Ga(e))}else xo(e,t,o,Ga(e))}catch(_e){xo(e,t,{then:function(){},status:"rejected",reason:_e},Ga())}finally{pe.p=m,W.T=T}}function E1(){}function Sd(e,t,r,o){if(e.tag!==5)throw Error(l(476));var d=qm(e).queue;Hm(e,d,t,Ue,r===null?E1:function(){return Vm(e),r(o)})}function qm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ue,baseState:Ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yi,lastRenderedState:Ue},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yi,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vm(e){var t=qm(e).next.queue;xo(e,t,{},Ga())}function wd(){return ga(Bo)}function Pm(){return Zn().memoizedState}function Ym(){return Zn().memoizedState}function _1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Ga();e=Hi(r);var o=qi(t,e,r);o!==null&&(Ia(o,t,r),po(o,t,r)),t={cache:Wf()},e.payload=t;return}t=t.return}}function T1(e,t,r){var o=Ga();r={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},Ku(e)?Xm(t,r):(r=Pf(e,t,r,o),r!==null&&(Ia(r,e,o),Fm(r,t,o)))}function Zm(e,t,r){var o=Ga();xo(e,t,r,o)}function xo(e,t,r,o){var d={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ku(e))Xm(t,d);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null))try{var T=t.lastRenderedState,R=m(T,r);if(d.hasEagerState=!0,d.eagerState=R,aa(R,T))return ku(e,t,d,0),pn===null&&Ou(),!1}catch{}finally{}if(r=Pf(e,t,d,o),r!==null)return Ia(r,e,o),Fm(r,t,o),!0}return!1}function Ad(e,t,r,o){if(o={lane:2,revertLane:th(),action:o,hasEagerState:!1,eagerState:null,next:null},Ku(e)){if(t)throw Error(l(479))}else t=Pf(e,r,o,2),t!==null&&Ia(t,e,2)}function Ku(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function Xm(e,t){ol=Zu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Fm(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,gt(e,r)}}var $u={readContext:ga,use:Fu,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useLayoutEffect:Hn,useInsertionEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useSyncExternalStore:Hn,useId:Hn,useHostTransitionStatus:Hn,useFormState:Hn,useActionState:Hn,useOptimistic:Hn,useMemoCache:Hn,useCacheRefresh:Hn},Gm={readContext:ga,use:Fu,useCallback:function(e,t){return ja().memoizedState=[e,t===void 0?null:t],e},useContext:ga,useEffect:Dm,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Qu(4194308,4,Mm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Qu(4194308,4,e,t)},useInsertionEffect:function(e,t){Qu(4,2,e,t)},useMemo:function(e,t){var r=ja();t=t===void 0?null:t;var o=e();if(ks){te(!0);try{e()}finally{te(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=ja();if(r!==void 0){var d=r(t);if(ks){te(!0);try{r(t)}finally{te(!1)}}}else d=t;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=T1.bind(null,Ct,e),[o.memoizedState,e]},useRef:function(e){var t=ja();return e={current:e},t.memoizedState=e},useState:function(e){e=yd(e);var t=e.queue,r=Zm.bind(null,Ct,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:bd,useDeferredValue:function(e,t){var r=ja();return xd(r,e,t)},useTransition:function(){var e=yd(!1);return e=Hm.bind(null,Ct,e.queue,!0,!1),ja().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=Ct,d=ja();if(en){if(r===void 0)throw Error(l(407));r=r()}else{if(r=t(),pn===null)throw Error(l(349));(Gt&124)!==0||pm(o,t,r)}d.memoizedState=r;var m={value:r,getSnapshot:t};return d.queue=m,Dm(gm.bind(null,o,m,e),[e]),o.flags|=2048,cl(9,Iu(),mm.bind(null,o,m,r,t),null),r},useId:function(){var e=ja(),t=pn.identifierPrefix;if(en){var r=pi,o=hi;r=(o&~(1<<32-de(o)-1)).toString(32)+r,t="«"+t+"R"+r,r=Xu++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=x1++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:wd,useFormState:_m,useActionState:_m,useOptimistic:function(e){var t=ja();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Ad.bind(null,Ct,!0,r),r.dispatch=t,[e,t]},useMemoCache:pd,useCacheRefresh:function(){return ja().memoizedState=_1.bind(null,Ct)}},Im={readContext:ga,use:Fu,useCallback:zm,useContext:ga,useEffect:jm,useImperativeHandle:Lm,useInsertionEffect:Om,useLayoutEffect:km,useMemo:Um,useReducer:Gu,useRef:Rm,useState:function(){return Gu(yi)},useDebugValue:bd,useDeferredValue:function(e,t){var r=Zn();return Bm(r,on.memoizedState,e,t)},useTransition:function(){var e=Gu(yi)[0],t=Zn().memoizedState;return[typeof e=="boolean"?e:vo(e),t]},useSyncExternalStore:hm,useId:Pm,useHostTransitionStatus:wd,useFormState:Tm,useActionState:Tm,useOptimistic:function(e,t){var r=Zn();return bm(r,on,e,t)},useMemoCache:pd,useCacheRefresh:Ym},C1={readContext:ga,use:Fu,useCallback:zm,useContext:ga,useEffect:jm,useImperativeHandle:Lm,useInsertionEffect:Om,useLayoutEffect:km,useMemo:Um,useReducer:gd,useRef:Rm,useState:function(){return gd(yi)},useDebugValue:bd,useDeferredValue:function(e,t){var r=Zn();return on===null?xd(r,e,t):Bm(r,on.memoizedState,e,t)},useTransition:function(){var e=gd(yi)[0],t=Zn().memoizedState;return[typeof e=="boolean"?e:vo(e),t]},useSyncExternalStore:hm,useId:Pm,useHostTransitionStatus:wd,useFormState:Nm,useActionState:Nm,useOptimistic:function(e,t){var r=Zn();return on!==null?bm(r,on,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:pd,useCacheRefresh:Ym},fl=null,So=0;function Wu(e){var t=So;return So+=1,fl===null&&(fl=[]),im(fl,e,t)}function wo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ju(e,t){throw t.$$typeof===w?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Qm(e){var t=e._init;return t(e._payload)}function Km(e){function t(J,G){if(e){var ae=J.deletions;ae===null?(J.deletions=[G],J.flags|=16):ae.push(G)}}function r(J,G){if(!e)return null;for(;G!==null;)t(J,G),G=G.sibling;return null}function o(J){for(var G=new Map;J!==null;)J.key!==null?G.set(J.key,J):G.set(J.index,J),J=J.sibling;return G}function d(J,G){return J=di(J,G),J.index=0,J.sibling=null,J}function m(J,G,ae){return J.index=ae,e?(ae=J.alternate,ae!==null?(ae=ae.index,ae<G?(J.flags|=67108866,G):ae):(J.flags|=67108866,G)):(J.flags|=1048576,G)}function T(J){return e&&J.alternate===null&&(J.flags|=67108866),J}function R(J,G,ae,we){return G===null||G.tag!==6?(G=Zf(ae,J.mode,we),G.return=J,G):(G=d(G,ae),G.return=J,G)}function V(J,G,ae,we){var We=ae.type;return We===z?Se(J,G,ae.props.children,we,ae.key):G!==null&&(G.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===Q&&Qm(We)===G.type)?(G=d(G,ae.props),wo(G,ae),G.return=J,G):(G=Lu(ae.type,ae.key,ae.props,null,J.mode,we),wo(G,ae),G.return=J,G)}function se(J,G,ae,we){return G===null||G.tag!==4||G.stateNode.containerInfo!==ae.containerInfo||G.stateNode.implementation!==ae.implementation?(G=Xf(ae,J.mode,we),G.return=J,G):(G=d(G,ae.children||[]),G.return=J,G)}function Se(J,G,ae,we,We){return G===null||G.tag!==7?(G=_s(ae,J.mode,we,We),G.return=J,G):(G=d(G,ae),G.return=J,G)}function _e(J,G,ae){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=Zf(""+G,J.mode,ae),G.return=J,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case j:return ae=Lu(G.type,G.key,G.props,null,J.mode,ae),wo(ae,G),ae.return=J,ae;case M:return G=Xf(G,J.mode,ae),G.return=J,G;case Q:var we=G._init;return G=we(G._payload),_e(J,G,ae)}if($e(G)||je(G))return G=_s(G,J.mode,ae,null),G.return=J,G;if(typeof G.then=="function")return _e(J,Wu(G),ae);if(G.$$typeof===Z)return _e(J,Hu(J,G),ae);Ju(J,G)}return null}function oe(J,G,ae,we){var We=G!==null?G.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return We!==null?null:R(J,G,""+ae,we);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case j:return ae.key===We?V(J,G,ae,we):null;case M:return ae.key===We?se(J,G,ae,we):null;case Q:return We=ae._init,ae=We(ae._payload),oe(J,G,ae,we)}if($e(ae)||je(ae))return We!==null?null:Se(J,G,ae,we,null);if(typeof ae.then=="function")return oe(J,G,Wu(ae),we);if(ae.$$typeof===Z)return oe(J,G,Hu(J,ae),we);Ju(J,ae)}return null}function ue(J,G,ae,we,We){if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return J=J.get(ae)||null,R(G,J,""+we,We);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case j:return J=J.get(we.key===null?ae:we.key)||null,V(G,J,we,We);case M:return J=J.get(we.key===null?ae:we.key)||null,se(G,J,we,We);case Q:var Ot=we._init;return we=Ot(we._payload),ue(J,G,ae,we,We)}if($e(we)||je(we))return J=J.get(ae)||null,Se(G,J,we,We,null);if(typeof we.then=="function")return ue(J,G,ae,Wu(we),We);if(we.$$typeof===Z)return ue(J,G,ae,Hu(G,we),We);Ju(G,we)}return null}function mt(J,G,ae,we){for(var We=null,Ot=null,at=G,dt=G=0,la=null;at!==null&&dt<ae.length;dt++){at.index>dt?(la=at,at=null):la=at.sibling;var Kt=oe(J,at,ae[dt],we);if(Kt===null){at===null&&(at=la);break}e&&at&&Kt.alternate===null&&t(J,at),G=m(Kt,G,dt),Ot===null?We=Kt:Ot.sibling=Kt,Ot=Kt,at=la}if(dt===ae.length)return r(J,at),en&&Cs(J,dt),We;if(at===null){for(;dt<ae.length;dt++)at=_e(J,ae[dt],we),at!==null&&(G=m(at,G,dt),Ot===null?We=at:Ot.sibling=at,Ot=at);return en&&Cs(J,dt),We}for(at=o(at);dt<ae.length;dt++)la=ue(at,J,dt,ae[dt],we),la!==null&&(e&&la.alternate!==null&&at.delete(la.key===null?dt:la.key),G=m(la,G,dt),Ot===null?We=la:Ot.sibling=la,Ot=la);return e&&at.forEach(function(as){return t(J,as)}),en&&Cs(J,dt),We}function ct(J,G,ae,we){if(ae==null)throw Error(l(151));for(var We=null,Ot=null,at=G,dt=G=0,la=null,Kt=ae.next();at!==null&&!Kt.done;dt++,Kt=ae.next()){at.index>dt?(la=at,at=null):la=at.sibling;var as=oe(J,at,Kt.value,we);if(as===null){at===null&&(at=la);break}e&&at&&as.alternate===null&&t(J,at),G=m(as,G,dt),Ot===null?We=as:Ot.sibling=as,Ot=as,at=la}if(Kt.done)return r(J,at),en&&Cs(J,dt),We;if(at===null){for(;!Kt.done;dt++,Kt=ae.next())Kt=_e(J,Kt.value,we),Kt!==null&&(G=m(Kt,G,dt),Ot===null?We=Kt:Ot.sibling=Kt,Ot=Kt);return en&&Cs(J,dt),We}for(at=o(at);!Kt.done;dt++,Kt=ae.next())Kt=ue(at,J,dt,Kt.value,we),Kt!==null&&(e&&Kt.alternate!==null&&at.delete(Kt.key===null?dt:Kt.key),G=m(Kt,G,dt),Ot===null?We=Kt:Ot.sibling=Kt,Ot=Kt);return e&&at.forEach(function(Nx){return t(J,Nx)}),en&&Cs(J,dt),We}function cn(J,G,ae,we){if(typeof ae=="object"&&ae!==null&&ae.type===z&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case j:e:{for(var We=ae.key;G!==null;){if(G.key===We){if(We=ae.type,We===z){if(G.tag===7){r(J,G.sibling),we=d(G,ae.props.children),we.return=J,J=we;break e}}else if(G.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===Q&&Qm(We)===G.type){r(J,G.sibling),we=d(G,ae.props),wo(we,ae),we.return=J,J=we;break e}r(J,G);break}else t(J,G);G=G.sibling}ae.type===z?(we=_s(ae.props.children,J.mode,we,ae.key),we.return=J,J=we):(we=Lu(ae.type,ae.key,ae.props,null,J.mode,we),wo(we,ae),we.return=J,J=we)}return T(J);case M:e:{for(We=ae.key;G!==null;){if(G.key===We)if(G.tag===4&&G.stateNode.containerInfo===ae.containerInfo&&G.stateNode.implementation===ae.implementation){r(J,G.sibling),we=d(G,ae.children||[]),we.return=J,J=we;break e}else{r(J,G);break}else t(J,G);G=G.sibling}we=Xf(ae,J.mode,we),we.return=J,J=we}return T(J);case Q:return We=ae._init,ae=We(ae._payload),cn(J,G,ae,we)}if($e(ae))return mt(J,G,ae,we);if(je(ae)){if(We=je(ae),typeof We!="function")throw Error(l(150));return ae=We.call(ae),ct(J,G,ae,we)}if(typeof ae.then=="function")return cn(J,G,Wu(ae),we);if(ae.$$typeof===Z)return cn(J,G,Hu(J,ae),we);Ju(J,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,G!==null&&G.tag===6?(r(J,G.sibling),we=d(G,ae),we.return=J,J=we):(r(J,G),we=Zf(ae,J.mode,we),we.return=J,J=we),T(J)):r(J,G)}return function(J,G,ae,we){try{So=0;var We=cn(J,G,ae,we);return fl=null,We}catch(at){if(at===fo||at===Vu)throw at;var Ot=Ya(29,at,null,J.mode);return Ot.lanes=we,Ot.return=J,Ot}finally{}}}var dl=Km(!0),$m=Km(!1),ir=he(null),Vr=null;function Pi(e){var t=e.alternate;ye($n,$n.current&1),ye(ir,e),Vr===null&&(t===null||ll.current!==null||t.memoizedState!==null)&&(Vr=e)}function Wm(e){if(e.tag===22){if(ye($n,$n.current),ye(ir,e),Vr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Vr=e)}}else Yi()}function Yi(){ye($n,$n.current),ye(ir,ir.current)}function vi(e){Ne(ir),Vr===e&&(Vr=null),Ne($n)}var $n=he(0);function ec(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||hh(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ed(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:A({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var _d={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Ga(),d=Hi(o);d.payload=t,r!=null&&(d.callback=r),t=qi(e,d,o),t!==null&&(Ia(t,e,o),po(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Ga(),d=Hi(o);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=qi(e,d,o),t!==null&&(Ia(t,e,o),po(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ga(),o=Hi(r);o.tag=2,t!=null&&(o.callback=t),t=qi(e,o,r),t!==null&&(Ia(t,e,r),po(t,e,r))}};function Jm(e,t,r,o,d,m,T){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,m,T):t.prototype&&t.prototype.isPureReactComponent?!ci(r,o)||!ci(d,m):!0}function eg(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&_d.enqueueReplaceState(t,t.state,null)}function Ms(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=A({},r));for(var d in e)r[d]===void 0&&(r[d]=e[d])}return r}var tc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function tg(e){tc(e)}function ng(e){console.error(e)}function ag(e){tc(e)}function nc(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function rg(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Td(e,t,r){return r=Hi(r),r.tag=3,r.payload={element:null},r.callback=function(){nc(e,t)},r}function ig(e){return e=Hi(e),e.tag=3,e}function sg(e,t,r,o){var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;e.payload=function(){return d(m)},e.callback=function(){rg(t,r,o)}}var T=r.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(e.callback=function(){rg(t,r,o),typeof d!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var R=o.stack;this.componentDidCatch(o.value,{componentStack:R!==null?R:""})})}function N1(e,t,r,o,d){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&oo(t,r,d,!0),r=ir.current,r!==null){switch(r.tag){case 13:return Vr===null?Kd():r.alternate===null&&Ln===0&&(Ln=3),r.flags&=-257,r.flags|=65536,r.lanes=d,o===td?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),Wd(e,o,d)),!1;case 22:return r.flags|=65536,o===td?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),Wd(e,o,d)),!1}throw Error(l(435,r.tag))}return Wd(e,o,d),Kd(),!1}if(en)return t=ir.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,o!==If&&(e=Error(l(422),{cause:o}),lo(tr(e,r)))):(o!==If&&(t=Error(l(423),{cause:o}),lo(tr(t,r))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=tr(o,r),d=Td(e.stateNode,o,d),rd(e,d),Ln!==4&&(Ln=2)),!1;var m=Error(l(520),{cause:o});if(m=tr(m,r),Ro===null?Ro=[m]:Ro.push(m),Ln!==4&&(Ln=2),t===null)return!0;o=tr(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=d&-d,r.lanes|=e,e=Td(r.stateNode,o,e),rd(r,e),!1;case 1:if(t=r.type,m=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Qi===null||!Qi.has(m))))return r.flags|=65536,d&=-d,r.lanes|=d,d=ig(d),sg(d,e,r,o),rd(r,d),!1}r=r.return}while(r!==null);return!1}var lg=Error(l(461)),ia=!1;function ca(e,t,r,o){t.child=e===null?$m(t,null,r,o):dl(t,e.child,r,o)}function og(e,t,r,o,d){r=r.render;var m=t.ref;if("ref"in o){var T={};for(var R in o)R!=="ref"&&(T[R]=o[R])}else T=o;return js(t),o=ud(e,t,r,T,m,d),R=cd(),e!==null&&!ia?(fd(e,t,d),bi(e,t,d)):(en&&R&&Ff(t),t.flags|=1,ca(e,t,o,d),t.child)}function ug(e,t,r,o,d){if(e===null){var m=r.type;return typeof m=="function"&&!Yf(m)&&m.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=m,cg(e,t,m,o,d)):(e=Lu(r.type,null,o,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(m=e.child,!Md(e,d)){var T=m.memoizedProps;if(r=r.compare,r=r!==null?r:ci,r(T,o)&&e.ref===t.ref)return bi(e,t,d)}return t.flags|=1,e=di(m,o),e.ref=t.ref,e.return=t,t.child=e}function cg(e,t,r,o,d){if(e!==null){var m=e.memoizedProps;if(ci(m,o)&&e.ref===t.ref)if(ia=!1,t.pendingProps=o=m,Md(e,d))(e.flags&131072)!==0&&(ia=!0);else return t.lanes=e.lanes,bi(e,t,d)}return Cd(e,t,r,o,d)}function fg(e,t,r){var o=t.pendingProps,d=o.children,m=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((t.flags&128)!==0){if(o=m!==null?m.baseLanes|r:r,e!==null){for(d=t.child=e.child,m=0;d!==null;)m=m|d.lanes|d.childLanes,d=d.sibling;t.childLanes=m&~o}else t.childLanes=0,t.child=null;return dg(e,t,o,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qu(t,m!==null?m.cachePool:null),m!==null?cm(t,m):sd(),Wm(t);else return t.lanes=t.childLanes=536870912,dg(e,t,m!==null?m.baseLanes|r:r,r)}else m!==null?(qu(t,m.cachePool),cm(t,m),Yi(),t.memoizedState=null):(e!==null&&qu(t,null),sd(),Yi());return ca(e,t,d,r),t.child}function dg(e,t,r,o){var d=ed();return d=d===null?null:{parent:Kn._currentValue,pool:d},t.memoizedState={baseLanes:r,cachePool:d},e!==null&&qu(t,null),sd(),Wm(t),e!==null&&oo(e,t,o,!0),null}function ac(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Cd(e,t,r,o,d){return js(t),r=ud(e,t,r,o,void 0,d),o=cd(),e!==null&&!ia?(fd(e,t,d),bi(e,t,d)):(en&&o&&Ff(t),t.flags|=1,ca(e,t,r,d),t.child)}function hg(e,t,r,o,d,m){return js(t),t.updateQueue=null,r=dm(t,o,r,d),fm(e),o=cd(),e!==null&&!ia?(fd(e,t,m),bi(e,t,m)):(en&&o&&Ff(t),t.flags|=1,ca(e,t,r,m),t.child)}function pg(e,t,r,o,d){if(js(t),t.stateNode===null){var m=nl,T=r.contextType;typeof T=="object"&&T!==null&&(m=ga(T)),m=new r(o,m),t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=_d,t.stateNode=m,m._reactInternals=t,m=t.stateNode,m.props=o,m.state=t.memoizedState,m.refs={},nd(t),T=r.contextType,m.context=typeof T=="object"&&T!==null?ga(T):nl,m.state=t.memoizedState,T=r.getDerivedStateFromProps,typeof T=="function"&&(Ed(t,r,T,o),m.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(T=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),T!==m.state&&_d.enqueueReplaceState(m,m.state,null),go(t,o,m,d),mo(),m.state=t.memoizedState),typeof m.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){m=t.stateNode;var R=t.memoizedProps,V=Ms(r,R);m.props=V;var se=m.context,Se=r.contextType;T=nl,typeof Se=="object"&&Se!==null&&(T=ga(Se));var _e=r.getDerivedStateFromProps;Se=typeof _e=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=t.pendingProps!==R,Se||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||se!==T)&&eg(t,m,o,T),Bi=!1;var oe=t.memoizedState;m.state=oe,go(t,o,m,d),mo(),se=t.memoizedState,R||oe!==se||Bi?(typeof _e=="function"&&(Ed(t,r,_e,o),se=t.memoizedState),(V=Bi||Jm(t,r,V,o,oe,se,T))?(Se||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=se),m.props=o,m.state=se,m.context=T,o=V):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{m=t.stateNode,ad(e,t),T=t.memoizedProps,Se=Ms(r,T),m.props=Se,_e=t.pendingProps,oe=m.context,se=r.contextType,V=nl,typeof se=="object"&&se!==null&&(V=ga(se)),R=r.getDerivedStateFromProps,(se=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T!==_e||oe!==V)&&eg(t,m,o,V),Bi=!1,oe=t.memoizedState,m.state=oe,go(t,o,m,d),mo();var ue=t.memoizedState;T!==_e||oe!==ue||Bi||e!==null&&e.dependencies!==null&&Bu(e.dependencies)?(typeof R=="function"&&(Ed(t,r,R,o),ue=t.memoizedState),(Se=Bi||Jm(t,r,Se,o,oe,ue,V)||e!==null&&e.dependencies!==null&&Bu(e.dependencies))?(se||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,ue,V),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,ue,V)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||T===e.memoizedProps&&oe===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&oe===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=ue),m.props=o,m.state=ue,m.context=V,o=Se):(typeof m.componentDidUpdate!="function"||T===e.memoizedProps&&oe===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&oe===e.memoizedState||(t.flags|=1024),o=!1)}return m=o,ac(e,t),o=(t.flags&128)!==0,m||o?(m=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:m.render(),t.flags|=1,e!==null&&o?(t.child=dl(t,e.child,null,d),t.child=dl(t,null,r,d)):ca(e,t,r,d),t.memoizedState=m.state,e=t.child):e=bi(e,t,d),e}function mg(e,t,r,o){return so(),t.flags|=256,ca(e,t,r,o),t.child}var Nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rd(e){return{baseLanes:e,cachePool:nm()}}function Dd(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=sr),e}function gg(e,t,r){var o=t.pendingProps,d=!1,m=(t.flags&128)!==0,T;if((T=m)||(T=e!==null&&e.memoizedState===null?!1:($n.current&2)!==0),T&&(d=!0,t.flags&=-129),T=(t.flags&32)!==0,t.flags&=-33,e===null){if(en){if(d?Pi(t):Yi(),en){var R=Mn,V;if(V=R){e:{for(V=R,R=qr;V.nodeType!==8;){if(!R){R=null;break e}if(V=Ar(V.nextSibling),V===null){R=null;break e}}R=V}R!==null?(t.memoizedState={dehydrated:R,treeContext:Ts!==null?{id:hi,overflow:pi}:null,retryLane:536870912,hydrationErrors:null},V=Ya(18,null,null,0),V.stateNode=R,V.return=t,t.child=V,wa=t,Mn=null,V=!0):V=!1}V||Rs(t)}if(R=t.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return hh(R)?t.lanes=32:t.lanes=536870912,null;vi(t)}return R=o.children,o=o.fallback,d?(Yi(),d=t.mode,R=rc({mode:"hidden",children:R},d),o=_s(o,d,r,null),R.return=t,o.return=t,R.sibling=o,t.child=R,d=t.child,d.memoizedState=Rd(r),d.childLanes=Dd(e,T,r),t.memoizedState=Nd,o):(Pi(t),jd(t,R))}if(V=e.memoizedState,V!==null&&(R=V.dehydrated,R!==null)){if(m)t.flags&256?(Pi(t),t.flags&=-257,t=Od(e,t,r)):t.memoizedState!==null?(Yi(),t.child=e.child,t.flags|=128,t=null):(Yi(),d=o.fallback,R=t.mode,o=rc({mode:"visible",children:o.children},R),d=_s(d,R,r,null),d.flags|=2,o.return=t,d.return=t,o.sibling=d,t.child=o,dl(t,e.child,null,r),o=t.child,o.memoizedState=Rd(r),o.childLanes=Dd(e,T,r),t.memoizedState=Nd,t=d);else if(Pi(t),hh(R)){if(T=R.nextSibling&&R.nextSibling.dataset,T)var se=T.dgst;T=se,o=Error(l(419)),o.stack="",o.digest=T,lo({value:o,source:null,stack:null}),t=Od(e,t,r)}else if(ia||oo(e,t,r,!1),T=(r&e.childLanes)!==0,ia||T){if(T=pn,T!==null&&(o=r&-r,o=(o&42)!==0?1:ft(o),o=(o&(T.suspendedLanes|r))!==0?0:o,o!==0&&o!==V.retryLane))throw V.retryLane=o,tl(e,o),Ia(T,e,o),lg;R.data==="$?"||Kd(),t=Od(e,t,r)}else R.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=V.treeContext,Mn=Ar(R.nextSibling),wa=t,en=!0,Ns=null,qr=!1,e!==null&&(ar[rr++]=hi,ar[rr++]=pi,ar[rr++]=Ts,hi=e.id,pi=e.overflow,Ts=t),t=jd(t,o.children),t.flags|=4096);return t}return d?(Yi(),d=o.fallback,R=t.mode,V=e.child,se=V.sibling,o=di(V,{mode:"hidden",children:o.children}),o.subtreeFlags=V.subtreeFlags&65011712,se!==null?d=di(se,d):(d=_s(d,R,r,null),d.flags|=2),d.return=t,o.return=t,o.sibling=d,t.child=o,o=d,d=t.child,R=e.child.memoizedState,R===null?R=Rd(r):(V=R.cachePool,V!==null?(se=Kn._currentValue,V=V.parent!==se?{parent:se,pool:se}:V):V=nm(),R={baseLanes:R.baseLanes|r,cachePool:V}),d.memoizedState=R,d.childLanes=Dd(e,T,r),t.memoizedState=Nd,o):(Pi(t),r=e.child,e=r.sibling,r=di(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(T=t.deletions,T===null?(t.deletions=[e],t.flags|=16):T.push(e)),t.child=r,t.memoizedState=null,r)}function jd(e,t){return t=rc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function rc(e,t){return e=Ya(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Od(e,t,r){return dl(t,e.child,null,r),e=jd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yg(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Kf(e.return,t,r)}function kd(e,t,r,o,d){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:d}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=o,m.tail=r,m.tailMode=d)}function vg(e,t,r){var o=t.pendingProps,d=o.revealOrder,m=o.tail;if(ca(e,t,o.children,r),o=$n.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yg(e,r,t);else if(e.tag===19)yg(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(ye($n,o),d){case"forwards":for(r=t.child,d=null;r!==null;)e=r.alternate,e!==null&&ec(e)===null&&(d=r),r=r.sibling;r=d,r===null?(d=t.child,t.child=null):(d=r.sibling,r.sibling=null),kd(t,!1,d,r,m);break;case"backwards":for(r=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&ec(e)===null){t.child=d;break}e=d.sibling,d.sibling=r,r=d,d=e}kd(t,!0,r,null,m);break;case"together":kd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ii|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(oo(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,r=di(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=di(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Md(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bu(e)))}function R1(e,t,r){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),Ui(t,Kn,e.memoizedState.cache),so();break;case 27:case 5:tt(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Pi(t),t.flags|=128,null):(r&t.child.childLanes)!==0?gg(e,t,r):(Pi(t),e=bi(e,t,r),e!==null?e.sibling:null);Pi(t);break;case 19:var d=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(oo(e,t,r,!1),o=(r&t.childLanes)!==0),d){if(o)return vg(e,t,r);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ye($n,$n.current),o)break;return null;case 22:case 23:return t.lanes=0,fg(e,t,r);case 24:Ui(t,Kn,e.memoizedState.cache)}return bi(e,t,r)}function bg(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)ia=!0;else{if(!Md(e,r)&&(t.flags&128)===0)return ia=!1,R1(e,t,r);ia=(e.flags&131072)!==0}else ia=!1,en&&(t.flags&1048576)!==0&&Qp(t,Uu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,d=o._init;if(o=d(o._payload),t.type=o,typeof o=="function")Yf(o)?(e=Ms(o,e),t.tag=1,t=pg(null,t,o,e,r)):(t.tag=0,t=Cd(null,t,o,e,r));else{if(o!=null){if(d=o.$$typeof,d===ee){t.tag=11,t=og(null,t,o,e,r);break e}else if(d===g){t.tag=14,t=ug(null,t,o,e,r);break e}}throw t=Xe(o)||o,Error(l(306,t,""))}}return t;case 0:return Cd(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,d=Ms(o,t.pendingProps),pg(e,t,o,d,r);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(l(387));o=t.pendingProps;var m=t.memoizedState;d=m.element,ad(e,t),go(t,o,null,r);var T=t.memoizedState;if(o=T.cache,Ui(t,Kn,o),o!==m.cache&&$f(t,[Kn],r,!0),mo(),o=T.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:T.cache},t.updateQueue.baseState=m,t.memoizedState=m,t.flags&256){t=mg(e,t,o,r);break e}else if(o!==d){d=tr(Error(l(424)),t),lo(d),t=mg(e,t,o,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Mn=Ar(e.firstChild),wa=t,en=!0,Ns=null,qr=!0,r=$m(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(so(),o===d){t=bi(e,t,r);break e}ca(e,t,o,r)}t=t.child}return t;case 26:return ac(e,t),e===null?(r=Ay(t.type,null,t.pendingProps,null))?t.memoizedState=r:en||(r=t.type,e=t.pendingProps,o=vc(Ve.current).createElement(r),o[Tt]=t,o[ht]=e,da(o,r,e),Cn(o),t.stateNode=o):t.memoizedState=Ay(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return tt(t),e===null&&en&&(o=t.stateNode=xy(t.type,t.pendingProps,Ve.current),wa=t,qr=!0,d=Mn,Wi(t.type)?(ph=d,Mn=Ar(o.firstChild)):Mn=d),ca(e,t,t.pendingProps.children,r),ac(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&en&&((d=o=Mn)&&(o=ax(o,t.type,t.pendingProps,qr),o!==null?(t.stateNode=o,wa=t,Mn=Ar(o.firstChild),qr=!1,d=!0):d=!1),d||Rs(t)),tt(t),d=t.type,m=t.pendingProps,T=e!==null?e.memoizedProps:null,o=m.children,ch(d,m)?o=null:T!==null&&ch(d,T)&&(t.flags|=32),t.memoizedState!==null&&(d=ud(e,t,S1,null,null,r),Bo._currentValue=d),ac(e,t),ca(e,t,o,r),t.child;case 6:return e===null&&en&&((e=r=Mn)&&(r=rx(r,t.pendingProps,qr),r!==null?(t.stateNode=r,wa=t,Mn=null,e=!0):e=!1),e||Rs(t)),null;case 13:return gg(e,t,r);case 4:return Ge(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=dl(t,null,o,r):ca(e,t,o,r),t.child;case 11:return og(e,t,t.type,t.pendingProps,r);case 7:return ca(e,t,t.pendingProps,r),t.child;case 8:return ca(e,t,t.pendingProps.children,r),t.child;case 12:return ca(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,Ui(t,t.type,o.value),ca(e,t,o.children,r),t.child;case 9:return d=t.type._context,o=t.pendingProps.children,js(t),d=ga(d),o=o(d),t.flags|=1,ca(e,t,o,r),t.child;case 14:return ug(e,t,t.type,t.pendingProps,r);case 15:return cg(e,t,t.type,t.pendingProps,r);case 19:return vg(e,t,r);case 31:return o=t.pendingProps,r=t.mode,o={mode:o.mode,children:o.children},e===null?(r=rc(o,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=di(e.child,o),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return fg(e,t,r);case 24:return js(t),o=ga(Kn),e===null?(d=ed(),d===null&&(d=pn,m=Wf(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=r),d=m),t.memoizedState={parent:o,cache:d},nd(t),Ui(t,Kn,d)):((e.lanes&r)!==0&&(ad(e,t),go(t,null,null,r),mo()),d=e.memoizedState,m=t.memoizedState,d.parent!==o?(d={parent:o,cache:o},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Ui(t,Kn,o)):(o=m.cache,Ui(t,Kn,o),o!==d.cache&&$f(t,[Kn],r,!0))),ca(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function xi(e){e.flags|=4}function xg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ny(t)){if(t=ir.current,t!==null&&((Gt&4194048)===Gt?Vr!==null:(Gt&62914560)!==Gt&&(Gt&536870912)===0||t!==Vr))throw ho=td,am;e.flags|=8192}}function ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xt():536870912,e.lanes|=t,gl|=t)}function Ao(e,t){if(!en)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Nn(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var d=e.child;d!==null;)r|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)r|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function D1(e,t,r){var o=t.pendingProps;switch(Gf(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nn(t),null;case 1:return Nn(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),gi(Kn),Mt(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(io(t)?xi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Wp())),Nn(t),null;case 26:return r=t.memoizedState,e===null?(xi(t),r!==null?(Nn(t),xg(t,r)):(Nn(t),t.flags&=-16777217)):r?r!==e.memoizedState?(xi(t),Nn(t),xg(t,r)):(Nn(t),t.flags&=-16777217):(e.memoizedProps!==o&&xi(t),Nn(t),t.flags&=-16777217),null;case 27:fn(t),r=Ve.current;var d=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&xi(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return Nn(t),null}e=Re.current,io(t)?Kp(t):(e=xy(d,o,r),t.stateNode=e,xi(t))}return Nn(t),null;case 5:if(fn(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&xi(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return Nn(t),null}if(e=Re.current,io(t))Kp(t);else{switch(d=vc(Ve.current),e){case 1:e=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?d.createElement("select",{is:o.is}):d.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?d.createElement(r,{is:o.is}):d.createElement(r)}}e[Tt]=t,e[ht]=o;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)e.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=e;e:switch(da(e,r,o),r){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&xi(t)}}return Nn(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&xi(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(l(166));if(e=Ve.current,io(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,d=wa,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||hy(e.nodeValue,r)),e||Rs(t)}else e=vc(e).createTextNode(o),e[Tt]=t,t.stateNode=e}return Nn(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=io(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(l(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));d[Tt]=t}else so(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nn(t),d=!1}else d=Wp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(vi(t),t):(vi(t),null)}if(vi(t),(t.flags&128)!==0)return t.lanes=r,t;if(r=o!==null,e=e!==null&&e.memoizedState!==null,r){o=t.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool);var m=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==d&&(o.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),ic(t,t.updateQueue),Nn(t),null;case 4:return Mt(),e===null&&ih(t.stateNode.containerInfo),Nn(t),null;case 10:return gi(t.type),Nn(t),null;case 19:if(Ne($n),d=t.memoizedState,d===null)return Nn(t),null;if(o=(t.flags&128)!==0,m=d.rendering,m===null)if(o)Ao(d,!1);else{if(Ln!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=ec(e),m!==null){for(t.flags|=128,Ao(d,!1),e=m.updateQueue,t.updateQueue=e,ic(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Ip(r,e),r=r.sibling;return ye($n,$n.current&1|2),t.child}e=e.sibling}d.tail!==null&&Ht()>oc&&(t.flags|=128,o=!0,Ao(d,!1),t.lanes=4194304)}else{if(!o)if(e=ec(m),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ic(t,e),Ao(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!en)return Nn(t),null}else 2*Ht()-d.renderingStartTime>oc&&r!==536870912&&(t.flags|=128,o=!0,Ao(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(e=d.last,e!==null?e.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ht(),t.sibling=null,e=$n.current,ye($n,o?e&1|2:e&1),t):(Nn(t),null);case 22:case 23:return vi(t),ld(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(Nn(t),t.subtreeFlags&6&&(t.flags|=8192)):Nn(t),r=t.updateQueue,r!==null&&ic(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&Ne(Os),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),gi(Kn),Nn(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function j1(e,t){switch(Gf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gi(Kn),Mt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fn(t),null;case 13:if(vi(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));so()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne($n),null;case 4:return Mt(),null;case 10:return gi(t.type),null;case 22:case 23:return vi(t),ld(),e!==null&&Ne(Os),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gi(Kn),null;case 25:return null;default:return null}}function Sg(e,t){switch(Gf(t),t.tag){case 3:gi(Kn),Mt();break;case 26:case 27:case 5:fn(t);break;case 4:Mt();break;case 13:vi(t);break;case 19:Ne($n);break;case 10:gi(t.type);break;case 22:case 23:vi(t),ld(),e!==null&&Ne(Os);break;case 24:gi(Kn)}}function Eo(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var d=o.next;r=d;do{if((r.tag&e)===e){o=void 0;var m=r.create,T=r.inst;o=m(),T.destroy=o}r=r.next}while(r!==d)}}catch(R){dn(t,t.return,R)}}function Zi(e,t,r){try{var o=t.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&e)===e){var T=o.inst,R=T.destroy;if(R!==void 0){T.destroy=void 0,d=t;var V=r,se=R;try{se()}catch(Se){dn(d,V,Se)}}}o=o.next}while(o!==m)}}catch(Se){dn(t,t.return,Se)}}function wg(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{um(t,r)}catch(o){dn(e,e.return,o)}}}function Ag(e,t,r){r.props=Ms(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){dn(e,t,o)}}function _o(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(d){dn(e,t,d)}}function Pr(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(d){dn(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(d){dn(e,t,d)}else r.current=null}function Eg(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(d){dn(e,e.return,d)}}function Ld(e,t,r){try{var o=e.stateNode;W1(o,e.type,r,t),o[ht]=t}catch(d){dn(e,e.return,d)}}function _g(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wi(e.type)||e.tag===4}function zd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_g(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.tag===27&&Wi(e.type)||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 Ud(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=yc));else if(o!==4&&(o===27&&Wi(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Ud(e,t,r),e=e.sibling;e!==null;)Ud(e,t,r),e=e.sibling}function sc(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&Wi(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(sc(e,t,r),e=e.sibling;e!==null;)sc(e,t,r),e=e.sibling}function Tg(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);da(t,o,r),t[Tt]=e,t[ht]=r}catch(m){dn(e,e.return,m)}}var Si=!1,qn=!1,Bd=!1,Cg=typeof WeakSet=="function"?WeakSet:Set,sa=null;function O1(e,t){if(e=e.containerInfo,oh=Ec,e=ro(e),k(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var d=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{r.nodeType,m.nodeType}catch{r=null;break e}var T=0,R=-1,V=-1,se=0,Se=0,_e=e,oe=null;t:for(;;){for(var ue;_e!==r||d!==0&&_e.nodeType!==3||(R=T+d),_e!==m||o!==0&&_e.nodeType!==3||(V=T+o),_e.nodeType===3&&(T+=_e.nodeValue.length),(ue=_e.firstChild)!==null;)oe=_e,_e=ue;for(;;){if(_e===e)break t;if(oe===r&&++se===d&&(R=T),oe===m&&++Se===o&&(V=T),(ue=_e.nextSibling)!==null)break;_e=oe,oe=_e.parentNode}_e=ue}r=R===-1||V===-1?null:{start:R,end:V}}else r=null}r=r||{start:0,end:0}}else r=null;for(uh={focusedElem:e,selectionRange:r},Ec=!1,sa=t;sa!==null;)if(t=sa,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,sa=e;else for(;sa!==null;){switch(t=sa,m=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,r=t,d=m.memoizedProps,m=m.memoizedState,o=r.stateNode;try{var mt=Ms(r.type,d,r.elementType===r.type);e=o.getSnapshotBeforeUpdate(mt,m),o.__reactInternalSnapshotBeforeUpdate=e}catch(ct){dn(r,r.return,ct)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)dh(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":dh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,sa=e;break}sa=t.return}}function Ng(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Xi(e,r),o&4&&Eo(5,r);break;case 1:if(Xi(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(T){dn(r,r.return,T)}else{var d=Ms(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(T){dn(r,r.return,T)}}o&64&&wg(r),o&512&&_o(r,r.return);break;case 3:if(Xi(e,r),o&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{um(e,t)}catch(T){dn(r,r.return,T)}}break;case 27:t===null&&o&4&&Tg(r);case 26:case 5:Xi(e,r),t===null&&o&4&&Eg(r),o&512&&_o(r,r.return);break;case 12:Xi(e,r);break;case 13:Xi(e,r),o&4&&jg(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=V1.bind(null,r),ix(e,r))));break;case 22:if(o=r.memoizedState!==null||Si,!o){t=t!==null&&t.memoizedState!==null||qn,d=Si;var m=qn;Si=o,(qn=t)&&!m?Fi(e,r,(r.subtreeFlags&8772)!==0):Xi(e,r),Si=d,qn=m}break;case 30:break;default:Xi(e,r)}}function Rg(e){var t=e.alternate;t!==null&&(e.alternate=null,Rg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var En=null,Oa=!1;function wi(e,t,r){for(r=r.child;r!==null;)Dg(e,t,r),r=r.sibling}function Dg(e,t,r){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(Ce,r)}catch{}switch(r.tag){case 26:qn||Pr(r,t),wi(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:qn||Pr(r,t);var o=En,d=Oa;Wi(r.type)&&(En=r.stateNode,Oa=!1),wi(e,t,r),Mo(r.stateNode),En=o,Oa=d;break;case 5:qn||Pr(r,t);case 6:if(o=En,d=Oa,En=null,wi(e,t,r),En=o,Oa=d,En!==null)if(Oa)try{(En.nodeType===9?En.body:En.nodeName==="HTML"?En.ownerDocument.body:En).removeChild(r.stateNode)}catch(m){dn(r,t,m)}else try{En.removeChild(r.stateNode)}catch(m){dn(r,t,m)}break;case 18:En!==null&&(Oa?(e=En,vy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Po(e)):vy(En,r.stateNode));break;case 4:o=En,d=Oa,En=r.stateNode.containerInfo,Oa=!0,wi(e,t,r),En=o,Oa=d;break;case 0:case 11:case 14:case 15:qn||Zi(2,r,t),qn||Zi(4,r,t),wi(e,t,r);break;case 1:qn||(Pr(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&Ag(r,t,o)),wi(e,t,r);break;case 21:wi(e,t,r);break;case 22:qn=(o=qn)||r.memoizedState!==null,wi(e,t,r),qn=o;break;default:wi(e,t,r)}}function jg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Po(e)}catch(r){dn(t,t.return,r)}}function k1(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Cg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Cg),t;default:throw Error(l(435,e.tag))}}function Hd(e,t){var r=k1(e);t.forEach(function(o){var d=P1.bind(null,e,o);r.has(o)||(r.add(o),o.then(d,d))})}function Za(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var d=r[o],m=e,T=t,R=T;e:for(;R!==null;){switch(R.tag){case 27:if(Wi(R.type)){En=R.stateNode,Oa=!1;break e}break;case 5:En=R.stateNode,Oa=!1;break e;case 3:case 4:En=R.stateNode.containerInfo,Oa=!0;break e}R=R.return}if(En===null)throw Error(l(160));Dg(m,T,d),En=null,Oa=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Og(t,e),t=t.sibling}var wr=null;function Og(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Za(t,e),Xa(e),o&4&&(Zi(3,e,e.return),Eo(3,e),Zi(5,e,e.return));break;case 1:Za(t,e),Xa(e),o&512&&(qn||r===null||Pr(r,r.return)),o&64&&Si&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var d=wr;if(Za(t,e),Xa(e),o&512&&(qn||r===null||Pr(r,r.return)),o&4){var m=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":m=d.getElementsByTagName("title")[0],(!m||m[Ta]||m[Tt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(o),d.head.insertBefore(m,d.querySelector("head > title"))),da(m,o,r),m[Tt]=e,Cn(m),o=m;break e;case"link":var T=Ty("link","href",d).get(o+(r.href||""));if(T){for(var R=0;R<T.length;R++)if(m=T[R],m.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&m.getAttribute("rel")===(r.rel==null?null:r.rel)&&m.getAttribute("title")===(r.title==null?null:r.title)&&m.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){T.splice(R,1);break t}}m=d.createElement(o),da(m,o,r),d.head.appendChild(m);break;case"meta":if(T=Ty("meta","content",d).get(o+(r.content||""))){for(R=0;R<T.length;R++)if(m=T[R],m.getAttribute("content")===(r.content==null?null:""+r.content)&&m.getAttribute("name")===(r.name==null?null:r.name)&&m.getAttribute("property")===(r.property==null?null:r.property)&&m.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&m.getAttribute("charset")===(r.charSet==null?null:r.charSet)){T.splice(R,1);break t}}m=d.createElement(o),da(m,o,r),d.head.appendChild(m);break;default:throw Error(l(468,o))}m[Tt]=e,Cn(m),o=m}e.stateNode=o}else Cy(d,e.type,e.stateNode);else e.stateNode=_y(d,o,e.memoizedProps);else m!==o?(m===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):m.count--,o===null?Cy(d,e.type,e.stateNode):_y(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Ld(e,e.memoizedProps,r.memoizedProps)}break;case 27:Za(t,e),Xa(e),o&512&&(qn||r===null||Pr(r,r.return)),r!==null&&o&4&&Ld(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Za(t,e),Xa(e),o&512&&(qn||r===null||Pr(r,r.return)),e.flags&32){d=e.stateNode;try{ki(d,"")}catch(ue){dn(e,e.return,ue)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,Ld(e,d,r!==null?r.memoizedProps:d)),o&1024&&(Bd=!0);break;case 6:if(Za(t,e),Xa(e),o&4){if(e.stateNode===null)throw Error(l(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(ue){dn(e,e.return,ue)}}break;case 3:if(Sc=null,d=wr,wr=bc(t.containerInfo),Za(t,e),wr=d,Xa(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Po(t.containerInfo)}catch(ue){dn(e,e.return,ue)}Bd&&(Bd=!1,kg(e));break;case 4:o=wr,wr=bc(e.stateNode.containerInfo),Za(t,e),Xa(e),wr=o;break;case 12:Za(t,e),Xa(e);break;case 13:Za(t,e),Xa(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Xd=Ht()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Hd(e,o)));break;case 22:d=e.memoizedState!==null;var V=r!==null&&r.memoizedState!==null,se=Si,Se=qn;if(Si=se||d,qn=Se||V,Za(t,e),qn=Se,Si=se,Xa(e),o&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(r===null||V||Si||qn||Ls(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){V=r=t;try{if(m=V.stateNode,d)T=m.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{R=V.stateNode;var _e=V.memoizedProps.style,oe=_e!=null&&_e.hasOwnProperty("display")?_e.display:null;R.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(ue){dn(V,V.return,ue)}}}else if(t.tag===6){if(r===null){V=t;try{V.stateNode.nodeValue=d?"":V.memoizedProps}catch(ue){dn(V,V.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,Hd(e,r))));break;case 19:Za(t,e),Xa(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Hd(e,o)));break;case 30:break;case 21:break;default:Za(t,e),Xa(e)}}function Xa(e){var t=e.flags;if(t&2){try{for(var r,o=e.return;o!==null;){if(_g(o)){r=o;break}o=o.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var d=r.stateNode,m=zd(e);sc(e,m,d);break;case 5:var T=r.stateNode;r.flags&32&&(ki(T,""),r.flags&=-33);var R=zd(e);sc(e,R,T);break;case 3:case 4:var V=r.stateNode.containerInfo,se=zd(e);Ud(e,se,V);break;default:throw Error(l(161))}}catch(Se){dn(e,e.return,Se)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ng(e,t.alternate,t),t=t.sibling}function Ls(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zi(4,t,t.return),Ls(t);break;case 1:Pr(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Ag(t,t.return,r),Ls(t);break;case 27:Mo(t.stateNode);case 26:case 5:Pr(t,t.return),Ls(t);break;case 22:t.memoizedState===null&&Ls(t);break;case 30:Ls(t);break;default:Ls(t)}e=e.sibling}}function Fi(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,d=e,m=t,T=m.flags;switch(m.tag){case 0:case 11:case 15:Fi(d,m,r),Eo(4,m);break;case 1:if(Fi(d,m,r),o=m,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(se){dn(o,o.return,se)}if(o=m,d=o.updateQueue,d!==null){var R=o.stateNode;try{var V=d.shared.hiddenCallbacks;if(V!==null)for(d.shared.hiddenCallbacks=null,d=0;d<V.length;d++)om(V[d],R)}catch(se){dn(o,o.return,se)}}r&&T&64&&wg(m),_o(m,m.return);break;case 27:Tg(m);case 26:case 5:Fi(d,m,r),r&&o===null&&T&4&&Eg(m),_o(m,m.return);break;case 12:Fi(d,m,r);break;case 13:Fi(d,m,r),r&&T&4&&jg(d,m);break;case 22:m.memoizedState===null&&Fi(d,m,r),_o(m,m.return);break;case 30:break;default:Fi(d,m,r)}t=t.sibling}}function qd(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&uo(r))}function Vd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&uo(e))}function Yr(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mg(e,t,r,o),t=t.sibling}function Mg(e,t,r,o){var d=t.flags;switch(t.tag){case 0:case 11:case 15:Yr(e,t,r,o),d&2048&&Eo(9,t);break;case 1:Yr(e,t,r,o);break;case 3:Yr(e,t,r,o),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&uo(e)));break;case 12:if(d&2048){Yr(e,t,r,o),e=t.stateNode;try{var m=t.memoizedProps,T=m.id,R=m.onPostCommit;typeof R=="function"&&R(T,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(V){dn(t,t.return,V)}}else Yr(e,t,r,o);break;case 13:Yr(e,t,r,o);break;case 23:break;case 22:m=t.stateNode,T=t.alternate,t.memoizedState!==null?m._visibility&2?Yr(e,t,r,o):To(e,t):m._visibility&2?Yr(e,t,r,o):(m._visibility|=2,hl(e,t,r,o,(t.subtreeFlags&10256)!==0)),d&2048&&qd(T,t);break;case 24:Yr(e,t,r,o),d&2048&&Vd(t.alternate,t);break;default:Yr(e,t,r,o)}}function hl(e,t,r,o,d){for(d=d&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var m=e,T=t,R=r,V=o,se=T.flags;switch(T.tag){case 0:case 11:case 15:hl(m,T,R,V,d),Eo(8,T);break;case 23:break;case 22:var Se=T.stateNode;T.memoizedState!==null?Se._visibility&2?hl(m,T,R,V,d):To(m,T):(Se._visibility|=2,hl(m,T,R,V,d)),d&&se&2048&&qd(T.alternate,T);break;case 24:hl(m,T,R,V,d),d&&se&2048&&Vd(T.alternate,T);break;default:hl(m,T,R,V,d)}t=t.sibling}}function To(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,d=o.flags;switch(o.tag){case 22:To(r,o),d&2048&&qd(o.alternate,o);break;case 24:To(r,o),d&2048&&Vd(o.alternate,o);break;default:To(r,o)}t=t.sibling}}var Co=8192;function pl(e){if(e.subtreeFlags&Co)for(e=e.child;e!==null;)Lg(e),e=e.sibling}function Lg(e){switch(e.tag){case 26:pl(e),e.flags&Co&&e.memoizedState!==null&&vx(wr,e.memoizedState,e.memoizedProps);break;case 5:pl(e);break;case 3:case 4:var t=wr;wr=bc(e.stateNode.containerInfo),pl(e),wr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Co,Co=16777216,pl(e),Co=t):pl(e));break;default:pl(e)}}function zg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function No(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];sa=o,Bg(o,e)}zg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ug(e),e=e.sibling}function Ug(e){switch(e.tag){case 0:case 11:case 15:No(e),e.flags&2048&&Zi(9,e,e.return);break;case 3:No(e);break;case 12:No(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lc(e)):No(e);break;default:No(e)}}function lc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];sa=o,Bg(o,e)}zg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zi(8,t,t.return),lc(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,lc(t));break;default:lc(t)}e=e.sibling}}function Bg(e,t){for(;sa!==null;){var r=sa;switch(r.tag){case 0:case 11:case 15:Zi(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:uo(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,sa=o;else e:for(r=e;sa!==null;){o=sa;var d=o.sibling,m=o.return;if(Rg(o),o===r){sa=null;break e}if(d!==null){d.return=m,sa=d;break e}sa=m}}}var M1={getCacheForType:function(e){var t=ga(Kn),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r}},L1=typeof WeakMap=="function"?WeakMap:Map,an=0,pn=null,Ut=null,Gt=0,rn=0,Fa=null,Gi=!1,ml=!1,Pd=!1,Ai=0,Ln=0,Ii=0,zs=0,Yd=0,sr=0,gl=0,Ro=null,ka=null,Zd=!1,Xd=0,oc=1/0,uc=null,Qi=null,fa=0,Ki=null,yl=null,vl=0,Fd=0,Gd=null,Hg=null,Do=0,Id=null;function Ga(){if((an&2)!==0&&Gt!==0)return Gt&-Gt;if(W.T!==null){var e=il;return e!==0?e:th()}return On()}function qg(){sr===0&&(sr=(Gt&536870912)===0||en?Tn():536870912);var e=ir.current;return e!==null&&(e.flags|=32),sr}function Ia(e,t,r){(e===pn&&(rn===2||rn===9)||e.cancelPendingCommit!==null)&&(bl(e,0),$i(e,Gt,sr,!1)),Rt(e,r),((an&2)===0||e!==pn)&&(e===pn&&((an&2)===0&&(zs|=r),Ln===4&&$i(e,Gt,sr,!1)),Zr(e))}function Vg(e,t,r){if((an&6)!==0)throw Error(l(327));var o=!r&&(t&124)===0&&(t&e.expiredLanes)===0||yn(e,t),d=o?B1(e,t):$d(e,t,!0),m=o;do{if(d===0){ml&&!o&&$i(e,t,0,!1);break}else{if(r=e.current.alternate,m&&!z1(r)){d=$d(e,t,!1),m=!1;continue}if(d===2){if(m=t,e.errorRecoveryDisabledLanes&m)var T=0;else T=e.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){t=T;e:{var R=e;d=Ro;var V=R.current.memoizedState.isDehydrated;if(V&&(bl(R,T).flags|=256),T=$d(R,T,!1),T!==2){if(Pd&&!V){R.errorRecoveryDisabledLanes|=m,zs|=m,d=4;break e}m=ka,ka=d,m!==null&&(ka===null?ka=m:ka.push.apply(ka,m))}d=T}if(m=!1,d!==2)continue}}if(d===1){bl(e,0),$i(e,t,0,!0);break}e:{switch(o=e,m=d,m){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:$i(o,t,sr,!Gi);break e;case 2:ka=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(d=Xd+300-Ht(),10<d)){if($i(o,t,sr,!Gi),Gn(o,0,!0)!==0)break e;o.timeoutHandle=gy(Pg.bind(null,o,r,ka,uc,Zd,t,sr,zs,gl,Gi,m,2,-0,0),d);break e}Pg(o,r,ka,uc,Zd,t,sr,zs,gl,Gi,m,0,-0,0)}}break}while(!0);Zr(e)}function Pg(e,t,r,o,d,m,T,R,V,se,Se,_e,oe,ue){if(e.timeoutHandle=-1,_e=t.subtreeFlags,(_e&8192||(_e&16785408)===16785408)&&(Uo={stylesheets:null,count:0,unsuspend:yx},Lg(t),_e=bx(),_e!==null)){e.cancelPendingCommit=_e(Qg.bind(null,e,t,m,r,o,d,T,R,V,Se,1,oe,ue)),$i(e,m,T,!se);return}Qg(e,t,m,r,o,d,T,R,V)}function z1(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var d=r[o],m=d.getSnapshot;d=d.value;try{if(!aa(m(),d))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $i(e,t,r,o){t&=~Yd,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var d=t;0<d;){var m=31-de(d),T=1<<m;o[m]=-1,d&=~T}r!==0&&Ie(e,r,t)}function cc(){return(an&6)===0?(jo(0),!1):!0}function Qd(){if(Ut!==null){if(rn===0)var e=Ut.return;else e=Ut,mi=Ds=null,dd(e),fl=null,So=0,e=Ut;for(;e!==null;)Sg(e.alternate,e),e=e.return;Ut=null}}function bl(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,ex(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Qd(),pn=e,Ut=r=di(e.current,null),Gt=t,rn=0,Fa=null,Gi=!1,ml=yn(e,t),Pd=!1,gl=sr=Yd=zs=Ii=Ln=0,ka=Ro=null,Zd=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var d=31-de(o),m=1<<d;t|=e[d],o&=~m}return Ai=t,Ou(),r}function Yg(e,t){Ct=null,W.H=$u,t===fo||t===Vu?(t=sm(),rn=3):t===am?(t=sm(),rn=4):rn=t===lg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Fa=t,Ut===null&&(Ln=1,nc(e,tr(t,e.current)))}function Zg(){var e=W.H;return W.H=$u,e===null?$u:e}function Xg(){var e=W.A;return W.A=M1,e}function Kd(){Ln=4,Gi||(Gt&4194048)!==Gt&&ir.current!==null||(ml=!0),(Ii&134217727)===0&&(zs&134217727)===0||pn===null||$i(pn,Gt,sr,!1)}function $d(e,t,r){var o=an;an|=2;var d=Zg(),m=Xg();(pn!==e||Gt!==t)&&(uc=null,bl(e,t)),t=!1;var T=Ln;e:do try{if(rn!==0&&Ut!==null){var R=Ut,V=Fa;switch(rn){case 8:Qd(),T=6;break e;case 3:case 2:case 9:case 6:ir.current===null&&(t=!0);var se=rn;if(rn=0,Fa=null,xl(e,R,V,se),r&&ml){T=0;break e}break;default:se=rn,rn=0,Fa=null,xl(e,R,V,se)}}U1(),T=Ln;break}catch(Se){Yg(e,Se)}while(!0);return t&&e.shellSuspendCounter++,mi=Ds=null,an=o,W.H=d,W.A=m,Ut===null&&(pn=null,Gt=0,Ou()),T}function U1(){for(;Ut!==null;)Fg(Ut)}function B1(e,t){var r=an;an|=2;var o=Zg(),d=Xg();pn!==e||Gt!==t?(uc=null,oc=Ht()+500,bl(e,t)):ml=yn(e,t);e:do try{if(rn!==0&&Ut!==null){t=Ut;var m=Fa;t:switch(rn){case 1:rn=0,Fa=null,xl(e,t,m,1);break;case 2:case 9:if(rm(m)){rn=0,Fa=null,Gg(t);break}t=function(){rn!==2&&rn!==9||pn!==e||(rn=7),Zr(e)},m.then(t,t);break e;case 3:rn=7;break e;case 4:rn=5;break e;case 7:rm(m)?(rn=0,Fa=null,Gg(t)):(rn=0,Fa=null,xl(e,t,m,7));break;case 5:var T=null;switch(Ut.tag){case 26:T=Ut.memoizedState;case 5:case 27:var R=Ut;if(!T||Ny(T)){rn=0,Fa=null;var V=R.sibling;if(V!==null)Ut=V;else{var se=R.return;se!==null?(Ut=se,fc(se)):Ut=null}break t}}rn=0,Fa=null,xl(e,t,m,5);break;case 6:rn=0,Fa=null,xl(e,t,m,6);break;case 8:Qd(),Ln=6;break e;default:throw Error(l(462))}}H1();break}catch(Se){Yg(e,Se)}while(!0);return mi=Ds=null,W.H=o,W.A=d,an=r,Ut!==null?0:(pn=null,Gt=0,Ou(),Ln)}function H1(){for(;Ut!==null&&!zn();)Fg(Ut)}function Fg(e){var t=bg(e.alternate,e,Ai);e.memoizedProps=e.pendingProps,t===null?fc(e):Ut=t}function Gg(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=hg(r,t,t.pendingProps,t.type,void 0,Gt);break;case 11:t=hg(r,t,t.pendingProps,t.type.render,t.ref,Gt);break;case 5:dd(t);default:Sg(r,t),t=Ut=Ip(t,Ai),t=bg(r,t,Ai)}e.memoizedProps=e.pendingProps,t===null?fc(e):Ut=t}function xl(e,t,r,o){mi=Ds=null,dd(t),fl=null,So=0;var d=t.return;try{if(N1(e,d,t,r,Gt)){Ln=1,nc(e,tr(r,e.current)),Ut=null;return}}catch(m){if(d!==null)throw Ut=d,m;Ln=1,nc(e,tr(r,e.current)),Ut=null;return}t.flags&32768?(en||o===1?e=!0:ml||(Gt&536870912)!==0?e=!1:(Gi=e=!0,(o===2||o===9||o===3||o===6)&&(o=ir.current,o!==null&&o.tag===13&&(o.flags|=16384))),Ig(t,e)):fc(t)}function fc(e){var t=e;do{if((t.flags&32768)!==0){Ig(t,Gi);return}e=t.return;var r=D1(t.alternate,t,Ai);if(r!==null){Ut=r;return}if(t=t.sibling,t!==null){Ut=t;return}Ut=t=e}while(t!==null);Ln===0&&(Ln=5)}function Ig(e,t){do{var r=j1(e.alternate,e);if(r!==null){r.flags&=32767,Ut=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Ut=e;return}Ut=e=r}while(e!==null);Ln=6,Ut=null}function Qg(e,t,r,o,d,m,T,R,V){e.cancelPendingCommit=null;do dc();while(fa!==0);if((an&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(m=t.lanes|t.childLanes,m|=Vf,vn(e,r,m,T,R,V),e===pn&&(Ut=pn=null,Gt=0),yl=t,Ki=e,vl=r,Fd=m,Gd=d,Hg=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Y1(ea,function(){return ey(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=W.T,W.T=null,d=pe.p,pe.p=2,T=an,an|=4;try{O1(e,t,r)}finally{an=T,pe.p=d,W.T=o}}fa=1,Kg(),$g(),Wg()}}function Kg(){if(fa===1){fa=0;var e=Ki,t=yl,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=W.T,W.T=null;var o=pe.p;pe.p=2;var d=an;an|=4;try{Og(t,e);var m=uh,T=ro(e.containerInfo),R=m.focusedElem,V=m.selectionRange;if(T!==R&&R&&R.ownerDocument&&Js(R.ownerDocument.documentElement,R)){if(V!==null&&k(R)){var se=V.start,Se=V.end;if(Se===void 0&&(Se=se),"selectionStart"in R)R.selectionStart=se,R.selectionEnd=Math.min(Se,R.value.length);else{var _e=R.ownerDocument||document,oe=_e&&_e.defaultView||window;if(oe.getSelection){var ue=oe.getSelection(),mt=R.textContent.length,ct=Math.min(V.start,mt),cn=V.end===void 0?ct:Math.min(V.end,mt);!ue.extend&&ct>cn&&(T=cn,cn=ct,ct=T);var J=ju(R,ct),G=ju(R,cn);if(J&&G&&(ue.rangeCount!==1||ue.anchorNode!==J.node||ue.anchorOffset!==J.offset||ue.focusNode!==G.node||ue.focusOffset!==G.offset)){var ae=_e.createRange();ae.setStart(J.node,J.offset),ue.removeAllRanges(),ct>cn?(ue.addRange(ae),ue.extend(G.node,G.offset)):(ae.setEnd(G.node,G.offset),ue.addRange(ae))}}}}for(_e=[],ue=R;ue=ue.parentNode;)ue.nodeType===1&&_e.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<_e.length;R++){var we=_e[R];we.element.scrollLeft=we.left,we.element.scrollTop=we.top}}Ec=!!oh,uh=oh=null}finally{an=d,pe.p=o,W.T=r}}e.current=t,fa=2}}function $g(){if(fa===2){fa=0;var e=Ki,t=yl,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=W.T,W.T=null;var o=pe.p;pe.p=2;var d=an;an|=4;try{Ng(e,t.alternate,t)}finally{an=d,pe.p=o,W.T=r}}fa=3}}function Wg(){if(fa===4||fa===3){fa=0,jn();var e=Ki,t=yl,r=vl,o=Hg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fa=5:(fa=0,yl=Ki=null,Jg(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Qi=null),Dt(r),t=t.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(Ce,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=W.T,d=pe.p,pe.p=2,W.T=null;try{for(var m=e.onRecoverableError,T=0;T<o.length;T++){var R=o[T];m(R.value,{componentStack:R.stack})}}finally{W.T=t,pe.p=d}}(vl&3)!==0&&dc(),Zr(e),d=e.pendingLanes,(r&4194090)!==0&&(d&42)!==0?e===Id?Do++:(Do=0,Id=e):Do=0,jo(0)}}function Jg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,uo(t)))}function dc(e){return Kg(),$g(),Wg(),ey()}function ey(){if(fa!==5)return!1;var e=Ki,t=Fd;Fd=0;var r=Dt(vl),o=W.T,d=pe.p;try{pe.p=32>r?32:r,W.T=null,r=Gd,Gd=null;var m=Ki,T=vl;if(fa=0,yl=Ki=null,vl=0,(an&6)!==0)throw Error(l(331));var R=an;if(an|=4,Ug(m.current),Mg(m,m.current,T,r),an=R,jo(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(Ce,m)}catch{}return!0}finally{pe.p=d,W.T=o,Jg(e,t)}}function ty(e,t,r){t=tr(r,t),t=Td(e.stateNode,t,2),e=qi(e,t,2),e!==null&&(Rt(e,2),Zr(e))}function dn(e,t,r){if(e.tag===3)ty(e,e,r);else for(;t!==null;){if(t.tag===3){ty(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Qi===null||!Qi.has(o))){e=tr(r,e),r=ig(2),o=qi(t,r,2),o!==null&&(sg(r,o,t,e),Rt(o,2),Zr(o));break}}t=t.return}}function Wd(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new L1;var d=new Set;o.set(t,d)}else d=o.get(t),d===void 0&&(d=new Set,o.set(t,d));d.has(r)||(Pd=!0,d.add(r),e=q1.bind(null,e,t,r),t.then(e,e))}function q1(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,pn===e&&(Gt&r)===r&&(Ln===4||Ln===3&&(Gt&62914560)===Gt&&300>Ht()-Xd?(an&2)===0&&bl(e,0):Yd|=r,gl===Gt&&(gl=0)),Zr(e)}function ny(e,t){t===0&&(t=Xt()),e=tl(e,t),e!==null&&(Rt(e,t),Zr(e))}function V1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ny(e,r)}function P1(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(r=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(t),ny(e,r)}function Y1(e,t){return hn(e,t)}var hc=null,Sl=null,Jd=!1,pc=!1,eh=!1,Us=0;function Zr(e){e!==Sl&&e.next===null&&(Sl===null?hc=Sl=e:Sl=Sl.next=e),pc=!0,Jd||(Jd=!0,X1())}function jo(e,t){if(!eh&&pc){eh=!0;do for(var r=!1,o=hc;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var m=0;else{var T=o.suspendedLanes,R=o.pingedLanes;m=(1<<31-de(42|e)+1)-1,m&=d&~(T&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(r=!0,sy(o,m))}else m=Gt,m=Gn(o,o===pn?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||yn(o,m)||(r=!0,sy(o,m));o=o.next}while(r);eh=!1}}function Z1(){ay()}function ay(){pc=Jd=!1;var e=0;Us!==0&&(J1()&&(e=Us),Us=0);for(var t=Ht(),r=null,o=hc;o!==null;){var d=o.next,m=ry(o,t);m===0?(o.next=null,r===null?hc=d:r.next=d,d===null&&(Sl=r)):(r=o,(e!==0||(m&3)!==0)&&(pc=!0)),o=d}jo(e)}function ry(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var T=31-de(m),R=1<<T,V=d[T];V===-1?((R&r)===0||(R&o)!==0)&&(d[T]=ha(R,t)):V<=t&&(e.expiredLanes|=R),m&=~R}if(t=pn,r=Gt,r=Gn(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===t&&(rn===2||rn===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&ln(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||yn(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&ln(o),Dt(r)){case 2:case 8:r=_n;break;case 32:r=ea;break;case 268435456:r=H;break;default:r=ea}return o=iy.bind(null,e),r=hn(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&ln(o),e.callbackPriority=2,e.callbackNode=null,2}function iy(e,t){if(fa!==0&&fa!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(dc()&&e.callbackNode!==r)return null;var o=Gt;return o=Gn(e,e===pn?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Vg(e,o,t),ry(e,Ht()),e.callbackNode!=null&&e.callbackNode===r?iy.bind(null,e):null)}function sy(e,t){if(dc())return null;Vg(e,t,!0)}function X1(){tx(function(){(an&6)!==0?hn(mn,Z1):ay()})}function th(){return Us===0&&(Us=Tn()),Us}function ly(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vs(""+e)}function oy(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function F1(e,t,r,o,d){if(t==="submit"&&r&&r.stateNode===d){var m=ly((d[ht]||null).action),T=o.submitter;T&&(t=(t=T[ht]||null)?ly(t.formAction):T.getAttribute("formAction"),t!==null&&(m=t,T=null));var R=new ws("action","action",null,o,d);e.push({event:R,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Us!==0){var V=T?oy(d,T):new FormData(d);Sd(r,{pending:!0,data:V,method:d.method,action:m},null,V)}}else typeof m=="function"&&(R.preventDefault(),V=T?oy(d,T):new FormData(d),Sd(r,{pending:!0,data:V,method:d.method,action:m},m,V))},currentTarget:d}]})}}for(var nh=0;nh<Qn.length;nh++){var ah=Qn[nh],G1=ah.toLowerCase(),I1=ah[0].toUpperCase()+ah.slice(1);Sr(G1,"on"+I1)}Sr(_t,"onAnimationEnd"),Sr(it,"onAnimationIteration"),Sr(nn,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(ma,"onTransitionRun"),Sr(ra,"onTransitionStart"),Sr(Da,"onTransitionCancel"),Sr(Pa,"onTransitionEnd"),fr("onMouseEnter",["mouseout","mouseover"]),fr("onMouseLeave",["mouseout","mouseover"]),fr("onPointerEnter",["pointerout","pointerover"]),fr("onPointerLeave",["pointerout","pointerover"]),Ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oo="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(" "),Q1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oo));function uy(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],d=o.event;o=o.listeners;e:{var m=void 0;if(t)for(var T=o.length-1;0<=T;T--){var R=o[T],V=R.instance,se=R.currentTarget;if(R=R.listener,V!==m&&d.isPropagationStopped())break e;m=R,d.currentTarget=se;try{m(d)}catch(Se){tc(Se)}d.currentTarget=null,m=V}else for(T=0;T<o.length;T++){if(R=o[T],V=R.instance,se=R.currentTarget,R=R.listener,V!==m&&d.isPropagationStopped())break e;m=R,d.currentTarget=se;try{m(d)}catch(Se){tc(Se)}d.currentTarget=null,m=V}}}}function Bt(e,t){var r=t[Un];r===void 0&&(r=t[Un]=new Set);var o=e+"__bubble";r.has(o)||(cy(t,e,2,!1),r.add(o))}function rh(e,t,r){var o=0;t&&(o|=4),cy(r,e,o,t)}var mc="_reactListening"+Math.random().toString(36).slice(2);function ih(e){if(!e[mc]){e[mc]=!0,Di.forEach(function(r){r!=="selectionchange"&&(Q1.has(r)||rh(r,!1,e),rh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mc]||(t[mc]=!0,rh("selectionchange",!1,t))}}function cy(e,t,r,o){switch(My(t)){case 2:var d=wx;break;case 8:d=Ax;break;default:d=bh}r=d.bind(null,t,r,e),d=void 0,!$l||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(t,r,{capture:!0,passive:d}):e.addEventListener(t,r,!0):d!==void 0?e.addEventListener(t,r,{passive:d}):e.addEventListener(t,r,!1)}function sh(e,t,r,o,d){var m=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var T=o.tag;if(T===3||T===4){var R=o.stateNode.containerInfo;if(R===d)break;if(T===4)for(T=o.return;T!==null;){var V=T.tag;if((V===3||V===4)&&T.stateNode.containerInfo===d)return;T=T.return}for(;R!==null;){if(T=Ha(R),T===null)return;if(V=T.tag,V===5||V===6||V===26||V===27){o=m=T;continue e}R=R.parentNode}}o=o.return}_u(function(){var se=m,Se=Xs(r),_e=[];e:{var oe=fi.get(e);if(oe!==void 0){var ue=ws,mt=e;switch(e){case"keypress":if(Ss(r)===0)break e;case"keydown":case"keyup":ue=De;break;case"focusin":mt="focus",ue=u;break;case"focusout":mt="blur",ue=u;break;case"beforeblur":case"afterblur":ue=u;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=Gs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=Uf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=In;break;case _t:case it:case nn:ue=y;break;case Pa:ue=Wa;break;case"scroll":case"scrollend":ue=Lf;break;case"wheel":ue=jt;break;case"copy":case"cut":case"paste":ue=_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=zt;break;case"toggle":case"beforetoggle":ue=qt}var ct=(t&4)!==0,cn=!ct&&(e==="scroll"||e==="scrollend"),J=ct?oe!==null?oe+"Capture":null:oe;ct=[];for(var G=se,ae;G!==null;){var we=G;if(ae=we.stateNode,we=we.tag,we!==5&&we!==26&&we!==27||ae===null||J===null||(we=ii(G,J),we!=null&&ct.push(ko(G,we,ae))),cn)break;G=G.return}0<ct.length&&(oe=new ue(oe,mt,null,r,Se),_e.push({event:oe,listeners:ct}))}}if((t&7)===0){e:{if(oe=e==="mouseover"||e==="pointerover",ue=e==="mouseout"||e==="pointerout",oe&&r!==bs&&(mt=r.relatedTarget||r.fromElement)&&(Ha(mt)||mt[Lt]))break e;if((ue||oe)&&(oe=Se.window===Se?Se:(oe=Se.ownerDocument)?oe.defaultView||oe.parentWindow:window,ue?(mt=r.relatedTarget||r.toElement,ue=se,mt=mt?Ha(mt):null,mt!==null&&(cn=f(mt),ct=mt.tag,mt!==cn||ct!==5&&ct!==27&&ct!==6)&&(mt=null)):(ue=null,mt=se),ue!==mt)){if(ct=Gs,we="onMouseLeave",J="onMouseEnter",G="mouse",(e==="pointerout"||e==="pointerover")&&(ct=zt,we="onPointerLeave",J="onPointerEnter",G="pointer"),cn=ue==null?oe:ti(ue),ae=mt==null?oe:ti(mt),oe=new ct(we,G+"leave",ue,r,Se),oe.target=cn,oe.relatedTarget=ae,we=null,Ha(Se)===se&&(ct=new ct(J,G+"enter",mt,r,Se),ct.target=ae,ct.relatedTarget=cn,we=ct),cn=we,ue&&mt)t:{for(ct=ue,J=mt,G=0,ae=ct;ae;ae=wl(ae))G++;for(ae=0,we=J;we;we=wl(we))ae++;for(;0<G-ae;)ct=wl(ct),G--;for(;0<ae-G;)J=wl(J),ae--;for(;G--;){if(ct===J||J!==null&&ct===J.alternate)break t;ct=wl(ct),J=wl(J)}ct=null}else ct=null;ue!==null&&fy(_e,oe,ue,ct,!1),mt!==null&&cn!==null&&fy(_e,cn,mt,ct,!0)}}e:{if(oe=se?ti(se):window,ue=oe.nodeName&&oe.nodeName.toLowerCase(),ue==="select"||ue==="input"&&oe.type==="file")var We=Ru;else if(Cu(oe))if(Du)We=ao;else{We=Ks;var Ot=Es}else ue=oe.nodeName,!ue||ue.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?se&&gs(se.elementType)&&(We=Ru):We=$s;if(We&&(We=We(e,se))){Nu(_e,We,r,Se);break e}Ot&&Ot(e,oe,se),e==="focusout"&&se&&oe.type==="number"&&se.memoizedProps.value!=null&&Gl(oe,"number",oe.value)}switch(Ot=se?ti(se):window,e){case"focusin":(Cu(Ot)||Ot.contentEditable==="true")&&(re=Ot,ce=se,ve=null);break;case"focusout":ve=ce=re=null;break;case"mousedown":Le=!0;break;case"contextmenu":case"mouseup":case"dragend":Le=!1,Ze(_e,r,Se);break;case"selectionchange":if(F)break;case"keydown":case"keyup":Ze(_e,r,Se)}var at;if(oi)e:{switch(e){case"compositionstart":var dt="onCompositionStart";break e;case"compositionend":dt="onCompositionEnd";break e;case"compositionupdate":dt="onCompositionUpdate";break e}dt=void 0}else Br?mr(e,r)&&(dt="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(dt="onCompositionStart");dt&&(zi&&r.locale!=="ko"&&(Br||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&Br&&(at=Tu()):(zr=Se,Wl="value"in zr?zr.value:zr.textContent,Br=!0)),Ot=gc(se,dt),0<Ot.length&&(dt=new N(dt,e,null,r,Se),_e.push({event:dt,listeners:Ot}),at?dt.data=at:(at=Sa(r),at!==null&&(dt.data=at)))),(at=er?gr(e,r):yr(e,r))&&(dt=gc(se,"onBeforeInput"),0<dt.length&&(Ot=new N("onBeforeInput","beforeinput",null,r,Se),_e.push({event:Ot,listeners:dt}),Ot.data=at)),F1(_e,e,se,r,Se)}uy(_e,t)})}function ko(e,t,r){return{instance:e,listener:t,currentTarget:r}}function gc(e,t){for(var r=t+"Capture",o=[];e!==null;){var d=e,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=ii(e,r),d!=null&&o.unshift(ko(e,d,m)),d=ii(e,t),d!=null&&o.push(ko(e,d,m))),e.tag===3)return o;e=e.return}return[]}function wl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fy(e,t,r,o,d){for(var m=t._reactName,T=[];r!==null&&r!==o;){var R=r,V=R.alternate,se=R.stateNode;if(R=R.tag,V!==null&&V===o)break;R!==5&&R!==26&&R!==27||se===null||(V=se,d?(se=ii(r,m),se!=null&&T.unshift(ko(r,se,V))):d||(se=ii(r,m),se!=null&&T.push(ko(r,se,V)))),r=r.return}T.length!==0&&e.push({event:t,listeners:T})}var K1=/\r\n?/g,$1=/\u0000|\uFFFD/g;function dy(e){return(typeof e=="string"?e:""+e).replace(K1,`
`).replace($1,"")}function hy(e,t){return t=dy(t),dy(e)===t}function yc(){}function un(e,t,r,o,d,m){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||ki(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&ki(e,""+o);break;case"className":ni(e,"class",o);break;case"tabIndex":ni(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ni(e,r,o);break;case"style":Lr(e,o,m);break;case"data":if(t!=="object"){ni(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=vs(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"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 m=="function"&&(r==="formAction"?(t!=="input"&&un(e,t,"name",d.name,d,null),un(e,t,"formEncType",d.formEncType,d,null),un(e,t,"formMethod",d.formMethod,d,null),un(e,t,"formTarget",d.formTarget,d,null)):(un(e,t,"encType",d.encType,d,null),un(e,t,"method",d.method,d,null),un(e,t,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=vs(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=yc);break;case"onScroll":o!=null&&Bt("scroll",e);break;case"onScrollEnd":o!=null&&Bt("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(r=o.__html,r!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=vs(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Bt("beforetoggle",e),Bt("toggle",e),Or(e,"popover",o);break;case"xlinkActuate":Na(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Na(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Na(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Na(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Na(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Na(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Na(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Or(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Mf.get(r)||r,Or(e,r,o))}}function lh(e,t,r,o,d,m){switch(r){case"style":Lr(e,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(r=o.__html,r!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof o=="string"?ki(e,o):(typeof o=="number"||typeof o=="bigint")&&ki(e,""+o);break;case"onScroll":o!=null&&Bt("scroll",e);break;case"onScrollEnd":o!=null&&Bt("scrollend",e);break;case"onClick":o!=null&&(e.onclick=yc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ji.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(d=r.endsWith("Capture"),t=r.slice(2,d?r.length-7:void 0),m=e[ht]||null,m=m!=null?m[r]:null,typeof m=="function"&&e.removeEventListener(t,m,d),typeof o=="function")){typeof m!="function"&&m!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,d);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):Or(e,r,o)}}}function da(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bt("error",e),Bt("load",e);var o=!1,d=!1,m;for(m in r)if(r.hasOwnProperty(m)){var T=r[m];if(T!=null)switch(m){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:un(e,t,m,T,r,null)}}d&&un(e,t,"srcSet",r.srcSet,r,null),o&&un(e,t,"src",r.src,r,null);return;case"input":Bt("invalid",e);var R=m=T=d=null,V=null,se=null;for(o in r)if(r.hasOwnProperty(o)){var Se=r[o];if(Se!=null)switch(o){case"name":d=Se;break;case"type":T=Se;break;case"checked":V=Se;break;case"defaultChecked":se=Se;break;case"value":m=Se;break;case"defaultValue":R=Se;break;case"children":case"dangerouslySetInnerHTML":if(Se!=null)throw Error(l(137,t));break;default:un(e,t,o,Se,r,null)}}Eu(e,m,R,V,se,T,d,!1),Ra(e);return;case"select":Bt("invalid",e),o=T=m=null;for(d in r)if(r.hasOwnProperty(d)&&(R=r[d],R!=null))switch(d){case"value":m=R;break;case"defaultValue":T=R;break;case"multiple":o=R;default:un(e,t,d,R,r,null)}t=m,r=T,e.multiple=!!o,t!=null?ta(e,!!o,t,!1):r!=null&&ta(e,!!o,r,!0);return;case"textarea":Bt("invalid",e),m=d=o=null;for(T in r)if(r.hasOwnProperty(T)&&(R=r[T],R!=null))switch(T){case"value":o=R;break;case"defaultValue":d=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(l(91));break;default:un(e,t,T,R,r,null)}Oi(e,o,d,m),Ra(e);return;case"option":for(V in r)if(r.hasOwnProperty(V)&&(o=r[V],o!=null))switch(V){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:un(e,t,V,o,r,null)}return;case"dialog":Bt("beforetoggle",e),Bt("toggle",e),Bt("cancel",e),Bt("close",e);break;case"iframe":case"object":Bt("load",e);break;case"video":case"audio":for(o=0;o<Oo.length;o++)Bt(Oo[o],e);break;case"image":Bt("error",e),Bt("load",e);break;case"details":Bt("toggle",e);break;case"embed":case"source":case"link":Bt("error",e),Bt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in r)if(r.hasOwnProperty(se)&&(o=r[se],o!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:un(e,t,se,o,r,null)}return;default:if(gs(t)){for(Se in r)r.hasOwnProperty(Se)&&(o=r[Se],o!==void 0&&lh(e,t,Se,o,r,void 0));return}}for(R in r)r.hasOwnProperty(R)&&(o=r[R],o!=null&&un(e,t,R,o,r,null))}function W1(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,T=null,R=null,V=null,se=null,Se=null;for(ue in r){var _e=r[ue];if(r.hasOwnProperty(ue)&&_e!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":V=_e;default:o.hasOwnProperty(ue)||un(e,t,ue,null,o,_e)}}for(var oe in o){var ue=o[oe];if(_e=r[oe],o.hasOwnProperty(oe)&&(ue!=null||_e!=null))switch(oe){case"type":m=ue;break;case"name":d=ue;break;case"checked":se=ue;break;case"defaultChecked":Se=ue;break;case"value":T=ue;break;case"defaultValue":R=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(l(137,t));break;default:ue!==_e&&un(e,t,oe,ue,o,_e)}}Zs(e,T,R,V,se,Se,m,d);return;case"select":ue=T=R=oe=null;for(m in r)if(V=r[m],r.hasOwnProperty(m)&&V!=null)switch(m){case"value":break;case"multiple":ue=V;default:o.hasOwnProperty(m)||un(e,t,m,null,o,V)}for(d in o)if(m=o[d],V=r[d],o.hasOwnProperty(d)&&(m!=null||V!=null))switch(d){case"value":oe=m;break;case"defaultValue":R=m;break;case"multiple":T=m;default:m!==V&&un(e,t,d,m,o,V)}t=R,r=T,o=ue,oe!=null?ta(e,!!r,oe,!1):!!o!=!!r&&(t!=null?ta(e,!!r,t,!0):ta(e,!!r,r?[]:"",!1));return;case"textarea":ue=oe=null;for(R in r)if(d=r[R],r.hasOwnProperty(R)&&d!=null&&!o.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:un(e,t,R,null,o,d)}for(T in o)if(d=o[T],m=r[T],o.hasOwnProperty(T)&&(d!=null||m!=null))switch(T){case"value":oe=d;break;case"defaultValue":ue=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(l(91));break;default:d!==m&&un(e,t,T,d,o,m)}Il(e,oe,ue);return;case"option":for(var mt in r)if(oe=r[mt],r.hasOwnProperty(mt)&&oe!=null&&!o.hasOwnProperty(mt))switch(mt){case"selected":e.selected=!1;break;default:un(e,t,mt,null,o,oe)}for(V in o)if(oe=o[V],ue=r[V],o.hasOwnProperty(V)&&oe!==ue&&(oe!=null||ue!=null))switch(V){case"selected":e.selected=oe&&typeof oe!="function"&&typeof oe!="symbol";break;default:un(e,t,V,oe,o,ue)}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 ct in r)oe=r[ct],r.hasOwnProperty(ct)&&oe!=null&&!o.hasOwnProperty(ct)&&un(e,t,ct,null,o,oe);for(se in o)if(oe=o[se],ue=r[se],o.hasOwnProperty(se)&&oe!==ue&&(oe!=null||ue!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,t));break;default:un(e,t,se,oe,o,ue)}return;default:if(gs(t)){for(var cn in r)oe=r[cn],r.hasOwnProperty(cn)&&oe!==void 0&&!o.hasOwnProperty(cn)&&lh(e,t,cn,void 0,o,oe);for(Se in o)oe=o[Se],ue=r[Se],!o.hasOwnProperty(Se)||oe===ue||oe===void 0&&ue===void 0||lh(e,t,Se,oe,o,ue);return}}for(var J in r)oe=r[J],r.hasOwnProperty(J)&&oe!=null&&!o.hasOwnProperty(J)&&un(e,t,J,null,o,oe);for(_e in o)oe=o[_e],ue=r[_e],!o.hasOwnProperty(_e)||oe===ue||oe==null&&ue==null||un(e,t,_e,oe,o,ue)}var oh=null,uh=null;function vc(e){return e.nodeType===9?e:e.ownerDocument}function py(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function my(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ch(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fh=null;function J1(){var e=window.event;return e&&e.type==="popstate"?e===fh?!1:(fh=e,!0):(fh=null,!1)}var gy=typeof setTimeout=="function"?setTimeout:void 0,ex=typeof clearTimeout=="function"?clearTimeout:void 0,yy=typeof Promise=="function"?Promise:void 0,tx=typeof queueMicrotask=="function"?queueMicrotask:typeof yy<"u"?function(e){return yy.resolve(null).then(e).catch(nx)}:gy;function nx(e){setTimeout(function(){throw e})}function Wi(e){return e==="head"}function vy(e,t){var r=t,o=0,d=0;do{var m=r.nextSibling;if(e.removeChild(r),m&&m.nodeType===8)if(r=m.data,r==="/$"){if(0<o&&8>o){r=o;var T=e.ownerDocument;if(r&1&&Mo(T.documentElement),r&2&&Mo(T.body),r&4)for(r=T.head,Mo(r),T=r.firstChild;T;){var R=T.nextSibling,V=T.nodeName;T[Ta]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&T.rel.toLowerCase()==="stylesheet"||r.removeChild(T),T=R}}if(d===0){e.removeChild(m),Po(t);return}d--}else r==="$"||r==="$?"||r==="$!"?d++:o=r.charCodeAt(0)-48;else o=0;r=m}while(r);Po(t)}function dh(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":dh(r),hs(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function ax(e,t,r,o){for(;e.nodeType===1;){var d=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ta])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Ar(e.nextSibling),e===null)break}return null}function rx(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Ar(e.nextSibling),e===null))return null;return e}function hh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function ix(e,t){var r=e.ownerDocument;if(e.data!=="$?"||r.readyState==="complete")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Ar(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var ph=null;function by(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}function xy(e,t,r){switch(t=vc(r),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Mo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hs(e)}var lr=new Map,Sy=new Set;function bc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ei=pe.d;pe.d={f:sx,r:lx,D:ox,C:ux,L:cx,m:fx,X:hx,S:dx,M:px};function sx(){var e=Ei.f(),t=cc();return e||t}function lx(e){var t=cr(e);t!==null&&t.tag===5&&t.type==="form"?Vm(t):Ei.r(e)}var Al=typeof document>"u"?null:document;function wy(e,t,r){var o=Al;if(o&&typeof t=="string"&&t){var d=ua(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof r=="string"&&(d+='[crossorigin="'+r+'"]'),Sy.has(d)||(Sy.add(d),e={rel:e,crossOrigin:r,href:t},o.querySelector(d)===null&&(t=o.createElement("link"),da(t,"link",e),Cn(t),o.head.appendChild(t)))}}function ox(e){Ei.D(e),wy("dns-prefetch",e,null)}function ux(e,t){Ei.C(e,t),wy("preconnect",e,t)}function cx(e,t,r){Ei.L(e,t,r);var o=Al;if(o&&e&&t){var d='link[rel="preload"][as="'+ua(t)+'"]';t==="image"&&r&&r.imageSrcSet?(d+='[imagesrcset="'+ua(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(d+='[imagesizes="'+ua(r.imageSizes)+'"]')):d+='[href="'+ua(e)+'"]';var m=d;switch(t){case"style":m=El(e);break;case"script":m=_l(e)}lr.has(m)||(e=A({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),lr.set(m,e),o.querySelector(d)!==null||t==="style"&&o.querySelector(Lo(m))||t==="script"&&o.querySelector(zo(m))||(t=o.createElement("link"),da(t,"link",e),Cn(t),o.head.appendChild(t)))}}function fx(e,t){Ei.m(e,t);var r=Al;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+ua(o)+'"][href="'+ua(e)+'"]',m=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=_l(e)}if(!lr.has(m)&&(e=A({rel:"modulepreload",href:e},t),lr.set(m,e),r.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(zo(m)))return}o=r.createElement("link"),da(o,"link",e),Cn(o),r.head.appendChild(o)}}}function dx(e,t,r){Ei.S(e,t,r);var o=Al;if(o&&e){var d=xa(o).hoistableStyles,m=El(e);t=t||"default";var T=d.get(m);if(!T){var R={loading:0,preload:null};if(T=o.querySelector(Lo(m)))R.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},r),(r=lr.get(m))&&mh(e,r);var V=T=o.createElement("link");Cn(V),da(V,"link",e),V._p=new Promise(function(se,Se){V.onload=se,V.onerror=Se}),V.addEventListener("load",function(){R.loading|=1}),V.addEventListener("error",function(){R.loading|=2}),R.loading|=4,xc(T,t,o)}T={type:"stylesheet",instance:T,count:1,state:R},d.set(m,T)}}}function hx(e,t){Ei.X(e,t);var r=Al;if(r&&e){var o=xa(r).hoistableScripts,d=_l(e),m=o.get(d);m||(m=r.querySelector(zo(d)),m||(e=A({src:e,async:!0},t),(t=lr.get(d))&&gh(e,t),m=r.createElement("script"),Cn(m),da(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function px(e,t){Ei.M(e,t);var r=Al;if(r&&e){var o=xa(r).hoistableScripts,d=_l(e),m=o.get(d);m||(m=r.querySelector(zo(d)),m||(e=A({src:e,async:!0,type:"module"},t),(t=lr.get(d))&&gh(e,t),m=r.createElement("script"),Cn(m),da(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function Ay(e,t,r,o){var d=(d=Ve.current)?bc(d):null;if(!d)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=El(r.href),r=xa(d).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=El(r.href);var m=xa(d).hoistableStyles,T=m.get(e);if(T||(d=d.ownerDocument||d,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,T),(m=d.querySelector(Lo(e)))&&!m._p&&(T.instance=m,T.state.loading=5),lr.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},lr.set(e,r),m||mx(d,e,r,T.state))),t&&o===null)throw Error(l(528,""));return T}if(t&&o!==null)throw Error(l(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_l(r),r=xa(d).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function El(e){return'href="'+ua(e)+'"'}function Lo(e){return'link[rel="stylesheet"]['+e+"]"}function Ey(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function mx(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),da(t,"link",r),Cn(t),e.head.appendChild(t))}function _l(e){return'[src="'+ua(e)+'"]'}function zo(e){return"script[async]"+e}function _y(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+ua(r.href)+'"]');if(o)return t.instance=o,Cn(o),o;var d=A({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Cn(o),da(o,"style",d),xc(o,r.precedence,e),t.instance=o;case"stylesheet":d=El(r.href);var m=e.querySelector(Lo(d));if(m)return t.state.loading|=4,t.instance=m,Cn(m),m;o=Ey(r),(d=lr.get(d))&&mh(o,d),m=(e.ownerDocument||e).createElement("link"),Cn(m);var T=m;return T._p=new Promise(function(R,V){T.onload=R,T.onerror=V}),da(m,"link",o),t.state.loading|=4,xc(m,r.precedence,e),t.instance=m;case"script":return m=_l(r.src),(d=e.querySelector(zo(m)))?(t.instance=d,Cn(d),d):(o=r,(d=lr.get(m))&&(o=A({},r),gh(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),Cn(d),da(d,"link",o),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,xc(o,r.precedence,e));return t.instance}function xc(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,m=d,T=0;T<o.length;T++){var R=o[T];if(R.dataset.precedence===t)m=R;else if(m!==d)break}m?m.parentNode.insertBefore(e,m.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function mh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Sc=null;function Ty(e,t,r){if(Sc===null){var o=new Map,d=Sc=new Map;d.set(r,o)}else d=Sc,o=d.get(r),o||(o=new Map,d.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),d=0;d<r.length;d++){var m=r[d];if(!(m[Ta]||m[Tt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var T=m.getAttribute(t)||"";T=e+T;var R=o.get(T);R?R.push(m):o.set(T,[m])}}return o}function Cy(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function gx(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ny(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Uo=null;function yx(){}function vx(e,t,r){if(Uo===null)throw Error(l(475));var o=Uo;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var d=El(r.href),m=e.querySelector(Lo(d));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=wc.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=m,Cn(m);return}m=e.ownerDocument||e,r=Ey(r),(d=lr.get(d))&&mh(r,d),m=m.createElement("link"),Cn(m);var T=m;T._p=new Promise(function(R,V){T.onload=R,T.onerror=V}),da(m,"link",r),t.instance=m}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(o.count++,t=wc.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function bx(){if(Uo===null)throw Error(l(475));var e=Uo;return e.stylesheets&&e.count===0&&yh(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&yh(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}function wc(){if(this.count--,this.count===0){if(this.stylesheets)yh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ac=null;function yh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ac=new Map,t.forEach(xx,e),Ac=null,wc.call(e))}function xx(e,t){if(!(t.state.loading&4)){var r=Ac.get(e);if(r)var o=r.get(null);else{r=new Map,Ac.set(e,r);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var T=d[m];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(r.set(T.dataset.precedence,T),o=T)}o&&r.set(null,o)}d=t.instance,T=d.getAttribute("data-precedence"),m=r.get(T)||o,m===o&&r.set(null,d),r.set(T,d),this.count++,o=wc.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),m?m.parentNode.insertBefore(d,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var Bo={$$typeof:Z,Provider:null,Consumer:null,_currentValue:Ue,_currentValue2:Ue,_threadCount:0};function Sx(e,t,r,o,d,m,T,R){this.tag=1,this.containerInfo=e,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=Ft(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ft(0),this.hiddenUpdates=Ft(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ry(e,t,r,o,d,m,T,R,V,se,Se,_e){return e=new Sx(e,t,r,T,R,V,se,_e),t=1,m===!0&&(t|=24),m=Ya(3,null,null,t),e.current=m,m.stateNode=e,t=Wf(),t.refCount++,e.pooledCache=t,t.refCount++,m.memoizedState={element:o,isDehydrated:r,cache:t},nd(m),e}function Dy(e){return e?(e=nl,e):nl}function jy(e,t,r,o,d,m){d=Dy(d),o.context===null?o.context=d:o.pendingContext=d,o=Hi(t),o.payload={element:r},m=m===void 0?null:m,m!==null&&(o.callback=m),r=qi(e,o,t),r!==null&&(Ia(r,e,t),po(r,e,t))}function Oy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function vh(e,t){Oy(e,t),(e=e.alternate)&&Oy(e,t)}function ky(e){if(e.tag===13){var t=tl(e,67108864);t!==null&&Ia(t,e,67108864),vh(e,67108864)}}var Ec=!0;function wx(e,t,r,o){var d=W.T;W.T=null;var m=pe.p;try{pe.p=2,bh(e,t,r,o)}finally{pe.p=m,W.T=d}}function Ax(e,t,r,o){var d=W.T;W.T=null;var m=pe.p;try{pe.p=8,bh(e,t,r,o)}finally{pe.p=m,W.T=d}}function bh(e,t,r,o){if(Ec){var d=xh(o);if(d===null)sh(e,t,o,_c,r),Ly(e,o);else if(_x(d,e,t,r,o))o.stopPropagation();else if(Ly(e,o),t&4&&-1<Ex.indexOf(e)){for(;d!==null;){var m=cr(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var T=gn(m.pendingLanes);if(T!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;T;){var V=1<<31-de(T);R.entanglements[1]|=V,T&=~V}Zr(m),(an&6)===0&&(oc=Ht()+500,jo(0))}}break;case 13:R=tl(m,2),R!==null&&Ia(R,m,2),cc(),vh(m,2)}if(m=xh(o),m===null&&sh(e,t,o,_c,r),m===d)break;d=m}d!==null&&o.stopPropagation()}else sh(e,t,o,null,r)}}function xh(e){return e=Xs(e),Sh(e)}var _c=null;function Sh(e){if(_c=null,e=Ha(e),e!==null){var t=f(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=p(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _c=e,null}function My(e){switch(e){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(Sn()){case mn:return 2;case _n:return 8;case ea:case At:return 32;case H:return 268435456;default:return 32}default:return 32}}var wh=!1,Ji=null,es=null,ts=null,Ho=new Map,qo=new Map,ns=[],Ex="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 Ly(e,t){switch(e){case"focusin":case"focusout":Ji=null;break;case"dragenter":case"dragleave":es=null;break;case"mouseover":case"mouseout":ts=null;break;case"pointerover":case"pointerout":Ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qo.delete(t.pointerId)}}function Vo(e,t,r,o,d,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:m,targetContainers:[d]},t!==null&&(t=cr(t),t!==null&&ky(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function _x(e,t,r,o,d){switch(t){case"focusin":return Ji=Vo(Ji,e,t,r,o,d),!0;case"dragenter":return es=Vo(es,e,t,r,o,d),!0;case"mouseover":return ts=Vo(ts,e,t,r,o,d),!0;case"pointerover":var m=d.pointerId;return Ho.set(m,Vo(Ho.get(m)||null,e,t,r,o,d)),!0;case"gotpointercapture":return m=d.pointerId,qo.set(m,Vo(qo.get(m)||null,e,t,r,o,d)),!0}return!1}function zy(e){var t=Ha(e.target);if(t!==null){var r=f(t);if(r!==null){if(t=r.tag,t===13){if(t=p(r),t!==null){e.blockedOn=t,Jt(e.priority,function(){if(r.tag===13){var o=Ga();o=ft(o);var d=tl(r,o);d!==null&&Ia(d,r,o),vh(r,o)}});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=xh(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);bs=o,r.target.dispatchEvent(o),bs=null}else return t=cr(r),t!==null&&ky(t),e.blockedOn=r,!1;t.shift()}return!0}function Uy(e,t,r){Tc(e)&&r.delete(t)}function Tx(){wh=!1,Ji!==null&&Tc(Ji)&&(Ji=null),es!==null&&Tc(es)&&(es=null),ts!==null&&Tc(ts)&&(ts=null),Ho.forEach(Uy),qo.forEach(Uy)}function Cc(e,t){e.blockedOn===t&&(e.blockedOn=null,wh||(wh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Tx)))}var Nc=null;function By(e){Nc!==e&&(Nc=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Nc===e&&(Nc=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],d=e[t+2];if(typeof o!="function"){if(Sh(o||r)===null)continue;break}var m=cr(r);m!==null&&(e.splice(t,3),t-=3,Sd(m,{pending:!0,data:d,method:r.method,action:o},o,d))}}))}function Po(e){function t(V){return Cc(V,e)}Ji!==null&&Cc(Ji,e),es!==null&&Cc(es,e),ts!==null&&Cc(ts,e),Ho.forEach(t),qo.forEach(t);for(var r=0;r<ns.length;r++){var o=ns[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ns.length&&(r=ns[0],r.blockedOn===null);)zy(r),r.blockedOn===null&&ns.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var d=r[o],m=r[o+1],T=d[ht]||null;if(typeof m=="function")T||By(r);else if(T){var R=null;if(m&&m.hasAttribute("formAction")){if(d=m,T=m[ht]||null)R=T.formAction;else if(Sh(d)!==null)continue}else R=T.action;typeof R=="function"?r[o+1]=R:(r.splice(o,3),o-=3),By(r)}}}function Ah(e){this._internalRoot=e}Rc.prototype.render=Ah.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var r=t.current,o=Ga();jy(r,o,e,t,null,null)},Rc.prototype.unmount=Ah.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jy(e.current,2,null,e,null,null),cc(),t[Lt]=null}};function Rc(e){this._internalRoot=e}Rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=On();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ns.length&&t!==0&&t<ns[r].priority;r++);ns.splice(r,0,e),r===0&&zy(e)}};var Hy=a.version;if(Hy!=="19.1.1")throw Error(l(527,Hy,"19.1.1"));pe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=S(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Cx={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dc.isDisabled&&Dc.supportsFiber)try{Ce=Dc.inject(Cx),Te=Dc}catch{}}return Zo.createRoot=function(e,t){if(!c(e))throw Error(l(299));var r=!1,o="",d=tg,m=ng,T=ag,R=null;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(m=t.onCaughtError),t.onRecoverableError!==void 0&&(T=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(R=t.unstable_transitionCallbacks)),t=Ry(e,1,!1,null,null,r,o,d,m,T,R,null),e[Lt]=t.current,ih(e),new Ah(t)},Zo.hydrateRoot=function(e,t,r){if(!c(e))throw Error(l(299));var o=!1,d="",m=tg,T=ng,R=ag,V=null,se=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(T=r.onCaughtError),r.onRecoverableError!==void 0&&(R=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(V=r.unstable_transitionCallbacks),r.formState!==void 0&&(se=r.formState)),t=Ry(e,1,!0,t,r??null,o,d,m,T,R,V,se),t.context=Dy(null),r=t.current,o=Ga(),o=ft(o),d=Hi(o),d.callback=null,qi(r,d,o),r=o,t.current.lanes=r,Rt(t,r),Zr(t),e[Lt]=t.current,ih(e),new Rc(t)},Zo.version="19.1.1",Zo}var Qy;function zx(){if(Qy)return Th.exports;Qy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Th.exports=Lx(),Th.exports}var Ux=zx();/**
* react-router v7.8.2
*
* 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
*/var Ky="popstate";function Bx(n={}){function a(l,c){let{pathname:f,search:p,hash:v}=l.location;return ep("",{pathname:f,search:p,hash:v},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function s(l,c){return typeof c=="string"?c:au(c)}return qx(a,s,null,n)}function Dn(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Wr(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Hx(){return Math.random().toString(36).substring(2,10)}function $y(n,a){return{usr:n.state,key:n.key,idx:a}}function ep(n,a,s=null,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Hl(a):a,state:s,key:a&&a.key||l||Hx()}}function au({pathname:n="/",search:a="",hash:s=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Hl(n){let a={};if(n){let s=n.indexOf("#");s>=0&&(a.hash=n.substring(s),n=n.substring(0,s));let l=n.indexOf("?");l>=0&&(a.search=n.substring(l),n=n.substring(0,l)),n&&(a.pathname=n)}return a}function qx(n,a,s,l={}){let{window:c=document.defaultView,v5Compat:f=!1}=l,p=c.history,v="POP",S=null,x=A();x==null&&(x=0,p.replaceState({...p.state,idx:x},""));function A(){return(p.state||{idx:null}).idx}function w(){v="POP";let U=A(),L=U==null?null:U-x;x=U,S&&S({action:v,location:O.location,delta:L})}function j(U,L){v="PUSH";let P=ep(O.location,U,L);x=A()+1;let Z=$y(P,x),ee=O.createHref(P);try{p.pushState(Z,"",ee)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;c.location.assign(ee)}f&&S&&S({action:v,location:O.location,delta:1})}function M(U,L){v="REPLACE";let P=ep(O.location,U,L);x=A();let Z=$y(P,x),ee=O.createHref(P);p.replaceState(Z,"",ee),f&&S&&S({action:v,location:O.location,delta:0})}function z(U){return Vx(U)}let O={get action(){return v},get location(){return n(c,p)},listen(U){if(S)throw new Error("A history only accepts one active listener");return c.addEventListener(Ky,w),S=U,()=>{c.removeEventListener(Ky,w),S=null}},createHref(U){return a(c,U)},createURL:z,encodeLocation(U){let L=z(U);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:j,replace:M,go(U){return p.go(U)}};return O}function Vx(n,a=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Dn(s,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:au(n);return l=l.replace(/ $/,"%20"),!a&&l.startsWith("//")&&(l=s+l),new URL(l,s)}function D0(n,a,s="/"){return Px(n,a,s,!1)}function Px(n,a,s,l){let c=typeof a=="string"?Hl(a):a,f=Ti(c.pathname||"/",s);if(f==null)return null;let p=j0(n);Yx(p);let v=null;for(let S=0;v==null&&S<p.length;++S){let x=eS(f);v=Wx(p[S],x,l)}return v}function j0(n,a=[],s=[],l="",c=!1){let f=(p,v,S=c,x)=>{let A={relativePath:x===void 0?p.path||"":x,caseSensitive:p.caseSensitive===!0,childrenIndex:v,route:p};if(A.relativePath.startsWith("/")){if(!A.relativePath.startsWith(l)&&S)return;Dn(A.relativePath.startsWith(l),`Absolute route path "${A.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),A.relativePath=A.relativePath.slice(l.length)}let w=_i([l,A.relativePath]),j=s.concat(A);p.children&&p.children.length>0&&(Dn(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${w}".`),j0(p.children,a,j,w,S)),!(p.path==null&&!p.index)&&a.push({path:w,score:Kx(w,p.index),routesMeta:j})};return n.forEach((p,v)=>{var S;if(p.path===""||!((S=p.path)!=null&&S.includes("?")))f(p,v);else for(let x of O0(p.path))f(p,v,!0,x)}),a}function O0(n){let a=n.split("/");if(a.length===0)return[];let[s,...l]=a,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(l.length===0)return c?[f,""]:[f];let p=O0(l.join("/")),v=[];return v.push(...p.map(S=>S===""?f:[f,S].join("/"))),c&&v.push(...p),v.map(S=>n.startsWith("/")&&S===""?"/":S)}function Yx(n){n.sort((a,s)=>a.score!==s.score?s.score-a.score:$x(a.routesMeta.map(l=>l.childrenIndex),s.routesMeta.map(l=>l.childrenIndex)))}var Zx=/^:[\w-]+$/,Xx=3,Fx=2,Gx=1,Ix=10,Qx=-2,Wy=n=>n==="*";function Kx(n,a){let s=n.split("/"),l=s.length;return s.some(Wy)&&(l+=Qx),a&&(l+=Fx),s.filter(c=>!Wy(c)).reduce((c,f)=>c+(Zx.test(f)?Xx:f===""?Gx:Ix),l)}function $x(n,a){return n.length===a.length&&n.slice(0,-1).every((l,c)=>l===a[c])?n[n.length-1]-a[a.length-1]:0}function Wx(n,a,s=!1){let{routesMeta:l}=n,c={},f="/",p=[];for(let v=0;v<l.length;++v){let S=l[v],x=v===l.length-1,A=f==="/"?a:a.slice(f.length)||"/",w=$c({path:S.relativePath,caseSensitive:S.caseSensitive,end:x},A),j=S.route;if(!w&&x&&s&&!l[l.length-1].route.index&&(w=$c({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},A)),!w)return null;Object.assign(c,w.params),p.push({params:c,pathname:_i([f,w.pathname]),pathnameBase:rS(_i([f,w.pathnameBase])),route:j}),w.pathnameBase!=="/"&&(f=_i([f,w.pathnameBase]))}return p}function $c(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,l]=Jx(n.path,n.caseSensitive,n.end),c=a.match(s);if(!c)return null;let f=c[0],p=f.replace(/(.)\/+$/,"$1"),v=c.slice(1);return{params:l.reduce((x,{paramName:A,isOptional:w},j)=>{if(A==="*"){let z=v[j]||"";p=f.slice(0,f.length-z.length).replace(/(.)\/+$/,"$1")}const M=v[j];return w&&!M?x[A]=void 0:x[A]=(M||"").replace(/%2F/g,"/"),x},{}),pathname:f,pathnameBase:p,pattern:n}}function Jx(n,a=!1,s=!0){Wr(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let l=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,v,S)=>(l.push({paramName:v,isOptional:S!=null}),S?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(l.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),l]}function eS(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Wr(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Ti(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let s=a.endsWith("/")?a.length-1:a.length,l=n.charAt(s);return l&&l!=="/"?null:n.slice(s)||"/"}function tS(n,a="/"){let{pathname:s,search:l="",hash:c=""}=typeof n=="string"?Hl(n):n;return{pathname:s?s.startsWith("/")?s:nS(s,a):a,search:iS(l),hash:sS(c)}}function nS(n,a){let s=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function Dh(n,a,s,l){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function aS(n){return n.filter((a,s)=>s===0||a.route.path&&a.route.path.length>0)}function k0(n){let a=aS(n);return a.map((s,l)=>l===a.length-1?s.pathname:s.pathnameBase)}function M0(n,a,s,l=!1){let c;typeof n=="string"?c=Hl(n):(c={...n},Dn(!c.pathname||!c.pathname.includes("?"),Dh("?","pathname","search",c)),Dn(!c.pathname||!c.pathname.includes("#"),Dh("#","pathname","hash",c)),Dn(!c.search||!c.search.includes("#"),Dh("#","search","hash",c)));let f=n===""||c.pathname==="",p=f?"/":c.pathname,v;if(p==null)v=s;else{let w=a.length-1;if(!l&&p.startsWith("..")){let j=p.split("/");for(;j[0]==="..";)j.shift(),w-=1;c.pathname=j.join("/")}v=w>=0?a[w]:"/"}let S=tS(c,v),x=p&&p!=="/"&&p.endsWith("/"),A=(f||p===".")&&s.endsWith("/");return!S.pathname.endsWith("/")&&(x||A)&&(S.pathname+="/"),S}var _i=n=>n.join("/").replace(/\/\/+/g,"/"),rS=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),iS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,sS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function lS(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var L0=["POST","PUT","PATCH","DELETE"];new Set(L0);var oS=["GET",...L0];new Set(oS);var ql=D.createContext(null);ql.displayName="DataRouter";var yf=D.createContext(null);yf.displayName="DataRouterState";D.createContext(!1);var z0=D.createContext({isTransitioning:!1});z0.displayName="ViewTransition";var uS=D.createContext(new Map);uS.displayName="Fetchers";var cS=D.createContext(null);cS.displayName="Await";var ei=D.createContext(null);ei.displayName="Navigation";var du=D.createContext(null);du.displayName="Location";var Ni=D.createContext({outlet:null,matches:[],isDataRoute:!1});Ni.displayName="Route";var wp=D.createContext(null);wp.displayName="RouteError";function fS(n,{relative:a}={}){Dn(hu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:l}=D.useContext(ei),{hash:c,pathname:f,search:p}=pu(n,{relative:a}),v=f;return s!=="/"&&(v=f==="/"?s:_i([s,f])),l.createHref({pathname:v,search:p,hash:c})}function hu(){return D.useContext(du)!=null}function Ri(){return Dn(hu(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(du).location}var U0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function B0(n){D.useContext(ei).static||D.useLayoutEffect(n)}function vf(){let{isDataRoute:n}=D.useContext(Ni);return n?ES():dS()}function dS(){Dn(hu(),"useNavigate() may be used only in the context of a <Router> component.");let n=D.useContext(ql),{basename:a,navigator:s}=D.useContext(ei),{matches:l}=D.useContext(Ni),{pathname:c}=Ri(),f=JSON.stringify(k0(l)),p=D.useRef(!1);return B0(()=>{p.current=!0}),D.useCallback((S,x={})=>{if(Wr(p.current,U0),!p.current)return;if(typeof S=="number"){s.go(S);return}let A=M0(S,JSON.parse(f),c,x.relative==="path");n==null&&a!=="/"&&(A.pathname=A.pathname==="/"?a:_i([a,A.pathname])),(x.replace?s.replace:s.push)(A,x.state,x)},[a,s,f,c,n])}D.createContext(null);function pu(n,{relative:a}={}){let{matches:s}=D.useContext(Ni),{pathname:l}=Ri(),c=JSON.stringify(k0(s));return D.useMemo(()=>M0(n,JSON.parse(c),l,a==="path"),[n,c,l,a])}function hS(n,a){return H0(n,a)}function H0(n,a,s,l,c){var P;Dn(hu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=D.useContext(ei),{matches:p}=D.useContext(Ni),v=p[p.length-1],S=v?v.params:{},x=v?v.pathname:"/",A=v?v.pathnameBase:"/",w=v&&v.route;{let Z=w&&w.path||"";q0(x,!w||Z.endsWith("*")||Z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${Z}">) 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.
Please change the parent <Route path="${Z}"> to <Route path="${Z==="/"?"*":`${Z}/*`}">.`)}let j=Ri(),M;if(a){let Z=typeof a=="string"?Hl(a):a;Dn(A==="/"||((P=Z.pathname)==null?void 0:P.startsWith(A)),`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 "${A}" but pathname "${Z.pathname}" was given in the \`location\` prop.`),M=Z}else M=j;let z=M.pathname||"/",O=z;if(A!=="/"){let Z=A.replace(/^\//,"").split("/");O="/"+z.replace(/^\//,"").split("/").slice(Z.length).join("/")}let U=D0(n,{pathname:O});Wr(w||U!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Wr(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.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 L=vS(U&&U.map(Z=>Object.assign({},Z,{params:Object.assign({},S,Z.params),pathname:_i([A,f.encodeLocation?f.encodeLocation(Z.pathname).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?A:_i([A,f.encodeLocation?f.encodeLocation(Z.pathnameBase).pathname:Z.pathnameBase])})),p,s,l,c);return a&&L?D.createElement(du.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},L):L}function pS(){let n=AS(),a=lS(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,l="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:l},f={padding:"2px 4px",backgroundColor:l},p=null;return console.error("Error handled by React Router default ErrorBoundary:",n),p=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:f},"ErrorBoundary")," or"," ",D.createElement("code",{style:f},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},a),s?D.createElement("pre",{style:c},s):null,p)}var mS=D.createElement(pS,null),gS=class extends D.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.unstable_onError?this.props.unstable_onError(n,a):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?D.createElement(Ni.Provider,{value:this.props.routeContext},D.createElement(wp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function yS({routeContext:n,match:a,children:s}){let l=D.useContext(ql);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),D.createElement(Ni.Provider,{value:n},s)}function vS(n,a=[],s=null,l=null,c=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let f=n,p=s==null?void 0:s.errors;if(p!=null){let x=f.findIndex(A=>A.route.id&&(p==null?void 0:p[A.route.id])!==void 0);Dn(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),f=f.slice(0,Math.min(f.length,x+1))}let v=!1,S=-1;if(s)for(let x=0;x<f.length;x++){let A=f[x];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(S=x),A.route.id){let{loaderData:w,errors:j}=s,M=A.route.loader&&!w.hasOwnProperty(A.route.id)&&(!j||j[A.route.id]===void 0);if(A.route.lazy||M){v=!0,S>=0?f=f.slice(0,S+1):f=[f[0]];break}}}return f.reduceRight((x,A,w)=>{let j,M=!1,z=null,O=null;s&&(j=p&&A.route.id?p[A.route.id]:void 0,z=A.route.errorElement||mS,v&&(S<0&&w===0?(q0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,O=null):S===w&&(M=!0,O=A.route.hydrateFallbackElement||null)));let U=a.concat(f.slice(0,w+1)),L=()=>{let P;return j?P=z:M?P=O:A.route.Component?P=D.createElement(A.route.Component,null):A.route.element?P=A.route.element:P=x,D.createElement(yS,{match:A,routeContext:{outlet:x,matches:U,isDataRoute:s!=null},children:P})};return s&&(A.route.ErrorBoundary||A.route.errorElement||w===0)?D.createElement(gS,{location:s.location,revalidation:s.revalidation,component:z,error:j,children:L(),routeContext:{outlet:null,matches:U,isDataRoute:!0},unstable_onError:l}):L()},null)}function Ap(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bS(n){let a=D.useContext(ql);return Dn(a,Ap(n)),a}function xS(n){let a=D.useContext(yf);return Dn(a,Ap(n)),a}function SS(n){let a=D.useContext(Ni);return Dn(a,Ap(n)),a}function Ep(n){let a=SS(n),s=a.matches[a.matches.length-1];return Dn(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function wS(){return Ep("useRouteId")}function AS(){var l;let n=D.useContext(wp),a=xS("useRouteError"),s=Ep("useRouteError");return n!==void 0?n:(l=a.errors)==null?void 0:l[s]}function ES(){let{router:n}=bS("useNavigate"),a=Ep("useNavigate"),s=D.useRef(!1);return B0(()=>{s.current=!0}),D.useCallback(async(c,f={})=>{Wr(s.current,U0),s.current&&(typeof c=="number"?n.navigate(c):await n.navigate(c,{fromRouteId:a,...f}))},[n,a])}var Jy={};function q0(n,a,s){!a&&!Jy[n]&&(Jy[n]=!0,Wr(!1,s))}D.memo(_S);function _S({routes:n,future:a,state:s,unstable_onError:l}){return H0(n,void 0,s,l,a)}function Pc(n){Dn(!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 TS({basename:n="/",children:a=null,location:s,navigationType:l="POP",navigator:c,static:f=!1}){Dn(!hu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),v=D.useMemo(()=>({basename:p,navigator:c,static:f,future:{}}),[p,c,f]);typeof s=="string"&&(s=Hl(s));let{pathname:S="/",search:x="",hash:A="",state:w=null,key:j="default"}=s,M=D.useMemo(()=>{let z=Ti(S,p);return z==null?null:{location:{pathname:z,search:x,hash:A,state:w,key:j},navigationType:l}},[p,S,x,A,w,j,l]);return Wr(M!=null,`<Router basename="${p}"> is not able to match the URL "${S}${x}${A}" because it does not start with the basename, so the <Router> won't render anything.`),M==null?null:D.createElement(ei.Provider,{value:v},D.createElement(du.Provider,{children:a,value:M}))}function CS({children:n,location:a}){return hS(tp(n),a)}function tp(n,a=[]){let s=[];return D.Children.forEach(n,(l,c)=>{if(!D.isValidElement(l))return;let f=[...a,c];if(l.type===D.Fragment){s.push.apply(s,tp(l.props.children,f));return}Dn(l.type===Pc,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Dn(!l.props.index||!l.props.children,"An index route cannot have child routes.");let p={id:l.props.id||f.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(p.children=tp(l.props.children,f)),s.push(p)}),s}var Yc="get",Zc="application/x-www-form-urlencoded";function bf(n){return n!=null&&typeof n.tagName=="string"}function NS(n){return bf(n)&&n.tagName.toLowerCase()==="button"}function RS(n){return bf(n)&&n.tagName.toLowerCase()==="form"}function DS(n){return bf(n)&&n.tagName.toLowerCase()==="input"}function jS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function OS(n,a){return n.button===0&&(!a||a==="_self")&&!jS(n)}var jc=null;function kS(){if(jc===null)try{new FormData(document.createElement("form"),0),jc=!1}catch{jc=!0}return jc}var MS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jh(n){return n!=null&&!MS.has(n)?(Wr(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zc}"`),null):n}function LS(n,a){let s,l,c,f,p;if(RS(n)){let v=n.getAttribute("action");l=v?Ti(v,a):null,s=n.getAttribute("method")||Yc,c=jh(n.getAttribute("enctype"))||Zc,f=new FormData(n)}else if(NS(n)||DS(n)&&(n.type==="submit"||n.type==="image")){let v=n.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=n.getAttribute("formaction")||v.getAttribute("action");if(l=S?Ti(S,a):null,s=n.getAttribute("formmethod")||v.getAttribute("method")||Yc,c=jh(n.getAttribute("formenctype"))||jh(v.getAttribute("enctype"))||Zc,f=new FormData(v,n),!kS()){let{name:x,type:A,value:w}=n;if(A==="image"){let j=x?`${x}.`:"";f.append(`${j}x`,"0"),f.append(`${j}y`,"0")}else x&&f.append(x,w)}}else{if(bf(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Yc,l=null,c=Zc,p=n}return f&&c==="text/plain"&&(p=f,f=void 0),{action:l,method:s.toLowerCase(),encType:c,formData:f,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _p(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function zS(n,a,s){let l=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l.pathname==="/"?l.pathname=`_root.${s}`:a&&Ti(l.pathname,a)==="/"?l.pathname=`${a.replace(/\/$/,"")}/_root.${s}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${s}`,l}async function US(n,a){if(n.id in a)return a[n.id];try{let s=await import(n.module);return a[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function BS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function HS(n,a,s){let l=await Promise.all(n.map(async c=>{let f=a.routes[c.route.id];if(f){let p=await US(f,s);return p.links?p.links():[]}return[]}));return YS(l.flat(1).filter(BS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function ev(n,a,s,l,c,f){let p=(S,x)=>s[x]?S.route.id!==s[x].route.id:!0,v=(S,x)=>{var A;return s[x].pathname!==S.pathname||((A=s[x].route.path)==null?void 0:A.endsWith("*"))&&s[x].params["*"]!==S.params["*"]};return f==="assets"?a.filter((S,x)=>p(S,x)||v(S,x)):f==="data"?a.filter((S,x)=>{var w;let A=l.routes[S.route.id];if(!A||!A.hasLoader)return!1;if(p(S,x)||v(S,x))return!0;if(S.route.shouldRevalidate){let j=S.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((w=s[0])==null?void 0:w.params)||{},nextUrl:new URL(n,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof j=="boolean")return j}return!0}):[]}function qS(n,a,{includeHydrateFallback:s}={}){return VS(n.map(l=>{let c=a.routes[l.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function VS(n){return[...new Set(n)]}function PS(n){let a={},s=Object.keys(n).sort();for(let l of s)a[l]=n[l];return a}function YS(n,a){let s=new Set;return new Set(a),n.reduce((l,c)=>{let f=JSON.stringify(PS(c));return s.has(f)||(s.add(f),l.push({key:f,link:c})),l},[])}function V0(){let n=D.useContext(ql);return _p(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function ZS(){let n=D.useContext(yf);return _p(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Tp=D.createContext(void 0);Tp.displayName="FrameworkContext";function P0(){let n=D.useContext(Tp);return _p(n,"You must render this element inside a <HydratedRouter> element"),n}function XS(n,a){let s=D.useContext(Tp),[l,c]=D.useState(!1),[f,p]=D.useState(!1),{onFocus:v,onBlur:S,onMouseEnter:x,onMouseLeave:A,onTouchStart:w}=a,j=D.useRef(null);D.useEffect(()=>{if(n==="render"&&p(!0),n==="viewport"){let O=L=>{L.forEach(P=>{p(P.isIntersecting)})},U=new IntersectionObserver(O,{threshold:.5});return j.current&&U.observe(j.current),()=>{U.disconnect()}}},[n]),D.useEffect(()=>{if(l){let O=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(O)}}},[l]);let M=()=>{c(!0)},z=()=>{c(!1),p(!1)};return s?n!=="intent"?[f,j,{}]:[f,j,{onFocus:Xo(v,M),onBlur:Xo(S,z),onMouseEnter:Xo(x,M),onMouseLeave:Xo(A,z),onTouchStart:Xo(w,M)}]:[!1,j,{}]}function Xo(n,a){return s=>{n&&n(s),s.defaultPrevented||a(s)}}function FS({page:n,...a}){let{router:s}=V0(),l=D.useMemo(()=>D0(s.routes,n,s.basename),[s.routes,n,s.basename]);return l?D.createElement(IS,{page:n,matches:l,...a}):null}function GS(n){let{manifest:a,routeModules:s}=P0(),[l,c]=D.useState([]);return D.useEffect(()=>{let f=!1;return HS(n,a,s).then(p=>{f||c(p)}),()=>{f=!0}},[n,a,s]),l}function IS({page:n,matches:a,...s}){let l=Ri(),{manifest:c,routeModules:f}=P0(),{basename:p}=V0(),{loaderData:v,matches:S}=ZS(),x=D.useMemo(()=>ev(n,a,S,c,l,"data"),[n,a,S,c,l]),A=D.useMemo(()=>ev(n,a,S,c,l,"assets"),[n,a,S,c,l]),w=D.useMemo(()=>{if(n===l.pathname+l.search+l.hash)return[];let z=new Set,O=!1;if(a.forEach(L=>{var Z;let P=c.routes[L.route.id];!P||!P.hasLoader||(!x.some(ee=>ee.route.id===L.route.id)&&L.route.id in v&&((Z=f[L.route.id])!=null&&Z.shouldRevalidate)||P.hasClientLoader?O=!0:z.add(L.route.id))}),z.size===0)return[];let U=zS(n,p,"data");return O&&z.size>0&&U.searchParams.set("_routes",a.filter(L=>z.has(L.route.id)).map(L=>L.route.id).join(",")),[U.pathname+U.search]},[p,v,l,c,x,a,n,f]),j=D.useMemo(()=>qS(A,c),[A,c]),M=GS(A);return D.createElement(D.Fragment,null,w.map(z=>D.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...s})),j.map(z=>D.createElement("link",{key:z,rel:"modulepreload",href:z,...s})),M.map(({key:z,link:O})=>D.createElement("link",{key:z,nonce:s.nonce,...O})))}function QS(...n){return a=>{n.forEach(s=>{typeof s=="function"?s(a):s!=null&&(s.current=a)})}}var Y0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y0&&(window.__reactRouterVersion="7.8.2")}catch{}function KS({basename:n,children:a,window:s}){let l=D.useRef();l.current==null&&(l.current=Bx({window:s,v5Compat:!0}));let c=l.current,[f,p]=D.useState({action:c.action,location:c.location}),v=D.useCallback(S=>{D.startTransition(()=>p(S))},[p]);return D.useLayoutEffect(()=>c.listen(v),[c,v]),D.createElement(TS,{basename:n,children:a,location:f.location,navigationType:f.action,navigator:c})}var Z0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X0=D.forwardRef(function({onClick:a,discover:s="render",prefetch:l="none",relative:c,reloadDocument:f,replace:p,state:v,target:S,to:x,preventScrollReset:A,viewTransition:w,...j},M){let{basename:z}=D.useContext(ei),O=typeof x=="string"&&Z0.test(x),U,L=!1;if(typeof x=="string"&&O&&(U=x,Y0))try{let ne=new URL(window.location.href),ze=x.startsWith("//")?new URL(ne.protocol+x):new URL(x),ke=Ti(ze.pathname,z);ze.origin===ne.origin&&ke!=null?x=ke+ze.search+ze.hash:L=!0}catch{Wr(!1,`<Link to="${x}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=fS(x,{relative:c}),[Z,ee,I]=XS(l,j),ie=ew(x,{replace:p,state:v,target:S,preventScrollReset:A,relative:c,viewTransition:w});function g(ne){a&&a(ne),ne.defaultPrevented||ie(ne)}let Q=D.createElement("a",{...j,...I,href:U||P,onClick:L||f?a:g,ref:QS(M,ee),target:S,"data-discover":!O&&s==="render"?"true":void 0});return Z&&!O?D.createElement(D.Fragment,null,Q,D.createElement(FS,{page:P})):Q});X0.displayName="Link";var $S=D.forwardRef(function({"aria-current":a="page",caseSensitive:s=!1,className:l="",end:c=!1,style:f,to:p,viewTransition:v,children:S,...x},A){let w=pu(p,{relative:x.relative}),j=Ri(),M=D.useContext(yf),{navigator:z,basename:O}=D.useContext(ei),U=M!=null&&iw(w)&&v===!0,L=z.encodeLocation?z.encodeLocation(w).pathname:w.pathname,P=j.pathname,Z=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;s||(P=P.toLowerCase(),Z=Z?Z.toLowerCase():null,L=L.toLowerCase()),Z&&O&&(Z=Ti(Z,O)||Z);const ee=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let I=P===L||!c&&P.startsWith(L)&&P.charAt(ee)==="/",ie=Z!=null&&(Z===L||!c&&Z.startsWith(L)&&Z.charAt(L.length)==="/"),g={isActive:I,isPending:ie,isTransitioning:U},Q=I?a:void 0,ne;typeof l=="function"?ne=l(g):ne=[l,I?"active":null,ie?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let ze=typeof f=="function"?f(g):f;return D.createElement(X0,{...x,"aria-current":Q,className:ne,ref:A,style:ze,to:p,viewTransition:v},typeof S=="function"?S(g):S)});$S.displayName="NavLink";var WS=D.forwardRef(({discover:n="render",fetcherKey:a,navigate:s,reloadDocument:l,replace:c,state:f,method:p=Yc,action:v,onSubmit:S,relative:x,preventScrollReset:A,viewTransition:w,...j},M)=>{let z=aw(),O=rw(v,{relative:x}),U=p.toLowerCase()==="get"?"get":"post",L=typeof v=="string"&&Z0.test(v),P=Z=>{if(S&&S(Z),Z.defaultPrevented)return;Z.preventDefault();let ee=Z.nativeEvent.submitter,I=(ee==null?void 0:ee.getAttribute("formmethod"))||p;z(ee||Z.currentTarget,{fetcherKey:a,method:I,navigate:s,replace:c,state:f,relative:x,preventScrollReset:A,viewTransition:w})};return D.createElement("form",{ref:M,method:U,action:O,onSubmit:l?S:P,...j,"data-discover":!L&&n==="render"?"true":void 0})});WS.displayName="Form";function JS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F0(n){let a=D.useContext(ql);return Dn(a,JS(n)),a}function ew(n,{target:a,replace:s,state:l,preventScrollReset:c,relative:f,viewTransition:p}={}){let v=vf(),S=Ri(),x=pu(n,{relative:f});return D.useCallback(A=>{if(OS(A,a)){A.preventDefault();let w=s!==void 0?s:au(S)===au(x);v(n,{replace:w,state:l,preventScrollReset:c,relative:f,viewTransition:p})}},[S,v,x,s,l,a,n,c,f,p])}var tw=0,nw=()=>`__${String(++tw)}__`;function aw(){let{router:n}=F0("useSubmit"),{basename:a}=D.useContext(ei),s=wS();return D.useCallback(async(l,c={})=>{let{action:f,method:p,encType:v,formData:S,body:x}=LS(l,a);if(c.navigate===!1){let A=c.fetcherKey||nw();await n.fetch(A,s,c.action||f,{preventScrollReset:c.preventScrollReset,formData:S,body:x,formMethod:c.method||p,formEncType:c.encType||v,flushSync:c.flushSync})}else await n.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:S,body:x,formMethod:c.method||p,formEncType:c.encType||v,replace:c.replace,state:c.state,fromRouteId:s,flushSync:c.flushSync,viewTransition:c.viewTransition})},[n,a,s])}function rw(n,{relative:a}={}){let{basename:s}=D.useContext(ei),l=D.useContext(Ni);Dn(l,"useFormAction must be used inside a RouteContext");let[c]=l.matches.slice(-1),f={...pu(n||".",{relative:a})},p=Ri();if(n==null){f.search=p.search;let v=new URLSearchParams(f.search),S=v.getAll("index");if(S.some(A=>A==="")){v.delete("index"),S.filter(w=>w).forEach(w=>v.append("index",w));let A=v.toString();f.search=A?`?${A}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:_i([s,f.pathname])),au(f)}function iw(n,{relative:a}={}){let s=D.useContext(z0);Dn(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=F0("useViewTransitionState"),c=pu(n,{relative:a});if(!s.isTransitioning)return!1;let f=Ti(s.currentLocation.pathname,l)||s.currentLocation.pathname,p=Ti(s.nextLocation.pathname,l)||s.nextLocation.pathname;return $c(c.pathname,p)!=null||$c(c.pathname,f)!=null}var jl=gf();const sw=mf(jl),lw="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20200'%3e%3ccircle%20fill='rgb(0%20130%20187)'%20stroke='rgb(0%20130%20187)'%20stroke-width='5'%20r='15'%20cx='40'%20cy='100'%3e%3canimate%20attributeName='opacity'%20calcMode='spline'%20dur='2.4'%20values='1;0;1;'%20keySplines='.5%200%20.5%201;.5%200%20.5%201'%20repeatCount='indefinite'%20begin='-.4'%3e%3c/animate%3e%3c/circle%3e%3ccircle%20fill='rgb(0%20130%20187)'%20stroke='rgb(0%20130%20187)'%20stroke-width='5'%20r='15'%20cx='100'%20cy='100'%3e%3canimate%20attributeName='opacity'%20calcMode='spline'%20dur='2.4'%20values='1;0;1;'%20keySplines='.5%200%20.5%201;.5%200%20.5%201'%20repeatCount='indefinite'%20begin='-.2'%3e%3c/animate%3e%3c/circle%3e%3ccircle%20fill='rgb(0%20130%20187)'%20stroke='rgb(0%20130%20187)'%20stroke-width='5'%20r='15'%20cx='160'%20cy='100'%3e%3canimate%20attributeName='opacity'%20calcMode='spline'%20dur='2.4'%20values='1;0;1;'%20keySplines='.5%200%20.5%201;.5%200%20.5%201'%20repeatCount='indefinite'%20begin='0'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e";function G0(n,a){return function(){return n.apply(a,arguments)}}const{toString:ow}=Object.prototype,{getPrototypeOf:Cp}=Object,{iterator:xf,toStringTag:I0}=Symbol,Sf=(n=>a=>{const s=ow.call(a);return n[s]||(n[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Dr=n=>(n=n.toLowerCase(),a=>Sf(a)===n),wf=n=>a=>typeof a===n,{isArray:Vl}=Array,ru=wf("undefined");function mu(n){return n!==null&&!ru(n)&&n.constructor!==null&&!ru(n.constructor)&&za(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Q0=Dr("ArrayBuffer");function uw(n){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(n):a=n&&n.buffer&&Q0(n.buffer),a}const cw=wf("string"),za=wf("function"),K0=wf("number"),gu=n=>n!==null&&typeof n=="object",fw=n=>n===!0||n===!1,Xc=n=>{if(Sf(n)!=="object")return!1;const a=Cp(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(I0 in n)&&!(xf in n)},dw=n=>{if(!gu(n)||mu(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},hw=Dr("Date"),pw=Dr("File"),mw=Dr("Blob"),gw=Dr("FileList"),yw=n=>gu(n)&&za(n.pipe),vw=n=>{let a;return n&&(typeof FormData=="function"&&n instanceof FormData||za(n.append)&&((a=Sf(n))==="formdata"||a==="object"&&za(n.toString)&&n.toString()==="[object FormData]"))},bw=Dr("URLSearchParams"),[xw,Sw,ww,Aw]=["ReadableStream","Request","Response","Headers"].map(Dr),Ew=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yu(n,a,{allOwnKeys:s=!1}={}){if(n===null||typeof n>"u")return;let l,c;if(typeof n!="object"&&(n=[n]),Vl(n))for(l=0,c=n.length;l<c;l++)a.call(null,n[l],l,n);else{if(mu(n))return;const f=s?Object.getOwnPropertyNames(n):Object.keys(n),p=f.length;let v;for(l=0;l<p;l++)v=f[l],a.call(null,n[v],v,n)}}function $0(n,a){if(mu(n))return null;a=a.toLowerCase();const s=Object.keys(n);let l=s.length,c;for(;l-- >0;)if(c=s[l],a===c.toLowerCase())return c;return null}const Hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,W0=n=>!ru(n)&&n!==Hs;function np(){const{caseless:n}=W0(this)&&this||{},a={},s=(l,c)=>{const f=n&&$0(a,c)||c;Xc(a[f])&&Xc(l)?a[f]=np(a[f],l):Xc(l)?a[f]=np({},l):Vl(l)?a[f]=l.slice():a[f]=l};for(let l=0,c=arguments.length;l<c;l++)arguments[l]&&yu(arguments[l],s);return a}const _w=(n,a,s,{allOwnKeys:l}={})=>(yu(a,(c,f)=>{s&&za(c)?n[f]=G0(c,s):n[f]=c},{allOwnKeys:l}),n),Tw=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Cw=(n,a,s,l)=>{n.prototype=Object.create(a.prototype,l),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:a.prototype}),s&&Object.assign(n.prototype,s)},Nw=(n,a,s,l)=>{let c,f,p;const v={};if(a=a||{},n==null)return a;do{for(c=Object.getOwnPropertyNames(n),f=c.length;f-- >0;)p=c[f],(!l||l(p,n,a))&&!v[p]&&(a[p]=n[p],v[p]=!0);n=s!==!1&&Cp(n)}while(n&&(!s||s(n,a))&&n!==Object.prototype);return a},Rw=(n,a,s)=>{n=String(n),(s===void 0||s>n.length)&&(s=n.length),s-=a.length;const l=n.indexOf(a,s);return l!==-1&&l===s},Dw=n=>{if(!n)return null;if(Vl(n))return n;let a=n.length;if(!K0(a))return null;const s=new Array(a);for(;a-- >0;)s[a]=n[a];return s},jw=(n=>a=>n&&a instanceof n)(typeof Uint8Array<"u"&&Cp(Uint8Array)),Ow=(n,a)=>{const l=(n&&n[xf]).call(n);let c;for(;(c=l.next())&&!c.done;){const f=c.value;a.call(n,f[0],f[1])}},kw=(n,a)=>{let s;const l=[];for(;(s=n.exec(a))!==null;)l.push(s);return l},Mw=Dr("HTMLFormElement"),Lw=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,l,c){return l.toUpperCase()+c}),tv=(({hasOwnProperty:n})=>(a,s)=>n.call(a,s))(Object.prototype),zw=Dr("RegExp"),J0=(n,a)=>{const s=Object.getOwnPropertyDescriptors(n),l={};yu(s,(c,f)=>{let p;(p=a(c,f,n))!==!1&&(l[f]=p||c)}),Object.defineProperties(n,l)},Uw=n=>{J0(n,(a,s)=>{if(za(n)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const l=n[s];if(za(l)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},Bw=(n,a)=>{const s={},l=c=>{c.forEach(f=>{s[f]=!0})};return Vl(n)?l(n):l(String(n).split(a)),s},Hw=()=>{},qw=(n,a)=>n!=null&&Number.isFinite(n=+n)?n:a;function Vw(n){return!!(n&&za(n.append)&&n[I0]==="FormData"&&n[xf])}const Pw=n=>{const a=new Array(10),s=(l,c)=>{if(gu(l)){if(a.indexOf(l)>=0)return;if(mu(l))return l;if(!("toJSON"in l)){a[c]=l;const f=Vl(l)?[]:{};return yu(l,(p,v)=>{const S=s(p,c+1);!ru(S)&&(f[v]=S)}),a[c]=void 0,f}}return l};return s(n,0)},Yw=Dr("AsyncFunction"),Zw=n=>n&&(gu(n)||za(n))&&za(n.then)&&za(n.catch),eb=((n,a)=>n?setImmediate:a?((s,l)=>(Hs.addEventListener("message",({source:c,data:f})=>{c===Hs&&f===s&&l.length&&l.shift()()},!1),c=>{l.push(c),Hs.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",za(Hs.postMessage)),Xw=typeof queueMicrotask<"u"?queueMicrotask.bind(Hs):typeof process<"u"&&process.nextTick||eb,Fw=n=>n!=null&&za(n[xf]),ge={isArray:Vl,isArrayBuffer:Q0,isBuffer:mu,isFormData:vw,isArrayBufferView:uw,isString:cw,isNumber:K0,isBoolean:fw,isObject:gu,isPlainObject:Xc,isEmptyObject:dw,isReadableStream:xw,isRequest:Sw,isResponse:ww,isHeaders:Aw,isUndefined:ru,isDate:hw,isFile:pw,isBlob:mw,isRegExp:zw,isFunction:za,isStream:yw,isURLSearchParams:bw,isTypedArray:jw,isFileList:gw,forEach:yu,merge:np,extend:_w,trim:Ew,stripBOM:Tw,inherits:Cw,toFlatObject:Nw,kindOf:Sf,kindOfTest:Dr,endsWith:Rw,toArray:Dw,forEachEntry:Ow,matchAll:kw,isHTMLForm:Mw,hasOwnProperty:tv,hasOwnProp:tv,reduceDescriptors:J0,freezeMethods:Uw,toObjectSet:Bw,toCamelCase:Lw,noop:Hw,toFiniteNumber:qw,findKey:$0,global:Hs,isContextDefined:W0,isSpecCompliantForm:Vw,toJSONObject:Pw,isAsyncFn:Yw,isThenable:Zw,setImmediate:eb,asap:Xw,isIterable:Fw};function xt(n,a,s,l,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",a&&(this.code=a),s&&(this.config=s),l&&(this.request=l),c&&(this.response=c,this.status=c.status?c.status:null)}ge.inherits(xt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ge.toJSONObject(this.config),code:this.code,status:this.status}}});const tb=xt.prototype,nb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{nb[n]={value:n}});Object.defineProperties(xt,nb);Object.defineProperty(tb,"isAxiosError",{value:!0});xt.from=(n,a,s,l,c,f)=>{const p=Object.create(tb);return ge.toFlatObject(n,p,function(S){return S!==Error.prototype},v=>v!=="isAxiosError"),xt.call(p,n.message,a,s,l,c),p.cause=n,p.name=n.name,f&&Object.assign(p,f),p};const Gw=null;function ap(n){return ge.isPlainObject(n)||ge.isArray(n)}function ab(n){return ge.endsWith(n,"[]")?n.slice(0,-2):n}function nv(n,a,s){return n?n.concat(a).map(function(c,f){return c=ab(c),!s&&f?"["+c+"]":c}).join(s?".":""):a}function Iw(n){return ge.isArray(n)&&!n.some(ap)}const Qw=ge.toFlatObject(ge,{},null,function(a){return/^is[A-Z]/.test(a)});function Af(n,a,s){if(!ge.isObject(n))throw new TypeError("target must be an object");a=a||new FormData,s=ge.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,U){return!ge.isUndefined(U[O])});const l=s.metaTokens,c=s.visitor||A,f=s.dots,p=s.indexes,S=(s.Blob||typeof Blob<"u"&&Blob)&&ge.isSpecCompliantForm(a);if(!ge.isFunction(c))throw new TypeError("visitor must be a function");function x(z){if(z===null)return"";if(ge.isDate(z))return z.toISOString();if(ge.isBoolean(z))return z.toString();if(!S&&ge.isBlob(z))throw new xt("Blob is not supported. Use a Buffer instead.");return ge.isArrayBuffer(z)||ge.isTypedArray(z)?S&&typeof Blob=="function"?new Blob([z]):Buffer.from(z):z}function A(z,O,U){let L=z;if(z&&!U&&typeof z=="object"){if(ge.endsWith(O,"{}"))O=l?O:O.slice(0,-2),z=JSON.stringify(z);else if(ge.isArray(z)&&Iw(z)||(ge.isFileList(z)||ge.endsWith(O,"[]"))&&(L=ge.toArray(z)))return O=ab(O),L.forEach(function(Z,ee){!(ge.isUndefined(Z)||Z===null)&&a.append(p===!0?nv([O],ee,f):p===null?O:O+"[]",x(Z))}),!1}return ap(z)?!0:(a.append(nv(U,O,f),x(z)),!1)}const w=[],j=Object.assign(Qw,{defaultVisitor:A,convertValue:x,isVisitable:ap});function M(z,O){if(!ge.isUndefined(z)){if(w.indexOf(z)!==-1)throw Error("Circular reference detected in "+O.join("."));w.push(z),ge.forEach(z,function(L,P){(!(ge.isUndefined(L)||L===null)&&c.call(a,L,ge.isString(P)?P.trim():P,O,j))===!0&&M(L,O?O.concat(P):[P])}),w.pop()}}if(!ge.isObject(n))throw new TypeError("data must be an object");return M(n),a}function av(n){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(l){return a[l]})}function Np(n,a){this._pairs=[],n&&Af(n,this,a)}const rb=Np.prototype;rb.append=function(a,s){this._pairs.push([a,s])};rb.toString=function(a){const s=a?function(l){return a.call(this,l,av)}:av;return this._pairs.map(function(c){return s(c[0])+"="+s(c[1])},"").join("&")};function Kw(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ib(n,a,s){if(!a)return n;const l=s&&s.encode||Kw;ge.isFunction(s)&&(s={serialize:s});const c=s&&s.serialize;let f;if(c?f=c(a,s):f=ge.isURLSearchParams(a)?a.toString():new Np(a,s).toString(l),f){const p=n.indexOf("#");p!==-1&&(n=n.slice(0,p)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class rv{constructor(){this.handlers=[]}use(a,s,l){return this.handlers.push({fulfilled:a,rejected:s,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){ge.forEach(this.handlers,function(l){l!==null&&a(l)})}}const sb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$w=typeof URLSearchParams<"u"?URLSearchParams:Np,Ww=typeof FormData<"u"?FormData:null,Jw=typeof Blob<"u"?Blob:null,e2={isBrowser:!0,classes:{URLSearchParams:$w,FormData:Ww,Blob:Jw},protocols:["http","https","file","blob","url","data"]},Rp=typeof window<"u"&&typeof document<"u",rp=typeof navigator=="object"&&navigator||void 0,t2=Rp&&(!rp||["ReactNative","NativeScript","NS"].indexOf(rp.product)<0),n2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",a2=Rp&&window.location.href||"http://localhost",r2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rp,hasStandardBrowserEnv:t2,hasStandardBrowserWebWorkerEnv:n2,navigator:rp,origin:a2},Symbol.toStringTag,{value:"Module"})),va={...r2,...e2};function i2(n,a){return Af(n,new va.classes.URLSearchParams,{visitor:function(s,l,c,f){return va.isNode&&ge.isBuffer(s)?(this.append(l,s.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...a})}function s2(n){return ge.matchAll(/\w+|\[(\w*)]/g,n).map(a=>a[0]==="[]"?"":a[1]||a[0])}function l2(n){const a={},s=Object.keys(n);let l;const c=s.length;let f;for(l=0;l<c;l++)f=s[l],a[f]=n[f];return a}function lb(n){function a(s,l,c,f){let p=s[f++];if(p==="__proto__")return!0;const v=Number.isFinite(+p),S=f>=s.length;return p=!p&&ge.isArray(c)?c.length:p,S?(ge.hasOwnProp(c,p)?c[p]=[c[p],l]:c[p]=l,!v):((!c[p]||!ge.isObject(c[p]))&&(c[p]=[]),a(s,l,c[p],f)&&ge.isArray(c[p])&&(c[p]=l2(c[p])),!v)}if(ge.isFormData(n)&&ge.isFunction(n.entries)){const s={};return ge.forEachEntry(n,(l,c)=>{a(s2(l),c,s,0)}),s}return null}function o2(n,a,s){if(ge.isString(n))try{return(a||JSON.parse)(n),ge.trim(n)}catch(l){if(l.name!=="SyntaxError")throw l}return(s||JSON.stringify)(n)}const vu={transitional:sb,adapter:["xhr","http","fetch"],transformRequest:[function(a,s){const l=s.getContentType()||"",c=l.indexOf("application/json")>-1,f=ge.isObject(a);if(f&&ge.isHTMLForm(a)&&(a=new FormData(a)),ge.isFormData(a))return c?JSON.stringify(lb(a)):a;if(ge.isArrayBuffer(a)||ge.isBuffer(a)||ge.isStream(a)||ge.isFile(a)||ge.isBlob(a)||ge.isReadableStream(a))return a;if(ge.isArrayBufferView(a))return a.buffer;if(ge.isURLSearchParams(a))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let v;if(f){if(l.indexOf("application/x-www-form-urlencoded")>-1)return i2(a,this.formSerializer).toString();if((v=ge.isFileList(a))||l.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return Af(v?{"files[]":a}:a,S&&new S,this.formSerializer)}}return f||c?(s.setContentType("application/json",!1),o2(a)):a}],transformResponse:[function(a){const s=this.transitional||vu.transitional,l=s&&s.forcedJSONParsing,c=this.responseType==="json";if(ge.isResponse(a)||ge.isReadableStream(a))return a;if(a&&ge.isString(a)&&(l&&!this.responseType||c)){const p=!(s&&s.silentJSONParsing)&&c;try{return JSON.parse(a)}catch(v){if(p)throw v.name==="SyntaxError"?xt.from(v,xt.ERR_BAD_RESPONSE,this,null,this.response):v}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:va.classes.FormData,Blob:va.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ge.forEach(["delete","get","head","post","put","patch"],n=>{vu.headers[n]={}});const u2=ge.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),c2=n=>{const a={};let s,l,c;return n&&n.split(`
`).forEach(function(p){c=p.indexOf(":"),s=p.substring(0,c).trim().toLowerCase(),l=p.substring(c+1).trim(),!(!s||a[s]&&u2[s])&&(s==="set-cookie"?a[s]?a[s].push(l):a[s]=[l]:a[s]=a[s]?a[s]+", "+l:l)}),a},iv=Symbol("internals");function Fo(n){return n&&String(n).trim().toLowerCase()}function Fc(n){return n===!1||n==null?n:ge.isArray(n)?n.map(Fc):String(n)}function f2(n){const a=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=s.exec(n);)a[l[1]]=l[2];return a}const d2=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Oh(n,a,s,l,c){if(ge.isFunction(l))return l.call(this,a,s);if(c&&(a=s),!!ge.isString(a)){if(ge.isString(l))return a.indexOf(l)!==-1;if(ge.isRegExp(l))return l.test(a)}}function h2(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,s,l)=>s.toUpperCase()+l)}function p2(n,a){const s=ge.toCamelCase(" "+a);["get","set","has"].forEach(l=>{Object.defineProperty(n,l+s,{value:function(c,f,p){return this[l].call(this,a,c,f,p)},configurable:!0})})}let Ua=class{constructor(a){a&&this.set(a)}set(a,s,l){const c=this;function f(v,S,x){const A=Fo(S);if(!A)throw new Error("header name must be a non-empty string");const w=ge.findKey(c,A);(!w||c[w]===void 0||x===!0||x===void 0&&c[w]!==!1)&&(c[w||S]=Fc(v))}const p=(v,S)=>ge.forEach(v,(x,A)=>f(x,A,S));if(ge.isPlainObject(a)||a instanceof this.constructor)p(a,s);else if(ge.isString(a)&&(a=a.trim())&&!d2(a))p(c2(a),s);else if(ge.isObject(a)&&ge.isIterable(a)){let v={},S,x;for(const A of a){if(!ge.isArray(A))throw TypeError("Object iterator must return a key-value pair");v[x=A[0]]=(S=v[x])?ge.isArray(S)?[...S,A[1]]:[S,A[1]]:A[1]}p(v,s)}else a!=null&&f(s,a,l);return this}get(a,s){if(a=Fo(a),a){const l=ge.findKey(this,a);if(l){const c=this[l];if(!s)return c;if(s===!0)return f2(c);if(ge.isFunction(s))return s.call(this,c,l);if(ge.isRegExp(s))return s.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,s){if(a=Fo(a),a){const l=ge.findKey(this,a);return!!(l&&this[l]!==void 0&&(!s||Oh(this,this[l],l,s)))}return!1}delete(a,s){const l=this;let c=!1;function f(p){if(p=Fo(p),p){const v=ge.findKey(l,p);v&&(!s||Oh(l,l[v],v,s))&&(delete l[v],c=!0)}}return ge.isArray(a)?a.forEach(f):f(a),c}clear(a){const s=Object.keys(this);let l=s.length,c=!1;for(;l--;){const f=s[l];(!a||Oh(this,this[f],f,a,!0))&&(delete this[f],c=!0)}return c}normalize(a){const s=this,l={};return ge.forEach(this,(c,f)=>{const p=ge.findKey(l,f);if(p){s[p]=Fc(c),delete s[f];return}const v=a?h2(f):String(f).trim();v!==f&&delete s[f],s[v]=Fc(c),l[v]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const s=Object.create(null);return ge.forEach(this,(l,c)=>{l!=null&&l!==!1&&(s[c]=a&&ge.isArray(l)?l.join(", "):l)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,s])=>a+": "+s).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const l=new this(a);return s.forEach(c=>l.set(c)),l}static accessor(a){const l=(this[iv]=this[iv]={accessors:{}}).accessors,c=this.prototype;function f(p){const v=Fo(p);l[v]||(p2(c,p),l[v]=!0)}return ge.isArray(a)?a.forEach(f):f(a),this}};Ua.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ge.reduceDescriptors(Ua.prototype,({value:n},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>n,set(l){this[s]=l}}});ge.freezeMethods(Ua);function kh(n,a){const s=this||vu,l=a||s,c=Ua.from(l.headers);let f=l.data;return ge.forEach(n,function(v){f=v.call(s,f,c.normalize(),a?a.status:void 0)}),c.normalize(),f}function ob(n){return!!(n&&n.__CANCEL__)}function Pl(n,a,s){xt.call(this,n??"canceled",xt.ERR_CANCELED,a,s),this.name="CanceledError"}ge.inherits(Pl,xt,{__CANCEL__:!0});function ub(n,a,s){const l=s.config.validateStatus;!s.status||!l||l(s.status)?n(s):a(new xt("Request failed with status code "+s.status,[xt.ERR_BAD_REQUEST,xt.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function m2(n){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return a&&a[1]||""}function g2(n,a){n=n||10;const s=new Array(n),l=new Array(n);let c=0,f=0,p;return a=a!==void 0?a:1e3,function(S){const x=Date.now(),A=l[f];p||(p=x),s[c]=S,l[c]=x;let w=f,j=0;for(;w!==c;)j+=s[w++],w=w%n;if(c=(c+1)%n,c===f&&(f=(f+1)%n),x-p<a)return;const M=A&&x-A;return M?Math.round(j*1e3/M):void 0}}function y2(n,a){let s=0,l=1e3/a,c,f;const p=(x,A=Date.now())=>{s=A,c=null,f&&(clearTimeout(f),f=null),n(...x)};return[(...x)=>{const A=Date.now(),w=A-s;w>=l?p(x,A):(c=x,f||(f=setTimeout(()=>{f=null,p(c)},l-w)))},()=>c&&p(c)]}const Wc=(n,a,s=3)=>{let l=0;const c=g2(50,250);return y2(f=>{const p=f.loaded,v=f.lengthComputable?f.total:void 0,S=p-l,x=c(S),A=p<=v;l=p;const w={loaded:p,total:v,progress:v?p/v:void 0,bytes:S,rate:x||void 0,estimated:x&&v&&A?(v-p)/x:void 0,event:f,lengthComputable:v!=null,[a?"download":"upload"]:!0};n(w)},s)},sv=(n,a)=>{const s=n!=null;return[l=>a[0]({lengthComputable:s,total:n,loaded:l}),a[1]]},lv=n=>(...a)=>ge.asap(()=>n(...a)),v2=va.hasStandardBrowserEnv?((n,a)=>s=>(s=new URL(s,va.origin),n.protocol===s.protocol&&n.host===s.host&&(a||n.port===s.port)))(new URL(va.origin),va.navigator&&/(msie|trident)/i.test(va.navigator.userAgent)):()=>!0,b2=va.hasStandardBrowserEnv?{write(n,a,s,l,c,f){const p=[n+"="+encodeURIComponent(a)];ge.isNumber(s)&&p.push("expires="+new Date(s).toGMTString()),ge.isString(l)&&p.push("path="+l),ge.isString(c)&&p.push("domain="+c),f===!0&&p.push("secure"),document.cookie=p.join("; ")},read(n){const a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function x2(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function S2(n,a){return a?n.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):n}function cb(n,a,s){let l=!x2(a);return n&&(l||s==!1)?S2(n,a):a}const ov=n=>n instanceof Ua?{...n}:n;function Ps(n,a){a=a||{};const s={};function l(x,A,w,j){return ge.isPlainObject(x)&&ge.isPlainObject(A)?ge.merge.call({caseless:j},x,A):ge.isPlainObject(A)?ge.merge({},A):ge.isArray(A)?A.slice():A}function c(x,A,w,j){if(ge.isUndefined(A)){if(!ge.isUndefined(x))return l(void 0,x,w,j)}else return l(x,A,w,j)}function f(x,A){if(!ge.isUndefined(A))return l(void 0,A)}function p(x,A){if(ge.isUndefined(A)){if(!ge.isUndefined(x))return l(void 0,x)}else return l(void 0,A)}function v(x,A,w){if(w in a)return l(x,A);if(w in n)return l(void 0,x)}const S={url:f,method:f,data:f,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:v,headers:(x,A,w)=>c(ov(x),ov(A),w,!0)};return ge.forEach(Object.keys({...n,...a}),function(A){const w=S[A]||c,j=w(n[A],a[A],A);ge.isUndefined(j)&&w!==v||(s[A]=j)}),s}const fb=n=>{const a=Ps({},n);let{data:s,withXSRFToken:l,xsrfHeaderName:c,xsrfCookieName:f,headers:p,auth:v}=a;a.headers=p=Ua.from(p),a.url=ib(cb(a.baseURL,a.url,a.allowAbsoluteUrls),n.params,n.paramsSerializer),v&&p.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let S;if(ge.isFormData(s)){if(va.hasStandardBrowserEnv||va.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((S=p.getContentType())!==!1){const[x,...A]=S?S.split(";").map(w=>w.trim()).filter(Boolean):[];p.setContentType([x||"multipart/form-data",...A].join("; "))}}if(va.hasStandardBrowserEnv&&(l&&ge.isFunction(l)&&(l=l(a)),l||l!==!1&&v2(a.url))){const x=c&&f&&b2.read(f);x&&p.set(c,x)}return a},w2=typeof XMLHttpRequest<"u",A2=w2&&function(n){return new Promise(function(s,l){const c=fb(n);let f=c.data;const p=Ua.from(c.headers).normalize();let{responseType:v,onUploadProgress:S,onDownloadProgress:x}=c,A,w,j,M,z;function O(){M&&M(),z&&z(),c.cancelToken&&c.cancelToken.unsubscribe(A),c.signal&&c.signal.removeEventListener("abort",A)}let U=new XMLHttpRequest;U.open(c.method.toUpperCase(),c.url,!0),U.timeout=c.timeout;function L(){if(!U)return;const Z=Ua.from("getAllResponseHeaders"in U&&U.getAllResponseHeaders()),I={data:!v||v==="text"||v==="json"?U.responseText:U.response,status:U.status,statusText:U.statusText,headers:Z,config:n,request:U};ub(function(g){s(g),O()},function(g){l(g),O()},I),U=null}"onloadend"in U?U.onloadend=L:U.onreadystatechange=function(){!U||U.readyState!==4||U.status===0&&!(U.responseURL&&U.responseURL.indexOf("file:")===0)||setTimeout(L)},U.onabort=function(){U&&(l(new xt("Request aborted",xt.ECONNABORTED,n,U)),U=null)},U.onerror=function(){l(new xt("Network Error",xt.ERR_NETWORK,n,U)),U=null},U.ontimeout=function(){let ee=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const I=c.transitional||sb;c.timeoutErrorMessage&&(ee=c.timeoutErrorMessage),l(new xt(ee,I.clarifyTimeoutError?xt.ETIMEDOUT:xt.ECONNABORTED,n,U)),U=null},f===void 0&&p.setContentType(null),"setRequestHeader"in U&&ge.forEach(p.toJSON(),function(ee,I){U.setRequestHeader(I,ee)}),ge.isUndefined(c.withCredentials)||(U.withCredentials=!!c.withCredentials),v&&v!=="json"&&(U.responseType=c.responseType),x&&([j,z]=Wc(x,!0),U.addEventListener("progress",j)),S&&U.upload&&([w,M]=Wc(S),U.upload.addEventListener("progress",w),U.upload.addEventListener("loadend",M)),(c.cancelToken||c.signal)&&(A=Z=>{U&&(l(!Z||Z.type?new Pl(null,n,U):Z),U.abort(),U=null)},c.cancelToken&&c.cancelToken.subscribe(A),c.signal&&(c.signal.aborted?A():c.signal.addEventListener("abort",A)));const P=m2(c.url);if(P&&va.protocols.indexOf(P)===-1){l(new xt("Unsupported protocol "+P+":",xt.ERR_BAD_REQUEST,n));return}U.send(f||null)})},E2=(n,a)=>{const{length:s}=n=n?n.filter(Boolean):[];if(a||s){let l=new AbortController,c;const f=function(x){if(!c){c=!0,v();const A=x instanceof Error?x:this.reason;l.abort(A instanceof xt?A:new Pl(A instanceof Error?A.message:A))}};let p=a&&setTimeout(()=>{p=null,f(new xt(`timeout ${a} of ms exceeded`,xt.ETIMEDOUT))},a);const v=()=>{n&&(p&&clearTimeout(p),p=null,n.forEach(x=>{x.unsubscribe?x.unsubscribe(f):x.removeEventListener("abort",f)}),n=null)};n.forEach(x=>x.addEventListener("abort",f));const{signal:S}=l;return S.unsubscribe=()=>ge.asap(v),S}},_2=function*(n,a){let s=n.byteLength;if(s<a){yield n;return}let l=0,c;for(;l<s;)c=l+a,yield n.slice(l,c),l=c},T2=async function*(n,a){for await(const s of C2(n))yield*_2(s,a)},C2=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const a=n.getReader();try{for(;;){const{done:s,value:l}=await a.read();if(s)break;yield l}}finally{await a.cancel()}},uv=(n,a,s,l)=>{const c=T2(n,a);let f=0,p,v=S=>{p||(p=!0,l&&l(S))};return new ReadableStream({async pull(S){try{const{done:x,value:A}=await c.next();if(x){v(),S.close();return}let w=A.byteLength;if(s){let j=f+=w;s(j)}S.enqueue(new Uint8Array(A))}catch(x){throw v(x),x}},cancel(S){return v(S),c.return()}},{highWaterMark:2})},Ef=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",db=Ef&&typeof ReadableStream=="function",N2=Ef&&(typeof TextEncoder=="function"?(n=>a=>n.encode(a))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),hb=(n,...a)=>{try{return!!n(...a)}catch{return!1}},R2=db&&hb(()=>{let n=!1;const a=new Request(va.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!a}),cv=64*1024,ip=db&&hb(()=>ge.isReadableStream(new Response("").body)),Jc={stream:ip&&(n=>n.body)};Ef&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Jc[a]&&(Jc[a]=ge.isFunction(n[a])?s=>s[a]():(s,l)=>{throw new xt(`Response type '${a}' is not supported`,xt.ERR_NOT_SUPPORT,l)})})})(new Response);const D2=async n=>{if(n==null)return 0;if(ge.isBlob(n))return n.size;if(ge.isSpecCompliantForm(n))return(await new Request(va.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ge.isArrayBufferView(n)||ge.isArrayBuffer(n))return n.byteLength;if(ge.isURLSearchParams(n)&&(n=n+""),ge.isString(n))return(await N2(n)).byteLength},j2=async(n,a)=>{const s=ge.toFiniteNumber(n.getContentLength());return s??D2(a)},O2=Ef&&(async n=>{let{url:a,method:s,data:l,signal:c,cancelToken:f,timeout:p,onDownloadProgress:v,onUploadProgress:S,responseType:x,headers:A,withCredentials:w="same-origin",fetchOptions:j}=fb(n);x=x?(x+"").toLowerCase():"text";let M=E2([c,f&&f.toAbortSignal()],p),z;const O=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let U;try{if(S&&R2&&s!=="get"&&s!=="head"&&(U=await j2(A,l))!==0){let I=new Request(a,{method:"POST",body:l,duplex:"half"}),ie;if(ge.isFormData(l)&&(ie=I.headers.get("content-type"))&&A.setContentType(ie),I.body){const[g,Q]=sv(U,Wc(lv(S)));l=uv(I.body,cv,g,Q)}}ge.isString(w)||(w=w?"include":"omit");const L="credentials"in Request.prototype;z=new Request(a,{...j,signal:M,method:s.toUpperCase(),headers:A.normalize().toJSON(),body:l,duplex:"half",credentials:L?w:void 0});let P=await fetch(z,j);const Z=ip&&(x==="stream"||x==="response");if(ip&&(v||Z&&O)){const I={};["status","statusText","headers"].forEach(ne=>{I[ne]=P[ne]});const ie=ge.toFiniteNumber(P.headers.get("content-length")),[g,Q]=v&&sv(ie,Wc(lv(v),!0))||[];P=new Response(uv(P.body,cv,g,()=>{Q&&Q(),O&&O()}),I)}x=x||"text";let ee=await Jc[ge.findKey(Jc,x)||"text"](P,n);return!Z&&O&&O(),await new Promise((I,ie)=>{ub(I,ie,{data:ee,headers:Ua.from(P.headers),status:P.status,statusText:P.statusText,config:n,request:z})})}catch(L){throw O&&O(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new xt("Network Error",xt.ERR_NETWORK,n,z),{cause:L.cause||L}):xt.from(L,L&&L.code,n,z)}}),sp={http:Gw,xhr:A2,fetch:O2};ge.forEach(sp,(n,a)=>{if(n){try{Object.defineProperty(n,"name",{value:a})}catch{}Object.defineProperty(n,"adapterName",{value:a})}});const fv=n=>`- ${n}`,k2=n=>ge.isFunction(n)||n===null||n===!1,pb={getAdapter:n=>{n=ge.isArray(n)?n:[n];const{length:a}=n;let s,l;const c={};for(let f=0;f<a;f++){s=n[f];let p;if(l=s,!k2(s)&&(l=sp[(p=String(s)).toLowerCase()],l===void 0))throw new xt(`Unknown adapter '${p}'`);if(l)break;c[p||"#"+f]=l}if(!l){const f=Object.entries(c).map(([v,S])=>`adapter ${v} `+(S===!1?"is not supported by the environment":"is not available in the build"));let p=a?f.length>1?`since :
`+f.map(fv).join(`
`):" "+fv(f[0]):"as no adapter specified";throw new xt("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return l},adapters:sp};function Mh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Pl(null,n)}function dv(n){return Mh(n),n.headers=Ua.from(n.headers),n.data=kh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),pb.getAdapter(n.adapter||vu.adapter)(n).then(function(l){return Mh(n),l.data=kh.call(n,n.transformResponse,l),l.headers=Ua.from(l.headers),l},function(l){return ob(l)||(Mh(n),l&&l.response&&(l.response.data=kh.call(n,n.transformResponse,l.response),l.response.headers=Ua.from(l.response.headers))),Promise.reject(l)})}const mb="1.11.0",_f={};["object","boolean","number","function","string","symbol"].forEach((n,a)=>{_f[n]=function(l){return typeof l===n||"a"+(a<1?"n ":" ")+n}});const hv={};_f.transitional=function(a,s,l){function c(f,p){return"[Axios v"+mb+"] Transitional option '"+f+"'"+p+(l?". "+l:"")}return(f,p,v)=>{if(a===!1)throw new xt(c(p," has been removed"+(s?" in "+s:"")),xt.ERR_DEPRECATED);return s&&!hv[p]&&(hv[p]=!0,console.warn(c(p," has been deprecated since v"+s+" and will be removed in the near future"))),a?a(f,p,v):!0}};_f.spelling=function(a){return(s,l)=>(console.warn(`${l} is likely a misspelling of ${a}`),!0)};function M2(n,a,s){if(typeof n!="object")throw new xt("options must be an object",xt.ERR_BAD_OPTION_VALUE);const l=Object.keys(n);let c=l.length;for(;c-- >0;){const f=l[c],p=a[f];if(p){const v=n[f],S=v===void 0||p(v,f,n);if(S!==!0)throw new xt("option "+f+" must be "+S,xt.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new xt("Unknown option "+f,xt.ERR_BAD_OPTION)}}const Gc={assertOptions:M2,validators:_f},Xr=Gc.validators;let Vs=class{constructor(a){this.defaults=a||{},this.interceptors={request:new rv,response:new rv}}async request(a,s){try{return await this._request(a,s)}catch(l){if(l instanceof Error){let c={};Error.captureStackTrace?Error.captureStackTrace(c):c=new Error;const f=c.stack?c.stack.replace(/^.+\n/,""):"";try{l.stack?f&&!String(l.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(l.stack+=`
`+f):l.stack=f}catch{}}throw l}}_request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=Ps(this.defaults,s);const{transitional:l,paramsSerializer:c,headers:f}=s;l!==void 0&&Gc.assertOptions(l,{silentJSONParsing:Xr.transitional(Xr.boolean),forcedJSONParsing:Xr.transitional(Xr.boolean),clarifyTimeoutError:Xr.transitional(Xr.boolean)},!1),c!=null&&(ge.isFunction(c)?s.paramsSerializer={serialize:c}:Gc.assertOptions(c,{encode:Xr.function,serialize:Xr.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Gc.assertOptions(s,{baseUrl:Xr.spelling("baseURL"),withXsrfToken:Xr.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let p=f&&ge.merge(f.common,f[s.method]);f&&ge.forEach(["delete","get","head","post","put","patch","common"],z=>{delete f[z]}),s.headers=Ua.concat(p,f);const v=[];let S=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(s)===!1||(S=S&&O.synchronous,v.unshift(O.fulfilled,O.rejected))});const x=[];this.interceptors.response.forEach(function(O){x.push(O.fulfilled,O.rejected)});let A,w=0,j;if(!S){const z=[dv.bind(this),void 0];for(z.unshift(...v),z.push(...x),j=z.length,A=Promise.resolve(s);w<j;)A=A.then(z[w++],z[w++]);return A}j=v.length;let M=s;for(w=0;w<j;){const z=v[w++],O=v[w++];try{M=z(M)}catch(U){O.call(this,U);break}}try{A=dv.call(this,M)}catch(z){return Promise.reject(z)}for(w=0,j=x.length;w<j;)A=A.then(x[w++],x[w++]);return A}getUri(a){a=Ps(this.defaults,a);const s=cb(a.baseURL,a.url,a.allowAbsoluteUrls);return ib(s,a.params,a.paramsSerializer)}};ge.forEach(["delete","get","head","options"],function(a){Vs.prototype[a]=function(s,l){return this.request(Ps(l||{},{method:a,url:s,data:(l||{}).data}))}});ge.forEach(["post","put","patch"],function(a){function s(l){return function(f,p,v){return this.request(Ps(v||{},{method:a,headers:l?{"Content-Type":"multipart/form-data"}:{},url:f,data:p}))}}Vs.prototype[a]=s(),Vs.prototype[a+"Form"]=s(!0)});let L2=class gb{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(f){s=f});const l=this;this.promise.then(c=>{if(!l._listeners)return;let f=l._listeners.length;for(;f-- >0;)l._listeners[f](c);l._listeners=null}),this.promise.then=c=>{let f;const p=new Promise(v=>{l.subscribe(v),f=v}).then(c);return p.cancel=function(){l.unsubscribe(f)},p},a(function(f,p,v){l.reason||(l.reason=new Pl(f,p,v),s(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const a=new AbortController,s=l=>{a.abort(l)};return this.subscribe(s),a.signal.unsubscribe=()=>this.unsubscribe(s),a.signal}static source(){let a;return{token:new gb(function(c){a=c}),cancel:a}}};function z2(n){return function(s){return n.apply(null,s)}}function U2(n){return ge.isObject(n)&&n.isAxiosError===!0}const lp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lp).forEach(([n,a])=>{lp[a]=n});function yb(n){const a=new Vs(n),s=G0(Vs.prototype.request,a);return ge.extend(s,Vs.prototype,a,{allOwnKeys:!0}),ge.extend(s,a,null,{allOwnKeys:!0}),s.create=function(c){return yb(Ps(n,c))},s}const xn=yb(vu);xn.Axios=Vs;xn.CanceledError=Pl;xn.CancelToken=L2;xn.isCancel=ob;xn.VERSION=mb;xn.toFormData=Af;xn.AxiosError=xt;xn.Cancel=xn.CanceledError;xn.all=function(a){return Promise.all(a)};xn.spread=z2;xn.isAxiosError=U2;xn.mergeConfig=Ps;xn.AxiosHeaders=Ua;xn.formToJSON=n=>lb(ge.isHTMLForm(n)?new FormData(n):n);xn.getAdapter=pb.getAdapter;xn.HttpStatusCode=lp;xn.default=xn;const{Axios:WC,AxiosError:JC,CanceledError:eN,isCancel:tN,CancelToken:nN,VERSION:aN,all:rN,Cancel:iN,isAxiosError:sN,spread:lN,toFormData:oN,AxiosHeaders:uN,HttpStatusCode:cN,formToJSON:fN,getAdapter:dN,mergeConfig:hN}=xn,pv=["Analyzing your prompt and crafting the perfect website structure…","Designing your pages with a seamless user experience in mind…","Ensuring everything is perfect for you…","Generating structured content and layouts for your website…","Loading content. Almost there…","Finalizing website structure. Just a moment…"],B2=()=>{const[n,a]=D.useState(0),[s,l]=D.useState("slide-in");return D.useEffect(()=>{const c=setInterval(()=>{l("slide-out"),setTimeout(()=>{a(f=>(f+1)%pv.length),l("slide-in")},500)},3e3);return()=>clearInterval(c)},[]),E.jsx("div",{className:"loading-container",children:E.jsx("p",{className:`loading-message ${s}`,children:pv[n]})})};function Tf(){return window.location.origin}const H2=[[[26,188,156],[36,36,36]],[[152,100,36],[40,53,102]],[[58,91,204],[7,14,42]],[[227,54,101],[40,40,40]],[[90,94,50],[219,199,91]],[[204,90,90],[95,25,40]],[[88,51,241],[31,31,31]],[[130,31,160],[244,199,48]],[[158,189,89],[141,109,54]],[[237,103,68],[0,37,70]]],q2=/^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[a-zA-Z0-9-._~:/?#\[\]@!$&'()+,;=]*)?$/,mv=n=>/\S+@\S+\.\S+/.test(n),gv=n=>{let a=/^[0-9+() \.\-\—]+$/,s=n.replace(/[^\d]/g,"");return!!(s.length>8&&s.length<14&&a.test(n))};var $t;(function(n){n.assertEqual=c=>{};function a(c){}n.assertIs=a;function s(c){throw new Error}n.assertNever=s,n.arrayToEnum=c=>{const f={};for(const p of c)f[p]=p;return f},n.getValidEnumValues=c=>{const f=n.objectKeys(c).filter(v=>typeof c[c[v]]!="number"),p={};for(const v of f)p[v]=c[v];return n.objectValues(p)},n.objectValues=c=>n.objectKeys(c).map(function(f){return c[f]}),n.objectKeys=typeof Object.keys=="function"?c=>Object.keys(c):c=>{const f=[];for(const p in c)Object.prototype.hasOwnProperty.call(c,p)&&f.push(p);return f},n.find=(c,f)=>{for(const p of c)if(f(p))return p},n.isInteger=typeof Number.isInteger=="function"?c=>Number.isInteger(c):c=>typeof c=="number"&&Number.isFinite(c)&&Math.floor(c)===c;function l(c,f=" | "){return c.map(p=>typeof p=="string"?`'${p}'`:p).join(f)}n.joinValues=l,n.jsonStringifyReplacer=(c,f)=>typeof f=="bigint"?f.toString():f})($t||($t={}));var yv;(function(n){n.mergeShapes=(a,s)=>({...a,...s})})(yv||(yv={}));const et=$t.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ss=n=>{switch(typeof n){case"undefined":return et.undefined;case"string":return et.string;case"number":return Number.isNaN(n)?et.nan:et.number;case"boolean":return et.boolean;case"function":return et.function;case"bigint":return et.bigint;case"symbol":return et.symbol;case"object":return Array.isArray(n)?et.array:n===null?et.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?et.promise:typeof Map<"u"&&n instanceof Map?et.map:typeof Set<"u"&&n instanceof Set?et.set:typeof Date<"u"&&n instanceof Date?et.date:et.object;default:return et.unknown}},Me=$t.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 Ci extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=l=>{this.issues=[...this.issues,l]},this.addIssues=(l=[])=>{this.issues=[...this.issues,...l]};const s=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,s):this.__proto__=s,this.name="ZodError",this.issues=a}format(a){const s=a||function(f){return f.message},l={_errors:[]},c=f=>{for(const p of f.issues)if(p.code==="invalid_union")p.unionErrors.map(c);else if(p.code==="invalid_return_type")c(p.returnTypeError);else if(p.code==="invalid_arguments")c(p.argumentsError);else if(p.path.length===0)l._errors.push(s(p));else{let v=l,S=0;for(;S<p.path.length;){const x=p.path[S];S===p.path.length-1?(v[x]=v[x]||{_errors:[]},v[x]._errors.push(s(p))):v[x]=v[x]||{_errors:[]},v=v[x],S++}}};return c(this),l}static assert(a){if(!(a instanceof Ci))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$t.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=s=>s.message){const s={},l=[];for(const c of this.issues)if(c.path.length>0){const f=c.path[0];s[f]=s[f]||[],s[f].push(a(c))}else l.push(a(c));return{formErrors:l,fieldErrors:s}}get formErrors(){return this.flatten()}}Ci.create=n=>new Ci(n);const op=(n,a)=>{let s;switch(n.code){case Me.invalid_type:n.received===et.undefined?s="Required":s=`Expected ${n.expected}, received ${n.received}`;break;case Me.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(n.expected,$t.jsonStringifyReplacer)}`;break;case Me.unrecognized_keys:s=`Unrecognized key(s) in object: ${$t.joinValues(n.keys,", ")}`;break;case Me.invalid_union:s="Invalid input";break;case Me.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${$t.joinValues(n.options)}`;break;case Me.invalid_enum_value:s=`Invalid enum value. Expected ${$t.joinValues(n.options)}, received '${n.received}'`;break;case Me.invalid_arguments:s="Invalid function arguments";break;case Me.invalid_return_type:s="Invalid function return type";break;case Me.invalid_date:s="Invalid date";break;case Me.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(s=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(s=`${s} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?s=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?s=`Invalid input: must end with "${n.validation.endsWith}"`:$t.assertNever(n.validation):n.validation!=="regex"?s=`Invalid ${n.validation}`:s="Invalid";break;case Me.too_small:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:s="Invalid input";break;case Me.too_big:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?s=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:s="Invalid input";break;case Me.custom:s="Invalid input";break;case Me.invalid_intersection_types:s="Intersection results could not be merged";break;case Me.not_multiple_of:s=`Number must be a multiple of ${n.multipleOf}`;break;case Me.not_finite:s="Number must be finite";break;default:s=a.defaultError,$t.assertNever(n)}return{message:s}};let V2=op;function P2(){return V2}const Y2=n=>{const{data:a,path:s,errorMaps:l,issueData:c}=n,f=[...s,...c.path||[]],p={...c,path:f};if(c.message!==void 0)return{...c,path:f,message:c.message};let v="";const S=l.filter(x=>!!x).slice().reverse();for(const x of S)v=x(p,{data:a,defaultError:v}).message;return{...c,path:f,message:v}};function Fe(n,a){const s=P2(),l=Y2({issueData:a,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,s,s===op?void 0:op].filter(c=>!!c)});n.common.issues.push(l)}class Qa{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,s){const l=[];for(const c of s){if(c.status==="aborted")return vt;c.status==="dirty"&&a.dirty(),l.push(c.value)}return{status:a.value,value:l}}static async mergeObjectAsync(a,s){const l=[];for(const c of s){const f=await c.key,p=await c.value;l.push({key:f,value:p})}return Qa.mergeObjectSync(a,l)}static mergeObjectSync(a,s){const l={};for(const c of s){const{key:f,value:p}=c;if(f.status==="aborted"||p.status==="aborted")return vt;f.status==="dirty"&&a.dirty(),p.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof p.value<"u"||c.alwaysSet)&&(l[f.value]=p.value)}return{status:a.value,value:l}}}const vt=Object.freeze({status:"aborted"}),Ko=n=>({status:"dirty",value:n}),ur=n=>({status:"valid",value:n}),vv=n=>n.status==="aborted",bv=n=>n.status==="dirty",Ml=n=>n.status==="valid",ef=n=>typeof Promise<"u"&&n instanceof Promise;var nt;(function(n){n.errToObj=a=>typeof a=="string"?{message:a}:a||{},n.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(nt||(nt={}));class fs{constructor(a,s,l,c){this._cachedPath=[],this.parent=a,this.data=s,this._path=l,this._key=c}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 xv=(n,a)=>{if(Ml(a))return{success:!0,data:a.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const s=new Ci(n.common.issues);return this._error=s,this._error}}};function kt(n){if(!n)return{};const{errorMap:a,invalid_type_error:s,required_error:l,description:c}=n;if(a&&(s||l))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:c}:{errorMap:(p,v)=>{const{message:S}=n;return p.code==="invalid_enum_value"?{message:S??v.defaultError}:typeof v.data>"u"?{message:S??l??v.defaultError}:p.code!=="invalid_type"?{message:v.defaultError}:{message:S??s??v.defaultError}},description:c}}class It{get description(){return this._def.description}_getType(a){return ss(a.data)}_getOrReturnCtx(a,s){return s||{common:a.parent.common,data:a.data,parsedType:ss(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Qa,ctx:{common:a.parent.common,data:a.data,parsedType:ss(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const s=this._parse(a);if(ef(s))throw new Error("Synchronous parse encountered promise.");return s}_parseAsync(a){const s=this._parse(a);return Promise.resolve(s)}parse(a,s){const l=this.safeParse(a,s);if(l.success)return l.data;throw l.error}safeParse(a,s){const l={common:{issues:[],async:(s==null?void 0:s.async)??!1,contextualErrorMap:s==null?void 0:s.errorMap},path:(s==null?void 0:s.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ss(a)},c=this._parseSync({data:a,path:l.path,parent:l});return xv(l,c)}"~validate"(a){var l,c;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ss(a)};if(!this["~standard"].async)try{const f=this._parseSync({data:a,path:[],parent:s});return Ml(f)?{value:f.value}:{issues:s.common.issues}}catch(f){(c=(l=f==null?void 0:f.message)==null?void 0:l.toLowerCase())!=null&&c.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:s}).then(f=>Ml(f)?{value:f.value}:{issues:s.common.issues})}async parseAsync(a,s){const l=await this.safeParseAsync(a,s);if(l.success)return l.data;throw l.error}async safeParseAsync(a,s){const l={common:{issues:[],contextualErrorMap:s==null?void 0:s.errorMap,async:!0},path:(s==null?void 0:s.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ss(a)},c=this._parse({data:a,path:l.path,parent:l}),f=await(ef(c)?c:Promise.resolve(c));return xv(l,f)}refine(a,s){const l=c=>typeof s=="string"||typeof s>"u"?{message:s}:typeof s=="function"?s(c):s;return this._refinement((c,f)=>{const p=a(c),v=()=>f.addIssue({code:Me.custom,...l(c)});return typeof Promise<"u"&&p instanceof Promise?p.then(S=>S?!0:(v(),!1)):p?!0:(v(),!1)})}refinement(a,s){return this._refinement((l,c)=>a(l)?!0:(c.addIssue(typeof s=="function"?s(l,c):s),!1))}_refinement(a){return new zl({schema:this,typeName:Be.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,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:s=>this["~validate"](s)}}optional(){return cs.create(this,this._def)}nullable(){return Ul.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $r.create(this)}promise(){return rf.create(this,this._def)}or(a){return nf.create([this,a],this._def)}and(a){return af.create(this,a,this._def)}transform(a){return new zl({...kt(this._def),schema:this,typeName:Be.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const s=typeof a=="function"?a:()=>a;return new cp({...kt(this._def),innerType:this,defaultValue:s,typeName:Be.ZodDefault})}brand(){return new dA({typeName:Be.ZodBranded,type:this,...kt(this._def)})}catch(a){const s=typeof a=="function"?a:()=>a;return new fp({...kt(this._def),innerType:this,catchValue:s,typeName:Be.ZodCatch})}describe(a){const s=this.constructor;return new s({...this._def,description:a})}pipe(a){return Dp.create(this,a)}readonly(){return dp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Z2=/^c[^\s-]{8,}$/i,X2=/^[0-9a-z]+$/,F2=/^[0-9A-HJKMNP-TV-Z]{26}$/i,G2=/^[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,I2=/^[a-z0-9_-]{21}$/i,Q2=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,K2=/^[-+]?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)?)??$/,$2=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,W2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Lh;const J2=/^(?:(?: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])$/,eA=/^(?:(?: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])$/,tA=/^(([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]))$/,nA=/^(([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])$/,aA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vb="((\\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])))",iA=new RegExp(`^${vb}$`);function bb(n){let a="[0-5]\\d";n.precision?a=`${a}\\.\\d{${n.precision}}`:n.precision==null&&(a=`${a}(\\.\\d+)?`);const s=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${s}`}function sA(n){return new RegExp(`^${bb(n)}$`)}function lA(n){let a=`${vb}T${bb(n)}`;const s=[];return s.push(n.local?"Z?":"Z"),n.offset&&s.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${s.join("|")})`,new RegExp(`^${a}$`)}function oA(n,a){return!!((a==="v4"||!a)&&J2.test(n)||(a==="v6"||!a)&&tA.test(n))}function uA(n,a){if(!Q2.test(n))return!1;try{const[s]=n.split(".");if(!s)return!1;const l=s.replace(/-/g,"+").replace(/_/g,"/").padEnd(s.length+(4-s.length%4)%4,"="),c=JSON.parse(atob(l));return!(typeof c!="object"||c===null||"typ"in c&&(c==null?void 0:c.typ)!=="JWT"||!c.alg||a&&c.alg!==a)}catch{return!1}}function cA(n,a){return!!((a==="v4"||!a)&&eA.test(n)||(a==="v6"||!a)&&nA.test(n))}class us extends It{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==et.string){const f=this._getOrReturnCtx(a);return Fe(f,{code:Me.invalid_type,expected:et.string,received:f.parsedType}),vt}const l=new Qa;let c;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="max")a.data.length>f.value&&(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="length"){const p=a.data.length>f.value,v=a.data.length<f.value;(p||v)&&(c=this._getOrReturnCtx(a,c),p?Fe(c,{code:Me.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):v&&Fe(c,{code:Me.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),l.dirty())}else if(f.kind==="email")$2.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"email",code:Me.invalid_string,message:f.message}),l.dirty());else if(f.kind==="emoji")Lh||(Lh=new RegExp(W2,"u")),Lh.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"emoji",code:Me.invalid_string,message:f.message}),l.dirty());else if(f.kind==="uuid")G2.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"uuid",code:Me.invalid_string,message:f.message}),l.dirty());else if(f.kind==="nanoid")I2.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"nanoid",code:Me.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid")Z2.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"cuid",code:Me.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid2")X2.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"cuid2",code:Me.invalid_string,message:f.message}),l.dirty());else if(f.kind==="ulid")F2.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"ulid",code:Me.invalid_string,message:f.message}),l.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{c=this._getOrReturnCtx(a,c),Fe(c,{validation:"url",code:Me.invalid_string,message:f.message}),l.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"regex",code:Me.invalid_string,message:f.message}),l.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),l.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.invalid_string,validation:{startsWith:f.value},message:f.message}),l.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.invalid_string,validation:{endsWith:f.value},message:f.message}),l.dirty()):f.kind==="datetime"?lA(f).test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.invalid_string,validation:"datetime",message:f.message}),l.dirty()):f.kind==="date"?iA.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.invalid_string,validation:"date",message:f.message}),l.dirty()):f.kind==="time"?sA(f).test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.invalid_string,validation:"time",message:f.message}),l.dirty()):f.kind==="duration"?K2.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"duration",code:Me.invalid_string,message:f.message}),l.dirty()):f.kind==="ip"?oA(a.data,f.version)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"ip",code:Me.invalid_string,message:f.message}),l.dirty()):f.kind==="jwt"?uA(a.data,f.alg)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"jwt",code:Me.invalid_string,message:f.message}),l.dirty()):f.kind==="cidr"?cA(a.data,f.version)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"cidr",code:Me.invalid_string,message:f.message}),l.dirty()):f.kind==="base64"?aA.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"base64",code:Me.invalid_string,message:f.message}),l.dirty()):f.kind==="base64url"?rA.test(a.data)||(c=this._getOrReturnCtx(a,c),Fe(c,{validation:"base64url",code:Me.invalid_string,message:f.message}),l.dirty()):$t.assertNever(f);return{status:l.value,value:a.data}}_regex(a,s,l){return this.refinement(c=>a.test(c),{validation:s,code:Me.invalid_string,...nt.errToObj(l)})}_addCheck(a){return new us({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...nt.errToObj(a)})}url(a){return this._addCheck({kind:"url",...nt.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...nt.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...nt.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...nt.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...nt.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...nt.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...nt.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...nt.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...nt.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...nt.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...nt.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...nt.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,...nt.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...nt.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...nt.errToObj(a)})}regex(a,s){return this._addCheck({kind:"regex",regex:a,...nt.errToObj(s)})}includes(a,s){return this._addCheck({kind:"includes",value:a,position:s==null?void 0:s.position,...nt.errToObj(s==null?void 0:s.message)})}startsWith(a,s){return this._addCheck({kind:"startsWith",value:a,...nt.errToObj(s)})}endsWith(a,s){return this._addCheck({kind:"endsWith",value:a,...nt.errToObj(s)})}min(a,s){return this._addCheck({kind:"min",value:a,...nt.errToObj(s)})}max(a,s){return this._addCheck({kind:"max",value:a,...nt.errToObj(s)})}length(a,s){return this._addCheck({kind:"length",value:a,...nt.errToObj(s)})}nonempty(a){return this.min(1,nt.errToObj(a))}trim(){return new us({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new us({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new us({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxLength(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}us.create=n=>new us({checks:[],typeName:Be.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...kt(n)});function fA(n,a){const s=(n.toString().split(".")[1]||"").length,l=(a.toString().split(".")[1]||"").length,c=s>l?s:l,f=Number.parseInt(n.toFixed(c).replace(".","")),p=Number.parseInt(a.toFixed(c).replace(".",""));return f%p/10**c}class iu extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==et.number){const f=this._getOrReturnCtx(a);return Fe(f,{code:Me.invalid_type,expected:et.number,received:f.parsedType}),vt}let l;const c=new Qa;for(const f of this._def.checks)f.kind==="int"?$t.isInteger(a.data)||(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.invalid_type,expected:"integer",received:"float",message:f.message}),c.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),c.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),c.dirty()):f.kind==="multipleOf"?fA(a.data,f.value)!==0&&(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.not_multiple_of,multipleOf:f.value,message:f.message}),c.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.not_finite,message:f.message}),c.dirty()):$t.assertNever(f);return{status:c.value,value:a.data}}gte(a,s){return this.setLimit("min",a,!0,nt.toString(s))}gt(a,s){return this.setLimit("min",a,!1,nt.toString(s))}lte(a,s){return this.setLimit("max",a,!0,nt.toString(s))}lt(a,s){return this.setLimit("max",a,!1,nt.toString(s))}setLimit(a,s,l,c){return new iu({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:nt.toString(c)}]})}_addCheck(a){return new iu({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:nt.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:nt.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:nt.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:nt.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:nt.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:nt.toString(s)})}finite(a){return this._addCheck({kind:"finite",message:nt.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:nt.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:nt.toString(a)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&$t.isInteger(a.value))}get isFinite(){let a=null,s=null;for(const l of this._def.checks){if(l.kind==="finite"||l.kind==="int"||l.kind==="multipleOf")return!0;l.kind==="min"?(s===null||l.value>s)&&(s=l.value):l.kind==="max"&&(a===null||l.value<a)&&(a=l.value)}return Number.isFinite(s)&&Number.isFinite(a)}}iu.create=n=>new iu({checks:[],typeName:Be.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...kt(n)});class su extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==et.bigint)return this._getInvalidInput(a);let l;const c=new Qa;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),c.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),c.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(l=this._getOrReturnCtx(a,l),Fe(l,{code:Me.not_multiple_of,multipleOf:f.value,message:f.message}),c.dirty()):$t.assertNever(f);return{status:c.value,value:a.data}}_getInvalidInput(a){const s=this._getOrReturnCtx(a);return Fe(s,{code:Me.invalid_type,expected:et.bigint,received:s.parsedType}),vt}gte(a,s){return this.setLimit("min",a,!0,nt.toString(s))}gt(a,s){return this.setLimit("min",a,!1,nt.toString(s))}lte(a,s){return this.setLimit("max",a,!0,nt.toString(s))}lt(a,s){return this.setLimit("max",a,!1,nt.toString(s))}setLimit(a,s,l,c){return new su({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:nt.toString(c)}]})}_addCheck(a){return new su({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:nt.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:nt.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:nt.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:nt.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:nt.toString(s)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}su.create=n=>new su({checks:[],typeName:Be.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...kt(n)});class Sv extends It{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==et.boolean){const l=this._getOrReturnCtx(a);return Fe(l,{code:Me.invalid_type,expected:et.boolean,received:l.parsedType}),vt}return ur(a.data)}}Sv.create=n=>new Sv({typeName:Be.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...kt(n)});class tf extends It{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==et.date){const f=this._getOrReturnCtx(a);return Fe(f,{code:Me.invalid_type,expected:et.date,received:f.parsedType}),vt}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return Fe(f,{code:Me.invalid_date}),vt}const l=new Qa;let c;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),l.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(c=this._getOrReturnCtx(a,c),Fe(c,{code:Me.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),l.dirty()):$t.assertNever(f);return{status:l.value,value:new Date(a.data.getTime())}}_addCheck(a){return new tf({...this._def,checks:[...this._def.checks,a]})}min(a,s){return this._addCheck({kind:"min",value:a.getTime(),message:nt.toString(s)})}max(a,s){return this._addCheck({kind:"max",value:a.getTime(),message:nt.toString(s)})}get minDate(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a!=null?new Date(a):null}}tf.create=n=>new tf({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Be.ZodDate,...kt(n)});class wv extends It{_parse(a){if(this._getType(a)!==et.symbol){const l=this._getOrReturnCtx(a);return Fe(l,{code:Me.invalid_type,expected:et.symbol,received:l.parsedType}),vt}return ur(a.data)}}wv.create=n=>new wv({typeName:Be.ZodSymbol,...kt(n)});class Av extends It{_parse(a){if(this._getType(a)!==et.undefined){const l=this._getOrReturnCtx(a);return Fe(l,{code:Me.invalid_type,expected:et.undefined,received:l.parsedType}),vt}return ur(a.data)}}Av.create=n=>new Av({typeName:Be.ZodUndefined,...kt(n)});class Ev extends It{_parse(a){if(this._getType(a)!==et.null){const l=this._getOrReturnCtx(a);return Fe(l,{code:Me.invalid_type,expected:et.null,received:l.parsedType}),vt}return ur(a.data)}}Ev.create=n=>new Ev({typeName:Be.ZodNull,...kt(n)});class _v extends It{constructor(){super(...arguments),this._any=!0}_parse(a){return ur(a.data)}}_v.create=n=>new _v({typeName:Be.ZodAny,...kt(n)});class Tv extends It{constructor(){super(...arguments),this._unknown=!0}_parse(a){return ur(a.data)}}Tv.create=n=>new Tv({typeName:Be.ZodUnknown,...kt(n)});class ds extends It{_parse(a){const s=this._getOrReturnCtx(a);return Fe(s,{code:Me.invalid_type,expected:et.never,received:s.parsedType}),vt}}ds.create=n=>new ds({typeName:Be.ZodNever,...kt(n)});class Cv extends It{_parse(a){if(this._getType(a)!==et.undefined){const l=this._getOrReturnCtx(a);return Fe(l,{code:Me.invalid_type,expected:et.void,received:l.parsedType}),vt}return ur(a.data)}}Cv.create=n=>new Cv({typeName:Be.ZodVoid,...kt(n)});class $r extends It{_parse(a){const{ctx:s,status:l}=this._processInputParams(a),c=this._def;if(s.parsedType!==et.array)return Fe(s,{code:Me.invalid_type,expected:et.array,received:s.parsedType}),vt;if(c.exactLength!==null){const p=s.data.length>c.exactLength.value,v=s.data.length<c.exactLength.value;(p||v)&&(Fe(s,{code:p?Me.too_big:Me.too_small,minimum:v?c.exactLength.value:void 0,maximum:p?c.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:c.exactLength.message}),l.dirty())}if(c.minLength!==null&&s.data.length<c.minLength.value&&(Fe(s,{code:Me.too_small,minimum:c.minLength.value,type:"array",inclusive:!0,exact:!1,message:c.minLength.message}),l.dirty()),c.maxLength!==null&&s.data.length>c.maxLength.value&&(Fe(s,{code:Me.too_big,maximum:c.maxLength.value,type:"array",inclusive:!0,exact:!1,message:c.maxLength.message}),l.dirty()),s.common.async)return Promise.all([...s.data].map((p,v)=>c.type._parseAsync(new fs(s,p,s.path,v)))).then(p=>Qa.mergeArray(l,p));const f=[...s.data].map((p,v)=>c.type._parseSync(new fs(s,p,s.path,v)));return Qa.mergeArray(l,f)}get element(){return this._def.type}min(a,s){return new $r({...this._def,minLength:{value:a,message:nt.toString(s)}})}max(a,s){return new $r({...this._def,maxLength:{value:a,message:nt.toString(s)}})}length(a,s){return new $r({...this._def,exactLength:{value:a,message:nt.toString(s)}})}nonempty(a){return this.min(1,a)}}$r.create=(n,a)=>new $r({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Be.ZodArray,...kt(a)});function Rl(n){if(n instanceof Fn){const a={};for(const s in n.shape){const l=n.shape[s];a[s]=cs.create(Rl(l))}return new Fn({...n._def,shape:()=>a})}else return n instanceof $r?new $r({...n._def,type:Rl(n.element)}):n instanceof cs?cs.create(Rl(n.unwrap())):n instanceof Ul?Ul.create(Rl(n.unwrap())):n instanceof Ys?Ys.create(n.items.map(a=>Rl(a))):n}class Fn extends It{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),s=$t.objectKeys(a);return this._cached={shape:a,keys:s},this._cached}_parse(a){if(this._getType(a)!==et.object){const x=this._getOrReturnCtx(a);return Fe(x,{code:Me.invalid_type,expected:et.object,received:x.parsedType}),vt}const{status:l,ctx:c}=this._processInputParams(a),{shape:f,keys:p}=this._getCached(),v=[];if(!(this._def.catchall instanceof ds&&this._def.unknownKeys==="strip"))for(const x in c.data)p.includes(x)||v.push(x);const S=[];for(const x of p){const A=f[x],w=c.data[x];S.push({key:{status:"valid",value:x},value:A._parse(new fs(c,w,c.path,x)),alwaysSet:x in c.data})}if(this._def.catchall instanceof ds){const x=this._def.unknownKeys;if(x==="passthrough")for(const A of v)S.push({key:{status:"valid",value:A},value:{status:"valid",value:c.data[A]}});else if(x==="strict")v.length>0&&(Fe(c,{code:Me.unrecognized_keys,keys:v}),l.dirty());else if(x!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const x=this._def.catchall;for(const A of v){const w=c.data[A];S.push({key:{status:"valid",value:A},value:x._parse(new fs(c,w,c.path,A)),alwaysSet:A in c.data})}}return c.common.async?Promise.resolve().then(async()=>{const x=[];for(const A of S){const w=await A.key,j=await A.value;x.push({key:w,value:j,alwaysSet:A.alwaysSet})}return x}).then(x=>Qa.mergeObjectSync(l,x)):Qa.mergeObjectSync(l,S)}get shape(){return this._def.shape()}strict(a){return nt.errToObj,new Fn({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(s,l)=>{var f,p;const c=((p=(f=this._def).errorMap)==null?void 0:p.call(f,s,l).message)??l.defaultError;return s.code==="unrecognized_keys"?{message:nt.errToObj(a).message??c}:{message:c}}}:{}})}strip(){return new Fn({...this._def,unknownKeys:"strip"})}passthrough(){return new Fn({...this._def,unknownKeys:"passthrough"})}extend(a){return new Fn({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new Fn({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:Be.ZodObject})}setKey(a,s){return this.augment({[a]:s})}catchall(a){return new Fn({...this._def,catchall:a})}pick(a){const s={};for(const l of $t.objectKeys(a))a[l]&&this.shape[l]&&(s[l]=this.shape[l]);return new Fn({...this._def,shape:()=>s})}omit(a){const s={};for(const l of $t.objectKeys(this.shape))a[l]||(s[l]=this.shape[l]);return new Fn({...this._def,shape:()=>s})}deepPartial(){return Rl(this)}partial(a){const s={};for(const l of $t.objectKeys(this.shape)){const c=this.shape[l];a&&!a[l]?s[l]=c:s[l]=c.optional()}return new Fn({...this._def,shape:()=>s})}required(a){const s={};for(const l of $t.objectKeys(this.shape))if(a&&!a[l])s[l]=this.shape[l];else{let f=this.shape[l];for(;f instanceof cs;)f=f._def.innerType;s[l]=f}return new Fn({...this._def,shape:()=>s})}keyof(){return xb($t.objectKeys(this.shape))}}Fn.create=(n,a)=>new Fn({shape:()=>n,unknownKeys:"strip",catchall:ds.create(),typeName:Be.ZodObject,...kt(a)});Fn.strictCreate=(n,a)=>new Fn({shape:()=>n,unknownKeys:"strict",catchall:ds.create(),typeName:Be.ZodObject,...kt(a)});Fn.lazycreate=(n,a)=>new Fn({shape:n,unknownKeys:"strip",catchall:ds.create(),typeName:Be.ZodObject,...kt(a)});class nf extends It{_parse(a){const{ctx:s}=this._processInputParams(a),l=this._def.options;function c(f){for(const v of f)if(v.result.status==="valid")return v.result;for(const v of f)if(v.result.status==="dirty")return s.common.issues.push(...v.ctx.common.issues),v.result;const p=f.map(v=>new Ci(v.ctx.common.issues));return Fe(s,{code:Me.invalid_union,unionErrors:p}),vt}if(s.common.async)return Promise.all(l.map(async f=>{const p={...s,common:{...s.common,issues:[]},parent:null};return{result:await f._parseAsync({data:s.data,path:s.path,parent:p}),ctx:p}})).then(c);{let f;const p=[];for(const S of l){const x={...s,common:{...s.common,issues:[]},parent:null},A=S._parseSync({data:s.data,path:s.path,parent:x});if(A.status==="valid")return A;A.status==="dirty"&&!f&&(f={result:A,ctx:x}),x.common.issues.length&&p.push(x.common.issues)}if(f)return s.common.issues.push(...f.ctx.common.issues),f.result;const v=p.map(S=>new Ci(S));return Fe(s,{code:Me.invalid_union,unionErrors:v}),vt}}get options(){return this._def.options}}nf.create=(n,a)=>new nf({options:n,typeName:Be.ZodUnion,...kt(a)});function up(n,a){const s=ss(n),l=ss(a);if(n===a)return{valid:!0,data:n};if(s===et.object&&l===et.object){const c=$t.objectKeys(a),f=$t.objectKeys(n).filter(v=>c.indexOf(v)!==-1),p={...n,...a};for(const v of f){const S=up(n[v],a[v]);if(!S.valid)return{valid:!1};p[v]=S.data}return{valid:!0,data:p}}else if(s===et.array&&l===et.array){if(n.length!==a.length)return{valid:!1};const c=[];for(let f=0;f<n.length;f++){const p=n[f],v=a[f],S=up(p,v);if(!S.valid)return{valid:!1};c.push(S.data)}return{valid:!0,data:c}}else return s===et.date&&l===et.date&&+n==+a?{valid:!0,data:n}:{valid:!1}}class af extends It{_parse(a){const{status:s,ctx:l}=this._processInputParams(a),c=(f,p)=>{if(vv(f)||vv(p))return vt;const v=up(f.value,p.value);return v.valid?((bv(f)||bv(p))&&s.dirty(),{status:s.value,value:v.data}):(Fe(l,{code:Me.invalid_intersection_types}),vt)};return l.common.async?Promise.all([this._def.left._parseAsync({data:l.data,path:l.path,parent:l}),this._def.right._parseAsync({data:l.data,path:l.path,parent:l})]).then(([f,p])=>c(f,p)):c(this._def.left._parseSync({data:l.data,path:l.path,parent:l}),this._def.right._parseSync({data:l.data,path:l.path,parent:l}))}}af.create=(n,a,s)=>new af({left:n,right:a,typeName:Be.ZodIntersection,...kt(s)});class Ys extends It{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==et.array)return Fe(l,{code:Me.invalid_type,expected:et.array,received:l.parsedType}),vt;if(l.data.length<this._def.items.length)return Fe(l,{code:Me.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),vt;!this._def.rest&&l.data.length>this._def.items.length&&(Fe(l,{code:Me.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),s.dirty());const f=[...l.data].map((p,v)=>{const S=this._def.items[v]||this._def.rest;return S?S._parse(new fs(l,p,l.path,v)):null}).filter(p=>!!p);return l.common.async?Promise.all(f).then(p=>Qa.mergeArray(s,p)):Qa.mergeArray(s,f)}get items(){return this._def.items}rest(a){return new Ys({...this._def,rest:a})}}Ys.create=(n,a)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ys({items:n,typeName:Be.ZodTuple,rest:null,...kt(a)})};class Nv extends It{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==et.map)return Fe(l,{code:Me.invalid_type,expected:et.map,received:l.parsedType}),vt;const c=this._def.keyType,f=this._def.valueType,p=[...l.data.entries()].map(([v,S],x)=>({key:c._parse(new fs(l,v,l.path,[x,"key"])),value:f._parse(new fs(l,S,l.path,[x,"value"]))}));if(l.common.async){const v=new Map;return Promise.resolve().then(async()=>{for(const S of p){const x=await S.key,A=await S.value;if(x.status==="aborted"||A.status==="aborted")return vt;(x.status==="dirty"||A.status==="dirty")&&s.dirty(),v.set(x.value,A.value)}return{status:s.value,value:v}})}else{const v=new Map;for(const S of p){const x=S.key,A=S.value;if(x.status==="aborted"||A.status==="aborted")return vt;(x.status==="dirty"||A.status==="dirty")&&s.dirty(),v.set(x.value,A.value)}return{status:s.value,value:v}}}}Nv.create=(n,a,s)=>new Nv({valueType:a,keyType:n,typeName:Be.ZodMap,...kt(s)});class lu extends It{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==et.set)return Fe(l,{code:Me.invalid_type,expected:et.set,received:l.parsedType}),vt;const c=this._def;c.minSize!==null&&l.data.size<c.minSize.value&&(Fe(l,{code:Me.too_small,minimum:c.minSize.value,type:"set",inclusive:!0,exact:!1,message:c.minSize.message}),s.dirty()),c.maxSize!==null&&l.data.size>c.maxSize.value&&(Fe(l,{code:Me.too_big,maximum:c.maxSize.value,type:"set",inclusive:!0,exact:!1,message:c.maxSize.message}),s.dirty());const f=this._def.valueType;function p(S){const x=new Set;for(const A of S){if(A.status==="aborted")return vt;A.status==="dirty"&&s.dirty(),x.add(A.value)}return{status:s.value,value:x}}const v=[...l.data.values()].map((S,x)=>f._parse(new fs(l,S,l.path,x)));return l.common.async?Promise.all(v).then(S=>p(S)):p(v)}min(a,s){return new lu({...this._def,minSize:{value:a,message:nt.toString(s)}})}max(a,s){return new lu({...this._def,maxSize:{value:a,message:nt.toString(s)}})}size(a,s){return this.min(a,s).max(a,s)}nonempty(a){return this.min(1,a)}}lu.create=(n,a)=>new lu({valueType:n,minSize:null,maxSize:null,typeName:Be.ZodSet,...kt(a)});class Rv extends It{get schema(){return this._def.getter()}_parse(a){const{ctx:s}=this._processInputParams(a);return this._def.getter()._parse({data:s.data,path:s.path,parent:s})}}Rv.create=(n,a)=>new Rv({getter:n,typeName:Be.ZodLazy,...kt(a)});class Dv extends It{_parse(a){if(a.data!==this._def.value){const s=this._getOrReturnCtx(a);return Fe(s,{received:s.data,code:Me.invalid_literal,expected:this._def.value}),vt}return{status:"valid",value:a.data}}get value(){return this._def.value}}Dv.create=(n,a)=>new Dv({value:n,typeName:Be.ZodLiteral,...kt(a)});function xb(n,a){return new Ll({values:n,typeName:Be.ZodEnum,...kt(a)})}class Ll extends It{_parse(a){if(typeof a.data!="string"){const s=this._getOrReturnCtx(a),l=this._def.values;return Fe(s,{expected:$t.joinValues(l),received:s.parsedType,code:Me.invalid_type}),vt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const s=this._getOrReturnCtx(a),l=this._def.values;return Fe(s,{received:s.data,code:Me.invalid_enum_value,options:l}),vt}return ur(a.data)}get options(){return this._def.values}get enum(){const a={};for(const s of this._def.values)a[s]=s;return a}get Values(){const a={};for(const s of this._def.values)a[s]=s;return a}get Enum(){const a={};for(const s of this._def.values)a[s]=s;return a}extract(a,s=this._def){return Ll.create(a,{...this._def,...s})}exclude(a,s=this._def){return Ll.create(this.options.filter(l=>!a.includes(l)),{...this._def,...s})}}Ll.create=xb;class jv extends It{_parse(a){const s=$t.getValidEnumValues(this._def.values),l=this._getOrReturnCtx(a);if(l.parsedType!==et.string&&l.parsedType!==et.number){const c=$t.objectValues(s);return Fe(l,{expected:$t.joinValues(c),received:l.parsedType,code:Me.invalid_type}),vt}if(this._cache||(this._cache=new Set($t.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const c=$t.objectValues(s);return Fe(l,{received:l.data,code:Me.invalid_enum_value,options:c}),vt}return ur(a.data)}get enum(){return this._def.values}}jv.create=(n,a)=>new jv({values:n,typeName:Be.ZodNativeEnum,...kt(a)});class rf extends It{unwrap(){return this._def.type}_parse(a){const{ctx:s}=this._processInputParams(a);if(s.parsedType!==et.promise&&s.common.async===!1)return Fe(s,{code:Me.invalid_type,expected:et.promise,received:s.parsedType}),vt;const l=s.parsedType===et.promise?s.data:Promise.resolve(s.data);return ur(l.then(c=>this._def.type.parseAsync(c,{path:s.path,errorMap:s.common.contextualErrorMap})))}}rf.create=(n,a)=>new rf({type:n,typeName:Be.ZodPromise,...kt(a)});class zl extends It{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:s,ctx:l}=this._processInputParams(a),c=this._def.effect||null,f={addIssue:p=>{Fe(l,p),p.fatal?s.abort():s.dirty()},get path(){return l.path}};if(f.addIssue=f.addIssue.bind(f),c.type==="preprocess"){const p=c.transform(l.data,f);if(l.common.async)return Promise.resolve(p).then(async v=>{if(s.value==="aborted")return vt;const S=await this._def.schema._parseAsync({data:v,path:l.path,parent:l});return S.status==="aborted"?vt:S.status==="dirty"||s.value==="dirty"?Ko(S.value):S});{if(s.value==="aborted")return vt;const v=this._def.schema._parseSync({data:p,path:l.path,parent:l});return v.status==="aborted"?vt:v.status==="dirty"||s.value==="dirty"?Ko(v.value):v}}if(c.type==="refinement"){const p=v=>{const S=c.refinement(v,f);if(l.common.async)return Promise.resolve(S);if(S instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return v};if(l.common.async===!1){const v=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});return v.status==="aborted"?vt:(v.status==="dirty"&&s.dirty(),p(v.value),{status:s.value,value:v.value})}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(v=>v.status==="aborted"?vt:(v.status==="dirty"&&s.dirty(),p(v.value).then(()=>({status:s.value,value:v.value}))))}if(c.type==="transform")if(l.common.async===!1){const p=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});if(!Ml(p))return vt;const v=c.transform(p.value,f);if(v instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:s.value,value:v}}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(p=>Ml(p)?Promise.resolve(c.transform(p.value,f)).then(v=>({status:s.value,value:v})):vt);$t.assertNever(c)}}zl.create=(n,a,s)=>new zl({schema:n,typeName:Be.ZodEffects,effect:a,...kt(s)});zl.createWithPreprocess=(n,a,s)=>new zl({schema:a,effect:{type:"preprocess",transform:n},typeName:Be.ZodEffects,...kt(s)});class cs extends It{_parse(a){return this._getType(a)===et.undefined?ur(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}cs.create=(n,a)=>new cs({innerType:n,typeName:Be.ZodOptional,...kt(a)});class Ul extends It{_parse(a){return this._getType(a)===et.null?ur(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Ul.create=(n,a)=>new Ul({innerType:n,typeName:Be.ZodNullable,...kt(a)});class cp extends It{_parse(a){const{ctx:s}=this._processInputParams(a);let l=s.data;return s.parsedType===et.undefined&&(l=this._def.defaultValue()),this._def.innerType._parse({data:l,path:s.path,parent:s})}removeDefault(){return this._def.innerType}}cp.create=(n,a)=>new cp({innerType:n,typeName:Be.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...kt(a)});class fp extends It{_parse(a){const{ctx:s}=this._processInputParams(a),l={...s,common:{...s.common,issues:[]}},c=this._def.innerType._parse({data:l.data,path:l.path,parent:{...l}});return ef(c)?c.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Ci(l.common.issues)},input:l.data})})):{status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new Ci(l.common.issues)},input:l.data})}}removeCatch(){return this._def.innerType}}fp.create=(n,a)=>new fp({innerType:n,typeName:Be.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...kt(a)});class Ov extends It{_parse(a){if(this._getType(a)!==et.nan){const l=this._getOrReturnCtx(a);return Fe(l,{code:Me.invalid_type,expected:et.nan,received:l.parsedType}),vt}return{status:"valid",value:a.data}}}Ov.create=n=>new Ov({typeName:Be.ZodNaN,...kt(n)});class dA extends It{_parse(a){const{ctx:s}=this._processInputParams(a),l=s.data;return this._def.type._parse({data:l,path:s.path,parent:s})}unwrap(){return this._def.type}}class Dp extends It{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:l.data,path:l.path,parent:l});return f.status==="aborted"?vt:f.status==="dirty"?(s.dirty(),Ko(f.value)):this._def.out._parseAsync({data:f.value,path:l.path,parent:l})})();{const c=this._def.in._parseSync({data:l.data,path:l.path,parent:l});return c.status==="aborted"?vt:c.status==="dirty"?(s.dirty(),{status:"dirty",value:c.value}):this._def.out._parseSync({data:c.value,path:l.path,parent:l})}}static create(a,s){return new Dp({in:a,out:s,typeName:Be.ZodPipeline})}}class dp extends It{_parse(a){const s=this._def.innerType._parse(a),l=c=>(Ml(c)&&(c.value=Object.freeze(c.value)),c);return ef(s)?s.then(c=>l(c)):l(s)}unwrap(){return this._def.innerType}}dp.create=(n,a)=>new dp({innerType:n,typeName:Be.ZodReadonly,...kt(a)});var Be;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Be||(Be={}));const Fr=us.create;ds.create;const kv=$r.create,zh=Fn.create;nf.create;af.create;Ys.create;const Sb=Ll.create;rf.create;cs.create;Ul.create;function hA(n,a){const s={...n};return Object.defineProperties(s,{$brand:{value:"auto-parseable-response-format",enumerable:!1},$parseRaw:{value:a,enumerable:!1}}),s}const pA=Symbol("Let zodToJsonSchema decide on which parser to use"),Mv={name:void 0,$refStrategy:"root",effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",nullableStrategy:"from-target",removeAdditionalStrategy:"passthrough",definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},mA=n=>typeof n=="string"?{...Mv,basePath:["#"],definitions:{},name:n}:{...Mv,basePath:["#"],definitions:{},...n},hp=n=>"_def"in n?n._def:n;function gA(n){if(!n)return!0;for(const a in n)return!1;return!0}const yA=n=>{const a=mA(n),s=a.name!==void 0?[...a.basePath,a.definitionPath,a.name]:a.basePath;return{...a,currentPath:s,propertyPath:void 0,seenRefs:new Set,seen:new Map(Object.entries(a.definitions).map(([l,c])=>[hp(c),{def:hp(c),path:[...a.basePath,a.definitionPath,l],jsonSchema:void 0}]))}};function wb(n,a,s,l){l!=null&&l.errorMessages&&s&&(n.errorMessage={...n.errorMessage,[a]:s})}function sn(n,a,s,l,c){n[a]=s,wb(n,a,l,c)}function vA(){return{}}function bA(n,a){var l,c;const s={type:"array"};return((c=(l=n.type)==null?void 0:l._def)==null?void 0:c.typeName)!==Be.ZodAny&&(s.items=Wt(n.type._def,{...a,currentPath:[...a.currentPath,"items"]})),n.minLength&&sn(s,"minItems",n.minLength.value,n.minLength.message,a),n.maxLength&&sn(s,"maxItems",n.maxLength.value,n.maxLength.message,a),n.exactLength&&(sn(s,"minItems",n.exactLength.value,n.exactLength.message,a),sn(s,"maxItems",n.exactLength.value,n.exactLength.message,a)),s}function xA(n,a){const s={type:"integer",format:"int64"};if(!n.checks)return s;for(const l of n.checks)switch(l.kind){case"min":a.target==="jsonSchema7"?l.inclusive?sn(s,"minimum",l.value,l.message,a):sn(s,"exclusiveMinimum",l.value,l.message,a):(l.inclusive||(s.exclusiveMinimum=!0),sn(s,"minimum",l.value,l.message,a));break;case"max":a.target==="jsonSchema7"?l.inclusive?sn(s,"maximum",l.value,l.message,a):sn(s,"exclusiveMaximum",l.value,l.message,a):(l.inclusive||(s.exclusiveMaximum=!0),sn(s,"maximum",l.value,l.message,a));break;case"multipleOf":sn(s,"multipleOf",l.value,l.message,a);break}return s}function SA(){return{type:"boolean"}}function wA(n,a){return Wt(n.type._def,a)}const AA=(n,a)=>Wt(n.innerType._def,a);function Ab(n,a,s){const l=s??a.dateStrategy;if(Array.isArray(l))return{anyOf:l.map((c,f)=>Ab(n,a,c))};switch(l){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return EA(n,a)}}const EA=(n,a)=>{const s={type:"integer",format:"unix-time"};if(a.target==="openApi3")return s;for(const l of n.checks)switch(l.kind){case"min":sn(s,"minimum",l.value,l.message,a);break;case"max":sn(s,"maximum",l.value,l.message,a);break}return s};function _A(n,a){return{...Wt(n.innerType._def,a),default:n.defaultValue()}}function TA(n,a,s){return a.effectStrategy==="input"?Wt(n.schema._def,a,s):{}}function CA(n){return{type:"string",enum:[...n.values]}}const NA=n=>"type"in n&&n.type==="string"?!1:"allOf"in n;function RA(n,a){const s=[Wt(n.left._def,{...a,currentPath:[...a.currentPath,"allOf","0"]}),Wt(n.right._def,{...a,currentPath:[...a.currentPath,"allOf","1"]})].filter(f=>!!f);let l=a.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0;const c=[];return s.forEach(f=>{if(NA(f))c.push(...f.allOf),f.unevaluatedProperties===void 0&&(l=void 0);else{let p=f;if("additionalProperties"in f&&f.additionalProperties===!1){const{additionalProperties:v,...S}=f;p=S}else l=void 0;c.push(p)}}),c.length?{allOf:c,...l}:void 0}function DA(n,a){const s=typeof n.value;return s!=="bigint"&&s!=="number"&&s!=="boolean"&&s!=="string"?{type:Array.isArray(n.value)?"array":"object"}:a.target==="openApi3"?{type:s==="bigint"?"integer":s,enum:[n.value]}:{type:s==="bigint"?"integer":s,const:n.value}}let Uh;const Bs={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Uh===void 0&&(Uh=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Uh),base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/};function Eb(n,a){const s={type:"string"};function l(c){return a.patternStrategy==="escape"?jA(c):c}if(n.checks)for(const c of n.checks)switch(c.kind){case"min":sn(s,"minLength",typeof s.minLength=="number"?Math.max(s.minLength,c.value):c.value,c.message,a);break;case"max":sn(s,"maxLength",typeof s.maxLength=="number"?Math.min(s.maxLength,c.value):c.value,c.message,a);break;case"email":switch(a.emailStrategy){case"format:email":Er(s,"email",c.message,a);break;case"format:idn-email":Er(s,"idn-email",c.message,a);break;case"pattern:zod":_r(s,Bs.email,c.message,a);break}break;case"url":Er(s,"uri",c.message,a);break;case"uuid":Er(s,"uuid",c.message,a);break;case"regex":_r(s,c.regex,c.message,a);break;case"cuid":_r(s,Bs.cuid,c.message,a);break;case"cuid2":_r(s,Bs.cuid2,c.message,a);break;case"startsWith":_r(s,RegExp(`^${l(c.value)}`),c.message,a);break;case"endsWith":_r(s,RegExp(`${l(c.value)}$`),c.message,a);break;case"datetime":Er(s,"date-time",c.message,a);break;case"date":Er(s,"date",c.message,a);break;case"time":Er(s,"time",c.message,a);break;case"duration":Er(s,"duration",c.message,a);break;case"length":sn(s,"minLength",typeof s.minLength=="number"?Math.max(s.minLength,c.value):c.value,c.message,a),sn(s,"maxLength",typeof s.maxLength=="number"?Math.min(s.maxLength,c.value):c.value,c.message,a);break;case"includes":{_r(s,RegExp(l(c.value)),c.message,a);break}case"ip":{c.version!=="v6"&&Er(s,"ipv4",c.message,a),c.version!=="v4"&&Er(s,"ipv6",c.message,a);break}case"emoji":_r(s,Bs.emoji,c.message,a);break;case"ulid":{_r(s,Bs.ulid,c.message,a);break}case"base64":{switch(a.base64Strategy){case"format:binary":{Er(s,"binary",c.message,a);break}case"contentEncoding:base64":{sn(s,"contentEncoding","base64",c.message,a);break}case"pattern:zod":{_r(s,Bs.base64,c.message,a);break}}break}case"nanoid":_r(s,Bs.nanoid,c.message,a)}return s}const jA=n=>Array.from(n).map(a=>/[a-zA-Z0-9]/.test(a)?a:`\\${a}`).join(""),Er=(n,a,s,l)=>{var c;n.format||(c=n.anyOf)!=null&&c.some(f=>f.format)?(n.anyOf||(n.anyOf=[]),n.format&&(n.anyOf.push({format:n.format,...n.errorMessage&&l.errorMessages&&{errorMessage:{format:n.errorMessage.format}}}),delete n.format,n.errorMessage&&(delete n.errorMessage.format,Object.keys(n.errorMessage).length===0&&delete n.errorMessage)),n.anyOf.push({format:a,...s&&l.errorMessages&&{errorMessage:{format:s}}})):sn(n,"format",a,s,l)},_r=(n,a,s,l)=>{var c;n.pattern||(c=n.allOf)!=null&&c.some(f=>f.pattern)?(n.allOf||(n.allOf=[]),n.pattern&&(n.allOf.push({pattern:n.pattern,...n.errorMessage&&l.errorMessages&&{errorMessage:{pattern:n.errorMessage.pattern}}}),delete n.pattern,n.errorMessage&&(delete n.errorMessage.pattern,Object.keys(n.errorMessage).length===0&&delete n.errorMessage)),n.allOf.push({pattern:Lv(a,l),...s&&l.errorMessages&&{errorMessage:{pattern:s}}})):sn(n,"pattern",Lv(a,l),s,l)},Lv=(n,a)=>{var x;const s=typeof n=="function"?n():n;if(!a.applyRegexFlags||!s.flags)return s.source;const l={i:s.flags.includes("i"),m:s.flags.includes("m"),s:s.flags.includes("s")},c=l.i?s.source.toLowerCase():s.source;let f="",p=!1,v=!1,S=!1;for(let A=0;A<c.length;A++){if(p){f+=c[A],p=!1;continue}if(l.i){if(v){if(c[A].match(/[a-z]/)){S?(f+=c[A],f+=`${c[A-2]}-${c[A]}`.toUpperCase(),S=!1):c[A+1]==="-"&&((x=c[A+2])!=null&&x.match(/[a-z]/))?(f+=c[A],S=!0):f+=`${c[A]}${c[A].toUpperCase()}`;continue}}else if(c[A].match(/[a-z]/)){f+=`[${c[A]}${c[A].toUpperCase()}]`;continue}}if(l.m){if(c[A]==="^"){f+=`(^|(?<=[\r
]))`;continue}else if(c[A]==="$"){f+=`($|(?=[\r
]))`;continue}}if(l.s&&c[A]==="."){f+=v?`${c[A]}\r
`:`[${c[A]}\r
]`;continue}f+=c[A],c[A]==="\\"?p=!0:v&&c[A]==="]"?v=!1:!v&&c[A]==="["&&(v=!0)}try{const A=new RegExp(f)}catch{return console.warn(`Could not convert regex pattern at ${a.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),s.source}return f};function _b(n,a){var l,c,f,p;if(a.target==="openApi3"&&((l=n.keyType)==null?void 0:l._def.typeName)===Be.ZodEnum)return{type:"object",required:n.keyType._def.values,properties:n.keyType._def.values.reduce((v,S)=>({...v,[S]:Wt(n.valueType._def,{...a,currentPath:[...a.currentPath,"properties",S]})??{}}),{}),additionalProperties:!1};const s={type:"object",additionalProperties:Wt(n.valueType._def,{...a,currentPath:[...a.currentPath,"additionalProperties"]})??{}};if(a.target==="openApi3")return s;if(((c=n.keyType)==null?void 0:c._def.typeName)===Be.ZodString&&((f=n.keyType._def.checks)!=null&&f.length)){const v=Object.entries(Eb(n.keyType._def,a)).reduce((S,[x,A])=>x==="type"?S:{...S,[x]:A},{});return{...s,propertyNames:v}}else if(((p=n.keyType)==null?void 0:p._def.typeName)===Be.ZodEnum)return{...s,propertyNames:{enum:n.keyType._def.values}};return s}function OA(n,a){if(a.mapStrategy==="record")return _b(n,a);const s=Wt(n.keyType._def,{...a,currentPath:[...a.currentPath,"items","items","0"]})||{},l=Wt(n.valueType._def,{...a,currentPath:[...a.currentPath,"items","items","1"]})||{};return{type:"array",maxItems:125,items:{type:"array",items:[s,l],minItems:2,maxItems:2}}}function kA(n){const a=n.values,l=Object.keys(n.values).filter(f=>typeof a[a[f]]!="number").map(f=>a[f]),c=Array.from(new Set(l.map(f=>typeof f)));return{type:c.length===1?c[0]==="string"?"string":"number":["string","number"],enum:l}}function MA(){return{not:{}}}function LA(n){return n.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}const sf={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function zA(n,a){if(a.target==="openApi3")return zv(n,a);const s=n.options instanceof Map?Array.from(n.options.values()):n.options;if(s.every(l=>l._def.typeName in sf&&(!l._def.checks||!l._def.checks.length))){const l=s.reduce((c,f)=>{const p=sf[f._def.typeName];return p&&!c.includes(p)?[...c,p]:c},[]);return{type:l.length>1?l:l[0]}}else if(s.every(l=>l._def.typeName==="ZodLiteral"&&!l.description)){const l=s.reduce((c,f)=>{const p=typeof f._def.value;switch(p){case"string":case"number":case"boolean":return[...c,p];case"bigint":return[...c,"integer"];case"object":if(f._def.value===null)return[...c,"null"];case"symbol":case"undefined":case"function":default:return c}},[]);if(l.length===s.length){const c=l.filter((f,p,v)=>v.indexOf(f)===p);return{type:c.length>1?c:c[0],enum:s.reduce((f,p)=>f.includes(p._def.value)?f:[...f,p._def.value],[])}}}else if(s.every(l=>l._def.typeName==="ZodEnum"))return{type:"string",enum:s.reduce((l,c)=>[...l,...c._def.values.filter(f=>!l.includes(f))],[])};return zv(n,a)}const zv=(n,a)=>{const s=(n.options instanceof Map?Array.from(n.options.values()):n.options).map((l,c)=>Wt(l._def,{...a,currentPath:[...a.currentPath,"anyOf",`${c}`]})).filter(l=>!!l&&(!a.strictUnions||typeof l=="object"&&Object.keys(l).length>0));return s.length?{anyOf:s}:void 0};function UA(n,a){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(n.innerType._def.typeName)&&(!n.innerType._def.checks||!n.innerType._def.checks.length))return a.target==="openApi3"||a.nullableStrategy==="property"?{type:sf[n.innerType._def.typeName],nullable:!0}:{type:[sf[n.innerType._def.typeName],"null"]};if(a.target==="openApi3"){const l=Wt(n.innerType._def,{...a,currentPath:[...a.currentPath]});return l&&"$ref"in l?{allOf:[l],nullable:!0}:l&&{...l,nullable:!0}}const s=Wt(n.innerType._def,{...a,currentPath:[...a.currentPath,"anyOf","0"]});return s&&{anyOf:[s,{type:"null"}]}}function BA(n,a){const s={type:"number"};if(!n.checks)return s;for(const l of n.checks)switch(l.kind){case"int":s.type="integer",wb(s,"type",l.message,a);break;case"min":a.target==="jsonSchema7"?l.inclusive?sn(s,"minimum",l.value,l.message,a):sn(s,"exclusiveMinimum",l.value,l.message,a):(l.inclusive||(s.exclusiveMinimum=!0),sn(s,"minimum",l.value,l.message,a));break;case"max":a.target==="jsonSchema7"?l.inclusive?sn(s,"maximum",l.value,l.message,a):sn(s,"exclusiveMaximum",l.value,l.message,a):(l.inclusive||(s.exclusiveMaximum=!0),sn(s,"maximum",l.value,l.message,a));break;case"multipleOf":sn(s,"multipleOf",l.value,l.message,a);break}return s}function HA(n,a){return a.removeAdditionalStrategy==="strict"?n.catchall._def.typeName==="ZodNever"?n.unknownKeys!=="strict":Wt(n.catchall._def,{...a,currentPath:[...a.currentPath,"additionalProperties"]})??!0:n.catchall._def.typeName==="ZodNever"?n.unknownKeys==="passthrough":Wt(n.catchall._def,{...a,currentPath:[...a.currentPath,"additionalProperties"]})??!0}function qA(n,a){const s={type:"object",...Object.entries(n.shape()).reduce((l,[c,f])=>{if(f===void 0||f._def===void 0)return l;const p=[...a.currentPath,"properties",c],v=Wt(f._def,{...a,currentPath:p,propertyPath:p});return v===void 0?l:(a.openaiStrictMode&&f.isOptional()&&!f.isNullable()&&console.warn(`Zod field at \`${p.join("/")}\` uses \`.optional()\` without \`.nullable()\` which is not supported by the API. See: https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#all-fields-must-be-required
This will become an error in a future version of the SDK.`),{properties:{...l.properties,[c]:v},required:f.isOptional()&&!a.openaiStrictMode?l.required:[...l.required,c]})},{properties:{},required:[]}),additionalProperties:HA(n,a)};return s.required.length||delete s.required,s}const VA=(n,a)=>{var l;if(a.currentPath.toString()===((l=a.propertyPath)==null?void 0:l.toString()))return Wt(n.innerType._def,a);const s=Wt(n.innerType._def,{...a,currentPath:[...a.currentPath,"anyOf","1"]});return s?{anyOf:[{not:{}},s]}:{}},PA=(n,a)=>{if(a.pipeStrategy==="input")return Wt(n.in._def,a);if(a.pipeStrategy==="output")return Wt(n.out._def,a);const s=Wt(n.in._def,{...a,currentPath:[...a.currentPath,"allOf","0"]}),l=Wt(n.out._def,{...a,currentPath:[...a.currentPath,"allOf",s?"1":"0"]});return{allOf:[s,l].filter(c=>c!==void 0)}};function YA(n,a){return Wt(n.type._def,a)}function ZA(n,a){const l={type:"array",uniqueItems:!0,items:Wt(n.valueType._def,{...a,currentPath:[...a.currentPath,"items"]})};return n.minSize&&sn(l,"minItems",n.minSize.value,n.minSize.message,a),n.maxSize&&sn(l,"maxItems",n.maxSize.value,n.maxSize.message,a),l}function XA(n,a){return n.rest?{type:"array",minItems:n.items.length,items:n.items.map((s,l)=>Wt(s._def,{...a,currentPath:[...a.currentPath,"items",`${l}`]})).reduce((s,l)=>l===void 0?s:[...s,l],[]),additionalItems:Wt(n.rest._def,{...a,currentPath:[...a.currentPath,"additionalItems"]})}:{type:"array",minItems:n.items.length,maxItems:n.items.length,items:n.items.map((s,l)=>Wt(s._def,{...a,currentPath:[...a.currentPath,"items",`${l}`]})).reduce((s,l)=>l===void 0?s:[...s,l],[])}}function FA(){return{not:{}}}function GA(){return{}}const IA=(n,a)=>Wt(n.innerType._def,a);function Wt(n,a,s=!1){var p;const l=a.seen.get(n);if(a.override){const v=(p=a.override)==null?void 0:p.call(a,n,a,l,s);if(v!==pA)return v}if(l&&!s){const v=QA(l,a);if(v!==void 0)return"$ref"in v&&a.seenRefs.add(v.$ref),v}const c={def:n,path:a.currentPath,jsonSchema:void 0};a.seen.set(n,c);const f=$A(n,n.typeName,a,s);return f&&WA(n,a,f),c.jsonSchema=f,f}const QA=(n,a)=>{switch(a.$refStrategy){case"root":return{$ref:n.path.join("/")};case"extract-to-root":const s=n.path.slice(a.basePath.length+1).join("_");return s!==a.name&&a.nameStrategy==="duplicate-ref"&&(a.definitions[s]=n.def),{$ref:[...a.basePath,a.definitionPath,s].join("/")};case"relative":return{$ref:KA(a.currentPath,n.path)};case"none":case"seen":return n.path.length<a.currentPath.length&&n.path.every((l,c)=>a.currentPath[c]===l)?(console.warn(`Recursive reference detected at ${a.currentPath.join("/")}! Defaulting to any`),{}):a.$refStrategy==="seen"?{}:void 0}},KA=(n,a)=>{let s=0;for(;s<n.length&&s<a.length&&n[s]===a[s];s++);return[(n.length-s).toString(),...a.slice(s)].join("/")},$A=(n,a,s,l)=>{switch(a){case Be.ZodString:return Eb(n,s);case Be.ZodNumber:return BA(n,s);case Be.ZodObject:return qA(n,s);case Be.ZodBigInt:return xA(n,s);case Be.ZodBoolean:return SA();case Be.ZodDate:return Ab(n,s);case Be.ZodUndefined:return FA();case Be.ZodNull:return LA(s);case Be.ZodArray:return bA(n,s);case Be.ZodUnion:case Be.ZodDiscriminatedUnion:return zA(n,s);case Be.ZodIntersection:return RA(n,s);case Be.ZodTuple:return XA(n,s);case Be.ZodRecord:return _b(n,s);case Be.ZodLiteral:return DA(n,s);case Be.ZodEnum:return CA(n);case Be.ZodNativeEnum:return kA(n);case Be.ZodNullable:return UA(n,s);case Be.ZodOptional:return VA(n,s);case Be.ZodMap:return OA(n,s);case Be.ZodSet:return ZA(n,s);case Be.ZodLazy:return Wt(n.getter()._def,s);case Be.ZodPromise:return YA(n,s);case Be.ZodNaN:case Be.ZodNever:return MA();case Be.ZodEffects:return TA(n,s,l);case Be.ZodAny:return vA();case Be.ZodUnknown:return GA();case Be.ZodDefault:return _A(n,s);case Be.ZodBranded:return wA(n,s);case Be.ZodReadonly:return IA(n,s);case Be.ZodCatch:return AA(n,s);case Be.ZodPipeline:return PA(n,s);case Be.ZodFunction:case Be.ZodVoid:case Be.ZodSymbol:return;default:return(c=>{})()}},WA=(n,a,s)=>(n.description&&(s.description=n.description,a.markdownDescription&&(s.markdownDescription=n.description)),s),JA=(n,a)=>{const s=yA(a),l=typeof a=="string"?a:(a==null?void 0:a.nameStrategy)==="title"||a==null?void 0:a.name,c=Wt(n._def,l===void 0?s:{...s,currentPath:[...s.basePath,s.definitionPath,l]},!1)??{},f=typeof a=="object"&&a.name!==void 0&&a.nameStrategy==="title"?a.name:void 0;f!==void 0&&(c.title=f);const p=(()=>{if(gA(s.definitions))return;const S={},x=new Set;for(let A=0;A<500;A++){const w=Object.entries(s.definitions).filter(([j])=>!x.has(j));if(w.length===0)break;for(const[j,M]of w)S[j]=Wt(hp(M),{...s,currentPath:[...s.basePath,s.definitionPath,j]},!0)??{},x.add(j)}return S})(),v=l===void 0?p?{...c,[s.definitionPath]:p}:c:s.nameStrategy==="duplicate-ref"?{...c,...p||s.seenRefs.size?{[s.definitionPath]:{...p,...s.seenRefs.size?{[l]:c}:void 0}}:void 0}:{$ref:[...s.$refStrategy==="relative"?[]:s.basePath,s.definitionPath,l].join("/"),[s.definitionPath]:{...p,[l]:c}};return s.target==="jsonSchema7"?v.$schema="http://json-schema.org/draft-07/schema#":s.target==="jsonSchema2019-09"&&(v.$schema="https://json-schema.org/draft/2019-09/schema#"),v};function eE(n,a){return JA(n,{openaiStrictMode:!0,name:a.name,nameStrategy:"duplicate-ref",$refStrategy:"extract-to-root",nullableStrategy:"property"})}function tE(n,a,s){return hA({type:"json_schema",json_schema:{...s,name:a,strict:!0,schema:eE(n,{name:a})}},l=>n.parse(JSON.parse(l)))}const nE=Sb(["header","hero_banner","inner_banner","about","benefit_detail","benefits_listing","posts_grid","latest_posts","contact_form","contact_information","call_to_action","faqs","feature_detail","features_listing","social_cards","gallery","listing_grid","practice_areas","statistics_bar","reviews","testimonials","portfolio","social_proof_logos","media_and_text","informational_content","footer"]),aE=zh({website_title:Fr(),website_description:Fr(),website_type:Fr(),website_industry:Sb(["Technology","Finance","Healthcare","Education","Entertainment","Media & Publishing","Real Estate","Travel & Hospitality","Automotive","Non-Profit Organization","Fashion","Food & Beverage","Beauty & Wellness","Construction","Legal Services","Consulting"]),search_query:Fr(),pages:kv(zh({page_type:Fr(),page_title:Fr(),page_description:Fr(),sections:kv(zh({section_type:nE,section_title:Fr(),section_description:Fr(),section_prompt:Fr()}))}))}),rE=tE(aE,"websiteUI");var Ic={exports:{}};/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/var iE=Ic.exports,Uv;function sE(){return Uv||(Uv=1,(function(n){(function(a,s){n.exports=a.document?s(a,!0):function(l){if(!l.document)throw new Error("jQuery requires a window with a document");return s(l)}})(typeof window<"u"?window:iE,function(a,s){var l=[],c=Object.getPrototypeOf,f=l.slice,p=l.flat?function(u){return l.flat.call(u)}:function(u){return l.concat.apply([],u)},v=l.push,S=l.indexOf,x={},A=x.toString,w=x.hasOwnProperty,j=w.toString,M=j.call(Object),z={},O=function(h){return typeof h=="function"&&typeof h.nodeType!="number"&&typeof h.item!="function"},U=function(h){return h!=null&&h===h.window},L=a.document,P={type:!0,src:!0,nonce:!0,noModule:!0};function Z(u,h,y){y=y||L;var b,_,C=y.createElement("script");if(C.text=u,h)for(b in P)_=h[b]||h.getAttribute&&h.getAttribute(b),_&&C.setAttribute(b,_);y.head.appendChild(C).parentNode.removeChild(C)}function ee(u){return u==null?u+"":typeof u=="object"||typeof u=="function"?x[A.call(u)]||"object":typeof u}var I="3.7.1",ie=/HTML$/i,g=function(u,h){return new g.fn.init(u,h)};g.fn=g.prototype={jquery:I,constructor:g,length:0,toArray:function(){return f.call(this)},get:function(u){return u==null?f.call(this):u<0?this[u+this.length]:this[u]},pushStack:function(u){var h=g.merge(this.constructor(),u);return h.prevObject=this,h},each:function(u){return g.each(this,u)},map:function(u){return this.pushStack(g.map(this,function(h,y){return u.call(h,y,h)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(u,h){return(h+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(u,h){return h%2}))},eq:function(u){var h=this.length,y=+u+(u<0?h:0);return this.pushStack(y>=0&&y<h?[this[y]]:[])},end:function(){return this.prevObject||this.constructor()},push:v,sort:l.sort,splice:l.splice},g.extend=g.fn.extend=function(){var u,h,y,b,_,C,N=arguments[0]||{},Y=1,B=arguments.length,K=!1;for(typeof N=="boolean"&&(K=N,N=arguments[Y]||{},Y++),typeof N!="object"&&!O(N)&&(N={}),Y===B&&(N=this,Y--);Y<B;Y++)if((u=arguments[Y])!=null)for(h in u)b=u[h],!(h==="__proto__"||N===b)&&(K&&b&&(g.isPlainObject(b)||(_=Array.isArray(b)))?(y=N[h],_&&!Array.isArray(y)?C=[]:!_&&!g.isPlainObject(y)?C={}:C=y,_=!1,N[h]=g.extend(K,C,b)):b!==void 0&&(N[h]=b));return N},g.extend({expando:"jQuery"+(I+Math.random()).replace(/\D/g,""),isReady:!0,error:function(u){throw new Error(u)},noop:function(){},isPlainObject:function(u){var h,y;return!u||A.call(u)!=="[object Object]"?!1:(h=c(u),h?(y=w.call(h,"constructor")&&h.constructor,typeof y=="function"&&j.call(y)===M):!0)},isEmptyObject:function(u){var h;for(h in u)return!1;return!0},globalEval:function(u,h,y){Z(u,{nonce:h&&h.nonce},y)},each:function(u,h){var y,b=0;if(Q(u))for(y=u.length;b<y&&h.call(u[b],b,u[b])!==!1;b++);else for(b in u)if(h.call(u[b],b,u[b])===!1)break;return u},text:function(u){var h,y="",b=0,_=u.nodeType;if(!_)for(;h=u[b++];)y+=g.text(h);return _===1||_===11?u.textContent:_===9?u.documentElement.textContent:_===3||_===4?u.nodeValue:y},makeArray:function(u,h){var y=h||[];return u!=null&&(Q(Object(u))?g.merge(y,typeof u=="string"?[u]:u):v.call(y,u)),y},inArray:function(u,h,y){return h==null?-1:S.call(h,u,y)},isXMLDoc:function(u){var h=u&&u.namespaceURI,y=u&&(u.ownerDocument||u).documentElement;return!ie.test(h||y&&y.nodeName||"HTML")},merge:function(u,h){for(var y=+h.length,b=0,_=u.length;b<y;b++)u[_++]=h[b];return u.length=_,u},grep:function(u,h,y){for(var b,_=[],C=0,N=u.length,Y=!y;C<N;C++)b=!h(u[C],C),b!==Y&&_.push(u[C]);return _},map:function(u,h,y){var b,_,C=0,N=[];if(Q(u))for(b=u.length;C<b;C++)_=h(u[C],C,y),_!=null&&N.push(_);else for(C in u)_=h(u[C],C,y),_!=null&&N.push(_);return p(N)},guid:1,support:z}),typeof Symbol=="function"&&(g.fn[Symbol.iterator]=l[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(u,h){x["[object "+h+"]"]=h.toLowerCase()});function Q(u){var h=!!u&&"length"in u&&u.length,y=ee(u);return O(u)||U(u)?!1:y==="array"||h===0||typeof h=="number"&&h>0&&h-1 in u}function ne(u,h){return u.nodeName&&u.nodeName.toLowerCase()===h.toLowerCase()}var ze=l.pop,ke=l.sort,je=l.splice,Ee="[\\x20\\t\\r\\n\\f]",Xe=new RegExp("^"+Ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ee+"+$","g");g.contains=function(u,h){var y=h&&h.parentNode;return u===y||!!(y&&y.nodeType===1&&(u.contains?u.contains(y):u.compareDocumentPosition&&u.compareDocumentPosition(y)&16))};var $e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function W(u,h){return h?u==="\0"?"�":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u}g.escapeSelector=function(u){return(u+"").replace($e,W)};var pe=L,Ue=v;(function(){var u,h,y,b,_,C=Ue,N,Y,B,K,me,xe=g.expando,le=0,De=0,pt=Hr(),zt=Hr(),bt=Hr(),In=Hr(),Bn=function(k,F){return k===F&&(_=!0),0},Wa="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Ja="(?:\\\\[\\da-fA-F]{1,6}"+Ee+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",jt="\\["+Ee+"*("+Ja+")(?:"+Ee+"*([*^$|!~]?=)"+Ee+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ja+"))|)"+Ee+"*\\]",li=":("+Ja+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+jt+")*)|.*)\\)|)",qt=new RegExp(Ee+"+","g"),An=new RegExp("^"+Ee+"*,"+Ee+"*"),oi=new RegExp("^"+Ee+"*([>+~]|"+Ee+")"+Ee+"*"),ui=new RegExp(Ee+"|>"),er=new RegExp(li),zi=new RegExp("^"+Ja+"$"),qa={ID:new RegExp("^#("+Ja+")"),CLASS:new RegExp("^\\.("+Ja+")"),TAG:new RegExp("^("+Ja+"|[*])"),ATTR:new RegExp("^"+jt),PSEUDO:new RegExp("^"+li),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ee+"*(even|odd|(([+-]|)(\\d*)n|)"+Ee+"*(?:([+-]|)"+Ee+"*(\\d+)|))"+Ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Wa+")$","i"),needsContext:new RegExp("^"+Ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ee+"*((?:-\\d)?\\d*)"+Ee+"*\\)|)(?=[^-]|$)","i")},pr=/^(?:input|select|textarea|button)$/i,mr=/^h\d$/i,Sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Br=/[+~]/,gr=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ee+"?|\\\\([^\\r\\n\\f])","g"),yr=function(k,F){var re="0x"+k.slice(1)-65536;return F||(re<0?String.fromCharCode(re+65536):String.fromCharCode(re>>10|55296,re&1023|56320))},Hf=function(){xr()},Cu=$s(function(k){return k.disabled===!0&&ne(k,"fieldset")},{dir:"parentNode",next:"legend"});function Nu(){try{return N.activeElement}catch{}}try{C.apply(l=f.call(pe.childNodes),pe.childNodes),l[pe.childNodes.length].nodeType}catch{C={apply:function(F,re){Ue.apply(F,f.call(re))},call:function(F){Ue.apply(F,f.call(arguments,1))}}}function Vt(k,F,re,ce){var ve,Le,Ze,Ke,Pe,St,ut,st=F&&F.ownerDocument,_t=F?F.nodeType:9;if(re=re||[],typeof k!="string"||!k||_t!==1&&_t!==9&&_t!==11)return re;if(!ce&&(xr(F),F=F||N,B)){if(_t!==11&&(Pe=Sa.exec(k)))if(ve=Pe[1]){if(_t===9)if(Ze=F.getElementById(ve)){if(Ze.id===ve)return C.call(re,Ze),re}else return re;else if(st&&(Ze=st.getElementById(ve))&&Vt.contains(F,Ze)&&Ze.id===ve)return C.call(re,Ze),re}else{if(Pe[2])return C.apply(re,F.getElementsByTagName(k)),re;if((ve=Pe[3])&&F.getElementsByClassName)return C.apply(re,F.getElementsByClassName(ve)),re}if(!In[k+" "]&&(!K||!K.test(k))){if(ut=k,st=F,_t===1&&(ui.test(k)||oi.test(k))){for(st=Br.test(k)&&Qs(F.parentNode)||F,(st!=F||!z.scope)&&((Ke=F.getAttribute("id"))?Ke=g.escapeSelector(Ke):F.setAttribute("id",Ke=xe)),St=Es(k),Le=St.length;Le--;)St[Le]=(Ke?"#"+Ke:":scope")+" "+Ks(St[Le]);ut=St.join(",")}try{return C.apply(re,st.querySelectorAll(ut)),re}catch{In(k,!0)}finally{Ke===xe&&F.removeAttribute("id")}}}return ro(k.replace(Xe,"$1"),F,re,ce)}function Hr(){var k=[];function F(re,ce){return k.push(re+" ")>h.cacheLength&&delete F[k.shift()],F[re+" "]=ce}return F}function Va(k){return k[xe]=!0,k}function vr(k){var F=N.createElement("fieldset");try{return!!k(F)}catch{return!1}finally{F.parentNode&&F.parentNode.removeChild(F),F=null}}function Ru(k){return function(F){return ne(F,"input")&&F.type===k}}function Du(k){return function(F){return(ne(F,"input")||ne(F,"button"))&&F.type===k}}function Is(k){return function(F){return"form"in F?F.parentNode&&F.disabled===!1?"label"in F?"label"in F.parentNode?F.parentNode.disabled===k:F.disabled===k:F.isDisabled===k||F.isDisabled!==!k&&Cu(F)===k:F.disabled===k:"label"in F?F.disabled===k:!1}}function br(k){return Va(function(F){return F=+F,Va(function(re,ce){for(var ve,Le=k([],re.length,F),Ze=Le.length;Ze--;)re[ve=Le[Ze]]&&(re[ve]=!(ce[ve]=re[ve]))})})}function Qs(k){return k&&typeof k.getElementsByTagName<"u"&&k}function xr(k){var F,re=k?k.ownerDocument||k:pe;return re==N||re.nodeType!==9||!re.documentElement||(N=re,Y=N.documentElement,B=!g.isXMLDoc(N),me=Y.matches||Y.webkitMatchesSelector||Y.msMatchesSelector,Y.msMatchesSelector&&pe!=N&&(F=N.defaultView)&&F.top!==F&&F.addEventListener("unload",Hf),z.getById=vr(function(ce){return Y.appendChild(ce).id=g.expando,!N.getElementsByName||!N.getElementsByName(g.expando).length}),z.disconnectedMatch=vr(function(ce){return me.call(ce,"*")}),z.scope=vr(function(){return N.querySelectorAll(":scope")}),z.cssHas=vr(function(){try{return N.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),z.getById?(h.filter.ID=function(ce){var ve=ce.replace(gr,yr);return function(Le){return Le.getAttribute("id")===ve}},h.find.ID=function(ce,ve){if(typeof ve.getElementById<"u"&&B){var Le=ve.getElementById(ce);return Le?[Le]:[]}}):(h.filter.ID=function(ce){var ve=ce.replace(gr,yr);return function(Le){var Ze=typeof Le.getAttributeNode<"u"&&Le.getAttributeNode("id");return Ze&&Ze.value===ve}},h.find.ID=function(ce,ve){if(typeof ve.getElementById<"u"&&B){var Le,Ze,Ke,Pe=ve.getElementById(ce);if(Pe){if(Le=Pe.getAttributeNode("id"),Le&&Le.value===ce)return[Pe];for(Ke=ve.getElementsByName(ce),Ze=0;Pe=Ke[Ze++];)if(Le=Pe.getAttributeNode("id"),Le&&Le.value===ce)return[Pe]}return[]}}),h.find.TAG=function(ce,ve){return typeof ve.getElementsByTagName<"u"?ve.getElementsByTagName(ce):ve.querySelectorAll(ce)},h.find.CLASS=function(ce,ve){if(typeof ve.getElementsByClassName<"u"&&B)return ve.getElementsByClassName(ce)},K=[],vr(function(ce){var ve;Y.appendChild(ce).innerHTML="<a id='"+xe+"' href='' disabled='disabled'></a><select id='"+xe+"-\r\\' disabled='disabled'><option selected=''></option></select>",ce.querySelectorAll("[selected]").length||K.push("\\["+Ee+"*(?:value|"+Wa+")"),ce.querySelectorAll("[id~="+xe+"-]").length||K.push("~="),ce.querySelectorAll("a#"+xe+"+*").length||K.push(".#.+[+~]"),ce.querySelectorAll(":checked").length||K.push(":checked"),ve=N.createElement("input"),ve.setAttribute("type","hidden"),ce.appendChild(ve).setAttribute("name","D"),Y.appendChild(ce).disabled=!0,ce.querySelectorAll(":disabled").length!==2&&K.push(":enabled",":disabled"),ve=N.createElement("input"),ve.setAttribute("name",""),ce.appendChild(ve),ce.querySelectorAll("[name='']").length||K.push("\\["+Ee+"*name"+Ee+"*="+Ee+`*(?:''|"")`)}),z.cssHas||K.push(":has"),K=K.length&&new RegExp(K.join("|")),Bn=function(ce,ve){if(ce===ve)return _=!0,0;var Le=!ce.compareDocumentPosition-!ve.compareDocumentPosition;return Le||(Le=(ce.ownerDocument||ce)==(ve.ownerDocument||ve)?ce.compareDocumentPosition(ve):1,Le&1||!z.sortDetached&&ve.compareDocumentPosition(ce)===Le?ce===N||ce.ownerDocument==pe&&Vt.contains(pe,ce)?-1:ve===N||ve.ownerDocument==pe&&Vt.contains(pe,ve)?1:b?S.call(b,ce)-S.call(b,ve):0:Le&4?-1:1)}),N}Vt.matches=function(k,F){return Vt(k,null,null,F)},Vt.matchesSelector=function(k,F){if(xr(k),B&&!In[F+" "]&&(!K||!K.test(F)))try{var re=me.call(k,F);if(re||z.disconnectedMatch||k.document&&k.document.nodeType!==11)return re}catch{In(F,!0)}return Vt(F,N,null,[k]).length>0},Vt.contains=function(k,F){return(k.ownerDocument||k)!=N&&xr(k),g.contains(k,F)},Vt.attr=function(k,F){(k.ownerDocument||k)!=N&&xr(k);var re=h.attrHandle[F.toLowerCase()],ce=re&&w.call(h.attrHandle,F.toLowerCase())?re(k,F,!B):void 0;return ce!==void 0?ce:k.getAttribute(F)},Vt.error=function(k){throw new Error("Syntax error, unrecognized expression: "+k)},g.uniqueSort=function(k){var F,re=[],ce=0,ve=0;if(_=!z.sortStable,b=!z.sortStable&&f.call(k,0),ke.call(k,Bn),_){for(;F=k[ve++];)F===k[ve]&&(ce=re.push(ve));for(;ce--;)je.call(k,re[ce],1)}return b=null,k},g.fn.uniqueSort=function(){return this.pushStack(g.uniqueSort(f.apply(this)))},h=g.expr={cacheLength:50,createPseudo:Va,match:qa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(k){return k[1]=k[1].replace(gr,yr),k[3]=(k[3]||k[4]||k[5]||"").replace(gr,yr),k[2]==="~="&&(k[3]=" "+k[3]+" "),k.slice(0,4)},CHILD:function(k){return k[1]=k[1].toLowerCase(),k[1].slice(0,3)==="nth"?(k[3]||Vt.error(k[0]),k[4]=+(k[4]?k[5]+(k[6]||1):2*(k[3]==="even"||k[3]==="odd")),k[5]=+(k[7]+k[8]||k[3]==="odd")):k[3]&&Vt.error(k[0]),k},PSEUDO:function(k){var F,re=!k[6]&&k[2];return qa.CHILD.test(k[0])?null:(k[3]?k[2]=k[4]||k[5]||"":re&&er.test(re)&&(F=Es(re,!0))&&(F=re.indexOf(")",re.length-F)-re.length)&&(k[0]=k[0].slice(0,F),k[2]=re.slice(0,F)),k.slice(0,3))}},filter:{TAG:function(k){var F=k.replace(gr,yr).toLowerCase();return k==="*"?function(){return!0}:function(re){return ne(re,F)}},CLASS:function(k){var F=pt[k+" "];return F||(F=new RegExp("(^|"+Ee+")"+k+"("+Ee+"|$)"))&&pt(k,function(re){return F.test(typeof re.className=="string"&&re.className||typeof re.getAttribute<"u"&&re.getAttribute("class")||"")})},ATTR:function(k,F,re){return function(ce){var ve=Vt.attr(ce,k);return ve==null?F==="!=":F?(ve+="",F==="="?ve===re:F==="!="?ve!==re:F==="^="?re&&ve.indexOf(re)===0:F==="*="?re&&ve.indexOf(re)>-1:F==="$="?re&&ve.slice(-re.length)===re:F==="~="?(" "+ve.replace(qt," ")+" ").indexOf(re)>-1:F==="|="?ve===re||ve.slice(0,re.length+1)===re+"-":!1):!0}},CHILD:function(k,F,re,ce,ve){var Le=k.slice(0,3)!=="nth",Ze=k.slice(-4)!=="last",Ke=F==="of-type";return ce===1&&ve===0?function(Pe){return!!Pe.parentNode}:function(Pe,St,ut){var st,_t,it,nn,ma,ra=Le!==Ze?"nextSibling":"previousSibling",Da=Pe.parentNode,Pa=Ke&&Pe.nodeName.toLowerCase(),fi=!ut&&!Ke,Qn=!1;if(Da){if(Le){for(;ra;){for(it=Pe;it=it[ra];)if(Ke?ne(it,Pa):it.nodeType===1)return!1;ma=ra=k==="only"&&!ma&&"nextSibling"}return!0}if(ma=[Ze?Da.firstChild:Da.lastChild],Ze&&fi){for(_t=Da[xe]||(Da[xe]={}),st=_t[k]||[],nn=st[0]===le&&st[1],Qn=nn&&st[2],it=nn&&Da.childNodes[nn];it=++nn&&it&&it[ra]||(Qn=nn=0)||ma.pop();)if(it.nodeType===1&&++Qn&&it===Pe){_t[k]=[le,nn,Qn];break}}else if(fi&&(_t=Pe[xe]||(Pe[xe]={}),st=_t[k]||[],nn=st[0]===le&&st[1],Qn=nn),Qn===!1)for(;(it=++nn&&it&&it[ra]||(Qn=nn=0)||ma.pop())&&!((Ke?ne(it,Pa):it.nodeType===1)&&++Qn&&(fi&&(_t=it[xe]||(it[xe]={}),_t[k]=[le,Qn]),it===Pe)););return Qn-=ve,Qn===ce||Qn%ce===0&&Qn/ce>=0}}},PSEUDO:function(k,F){var re,ce=h.pseudos[k]||h.setFilters[k.toLowerCase()]||Vt.error("unsupported pseudo: "+k);return ce[xe]?ce(F):ce.length>1?(re=[k,k,"",F],h.setFilters.hasOwnProperty(k.toLowerCase())?Va(function(ve,Le){for(var Ze,Ke=ce(ve,F),Pe=Ke.length;Pe--;)Ze=S.call(ve,Ke[Pe]),ve[Ze]=!(Le[Ze]=Ke[Pe])}):function(ve){return ce(ve,0,re)}):ce}},pseudos:{not:Va(function(k){var F=[],re=[],ce=Js(k.replace(Xe,"$1"));return ce[xe]?Va(function(ve,Le,Ze,Ke){for(var Pe,St=ce(ve,null,Ke,[]),ut=ve.length;ut--;)(Pe=St[ut])&&(ve[ut]=!(Le[ut]=Pe))}):function(ve,Le,Ze){return F[0]=ve,ce(F,null,Ze,re),F[0]=null,!re.pop()}}),has:Va(function(k){return function(F){return Vt(k,F).length>0}}),contains:Va(function(k){return k=k.replace(gr,yr),function(F){return(F.textContent||g.text(F)).indexOf(k)>-1}}),lang:Va(function(k){return zi.test(k||"")||Vt.error("unsupported lang: "+k),k=k.replace(gr,yr).toLowerCase(),function(F){var re;do if(re=B?F.lang:F.getAttribute("xml:lang")||F.getAttribute("lang"))return re=re.toLowerCase(),re===k||re.indexOf(k+"-")===0;while((F=F.parentNode)&&F.nodeType===1);return!1}}),target:function(k){var F=a.location&&a.location.hash;return F&&F.slice(1)===k.id},root:function(k){return k===Y},focus:function(k){return k===Nu()&&N.hasFocus()&&!!(k.type||k.href||~k.tabIndex)},enabled:Is(!1),disabled:Is(!0),checked:function(k){return ne(k,"input")&&!!k.checked||ne(k,"option")&&!!k.selected},selected:function(k){return k.parentNode&&k.parentNode.selectedIndex,k.selected===!0},empty:function(k){for(k=k.firstChild;k;k=k.nextSibling)if(k.nodeType<6)return!1;return!0},parent:function(k){return!h.pseudos.empty(k)},header:function(k){return mr.test(k.nodeName)},input:function(k){return pr.test(k.nodeName)},button:function(k){return ne(k,"input")&&k.type==="button"||ne(k,"button")},text:function(k){var F;return ne(k,"input")&&k.type==="text"&&((F=k.getAttribute("type"))==null||F.toLowerCase()==="text")},first:br(function(){return[0]}),last:br(function(k,F){return[F-1]}),eq:br(function(k,F,re){return[re<0?re+F:re]}),even:br(function(k,F){for(var re=0;re<F;re+=2)k.push(re);return k}),odd:br(function(k,F){for(var re=1;re<F;re+=2)k.push(re);return k}),lt:br(function(k,F,re){var ce;for(re<0?ce=re+F:re>F?ce=F:ce=re;--ce>=0;)k.push(ce);return k}),gt:br(function(k,F,re){for(var ce=re<0?re+F:re;++ce<F;)k.push(ce);return k})}},h.pseudos.nth=h.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})h.pseudos[u]=Ru(u);for(u in{submit:!0,reset:!0})h.pseudos[u]=Du(u);function no(){}no.prototype=h.filters=h.pseudos,h.setFilters=new no;function Es(k,F){var re,ce,ve,Le,Ze,Ke,Pe,St=zt[k+" "];if(St)return F?0:St.slice(0);for(Ze=k,Ke=[],Pe=h.preFilter;Ze;){(!re||(ce=An.exec(Ze)))&&(ce&&(Ze=Ze.slice(ce[0].length)||Ze),Ke.push(ve=[])),re=!1,(ce=oi.exec(Ze))&&(re=ce.shift(),ve.push({value:re,type:ce[0].replace(Xe," ")}),Ze=Ze.slice(re.length));for(Le in h.filter)(ce=qa[Le].exec(Ze))&&(!Pe[Le]||(ce=Pe[Le](ce)))&&(re=ce.shift(),ve.push({value:re,type:Le,matches:ce}),Ze=Ze.slice(re.length));if(!re)break}return F?Ze.length:Ze?Vt.error(k):zt(k,Ke).slice(0)}function Ks(k){for(var F=0,re=k.length,ce="";F<re;F++)ce+=k[F].value;return ce}function $s(k,F,re){var ce=F.dir,ve=F.next,Le=ve||ce,Ze=re&&Le==="parentNode",Ke=De++;return F.first?function(Pe,St,ut){for(;Pe=Pe[ce];)if(Pe.nodeType===1||Ze)return k(Pe,St,ut);return!1}:function(Pe,St,ut){var st,_t,it=[le,Ke];if(ut){for(;Pe=Pe[ce];)if((Pe.nodeType===1||Ze)&&k(Pe,St,ut))return!0}else for(;Pe=Pe[ce];)if(Pe.nodeType===1||Ze)if(_t=Pe[xe]||(Pe[xe]={}),ve&&ne(Pe,ve))Pe=Pe[ce]||Pe;else{if((st=_t[Le])&&st[0]===le&&st[1]===Ke)return it[2]=st[2];if(_t[Le]=it,it[2]=k(Pe,St,ut))return!0}return!1}}function ao(k){return k.length>1?function(F,re,ce){for(var ve=k.length;ve--;)if(!k[ve](F,re,ce))return!1;return!0}:k[0]}function qf(k,F,re){for(var ce=0,ve=F.length;ce<ve;ce++)Vt(k,F[ce],re);return re}function aa(k,F,re,ce,ve){for(var Le,Ze=[],Ke=0,Pe=k.length,St=F!=null;Ke<Pe;Ke++)(Le=k[Ke])&&(!re||re(Le,ce,ve))&&(Ze.push(Le),St&&F.push(Ke));return Ze}function ci(k,F,re,ce,ve,Le){return ce&&!ce[xe]&&(ce=ci(ce)),ve&&!ve[xe]&&(ve=ci(ve,Le)),Va(function(Ze,Ke,Pe,St){var ut,st,_t,it,nn=[],ma=[],ra=Ke.length,Da=Ze||qf(F||"*",Pe.nodeType?[Pe]:Pe,[]),Pa=k&&(Ze||!F)?aa(Da,nn,k,Pe,St):Da;if(re?(it=ve||(Ze?k:ra||ce)?[]:Ke,re(Pa,it,Pe,St)):it=Pa,ce)for(ut=aa(it,ma),ce(ut,[],Pe,St),st=ut.length;st--;)(_t=ut[st])&&(it[ma[st]]=!(Pa[ma[st]]=_t));if(Ze){if(ve||k){if(ve){for(ut=[],st=it.length;st--;)(_t=it[st])&&ut.push(Pa[st]=_t);ve(null,it=[],ut,St)}for(st=it.length;st--;)(_t=it[st])&&(ut=ve?S.call(Ze,_t):nn[st])>-1&&(Ze[ut]=!(Ke[ut]=_t))}}else it=aa(it===Ke?it.splice(ra,it.length):it),ve?ve(null,Ke,it,St):C.apply(Ke,it)})}function Ws(k){for(var F,re,ce,ve=k.length,Le=h.relative[k[0].type],Ze=Le||h.relative[" "],Ke=Le?1:0,Pe=$s(function(st){return st===F},Ze,!0),St=$s(function(st){return S.call(F,st)>-1},Ze,!0),ut=[function(st,_t,it){var nn=!Le&&(it||_t!=y)||((F=_t).nodeType?Pe(st,_t,it):St(st,_t,it));return F=null,nn}];Ke<ve;Ke++)if(re=h.relative[k[Ke].type])ut=[$s(ao(ut),re)];else{if(re=h.filter[k[Ke].type].apply(null,k[Ke].matches),re[xe]){for(ce=++Ke;ce<ve&&!h.relative[k[ce].type];ce++);return ci(Ke>1&&ao(ut),Ke>1&&Ks(k.slice(0,Ke-1).concat({value:k[Ke-2].type===" "?"*":""})).replace(Xe,"$1"),re,Ke<ce&&Ws(k.slice(Ke,ce)),ce<ve&&Ws(k=k.slice(ce)),ce<ve&&Ks(k))}ut.push(re)}return ao(ut)}function ju(k,F){var re=F.length>0,ce=k.length>0,ve=function(Le,Ze,Ke,Pe,St){var ut,st,_t,it=0,nn="0",ma=Le&&[],ra=[],Da=y,Pa=Le||ce&&h.find.TAG("*",St),fi=le+=Da==null?1:Math.random()||.1,Qn=Pa.length;for(St&&(y=Ze==N||Ze||St);nn!==Qn&&(ut=Pa[nn])!=null;nn++){if(ce&&ut){for(st=0,!Ze&&ut.ownerDocument!=N&&(xr(ut),Ke=!B);_t=k[st++];)if(_t(ut,Ze||N,Ke)){C.call(Pe,ut);break}St&&(le=fi)}re&&((ut=!_t&&ut)&&it--,Le&&ma.push(ut))}if(it+=nn,re&&nn!==it){for(st=0;_t=F[st++];)_t(ma,ra,Ze,Ke);if(Le){if(it>0)for(;nn--;)ma[nn]||ra[nn]||(ra[nn]=ze.call(Pe));ra=aa(ra)}C.apply(Pe,ra),St&&!Le&&ra.length>0&&it+F.length>1&&g.uniqueSort(Pe)}return St&&(le=fi,y=Da),ma};return re?Va(ve):ve}function Js(k,F){var re,ce=[],ve=[],Le=bt[k+" "];if(!Le){for(F||(F=Es(k)),re=F.length;re--;)Le=Ws(F[re]),Le[xe]?ce.push(Le):ve.push(Le);Le=bt(k,ju(ve,ce)),Le.selector=k}return Le}function ro(k,F,re,ce){var ve,Le,Ze,Ke,Pe,St=typeof k=="function"&&k,ut=!ce&&Es(k=St.selector||k);if(re=re||[],ut.length===1){if(Le=ut[0]=ut[0].slice(0),Le.length>2&&(Ze=Le[0]).type==="ID"&&F.nodeType===9&&B&&h.relative[Le[1].type]){if(F=(h.find.ID(Ze.matches[0].replace(gr,yr),F)||[])[0],F)St&&(F=F.parentNode);else return re;k=k.slice(Le.shift().value.length)}for(ve=qa.needsContext.test(k)?0:Le.length;ve--&&(Ze=Le[ve],!h.relative[Ke=Ze.type]);)if((Pe=h.find[Ke])&&(ce=Pe(Ze.matches[0].replace(gr,yr),Br.test(Le[0].type)&&Qs(F.parentNode)||F))){if(Le.splice(ve,1),k=ce.length&&Ks(Le),!k)return C.apply(re,ce),re;break}}return(St||Js(k,ut))(ce,F,!B,re,!F||Br.test(k)&&Qs(F.parentNode)||F),re}z.sortStable=xe.split("").sort(Bn).join("")===xe,xr(),z.sortDetached=vr(function(k){return k.compareDocumentPosition(N.createElement("fieldset"))&1}),g.find=Vt,g.expr[":"]=g.expr.pseudos,g.unique=g.uniqueSort,Vt.compile=Js,Vt.select=ro,Vt.setDocument=xr,Vt.tokenize=Es,Vt.escape=g.escapeSelector,Vt.getText=g.text,Vt.isXML=g.isXMLDoc,Vt.selectors=g.expr,Vt.support=g.support,Vt.uniqueSort=g.uniqueSort})();var Ye=function(u,h,y){for(var b=[],_=y!==void 0;(u=u[h])&&u.nodeType!==9;)if(u.nodeType===1){if(_&&g(u).is(y))break;b.push(u)}return b},q=function(u,h){for(var y=[];u;u=u.nextSibling)u.nodeType===1&&u!==h&&y.push(u);return y},he=g.expr.match.needsContext,Ne=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ye(u,h,y){return O(h)?g.grep(u,function(b,_){return!!h.call(b,_,b)!==y}):h.nodeType?g.grep(u,function(b){return b===h!==y}):typeof h!="string"?g.grep(u,function(b){return S.call(h,b)>-1!==y}):g.filter(h,u,y)}g.filter=function(u,h,y){var b=h[0];return y&&(u=":not("+u+")"),h.length===1&&b.nodeType===1?g.find.matchesSelector(b,u)?[b]:[]:g.find.matches(u,g.grep(h,function(_){return _.nodeType===1}))},g.fn.extend({find:function(u){var h,y,b=this.length,_=this;if(typeof u!="string")return this.pushStack(g(u).filter(function(){for(h=0;h<b;h++)if(g.contains(_[h],this))return!0}));for(y=this.pushStack([]),h=0;h<b;h++)g.find(u,_[h],y);return b>1?g.uniqueSort(y):y},filter:function(u){return this.pushStack(ye(this,u||[],!1))},not:function(u){return this.pushStack(ye(this,u||[],!0))},is:function(u){return!!ye(this,typeof u=="string"&&he.test(u)?g(u):u||[],!1).length}});var Re,He=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ve=g.fn.init=function(u,h,y){var b,_;if(!u)return this;if(y=y||Re,typeof u=="string")if(u[0]==="<"&&u[u.length-1]===">"&&u.length>=3?b=[null,u,null]:b=He.exec(u),b&&(b[1]||!h))if(b[1]){if(h=h instanceof g?h[0]:h,g.merge(this,g.parseHTML(b[1],h&&h.nodeType?h.ownerDocument||h:L,!0)),Ne.test(b[1])&&g.isPlainObject(h))for(b in h)O(this[b])?this[b](h[b]):this.attr(b,h[b]);return this}else return _=L.getElementById(b[2]),_&&(this[0]=_,this.length=1),this;else return!h||h.jquery?(h||y).find(u):this.constructor(h).find(u);else{if(u.nodeType)return this[0]=u,this.length=1,this;if(O(u))return y.ready!==void 0?y.ready(u):u(g)}return g.makeArray(u,this)};Ve.prototype=g.fn,Re=g(L);var Yt=/^(?:parents|prev(?:Until|All))/,Ge={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({has:function(u){var h=g(u,this),y=h.length;return this.filter(function(){for(var b=0;b<y;b++)if(g.contains(this,h[b]))return!0})},closest:function(u,h){var y,b=0,_=this.length,C=[],N=typeof u!="string"&&g(u);if(!he.test(u)){for(;b<_;b++)for(y=this[b];y&&y!==h;y=y.parentNode)if(y.nodeType<11&&(N?N.index(y)>-1:y.nodeType===1&&g.find.matchesSelector(y,u))){C.push(y);break}}return this.pushStack(C.length>1?g.uniqueSort(C):C)},index:function(u){return u?typeof u=="string"?S.call(g(u),this[0]):S.call(this,u.jquery?u[0]:u):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(u,h){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(u,h))))},addBack:function(u){return this.add(u==null?this.prevObject:this.prevObject.filter(u))}});function Mt(u,h){for(;(u=u[h])&&u.nodeType!==1;);return u}g.each({parent:function(u){var h=u.parentNode;return h&&h.nodeType!==11?h:null},parents:function(u){return Ye(u,"parentNode")},parentsUntil:function(u,h,y){return Ye(u,"parentNode",y)},next:function(u){return Mt(u,"nextSibling")},prev:function(u){return Mt(u,"previousSibling")},nextAll:function(u){return Ye(u,"nextSibling")},prevAll:function(u){return Ye(u,"previousSibling")},nextUntil:function(u,h,y){return Ye(u,"nextSibling",y)},prevUntil:function(u,h,y){return Ye(u,"previousSibling",y)},siblings:function(u){return q((u.parentNode||{}).firstChild,u)},children:function(u){return q(u.firstChild)},contents:function(u){return u.contentDocument!=null&&c(u.contentDocument)?u.contentDocument:(ne(u,"template")&&(u=u.content||u),g.merge([],u.childNodes))}},function(u,h){g.fn[u]=function(y,b){var _=g.map(this,h,y);return u.slice(-5)!=="Until"&&(b=y),b&&typeof b=="string"&&(_=g.filter(b,_)),this.length>1&&(Ge[u]||g.uniqueSort(_),Yt.test(u)&&_.reverse()),this.pushStack(_)}});var tt=/[^\x20\t\r\n\f]+/g;function fn(u){var h={};return g.each(u.match(tt)||[],function(y,b){h[b]=!0}),h}g.Callbacks=function(u){u=typeof u=="string"?fn(u):g.extend({},u);var h,y,b,_,C=[],N=[],Y=-1,B=function(){for(_=_||u.once,b=h=!0;N.length;Y=-1)for(y=N.shift();++Y<C.length;)C[Y].apply(y[0],y[1])===!1&&u.stopOnFalse&&(Y=C.length,y=!1);u.memory||(y=!1),h=!1,_&&(y?C=[]:C="")},K={add:function(){return C&&(y&&!h&&(Y=C.length-1,N.push(y)),(function me(xe){g.each(xe,function(le,De){O(De)?(!u.unique||!K.has(De))&&C.push(De):De&&De.length&&ee(De)!=="string"&&me(De)})})(arguments),y&&!h&&B()),this},remove:function(){return g.each(arguments,function(me,xe){for(var le;(le=g.inArray(xe,C,le))>-1;)C.splice(le,1),le<=Y&&Y--}),this},has:function(me){return me?g.inArray(me,C)>-1:C.length>0},empty:function(){return C&&(C=[]),this},disable:function(){return _=N=[],C=y="",this},disabled:function(){return!C},lock:function(){return _=N=[],!y&&!h&&(C=y=""),this},locked:function(){return!!_},fireWith:function(me,xe){return _||(xe=xe||[],xe=[me,xe.slice?xe.slice():xe],N.push(xe),h||B()),this},fire:function(){return K.fireWith(this,arguments),this},fired:function(){return!!b}};return K};function Nt(u){return u}function hn(u){throw u}function ln(u,h,y,b){var _;try{u&&O(_=u.promise)?_.call(u).done(h).fail(y):u&&O(_=u.then)?_.call(u,h,y):h.apply(void 0,[u].slice(b))}catch(C){y.apply(void 0,[C])}}g.extend({Deferred:function(u){var h=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],y="pending",b={state:function(){return y},always:function(){return _.done(arguments).fail(arguments),this},catch:function(C){return b.then(null,C)},pipe:function(){var C=arguments;return g.Deferred(function(N){g.each(h,function(Y,B){var K=O(C[B[4]])&&C[B[4]];_[B[1]](function(){var me=K&&K.apply(this,arguments);me&&O(me.promise)?me.promise().progress(N.notify).done(N.resolve).fail(N.reject):N[B[0]+"With"](this,K?[me]:arguments)})}),C=null}).promise()},then:function(C,N,Y){var B=0;function K(me,xe,le,De){return function(){var pt=this,zt=arguments,bt=function(){var Bn,Wa;if(!(me<B)){if(Bn=le.apply(pt,zt),Bn===xe.promise())throw new TypeError("Thenable self-resolution");Wa=Bn&&(typeof Bn=="object"||typeof Bn=="function")&&Bn.then,O(Wa)?De?Wa.call(Bn,K(B,xe,Nt,De),K(B,xe,hn,De)):(B++,Wa.call(Bn,K(B,xe,Nt,De),K(B,xe,hn,De),K(B,xe,Nt,xe.notifyWith))):(le!==Nt&&(pt=void 0,zt=[Bn]),(De||xe.resolveWith)(pt,zt))}},In=De?bt:function(){try{bt()}catch(Bn){g.Deferred.exceptionHook&&g.Deferred.exceptionHook(Bn,In.error),me+1>=B&&(le!==hn&&(pt=void 0,zt=[Bn]),xe.rejectWith(pt,zt))}};me?In():(g.Deferred.getErrorHook?In.error=g.Deferred.getErrorHook():g.Deferred.getStackHook&&(In.error=g.Deferred.getStackHook()),a.setTimeout(In))}}return g.Deferred(function(me){h[0][3].add(K(0,me,O(Y)?Y:Nt,me.notifyWith)),h[1][3].add(K(0,me,O(C)?C:Nt)),h[2][3].add(K(0,me,O(N)?N:hn))}).promise()},promise:function(C){return C!=null?g.extend(C,b):b}},_={};return g.each(h,function(C,N){var Y=N[2],B=N[5];b[N[1]]=Y.add,B&&Y.add(function(){y=B},h[3-C][2].disable,h[3-C][3].disable,h[0][2].lock,h[0][3].lock),Y.add(N[3].fire),_[N[0]]=function(){return _[N[0]+"With"](this===_?void 0:this,arguments),this},_[N[0]+"With"]=Y.fireWith}),b.promise(_),u&&u.call(_,_),_},when:function(u){var h=arguments.length,y=h,b=Array(y),_=f.call(arguments),C=g.Deferred(),N=function(Y){return function(B){b[Y]=this,_[Y]=arguments.length>1?f.call(arguments):B,--h||C.resolveWith(b,_)}};if(h<=1&&(ln(u,C.done(N(y)).resolve,C.reject,!h),C.state()==="pending"||O(_[y]&&_[y].then)))return C.then();for(;y--;)ln(_[y],N(y),C.reject);return C.promise()}});var zn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(u,h){a.console&&a.console.warn&&u&&zn.test(u.name)&&a.console.warn("jQuery.Deferred exception: "+u.message,u.stack,h)},g.readyException=function(u){a.setTimeout(function(){throw u})};var jn=g.Deferred();g.fn.ready=function(u){return jn.then(u).catch(function(h){g.readyException(h)}),this},g.extend({isReady:!1,readyWait:1,ready:function(u){(u===!0?--g.readyWait:g.isReady)||(g.isReady=!0,!(u!==!0&&--g.readyWait>0)&&jn.resolveWith(L,[g]))}}),g.ready.then=jn.then;function Ht(){L.removeEventListener("DOMContentLoaded",Ht),a.removeEventListener("load",Ht),g.ready()}L.readyState==="complete"||L.readyState!=="loading"&&!L.documentElement.doScroll?a.setTimeout(g.ready):(L.addEventListener("DOMContentLoaded",Ht),a.addEventListener("load",Ht));var Sn=function(u,h,y,b,_,C,N){var Y=0,B=u.length,K=y==null;if(ee(y)==="object"){_=!0;for(Y in y)Sn(u,h,Y,y[Y],!0,C,N)}else if(b!==void 0&&(_=!0,O(b)||(N=!0),K&&(N?(h.call(u,b),h=null):(K=h,h=function(me,xe,le){return K.call(g(me),le)})),h))for(;Y<B;Y++)h(u[Y],y,N?b:b.call(u[Y],Y,h(u[Y],y)));return _?u:K?h.call(u):B?h(u[0],y):C},mn=/^-ms-/,_n=/-([a-z])/g;function ea(u,h){return h.toUpperCase()}function At(u){return u.replace(mn,"ms-").replace(_n,ea)}var H=function(u){return u.nodeType===1||u.nodeType===9||!+u.nodeType};function $(){this.expando=g.expando+$.uid++}$.uid=1,$.prototype={cache:function(u){var h=u[this.expando];return h||(h={},H(u)&&(u.nodeType?u[this.expando]=h:Object.defineProperty(u,this.expando,{value:h,configurable:!0}))),h},set:function(u,h,y){var b,_=this.cache(u);if(typeof h=="string")_[At(h)]=y;else for(b in h)_[At(b)]=h[b];return _},get:function(u,h){return h===void 0?this.cache(u):u[this.expando]&&u[this.expando][At(h)]},access:function(u,h,y){return h===void 0||h&&typeof h=="string"&&y===void 0?this.get(u,h):(this.set(u,h,y),y!==void 0?y:h)},remove:function(u,h){var y,b=u[this.expando];if(b!==void 0){if(h!==void 0)for(Array.isArray(h)?h=h.map(At):(h=At(h),h=h in b?[h]:h.match(tt)||[]),y=h.length;y--;)delete b[h[y]];(h===void 0||g.isEmptyObject(b))&&(u.nodeType?u[this.expando]=void 0:delete u[this.expando])}},hasData:function(u){var h=u[this.expando];return h!==void 0&&!g.isEmptyObject(h)}};var X=new $,Ce=new $,Te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function de(u){return u==="true"?!0:u==="false"?!1:u==="null"?null:u===+u+""?+u:Te.test(u)?JSON.parse(u):u}function Oe(u,h,y){var b;if(y===void 0&&u.nodeType===1)if(b="data-"+h.replace(te,"-$&").toLowerCase(),y=u.getAttribute(b),typeof y=="string"){try{y=de(y)}catch{}Ce.set(u,h,y)}else y=void 0;return y}g.extend({hasData:function(u){return Ce.hasData(u)||X.hasData(u)},data:function(u,h,y){return Ce.access(u,h,y)},removeData:function(u,h){Ce.remove(u,h)},_data:function(u,h,y){return X.access(u,h,y)},_removeData:function(u,h){X.remove(u,h)}}),g.fn.extend({data:function(u,h){var y,b,_,C=this[0],N=C&&C.attributes;if(u===void 0){if(this.length&&(_=Ce.get(C),C.nodeType===1&&!X.get(C,"hasDataAttrs"))){for(y=N.length;y--;)N[y]&&(b=N[y].name,b.indexOf("data-")===0&&(b=At(b.slice(5)),Oe(C,b,_[b])));X.set(C,"hasDataAttrs",!0)}return _}return typeof u=="object"?this.each(function(){Ce.set(this,u)}):Sn(this,function(Y){var B;if(C&&Y===void 0)return B=Ce.get(C,u),B!==void 0||(B=Oe(C,u),B!==void 0)?B:void 0;this.each(function(){Ce.set(this,u,Y)})},null,h,arguments.length>1,null,!0)},removeData:function(u){return this.each(function(){Ce.remove(this,u)})}}),g.extend({queue:function(u,h,y){var b;if(u)return h=(h||"fx")+"queue",b=X.get(u,h),y&&(!b||Array.isArray(y)?b=X.access(u,h,g.makeArray(y)):b.push(y)),b||[]},dequeue:function(u,h){h=h||"fx";var y=g.queue(u,h),b=y.length,_=y.shift(),C=g._queueHooks(u,h),N=function(){g.dequeue(u,h)};_==="inprogress"&&(_=y.shift(),b--),_&&(h==="fx"&&y.unshift("inprogress"),delete C.stop,_.call(u,N,C)),!b&&C&&C.empty.fire()},_queueHooks:function(u,h){var y=h+"queueHooks";return X.get(u,y)||X.access(u,y,{empty:g.Callbacks("once memory").add(function(){X.remove(u,[h+"queue",y])})})}}),g.fn.extend({queue:function(u,h){var y=2;return typeof u!="string"&&(h=u,u="fx",y--),arguments.length<y?g.queue(this[0],u):h===void 0?this:this.each(function(){var b=g.queue(this,u,h);g._queueHooks(this,u),u==="fx"&&b[0]!=="inprogress"&&g.dequeue(this,u)})},dequeue:function(u){return this.each(function(){g.dequeue(this,u)})},clearQueue:function(u){return this.queue(u||"fx",[])},promise:function(u,h){var y,b=1,_=g.Deferred(),C=this,N=this.length,Y=function(){--b||_.resolveWith(C,[C])};for(typeof u!="string"&&(h=u,u=void 0),u=u||"fx";N--;)y=X.get(C[N],u+"queueHooks"),y&&y.empty&&(b++,y.empty.add(Y));return Y(),_.promise(h)}});var lt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=new RegExp("^(?:([+-])=|)("+lt+")([a-z%]*)$","i"),Qt=["Top","Right","Bottom","Left"],Zt=L.documentElement,gn=function(u){return g.contains(u.ownerDocument,u)},Gn={composed:!0};Zt.getRootNode&&(gn=function(u){return g.contains(u.ownerDocument,u)||u.getRootNode(Gn)===u.ownerDocument});var yn=function(u,h){return u=h||u,u.style.display==="none"||u.style.display===""&&gn(u)&&g.css(u,"display")==="none"};function ha(u,h,y,b){var _,C,N=20,Y=b?function(){return b.cur()}:function(){return g.css(u,h,"")},B=Y(),K=y&&y[3]||(g.cssNumber[h]?"":"px"),me=u.nodeType&&(g.cssNumber[h]||K!=="px"&&+B)&&Et.exec(g.css(u,h));if(me&&me[3]!==K){for(B=B/2,K=K||me[3],me=+B||1;N--;)g.style(u,h,me+K),(1-C)*(1-(C=Y()/B||.5))<=0&&(N=0),me=me/C;me=me*2,g.style(u,h,me+K),y=y||[]}return y&&(me=+me||+B||0,_=y[1]?me+(y[1]+1)*y[2]:+y[2],b&&(b.unit=K,b.start=me,b.end=_)),_}var Tn={};function Xt(u){var h,y=u.ownerDocument,b=u.nodeName,_=Tn[b];return _||(h=y.body.appendChild(y.createElement(b)),_=g.css(h,"display"),h.parentNode.removeChild(h),_==="none"&&(_="block"),Tn[b]=_,_)}function Ft(u,h){for(var y,b,_=[],C=0,N=u.length;C<N;C++)b=u[C],b.style&&(y=b.style.display,h?(y==="none"&&(_[C]=X.get(b,"display")||null,_[C]||(b.style.display="")),b.style.display===""&&yn(b)&&(_[C]=Xt(b))):y!=="none"&&(_[C]="none",X.set(b,"display",y)));for(C=0;C<N;C++)_[C]!=null&&(u[C].style.display=_[C]);return u}g.fn.extend({show:function(){return Ft(this,!0)},hide:function(){return Ft(this)},toggle:function(u){return typeof u=="boolean"?u?this.show():this.hide():this.each(function(){yn(this)?g(this).show():g(this).hide()})}});var Rt=/^(?:checkbox|radio)$/i,vn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ie=/^$|^module$|\/(?:java|ecma)script/i;(function(){var u=L.createDocumentFragment(),h=u.appendChild(L.createElement("div")),y=L.createElement("input");y.setAttribute("type","radio"),y.setAttribute("checked","checked"),y.setAttribute("name","t"),h.appendChild(y),z.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked,h.innerHTML="<textarea>x</textarea>",z.noCloneChecked=!!h.cloneNode(!0).lastChild.defaultValue,h.innerHTML="<option></option>",z.option=!!h.lastChild})();var gt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,z.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);function ft(u,h){var y;return typeof u.getElementsByTagName<"u"?y=u.getElementsByTagName(h||"*"):typeof u.querySelectorAll<"u"?y=u.querySelectorAll(h||"*"):y=[],h===void 0||h&&ne(u,h)?g.merge([u],y):y}function Dt(u,h){for(var y=0,b=u.length;y<b;y++)X.set(u[y],"globalEval",!h||X.get(h[y],"globalEval"))}var On=/<|&#?\w+;/;function Jt(u,h,y,b,_){for(var C,N,Y,B,K,me,xe=h.createDocumentFragment(),le=[],De=0,pt=u.length;De<pt;De++)if(C=u[De],C||C===0)if(ee(C)==="object")g.merge(le,C.nodeType?[C]:C);else if(!On.test(C))le.push(h.createTextNode(C));else{for(N=N||xe.appendChild(h.createElement("div")),Y=(vn.exec(C)||["",""])[1].toLowerCase(),B=gt[Y]||gt._default,N.innerHTML=B[1]+g.htmlPrefilter(C)+B[2],me=B[0];me--;)N=N.lastChild;g.merge(le,N.childNodes),N=xe.firstChild,N.textContent=""}for(xe.textContent="",De=0;C=le[De++];){if(b&&g.inArray(C,b)>-1){_&&_.push(C);continue}if(K=gn(C),N=ft(xe.appendChild(C),"script"),K&&Dt(N),y)for(me=0;C=N[me++];)Ie.test(C.type||"")&&y.push(C)}return xe}var yt=/^([^.]*)(?:\.(.+)|)/;function Tt(){return!0}function ht(){return!1}function Lt(u,h,y,b,_,C){var N,Y;if(typeof h=="object"){typeof y!="string"&&(b=b||y,y=void 0);for(Y in h)Lt(u,Y,y,b,h[Y],C);return u}if(b==null&&_==null?(_=y,b=y=void 0):_==null&&(typeof y=="string"?(_=b,b=void 0):(_=b,b=y,y=void 0)),_===!1)_=ht;else if(!_)return u;return C===1&&(N=_,_=function(B){return g().off(B),N.apply(this,arguments)},_.guid=N.guid||(N.guid=g.guid++)),u.each(function(){g.event.add(this,h,_,b,y)})}g.event={global:{},add:function(u,h,y,b,_){var C,N,Y,B,K,me,xe,le,De,pt,zt,bt=X.get(u);if(H(u))for(y.handler&&(C=y,y=C.handler,_=C.selector),_&&g.find.matchesSelector(Zt,_),y.guid||(y.guid=g.guid++),(B=bt.events)||(B=bt.events=Object.create(null)),(N=bt.handle)||(N=bt.handle=function(In){return typeof g<"u"&&g.event.triggered!==In.type?g.event.dispatch.apply(u,arguments):void 0}),h=(h||"").match(tt)||[""],K=h.length;K--;)Y=yt.exec(h[K])||[],De=zt=Y[1],pt=(Y[2]||"").split(".").sort(),De&&(xe=g.event.special[De]||{},De=(_?xe.delegateType:xe.bindType)||De,xe=g.event.special[De]||{},me=g.extend({type:De,origType:zt,data:b,handler:y,guid:y.guid,selector:_,needsContext:_&&g.expr.match.needsContext.test(_),namespace:pt.join(".")},C),(le=B[De])||(le=B[De]=[],le.delegateCount=0,(!xe.setup||xe.setup.call(u,b,pt,N)===!1)&&u.addEventListener&&u.addEventListener(De,N)),xe.add&&(xe.add.call(u,me),me.handler.guid||(me.handler.guid=y.guid)),_?le.splice(le.delegateCount++,0,me):le.push(me),g.event.global[De]=!0)},remove:function(u,h,y,b,_){var C,N,Y,B,K,me,xe,le,De,pt,zt,bt=X.hasData(u)&&X.get(u);if(!(!bt||!(B=bt.events))){for(h=(h||"").match(tt)||[""],K=h.length;K--;){if(Y=yt.exec(h[K])||[],De=zt=Y[1],pt=(Y[2]||"").split(".").sort(),!De){for(De in B)g.event.remove(u,De+h[K],y,b,!0);continue}for(xe=g.event.special[De]||{},De=(b?xe.delegateType:xe.bindType)||De,le=B[De]||[],Y=Y[2]&&new RegExp("(^|\\.)"+pt.join("\\.(?:.*\\.|)")+"(\\.|$)"),N=C=le.length;C--;)me=le[C],(_||zt===me.origType)&&(!y||y.guid===me.guid)&&(!Y||Y.test(me.namespace))&&(!b||b===me.selector||b==="**"&&me.selector)&&(le.splice(C,1),me.selector&&le.delegateCount--,xe.remove&&xe.remove.call(u,me));N&&!le.length&&((!xe.teardown||xe.teardown.call(u,pt,bt.handle)===!1)&&g.removeEvent(u,De,bt.handle),delete B[De])}g.isEmptyObject(B)&&X.remove(u,"handle events")}},dispatch:function(u){var h,y,b,_,C,N,Y=new Array(arguments.length),B=g.event.fix(u),K=(X.get(this,"events")||Object.create(null))[B.type]||[],me=g.event.special[B.type]||{};for(Y[0]=B,h=1;h<arguments.length;h++)Y[h]=arguments[h];if(B.delegateTarget=this,!(me.preDispatch&&me.preDispatch.call(this,B)===!1)){for(N=g.event.handlers.call(this,B,K),h=0;(_=N[h++])&&!B.isPropagationStopped();)for(B.currentTarget=_.elem,y=0;(C=_.handlers[y++])&&!B.isImmediatePropagationStopped();)(!B.rnamespace||C.namespace===!1||B.rnamespace.test(C.namespace))&&(B.handleObj=C,B.data=C.data,b=((g.event.special[C.origType]||{}).handle||C.handler).apply(_.elem,Y),b!==void 0&&(B.result=b)===!1&&(B.preventDefault(),B.stopPropagation()));return me.postDispatch&&me.postDispatch.call(this,B),B.result}},handlers:function(u,h){var y,b,_,C,N,Y=[],B=h.delegateCount,K=u.target;if(B&&K.nodeType&&!(u.type==="click"&&u.button>=1)){for(;K!==this;K=K.parentNode||this)if(K.nodeType===1&&!(u.type==="click"&&K.disabled===!0)){for(C=[],N={},y=0;y<B;y++)b=h[y],_=b.selector+" ",N[_]===void 0&&(N[_]=b.needsContext?g(_,this).index(K)>-1:g.find(_,this,null,[K]).length),N[_]&&C.push(b);C.length&&Y.push({elem:K,handlers:C})}}return K=this,B<h.length&&Y.push({elem:K,handlers:h.slice(B)}),Y},addProp:function(u,h){Object.defineProperty(g.Event.prototype,u,{enumerable:!0,configurable:!0,get:O(h)?function(){if(this.originalEvent)return h(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[u]},set:function(y){Object.defineProperty(this,u,{enumerable:!0,configurable:!0,writable:!0,value:y})}})},fix:function(u){return u[g.expando]?u:new g.Event(u)},special:{load:{noBubble:!0},click:{setup:function(u){var h=this||u;return Rt.test(h.type)&&h.click&&ne(h,"input")&&Un(h,"click",!0),!1},trigger:function(u){var h=this||u;return Rt.test(h.type)&&h.click&&ne(h,"input")&&Un(h,"click"),!0},_default:function(u){var h=u.target;return Rt.test(h.type)&&h.click&&ne(h,"input")&&X.get(h,"click")||ne(h,"a")}},beforeunload:{postDispatch:function(u){u.result!==void 0&&u.originalEvent&&(u.originalEvent.returnValue=u.result)}}}};function Un(u,h,y){if(!y){X.get(u,h)===void 0&&g.event.add(u,h,Tt);return}X.set(u,h,!1),g.event.add(u,h,{namespace:!1,handler:function(b){var _,C=X.get(this,h);if(b.isTrigger&1&&this[h]){if(C)(g.event.special[h]||{}).delegateType&&b.stopPropagation();else if(C=f.call(arguments),X.set(this,h,C),this[h](),_=X.get(this,h),X.set(this,h,!1),C!==_)return b.stopImmediatePropagation(),b.preventDefault(),_}else C&&(X.set(this,h,g.event.trigger(C[0],C.slice(1),this)),b.stopPropagation(),b.isImmediatePropagationStopped=Tt)}})}g.removeEvent=function(u,h,y){u.removeEventListener&&u.removeEventListener(h,y)},g.Event=function(u,h){if(!(this instanceof g.Event))return new g.Event(u,h);u&&u.type?(this.originalEvent=u,this.type=u.type,this.isDefaultPrevented=u.defaultPrevented||u.defaultPrevented===void 0&&u.returnValue===!1?Tt:ht,this.target=u.target&&u.target.nodeType===3?u.target.parentNode:u.target,this.currentTarget=u.currentTarget,this.relatedTarget=u.relatedTarget):this.type=u,h&&g.extend(this,h),this.timeStamp=u&&u.timeStamp||Date.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:ht,isPropagationStopped:ht,isImmediatePropagationStopped:ht,isSimulated:!1,preventDefault:function(){var u=this.originalEvent;this.isDefaultPrevented=Tt,u&&!this.isSimulated&&u.preventDefault()},stopPropagation:function(){var u=this.originalEvent;this.isPropagationStopped=Tt,u&&!this.isSimulated&&u.stopPropagation()},stopImmediatePropagation:function(){var u=this.originalEvent;this.isImmediatePropagationStopped=Tt,u&&!this.isSimulated&&u.stopImmediatePropagation(),this.stopPropagation()}},g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},g.event.addProp),g.each({focus:"focusin",blur:"focusout"},function(u,h){function y(b){if(L.documentMode){var _=X.get(this,"handle"),C=g.event.fix(b);C.type=b.type==="focusin"?"focus":"blur",C.isSimulated=!0,_(b),C.target===C.currentTarget&&_(C)}else g.event.simulate(h,b.target,g.event.fix(b))}g.event.special[u]={setup:function(){var b;if(Un(this,u,!0),L.documentMode)b=X.get(this,h),b||this.addEventListener(h,y),X.set(this,h,(b||0)+1);else return!1},trigger:function(){return Un(this,u),!0},teardown:function(){var b;if(L.documentMode)b=X.get(this,h)-1,b?X.set(this,h,b):(this.removeEventListener(h,y),X.remove(this,h));else return!1},_default:function(b){return X.get(b.target,u)},delegateType:h},g.event.special[h]={setup:function(){var b=this.ownerDocument||this.document||this,_=L.documentMode?this:b,C=X.get(_,h);C||(L.documentMode?this.addEventListener(h,y):b.addEventListener(u,y,!0)),X.set(_,h,(C||0)+1)},teardown:function(){var b=this.ownerDocument||this.document||this,_=L.documentMode?this:b,C=X.get(_,h)-1;C?X.set(_,h,C):(L.documentMode?this.removeEventListener(h,y):b.removeEventListener(u,y,!0),X.remove(_,h))}}}),g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(u,h){g.event.special[u]={delegateType:h,bindType:h,handle:function(y){var b,_=this,C=y.relatedTarget,N=y.handleObj;return(!C||C!==_&&!g.contains(_,C))&&(y.type=N.origType,b=N.handler.apply(this,arguments),y.type=h),b}}}),g.fn.extend({on:function(u,h,y,b){return Lt(this,u,h,y,b)},one:function(u,h,y,b){return Lt(this,u,h,y,b,1)},off:function(u,h,y){var b,_;if(u&&u.preventDefault&&u.handleObj)return b=u.handleObj,g(u.delegateTarget).off(b.namespace?b.origType+"."+b.namespace:b.origType,b.selector,b.handler),this;if(typeof u=="object"){for(_ in u)this.off(_,h,u[_]);return this}return(h===!1||typeof h=="function")&&(y=h,h=void 0),y===!1&&(y=ht),this.each(function(){g.event.remove(this,u,y,h)})}});var kn=/<script|<style|<link/i,ba=/checked\s*(?:[^=]|=\s*.checked.)/i,Ka=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ta(u,h){return ne(u,"table")&&ne(h.nodeType!==11?h:h.firstChild,"tr")&&g(u).children("tbody")[0]||u}function hs(u){return u.type=(u.getAttribute("type")!==null)+"/"+u.type,u}function Ha(u){return(u.type||"").slice(0,5)==="true/"?u.type=u.type.slice(5):u.removeAttribute("type"),u}function cr(u,h){var y,b,_,C,N,Y,B;if(h.nodeType===1){if(X.hasData(u)&&(C=X.get(u),B=C.events,B)){X.remove(h,"handle events");for(_ in B)for(y=0,b=B[_].length;y<b;y++)g.event.add(h,_,B[_][y])}Ce.hasData(u)&&(N=Ce.access(u),Y=g.extend({},N),Ce.set(h,Y))}}function ti(u,h){var y=h.nodeName.toLowerCase();y==="input"&&Rt.test(u.type)?h.checked=u.checked:(y==="input"||y==="textarea")&&(h.defaultValue=u.defaultValue)}function xa(u,h,y,b){h=p(h);var _,C,N,Y,B,K,me=0,xe=u.length,le=xe-1,De=h[0],pt=O(De);if(pt||xe>1&&typeof De=="string"&&!z.checkClone&&ba.test(De))return u.each(function(zt){var bt=u.eq(zt);pt&&(h[0]=De.call(this,zt,bt.html())),xa(bt,h,y,b)});if(xe&&(_=Jt(h,u[0].ownerDocument,!1,u,b),C=_.firstChild,_.childNodes.length===1&&(_=C),C||b)){for(N=g.map(ft(_,"script"),hs),Y=N.length;me<xe;me++)B=_,me!==le&&(B=g.clone(B,!0,!0),Y&&g.merge(N,ft(B,"script"))),y.call(u[me],B,me);if(Y)for(K=N[N.length-1].ownerDocument,g.map(N,Ha),me=0;me<Y;me++)B=N[me],Ie.test(B.type||"")&&!X.access(B,"globalEval")&&g.contains(K,B)&&(B.src&&(B.type||"").toLowerCase()!=="module"?g._evalUrl&&!B.noModule&&g._evalUrl(B.src,{nonce:B.nonce||B.getAttribute("nonce")},K):Z(B.textContent.replace(Ka,""),B,K))}return u}function Cn(u,h,y){for(var b,_=h?g.filter(h,u):u,C=0;(b=_[C])!=null;C++)!y&&b.nodeType===1&&g.cleanData(ft(b)),b.parentNode&&(y&&gn(b)&&Dt(ft(b,"script")),b.parentNode.removeChild(b));return u}g.extend({htmlPrefilter:function(u){return u},clone:function(u,h,y){var b,_,C,N,Y=u.cloneNode(!0),B=gn(u);if(!z.noCloneChecked&&(u.nodeType===1||u.nodeType===11)&&!g.isXMLDoc(u))for(N=ft(Y),C=ft(u),b=0,_=C.length;b<_;b++)ti(C[b],N[b]);if(h)if(y)for(C=C||ft(u),N=N||ft(Y),b=0,_=C.length;b<_;b++)cr(C[b],N[b]);else cr(u,Y);return N=ft(Y,"script"),N.length>0&&Dt(N,!B&&ft(u,"script")),Y},cleanData:function(u){for(var h,y,b,_=g.event.special,C=0;(y=u[C])!==void 0;C++)if(H(y)){if(h=y[X.expando]){if(h.events)for(b in h.events)_[b]?g.event.remove(y,b):g.removeEvent(y,b,h.handle);y[X.expando]=void 0}y[Ce.expando]&&(y[Ce.expando]=void 0)}}}),g.fn.extend({detach:function(u){return Cn(this,u,!0)},remove:function(u){return Cn(this,u)},text:function(u){return Sn(this,function(h){return h===void 0?g.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=h)})},null,u,arguments.length)},append:function(){return xa(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Ta(this,u);h.appendChild(u)}})},prepend:function(){return xa(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var h=Ta(this,u);h.insertBefore(u,h.firstChild)}})},before:function(){return xa(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this)})},after:function(){return xa(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling)})},empty:function(){for(var u,h=0;(u=this[h])!=null;h++)u.nodeType===1&&(g.cleanData(ft(u,!1)),u.textContent="");return this},clone:function(u,h){return u=u??!1,h=h??u,this.map(function(){return g.clone(this,u,h)})},html:function(u){return Sn(this,function(h){var y=this[0]||{},b=0,_=this.length;if(h===void 0&&y.nodeType===1)return y.innerHTML;if(typeof h=="string"&&!kn.test(h)&&!gt[(vn.exec(h)||["",""])[1].toLowerCase()]){h=g.htmlPrefilter(h);try{for(;b<_;b++)y=this[b]||{},y.nodeType===1&&(g.cleanData(ft(y,!1)),y.innerHTML=h);y=0}catch{}}y&&this.empty().append(h)},null,u,arguments.length)},replaceWith:function(){var u=[];return xa(this,arguments,function(h){var y=this.parentNode;g.inArray(this,u)<0&&(g.cleanData(ft(this)),y&&y.replaceChild(h,this))},u)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(u,h){g.fn[u]=function(y){for(var b,_=[],C=g(y),N=C.length-1,Y=0;Y<=N;Y++)b=Y===N?this:this.clone(!0),g(C[Y])[h](b),v.apply(_,b.get());return this.pushStack(_)}});var Di=new RegExp("^("+lt+")(?!px)[a-z%]+$","i"),ji=/^--/,Ca=function(u){var h=u.ownerDocument.defaultView;return(!h||!h.opener)&&(h=a),h.getComputedStyle(u)},fr=function(u,h,y){var b,_,C={};for(_ in h)C[_]=u.style[_],u.style[_]=h[_];b=y.call(u);for(_ in h)u.style[_]=C[_];return b},Fl=new RegExp(Qt.join("|"),"i");(function(){function u(){if(K){B.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",K.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Zt.appendChild(B).appendChild(K);var me=a.getComputedStyle(K);y=me.top!=="1%",Y=h(me.marginLeft)===12,K.style.right="60%",C=h(me.right)===36,b=h(me.width)===36,K.style.position="absolute",_=h(K.offsetWidth/3)===12,Zt.removeChild(B),K=null}}function h(me){return Math.round(parseFloat(me))}var y,b,_,C,N,Y,B=L.createElement("div"),K=L.createElement("div");K.style&&(K.style.backgroundClip="content-box",K.cloneNode(!0).style.backgroundClip="",z.clearCloneStyle=K.style.backgroundClip==="content-box",g.extend(z,{boxSizingReliable:function(){return u(),b},pixelBoxStyles:function(){return u(),C},pixelPosition:function(){return u(),y},reliableMarginLeft:function(){return u(),Y},scrollboxSize:function(){return u(),_},reliableTrDimensions:function(){var me,xe,le,De;return N==null&&(me=L.createElement("table"),xe=L.createElement("tr"),le=L.createElement("div"),me.style.cssText="position:absolute;left:-11111px;border-collapse:separate",xe.style.cssText="box-sizing:content-box;border:1px solid",xe.style.height="1px",le.style.height="9px",le.style.display="block",Zt.appendChild(me).appendChild(xe).appendChild(le),De=a.getComputedStyle(xe),N=parseInt(De.height,10)+parseInt(De.borderTopWidth,10)+parseInt(De.borderBottomWidth,10)===xe.offsetHeight,Zt.removeChild(me)),N}}))})();function jr(u,h,y){var b,_,C,N,Y=ji.test(h),B=u.style;return y=y||Ca(u),y&&(N=y.getPropertyValue(h)||y[h],Y&&N&&(N=N.replace(Xe,"$1")||void 0),N===""&&!gn(u)&&(N=g.style(u,h)),!z.pixelBoxStyles()&&Di.test(N)&&Fl.test(h)&&(b=B.width,_=B.minWidth,C=B.maxWidth,B.minWidth=B.maxWidth=B.width=N,N=y.width,B.width=b,B.minWidth=_,B.maxWidth=C)),N!==void 0?N+"":N}function ps(u,h){return{get:function(){if(u()){delete this.get;return}return(this.get=h).apply(this,arguments)}}}var ms=["Webkit","Moz","ms"],Or=L.createElement("div").style,ni={};function Na(u){for(var h=u[0].toUpperCase()+u.slice(1),y=ms.length;y--;)if(u=ms[y]+h,u in Or)return u}function ai(u){var h=g.cssProps[u]||ni[u];return h||(u in Or?u:ni[u]=Na(u)||u)}var fe=/^(none|table(?!-c[ea]).+)/,be={position:"absolute",visibility:"hidden",display:"block"},qe={letterSpacing:"0",fontWeight:"400"};function rt(u,h,y){var b=Et.exec(h);return b?Math.max(0,b[2]-(y||0))+(b[3]||"px"):h}function Qe(u,h,y,b,_,C){var N=h==="width"?1:0,Y=0,B=0,K=0;if(y===(b?"border":"content"))return 0;for(;N<4;N+=2)y==="margin"&&(K+=g.css(u,y+Qt[N],!0,_)),b?(y==="content"&&(B-=g.css(u,"padding"+Qt[N],!0,_)),y!=="margin"&&(B-=g.css(u,"border"+Qt[N]+"Width",!0,_))):(B+=g.css(u,"padding"+Qt[N],!0,_),y!=="padding"?B+=g.css(u,"border"+Qt[N]+"Width",!0,_):Y+=g.css(u,"border"+Qt[N]+"Width",!0,_));return!b&&C>=0&&(B+=Math.max(0,Math.ceil(u["offset"+h[0].toUpperCase()+h.slice(1)]-C-B-Y-.5))||0),B+K}function tn(u,h,y){var b=Ca(u),_=!z.boxSizingReliable()||y,C=_&&g.css(u,"boxSizing",!1,b)==="border-box",N=C,Y=jr(u,h,b),B="offset"+h[0].toUpperCase()+h.slice(1);if(Di.test(Y)){if(!y)return Y;Y="auto"}return(!z.boxSizingReliable()&&C||!z.reliableTrDimensions()&&ne(u,"tr")||Y==="auto"||!parseFloat(Y)&&g.css(u,"display",!1,b)==="inline")&&u.getClientRects().length&&(C=g.css(u,"boxSizing",!1,b)==="border-box",N=B in u,N&&(Y=u[B])),Y=parseFloat(Y)||0,Y+Qe(u,h,y||(C?"border":"content"),N,b,Y)+"px"}g.extend({cssHooks:{opacity:{get:function(u,h){if(h){var y=jr(u,"opacity");return y===""?"1":y}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(u,h,y,b){if(!(!u||u.nodeType===3||u.nodeType===8||!u.style)){var _,C,N,Y=At(h),B=ji.test(h),K=u.style;if(B||(h=ai(Y)),N=g.cssHooks[h]||g.cssHooks[Y],y!==void 0){if(C=typeof y,C==="string"&&(_=Et.exec(y))&&_[1]&&(y=ha(u,h,_),C="number"),y==null||y!==y)return;C==="number"&&!B&&(y+=_&&_[3]||(g.cssNumber[Y]?"":"px")),!z.clearCloneStyle&&y===""&&h.indexOf("background")===0&&(K[h]="inherit"),(!N||!("set"in N)||(y=N.set(u,y,b))!==void 0)&&(B?K.setProperty(h,y):K[h]=y)}else return N&&"get"in N&&(_=N.get(u,!1,b))!==void 0?_:K[h]}},css:function(u,h,y,b){var _,C,N,Y=At(h),B=ji.test(h);return B||(h=ai(Y)),N=g.cssHooks[h]||g.cssHooks[Y],N&&"get"in N&&(_=N.get(u,!0,y)),_===void 0&&(_=jr(u,h,b)),_==="normal"&&h in qe&&(_=qe[h]),y===""||y?(C=parseFloat(_),y===!0||isFinite(C)?C||0:_):_}}),g.each(["height","width"],function(u,h){g.cssHooks[h]={get:function(y,b,_){if(b)return fe.test(g.css(y,"display"))&&(!y.getClientRects().length||!y.getBoundingClientRect().width)?fr(y,be,function(){return tn(y,h,_)}):tn(y,h,_)},set:function(y,b,_){var C,N=Ca(y),Y=!z.scrollboxSize()&&N.position==="absolute",B=Y||_,K=B&&g.css(y,"boxSizing",!1,N)==="border-box",me=_?Qe(y,h,_,K,N):0;return K&&Y&&(me-=Math.ceil(y["offset"+h[0].toUpperCase()+h.slice(1)]-parseFloat(N[h])-Qe(y,h,"border",!1,N)-.5)),me&&(C=Et.exec(b))&&(C[3]||"px")!=="px"&&(y.style[h]=b,b=g.css(y,h)),rt(y,b,me)}}}),g.cssHooks.marginLeft=ps(z.reliableMarginLeft,function(u,h){if(h)return(parseFloat(jr(u,"marginLeft"))||u.getBoundingClientRect().left-fr(u,{marginLeft:0},function(){return u.getBoundingClientRect().left}))+"px"}),g.each({margin:"",padding:"",border:"Width"},function(u,h){g.cssHooks[u+h]={expand:function(y){for(var b=0,_={},C=typeof y=="string"?y.split(" "):[y];b<4;b++)_[u+Qt[b]+h]=C[b]||C[b-2]||C[0];return _}},u!=="margin"&&(g.cssHooks[u+h].set=rt)}),g.fn.extend({css:function(u,h){return Sn(this,function(y,b,_){var C,N,Y={},B=0;if(Array.isArray(b)){for(C=Ca(y),N=b.length;B<N;B++)Y[b[B]]=g.css(y,b[B],!1,C);return Y}return _!==void 0?g.style(y,b,_):g.css(y,b)},u,h,arguments.length>1)}});function ot(u,h,y,b,_){return new ot.prototype.init(u,h,y,b,_)}g.Tween=ot,ot.prototype={constructor:ot,init:function(u,h,y,b,_,C){this.elem=u,this.prop=y,this.easing=_||g.easing._default,this.options=h,this.start=this.now=this.cur(),this.end=b,this.unit=C||(g.cssNumber[y]?"":"px")},cur:function(){var u=ot.propHooks[this.prop];return u&&u.get?u.get(this):ot.propHooks._default.get(this)},run:function(u){var h,y=ot.propHooks[this.prop];return this.options.duration?this.pos=h=g.easing[this.easing](u,this.options.duration*u,0,1,this.options.duration):this.pos=h=u,this.now=(this.end-this.start)*h+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),y&&y.set?y.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(u){var h;return u.elem.nodeType!==1||u.elem[u.prop]!=null&&u.elem.style[u.prop]==null?u.elem[u.prop]:(h=g.css(u.elem,u.prop,""),!h||h==="auto"?0:h)},set:function(u){g.fx.step[u.prop]?g.fx.step[u.prop](u):u.elem.nodeType===1&&(g.cssHooks[u.prop]||u.elem.style[ai(u.prop)]!=null)?g.style(u.elem,u.prop,u.now+u.unit):u.elem[u.prop]=u.now}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(u){u.elem.nodeType&&u.elem.parentNode&&(u.elem[u.prop]=u.now)}},g.easing={linear:function(u){return u},swing:function(u){return .5-Math.cos(u*Math.PI)/2},_default:"swing"},g.fx=ot.prototype.init,g.fx.step={};var wn,pa,Ra=/^(?:toggle|show|hide)$/,kr=/queueHooks$/;function $a(){pa&&(L.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame($a):a.setTimeout($a,g.fx.interval),g.fx.tick())}function Au(){return a.setTimeout(function(){wn=void 0}),wn=Date.now()}function ua(u,h){var y,b=0,_={height:u};for(h=h?1:0;b<4;b+=2-h)y=Qt[b],_["margin"+y]=_["padding"+y]=u;return h&&(_.opacity=_.width=u),_}function Zs(u,h,y){for(var b,_=(ta.tweeners[h]||[]).concat(ta.tweeners["*"]),C=0,N=_.length;C<N;C++)if(b=_[C].call(y,h,u))return b}function Eu(u,h,y){var b,_,C,N,Y,B,K,me,xe="width"in h||"height"in h,le=this,De={},pt=u.style,zt=u.nodeType&&yn(u),bt=X.get(u,"fxshow");y.queue||(N=g._queueHooks(u,"fx"),N.unqueued==null&&(N.unqueued=0,Y=N.empty.fire,N.empty.fire=function(){N.unqueued||Y()}),N.unqueued++,le.always(function(){le.always(function(){N.unqueued--,g.queue(u,"fx").length||N.empty.fire()})}));for(b in h)if(_=h[b],Ra.test(_)){if(delete h[b],C=C||_==="toggle",_===(zt?"hide":"show"))if(_==="show"&&bt&&bt[b]!==void 0)zt=!0;else continue;De[b]=bt&&bt[b]||g.style(u,b)}if(B=!g.isEmptyObject(h),!(!B&&g.isEmptyObject(De))){xe&&u.nodeType===1&&(y.overflow=[pt.overflow,pt.overflowX,pt.overflowY],K=bt&&bt.display,K==null&&(K=X.get(u,"display")),me=g.css(u,"display"),me==="none"&&(K?me=K:(Ft([u],!0),K=u.style.display||K,me=g.css(u,"display"),Ft([u]))),(me==="inline"||me==="inline-block"&&K!=null)&&g.css(u,"float")==="none"&&(B||(le.done(function(){pt.display=K}),K==null&&(me=pt.display,K=me==="none"?"":me)),pt.display="inline-block")),y.overflow&&(pt.overflow="hidden",le.always(function(){pt.overflow=y.overflow[0],pt.overflowX=y.overflow[1],pt.overflowY=y.overflow[2]})),B=!1;for(b in De)B||(bt?"hidden"in bt&&(zt=bt.hidden):bt=X.access(u,"fxshow",{display:K}),C&&(bt.hidden=!zt),zt&&Ft([u],!0),le.done(function(){zt||Ft([u]),X.remove(u,"fxshow");for(b in De)g.style(u,b,De[b])})),B=Zs(zt?bt[b]:0,b,le),b in bt||(bt[b]=B.start,zt&&(B.end=B.start,B.start=0))}}function Gl(u,h){var y,b,_,C,N;for(y in u)if(b=At(y),_=h[b],C=u[y],Array.isArray(C)&&(_=C[1],C=u[y]=C[0]),y!==b&&(u[b]=C,delete u[y]),N=g.cssHooks[b],N&&"expand"in N){C=N.expand(C),delete u[b];for(y in C)y in u||(u[y]=C[y],h[y]=_)}else h[b]=_}function ta(u,h,y){var b,_,C=0,N=ta.prefilters.length,Y=g.Deferred().always(function(){delete B.elem}),B=function(){if(_)return!1;for(var xe=wn||Au(),le=Math.max(0,K.startTime+K.duration-xe),De=le/K.duration||0,pt=1-De,zt=0,bt=K.tweens.length;zt<bt;zt++)K.tweens[zt].run(pt);return Y.notifyWith(u,[K,pt,le]),pt<1&&bt?le:(bt||Y.notifyWith(u,[K,1,0]),Y.resolveWith(u,[K]),!1)},K=Y.promise({elem:u,props:g.extend({},h),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},y),originalProperties:h,originalOptions:y,startTime:wn||Au(),duration:y.duration,tweens:[],createTween:function(xe,le){var De=g.Tween(u,K.opts,xe,le,K.opts.specialEasing[xe]||K.opts.easing);return K.tweens.push(De),De},stop:function(xe){var le=0,De=xe?K.tweens.length:0;if(_)return this;for(_=!0;le<De;le++)K.tweens[le].run(1);return xe?(Y.notifyWith(u,[K,1,0]),Y.resolveWith(u,[K,xe])):Y.rejectWith(u,[K,xe]),this}}),me=K.props;for(Gl(me,K.opts.specialEasing);C<N;C++)if(b=ta.prefilters[C].call(K,u,me,K.opts),b)return O(b.stop)&&(g._queueHooks(K.elem,K.opts.queue).stop=b.stop.bind(b)),b;return g.map(me,Zs,K),O(K.opts.start)&&K.opts.start.call(u,K),K.progress(K.opts.progress).done(K.opts.done,K.opts.complete).fail(K.opts.fail).always(K.opts.always),g.fx.timer(g.extend(B,{elem:u,anim:K,queue:K.opts.queue})),K}g.Animation=g.extend(ta,{tweeners:{"*":[function(u,h){var y=this.createTween(u,h);return ha(y.elem,u,Et.exec(h),y),y}]},tweener:function(u,h){O(u)?(h=u,u=["*"]):u=u.match(tt);for(var y,b=0,_=u.length;b<_;b++)y=u[b],ta.tweeners[y]=ta.tweeners[y]||[],ta.tweeners[y].unshift(h)},prefilters:[Eu],prefilter:function(u,h){h?ta.prefilters.unshift(u):ta.prefilters.push(u)}}),g.speed=function(u,h,y){var b=u&&typeof u=="object"?g.extend({},u):{complete:y||!y&&h||O(u)&&u,duration:u,easing:y&&h||h&&!O(h)&&h};return g.fx.off?b.duration=0:typeof b.duration!="number"&&(b.duration in g.fx.speeds?b.duration=g.fx.speeds[b.duration]:b.duration=g.fx.speeds._default),(b.queue==null||b.queue===!0)&&(b.queue="fx"),b.old=b.complete,b.complete=function(){O(b.old)&&b.old.call(this),b.queue&&g.dequeue(this,b.queue)},b},g.fn.extend({fadeTo:function(u,h,y,b){return this.filter(yn).css("opacity",0).show().end().animate({opacity:h},u,y,b)},animate:function(u,h,y,b){var _=g.isEmptyObject(u),C=g.speed(h,y,b),N=function(){var Y=ta(this,g.extend({},u),C);(_||X.get(this,"finish"))&&Y.stop(!0)};return N.finish=N,_||C.queue===!1?this.each(N):this.queue(C.queue,N)},stop:function(u,h,y){var b=function(_){var C=_.stop;delete _.stop,C(y)};return typeof u!="string"&&(y=h,h=u,u=void 0),h&&this.queue(u||"fx",[]),this.each(function(){var _=!0,C=u!=null&&u+"queueHooks",N=g.timers,Y=X.get(this);if(C)Y[C]&&Y[C].stop&&b(Y[C]);else for(C in Y)Y[C]&&Y[C].stop&&kr.test(C)&&b(Y[C]);for(C=N.length;C--;)N[C].elem===this&&(u==null||N[C].queue===u)&&(N[C].anim.stop(y),_=!1,N.splice(C,1));(_||!y)&&g.dequeue(this,u)})},finish:function(u){return u!==!1&&(u=u||"fx"),this.each(function(){var h,y=X.get(this),b=y[u+"queue"],_=y[u+"queueHooks"],C=g.timers,N=b?b.length:0;for(y.finish=!0,g.queue(this,u,[]),_&&_.stop&&_.stop.call(this,!0),h=C.length;h--;)C[h].elem===this&&C[h].queue===u&&(C[h].anim.stop(!0),C.splice(h,1));for(h=0;h<N;h++)b[h]&&b[h].finish&&b[h].finish.call(this);delete y.finish})}}),g.each(["toggle","show","hide"],function(u,h){var y=g.fn[h];g.fn[h]=function(b,_,C){return b==null||typeof b=="boolean"?y.apply(this,arguments):this.animate(ua(h,!0),b,_,C)}}),g.each({slideDown:ua("show"),slideUp:ua("hide"),slideToggle:ua("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(u,h){g.fn[u]=function(y,b,_){return this.animate(h,y,b,_)}}),g.timers=[],g.fx.tick=function(){var u,h=0,y=g.timers;for(wn=Date.now();h<y.length;h++)u=y[h],!u()&&y[h]===u&&y.splice(h--,1);y.length||g.fx.stop(),wn=void 0},g.fx.timer=function(u){g.timers.push(u),g.fx.start()},g.fx.interval=13,g.fx.start=function(){pa||(pa=!0,$a())},g.fx.stop=function(){pa=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(u,h){return u=g.fx&&g.fx.speeds[u]||u,h=h||"fx",this.queue(h,function(y,b){var _=a.setTimeout(y,u);b.stop=function(){a.clearTimeout(_)}})},(function(){var u=L.createElement("input"),h=L.createElement("select"),y=h.appendChild(L.createElement("option"));u.type="checkbox",z.checkOn=u.value!=="",z.optSelected=y.selected,u=L.createElement("input"),u.value="t",u.type="radio",z.radioValue=u.value==="t"})();var Il,Oi=g.expr.attrHandle;g.fn.extend({attr:function(u,h){return Sn(this,g.attr,u,h,arguments.length>1)},removeAttr:function(u){return this.each(function(){g.removeAttr(this,u)})}}),g.extend({attr:function(u,h,y){var b,_,C=u.nodeType;if(!(C===3||C===8||C===2)){if(typeof u.getAttribute>"u")return g.prop(u,h,y);if((C!==1||!g.isXMLDoc(u))&&(_=g.attrHooks[h.toLowerCase()]||(g.expr.match.bool.test(h)?Il:void 0)),y!==void 0){if(y===null){g.removeAttr(u,h);return}return _&&"set"in _&&(b=_.set(u,y,h))!==void 0?b:(u.setAttribute(h,y+""),y)}return _&&"get"in _&&(b=_.get(u,h))!==null?b:(b=g.find.attr(u,h),b??void 0)}},attrHooks:{type:{set:function(u,h){if(!z.radioValue&&h==="radio"&&ne(u,"input")){var y=u.value;return u.setAttribute("type",h),y&&(u.value=y),h}}}},removeAttr:function(u,h){var y,b=0,_=h&&h.match(tt);if(_&&u.nodeType===1)for(;y=_[b++];)u.removeAttribute(y)}}),Il={set:function(u,h,y){return h===!1?g.removeAttr(u,y):u.setAttribute(y,y),y}},g.each(g.expr.match.bool.source.match(/\w+/g),function(u,h){var y=Oi[h]||g.find.attr;Oi[h]=function(b,_,C){var N,Y,B=_.toLowerCase();return C||(Y=Oi[B],Oi[B]=N,N=y(b,_,C)!=null?B:null,Oi[B]=Y),N}});var ki=/^(?:input|select|textarea|button)$/i,kf=/^(?:a|area)$/i;g.fn.extend({prop:function(u,h){return Sn(this,g.prop,u,h,arguments.length>1)},removeProp:function(u){return this.each(function(){delete this[g.propFix[u]||u]})}}),g.extend({prop:function(u,h,y){var b,_,C=u.nodeType;if(!(C===3||C===8||C===2))return(C!==1||!g.isXMLDoc(u))&&(h=g.propFix[h]||h,_=g.propHooks[h]),y!==void 0?_&&"set"in _&&(b=_.set(u,y,h))!==void 0?b:u[h]=y:_&&"get"in _&&(b=_.get(u,h))!==null?b:u[h]},propHooks:{tabIndex:{get:function(u){var h=g.find.attr(u,"tabindex");return h?parseInt(h,10):ki.test(u.nodeName)||kf.test(u.nodeName)&&u.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),z.optSelected||(g.propHooks.selected={get:function(u){var h=u.parentNode;return h&&h.parentNode&&h.parentNode.selectedIndex,null},set:function(u){var h=u.parentNode;h&&(h.selectedIndex,h.parentNode&&h.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});function Mr(u){var h=u.match(tt)||[];return h.join(" ")}function Lr(u){return u.getAttribute&&u.getAttribute("class")||""}function gs(u){return Array.isArray(u)?u:typeof u=="string"?u.match(tt)||[]:[]}g.fn.extend({addClass:function(u){var h,y,b,_,C,N;return O(u)?this.each(function(Y){g(this).addClass(u.call(this,Y,Lr(this)))}):(h=gs(u),h.length?this.each(function(){if(b=Lr(this),y=this.nodeType===1&&" "+Mr(b)+" ",y){for(C=0;C<h.length;C++)_=h[C],y.indexOf(" "+_+" ")<0&&(y+=_+" ");N=Mr(y),b!==N&&this.setAttribute("class",N)}}):this)},removeClass:function(u){var h,y,b,_,C,N;return O(u)?this.each(function(Y){g(this).removeClass(u.call(this,Y,Lr(this)))}):arguments.length?(h=gs(u),h.length?this.each(function(){if(b=Lr(this),y=this.nodeType===1&&" "+Mr(b)+" ",y){for(C=0;C<h.length;C++)for(_=h[C];y.indexOf(" "+_+" ")>-1;)y=y.replace(" "+_+" "," ");N=Mr(y),b!==N&&this.setAttribute("class",N)}}):this):this.attr("class","")},toggleClass:function(u,h){var y,b,_,C,N=typeof u,Y=N==="string"||Array.isArray(u);return O(u)?this.each(function(B){g(this).toggleClass(u.call(this,B,Lr(this),h),h)}):typeof h=="boolean"&&Y?h?this.addClass(u):this.removeClass(u):(y=gs(u),this.each(function(){if(Y)for(C=g(this),_=0;_<y.length;_++)b=y[_],C.hasClass(b)?C.removeClass(b):C.addClass(b);else(u===void 0||N==="boolean")&&(b=Lr(this),b&&X.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||u===!1?"":X.get(this,"__className__")||""))}))},hasClass:function(u){var h,y,b=0;for(h=" "+u+" ";y=this[b++];)if(y.nodeType===1&&(" "+Mr(Lr(y))+" ").indexOf(h)>-1)return!0;return!1}});var Mf=/\r/g;g.fn.extend({val:function(u){var h,y,b,_=this[0];return arguments.length?(b=O(u),this.each(function(C){var N;this.nodeType===1&&(b?N=u.call(this,C,g(this).val()):N=u,N==null?N="":typeof N=="number"?N+="":Array.isArray(N)&&(N=g.map(N,function(Y){return Y==null?"":Y+""})),h=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],(!h||!("set"in h)||h.set(this,N,"value")===void 0)&&(this.value=N))})):_?(h=g.valHooks[_.type]||g.valHooks[_.nodeName.toLowerCase()],h&&"get"in h&&(y=h.get(_,"value"))!==void 0?y:(y=_.value,typeof y=="string"?y.replace(Mf,""):y??"")):void 0}}),g.extend({valHooks:{option:{get:function(u){var h=g.find.attr(u,"value");return h??Mr(g.text(u))}},select:{get:function(u){var h,y,b,_=u.options,C=u.selectedIndex,N=u.type==="select-one",Y=N?null:[],B=N?C+1:_.length;for(C<0?b=B:b=N?C:0;b<B;b++)if(y=_[b],(y.selected||b===C)&&!y.disabled&&(!y.parentNode.disabled||!ne(y.parentNode,"optgroup"))){if(h=g(y).val(),N)return h;Y.push(h)}return Y},set:function(u,h){for(var y,b,_=u.options,C=g.makeArray(h),N=_.length;N--;)b=_[N],(b.selected=g.inArray(g.valHooks.option.get(b),C)>-1)&&(y=!0);return y||(u.selectedIndex=-1),C}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(u,h){if(Array.isArray(h))return u.checked=g.inArray(g(u).val(),h)>-1}},z.checkOn||(g.valHooks[this].get=function(u){return u.getAttribute("value")===null?"on":u.value})});var ys=a.location,vs={guid:Date.now()},bs=/\?/;g.parseXML=function(u){var h,y;if(!u||typeof u!="string")return null;try{h=new a.DOMParser().parseFromString(u,"text/xml")}catch{}return y=h&&h.getElementsByTagName("parsererror")[0],(!h||y)&&g.error("Invalid XML: "+(y?g.map(y.childNodes,function(b){return b.textContent}).join(`
`):u)),h};var Xs=/^(?:focusinfocus|focusoutblur)$/,ri=function(u){u.stopPropagation()};g.extend(g.event,{trigger:function(u,h,y,b){var _,C,N,Y,B,K,me,xe,le=[y||L],De=w.call(u,"type")?u.type:u,pt=w.call(u,"namespace")?u.namespace.split("."):[];if(C=xe=N=y=y||L,!(y.nodeType===3||y.nodeType===8)&&!Xs.test(De+g.event.triggered)&&(De.indexOf(".")>-1&&(pt=De.split("."),De=pt.shift(),pt.sort()),B=De.indexOf(":")<0&&"on"+De,u=u[g.expando]?u:new g.Event(De,typeof u=="object"&&u),u.isTrigger=b?2:3,u.namespace=pt.join("."),u.rnamespace=u.namespace?new RegExp("(^|\\.)"+pt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=y),h=h==null?[u]:g.makeArray(h,[u]),me=g.event.special[De]||{},!(!b&&me.trigger&&me.trigger.apply(y,h)===!1))){if(!b&&!me.noBubble&&!U(y)){for(Y=me.delegateType||De,Xs.test(Y+De)||(C=C.parentNode);C;C=C.parentNode)le.push(C),N=C;N===(y.ownerDocument||L)&&le.push(N.defaultView||N.parentWindow||a)}for(_=0;(C=le[_++])&&!u.isPropagationStopped();)xe=C,u.type=_>1?Y:me.bindType||De,K=(X.get(C,"events")||Object.create(null))[u.type]&&X.get(C,"handle"),K&&K.apply(C,h),K=B&&C[B],K&&K.apply&&H(C)&&(u.result=K.apply(C,h),u.result===!1&&u.preventDefault());return u.type=De,!b&&!u.isDefaultPrevented()&&(!me._default||me._default.apply(le.pop(),h)===!1)&&H(y)&&B&&O(y[De])&&!U(y)&&(N=y[B],N&&(y[B]=null),g.event.triggered=De,u.isPropagationStopped()&&xe.addEventListener(De,ri),y[De](),u.isPropagationStopped()&&xe.removeEventListener(De,ri),g.event.triggered=void 0,N&&(y[B]=N)),u.result}},simulate:function(u,h,y){var b=g.extend(new g.Event,y,{type:u,isSimulated:!0});g.event.trigger(b,null,h)}}),g.fn.extend({trigger:function(u,h){return this.each(function(){g.event.trigger(u,h,this)})},triggerHandler:function(u,h){var y=this[0];if(y)return g.event.trigger(u,h,y,!0)}});var Mi=/\[\]$/,Ql=/\r?\n/g,Kl=/^(?:submit|button|image|reset|file)$/i,_u=/^(?:input|select|textarea|keygen)/i;function ii(u,h,y,b){var _;if(Array.isArray(h))g.each(h,function(C,N){y||Mi.test(u)?b(u,N):ii(u+"["+(typeof N=="object"&&N!=null?C:"")+"]",N,y,b)});else if(!y&&ee(h)==="object")for(_ in h)ii(u+"["+_+"]",h[_],y,b);else b(u,h)}g.param=function(u,h){var y,b=[],_=function(C,N){var Y=O(N)?N():N;b[b.length]=encodeURIComponent(C)+"="+encodeURIComponent(Y??"")};if(u==null)return"";if(Array.isArray(u)||u.jquery&&!g.isPlainObject(u))g.each(u,function(){_(this.name,this.value)});else for(y in u)ii(y,u[y],h,_);return b.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var u=g.prop(this,"elements");return u?g.makeArray(u):this}).filter(function(){var u=this.type;return this.name&&!g(this).is(":disabled")&&_u.test(this.nodeName)&&!Kl.test(u)&&(this.checked||!Rt.test(u))}).map(function(u,h){var y=g(this).val();return y==null?null:Array.isArray(y)?g.map(y,function(b){return{name:h.name,value:b.replace(Ql,`\r
`)}}):{name:h.name,value:y.replace(Ql,`\r
`)}}).get()}});var dr=/%20/g,$l=/#.*$/,xs=/([?&])_=[^&]*/,zr=/^(.*?):[ \t]*([^\r\n]*)$/mg,Wl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fs=/^(?:GET|HEAD)$/,Tu=/^\/\//,Ss={},Li={},Jl="*/".concat("*"),na=L.createElement("a");na.href=ys.href;function Ur(u){return function(h,y){typeof h!="string"&&(y=h,h="*");var b,_=0,C=h.toLowerCase().match(tt)||[];if(O(y))for(;b=C[_++];)b[0]==="+"?(b=b.slice(1)||"*",(u[b]=u[b]||[]).unshift(y)):(u[b]=u[b]||[]).push(y)}}function ws(u,h,y,b){var _={},C=u===Li;function N(Y){var B;return _[Y]=!0,g.each(u[Y]||[],function(K,me){var xe=me(h,y,b);if(typeof xe=="string"&&!C&&!_[xe])return h.dataTypes.unshift(xe),N(xe),!1;if(C)return!(B=xe)}),B}return N(h.dataTypes[0])||!_["*"]&&N("*")}function si(u,h){var y,b,_=g.ajaxSettings.flatOptions||{};for(y in h)h[y]!==void 0&&((_[y]?u:b||(b={}))[y]=h[y]);return b&&g.extend(!0,u,b),u}function Lf(u,h,y){for(var b,_,C,N,Y=u.contents,B=u.dataTypes;B[0]==="*";)B.shift(),b===void 0&&(b=u.mimeType||h.getResponseHeader("Content-Type"));if(b){for(_ in Y)if(Y[_]&&Y[_].test(b)){B.unshift(_);break}}if(B[0]in y)C=B[0];else{for(_ in y){if(!B[0]||u.converters[_+" "+B[0]]){C=_;break}N||(N=_)}C=C||N}if(C)return C!==B[0]&&B.unshift(C),y[C]}function eo(u,h,y,b){var _,C,N,Y,B,K={},me=u.dataTypes.slice();if(me[1])for(N in u.converters)K[N.toLowerCase()]=u.converters[N];for(C=me.shift();C;)if(u.responseFields[C]&&(y[u.responseFields[C]]=h),!B&&b&&u.dataFilter&&(h=u.dataFilter(h,u.dataType)),B=C,C=me.shift(),C){if(C==="*")C=B;else if(B!=="*"&&B!==C){if(N=K[B+" "+C]||K["* "+C],!N){for(_ in K)if(Y=_.split(" "),Y[1]===C&&(N=K[B+" "+Y[0]]||K["* "+Y[0]],N)){N===!0?N=K[_]:K[_]!==!0&&(C=Y[0],me.unshift(Y[1]));break}}if(N!==!0)if(N&&u.throws)h=N(h);else try{h=N(h)}catch(xe){return{state:"parsererror",error:N?xe:"No conversion from "+B+" to "+C}}}}return{state:"success",data:h}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ys.href,type:"GET",isLocal:Wl.test(ys.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jl,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(u,h){return h?si(si(u,g.ajaxSettings),h):si(g.ajaxSettings,u)},ajaxPrefilter:Ur(Ss),ajaxTransport:Ur(Li),ajax:function(u,h){typeof u=="object"&&(h=u,u=void 0),h=h||{};var y,b,_,C,N,Y,B,K,me,xe,le=g.ajaxSetup({},h),De=le.context||le,pt=le.context&&(De.nodeType||De.jquery)?g(De):g.event,zt=g.Deferred(),bt=g.Callbacks("once memory"),In=le.statusCode||{},Bn={},Wa={},Ja="canceled",jt={readyState:0,getResponseHeader:function(qt){var An;if(B){if(!C)for(C={};An=zr.exec(_);)C[An[1].toLowerCase()+" "]=(C[An[1].toLowerCase()+" "]||[]).concat(An[2]);An=C[qt.toLowerCase()+" "]}return An==null?null:An.join(", ")},getAllResponseHeaders:function(){return B?_:null},setRequestHeader:function(qt,An){return B==null&&(qt=Wa[qt.toLowerCase()]=Wa[qt.toLowerCase()]||qt,Bn[qt]=An),this},overrideMimeType:function(qt){return B==null&&(le.mimeType=qt),this},statusCode:function(qt){var An;if(qt)if(B)jt.always(qt[jt.status]);else for(An in qt)In[An]=[In[An],qt[An]];return this},abort:function(qt){var An=qt||Ja;return y&&y.abort(An),li(0,An),this}};if(zt.promise(jt),le.url=((u||le.url||ys.href)+"").replace(Tu,ys.protocol+"//"),le.type=h.method||h.type||le.method||le.type,le.dataTypes=(le.dataType||"*").toLowerCase().match(tt)||[""],le.crossDomain==null){Y=L.createElement("a");try{Y.href=le.url,Y.href=Y.href,le.crossDomain=na.protocol+"//"+na.host!=Y.protocol+"//"+Y.host}catch{le.crossDomain=!0}}if(le.data&&le.processData&&typeof le.data!="string"&&(le.data=g.param(le.data,le.traditional)),ws(Ss,le,h,jt),B)return jt;K=g.event&&le.global,K&&g.active++===0&&g.event.trigger("ajaxStart"),le.type=le.type.toUpperCase(),le.hasContent=!Fs.test(le.type),b=le.url.replace($l,""),le.hasContent?le.data&&le.processData&&(le.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(le.data=le.data.replace(dr,"+")):(xe=le.url.slice(b.length),le.data&&(le.processData||typeof le.data=="string")&&(b+=(bs.test(b)?"&":"?")+le.data,delete le.data),le.cache===!1&&(b=b.replace(xs,"$1"),xe=(bs.test(b)?"&":"?")+"_="+vs.guid+++xe),le.url=b+xe),le.ifModified&&(g.lastModified[b]&&jt.setRequestHeader("If-Modified-Since",g.lastModified[b]),g.etag[b]&&jt.setRequestHeader("If-None-Match",g.etag[b])),(le.data&&le.hasContent&&le.contentType!==!1||h.contentType)&&jt.setRequestHeader("Content-Type",le.contentType),jt.setRequestHeader("Accept",le.dataTypes[0]&&le.accepts[le.dataTypes[0]]?le.accepts[le.dataTypes[0]]+(le.dataTypes[0]!=="*"?", "+Jl+"; q=0.01":""):le.accepts["*"]);for(me in le.headers)jt.setRequestHeader(me,le.headers[me]);if(le.beforeSend&&(le.beforeSend.call(De,jt,le)===!1||B))return jt.abort();if(Ja="abort",bt.add(le.complete),jt.done(le.success),jt.fail(le.error),y=ws(Li,le,h,jt),!y)li(-1,"No Transport");else{if(jt.readyState=1,K&&pt.trigger("ajaxSend",[jt,le]),B)return jt;le.async&&le.timeout>0&&(N=a.setTimeout(function(){jt.abort("timeout")},le.timeout));try{B=!1,y.send(Bn,li)}catch(qt){if(B)throw qt;li(-1,qt)}}function li(qt,An,oi,ui){var er,zi,qa,pr,mr,Sa=An;B||(B=!0,N&&a.clearTimeout(N),y=void 0,_=ui||"",jt.readyState=qt>0?4:0,er=qt>=200&&qt<300||qt===304,oi&&(pr=Lf(le,jt,oi)),!er&&g.inArray("script",le.dataTypes)>-1&&g.inArray("json",le.dataTypes)<0&&(le.converters["text script"]=function(){}),pr=eo(le,pr,jt,er),er?(le.ifModified&&(mr=jt.getResponseHeader("Last-Modified"),mr&&(g.lastModified[b]=mr),mr=jt.getResponseHeader("etag"),mr&&(g.etag[b]=mr)),qt===204||le.type==="HEAD"?Sa="nocontent":qt===304?Sa="notmodified":(Sa=pr.state,zi=pr.data,qa=pr.error,er=!qa)):(qa=Sa,(qt||!Sa)&&(Sa="error",qt<0&&(qt=0))),jt.status=qt,jt.statusText=(An||Sa)+"",er?zt.resolveWith(De,[zi,Sa,jt]):zt.rejectWith(De,[jt,Sa,qa]),jt.statusCode(In),In=void 0,K&&pt.trigger(er?"ajaxSuccess":"ajaxError",[jt,le,er?zi:qa]),bt.fireWith(De,[jt,Sa]),K&&(pt.trigger("ajaxComplete",[jt,le]),--g.active||g.event.trigger("ajaxStop")))}return jt},getJSON:function(u,h,y){return g.get(u,h,y,"json")},getScript:function(u,h){return g.get(u,void 0,h,"script")}}),g.each(["get","post"],function(u,h){g[h]=function(y,b,_,C){return O(b)&&(C=C||_,_=b,b=void 0),g.ajax(g.extend({url:y,type:h,dataType:C,data:b,success:_},g.isPlainObject(y)&&y))}}),g.ajaxPrefilter(function(u){var h;for(h in u.headers)h.toLowerCase()==="content-type"&&(u.contentType=u.headers[h]||"")}),g._evalUrl=function(u,h,y){return g.ajax({url:u,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(b){g.globalEval(b,h,y)}})},g.fn.extend({wrapAll:function(u){var h;return this[0]&&(O(u)&&(u=u.call(this[0])),h=g(u,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&h.insertBefore(this[0]),h.map(function(){for(var y=this;y.firstElementChild;)y=y.firstElementChild;return y}).append(this)),this},wrapInner:function(u){return O(u)?this.each(function(h){g(this).wrapInner(u.call(this,h))}):this.each(function(){var h=g(this),y=h.contents();y.length?y.wrapAll(u):h.append(u)})},wrap:function(u){var h=O(u);return this.each(function(y){g(this).wrapAll(h?u.call(this,y):u)})},unwrap:function(u){return this.parent(u).not("body").each(function(){g(this).replaceWith(this.childNodes)}),this}}),g.expr.pseudos.hidden=function(u){return!g.expr.pseudos.visible(u)},g.expr.pseudos.visible=function(u){return!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length)},g.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch{}};var to={0:200,1223:204},hr=g.ajaxSettings.xhr();z.cors=!!hr&&"withCredentials"in hr,z.ajax=hr=!!hr,g.ajaxTransport(function(u){var h,y;if(z.cors||hr&&!u.crossDomain)return{send:function(b,_){var C,N=u.xhr();if(N.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(C in u.xhrFields)N[C]=u.xhrFields[C];u.mimeType&&N.overrideMimeType&&N.overrideMimeType(u.mimeType),!u.crossDomain&&!b["X-Requested-With"]&&(b["X-Requested-With"]="XMLHttpRequest");for(C in b)N.setRequestHeader(C,b[C]);h=function(Y){return function(){h&&(h=y=N.onload=N.onerror=N.onabort=N.ontimeout=N.onreadystatechange=null,Y==="abort"?N.abort():Y==="error"?typeof N.status!="number"?_(0,"error"):_(N.status,N.statusText):_(to[N.status]||N.status,N.statusText,(N.responseType||"text")!=="text"||typeof N.responseText!="string"?{binary:N.response}:{text:N.responseText},N.getAllResponseHeaders()))}},N.onload=h(),y=N.onerror=N.ontimeout=h("error"),N.onabort!==void 0?N.onabort=y:N.onreadystatechange=function(){N.readyState===4&&a.setTimeout(function(){h&&y()})},h=h("abort");try{N.send(u.hasContent&&u.data||null)}catch(Y){if(h)throw Y}},abort:function(){h&&h()}}}),g.ajaxPrefilter(function(u){u.crossDomain&&(u.contents.script=!1)}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(u){return g.globalEval(u),u}}}),g.ajaxPrefilter("script",function(u){u.cache===void 0&&(u.cache=!1),u.crossDomain&&(u.type="GET")}),g.ajaxTransport("script",function(u){if(u.crossDomain||u.scriptAttrs){var h,y;return{send:function(b,_){h=g("<script>").attr(u.scriptAttrs||{}).prop({charset:u.scriptCharset,src:u.url}).on("load error",y=function(C){h.remove(),y=null,C&&_(C.type==="error"?404:200,C.type)}),L.head.appendChild(h[0])},abort:function(){y&&y()}}}});var As=[],Gs=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var u=As.pop()||g.expando+"_"+vs.guid++;return this[u]=!0,u}}),g.ajaxPrefilter("json jsonp",function(u,h,y){var b,_,C,N=u.jsonp!==!1&&(Gs.test(u.url)?"url":typeof u.data=="string"&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Gs.test(u.data)&&"data");if(N||u.dataTypes[0]==="jsonp")return b=u.jsonpCallback=O(u.jsonpCallback)?u.jsonpCallback():u.jsonpCallback,N?u[N]=u[N].replace(Gs,"$1"+b):u.jsonp!==!1&&(u.url+=(bs.test(u.url)?"&":"?")+u.jsonp+"="+b),u.converters["script json"]=function(){return C||g.error(b+" was not called"),C[0]},u.dataTypes[0]="json",_=a[b],a[b]=function(){C=arguments},y.always(function(){_===void 0?g(a).removeProp(b):a[b]=_,u[b]&&(u.jsonpCallback=h.jsonpCallback,As.push(b)),C&&O(_)&&_(C[0]),C=_=void 0}),"script"}),z.createHTMLDocument=(function(){var u=L.implementation.createHTMLDocument("").body;return u.innerHTML="<form></form><form></form>",u.childNodes.length===2})(),g.parseHTML=function(u,h,y){if(typeof u!="string")return[];typeof h=="boolean"&&(y=h,h=!1);var b,_,C;return h||(z.createHTMLDocument?(h=L.implementation.createHTMLDocument(""),b=h.createElement("base"),b.href=L.location.href,h.head.appendChild(b)):h=L),_=Ne.exec(u),C=!y&&[],_?[h.createElement(_[1])]:(_=Jt([u],h,C),C&&C.length&&g(C).remove(),g.merge([],_.childNodes))},g.fn.load=function(u,h,y){var b,_,C,N=this,Y=u.indexOf(" ");return Y>-1&&(b=Mr(u.slice(Y)),u=u.slice(0,Y)),O(h)?(y=h,h=void 0):h&&typeof h=="object"&&(_="POST"),N.length>0&&g.ajax({url:u,type:_||"GET",dataType:"html",data:h}).done(function(B){C=arguments,N.html(b?g("<div>").append(g.parseHTML(B)).find(b):B)}).always(y&&function(B,K){N.each(function(){y.apply(this,C||[B.responseText,K,B])})}),this},g.expr.pseudos.animated=function(u){return g.grep(g.timers,function(h){return u===h.elem}).length},g.offset={setOffset:function(u,h,y){var b,_,C,N,Y,B,K,me=g.css(u,"position"),xe=g(u),le={};me==="static"&&(u.style.position="relative"),Y=xe.offset(),C=g.css(u,"top"),B=g.css(u,"left"),K=(me==="absolute"||me==="fixed")&&(C+B).indexOf("auto")>-1,K?(b=xe.position(),N=b.top,_=b.left):(N=parseFloat(C)||0,_=parseFloat(B)||0),O(h)&&(h=h.call(u,y,g.extend({},Y))),h.top!=null&&(le.top=h.top-Y.top+N),h.left!=null&&(le.left=h.left-Y.left+_),"using"in h?h.using.call(u,le):xe.css(le)}},g.fn.extend({offset:function(u){if(arguments.length)return u===void 0?this:this.each(function(_){g.offset.setOffset(this,u,_)});var h,y,b=this[0];if(b)return b.getClientRects().length?(h=b.getBoundingClientRect(),y=b.ownerDocument.defaultView,{top:h.top+y.pageYOffset,left:h.left+y.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var u,h,y,b=this[0],_={top:0,left:0};if(g.css(b,"position")==="fixed")h=b.getBoundingClientRect();else{for(h=this.offset(),y=b.ownerDocument,u=b.offsetParent||y.documentElement;u&&(u===y.body||u===y.documentElement)&&g.css(u,"position")==="static";)u=u.parentNode;u&&u!==b&&u.nodeType===1&&(_=g(u).offset(),_.top+=g.css(u,"borderTopWidth",!0),_.left+=g.css(u,"borderLeftWidth",!0))}return{top:h.top-_.top-g.css(b,"marginTop",!0),left:h.left-_.left-g.css(b,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var u=this.offsetParent;u&&g.css(u,"position")==="static";)u=u.offsetParent;return u||Zt})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(u,h){var y=h==="pageYOffset";g.fn[u]=function(b){return Sn(this,function(_,C,N){var Y;if(U(_)?Y=_:_.nodeType===9&&(Y=_.defaultView),N===void 0)return Y?Y[h]:_[C];Y?Y.scrollTo(y?Y.pageXOffset:N,y?N:Y.pageYOffset):_[C]=N},u,b,arguments.length)}}),g.each(["top","left"],function(u,h){g.cssHooks[h]=ps(z.pixelPosition,function(y,b){if(b)return b=jr(y,h),Di.test(b)?g(y).position()[h]+"px":b})}),g.each({Height:"height",Width:"width"},function(u,h){g.each({padding:"inner"+u,content:h,"":"outer"+u},function(y,b){g.fn[b]=function(_,C){var N=arguments.length&&(y||typeof _!="boolean"),Y=y||(_===!0||C===!0?"margin":"border");return Sn(this,function(B,K,me){var xe;return U(B)?b.indexOf("outer")===0?B["inner"+u]:B.document.documentElement["client"+u]:B.nodeType===9?(xe=B.documentElement,Math.max(B.body["scroll"+u],xe["scroll"+u],B.body["offset"+u],xe["offset"+u],xe["client"+u])):me===void 0?g.css(B,K,Y):g.style(B,K,me,Y)},h,N?_:void 0,N)}})}),g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(u,h){g.fn[h]=function(y){return this.on(h,y)}}),g.fn.extend({bind:function(u,h,y){return this.on(u,null,h,y)},unbind:function(u,h){return this.off(u,null,h)},delegate:function(u,h,y,b){return this.on(h,u,y,b)},undelegate:function(u,h,y){return arguments.length===1?this.off(u,"**"):this.off(h,u||"**",y)},hover:function(u,h){return this.on("mouseenter",u).on("mouseleave",h||u)}}),g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(u,h){g.fn[h]=function(y,b){return arguments.length>0?this.on(h,null,y,b):this.trigger(h)}});var zf=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;g.proxy=function(u,h){var y,b,_;if(typeof h=="string"&&(y=u[h],h=u,u=y),!!O(u))return b=f.call(arguments,2),_=function(){return u.apply(h||this,b.concat(f.call(arguments)))},_.guid=u.guid=u.guid||g.guid++,_},g.holdReady=function(u){u?g.readyWait++:g.ready(!0)},g.isArray=Array.isArray,g.parseJSON=JSON.parse,g.nodeName=ne,g.isFunction=O,g.isWindow=U,g.camelCase=At,g.type=ee,g.now=Date.now,g.isNumeric=function(u){var h=g.type(u);return(h==="number"||h==="string")&&!isNaN(u-parseFloat(u))},g.trim=function(u){return u==null?"":(u+"").replace(zf,"$1")};var Uf=a.jQuery,Bf=a.$;return g.noConflict=function(u){return a.$===g&&(a.$=Bf),u&&a.jQuery===g&&(a.jQuery=Uf),g},typeof s>"u"&&(a.jQuery=a.$=g),g})})(Ic)),Ic.exports}var lE=sE();const Tl=mf(lE);function oE(){D.useEffect(()=>(Tl(".btn-animate").on("mouseenter",function(n){const a=Tl(this).offset(),s=n.pageX-a.left,l=n.pageY-a.top;Tl(this).find("span").css({top:l,left:s})}).on("mouseout",function(n){const a=Tl(this).offset(),s=n.pageX-a.left,l=n.pageY-a.top;Tl(this).find("span").css({top:l,left:s})}),()=>{Tl(".btn-animate").off("mouseenter mouseout")}),[])}const Oc=Tf(),Tb=()=>{const[n,a]=D.useState(!1),[s,l]=D.useState(!1),[c,f]=D.useState(!1),[p,v]=D.useState(""),S=async()=>{try{const w=await xn.get(`${Oc}/api/v1/users/check-login-status`);f(w.data.loggedin),w.data&&w.data.user&&v(w.data.user.name)}catch(w){console.error(w)}};D.useEffect(()=>{S()},[]);const x=()=>{l(w=>!w)},A=w=>{if(!w)return"";const j=w.trim().split(/\s+/);return j.length===1?j[0].slice(0,2).toUpperCase():(j[0][0]+j[j.length-1][0]).toUpperCase()};return E.jsx("div",{children:E.jsx("header",{id:"header",className:"main-header",children:E.jsx("div",{className:"container-fluid",children:E.jsx("div",{className:"header-wrapper",children:E.jsxs("div",{className:"header-wrap-left",children:[E.jsx("div",{className:"header-left",children:E.jsxs("a",{className:"logo-wrapper loading",href:Oc,children:[E.jsx("img",{width:"320",height:"74",src:"./home-logo.png",className:"main-logo",alt:"SilverShark | Bloxby",decoding:"async"})," "]})}),E.jsx("div",{className:"menu-header menu-header-mobile",children:E.jsx("ul",{id:"top-nav",className:"menu-top menu-bar-wrapper d-flex align-items-center p-0 m-0 gap-3",children:E.jsx("li",{className:"menu-item menu-item-type-custom menu-item-object-custom",children:c?E.jsxs("a",{target:"_blank",className:"d-inline-block",href:`${Oc}/dashboard`,children:[E.jsx("div",{className:"profile-icon",children:A(p)}),E.jsx("span",{className:"d-none d-xl-inline-block ms-1",children:p})]}):E.jsx("a",{target:"_blank",href:`${Oc}/login`,children:"Log In"})})})}),E.jsx("div",{className:"nav-hamburger",children:E.jsx("button",{className:`navTrigger ${s?"active":""}`,onClick:x,id:"navTrigger",children:E.jsxs("svg",{viewBox:"0 0 64 48",children:[E.jsx("path",{d:"M19,15 L45,15 C70,15 58,-2 49.0177126,7 L19,37"}),E.jsx("path",{d:"M19,24 L45,24 C61.2371586,24 57,49 41,33 L32,24"}),E.jsx("path",{d:"M45,33 L19,33 C-8,33 6,-2 22,14 L45,37"})]})})}),E.jsx("div",{className:`mobile-menu-header-wrapper navMenu ${s?"active":""}`,children:E.jsx("div",{className:"menu-full-wrapper",children:E.jsx("div",{className:"menu-sidebar",children:E.jsx("ul",{id:"top-nav",className:"menu-top menu-bar-wrapper d-flex align-items-center p-0 m-0",children:E.jsx("li",{className:"menu-item menu-item-type-custom menu-item-object-custom",children:E.jsx("a",{href:"https://app.bloxby.io/login",children:"Log In"})})})})})})]})})})})})},uE=()=>{oE();const[n,a]=D.useState([]),[s,l]=D.useState(null),c=vf(),f=Tf(),[p,v]=D.useState(""),[S,x]=D.useState(""),[A,w]=D.useState(""),[j,M]=D.useState({}),[z,O]=D.useState(!1),[U,L]=D.useState(!0),P=(p==null?void 0:p.length)??0,Z=500,ee=async ie=>{ie.preventDefault(),O(!0);const g={};if(S.trim()||(g.name="Please enter a website name."),M(g),Object.keys(g).length>0){O(!1);return}O(!0),l(!0);try{I({prompt:p,website_name:S,website_url:A,response_format:rE})}catch(Q){console.error("Failed to generate site structure",Q),M({prompt:"Something went wrong. Please try again."})}finally{O(!1)}},I=async ie=>{l(!0);try{await xn.post(`${f}/api/v1/websites/structure`,ie).then(function(g){const Q=g.data;Q.dev_mode=U,c("/color-template",{state:{returnData:Q}})})}catch(g){console.error("Failed to Get Site Structure:",g),l(!1)}v("")};return E.jsx(E.Fragment,{children:E.jsxs("div",{className:"main-container light-theme light-caption",children:[!s&&E.jsx(Tb,{}),s&&E.jsxs("div",{className:"loading-div",children:[E.jsx("img",{className:"form-img",src:"./home-logo.png",alt:"SilverShark | Bloxby",width:420}),E.jsx("img",{src:lw,alt:"loading...",height:"100px",className:"loading-image"}),E.jsx(B2,{})]}),!s&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"form-container",children:E.jsxs("div",{className:"form-area",children:[E.jsx("h1",{className:"form-heading",children:"Create a website"}),E.jsxs("form",{action:"",id:"userPromptForm",onSubmit:ee,children:[E.jsxs("div",{className:"form-step-control",children:[E.jsxs("div",{className:"form-control",children:[E.jsxs("div",{className:"input-wrap",children:[E.jsx("input",{placeholder:"Website Name",className:"input-control",disabled:z,onChange:ie=>x(ie.target.value),value:S}),j.name&&E.jsx("p",{className:"error-msg",children:j.name})]}),E.jsxs("div",{className:"input-wrap",children:[E.jsx("input",{placeholder:"Website URL",className:"input-control",disabled:z,onChange:ie=>w(ie.target.value),value:A}),j.url&&E.jsx("p",{className:"error-msg",children:j.url})]})]}),E.jsxs("div",{className:"form-control",style:{display:"none"},children:[E.jsxs("div",{className:"input-wrap",children:[E.jsx("textarea",{maxLength:"500",placeholder:"Describe website in a few words.",className:"input-control",name:"user_prompt",id:"userPromptInput",disabled:z,onChange:ie=>v(ie.target.value),value:p}),j.prompt&&E.jsx("p",{className:"error-msg",children:j.prompt})]}),E.jsx("div",{className:"msg-counter-container",children:E.jsxs("div",{className:"text-xs self-end counter-txt","aria-live":"polite",children:[P,"/",Z," chars"]})})]})]}),E.jsxs("div",{className:"form-control",children:[E.jsxs("button",{className:`submit-control btn-custom cyan btn-animate ${s?"disabled":""}`,type:"submit",disabled:s,children:["Generate",E.jsx("span",{})]}),z&&E.jsx("div",{className:"recording-loading-container",children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#808080",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-loader",children:[E.jsx("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),E.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),E.jsx("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),E.jsx("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),E.jsx("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),E.jsx("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),E.jsx("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),E.jsx("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"})]})})]})]})]})}),E.jsx("div",{className:"footer-block front-web",children:E.jsx("div",{className:"container",children:E.jsxs("div",{className:"footcol product-by",children:["Powered by"," ",E.jsxs("a",{href:"https://42works.net/",target:"_blank",children:[E.jsx("img",{src:"./42-logo-white.svg"})," Works"]})]})})})]})]})})};var Cb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bv=Ae.createContext&&Ae.createContext(Cb),cE=["attr","size","title"];function fE(n,a){if(n==null)return{};var s=dE(n,a),l,c;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(n);for(c=0;c<f.length;c++)l=f[c],!(a.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(n,l)&&(s[l]=n[l])}return s}function dE(n,a){if(n==null)return{};var s={};for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)){if(a.indexOf(l)>=0)continue;s[l]=n[l]}return s}function lf(){return lf=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(n[l]=s[l])}return n},lf.apply(this,arguments)}function Hv(n,a){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);a&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),s.push.apply(s,l)}return s}function of(n){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?Hv(Object(s),!0).forEach(function(l){hE(n,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):Hv(Object(s)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(s,l))})}return n}function hE(n,a,s){return a=pE(a),a in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s,n}function pE(n){var a=mE(n,"string");return typeof a=="symbol"?a:a+""}function mE(n,a){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var l=s.call(n,a);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function Nb(n){return n&&n.map((a,s)=>Ae.createElement(a.tag,of({key:s},a.attr),Nb(a.child)))}function _a(n){return a=>Ae.createElement(gE,lf({attr:of({},n.attr)},a),Nb(n.child))}function gE(n){var a=s=>{var{attr:l,size:c,title:f}=n,p=fE(n,cE),v=c||s.size||"1em",S;return s.className&&(S=s.className),n.className&&(S=(S?S+" ":"")+n.className),Ae.createElement("svg",lf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,l,p,{className:S,style:of(of({color:n.color||s.color},s.style),n.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),f&&Ae.createElement("title",null,f),n.children)};return Bv!==void 0?Ae.createElement(Bv.Consumer,null,s=>a(s)):a(Cb)}function yE(n){return _a({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"},child:[]}]})(n)}function vE(n){return _a({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(n)}function bE(n){return _a({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(n)}function xE(n){return _a({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"},child:[]}]})(n)}function kc(n){return _a({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 277.333H277.333V416h-42.666V277.333H96v-42.666h138.667V96h42.666v138.667H416v42.666z"},child:[]}]})(n)}function qv(n){return _a({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(n)}function Qc(n){return _a({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(n)}function Vv(n){return _a({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"},child:[]}]})(n)}function Ol(n){return _a({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(n)}function SE(n){return _a({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor"},child:[]}]})(n)}function wE(n){return _a({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor"},child:[]}]})(n)}function AE(n){return _a({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(n)}function EE(n){return _a({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(n)}var Go={exports:{}},Bh={},Hh={exports:{}},qh,Pv;function _E(){if(Pv)return qh;Pv=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qh=n,qh}var Vh,Yv;function TE(){if(Yv)return Vh;Yv=1;var n=_E();function a(){}function s(){}return s.resetWarningCache=a,Vh=function(){function l(p,v,S,x,A,w){if(w!==n){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}l.isRequired=l;function c(){return l}var f={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:c,element:l,elementType:l,instanceOf:c,node:l,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:s,resetWarningCache:a};return f.PropTypes=f,f},Vh}var Zv;function Rb(){return Zv||(Zv=1,Hh.exports=TE()()),Hh.exports}var Mc={exports:{}},Xv;function CE(){if(Xv)return Mc.exports;Xv=1;function n(s){var l,c,f="";if(typeof s=="string"||typeof s=="number")f+=s;else if(typeof s=="object")if(Array.isArray(s)){var p=s.length;for(l=0;l<p;l++)s[l]&&(c=n(s[l]))&&(f&&(f+=" "),f+=c)}else for(c in s)s[c]&&(f&&(f+=" "),f+=c);return f}function a(){for(var s,l,c=0,f="",p=arguments.length;c<p;c++)(s=arguments[c])&&(l=n(s))&&(f&&(f+=" "),f+=l);return f}return Mc.exports=a,Mc.exports.clsx=a,Mc.exports}var Vn={},rs={},Fv;function Cf(){if(Fv)return rs;Fv=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.dontSetMe=c,rs.findInArray=n,rs.int=l,rs.isFunction=a,rs.isNum=s;function n(f,p){for(let v=0,S=f.length;v<S;v++)if(p.apply(p,[f[v],v,f]))return f[v]}function a(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Function]"}function s(f){return typeof f=="number"&&!isNaN(f)}function l(f){return parseInt(f,10)}function c(f,p,v){if(f[p])return new Error(`Invalid prop ${p} passed to ${v} - do not set this, set it on the child.`)}return rs}var is={},Gv;function NE(){if(Gv)return is;Gv=1,Object.defineProperty(is,"__esModule",{value:!0}),is.browserPrefixToKey=s,is.browserPrefixToStyle=l,is.default=void 0,is.getPrefix=a;const n=["Moz","Webkit","O","ms"];function a(){var v,S;let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const p=(S=(v=window.document)==null?void 0:v.documentElement)==null?void 0:S.style;if(!p||f in p)return"";for(let x=0;x<n.length;x++)if(s(f,n[x])in p)return n[x];return""}function s(f,p){return p?`${p}${c(f)}`:f}function l(f,p){return p?`-${p.toLowerCase()}-${f}`:f}function c(f){let p="",v=!0;for(let S=0;S<f.length;S++)v?(p+=f[S].toUpperCase(),v=!1):f[S]==="-"?v=!0:p+=f[S];return p}return is.default=a(),is}var Iv;function jp(){if(Iv)return Vn;Iv=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.addClassName=I,Vn.addEvent=p,Vn.addUserSelectStyles=P,Vn.createCSSTransform=M,Vn.createSVGTransform=z,Vn.getTouch=U,Vn.getTouchIdentifier=L,Vn.getTranslation=O,Vn.innerHeight=A,Vn.innerWidth=w,Vn.matchesSelector=c,Vn.matchesSelectorAndParentsTo=f,Vn.offsetXYFromParent=j,Vn.outerHeight=S,Vn.outerWidth=x,Vn.removeClassName=ie,Vn.removeEvent=v,Vn.scheduleRemoveUserSelectStyles=Z;var n=Cf(),a=s(NE());function s(g,Q){if(typeof WeakMap=="function")var ne=new WeakMap,ze=new WeakMap;return(s=function(ke,je){if(!je&&ke&&ke.__esModule)return ke;var Ee,Xe,$e={__proto__:null,default:ke};if(ke===null||typeof ke!="object"&&typeof ke!="function")return $e;if(Ee=je?ze:ne){if(Ee.has(ke))return Ee.get(ke);Ee.set(ke,$e)}for(const W in ke)W!=="default"&&{}.hasOwnProperty.call(ke,W)&&((Xe=(Ee=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ke,W))&&(Xe.get||Xe.set)?Ee($e,W,Xe):$e[W]=ke[W]);return $e})(g,Q)}let l="";function c(g,Q){return l||(l=(0,n.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ne){return(0,n.isFunction)(g[ne])})),(0,n.isFunction)(g[l])?g[l](Q):!1}function f(g,Q,ne){let ze=g;do{if(c(ze,Q))return!0;if(ze===ne)return!1;ze=ze.parentNode}while(ze);return!1}function p(g,Q,ne,ze){if(!g)return;const ke={capture:!0,...ze};g.addEventListener?g.addEventListener(Q,ne,ke):g.attachEvent?g.attachEvent("on"+Q,ne):g["on"+Q]=ne}function v(g,Q,ne,ze){if(!g)return;const ke={capture:!0,...ze};g.removeEventListener?g.removeEventListener(Q,ne,ke):g.detachEvent?g.detachEvent("on"+Q,ne):g["on"+Q]=null}function S(g){let Q=g.clientHeight;const ne=g.ownerDocument.defaultView.getComputedStyle(g);return Q+=(0,n.int)(ne.borderTopWidth),Q+=(0,n.int)(ne.borderBottomWidth),Q}function x(g){let Q=g.clientWidth;const ne=g.ownerDocument.defaultView.getComputedStyle(g);return Q+=(0,n.int)(ne.borderLeftWidth),Q+=(0,n.int)(ne.borderRightWidth),Q}function A(g){let Q=g.clientHeight;const ne=g.ownerDocument.defaultView.getComputedStyle(g);return Q-=(0,n.int)(ne.paddingTop),Q-=(0,n.int)(ne.paddingBottom),Q}function w(g){let Q=g.clientWidth;const ne=g.ownerDocument.defaultView.getComputedStyle(g);return Q-=(0,n.int)(ne.paddingLeft),Q-=(0,n.int)(ne.paddingRight),Q}function j(g,Q,ne){const ke=Q===Q.ownerDocument.body?{left:0,top:0}:Q.getBoundingClientRect(),je=(g.clientX+Q.scrollLeft-ke.left)/ne,Ee=(g.clientY+Q.scrollTop-ke.top)/ne;return{x:je,y:Ee}}function M(g,Q){const ne=O(g,Q,"px");return{[(0,a.browserPrefixToKey)("transform",a.default)]:ne}}function z(g,Q){return O(g,Q,"")}function O(g,Q,ne){let{x:ze,y:ke}=g,je=`translate(${ze}${ne},${ke}${ne})`;if(Q){const Ee=`${typeof Q.x=="string"?Q.x:Q.x+ne}`,Xe=`${typeof Q.y=="string"?Q.y:Q.y+ne}`;je=`translate(${Ee}, ${Xe})`+je}return je}function U(g,Q){return g.targetTouches&&(0,n.findInArray)(g.targetTouches,ne=>Q===ne.identifier)||g.changedTouches&&(0,n.findInArray)(g.changedTouches,ne=>Q===ne.identifier)}function L(g){if(g.targetTouches&&g.targetTouches[0])return g.targetTouches[0].identifier;if(g.changedTouches&&g.changedTouches[0])return g.changedTouches[0].identifier}function P(g){if(!g)return;let Q=g.getElementById("react-draggable-style-el");Q||(Q=g.createElement("style"),Q.type="text/css",Q.id="react-draggable-style-el",Q.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,Q.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,g.getElementsByTagName("head")[0].appendChild(Q)),g.body&&I(g.body,"react-draggable-transparent-selection")}function Z(g){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ee(g)}):ee(g)}function ee(g){if(g)try{if(g.body&&ie(g.body,"react-draggable-transparent-selection"),g.selection)g.selection.empty();else{const Q=(g.defaultView||window).getSelection();Q&&Q.type!=="Caret"&&Q.removeAllRanges()}}catch{}}function I(g,Q){g.classList?g.classList.add(Q):g.className.match(new RegExp(`(?:^|\\s)${Q}(?!\\S)`))||(g.className+=` ${Q}`)}function ie(g,Q){g.classList?g.classList.remove(Q):g.className=g.className.replace(new RegExp(`(?:^|\\s)${Q}(?!\\S)`,"g"),"")}return Vn}var Gr={},Qv;function Db(){if(Qv)return Gr;Qv=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.canDragX=c,Gr.canDragY=f,Gr.createCoreData=v,Gr.createDraggableData=S,Gr.getBoundPosition=s,Gr.getControlPosition=p,Gr.snapToGrid=l;var n=Cf(),a=jp();function s(w,j,M){if(!w.props.bounds)return[j,M];let{bounds:z}=w.props;z=typeof z=="string"?z:x(z);const O=A(w);if(typeof z=="string"){const{ownerDocument:U}=O,L=U.defaultView;let P;if(z==="parent"?P=O.parentNode:P=O.getRootNode().querySelector(z),!(P instanceof L.HTMLElement))throw new Error('Bounds selector "'+z+'" could not find an element.');const Z=P,ee=L.getComputedStyle(O),I=L.getComputedStyle(Z);z={left:-O.offsetLeft+(0,n.int)(I.paddingLeft)+(0,n.int)(ee.marginLeft),top:-O.offsetTop+(0,n.int)(I.paddingTop)+(0,n.int)(ee.marginTop),right:(0,a.innerWidth)(Z)-(0,a.outerWidth)(O)-O.offsetLeft+(0,n.int)(I.paddingRight)-(0,n.int)(ee.marginRight),bottom:(0,a.innerHeight)(Z)-(0,a.outerHeight)(O)-O.offsetTop+(0,n.int)(I.paddingBottom)-(0,n.int)(ee.marginBottom)}}return(0,n.isNum)(z.right)&&(j=Math.min(j,z.right)),(0,n.isNum)(z.bottom)&&(M=Math.min(M,z.bottom)),(0,n.isNum)(z.left)&&(j=Math.max(j,z.left)),(0,n.isNum)(z.top)&&(M=Math.max(M,z.top)),[j,M]}function l(w,j,M){const z=Math.round(j/w[0])*w[0],O=Math.round(M/w[1])*w[1];return[z,O]}function c(w){return w.props.axis==="both"||w.props.axis==="x"}function f(w){return w.props.axis==="both"||w.props.axis==="y"}function p(w,j,M){const z=typeof j=="number"?(0,a.getTouch)(w,j):null;if(typeof j=="number"&&!z)return null;const O=A(M),U=M.props.offsetParent||O.offsetParent||O.ownerDocument.body;return(0,a.offsetXYFromParent)(z||w,U,M.props.scale)}function v(w,j,M){const z=!(0,n.isNum)(w.lastX),O=A(w);return z?{node:O,deltaX:0,deltaY:0,lastX:j,lastY:M,x:j,y:M}:{node:O,deltaX:j-w.lastX,deltaY:M-w.lastY,lastX:w.lastX,lastY:w.lastY,x:j,y:M}}function S(w,j){const M=w.props.scale;return{node:j.node,x:w.state.x+j.deltaX/M,y:w.state.y+j.deltaY/M,deltaX:j.deltaX/M,deltaY:j.deltaY/M,lastX:w.state.x,lastY:w.state.y}}function x(w){return{left:w.left,top:w.top,right:w.right,bottom:w.bottom}}function A(w){const j=w.findDOMNode();if(!j)throw new Error("<DraggableCore>: Unmounted during event!");return j}return Gr}var Io={},Lc={},Kv;function jb(){if(Kv)return Lc;Kv=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.default=n;function n(){}return Lc}var $v;function RE(){if($v)return Io;$v=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=void 0;var n=S(fu()),a=v(Rb()),s=v(gf()),l=jp(),c=Db(),f=Cf(),p=v(jb());function v(O){return O&&O.__esModule?O:{default:O}}function S(O,U){if(typeof WeakMap=="function")var L=new WeakMap,P=new WeakMap;return(S=function(Z,ee){if(!ee&&Z&&Z.__esModule)return Z;var I,ie,g={__proto__:null,default:Z};if(Z===null||typeof Z!="object"&&typeof Z!="function")return g;if(I=ee?P:L){if(I.has(Z))return I.get(Z);I.set(Z,g)}for(const Q in Z)Q!=="default"&&{}.hasOwnProperty.call(Z,Q)&&((ie=(I=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Z,Q))&&(ie.get||ie.set)?I(g,Q,ie):g[Q]=Z[Q]);return g})(O,U)}function x(O,U,L){return(U=A(U))in O?Object.defineProperty(O,U,{value:L,enumerable:!0,configurable:!0,writable:!0}):O[U]=L,O}function A(O){var U=w(O,"string");return typeof U=="symbol"?U:U+""}function w(O,U){if(typeof O!="object"||!O)return O;var L=O[Symbol.toPrimitive];if(L!==void 0){var P=L.call(O,U);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(O)}const j={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let M=j.mouse,z=class extends n.Component{constructor(){super(...arguments),x(this,"dragging",!1),x(this,"lastX",NaN),x(this,"lastY",NaN),x(this,"touchIdentifier",null),x(this,"mounted",!1),x(this,"handleDragStart",U=>{if(this.props.onMouseDown(U),!this.props.allowAnyClick&&typeof U.button=="number"&&U.button!==0)return!1;const L=this.findDOMNode();if(!L||!L.ownerDocument||!L.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:P}=L;if(this.props.disabled||!(U.target instanceof P.defaultView.Node)||this.props.handle&&!(0,l.matchesSelectorAndParentsTo)(U.target,this.props.handle,L)||this.props.cancel&&(0,l.matchesSelectorAndParentsTo)(U.target,this.props.cancel,L))return;U.type==="touchstart"&&!this.props.allowMobileScroll&&U.preventDefault();const Z=(0,l.getTouchIdentifier)(U);this.touchIdentifier=Z;const ee=(0,c.getControlPosition)(U,Z,this);if(ee==null)return;const{x:I,y:ie}=ee,g=(0,c.createCoreData)(this,I,ie);(0,p.default)("DraggableCore: handleDragStart: %j",g),(0,p.default)("calling",this.props.onStart),!(this.props.onStart(U,g)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,l.addUserSelectStyles)(P),this.dragging=!0,this.lastX=I,this.lastY=ie,(0,l.addEvent)(P,M.move,this.handleDrag),(0,l.addEvent)(P,M.stop,this.handleDragStop))}),x(this,"handleDrag",U=>{const L=(0,c.getControlPosition)(U,this.touchIdentifier,this);if(L==null)return;let{x:P,y:Z}=L;if(Array.isArray(this.props.grid)){let ie=P-this.lastX,g=Z-this.lastY;if([ie,g]=(0,c.snapToGrid)(this.props.grid,ie,g),!ie&&!g)return;P=this.lastX+ie,Z=this.lastY+g}const ee=(0,c.createCoreData)(this,P,Z);if((0,p.default)("DraggableCore: handleDrag: %j",ee),this.props.onDrag(U,ee)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const g=document.createEvent("MouseEvents");g.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(g)}return}this.lastX=P,this.lastY=Z}),x(this,"handleDragStop",U=>{if(!this.dragging)return;const L=(0,c.getControlPosition)(U,this.touchIdentifier,this);if(L==null)return;let{x:P,y:Z}=L;if(Array.isArray(this.props.grid)){let g=P-this.lastX||0,Q=Z-this.lastY||0;[g,Q]=(0,c.snapToGrid)(this.props.grid,g,Q),P=this.lastX+g,Z=this.lastY+Q}const ee=(0,c.createCoreData)(this,P,Z);if(this.props.onStop(U,ee)===!1||this.mounted===!1)return!1;const ie=this.findDOMNode();ie&&this.props.enableUserSelectHack&&(0,l.scheduleRemoveUserSelectStyles)(ie.ownerDocument),(0,p.default)("DraggableCore: handleDragStop: %j",ee),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,ie&&((0,p.default)("DraggableCore: Removing handlers"),(0,l.removeEvent)(ie.ownerDocument,M.move,this.handleDrag),(0,l.removeEvent)(ie.ownerDocument,M.stop,this.handleDragStop))}),x(this,"onMouseDown",U=>(M=j.mouse,this.handleDragStart(U))),x(this,"onMouseUp",U=>(M=j.mouse,this.handleDragStop(U))),x(this,"onTouchStart",U=>(M=j.touch,this.handleDragStart(U))),x(this,"onTouchEnd",U=>(M=j.touch,this.handleDragStop(U)))}componentDidMount(){this.mounted=!0;const U=this.findDOMNode();U&&(0,l.addEvent)(U,j.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const U=this.findDOMNode();if(U){const{ownerDocument:L}=U;(0,l.removeEvent)(L,j.mouse.move,this.handleDrag),(0,l.removeEvent)(L,j.touch.move,this.handleDrag),(0,l.removeEvent)(L,j.mouse.stop,this.handleDragStop),(0,l.removeEvent)(L,j.touch.stop,this.handleDragStop),(0,l.removeEvent)(U,j.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,l.scheduleRemoveUserSelectStyles)(L)}}findDOMNode(){var U,L,P;return(U=this.props)!=null&&U.nodeRef?(P=(L=this.props)==null?void 0:L.nodeRef)==null?void 0:P.current:s.default.findDOMNode(this)}render(){return n.cloneElement(n.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Io.default=z,x(z,"displayName","DraggableCore"),x(z,"propTypes",{allowAnyClick:a.default.bool,allowMobileScroll:a.default.bool,children:a.default.node.isRequired,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(O,U){if(O[U]&&O[U].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:f.dontSetMe,style:f.dontSetMe,transform:f.dontSetMe}),x(z,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Io}var Wv;function DE(){return Wv||(Wv=1,(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return S.default}}),n.default=void 0;var a=w(fu()),s=A(Rb()),l=A(gf()),c=CE(),f=jp(),p=Db(),v=Cf(),S=A(RE()),x=A(jb());function A(L){return L&&L.__esModule?L:{default:L}}function w(L,P){if(typeof WeakMap=="function")var Z=new WeakMap,ee=new WeakMap;return(w=function(I,ie){if(!ie&&I&&I.__esModule)return I;var g,Q,ne={__proto__:null,default:I};if(I===null||typeof I!="object"&&typeof I!="function")return ne;if(g=ie?ee:Z){if(g.has(I))return g.get(I);g.set(I,ne)}for(const ze in I)ze!=="default"&&{}.hasOwnProperty.call(I,ze)&&((Q=(g=Object.defineProperty)&&Object.getOwnPropertyDescriptor(I,ze))&&(Q.get||Q.set)?g(ne,ze,Q):ne[ze]=I[ze]);return ne})(L,P)}function j(){return j=Object.assign?Object.assign.bind():function(L){for(var P=1;P<arguments.length;P++){var Z=arguments[P];for(var ee in Z)({}).hasOwnProperty.call(Z,ee)&&(L[ee]=Z[ee])}return L},j.apply(null,arguments)}function M(L,P,Z){return(P=z(P))in L?Object.defineProperty(L,P,{value:Z,enumerable:!0,configurable:!0,writable:!0}):L[P]=Z,L}function z(L){var P=O(L,"string");return typeof P=="symbol"?P:P+""}function O(L,P){if(typeof L!="object"||!L)return L;var Z=L[Symbol.toPrimitive];if(Z!==void 0){var ee=Z.call(L,P);if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(L)}class U extends a.Component{static getDerivedStateFromProps(P,Z){let{position:ee}=P,{prevPropsPosition:I}=Z;return ee&&(!I||ee.x!==I.x||ee.y!==I.y)?((0,x.default)("Draggable: getDerivedStateFromProps %j",{position:ee,prevPropsPosition:I}),{x:ee.x,y:ee.y,prevPropsPosition:{...ee}}):null}constructor(P){super(P),M(this,"onDragStart",(Z,ee)=>{if((0,x.default)("Draggable: onDragStart: %j",ee),this.props.onStart(Z,(0,p.createDraggableData)(this,ee))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),M(this,"onDrag",(Z,ee)=>{if(!this.state.dragging)return!1;(0,x.default)("Draggable: onDrag: %j",ee);const I=(0,p.createDraggableData)(this,ee),ie={x:I.x,y:I.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Q,y:ne}=ie;ie.x+=this.state.slackX,ie.y+=this.state.slackY;const[ze,ke]=(0,p.getBoundPosition)(this,ie.x,ie.y);ie.x=ze,ie.y=ke,ie.slackX=this.state.slackX+(Q-ie.x),ie.slackY=this.state.slackY+(ne-ie.y),I.x=ie.x,I.y=ie.y,I.deltaX=ie.x-this.state.x,I.deltaY=ie.y-this.state.y}if(this.props.onDrag(Z,I)===!1)return!1;this.setState(ie)}),M(this,"onDragStop",(Z,ee)=>{if(!this.state.dragging||this.props.onStop(Z,(0,p.createDraggableData)(this,ee))===!1)return!1;(0,x.default)("Draggable: onDragStop: %j",ee);const ie={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Q,y:ne}=this.props.position;ie.x=Q,ie.y=ne}this.setState(ie)}),this.state={dragging:!1,dragged:!1,x:P.position?P.position.x:P.defaultPosition.x,y:P.position?P.position.y:P.defaultPosition.y,prevPropsPosition:{...P.position},slackX:0,slackY:0,isElementSVG:!1},P.position&&!(P.onDrag||P.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var P,Z;return((Z=(P=this.props)==null?void 0:P.nodeRef)==null?void 0:Z.current)??l.default.findDOMNode(this)}render(){const{axis:P,bounds:Z,children:ee,defaultPosition:I,defaultClassName:ie,defaultClassNameDragging:g,defaultClassNameDragged:Q,position:ne,positionOffset:ze,scale:ke,...je}=this.props;let Ee={},Xe=null;const W=!!!ne||this.state.dragging,pe=ne||I,Ue={x:(0,p.canDragX)(this)&&W?this.state.x:pe.x,y:(0,p.canDragY)(this)&&W?this.state.y:pe.y};this.state.isElementSVG?Xe=(0,f.createSVGTransform)(Ue,ze):Ee=(0,f.createCSSTransform)(Ue,ze);const Ye=(0,c.clsx)(ee.props.className||"",ie,{[g]:this.state.dragging,[Q]:this.state.dragged});return a.createElement(S.default,j({},je,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.cloneElement(a.Children.only(ee),{className:Ye,style:{...ee.props.style,...Ee},transform:Xe}))}}n.default=U,M(U,"displayName","Draggable"),M(U,"propTypes",{...S.default.propTypes,axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:v.dontSetMe,style:v.dontSetMe,transform:v.dontSetMe}),M(U,"defaultProps",{...S.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Bh)),Bh}var Jv;function jE(){if(Jv)return Go.exports;Jv=1;const{default:n,DraggableCore:a}=DE();return Go.exports=n,Go.exports.default=n,Go.exports.DraggableCore=a,Go.exports}var OE=jE();const kE=mf(OE);function ME(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return D.useMemo(()=>l=>{a.forEach(c=>c(l))},a)}const Nf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yl(n){const a=Object.prototype.toString.call(n);return a==="[object Window]"||a==="[object global]"}function Op(n){return"nodeType"in n}function Ba(n){var a,s;return n?Yl(n)?n:Op(n)&&(a=(s=n.ownerDocument)==null?void 0:s.defaultView)!=null?a:window:window}function kp(n){const{Document:a}=Ba(n);return n instanceof a}function bu(n){return Yl(n)?!1:n instanceof Ba(n).HTMLElement}function Ob(n){return n instanceof Ba(n).SVGElement}function Zl(n){return n?Yl(n)?n.document:Op(n)?kp(n)?n:bu(n)||Ob(n)?n.ownerDocument:document:document:document}const Jr=Nf?D.useLayoutEffect:D.useEffect;function Mp(n){const a=D.useRef(n);return Jr(()=>{a.current=n}),D.useCallback(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a.current==null?void 0:a.current(...l)},[])}function LE(){const n=D.useRef(null),a=D.useCallback((l,c)=>{n.current=setInterval(l,c)},[]),s=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[a,s]}function ou(n,a){a===void 0&&(a=[n]);const s=D.useRef(n);return Jr(()=>{s.current!==n&&(s.current=n)},a),s}function xu(n,a){const s=D.useRef();return D.useMemo(()=>{const l=n(s.current);return s.current=l,l},[...a])}function uf(n){const a=Mp(n),s=D.useRef(null),l=D.useCallback(c=>{c!==s.current&&(a==null||a(c,s.current)),s.current=c},[]);return[s,l]}function pp(n){const a=D.useRef();return D.useEffect(()=>{a.current=n},[n]),a.current}let Ph={};function Su(n,a){return D.useMemo(()=>{if(a)return a;const s=Ph[n]==null?0:Ph[n]+1;return Ph[n]=s,n+"-"+s},[n,a])}function kb(n){return function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return l.reduce((f,p)=>{const v=Object.entries(p);for(const[S,x]of v){const A=f[S];A!=null&&(f[S]=A+n*x)}return f},{...a})}}const kl=kb(1),uu=kb(-1);function zE(n){return"clientX"in n&&"clientY"in n}function Lp(n){if(!n)return!1;const{KeyboardEvent:a}=Ba(n.target);return a&&n instanceof a}function UE(n){if(!n)return!1;const{TouchEvent:a}=Ba(n.target);return a&&n instanceof a}function mp(n){if(UE(n)){if(n.touches&&n.touches.length){const{clientX:a,clientY:s}=n.touches[0];return{x:a,y:s}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:a,clientY:s}=n.changedTouches[0];return{x:a,y:s}}}return zE(n)?{x:n.clientX,y:n.clientY}:null}const Bl=Object.freeze({Translate:{toString(n){if(!n)return;const{x:a,y:s}=n;return"translate3d("+(a?Math.round(a):0)+"px, "+(s?Math.round(s):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:a,scaleY:s}=n;return"scaleX("+a+") scaleY("+s+")"}},Transform:{toString(n){if(n)return[Bl.Translate.toString(n),Bl.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:a,duration:s,easing:l}=n;return a+" "+s+"ms "+l}}}),e0="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function BE(n){return n.matches(e0)?n:n.querySelector(e0)}const HE={display:"none"};function qE(n){let{id:a,value:s}=n;return Ae.createElement("div",{id:a,style:HE},s)}function VE(n){let{id:a,announcement:s,ariaLiveType:l="assertive"}=n;const c={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ae.createElement("div",{id:a,style:c,role:"status","aria-live":l,"aria-atomic":!0},s)}function PE(){const[n,a]=D.useState("");return{announce:D.useCallback(l=>{l!=null&&a(l)},[]),announcement:n}}const Mb=D.createContext(null);function YE(n){const a=D.useContext(Mb);D.useEffect(()=>{if(!a)throw new Error("useDndMonitor must be used within a children of <DndContext>");return a(n)},[n,a])}function ZE(){const[n]=D.useState(()=>new Set),a=D.useCallback(l=>(n.add(l),()=>n.delete(l)),[n]);return[D.useCallback(l=>{let{type:c,event:f}=l;n.forEach(p=>{var v;return(v=p[c])==null?void 0:v.call(p,f)})},[n]),a]}const XE={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},FE={onDragStart(n){let{active:a}=n;return"Picked up draggable item "+a.id+"."},onDragOver(n){let{active:a,over:s}=n;return s?"Draggable item "+a.id+" was moved over droppable area "+s.id+".":"Draggable item "+a.id+" is no longer over a droppable area."},onDragEnd(n){let{active:a,over:s}=n;return s?"Draggable item "+a.id+" was dropped over droppable area "+s.id:"Draggable item "+a.id+" was dropped."},onDragCancel(n){let{active:a}=n;return"Dragging was cancelled. Draggable item "+a.id+" was dropped."}};function GE(n){let{announcements:a=FE,container:s,hiddenTextDescribedById:l,screenReaderInstructions:c=XE}=n;const{announce:f,announcement:p}=PE(),v=Su("DndLiveRegion"),[S,x]=D.useState(!1);if(D.useEffect(()=>{x(!0)},[]),YE(D.useMemo(()=>({onDragStart(w){let{active:j}=w;f(a.onDragStart({active:j}))},onDragMove(w){let{active:j,over:M}=w;a.onDragMove&&f(a.onDragMove({active:j,over:M}))},onDragOver(w){let{active:j,over:M}=w;f(a.onDragOver({active:j,over:M}))},onDragEnd(w){let{active:j,over:M}=w;f(a.onDragEnd({active:j,over:M}))},onDragCancel(w){let{active:j,over:M}=w;f(a.onDragCancel({active:j,over:M}))}}),[f,a])),!S)return null;const A=Ae.createElement(Ae.Fragment,null,Ae.createElement(qE,{id:l,value:c.draggable}),Ae.createElement(VE,{id:v,announcement:p}));return s?jl.createPortal(A,s):A}var Jn;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Jn||(Jn={}));function cf(){}function Yh(n,a){return D.useMemo(()=>({sensor:n,options:a??{}}),[n,a])}function IE(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return D.useMemo(()=>[...a].filter(l=>l!=null),[...a])}const Rr=Object.freeze({x:0,y:0});function Lb(n,a){return Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2))}function zb(n,a){let{data:{value:s}}=n,{data:{value:l}}=a;return s-l}function QE(n,a){let{data:{value:s}}=n,{data:{value:l}}=a;return l-s}function t0(n){let{left:a,top:s,height:l,width:c}=n;return[{x:a,y:s},{x:a+c,y:s},{x:a,y:s+l},{x:a+c,y:s+l}]}function Ub(n,a){if(!n||n.length===0)return null;const[s]=n;return s[a]}function n0(n,a,s){return a===void 0&&(a=n.left),s===void 0&&(s=n.top),{x:a+n.width*.5,y:s+n.height*.5}}const Zh=n=>{let{collisionRect:a,droppableRects:s,droppableContainers:l}=n;const c=n0(a,a.left,a.top),f=[];for(const p of l){const{id:v}=p,S=s.get(v);if(S){const x=Lb(n0(S),c);f.push({id:v,data:{droppableContainer:p,value:x}})}}return f.sort(zb)},KE=n=>{let{collisionRect:a,droppableRects:s,droppableContainers:l}=n;const c=t0(a),f=[];for(const p of l){const{id:v}=p,S=s.get(v);if(S){const x=t0(S),A=c.reduce((j,M,z)=>j+Lb(x[z],M),0),w=Number((A/4).toFixed(4));f.push({id:v,data:{droppableContainer:p,value:w}})}}return f.sort(zb)};function $E(n,a){const s=Math.max(a.top,n.top),l=Math.max(a.left,n.left),c=Math.min(a.left+a.width,n.left+n.width),f=Math.min(a.top+a.height,n.top+n.height),p=c-l,v=f-s;if(l<c&&s<f){const S=a.width*a.height,x=n.width*n.height,A=p*v,w=A/(S+x-A);return Number(w.toFixed(4))}return 0}const WE=n=>{let{collisionRect:a,droppableRects:s,droppableContainers:l}=n;const c=[];for(const f of l){const{id:p}=f,v=s.get(p);if(v){const S=$E(v,a);S>0&&c.push({id:p,data:{droppableContainer:f,value:S}})}}return c.sort(QE)};function JE(n,a,s){return{...n,scaleX:a&&s?a.width/s.width:1,scaleY:a&&s?a.height/s.height:1}}function Bb(n,a){return n&&a?{x:n.left-a.left,y:n.top-a.top}:Rr}function e_(n){return function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return c.reduce((p,v)=>({...p,top:p.top+n*v.y,bottom:p.bottom+n*v.y,left:p.left+n*v.x,right:p.right+n*v.x}),{...s})}}const t_=e_(1);function n_(n){if(n.startsWith("matrix3d(")){const a=n.slice(9,-1).split(/, /);return{x:+a[12],y:+a[13],scaleX:+a[0],scaleY:+a[5]}}else if(n.startsWith("matrix(")){const a=n.slice(7,-1).split(/, /);return{x:+a[4],y:+a[5],scaleX:+a[0],scaleY:+a[3]}}return null}function a_(n,a,s){const l=n_(a);if(!l)return n;const{scaleX:c,scaleY:f,x:p,y:v}=l,S=n.left-p-(1-c)*parseFloat(s),x=n.top-v-(1-f)*parseFloat(s.slice(s.indexOf(" ")+1)),A=c?n.width/c:n.width,w=f?n.height/f:n.height;return{width:A,height:w,top:x,right:S+A,bottom:x+w,left:S}}const r_={ignoreTransform:!1};function Xl(n,a){a===void 0&&(a=r_);let s=n.getBoundingClientRect();if(a.ignoreTransform){const{transform:x,transformOrigin:A}=Ba(n).getComputedStyle(n);x&&(s=a_(s,x,A))}const{top:l,left:c,width:f,height:p,bottom:v,right:S}=s;return{top:l,left:c,width:f,height:p,bottom:v,right:S}}function a0(n){return Xl(n,{ignoreTransform:!0})}function i_(n){const a=n.innerWidth,s=n.innerHeight;return{top:0,left:0,right:a,bottom:s,width:a,height:s}}function s_(n,a){return a===void 0&&(a=Ba(n).getComputedStyle(n)),a.position==="fixed"}function l_(n,a){a===void 0&&(a=Ba(n).getComputedStyle(n));const s=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(c=>{const f=a[c];return typeof f=="string"?s.test(f):!1})}function Rf(n,a){const s=[];function l(c){if(a!=null&&s.length>=a||!c)return s;if(kp(c)&&c.scrollingElement!=null&&!s.includes(c.scrollingElement))return s.push(c.scrollingElement),s;if(!bu(c)||Ob(c)||s.includes(c))return s;const f=Ba(n).getComputedStyle(c);return c!==n&&l_(c,f)&&s.push(c),s_(c,f)?s:l(c.parentNode)}return n?l(n):s}function Hb(n){const[a]=Rf(n,1);return a??null}function Xh(n){return!Nf||!n?null:Yl(n)?n:Op(n)?kp(n)||n===Zl(n).scrollingElement?window:bu(n)?n:null:null}function qb(n){return Yl(n)?n.scrollX:n.scrollLeft}function Vb(n){return Yl(n)?n.scrollY:n.scrollTop}function gp(n){return{x:qb(n),y:Vb(n)}}var oa;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(oa||(oa={}));function Pb(n){return!Nf||!n?!1:n===document.scrollingElement}function Yb(n){const a={x:0,y:0},s=Pb(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},l={x:n.scrollWidth-s.width,y:n.scrollHeight-s.height},c=n.scrollTop<=a.y,f=n.scrollLeft<=a.x,p=n.scrollTop>=l.y,v=n.scrollLeft>=l.x;return{isTop:c,isLeft:f,isBottom:p,isRight:v,maxScroll:l,minScroll:a}}const o_={x:.2,y:.2};function u_(n,a,s,l,c){let{top:f,left:p,right:v,bottom:S}=s;l===void 0&&(l=10),c===void 0&&(c=o_);const{isTop:x,isBottom:A,isLeft:w,isRight:j}=Yb(n),M={x:0,y:0},z={x:0,y:0},O={height:a.height*c.y,width:a.width*c.x};return!x&&f<=a.top+O.height?(M.y=oa.Backward,z.y=l*Math.abs((a.top+O.height-f)/O.height)):!A&&S>=a.bottom-O.height&&(M.y=oa.Forward,z.y=l*Math.abs((a.bottom-O.height-S)/O.height)),!j&&v>=a.right-O.width?(M.x=oa.Forward,z.x=l*Math.abs((a.right-O.width-v)/O.width)):!w&&p<=a.left+O.width&&(M.x=oa.Backward,z.x=l*Math.abs((a.left+O.width-p)/O.width)),{direction:M,speed:z}}function c_(n){if(n===document.scrollingElement){const{innerWidth:f,innerHeight:p}=window;return{top:0,left:0,right:f,bottom:p,width:f,height:p}}const{top:a,left:s,right:l,bottom:c}=n.getBoundingClientRect();return{top:a,left:s,right:l,bottom:c,width:n.clientWidth,height:n.clientHeight}}function Zb(n){return n.reduce((a,s)=>kl(a,gp(s)),Rr)}function f_(n){return n.reduce((a,s)=>a+qb(s),0)}function d_(n){return n.reduce((a,s)=>a+Vb(s),0)}function h_(n,a){if(a===void 0&&(a=Xl),!n)return;const{top:s,left:l,bottom:c,right:f}=a(n);Hb(n)&&(c<=0||f<=0||s>=window.innerHeight||l>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const p_=[["x",["left","right"],f_],["y",["top","bottom"],d_]];class zp{constructor(a,s){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=Rf(s),c=Zb(l);this.rect={...a},this.width=a.width,this.height=a.height;for(const[f,p,v]of p_)for(const S of p)Object.defineProperty(this,S,{get:()=>{const x=v(l),A=c[f]-x;return this.rect[S]+A},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Wo{constructor(a){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(s=>{var l;return(l=this.target)==null?void 0:l.removeEventListener(...s)})},this.target=a}add(a,s,l){var c;(c=this.target)==null||c.addEventListener(a,s,l),this.listeners.push([a,s,l])}}function m_(n){const{EventTarget:a}=Ba(n);return n instanceof a?n:Zl(n)}function Fh(n,a){const s=Math.abs(n.x),l=Math.abs(n.y);return typeof a=="number"?Math.sqrt(s**2+l**2)>a:"x"in a&&"y"in a?s>a.x&&l>a.y:"x"in a?s>a.x:"y"in a?l>a.y:!1}var or;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(or||(or={}));function r0(n){n.preventDefault()}function g_(n){n.stopPropagation()}var Pt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter",n.Tab="Tab"})(Pt||(Pt={}));const Xb={start:[Pt.Space,Pt.Enter],cancel:[Pt.Esc],end:[Pt.Space,Pt.Enter,Pt.Tab]},y_=(n,a)=>{let{currentCoordinates:s}=a;switch(n.code){case Pt.Right:return{...s,x:s.x+25};case Pt.Left:return{...s,x:s.x-25};case Pt.Down:return{...s,y:s.y+25};case Pt.Up:return{...s,y:s.y-25}}};class Up{constructor(a){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=a;const{event:{target:s}}=a;this.props=a,this.listeners=new Wo(Zl(s)),this.windowListeners=new Wo(Ba(s)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(or.Resize,this.handleCancel),this.windowListeners.add(or.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(or.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:a,onStart:s}=this.props,l=a.node.current;l&&h_(l),s(Rr)}handleKeyDown(a){if(Lp(a)){const{active:s,context:l,options:c}=this.props,{keyboardCodes:f=Xb,coordinateGetter:p=y_,scrollBehavior:v="smooth"}=c,{code:S}=a;if(f.end.includes(S)){this.handleEnd(a);return}if(f.cancel.includes(S)){this.handleCancel(a);return}const{collisionRect:x}=l.current,A=x?{x:x.left,y:x.top}:Rr;this.referenceCoordinates||(this.referenceCoordinates=A);const w=p(a,{active:s,context:l.current,currentCoordinates:A});if(w){const j=uu(w,A),M={x:0,y:0},{scrollableAncestors:z}=l.current;for(const O of z){const U=a.code,{isTop:L,isRight:P,isLeft:Z,isBottom:ee,maxScroll:I,minScroll:ie}=Yb(O),g=c_(O),Q={x:Math.min(U===Pt.Right?g.right-g.width/2:g.right,Math.max(U===Pt.Right?g.left:g.left+g.width/2,w.x)),y:Math.min(U===Pt.Down?g.bottom-g.height/2:g.bottom,Math.max(U===Pt.Down?g.top:g.top+g.height/2,w.y))},ne=U===Pt.Right&&!P||U===Pt.Left&&!Z,ze=U===Pt.Down&&!ee||U===Pt.Up&&!L;if(ne&&Q.x!==w.x){const ke=O.scrollLeft+j.x,je=U===Pt.Right&&ke<=I.x||U===Pt.Left&&ke>=ie.x;if(je&&!j.y){O.scrollTo({left:ke,behavior:v});return}je?M.x=O.scrollLeft-ke:M.x=U===Pt.Right?O.scrollLeft-I.x:O.scrollLeft-ie.x,M.x&&O.scrollBy({left:-M.x,behavior:v});break}else if(ze&&Q.y!==w.y){const ke=O.scrollTop+j.y,je=U===Pt.Down&&ke<=I.y||U===Pt.Up&&ke>=ie.y;if(je&&!j.x){O.scrollTo({top:ke,behavior:v});return}je?M.y=O.scrollTop-ke:M.y=U===Pt.Down?O.scrollTop-I.y:O.scrollTop-ie.y,M.y&&O.scrollBy({top:-M.y,behavior:v});break}}this.handleMove(a,kl(uu(w,this.referenceCoordinates),M))}}}handleMove(a,s){const{onMove:l}=this.props;a.preventDefault(),l(s)}handleEnd(a){const{onEnd:s}=this.props;a.preventDefault(),this.detach(),s()}handleCancel(a){const{onCancel:s}=this.props;a.preventDefault(),this.detach(),s()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Up.activators=[{eventName:"onKeyDown",handler:(n,a,s)=>{let{keyboardCodes:l=Xb,onActivation:c}=a,{active:f}=s;const{code:p}=n.nativeEvent;if(l.start.includes(p)){const v=f.activatorNode.current;return v&&n.target!==v?!1:(n.preventDefault(),c==null||c({event:n.nativeEvent}),!0)}return!1}}];function i0(n){return!!(n&&"distance"in n)}function s0(n){return!!(n&&"delay"in n)}class Bp{constructor(a,s,l){var c;l===void 0&&(l=m_(a.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=a,this.events=s;const{event:f}=a,{target:p}=f;this.props=a,this.events=s,this.document=Zl(p),this.documentListeners=new Wo(this.document),this.listeners=new Wo(l),this.windowListeners=new Wo(Ba(p)),this.initialCoordinates=(c=mp(f))!=null?c:Rr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:a,props:{options:{activationConstraint:s,bypassActivationConstraint:l}}}=this;if(this.listeners.add(a.move.name,this.handleMove,{passive:!1}),this.listeners.add(a.end.name,this.handleEnd),a.cancel&&this.listeners.add(a.cancel.name,this.handleCancel),this.windowListeners.add(or.Resize,this.handleCancel),this.windowListeners.add(or.DragStart,r0),this.windowListeners.add(or.VisibilityChange,this.handleCancel),this.windowListeners.add(or.ContextMenu,r0),this.documentListeners.add(or.Keydown,this.handleKeydown),s){if(l!=null&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(s0(s)){this.timeoutId=setTimeout(this.handleStart,s.delay),this.handlePending(s);return}if(i0(s)){this.handlePending(s);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(a,s){const{active:l,onPending:c}=this.props;c(l,a,this.initialCoordinates,s)}handleStart(){const{initialCoordinates:a}=this,{onStart:s}=this.props;a&&(this.activated=!0,this.documentListeners.add(or.Click,g_,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(or.SelectionChange,this.removeTextSelection),s(a))}handleMove(a){var s;const{activated:l,initialCoordinates:c,props:f}=this,{onMove:p,options:{activationConstraint:v}}=f;if(!c)return;const S=(s=mp(a))!=null?s:Rr,x=uu(c,S);if(!l&&v){if(i0(v)){if(v.tolerance!=null&&Fh(x,v.tolerance))return this.handleCancel();if(Fh(x,v.distance))return this.handleStart()}if(s0(v)&&Fh(x,v.tolerance))return this.handleCancel();this.handlePending(v,x);return}a.cancelable&&a.preventDefault(),p(S)}handleEnd(){const{onAbort:a,onEnd:s}=this.props;this.detach(),this.activated||a(this.props.active),s()}handleCancel(){const{onAbort:a,onCancel:s}=this.props;this.detach(),this.activated||a(this.props.active),s()}handleKeydown(a){a.code===Pt.Esc&&this.handleCancel()}removeTextSelection(){var a;(a=this.document.getSelection())==null||a.removeAllRanges()}}const v_={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Hp extends Bp{constructor(a){const{event:s}=a,l=Zl(s.target);super(a,v_,l)}}Hp.activators=[{eventName:"onPointerDown",handler:(n,a)=>{let{nativeEvent:s}=n,{onActivation:l}=a;return!s.isPrimary||s.button!==0?!1:(l==null||l({event:s}),!0)}}];const b_={move:{name:"mousemove"},end:{name:"mouseup"}};var yp;(function(n){n[n.RightClick=2]="RightClick"})(yp||(yp={}));class x_ extends Bp{constructor(a){super(a,b_,Zl(a.event.target))}}x_.activators=[{eventName:"onMouseDown",handler:(n,a)=>{let{nativeEvent:s}=n,{onActivation:l}=a;return s.button===yp.RightClick?!1:(l==null||l({event:s}),!0)}}];const Gh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Fb extends Bp{constructor(a){super(a,Gh)}static setup(){return window.addEventListener(Gh.move.name,a,{capture:!1,passive:!1}),function(){window.removeEventListener(Gh.move.name,a)};function a(){}}}Fb.activators=[{eventName:"onTouchStart",handler:(n,a)=>{let{nativeEvent:s}=n,{onActivation:l}=a;const{touches:c}=s;return c.length>1?!1:(l==null||l({event:s}),!0)}}];var Jo;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Jo||(Jo={}));var ff;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(ff||(ff={}));function S_(n){let{acceleration:a,activator:s=Jo.Pointer,canScroll:l,draggingRect:c,enabled:f,interval:p=5,order:v=ff.TreeOrder,pointerCoordinates:S,scrollableAncestors:x,scrollableAncestorRects:A,delta:w,threshold:j}=n;const M=A_({delta:w,disabled:!f}),[z,O]=LE(),U=D.useRef({x:0,y:0}),L=D.useRef({x:0,y:0}),P=D.useMemo(()=>{switch(s){case Jo.Pointer:return S?{top:S.y,bottom:S.y,left:S.x,right:S.x}:null;case Jo.DraggableRect:return c}},[s,c,S]),Z=D.useRef(null),ee=D.useCallback(()=>{const ie=Z.current;if(!ie)return;const g=U.current.x*L.current.x,Q=U.current.y*L.current.y;ie.scrollBy(g,Q)},[]),I=D.useMemo(()=>v===ff.TreeOrder?[...x].reverse():x,[v,x]);D.useEffect(()=>{if(!f||!x.length||!P){O();return}for(const ie of I){if((l==null?void 0:l(ie))===!1)continue;const g=x.indexOf(ie),Q=A[g];if(!Q)continue;const{direction:ne,speed:ze}=u_(ie,Q,P,a,j);for(const ke of["x","y"])M[ke][ne[ke]]||(ze[ke]=0,ne[ke]=0);if(ze.x>0||ze.y>0){O(),Z.current=ie,z(ee,p),U.current=ze,L.current=ne;return}}U.current={x:0,y:0},L.current={x:0,y:0},O()},[a,ee,l,O,f,p,JSON.stringify(P),JSON.stringify(M),z,x,I,A,JSON.stringify(j)])}const w_={x:{[oa.Backward]:!1,[oa.Forward]:!1},y:{[oa.Backward]:!1,[oa.Forward]:!1}};function A_(n){let{delta:a,disabled:s}=n;const l=pp(a);return xu(c=>{if(s||!l||!c)return w_;const f={x:Math.sign(a.x-l.x),y:Math.sign(a.y-l.y)};return{x:{[oa.Backward]:c.x[oa.Backward]||f.x===-1,[oa.Forward]:c.x[oa.Forward]||f.x===1},y:{[oa.Backward]:c.y[oa.Backward]||f.y===-1,[oa.Forward]:c.y[oa.Forward]||f.y===1}}},[s,a,l])}function E_(n,a){const s=a!=null?n.get(a):void 0,l=s?s.node.current:null;return xu(c=>{var f;return a==null?null:(f=l??c)!=null?f:null},[l,a])}function __(n,a){return D.useMemo(()=>n.reduce((s,l)=>{const{sensor:c}=l,f=c.activators.map(p=>({eventName:p.eventName,handler:a(p.handler,l)}));return[...s,...f]},[]),[n,a])}var cu;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(cu||(cu={}));var vp;(function(n){n.Optimized="optimized"})(vp||(vp={}));const l0=new Map;function T_(n,a){let{dragging:s,dependencies:l,config:c}=a;const[f,p]=D.useState(null),{frequency:v,measure:S,strategy:x}=c,A=D.useRef(n),w=U(),j=ou(w),M=D.useCallback(function(L){L===void 0&&(L=[]),!j.current&&p(P=>P===null?L:P.concat(L.filter(Z=>!P.includes(Z))))},[j]),z=D.useRef(null),O=xu(L=>{if(w&&!s)return l0;if(!L||L===l0||A.current!==n||f!=null){const P=new Map;for(let Z of n){if(!Z)continue;if(f&&f.length>0&&!f.includes(Z.id)&&Z.rect.current){P.set(Z.id,Z.rect.current);continue}const ee=Z.node.current,I=ee?new zp(S(ee),ee):null;Z.rect.current=I,I&&P.set(Z.id,I)}return P}return L},[n,f,s,w,S]);return D.useEffect(()=>{A.current=n},[n]),D.useEffect(()=>{w||M()},[s,w]),D.useEffect(()=>{f&&f.length>0&&p(null)},[JSON.stringify(f)]),D.useEffect(()=>{w||typeof v!="number"||z.current!==null||(z.current=setTimeout(()=>{M(),z.current=null},v))},[v,w,M,...l]),{droppableRects:O,measureDroppableContainers:M,measuringScheduled:f!=null};function U(){switch(x){case cu.Always:return!1;case cu.BeforeDragging:return s;default:return!s}}}function Gb(n,a){return xu(s=>n?s||(typeof a=="function"?a(n):n):null,[a,n])}function C_(n,a){return Gb(n,a)}function N_(n){let{callback:a,disabled:s}=n;const l=Mp(a),c=D.useMemo(()=>{if(s||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:f}=window;return new f(l)},[l,s]);return D.useEffect(()=>()=>c==null?void 0:c.disconnect(),[c]),c}function Df(n){let{callback:a,disabled:s}=n;const l=Mp(a),c=D.useMemo(()=>{if(s||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:f}=window;return new f(l)},[s]);return D.useEffect(()=>()=>c==null?void 0:c.disconnect(),[c]),c}function R_(n){return new zp(Xl(n),n)}function o0(n,a,s){a===void 0&&(a=R_);const[l,c]=D.useState(null);function f(){c(S=>{if(!n)return null;if(n.isConnected===!1){var x;return(x=S??s)!=null?x:null}const A=a(n);return JSON.stringify(S)===JSON.stringify(A)?S:A})}const p=N_({callback(S){if(n)for(const x of S){const{type:A,target:w}=x;if(A==="childList"&&w instanceof HTMLElement&&w.contains(n)){f();break}}}}),v=Df({callback:f});return Jr(()=>{f(),n?(v==null||v.observe(n),p==null||p.observe(document.body,{childList:!0,subtree:!0})):(v==null||v.disconnect(),p==null||p.disconnect())},[n]),l}function D_(n){const a=Gb(n);return Bb(n,a)}const u0=[];function j_(n){const a=D.useRef(n),s=xu(l=>n?l&&l!==u0&&n&&a.current&&n.parentNode===a.current.parentNode?l:Rf(n):u0,[n]);return D.useEffect(()=>{a.current=n},[n]),s}function O_(n){const[a,s]=D.useState(null),l=D.useRef(n),c=D.useCallback(f=>{const p=Xh(f.target);p&&s(v=>v?(v.set(p,gp(p)),new Map(v)):null)},[]);return D.useEffect(()=>{const f=l.current;if(n!==f){p(f);const v=n.map(S=>{const x=Xh(S);return x?(x.addEventListener("scroll",c,{passive:!0}),[x,gp(x)]):null}).filter(S=>S!=null);s(v.length?new Map(v):null),l.current=n}return()=>{p(n),p(f)};function p(v){v.forEach(S=>{const x=Xh(S);x==null||x.removeEventListener("scroll",c)})}},[c,n]),D.useMemo(()=>n.length?a?Array.from(a.values()).reduce((f,p)=>kl(f,p),Rr):Zb(n):Rr,[n,a])}function c0(n,a){a===void 0&&(a=[]);const s=D.useRef(null);return D.useEffect(()=>{s.current=null},a),D.useEffect(()=>{const l=n!==Rr;l&&!s.current&&(s.current=n),!l&&s.current&&(s.current=null)},[n]),s.current?uu(n,s.current):Rr}function k_(n){D.useEffect(()=>{if(!Nf)return;const a=n.map(s=>{let{sensor:l}=s;return l.setup==null?void 0:l.setup()});return()=>{for(const s of a)s==null||s()}},n.map(a=>{let{sensor:s}=a;return s}))}function M_(n,a){return D.useMemo(()=>n.reduce((s,l)=>{let{eventName:c,handler:f}=l;return s[c]=p=>{f(p,a)},s},{}),[n,a])}function Ib(n){return D.useMemo(()=>n?i_(n):null,[n])}const f0=[];function L_(n,a){a===void 0&&(a=Xl);const[s]=n,l=Ib(s?Ba(s):null),[c,f]=D.useState(f0);function p(){f(()=>n.length?n.map(S=>Pb(S)?l:new zp(a(S),S)):f0)}const v=Df({callback:p});return Jr(()=>{v==null||v.disconnect(),p(),n.forEach(S=>v==null?void 0:v.observe(S))},[n]),c}function z_(n){if(!n)return null;if(n.children.length>1)return n;const a=n.children[0];return bu(a)?a:n}function U_(n){let{measure:a}=n;const[s,l]=D.useState(null),c=D.useCallback(x=>{for(const{target:A}of x)if(bu(A)){l(w=>{const j=a(A);return w?{...w,width:j.width,height:j.height}:j});break}},[a]),f=Df({callback:c}),p=D.useCallback(x=>{const A=z_(x);f==null||f.disconnect(),A&&(f==null||f.observe(A)),l(A?a(A):null)},[a,f]),[v,S]=uf(p);return D.useMemo(()=>({nodeRef:v,rect:s,setRef:S}),[s,v,S])}const B_=[{sensor:Hp,options:{}},{sensor:Up,options:{}}],H_={current:{}},Kc={draggable:{measure:a0},droppable:{measure:a0,strategy:cu.WhileDragging,frequency:vp.Optimized},dragOverlay:{measure:Xl}};class eu extends Map{get(a){var s;return a!=null&&(s=super.get(a))!=null?s:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(a=>{let{disabled:s}=a;return!s})}getNodeFor(a){var s,l;return(s=(l=this.get(a))==null?void 0:l.node.current)!=null?s:void 0}}const q_={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:cf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kc,measureDroppableContainers:cf,windowRect:null,measuringScheduled:!1},V_={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:cf,draggableNodes:new Map,over:null,measureDroppableContainers:cf},jf=D.createContext(V_),Qb=D.createContext(q_);function P_(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eu}}}function Y_(n,a){switch(a.type){case Jn.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:a.initialCoordinates,active:a.active}};case Jn.DragMove:return n.draggable.active==null?n:{...n,draggable:{...n.draggable,translate:{x:a.coordinates.x-n.draggable.initialCoordinates.x,y:a.coordinates.y-n.draggable.initialCoordinates.y}}};case Jn.DragEnd:case Jn.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Jn.RegisterDroppable:{const{element:s}=a,{id:l}=s,c=new eu(n.droppable.containers);return c.set(l,s),{...n,droppable:{...n.droppable,containers:c}}}case Jn.SetDroppableDisabled:{const{id:s,key:l,disabled:c}=a,f=n.droppable.containers.get(s);if(!f||l!==f.key)return n;const p=new eu(n.droppable.containers);return p.set(s,{...f,disabled:c}),{...n,droppable:{...n.droppable,containers:p}}}case Jn.UnregisterDroppable:{const{id:s,key:l}=a,c=n.droppable.containers.get(s);if(!c||l!==c.key)return n;const f=new eu(n.droppable.containers);return f.delete(s),{...n,droppable:{...n.droppable,containers:f}}}default:return n}}function Z_(n){let{disabled:a}=n;const{active:s,activatorEvent:l,draggableNodes:c}=D.useContext(jf),f=pp(l),p=pp(s==null?void 0:s.id);return D.useEffect(()=>{if(!a&&!l&&f&&p!=null){if(!Lp(f)||document.activeElement===f.target)return;const v=c.get(p);if(!v)return;const{activatorNode:S,node:x}=v;if(!S.current&&!x.current)return;requestAnimationFrame(()=>{for(const A of[S.current,x.current]){if(!A)continue;const w=BE(A);if(w){w.focus();break}}})}},[l,a,c,p,f]),null}function X_(n,a){let{transform:s,...l}=a;return n!=null&&n.length?n.reduce((c,f)=>f({transform:c,...l}),s):s}function F_(n){return D.useMemo(()=>({draggable:{...Kc.draggable,...n==null?void 0:n.draggable},droppable:{...Kc.droppable,...n==null?void 0:n.droppable},dragOverlay:{...Kc.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function G_(n){let{activeNode:a,measure:s,initialRect:l,config:c=!0}=n;const f=D.useRef(!1),{x:p,y:v}=typeof c=="boolean"?{x:c,y:c}:c;Jr(()=>{if(!p&&!v||!a){f.current=!1;return}if(f.current||!l)return;const x=a==null?void 0:a.node.current;if(!x||x.isConnected===!1)return;const A=s(x),w=Bb(A,l);if(p||(w.x=0),v||(w.y=0),f.current=!0,Math.abs(w.x)>0||Math.abs(w.y)>0){const j=Hb(x);j&&j.scrollBy({top:w.y,left:w.x})}},[a,p,v,l,s])}const Kb=D.createContext({...Rr,scaleX:1,scaleY:1});var ls;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ls||(ls={}));const Ih=D.memo(function(a){var s,l,c,f;let{id:p,accessibility:v,autoScroll:S=!0,children:x,sensors:A=B_,collisionDetection:w=WE,measuring:j,modifiers:M,...z}=a;const O=D.useReducer(Y_,void 0,P_),[U,L]=O,[P,Z]=ZE(),[ee,I]=D.useState(ls.Uninitialized),ie=ee===ls.Initialized,{draggable:{active:g,nodes:Q,translate:ne},droppable:{containers:ze}}=U,ke=g!=null?Q.get(g):null,je=D.useRef({initial:null,translated:null}),Ee=D.useMemo(()=>{var Rt;return g!=null?{id:g,data:(Rt=ke==null?void 0:ke.data)!=null?Rt:H_,rect:je}:null},[g,ke]),Xe=D.useRef(null),[$e,W]=D.useState(null),[pe,Ue]=D.useState(null),Ye=ou(z,Object.values(z)),q=Su("DndDescribedBy",p),he=D.useMemo(()=>ze.getEnabled(),[ze]),Ne=F_(j),{droppableRects:ye,measureDroppableContainers:Re,measuringScheduled:He}=T_(he,{dragging:ie,dependencies:[ne.x,ne.y],config:Ne.droppable}),Ve=E_(Q,g),Yt=D.useMemo(()=>pe?mp(pe):null,[pe]),Ge=Ft(),Mt=C_(Ve,Ne.draggable.measure);G_({activeNode:g!=null?Q.get(g):null,config:Ge.layoutShiftCompensation,initialRect:Mt,measure:Ne.draggable.measure});const tt=o0(Ve,Ne.draggable.measure,Mt),fn=o0(Ve?Ve.parentElement:null),Nt=D.useRef({activatorEvent:null,active:null,activeNode:Ve,collisionRect:null,collisions:null,droppableRects:ye,draggableNodes:Q,draggingNode:null,draggingNodeRect:null,droppableContainers:ze,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),hn=ze.getNodeFor((s=Nt.current.over)==null?void 0:s.id),ln=U_({measure:Ne.dragOverlay.measure}),zn=(l=ln.nodeRef.current)!=null?l:Ve,jn=ie?(c=ln.rect)!=null?c:tt:null,Ht=!!(ln.nodeRef.current&&ln.rect),Sn=D_(Ht?null:tt),mn=Ib(zn?Ba(zn):null),_n=j_(ie?hn??Ve:null),ea=L_(_n),At=X_(M,{transform:{x:ne.x-Sn.x,y:ne.y-Sn.y,scaleX:1,scaleY:1},activatorEvent:pe,active:Ee,activeNodeRect:tt,containerNodeRect:fn,draggingNodeRect:jn,over:Nt.current.over,overlayNodeRect:ln.rect,scrollableAncestors:_n,scrollableAncestorRects:ea,windowRect:mn}),H=Yt?kl(Yt,ne):null,$=O_(_n),X=c0($),Ce=c0($,[tt]),Te=kl(At,X),te=jn?t_(jn,At):null,de=Ee&&te?w({active:Ee,collisionRect:te,droppableRects:ye,droppableContainers:he,pointerCoordinates:H}):null,Oe=Ub(de,"id"),[lt,Et]=D.useState(null),Qt=Ht?At:kl(At,Ce),Zt=JE(Qt,(f=lt==null?void 0:lt.rect)!=null?f:null,tt),gn=D.useRef(null),Gn=D.useCallback((Rt,vn)=>{let{sensor:Ie,options:gt}=vn;if(Xe.current==null)return;const ft=Q.get(Xe.current);if(!ft)return;const Dt=Rt.nativeEvent,On=new Ie({active:Xe.current,activeNode:ft,event:Dt,options:gt,context:Nt,onAbort(yt){if(!Q.get(yt))return;const{onDragAbort:ht}=Ye.current,Lt={id:yt};ht==null||ht(Lt),P({type:"onDragAbort",event:Lt})},onPending(yt,Tt,ht,Lt){if(!Q.get(yt))return;const{onDragPending:kn}=Ye.current,ba={id:yt,constraint:Tt,initialCoordinates:ht,offset:Lt};kn==null||kn(ba),P({type:"onDragPending",event:ba})},onStart(yt){const Tt=Xe.current;if(Tt==null)return;const ht=Q.get(Tt);if(!ht)return;const{onDragStart:Lt}=Ye.current,Un={activatorEvent:Dt,active:{id:Tt,data:ht.data,rect:je}};jl.unstable_batchedUpdates(()=>{Lt==null||Lt(Un),I(ls.Initializing),L({type:Jn.DragStart,initialCoordinates:yt,active:Tt}),P({type:"onDragStart",event:Un}),W(gn.current),Ue(Dt)})},onMove(yt){L({type:Jn.DragMove,coordinates:yt})},onEnd:Jt(Jn.DragEnd),onCancel:Jt(Jn.DragCancel)});gn.current=On;function Jt(yt){return async function(){const{active:ht,collisions:Lt,over:Un,scrollAdjustedTranslate:kn}=Nt.current;let ba=null;if(ht&&kn){const{cancelDrop:Ka}=Ye.current;ba={activatorEvent:Dt,active:ht,collisions:Lt,delta:kn,over:Un},yt===Jn.DragEnd&&typeof Ka=="function"&&await Promise.resolve(Ka(ba))&&(yt=Jn.DragCancel)}Xe.current=null,jl.unstable_batchedUpdates(()=>{L({type:yt}),I(ls.Uninitialized),Et(null),W(null),Ue(null),gn.current=null;const Ka=yt===Jn.DragEnd?"onDragEnd":"onDragCancel";if(ba){const Ta=Ye.current[Ka];Ta==null||Ta(ba),P({type:Ka,event:ba})}})}}},[Q]),yn=D.useCallback((Rt,vn)=>(Ie,gt)=>{const ft=Ie.nativeEvent,Dt=Q.get(gt);if(Xe.current!==null||!Dt||ft.dndKit||ft.defaultPrevented)return;const On={active:Dt};Rt(Ie,vn.options,On)===!0&&(ft.dndKit={capturedBy:vn.sensor},Xe.current=gt,Gn(Ie,vn))},[Q,Gn]),ha=__(A,yn);k_(A),Jr(()=>{tt&&ee===ls.Initializing&&I(ls.Initialized)},[tt,ee]),D.useEffect(()=>{const{onDragMove:Rt}=Ye.current,{active:vn,activatorEvent:Ie,collisions:gt,over:ft}=Nt.current;if(!vn||!Ie)return;const Dt={active:vn,activatorEvent:Ie,collisions:gt,delta:{x:Te.x,y:Te.y},over:ft};jl.unstable_batchedUpdates(()=>{Rt==null||Rt(Dt),P({type:"onDragMove",event:Dt})})},[Te.x,Te.y]),D.useEffect(()=>{const{active:Rt,activatorEvent:vn,collisions:Ie,droppableContainers:gt,scrollAdjustedTranslate:ft}=Nt.current;if(!Rt||Xe.current==null||!vn||!ft)return;const{onDragOver:Dt}=Ye.current,On=gt.get(Oe),Jt=On&&On.rect.current?{id:On.id,rect:On.rect.current,data:On.data,disabled:On.disabled}:null,yt={active:Rt,activatorEvent:vn,collisions:Ie,delta:{x:ft.x,y:ft.y},over:Jt};jl.unstable_batchedUpdates(()=>{Et(Jt),Dt==null||Dt(yt),P({type:"onDragOver",event:yt})})},[Oe]),Jr(()=>{Nt.current={activatorEvent:pe,active:Ee,activeNode:Ve,collisionRect:te,collisions:de,droppableRects:ye,draggableNodes:Q,draggingNode:zn,draggingNodeRect:jn,droppableContainers:ze,over:lt,scrollableAncestors:_n,scrollAdjustedTranslate:Te},je.current={initial:jn,translated:te}},[Ee,Ve,de,te,Q,zn,jn,ye,ze,lt,_n,Te]),S_({...Ge,delta:ne,draggingRect:te,pointerCoordinates:H,scrollableAncestors:_n,scrollableAncestorRects:ea});const Tn=D.useMemo(()=>({active:Ee,activeNode:Ve,activeNodeRect:tt,activatorEvent:pe,collisions:de,containerNodeRect:fn,dragOverlay:ln,draggableNodes:Q,droppableContainers:ze,droppableRects:ye,over:lt,measureDroppableContainers:Re,scrollableAncestors:_n,scrollableAncestorRects:ea,measuringConfiguration:Ne,measuringScheduled:He,windowRect:mn}),[Ee,Ve,tt,pe,de,fn,ln,Q,ze,ye,lt,Re,_n,ea,Ne,He,mn]),Xt=D.useMemo(()=>({activatorEvent:pe,activators:ha,active:Ee,activeNodeRect:tt,ariaDescribedById:{draggable:q},dispatch:L,draggableNodes:Q,over:lt,measureDroppableContainers:Re}),[pe,ha,Ee,tt,L,q,Q,lt,Re]);return Ae.createElement(Mb.Provider,{value:Z},Ae.createElement(jf.Provider,{value:Xt},Ae.createElement(Qb.Provider,{value:Tn},Ae.createElement(Kb.Provider,{value:Zt},x)),Ae.createElement(Z_,{disabled:(v==null?void 0:v.restoreFocus)===!1})),Ae.createElement(GE,{...v,hiddenTextDescribedById:q}));function Ft(){const Rt=($e==null?void 0:$e.autoScrollEnabled)===!1,vn=typeof S=="object"?S.enabled===!1:S===!1,Ie=ie&&!Rt&&!vn;return typeof S=="object"?{...S,enabled:Ie}:{enabled:Ie}}}),I_=D.createContext(null),d0="button",Q_="Draggable";function K_(n){let{id:a,data:s,disabled:l=!1,attributes:c}=n;const f=Su(Q_),{activators:p,activatorEvent:v,active:S,activeNodeRect:x,ariaDescribedById:A,draggableNodes:w,over:j}=D.useContext(jf),{role:M=d0,roleDescription:z="draggable",tabIndex:O=0}=c??{},U=(S==null?void 0:S.id)===a,L=D.useContext(U?Kb:I_),[P,Z]=uf(),[ee,I]=uf(),ie=M_(p,a),g=ou(s);Jr(()=>(w.set(a,{id:a,key:f,node:P,activatorNode:ee,data:g}),()=>{const ne=w.get(a);ne&&ne.key===f&&w.delete(a)}),[w,a]);const Q=D.useMemo(()=>({role:M,tabIndex:O,"aria-disabled":l,"aria-pressed":U&&M===d0?!0:void 0,"aria-roledescription":z,"aria-describedby":A.draggable}),[l,M,O,U,z,A.draggable]);return{active:S,activatorEvent:v,activeNodeRect:x,attributes:Q,isDragging:U,listeners:l?void 0:ie,node:P,over:j,setNodeRef:Z,setActivatorNodeRef:I,transform:L}}function $_(){return D.useContext(Qb)}const W_="Droppable",J_={timeout:25};function eT(n){let{data:a,disabled:s=!1,id:l,resizeObserverConfig:c}=n;const f=Su(W_),{active:p,dispatch:v,over:S,measureDroppableContainers:x}=D.useContext(jf),A=D.useRef({disabled:s}),w=D.useRef(!1),j=D.useRef(null),M=D.useRef(null),{disabled:z,updateMeasurementsFor:O,timeout:U}={...J_,...c},L=ou(O??l),P=D.useCallback(()=>{if(!w.current){w.current=!0;return}M.current!=null&&clearTimeout(M.current),M.current=setTimeout(()=>{x(Array.isArray(L.current)?L.current:[L.current]),M.current=null},U)},[U]),Z=Df({callback:P,disabled:z||!p}),ee=D.useCallback((Q,ne)=>{Z&&(ne&&(Z.unobserve(ne),w.current=!1),Q&&Z.observe(Q))},[Z]),[I,ie]=uf(ee),g=ou(a);return D.useEffect(()=>{!Z||!I.current||(Z.disconnect(),w.current=!1,Z.observe(I.current))},[I,Z]),D.useEffect(()=>(v({type:Jn.RegisterDroppable,element:{id:l,key:f,disabled:s,node:I,rect:j,data:g}}),()=>v({type:Jn.UnregisterDroppable,key:f,id:l})),[l]),D.useEffect(()=>{s!==A.current.disabled&&(v({type:Jn.SetDroppableDisabled,id:l,key:f,disabled:s}),A.current.disabled=s)},[l,f,s,v]),{active:p,rect:j,isOver:(S==null?void 0:S.id)===l,node:I,over:S,setNodeRef:ie}}function qp(n,a,s){const l=n.slice();return l.splice(s<0?l.length+s:s,0,l.splice(a,1)[0]),l}function tT(n,a){return n.reduce((s,l,c)=>{const f=a.get(l);return f&&(s[c]=f),s},Array(n.length))}function zc(n){return n!==null&&n>=0}function nT(n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let s=0;s<n.length;s++)if(n[s]!==a[s])return!1;return!0}function aT(n){return typeof n=="boolean"?{draggable:n,droppable:n}:n}const Uc={scaleX:1,scaleY:1},rT=n=>{var a;let{rects:s,activeNodeRect:l,activeIndex:c,overIndex:f,index:p}=n;const v=(a=s[c])!=null?a:l;if(!v)return null;const S=iT(s,p,c);if(p===c){const x=s[f];return x?{x:c<f?x.left+x.width-(v.left+v.width):x.left-v.left,y:0,...Uc}:null}return p>c&&p<=f?{x:-v.width-S,y:0,...Uc}:p<c&&p>=f?{x:v.width+S,y:0,...Uc}:{x:0,y:0,...Uc}};function iT(n,a,s){const l=n[a],c=n[a-1],f=n[a+1];return!l||!c&&!f?0:s<a?c?l.left-(c.left+c.width):f.left-(l.left+l.width):f?f.left-(l.left+l.width):l.left-(c.left+c.width)}const $b=n=>{let{rects:a,activeIndex:s,overIndex:l,index:c}=n;const f=qp(a,l,s),p=a[c],v=f[c];return!v||!p?null:{x:v.left-p.left,y:v.top-p.top,scaleX:v.width/p.width,scaleY:v.height/p.height}},Bc={scaleX:1,scaleY:1},h0=n=>{var a;let{activeIndex:s,activeNodeRect:l,index:c,rects:f,overIndex:p}=n;const v=(a=f[s])!=null?a:l;if(!v)return null;if(c===s){const x=f[p];return x?{x:0,y:s<p?x.top+x.height-(v.top+v.height):x.top-v.top,...Bc}:null}const S=sT(f,c,s);return c>s&&c<=p?{x:0,y:-v.height-S,...Bc}:c<s&&c>=p?{x:0,y:v.height+S,...Bc}:{x:0,y:0,...Bc}};function sT(n,a,s){const l=n[a],c=n[a-1],f=n[a+1];return l?s<a?c?l.top-(c.top+c.height):f?f.top-(l.top+l.height):0:f?f.top-(l.top+l.height):c?l.top-(c.top+c.height):0:0}const Wb="Sortable",Jb=Ae.createContext({activeIndex:-1,containerId:Wb,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:$b,disabled:{draggable:!1,droppable:!1}});function Qh(n){let{children:a,id:s,items:l,strategy:c=$b,disabled:f=!1}=n;const{active:p,dragOverlay:v,droppableRects:S,over:x,measureDroppableContainers:A}=$_(),w=Su(Wb,s),j=v.rect!==null,M=D.useMemo(()=>l.map(ie=>typeof ie=="object"&&"id"in ie?ie.id:ie),[l]),z=p!=null,O=p?M.indexOf(p.id):-1,U=x?M.indexOf(x.id):-1,L=D.useRef(M),P=!nT(M,L.current),Z=U!==-1&&O===-1||P,ee=aT(f);Jr(()=>{P&&z&&A(M)},[P,M,z,A]),D.useEffect(()=>{L.current=M},[M]);const I=D.useMemo(()=>({activeIndex:O,containerId:w,disabled:ee,disableTransforms:Z,items:M,overIndex:U,useDragOverlay:j,sortedRects:tT(M,S),strategy:c}),[O,w,ee.draggable,ee.droppable,Z,M,U,S,j,c]);return Ae.createElement(Jb.Provider,{value:I},a)}const lT=n=>{let{id:a,items:s,activeIndex:l,overIndex:c}=n;return qp(s,l,c).indexOf(a)},oT=n=>{let{containerId:a,isSorting:s,wasDragging:l,index:c,items:f,newIndex:p,previousItems:v,previousContainerId:S,transition:x}=n;return!x||!l||v!==f&&c===p?!1:s?!0:p!==c&&a===S},uT={duration:200,easing:"ease"},e1="transform",cT=Bl.Transition.toString({property:e1,duration:0,easing:"linear"}),fT={roleDescription:"sortable"};function dT(n){let{disabled:a,index:s,node:l,rect:c}=n;const[f,p]=D.useState(null),v=D.useRef(s);return Jr(()=>{if(!a&&s!==v.current&&l.current){const S=c.current;if(S){const x=Xl(l.current,{ignoreTransform:!0}),A={x:S.left-x.left,y:S.top-x.top,scaleX:S.width/x.width,scaleY:S.height/x.height};(A.x||A.y)&&p(A)}}s!==v.current&&(v.current=s)},[a,s,l,c]),D.useEffect(()=>{f&&p(null)},[f]),f}function t1(n){let{animateLayoutChanges:a=oT,attributes:s,disabled:l,data:c,getNewIndex:f=lT,id:p,strategy:v,resizeObserverConfig:S,transition:x=uT}=n;const{items:A,containerId:w,activeIndex:j,disabled:M,disableTransforms:z,sortedRects:O,overIndex:U,useDragOverlay:L,strategy:P}=D.useContext(Jb),Z=hT(l,M),ee=A.indexOf(p),I=D.useMemo(()=>({sortable:{containerId:w,index:ee,items:A},...c}),[w,c,ee,A]),ie=D.useMemo(()=>A.slice(A.indexOf(p)),[A,p]),{rect:g,node:Q,isOver:ne,setNodeRef:ze}=eT({id:p,data:I,disabled:Z.droppable,resizeObserverConfig:{updateMeasurementsFor:ie,...S}}),{active:ke,activatorEvent:je,activeNodeRect:Ee,attributes:Xe,setNodeRef:$e,listeners:W,isDragging:pe,over:Ue,setActivatorNodeRef:Ye,transform:q}=K_({id:p,data:I,attributes:{...fT,...s},disabled:Z.draggable}),he=ME(ze,$e),Ne=!!ke,ye=Ne&&!z&&zc(j)&&zc(U),Re=!L&&pe,He=Re&&ye?q:null,Yt=ye?He??(v??P)({rects:O,activeNodeRect:Ee,activeIndex:j,overIndex:U,index:ee}):null,Ge=zc(j)&&zc(U)?f({id:p,items:A,activeIndex:j,overIndex:U}):ee,Mt=ke==null?void 0:ke.id,tt=D.useRef({activeId:Mt,items:A,newIndex:Ge,containerId:w}),fn=A!==tt.current.items,Nt=a({active:ke,containerId:w,isDragging:pe,isSorting:Ne,id:p,index:ee,items:A,newIndex:tt.current.newIndex,previousItems:tt.current.items,previousContainerId:tt.current.containerId,transition:x,wasDragging:tt.current.activeId!=null}),hn=dT({disabled:!Nt,index:ee,node:Q,rect:g});return D.useEffect(()=>{Ne&&tt.current.newIndex!==Ge&&(tt.current.newIndex=Ge),w!==tt.current.containerId&&(tt.current.containerId=w),A!==tt.current.items&&(tt.current.items=A)},[Ne,Ge,w,A]),D.useEffect(()=>{if(Mt===tt.current.activeId)return;if(Mt!=null&&tt.current.activeId==null){tt.current.activeId=Mt;return}const zn=setTimeout(()=>{tt.current.activeId=Mt},50);return()=>clearTimeout(zn)},[Mt]),{active:ke,activeIndex:j,attributes:Xe,data:I,rect:g,index:ee,newIndex:Ge,items:A,isOver:ne,isSorting:Ne,isDragging:pe,listeners:W,node:Q,overIndex:U,over:Ue,setNodeRef:he,setActivatorNodeRef:Ye,setDroppableNodeRef:ze,setDraggableNodeRef:$e,transform:hn??Yt,transition:ln()};function ln(){if(hn||fn&&tt.current.newIndex===ee)return cT;if(!(Re&&!Lp(je)||!x)&&(Ne||Nt))return Bl.Transition.toString({...x,property:e1})}}function hT(n,a){var s,l;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(s=n==null?void 0:n.draggable)!=null?s:a.draggable,droppable:(l=n==null?void 0:n.droppable)!=null?l:a.droppable}}function df(n){if(!n)return!1;const a=n.data.current;return!!(a&&"sortable"in a&&typeof a.sortable=="object"&&"containerId"in a.sortable&&"items"in a.sortable&&"index"in a.sortable)}const pT=[Pt.Down,Pt.Right,Pt.Up,Pt.Left],mT=(n,a)=>{let{context:{active:s,collisionRect:l,droppableRects:c,droppableContainers:f,over:p,scrollableAncestors:v}}=a;if(pT.includes(n.code)){if(n.preventDefault(),!s||!l)return;const S=[];f.getEnabled().forEach(w=>{if(!w||w!=null&&w.disabled)return;const j=c.get(w.id);if(j)switch(n.code){case Pt.Down:l.top<j.top&&S.push(w);break;case Pt.Up:l.top>j.top&&S.push(w);break;case Pt.Left:l.left>j.left&&S.push(w);break;case Pt.Right:l.left<j.left&&S.push(w);break}});const x=KE({collisionRect:l,droppableRects:c,droppableContainers:S});let A=Ub(x,"id");if(A===(p==null?void 0:p.id)&&x.length>1&&(A=x[1].id),A!=null){const w=f.get(s.id),j=f.get(A),M=j?c.get(j.id):null,z=j==null?void 0:j.node.current;if(z&&M&&w&&j){const U=Rf(z).some((ie,g)=>v[g]!==ie),L=n1(w,j),P=gT(w,j),Z=U||!L?{x:0,y:0}:{x:P?l.width-M.width:0,y:P?l.height-M.height:0},ee={x:M.left,y:M.top};return Z.x&&Z.y?ee:uu(ee,Z)}}}};function n1(n,a){return!df(n)||!df(a)?!1:n.data.current.sortable.containerId===a.data.current.sortable.containerId}function gT(n,a){return!df(n)||!df(a)||!n1(n,a)?!1:n.data.current.sortable.index<a.data.current.sortable.index}const yT=n=>{let{transform:a}=n;return{...a,y:0}};function a1(n,a,s){const l={...n};return a.top+n.y<=s.top?l.y=s.top-a.top:a.bottom+n.y>=s.top+s.height&&(l.y=s.top+s.height-a.bottom),a.left+n.x<=s.left?l.x=s.left-a.left:a.right+n.x>=s.left+s.width&&(l.x=s.left+s.width-a.right),l}const Kh=n=>{let{containerNodeRect:a,draggingNodeRect:s,transform:l}=n;return!s||!a?l:a1(l,s,a)},$h=n=>{let{transform:a,draggingNodeRect:s,windowRect:l}=n;return!s||!l?a:a1(a,s,l)};function r1(n){return _a({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]}]})(n)}function p0({id:n,children:a,disabled:s,onClick:l}){const{attributes:c,listeners:f,setNodeRef:p,transform:v,transition:S}=t1({id:n,disabled:s}),x={transform:Bl.Transform.toString(v)};return E.jsxs("div",{ref:p,style:x,className:"sortable-item",children:[!s&&E.jsx("span",{...f,...c,className:"drag-handle",children:E.jsx(r1,{color:"blue"})}),E.jsx("div",{className:"section-content",onClick:l,children:a})]})}const vT=({id:n,children:a})=>{const{attributes:s,listeners:l,setNodeRef:c,transform:f,transition:p}=t1({id:n}),v={transform:Bl.Transform.toString(f),transition:f};return E.jsxs("div",{ref:c,style:v,children:[E.jsx("span",{...l,...s,className:"drag-handle-page",children:E.jsx(r1,{color:"blue",size:20})}),E.jsx("div",{className:"section-content",children:a})]})};function bT(n){return _a({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2"},child:[]}]})(n)}const xT=({websiteData:n,setWebsiteData:a,isSiteStrPopupOpen:s,setIsSiteStrPopupOpen:l,siteStrRef:c,setIsClosing:f})=>{const[p,v]=D.useState(!1),[S,x]=D.useState(n.website_title||""),[A,w]=D.useState(S),j=D.useRef(null),M=()=>{S.trim()===""?x(A):(w(S),a(O=>({...O,website_title:S}))),v(!1)};D.useEffect(()=>{function O(U){c.current&&!c.current.contains(U.target)&&(M(),f(!0),setTimeout(()=>{l(!1),f(!1)},500))}return s&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)}},[s,S,A]),D.useEffect(()=>{p&&j.current&&j.current.focus()},[p]);const z=()=>{M()};return E.jsxs("div",{className:"description-sidebar-container",children:[E.jsxs("div",{className:"description-top",children:[E.jsxs("div",{className:"description-sidebar-title",children:[E.jsx("div",{children:"Your site's structure"}),E.jsx("div",{className:"desc-cross-icon",onClick:()=>{f(!0),setTimeout(()=>{l(!1),f(!1)},500)},children:E.jsx(Ol,{})})]}),E.jsx("div",{className:"description-sidebar-subtitle",children:"The structure is based on your site brief"}),E.jsxs("div",{className:"site-brief-info",children:[E.jsx("div",{className:"site-brief-title",children:"site brief"}),E.jsxs("div",{className:"site-brief-info-items",children:[E.jsxs("div",{className:"site-brief-info-item website",children:[E.jsx("div",{className:"site-label",children:"Website name"}),E.jsx("div",{className:"brief-info-value-div website-name-div",children:p?E.jsx("input",{ref:j,type:"text",value:S,onChange:O=>x(O.target.value),onBlur:z,className:"website-name-input"}):E.jsxs("div",{className:"brief-info-value website-name",children:[E.jsx("span",{children:S}),E.jsx("button",{onClick:()=>v(!0),className:"edit-btn",children:E.jsx(Qc,{size:14})})]})})]}),E.jsxs("div",{className:"site-brief-info-item",children:[E.jsx("div",{className:"site-label",children:"Website type"}),E.jsx("div",{className:"brief-info-value-div",children:E.jsx("div",{className:"brief-info-value",children:n.website_type})})]}),E.jsxs("div",{className:"site-brief-info-item",children:[E.jsx("div",{className:"site-label",children:"Industry"}),E.jsx("div",{className:"brief-info-value-div",children:E.jsx("div",{className:"brief-info-value",children:n.website_industry})})]}),E.jsxs("div",{className:"site-brief-info-item",children:[E.jsx("div",{className:"site-label",children:"Number of pages"}),E.jsx("div",{className:"brief-info-value-div",children:E.jsx("div",{className:"brief-info-value",children:n.pages.length})})]})]})]}),E.jsxs("div",{className:"site-brief-description",children:[E.jsx("div",{className:"desc-title",children:"Enhanced site description"}),E.jsx("div",{className:"desc-description",children:n.website_description})]})]}),E.jsxs("div",{className:"description-bottom",children:[E.jsx("div",{className:"desc-icon",children:E.jsx(bT,{})}),E.jsx("p",{className:"desc-para",children:"You can always customize it later."})]})]})};function ST(n){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",a.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}const wT=n=>{switch(n){case"success":return _T;case"info":return CT;case"warning":return TT;case"error":return NT;default:return null}},AT=Array(12).fill(0),ET=({visible:n,className:a})=>Ae.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":n},Ae.createElement("div",{className:"sonner-spinner"},AT.map((s,l)=>Ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),_T=Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ae.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),TT=Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Ae.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),CT=Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),NT=Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),RT=Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),DT=()=>{const[n,a]=Ae.useState(document.hidden);return Ae.useEffect(()=>{const s=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n};let bp=1;class jT{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const s=this.subscribers.indexOf(a);this.subscribers.splice(s,1)}),this.publish=a=>{this.subscribers.forEach(s=>s(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var s;const{message:l,...c}=a,f=typeof(a==null?void 0:a.id)=="number"||((s=a.id)==null?void 0:s.length)>0?a.id:bp++,p=this.toasts.find(S=>S.id===f),v=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),p?this.toasts=this.toasts.map(S=>S.id===f?(this.publish({...S,...a,id:f,title:l}),{...S,...a,id:f,dismissible:v,title:l}):S):this.addToast({title:l,...c,dismissible:v,id:f}),f},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:a,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(l=>l({id:s.id,dismiss:!0}))}),a),this.message=(a,s)=>this.create({...s,message:a}),this.error=(a,s)=>this.create({...s,message:a,type:"error"}),this.success=(a,s)=>this.create({...s,type:"success",message:a}),this.info=(a,s)=>this.create({...s,type:"info",message:a}),this.warning=(a,s)=>this.create({...s,type:"warning",message:a}),this.loading=(a,s)=>this.create({...s,type:"loading",message:a}),this.promise=(a,s)=>{if(!s)return;let l;s.loading!==void 0&&(l=this.create({...s,promise:a,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const c=Promise.resolve(a instanceof Function?a():a);let f=l!==void 0,p;const v=c.then(async x=>{if(p=["resolve",x],Ae.isValidElement(x))f=!1,this.create({id:l,type:"default",message:x});else if(kT(x)&&!x.ok){f=!1;const w=typeof s.error=="function"?await s.error(`HTTP error! status: ${x.status}`):s.error,j=typeof s.description=="function"?await s.description(`HTTP error! status: ${x.status}`):s.description,z=typeof w=="object"&&!Ae.isValidElement(w)?w:{message:w};this.create({id:l,type:"error",description:j,...z})}else if(x instanceof Error){f=!1;const w=typeof s.error=="function"?await s.error(x):s.error,j=typeof s.description=="function"?await s.description(x):s.description,z=typeof w=="object"&&!Ae.isValidElement(w)?w:{message:w};this.create({id:l,type:"error",description:j,...z})}else if(s.success!==void 0){f=!1;const w=typeof s.success=="function"?await s.success(x):s.success,j=typeof s.description=="function"?await s.description(x):s.description,z=typeof w=="object"&&!Ae.isValidElement(w)?w:{message:w};this.create({id:l,type:"success",description:j,...z})}}).catch(async x=>{if(p=["reject",x],s.error!==void 0){f=!1;const A=typeof s.error=="function"?await s.error(x):s.error,w=typeof s.description=="function"?await s.description(x):s.description,M=typeof A=="object"&&!Ae.isValidElement(A)?A:{message:A};this.create({id:l,type:"error",description:w,...M})}}).finally(()=>{f&&(this.dismiss(l),l=void 0),s.finally==null||s.finally.call(s)}),S=()=>new Promise((x,A)=>v.then(()=>p[0]==="reject"?A(p[1]):x(p[1])).catch(A));return typeof l!="string"&&typeof l!="number"?{unwrap:S}:Object.assign(l,{unwrap:S})},this.custom=(a,s)=>{const l=(s==null?void 0:s.id)||bp++;return this.create({jsx:a(l),id:l,...s}),l},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ma=new jT,OT=(n,a)=>{const s=(a==null?void 0:a.id)||bp++;return Ma.addToast({title:n,...a,id:s}),s},kT=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",MT=OT,LT=()=>Ma.toasts,zT=()=>Ma.getActiveToasts(),Kr=Object.assign(MT,{success:Ma.success,info:Ma.info,warning:Ma.warning,error:Ma.error,custom:Ma.custom,message:Ma.message,promise:Ma.promise,dismiss:Ma.dismiss,loading:Ma.loading},{getHistory:LT,getToasts:zT});ST("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Hc(n){return n.label!==void 0}const UT=3,BT="24px",HT="16px",m0=4e3,qT=356,VT=14,PT=45,YT=200;function Ir(...n){return n.filter(Boolean).join(" ")}function ZT(n){const[a,s]=n.split("-"),l=[];return a&&l.push(a),s&&l.push(s),l}const XT=n=>{var a,s,l,c,f,p,v,S,x;const{invert:A,toast:w,unstyled:j,interacting:M,setHeights:z,visibleToasts:O,heights:U,index:L,toasts:P,expanded:Z,removeToast:ee,defaultRichColors:I,closeButton:ie,style:g,cancelButtonStyle:Q,actionButtonStyle:ne,className:ze="",descriptionClassName:ke="",duration:je,position:Ee,gap:Xe,expandByDefault:$e,classNames:W,icons:pe,closeButtonAriaLabel:Ue="Close toast"}=n,[Ye,q]=Ae.useState(null),[he,Ne]=Ae.useState(null),[ye,Re]=Ae.useState(!1),[He,Ve]=Ae.useState(!1),[Yt,Ge]=Ae.useState(!1),[Mt,tt]=Ae.useState(!1),[fn,Nt]=Ae.useState(!1),[hn,ln]=Ae.useState(0),[zn,jn]=Ae.useState(0),Ht=Ae.useRef(w.duration||je||m0),Sn=Ae.useRef(null),mn=Ae.useRef(null),_n=L===0,ea=L+1<=O,At=w.type,H=w.dismissible!==!1,$=w.className||"",X=w.descriptionClassName||"",Ce=Ae.useMemo(()=>U.findIndex(Ie=>Ie.toastId===w.id)||0,[U,w.id]),Te=Ae.useMemo(()=>{var Ie;return(Ie=w.closeButton)!=null?Ie:ie},[w.closeButton,ie]),te=Ae.useMemo(()=>w.duration||je||m0,[w.duration,je]),de=Ae.useRef(0),Oe=Ae.useRef(0),lt=Ae.useRef(0),Et=Ae.useRef(null),[Qt,Zt]=Ee.split("-"),gn=Ae.useMemo(()=>U.reduce((Ie,gt,ft)=>ft>=Ce?Ie:Ie+gt.height,0),[U,Ce]),Gn=DT(),yn=w.invert||A,ha=At==="loading";Oe.current=Ae.useMemo(()=>Ce*Xe+gn,[Ce,gn]),Ae.useEffect(()=>{Ht.current=te},[te]),Ae.useEffect(()=>{Re(!0)},[]),Ae.useEffect(()=>{const Ie=mn.current;if(Ie){const gt=Ie.getBoundingClientRect().height;return jn(gt),z(ft=>[{toastId:w.id,height:gt,position:w.position},...ft]),()=>z(ft=>ft.filter(Dt=>Dt.toastId!==w.id))}},[z,w.id]),Ae.useLayoutEffect(()=>{if(!ye)return;const Ie=mn.current,gt=Ie.style.height;Ie.style.height="auto";const ft=Ie.getBoundingClientRect().height;Ie.style.height=gt,jn(ft),z(Dt=>Dt.find(Jt=>Jt.toastId===w.id)?Dt.map(Jt=>Jt.toastId===w.id?{...Jt,height:ft}:Jt):[{toastId:w.id,height:ft,position:w.position},...Dt])},[ye,w.title,w.description,z,w.id,w.jsx,w.action,w.cancel]);const Tn=Ae.useCallback(()=>{Ve(!0),ln(Oe.current),z(Ie=>Ie.filter(gt=>gt.toastId!==w.id)),setTimeout(()=>{ee(w)},YT)},[w,ee,z,Oe]);Ae.useEffect(()=>{if(w.promise&&At==="loading"||w.duration===1/0||w.type==="loading")return;let Ie;return Z||M||Gn?(()=>{if(lt.current<de.current){const Dt=new Date().getTime()-de.current;Ht.current=Ht.current-Dt}lt.current=new Date().getTime()})():(()=>{Ht.current!==1/0&&(de.current=new Date().getTime(),Ie=setTimeout(()=>{w.onAutoClose==null||w.onAutoClose.call(w,w),Tn()},Ht.current))})(),()=>clearTimeout(Ie)},[Z,M,w,At,Gn,Tn]),Ae.useEffect(()=>{w.delete&&(Tn(),w.onDismiss==null||w.onDismiss.call(w,w))},[Tn,w.delete]);function Xt(){var Ie;if(pe!=null&&pe.loading){var gt;return Ae.createElement("div",{className:Ir(W==null?void 0:W.loader,w==null||(gt=w.classNames)==null?void 0:gt.loader,"sonner-loader"),"data-visible":At==="loading"},pe.loading)}return Ae.createElement(ET,{className:Ir(W==null?void 0:W.loader,w==null||(Ie=w.classNames)==null?void 0:Ie.loader),visible:At==="loading"})}const Ft=w.icon||(pe==null?void 0:pe[At])||wT(At);var Rt,vn;return Ae.createElement("li",{tabIndex:0,ref:mn,className:Ir(ze,$,W==null?void 0:W.toast,w==null||(a=w.classNames)==null?void 0:a.toast,W==null?void 0:W.default,W==null?void 0:W[At],w==null||(s=w.classNames)==null?void 0:s[At]),"data-sonner-toast":"","data-rich-colors":(Rt=w.richColors)!=null?Rt:I,"data-styled":!(w.jsx||w.unstyled||j),"data-mounted":ye,"data-promise":!!w.promise,"data-swiped":fn,"data-removed":He,"data-visible":ea,"data-y-position":Qt,"data-x-position":Zt,"data-index":L,"data-front":_n,"data-swiping":Yt,"data-dismissible":H,"data-type":At,"data-invert":yn,"data-swipe-out":Mt,"data-swipe-direction":he,"data-expanded":!!(Z||$e&&ye),"data-testid":w.testId,style:{"--index":L,"--toasts-before":L,"--z-index":P.length-L,"--offset":`${He?hn:Oe.current}px`,"--initial-height":$e?"auto":`${zn}px`,...g,...w.style},onDragEnd:()=>{Ge(!1),q(null),Et.current=null},onPointerDown:Ie=>{Ie.button!==2&&(ha||!H||(Sn.current=new Date,ln(Oe.current),Ie.target.setPointerCapture(Ie.pointerId),Ie.target.tagName!=="BUTTON"&&(Ge(!0),Et.current={x:Ie.clientX,y:Ie.clientY})))},onPointerUp:()=>{var Ie,gt,ft;if(Mt||!H)return;Et.current=null;const Dt=Number(((Ie=mn.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),On=Number(((gt=mn.current)==null?void 0:gt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Jt=new Date().getTime()-((ft=Sn.current)==null?void 0:ft.getTime()),yt=Ye==="x"?Dt:On,Tt=Math.abs(yt)/Jt;if(Math.abs(yt)>=PT||Tt>.11){ln(Oe.current),w.onDismiss==null||w.onDismiss.call(w,w),Ne(Ye==="x"?Dt>0?"right":"left":On>0?"down":"up"),Tn(),tt(!0);return}else{var ht,Lt;(ht=mn.current)==null||ht.style.setProperty("--swipe-amount-x","0px"),(Lt=mn.current)==null||Lt.style.setProperty("--swipe-amount-y","0px")}Nt(!1),Ge(!1),q(null)},onPointerMove:Ie=>{var gt,ft,Dt;if(!Et.current||!H||((gt=window.getSelection())==null?void 0:gt.toString().length)>0)return;const Jt=Ie.clientY-Et.current.y,yt=Ie.clientX-Et.current.x;var Tt;const ht=(Tt=n.swipeDirections)!=null?Tt:ZT(Ee);!Ye&&(Math.abs(yt)>1||Math.abs(Jt)>1)&&q(Math.abs(yt)>Math.abs(Jt)?"x":"y");let Lt={x:0,y:0};const Un=kn=>1/(1.5+Math.abs(kn)/20);if(Ye==="y"){if(ht.includes("top")||ht.includes("bottom"))if(ht.includes("top")&&Jt<0||ht.includes("bottom")&&Jt>0)Lt.y=Jt;else{const kn=Jt*Un(Jt);Lt.y=Math.abs(kn)<Math.abs(Jt)?kn:Jt}}else if(Ye==="x"&&(ht.includes("left")||ht.includes("right")))if(ht.includes("left")&&yt<0||ht.includes("right")&&yt>0)Lt.x=yt;else{const kn=yt*Un(yt);Lt.x=Math.abs(kn)<Math.abs(yt)?kn:yt}(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&Nt(!0),(ft=mn.current)==null||ft.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(Dt=mn.current)==null||Dt.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},Te&&!w.jsx&&At!=="loading"?Ae.createElement("button",{"aria-label":Ue,"data-disabled":ha,"data-close-button":!0,onClick:ha||!H?()=>{}:()=>{Tn(),w.onDismiss==null||w.onDismiss.call(w,w)},className:Ir(W==null?void 0:W.closeButton,w==null||(l=w.classNames)==null?void 0:l.closeButton)},(vn=pe==null?void 0:pe.close)!=null?vn:RT):null,(At||w.icon||w.promise)&&w.icon!==null&&((pe==null?void 0:pe[At])!==null||w.icon)?Ae.createElement("div",{"data-icon":"",className:Ir(W==null?void 0:W.icon,w==null||(c=w.classNames)==null?void 0:c.icon)},w.promise||w.type==="loading"&&!w.icon?w.icon||Xt():null,w.type!=="loading"?Ft:null):null,Ae.createElement("div",{"data-content":"",className:Ir(W==null?void 0:W.content,w==null||(f=w.classNames)==null?void 0:f.content)},Ae.createElement("div",{"data-title":"",className:Ir(W==null?void 0:W.title,w==null||(p=w.classNames)==null?void 0:p.title)},w.jsx?w.jsx:typeof w.title=="function"?w.title():w.title),w.description?Ae.createElement("div",{"data-description":"",className:Ir(ke,X,W==null?void 0:W.description,w==null||(v=w.classNames)==null?void 0:v.description)},typeof w.description=="function"?w.description():w.description):null),Ae.isValidElement(w.cancel)?w.cancel:w.cancel&&Hc(w.cancel)?Ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:w.cancelButtonStyle||Q,onClick:Ie=>{Hc(w.cancel)&&H&&(w.cancel.onClick==null||w.cancel.onClick.call(w.cancel,Ie),Tn())},className:Ir(W==null?void 0:W.cancelButton,w==null||(S=w.classNames)==null?void 0:S.cancelButton)},w.cancel.label):null,Ae.isValidElement(w.action)?w.action:w.action&&Hc(w.action)?Ae.createElement("button",{"data-button":!0,"data-action":!0,style:w.actionButtonStyle||ne,onClick:Ie=>{Hc(w.action)&&(w.action.onClick==null||w.action.onClick.call(w.action,Ie),!Ie.defaultPrevented&&Tn())},className:Ir(W==null?void 0:W.actionButton,w==null||(x=w.classNames)==null?void 0:x.actionButton)},w.action.label):null)};function g0(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function FT(n,a){const s={};return[n,a].forEach((l,c)=>{const f=c===1,p=f?"--mobile-offset":"--offset",v=f?HT:BT;function S(x){["top","right","bottom","left"].forEach(A=>{s[`${p}-${A}`]=typeof x=="number"?`${x}px`:x})}typeof l=="number"||typeof l=="string"?S(l):typeof l=="object"?["top","right","bottom","left"].forEach(x=>{l[x]===void 0?s[`${p}-${x}`]=v:s[`${p}-${x}`]=typeof l[x]=="number"?`${l[x]}px`:l[x]}):S(v)}),s}const GT=Ae.forwardRef(function(a,s){const{id:l,invert:c,position:f="bottom-right",hotkey:p=["altKey","KeyT"],expand:v,closeButton:S,className:x,offset:A,mobileOffset:w,theme:j="light",richColors:M,duration:z,style:O,visibleToasts:U=UT,toastOptions:L,dir:P=g0(),gap:Z=VT,icons:ee,containerAriaLabel:I="Notifications"}=a,[ie,g]=Ae.useState([]),Q=Ae.useMemo(()=>l?ie.filter(ye=>ye.toasterId===l):ie.filter(ye=>!ye.toasterId),[ie,l]),ne=Ae.useMemo(()=>Array.from(new Set([f].concat(Q.filter(ye=>ye.position).map(ye=>ye.position)))),[Q,f]),[ze,ke]=Ae.useState([]),[je,Ee]=Ae.useState(!1),[Xe,$e]=Ae.useState(!1),[W,pe]=Ae.useState(j!=="system"?j:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Ue=Ae.useRef(null),Ye=p.join("+").replace(/Key/g,"").replace(/Digit/g,""),q=Ae.useRef(null),he=Ae.useRef(!1),Ne=Ae.useCallback(ye=>{g(Re=>{var He;return(He=Re.find(Ve=>Ve.id===ye.id))!=null&&He.delete||Ma.dismiss(ye.id),Re.filter(({id:Ve})=>Ve!==ye.id)})},[]);return Ae.useEffect(()=>Ma.subscribe(ye=>{if(ye.dismiss){requestAnimationFrame(()=>{g(Re=>Re.map(He=>He.id===ye.id?{...He,delete:!0}:He))});return}setTimeout(()=>{sw.flushSync(()=>{g(Re=>{const He=Re.findIndex(Ve=>Ve.id===ye.id);return He!==-1?[...Re.slice(0,He),{...Re[He],...ye},...Re.slice(He+1)]:[ye,...Re]})})})}),[ie]),Ae.useEffect(()=>{if(j!=="system"){pe(j);return}if(j==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?pe("dark"):pe("light")),typeof window>"u")return;const ye=window.matchMedia("(prefers-color-scheme: dark)");try{ye.addEventListener("change",({matches:Re})=>{pe(Re?"dark":"light")})}catch{ye.addListener(({matches:He})=>{try{pe(He?"dark":"light")}catch(Ve){console.error(Ve)}})}},[j]),Ae.useEffect(()=>{ie.length<=1&&Ee(!1)},[ie]),Ae.useEffect(()=>{const ye=Re=>{var He;if(p.every(Ge=>Re[Ge]||Re.code===Ge)){var Yt;Ee(!0),(Yt=Ue.current)==null||Yt.focus()}Re.code==="Escape"&&(document.activeElement===Ue.current||(He=Ue.current)!=null&&He.contains(document.activeElement))&&Ee(!1)};return document.addEventListener("keydown",ye),()=>document.removeEventListener("keydown",ye)},[p]),Ae.useEffect(()=>{if(Ue.current)return()=>{q.current&&(q.current.focus({preventScroll:!0}),q.current=null,he.current=!1)}},[Ue.current]),Ae.createElement("section",{ref:s,"aria-label":`${I} ${Ye}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ne.map((ye,Re)=>{var He;const[Ve,Yt]=ye.split("-");return Q.length?Ae.createElement("ol",{key:ye,dir:P==="auto"?g0():P,tabIndex:-1,ref:Ue,className:x,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":Ve,"data-x-position":Yt,style:{"--front-toast-height":`${((He=ze[0])==null?void 0:He.height)||0}px`,"--width":`${qT}px`,"--gap":`${Z}px`,...O,...FT(A,w)},onBlur:Ge=>{he.current&&!Ge.currentTarget.contains(Ge.relatedTarget)&&(he.current=!1,q.current&&(q.current.focus({preventScroll:!0}),q.current=null))},onFocus:Ge=>{Ge.target instanceof HTMLElement&&Ge.target.dataset.dismissible==="false"||he.current||(he.current=!0,q.current=Ge.relatedTarget)},onMouseEnter:()=>Ee(!0),onMouseMove:()=>Ee(!0),onMouseLeave:()=>{Xe||Ee(!1)},onDragEnd:()=>Ee(!1),onPointerDown:Ge=>{Ge.target instanceof HTMLElement&&Ge.target.dataset.dismissible==="false"||$e(!0)},onPointerUp:()=>$e(!1)},Q.filter(Ge=>!Ge.position&&Re===0||Ge.position===ye).map((Ge,Mt)=>{var tt,fn;return Ae.createElement(XT,{key:Ge.id,icons:ee,index:Mt,toast:Ge,defaultRichColors:M,duration:(tt=L==null?void 0:L.duration)!=null?tt:z,className:L==null?void 0:L.className,descriptionClassName:L==null?void 0:L.descriptionClassName,invert:c,visibleToasts:U,closeButton:(fn=L==null?void 0:L.closeButton)!=null?fn:S,interacting:Xe,position:ye,style:L==null?void 0:L.style,unstyled:L==null?void 0:L.unstyled,classNames:L==null?void 0:L.classNames,cancelButtonStyle:L==null?void 0:L.cancelButtonStyle,actionButtonStyle:L==null?void 0:L.actionButtonStyle,closeButtonAriaLabel:L==null?void 0:L.closeButtonAriaLabel,removeToast:Ne,toasts:Q.filter(Nt=>Nt.position==Ge.position),heights:ze.filter(Nt=>Nt.position==Ge.position),setHeights:ke,expandByDefault:v,gap:Z,expanded:je,swipeDirections:a.swipeDirections})})):null}))}),IT={"hero-banner-full":"1. Banner - Heritage Design.jpg","hero-banner-flat-design":"2. Banner - Flat Design.jpg"},QT={"practice-areas-material-design-light":"Practice Areas - Material Design Light.jpg","practice-areas-heritage-design":"1. Service - Heritage Design.jpg","practice-areas-flat-design":"Practice Areas - Flat.jpg","practice-areas-flat-design-1":"1. Services - Flat Design.jpg"},KT={"practice-areas-listing-flat-design":"practice-areas-listing-flat-design.jpg"},$T={"inner-banner-full":"1. Banner_Innerpage - Heritage Design@3x.jpg","inner-banner-flat-design":"1. Banner_Innerpage - Flat Design.jpg"},WT={"about-us-gentle-design":"1. About Us - Gentle Design.jpg"},JT={"contact-form-flat":"1. Contact Us - Flat Design.jpg","contact-page-form-flat":"1. Contact Us - Page Flat Design.jpg"},eC={"contact-details-heritage":"1. Get in touch - Heritage Design.jpg","contact-details-flat":"1. Get in touch - Flat Design.jpg","contact-details-material":"1. Get in touch - Material Design.jpg","contact-details-minimal":"1. Get in Touch - Minimalist Design.jpg","contact-details-map":"1_1. Get in Touch - Gentle Design.jpg"},qc={"informational-content-heritage-left":"1_2. Content - Heritage Design.jpg","informational-content-gentle-left":"1_2. Content - Gentle Design.png","informational-content-gentle-right":"1. Content - Gentle Design.jpg"},tC={"images-grid-col-four":"1. Gallery - Heritage Design.jpg"},nC={"features-grid-flat":"Features Grid Flat.jpg"},aC={"our-achievements-heritage-design":"1. Our Achievements - Heritage Design.jpg"},rC={"post-cards-material":"1. Our Blog_White_BG - Material Design.jpg"},iC={"posts-listing-flat":"1. Our Blog - Flat Design.jpg"},sC={"faq-material-design":"1. FAQ - Material Design.jpg"},lC={"social-proof-logos-heritage":"1. Our Trusted Partners - Heritage Design (1).jpg"},oC={"portfolio-cards-row-heritage":"1. Portfolio - Heritage Design.jpg","portfolio-tabs-row-flat":"1.Portfolio-Flat Design.jpg","portfolio-material":"2.Portfolio-Material Design.jpg","portfolio-tabs-row-minimal":"2.Portfolio- Minimalist Design.jpg","portfolio-cards-row-full":"1.Portfolio- Minimalist Design.jpg"},uC={"cta-box-material":"1. CTA - Material Design.jpg"},y0={"testimonials-minimalist-design":"1. Testimonials - Minimalist Design.jpg"},cC={"meet-our-team-flat-design":"2. Meet Our team - Flat Design.jpg","meet-our-team-material-design":"1. Meet Our Team - Material Design.jpg"},fC={"meet-our-team-listing-flat-design":"meet-our-team-listing-flat-design.jpg"},dC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAATCAYAAACdkl3yAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHQSURBVHgBnZJBTttAFIb/92acmHbDEcwN6B61sbqiUiuO0CyCglSJsO4isdRFxSZhBbuYE4BAgQUILHEBOAHmBrkAHt7YsQlgy5DfskYz4/f5f/8MsKg6k9X5KWMRdSe/8ZmH80uEj6p37gHmmprsGcf4+Lce1YO2Tjaw/+u4mP85bcHRYzTIg6sAl6fyBnBxXA3qHnngxj0aiY/RzwhdgTTVWAACkbIMlMG0CqozUm4fWgqIN9L5gcD2fqxgCQHlEAeHcJMVdNZG5Y665x41zTWYJAf5Iydf8H89LvaHV6HAvhlX1tv+1C7pUlATfSMQ64g0lqHU2AB+se9SaDTd5hCrt462z4bipEcCMba12cuaw+Tv9zYq9AySEyGWu6F4Fa8g0GydQdqMpSLAjh++BW1O+qRMz2hezgtTN44dOZ0byTZzyPl+bBocob1WOGR5HuSDW7xwkEEsIHeUQ5D9JAaSu/LW5MbSkoSq0UoLxBGUHTkbs7UI9Big40fVGeUKLgZS1H/OZpYXJwG2/AFqw57X7uWIlNo2hSsKsfm18sSyjMrkqIG4mFLqCjEepZ0alYN25KJpszfLJpKWYiwEsvqEUZoT17up1/im9d5PnwCEcHlo9IjZRgAAAABJRU5ErkJggg==";var wu=n=>n.type==="checkbox",qs=n=>n instanceof Date,La=n=>n==null;const i1=n=>typeof n=="object";var Pn=n=>!La(n)&&!Array.isArray(n)&&i1(n)&&!qs(n),hC=n=>Pn(n)&&n.target?wu(n.target)?n.target.checked:n.target.value:n,pC=(n,a)=>a.split(".").some((s,l,c)=>!isNaN(Number(s))&&n.has(c.slice(0,l).join("."))),mC=n=>{const a=n.constructor&&n.constructor.prototype;return Pn(a)&&a.hasOwnProperty("isPrototypeOf")},Vp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wn(n){if(n instanceof Date)return new Date(n);const a=typeof FileList<"u"&&n instanceof FileList;if(Vp&&(n instanceof Blob||a))return n;const s=Array.isArray(n);if(!s&&!(Pn(n)&&mC(n)))return n;const l=s?[]:Object.create(Object.getPrototypeOf(n));for(const c in n)Object.prototype.hasOwnProperty.call(n,c)&&(l[c]=Wn(n[c]));return l}var Of=n=>/^\w*$/.test(n),Rn=n=>n===void 0,Pp=n=>Array.isArray(n)?n.filter(Boolean):[],Yp=n=>Pp(n.replace(/["|']|\]/g,"").split(/\.|\[/)),Je=(n,a,s)=>{if(!a||!Pn(n))return s;const l=(Of(a)?[a]:Yp(a)).reduce((c,f)=>La(c)?c:c[f],n);return Rn(l)||l===n?Rn(n[a])?s:n[a]:l},Qr=n=>typeof n=="boolean",Cr=n=>typeof n=="function",bn=(n,a,s)=>{let l=-1;const c=Of(a)?[a]:Yp(a),f=c.length,p=f-1;for(;++l<f;){const v=c[l];let S=s;if(l!==p){const x=n[v];S=Pn(x)||Array.isArray(x)?x:isNaN(+c[l+1])?{}:[]}if(v==="__proto__"||v==="constructor"||v==="prototype")return;n[v]=S,n=n[v]}};const Cl={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Nr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Tr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Wh="form",s1="root",gC=Ae.createContext(null);gC.displayName="HookFormControlContext";var yC=(n,a,s,l=!0)=>{const c={defaultValues:a._defaultValues};for(const f in n)Object.defineProperty(c,f,{get:()=>{const p=f;return a._proxyFormState[p]!==Nr.all&&(a._proxyFormState[p]=!l||Nr.all),n[p]}});return c};const vC=typeof window<"u"?Ae.useLayoutEffect:Ae.useEffect;var Ea=n=>typeof n=="string",bC=(n,a,s,l,c)=>Ea(n)?(l&&a.watch.add(n),Je(s,n,c)):Array.isArray(n)?n.map(f=>(l&&a.watch.add(f),Je(s,f))):(l&&(a.watchAll=!0),s),xp=n=>La(n)||!i1(n);function os(n,a,s=new WeakSet){if(xp(n)||xp(a))return Object.is(n,a);if(qs(n)&&qs(a))return Object.is(n.getTime(),a.getTime());const l=Object.keys(n),c=Object.keys(a);if(l.length!==c.length)return!1;if(s.has(n)||s.has(a))return!0;s.add(n),s.add(a);for(const f of l){const p=n[f];if(!c.includes(f))return!1;if(f!=="ref"){const v=a[f];if(qs(p)&&qs(v)||(Pn(p)||Array.isArray(p))&&(Pn(v)||Array.isArray(v))?!os(p,v,s):!Object.is(p,v))return!1}}return!0}const xC=Ae.createContext(null);xC.displayName="HookFormContext";var SC=(n,a,s,l,c)=>a?{...s[n],types:{...s[n]&&s[n].types?s[n].types:{},[l]:c||!0}}:{},tu=n=>Array.isArray(n)?n:[n],v0=()=>{let n=[];return{get observers(){return n},next:c=>{for(const f of n)f.next&&f.next(c)},subscribe:c=>(n.push(c),{unsubscribe:()=>{n=n.filter(f=>f!==c)}}),unsubscribe:()=>{n=[]}}};function l1(n,a){const s={};for(const l in n)if(n.hasOwnProperty(l)){const c=n[l],f=a[l];if(c&&Pn(c)&&f){const p=l1(c,f);Pn(p)&&(s[l]=p)}else n[l]&&(s[l]=f)}return s}var Aa=n=>Pn(n)&&!Object.keys(n).length,Zp=n=>n.type==="file",hf=n=>{if(!Vp)return!1;const a=n?n.ownerDocument:0;return n instanceof(a&&a.defaultView?a.defaultView.HTMLElement:HTMLElement)},o1=n=>n.type==="select-multiple",Xp=n=>n.type==="radio",wC=n=>Xp(n)||wu(n),Jh=n=>hf(n)&&n.isConnected;function AC(n,a){const s=a.slice(0,-1).length;let l=0;for(;l<s;)n=Rn(n)?l++:n[a[l++]];return n}function EC(n){for(const a in n)if(n.hasOwnProperty(a)&&!Rn(n[a]))return!1;return!0}function Xn(n,a){const s=Array.isArray(a)?a:Of(a)?[a]:Yp(a),l=s.length===1?n:AC(n,s),c=s.length-1,f=s[c];return l&&delete l[f],c!==0&&(Pn(l)&&Aa(l)||Array.isArray(l)&&EC(l))&&Xn(n,s.slice(0,-1)),n}var _C=n=>{for(const a in n)if(Cr(n[a]))return!0;return!1};function u1(n){return Array.isArray(n)||Pn(n)&&!_C(n)}function Sp(n,a={}){for(const s in n){const l=n[s];u1(l)?(a[s]=Array.isArray(l)?[]:{},Sp(l,a[s])):Rn(l)||(a[s]=!0)}return a}function $o(n,a,s){s||(s=Sp(a));for(const l in n){const c=n[l];if(u1(c))Rn(a)||xp(s[l])?s[l]=Sp(c,Array.isArray(c)?[]:{}):$o(c,La(a)?{}:a[l],s[l]);else{const f=a[l];s[l]=!os(c,f)}}return s}const b0={value:!1,isValid:!1},x0={value:!0,isValid:!0};var c1=n=>{if(Array.isArray(n)){if(n.length>1){const a=n.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:a,isValid:!!a.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!Rn(n[0].attributes.value)?Rn(n[0].value)||n[0].value===""?x0:{value:n[0].value,isValid:!0}:x0:b0}return b0},f1=(n,{valueAsNumber:a,valueAsDate:s,setValueAs:l})=>Rn(n)?n:a?n===""?NaN:n&&+n:s&&Ea(n)?new Date(n):l?l(n):n;const S0={isValid:!1,value:null};var d1=n=>Array.isArray(n)?n.reduce((a,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:a,S0):S0;function w0(n){const a=n.ref;return Zp(a)?a.files:Xp(a)?d1(n.refs).value:o1(a)?[...a.selectedOptions].map(({value:s})=>s):wu(a)?c1(n.refs).value:f1(Rn(a.value)?n.ref.value:a.value,n)}var TC=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,CC=(n,a,s,l)=>{const c={};for(const f of n){const p=Je(a,f);p&&bn(c,f,p._f)}return{criteriaMode:s,names:[...n],fields:c,shouldUseNativeValidation:l}},pf=n=>n instanceof RegExp,Qo=n=>Rn(n)?n:pf(n)?n.source:Pn(n)?pf(n.value)?n.value.source:n.value:n,A0=n=>({isOnSubmit:!n||n===Nr.onSubmit,isOnBlur:n===Nr.onBlur,isOnChange:n===Nr.onChange,isOnAll:n===Nr.all,isOnTouch:n===Nr.onTouched});const E0="AsyncFunction";var NC=n=>!!n&&!!n.validate&&!!(Cr(n.validate)&&n.validate.constructor.name===E0||Pn(n.validate)&&Object.values(n.validate).find(a=>a.constructor.name===E0)),RC=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),_0=(n,a,s)=>!s&&(a.watchAll||a.watch.has(n)||[...a.watch].some(l=>n.startsWith(l)&&/^\.\w+/.test(n.slice(l.length))));const nu=(n,a,s,l)=>{for(const c of s||Object.keys(n)){const f=Je(n,c);if(f){const{_f:p,...v}=f;if(p){if(p.refs&&p.refs[0]&&a(p.refs[0],c)&&!l)return!0;if(p.ref&&a(p.ref,p.name)&&!l)return!0;if(nu(v,a))break}else if(Pn(v)&&nu(v,a))break}}};function T0(n,a,s){const l=Je(n,s);if(l||Of(s))return{error:l,name:s};const c=s.split(".");for(;c.length;){const f=c.join("."),p=Je(a,f),v=Je(n,f);if(p&&!Array.isArray(p)&&s!==f)return{name:s};if(v&&v.type)return{name:f,error:v};if(v&&v.root&&v.root.type)return{name:`${f}.root`,error:v.root};c.pop()}return{name:s}}var DC=(n,a,s,l)=>{s(n);const{name:c,...f}=n;return Aa(f)||Object.keys(f).length>=Object.keys(a).length||Object.keys(f).find(p=>a[p]===(!l||Nr.all))},jC=(n,a,s)=>!n||!a||n===a||tu(n).some(l=>l&&(s?l===a:l.startsWith(a)||a.startsWith(l))),OC=(n,a,s,l,c)=>c.isOnAll?!1:!s&&c.isOnTouch?!(a||n):(s?l.isOnBlur:c.isOnBlur)?!n:(s?l.isOnChange:c.isOnChange)?n:!0,kC=(n,a)=>!Pp(Je(n,a)).length&&Xn(n,a),MC=(n,a,s)=>{const l=tu(Je(n,s));return bn(l,s1,a[s]),bn(n,s,l),n};function C0(n,a,s="validate"){if(Ea(n)||Array.isArray(n)&&n.every(Ea)||Qr(n)&&!n)return{type:s,message:Ea(n)?n:"",ref:a}}var Nl=n=>Pn(n)&&!pf(n)?n:{value:n,message:""},N0=async(n,a,s,l,c,f)=>{const{ref:p,refs:v,required:S,maxLength:x,minLength:A,min:w,max:j,pattern:M,validate:z,name:O,valueAsNumber:U,mount:L}=n._f,P=Je(s,O);if(!L||a.has(O))return{};const Z=v?v[0]:p,ee=je=>{c&&Z.reportValidity&&(Z.setCustomValidity(Qr(je)?"":je||""),Z.reportValidity())},I={},ie=Xp(p),g=wu(p),Q=ie||g,ne=(U||Zp(p))&&Rn(p.value)&&Rn(P)||hf(p)&&p.value===""||P===""||Array.isArray(P)&&!P.length,ze=SC.bind(null,O,l,I),ke=(je,Ee,Xe,$e=Tr.maxLength,W=Tr.minLength)=>{const pe=je?Ee:Xe;I[O]={type:je?$e:W,message:pe,ref:p,...ze(je?$e:W,pe)}};if(f?!Array.isArray(P)||!P.length:S&&(!Q&&(ne||La(P))||Qr(P)&&!P||g&&!c1(v).isValid||ie&&!d1(v).isValid)){const{value:je,message:Ee}=Ea(S)?{value:!!S,message:S}:Nl(S);if(je&&(I[O]={type:Tr.required,message:Ee,ref:Z,...ze(Tr.required,Ee)},!l))return ee(Ee),I}if(!ne&&(!La(w)||!La(j))){let je,Ee;const Xe=Nl(j),$e=Nl(w);if(!La(P)&&!isNaN(P)){const W=p.valueAsNumber||P&&+P;La(Xe.value)||(je=W>Xe.value),La($e.value)||(Ee=W<$e.value)}else{const W=p.valueAsDate||new Date(P),pe=q=>new Date(new Date().toDateString()+" "+q),Ue=p.type=="time",Ye=p.type=="week";Ea(Xe.value)&&P&&(je=Ue?pe(P)>pe(Xe.value):Ye?P>Xe.value:W>new Date(Xe.value)),Ea($e.value)&&P&&(Ee=Ue?pe(P)<pe($e.value):Ye?P<$e.value:W<new Date($e.value))}if((je||Ee)&&(ke(!!je,Xe.message,$e.message,Tr.max,Tr.min),!l))return ee(I[O].message),I}if((x||A)&&!ne&&(Ea(P)||f&&Array.isArray(P))){const je=Nl(x),Ee=Nl(A),Xe=!La(je.value)&&P.length>+je.value,$e=!La(Ee.value)&&P.length<+Ee.value;if((Xe||$e)&&(ke(Xe,je.message,Ee.message),!l))return ee(I[O].message),I}if(M&&!ne&&Ea(P)){const{value:je,message:Ee}=Nl(M);if(pf(je)&&!P.match(je)&&(I[O]={type:Tr.pattern,message:Ee,ref:p,...ze(Tr.pattern,Ee)},!l))return ee(Ee),I}if(z){if(Cr(z)){const je=await z(P,s),Ee=C0(je,Z);if(Ee&&(I[O]={...Ee,...ze(Tr.validate,Ee.message)},!l))return ee(Ee.message),I}else if(Pn(z)){let je={};for(const Ee in z){if(!Aa(je)&&!l)break;const Xe=C0(await z[Ee](P,s),Z,Ee);Xe&&(je={...Xe,...ze(Ee,Xe.message)},ee(Xe.message),l&&(I[O]=je))}if(!Aa(je)&&(I[O]={ref:Z,...je},!l))return I}}return ee(!0),I};const LC={mode:Nr.onSubmit,reValidateMode:Nr.onChange,shouldFocusError:!0};function zC(n={}){let a={...LC,...n},s={submitCount:0,isDirty:!1,isReady:!1,isLoading:Cr(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:a.errors||{},disabled:a.disabled||!1},l={},c=Pn(a.defaultValues)||Pn(a.values)?Wn(a.defaultValues||a.values)||{}:{},f=a.shouldUnregister?{}:Wn(c),p={action:!1,mount:!1,watch:!1,keepIsValid:!1},v={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},S,x=0;const A={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={...A};let j={...w};const M={array:v0(),state:v0()},z=a.criteriaMode===Nr.all,O=H=>$=>{clearTimeout(x),x=setTimeout(H,$)},U=async H=>{if(!p.keepIsValid&&!a.disabled&&(w.isValid||j.isValid||H)){let $;a.resolver?($=Aa((await ne()).errors),L()):$=await je({fields:l,onlyCheckValid:!0,eventType:Cl.VALID}),$!==s.isValid&&M.state.next({isValid:$})}},L=(H,$)=>{!a.disabled&&(w.isValidating||w.validatingFields||j.isValidating||j.validatingFields)&&((H||Array.from(v.mount)).forEach(X=>{X&&($?bn(s.validatingFields,X,$):Xn(s.validatingFields,X))}),M.state.next({validatingFields:s.validatingFields,isValidating:!Aa(s.validatingFields)}))},P=H=>{const $=$o(c,f),X=TC(H);bn(s.dirtyFields,X,Je($,X))},Z=(H,$=[],X,Ce,Te=!0,te=!0)=>{if(Ce&&X&&!a.disabled){if(p.action=!0,te&&Array.isArray(Je(l,H))){const de=X(Je(l,H),Ce.argA,Ce.argB);Te&&bn(l,H,de)}if(te&&Array.isArray(Je(s.errors,H))){const de=X(Je(s.errors,H),Ce.argA,Ce.argB);Te&&bn(s.errors,H,de),kC(s.errors,H)}if((w.touchedFields||j.touchedFields)&&te&&Array.isArray(Je(s.touchedFields,H))){const de=X(Je(s.touchedFields,H),Ce.argA,Ce.argB);Te&&bn(s.touchedFields,H,de)}(w.dirtyFields||j.dirtyFields)&&P(H),M.state.next({name:H,isDirty:Xe(H,$),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else bn(f,H,$)},ee=(H,$)=>{bn(s.errors,H,$),M.state.next({errors:s.errors})},I=H=>{s.errors=H,M.state.next({errors:s.errors,isValid:!1})},ie=(H,$,X,Ce)=>{const Te=Je(l,H);if(Te){const te=Je(f,H,Rn(X)?Je(c,H):X);Rn(te)||Ce&&Ce.defaultChecked||$?bn(f,H,$?te:w0(Te._f)):pe(H,te),p.mount&&!p.action&&U()}},g=(H,$,X,Ce,Te)=>{let te=!1,de=!1;const Oe={name:H};if(!a.disabled){if(!X||Ce){(w.isDirty||j.isDirty)&&(de=s.isDirty,s.isDirty=Oe.isDirty=Xe(),te=de!==Oe.isDirty);const lt=os(Je(c,H),$);de=!!Je(s.dirtyFields,H),lt?Xn(s.dirtyFields,H):bn(s.dirtyFields,H,!0),Oe.dirtyFields=s.dirtyFields,te=te||(w.dirtyFields||j.dirtyFields)&&de!==!lt}if(X){const lt=Je(s.touchedFields,H);lt||(bn(s.touchedFields,H,X),Oe.touchedFields=s.touchedFields,te=te||(w.touchedFields||j.touchedFields)&<!==X)}te&&Te&&M.state.next(Oe)}return te?Oe:{}},Q=(H,$,X,Ce)=>{const Te=Je(s.errors,H),te=(w.isValid||j.isValid)&&Qr($)&&s.isValid!==$;if(a.delayError&&X?(S=O(()=>ee(H,X)),S(a.delayError)):(clearTimeout(x),S=null,X?bn(s.errors,H,X):Xn(s.errors,H)),(X?!os(Te,X):Te)||!Aa(Ce)||te){const de={...Ce,...te&&Qr($)?{isValid:$}:{},errors:s.errors,name:H};s={...s,...de},M.state.next(de)}},ne=async H=>(L(H,!0),await a.resolver(f,a.context,CC(H||v.mount,l,a.criteriaMode,a.shouldUseNativeValidation))),ze=async H=>{const{errors:$}=await ne(H);if(L(H),H)for(const X of H){const Ce=Je($,X);Ce?bn(s.errors,X,Ce):Xn(s.errors,X)}else s.errors=$;return $},ke=async({name:H,eventType:$})=>{if(n.validate){const X=await n.validate({formValues:f,formState:s,name:H,eventType:$});if(Pn(X))for(const Ce in X)X[Ce]&&Ve(`${Wh}.${Ce}`,{message:Ea(X.message)?X.message:"",type:Tr.validate});else Ea(X)||!X?Ve(Wh,{message:X||"",type:Tr.validate}):He(Wh);return X}return!0},je=async({fields:H,onlyCheckValid:$,name:X,eventType:Ce,context:Te={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(Te.runRootValidation=!0,!await ke({name:X,eventType:Ce})&&(Te.valid=!1,$)))return Te.valid;for(const te in H){const de=H[te];if(de){const{_f:Oe,...lt}=de;if(Oe){const Et=v.array.has(Oe.name),Qt=de._f&&NC(de._f);Qt&&w.validatingFields&&L([Oe.name],!0);const Zt=await N0(de,v.disabled,f,z,a.shouldUseNativeValidation&&!$,Et);if(Qt&&w.validatingFields&&L([Oe.name]),Zt[Oe.name]&&(Te.valid=!1,$)||(!$&&(Je(Zt,Oe.name)?Et?MC(s.errors,Zt,Oe.name):bn(s.errors,Oe.name,Zt[Oe.name]):Xn(s.errors,Oe.name)),n.shouldUseNativeValidation&&Zt[Oe.name]))break}!Aa(lt)&&await je({context:Te,onlyCheckValid:$,fields:lt,name:te,eventType:Ce})}}return Te.valid},Ee=()=>{for(const H of v.unMount){const $=Je(l,H);$&&($._f.refs?$._f.refs.every(X=>!Jh(X)):!Jh($._f.ref))&&tt(H)}v.unMount=new Set},Xe=(H,$)=>!a.disabled&&(H&&$&&bn(f,H,$),!os(ye(),c)),$e=(H,$,X)=>bC(H,v,{...p.mount?f:Rn($)?c:Ea(H)?{[H]:$}:$},X,$),W=H=>Pp(Je(p.mount?f:c,H,a.shouldUnregister?Je(c,H,[]):[])),pe=(H,$,X={})=>{const Ce=Je(l,H);let Te=$;if(Ce){const te=Ce._f;te&&(!te.disabled&&bn(f,H,f1($,te)),Te=hf(te.ref)&&La($)?"":$,o1(te.ref)?[...te.ref.options].forEach(de=>de.selected=Te.includes(de.value)):te.refs?wu(te.ref)?te.refs.forEach(de=>{(!de.defaultChecked||!de.disabled)&&(Array.isArray(Te)?de.checked=!!Te.find(Oe=>Oe===de.value):de.checked=Te===de.value||!!Te)}):te.refs.forEach(de=>de.checked=de.value===Te):Zp(te.ref)?te.ref.value="":(te.ref.value=Te,te.ref.type||M.state.next({name:H,values:Wn(f)})))}(X.shouldDirty||X.shouldTouch)&&g(H,Te,X.shouldTouch,X.shouldDirty,!0),X.shouldValidate&&Ne(H)},Ue=(H,$,X)=>{for(const Ce in $){if(!$.hasOwnProperty(Ce))return;const Te=$[Ce],te=H+"."+Ce,de=Je(l,te);(v.array.has(H)||Pn(Te)||de&&!de._f)&&!qs(Te)?Ue(te,Te,X):pe(te,Te,X)}},Ye=(H,$,X={})=>{const Ce=Je(l,H),Te=v.array.has(H),te=Wn($);bn(f,H,te),Te?(M.array.next({name:H,values:Wn(f)}),(w.isDirty||w.dirtyFields||j.isDirty||j.dirtyFields)&&X.shouldDirty&&(P(H),M.state.next({name:H,dirtyFields:s.dirtyFields,isDirty:Xe(H,te)}))):Ce&&!Ce._f&&!La(te)?Ue(H,te,X):pe(H,te,X),_0(H,v)?M.state.next({...s,name:H,values:Wn(f)}):M.state.next({name:p.mount?H:void 0,values:Wn(f)})},q=async H=>{p.mount=!0;const $=H.target;let X=$.name,Ce=!0;const Te=Je(l,X),te=lt=>{Ce=Number.isNaN(lt)||qs(lt)&&isNaN(lt.getTime())||os(lt,Je(f,X,lt))},de=A0(a.mode),Oe=A0(a.reValidateMode);if(Te){let lt,Et;const Qt=$.type?w0(Te._f):hC(H),Zt=H.type===Cl.BLUR||H.type===Cl.FOCUS_OUT,gn=!RC(Te._f)&&!n.validate&&!a.resolver&&!Je(s.errors,X)&&!Te._f.deps||OC(Zt,Je(s.touchedFields,X),s.isSubmitted,Oe,de),Gn=_0(X,v,Zt);bn(f,X,Qt),Zt?(!$||!$.readOnly)&&(Te._f.onBlur&&Te._f.onBlur(H),S&&S(0)):Te._f.onChange&&Te._f.onChange(H);const yn=g(X,Qt,Zt),ha=!Aa(yn)||Gn;if(!Zt&&M.state.next({name:X,type:H.type,values:Wn(f)}),gn)return(w.isValid||j.isValid)&&(a.mode==="onBlur"?Zt&&U():Zt||U()),ha&&M.state.next({name:X,...Gn?{}:yn});if(!a.resolver&&n.validate&&await ke({name:X,eventType:H.type}),!Zt&&Gn&&M.state.next({...s}),a.resolver){const{errors:Tn}=await ne([X]);if(L([X]),te(Qt),Ce){const Xt=T0(s.errors,l,X),Ft=T0(Tn,l,Xt.name||X);lt=Ft.error,X=Ft.name,Et=Aa(Tn)}}else L([X],!0),lt=(await N0(Te,v.disabled,f,z,a.shouldUseNativeValidation))[X],L([X]),te(Qt),Ce&&(lt?Et=!1:(w.isValid||j.isValid)&&(Et=await je({fields:l,onlyCheckValid:!0,name:X,eventType:H.type})));Ce&&(Te._f.deps&&(!Array.isArray(Te._f.deps)||Te._f.deps.length>0)&&Ne(Te._f.deps),Q(X,Et,lt,yn))}},he=(H,$)=>{if(Je(s.errors,$)&&H.focus)return H.focus(),1},Ne=async(H,$={})=>{let X,Ce;const Te=tu(H);if(a.resolver){const te=await ze(Rn(H)?H:Te);X=Aa(te),Ce=H?!Te.some(de=>Je(te,de)):X}else H?(Ce=(await Promise.all(Te.map(async te=>{const de=Je(l,te);return await je({fields:de&&de._f?{[te]:de}:de,eventType:Cl.TRIGGER})}))).every(Boolean),!(!Ce&&!s.isValid)&&U()):Ce=X=await je({fields:l,name:H,eventType:Cl.TRIGGER});return M.state.next({...!Ea(H)||(w.isValid||j.isValid)&&X!==s.isValid?{}:{name:H},...a.resolver||!H?{isValid:X}:{},errors:s.errors}),$.shouldFocus&&!Ce&&nu(l,he,H?Te:v.mount),Ce},ye=(H,$)=>{let X={...p.mount?f:c};return $&&(X=l1($.dirtyFields?s.dirtyFields:s.touchedFields,X)),Rn(H)?X:Ea(H)?Je(X,H):H.map(Ce=>Je(X,Ce))},Re=(H,$)=>({invalid:!!Je(($||s).errors,H),isDirty:!!Je(($||s).dirtyFields,H),error:Je(($||s).errors,H),isValidating:!!Je(s.validatingFields,H),isTouched:!!Je(($||s).touchedFields,H)}),He=H=>{const $=H?tu(H):void 0;$==null||$.forEach(X=>Xn(s.errors,X)),$?$.forEach(X=>{M.state.next({name:X,errors:s.errors})}):M.state.next({errors:{}})},Ve=(H,$,X)=>{const Ce=(Je(l,H,{_f:{}})._f||{}).ref,Te=Je(s.errors,H)||{},{ref:te,message:de,type:Oe,...lt}=Te;bn(s.errors,H,{...lt,...$,ref:Ce}),M.state.next({name:H,errors:s.errors,isValid:!1}),X&&X.shouldFocus&&Ce&&Ce.focus&&Ce.focus()},Yt=(H,$)=>Cr(H)?M.state.subscribe({next:X=>"values"in X&&H($e(void 0,$),X)}):$e(H,$,!0),Ge=H=>M.state.subscribe({next:$=>{jC(H.name,$.name,H.exact)&&DC($,H.formState||w,_n,H.reRenderRoot)&&H.callback({values:{...f},...s,...$,defaultValues:c})}}).unsubscribe,Mt=H=>(p.mount=!0,j={...j,...H.formState},Ge({...H,formState:{...A,...H.formState}})),tt=(H,$={})=>{for(const X of H?tu(H):v.mount)v.mount.delete(X),v.array.delete(X),$.keepValue||(Xn(l,X),Xn(f,X)),!$.keepError&&Xn(s.errors,X),!$.keepDirty&&Xn(s.dirtyFields,X),!$.keepTouched&&Xn(s.touchedFields,X),!$.keepIsValidating&&Xn(s.validatingFields,X),!a.shouldUnregister&&!$.keepDefaultValue&&Xn(c,X);M.state.next({values:Wn(f)}),M.state.next({...s,...$.keepDirty?{isDirty:Xe()}:{}}),!$.keepIsValid&&U()},fn=({disabled:H,name:$})=>{if(Qr(H)&&p.mount||H||v.disabled.has($)){const Te=v.disabled.has($)!==!!H;H?v.disabled.add($):v.disabled.delete($),Te&&p.mount&&!p.action&&U()}},Nt=(H,$={})=>{let X=Je(l,H);const Ce=Qr($.disabled)||Qr(a.disabled),Te=!v.registerName.has(H)&&X&&!X._f.mount;return bn(l,H,{...X||{},_f:{...X&&X._f?X._f:{ref:{name:H}},name:H,mount:!0,...$}}),v.mount.add(H),X&&!Te?fn({disabled:Qr($.disabled)?$.disabled:a.disabled,name:H}):ie(H,!0,$.value),{...Ce?{disabled:$.disabled||a.disabled}:{},...a.progressive?{required:!!$.required,min:Qo($.min),max:Qo($.max),minLength:Qo($.minLength),maxLength:Qo($.maxLength),pattern:Qo($.pattern)}:{},name:H,onChange:q,onBlur:q,ref:te=>{if(te){v.registerName.add(H),Nt(H,$),v.registerName.delete(H),X=Je(l,H);const de=Rn(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,Oe=wC(de),lt=X._f.refs||[];if(Oe?lt.find(Et=>Et===de):de===X._f.ref)return;bn(l,H,{_f:{...X._f,...Oe?{refs:[...lt.filter(Jh),de,...Array.isArray(Je(c,H))?[{}]:[]],ref:{type:de.type,name:H}}:{ref:de}}}),ie(H,!1,void 0,de)}else X=Je(l,H,{}),X._f&&(X._f.mount=!1),(a.shouldUnregister||$.shouldUnregister)&&!(pC(v.array,H)&&p.action)&&v.unMount.add(H)}}},hn=()=>a.shouldFocusError&&nu(l,he,v.mount),ln=H=>{Qr(H)&&(M.state.next({disabled:H}),nu(l,($,X)=>{const Ce=Je(l,X);Ce&&($.disabled=Ce._f.disabled||H,Array.isArray(Ce._f.refs)&&Ce._f.refs.forEach(Te=>{Te.disabled=Ce._f.disabled||H}))},0,!1))},zn=(H,$)=>async X=>{let Ce;X&&(X.preventDefault&&X.preventDefault(),X.persist&&X.persist());let Te=Wn(f);if(M.state.next({isSubmitting:!0}),a.resolver){const{errors:te,values:de}=await ne();L(),s.errors=te,Te=Wn(de)}else await je({fields:l,eventType:Cl.SUBMIT});if(v.disabled.size)for(const te of v.disabled)Xn(Te,te);if(Xn(s.errors,s1),Aa(s.errors)){M.state.next({errors:{}});try{await H(Te,X)}catch(te){Ce=te}}else $&&await $({...s.errors},X),hn(),setTimeout(hn);if(M.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Aa(s.errors)&&!Ce,submitCount:s.submitCount+1,errors:s.errors}),Ce)throw Ce},jn=(H,$={})=>{Je(l,H)&&(Rn($.defaultValue)?Ye(H,Wn(Je(c,H))):(Ye(H,$.defaultValue),bn(c,H,Wn($.defaultValue))),$.keepTouched||Xn(s.touchedFields,H),$.keepDirty||(Xn(s.dirtyFields,H),s.isDirty=$.defaultValue?Xe(H,Wn(Je(c,H))):Xe()),$.keepError||(Xn(s.errors,H),w.isValid&&U()),M.state.next({...s}))},Ht=(H,$={})=>{const X=H?Wn(H):c,Ce=Wn(X),Te=Aa(H),te=Te?c:Ce;if($.keepDefaultValues||(c=X),!$.keepValues){if($.keepDirtyValues){const de=new Set([...v.mount,...Object.keys($o(c,f))]);for(const Oe of Array.from(de)){const lt=Je(s.dirtyFields,Oe),Et=Je(f,Oe),Qt=Je(te,Oe);lt&&!Rn(Et)?bn(te,Oe,Et):!lt&&!Rn(Qt)&&Ye(Oe,Qt)}}else{if(Vp&&Rn(H))for(const de of v.mount){const Oe=Je(l,de);if(Oe&&Oe._f){const lt=Array.isArray(Oe._f.refs)?Oe._f.refs[0]:Oe._f.ref;if(hf(lt)){const Et=lt.closest("form");if(Et){Et.reset();break}}}}if($.keepFieldsRef)for(const de of v.mount)Ye(de,Je(te,de));else l={}}f=a.shouldUnregister?$.keepDefaultValues?Wn(c):{}:Wn(te),M.array.next({values:{...te}}),M.state.next({values:{...te}})}v={mount:$.keepDirtyValues?v.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},p.mount=!w.isValid||!!$.keepIsValid||!!$.keepDirtyValues||!a.shouldUnregister&&!Aa(te),p.watch=!!a.shouldUnregister,p.keepIsValid=!!$.keepIsValid,p.action=!1,$.keepErrors||(s.errors={}),M.state.next({submitCount:$.keepSubmitCount?s.submitCount:0,isDirty:Te?!1:$.keepDirty?s.isDirty:!!($.keepDefaultValues&&!os(H,c)),isSubmitted:$.keepIsSubmitted?s.isSubmitted:!1,dirtyFields:Te?{}:$.keepDirtyValues?$.keepDefaultValues&&f?$o(c,f):s.dirtyFields:$.keepDefaultValues&&H?$o(c,H):$.keepDirty?s.dirtyFields:{},touchedFields:$.keepTouched?s.touchedFields:{},errors:$.keepErrors?s.errors:{},isSubmitSuccessful:$.keepIsSubmitSuccessful?s.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:c})},Sn=(H,$)=>Ht(Cr(H)?H(f):H,{...a.resetOptions,...$}),mn=(H,$={})=>{const X=Je(l,H),Ce=X&&X._f;if(Ce){const Te=Ce.refs?Ce.refs[0]:Ce.ref;Te.focus&&setTimeout(()=>{Te.focus(),$.shouldSelect&&Cr(Te.select)&&Te.select()})}},_n=H=>{s={...s,...H}},At={control:{register:Nt,unregister:tt,getFieldState:Re,handleSubmit:zn,setError:Ve,_subscribe:Ge,_runSchema:ne,_updateIsValidating:L,_focusError:hn,_getWatch:$e,_getDirty:Xe,_setValid:U,_setFieldArray:Z,_setDisabledField:fn,_setErrors:I,_getFieldArray:W,_reset:Ht,_resetDefaultValues:()=>Cr(a.defaultValues)&&a.defaultValues().then(H=>{Sn(H,a.resetOptions),M.state.next({isLoading:!1})}),_removeUnmounted:Ee,_disableForm:ln,_subjects:M,_proxyFormState:w,get _fields(){return l},get _formValues(){return f},get _state(){return p},set _state(H){p=H},get _defaultValues(){return c},get _names(){return v},set _names(H){v=H},get _formState(){return s},get _options(){return a},set _options(H){a={...a,...H}}},subscribe:Mt,trigger:Ne,register:Nt,handleSubmit:zn,watch:Yt,setValue:Ye,getValues:ye,reset:Sn,resetField:jn,clearErrors:He,unregister:tt,setError:Ve,setFocus:mn,getFieldState:Re};return{...At,formControl:At}}function UC(n={}){const a=Ae.useRef(void 0),s=Ae.useRef(void 0),[l,c]=Ae.useState({isDirty:!1,isValidating:!1,isLoading:Cr(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:Cr(n.defaultValues)?void 0:n.defaultValues});if(!a.current)if(n.formControl)a.current={...n.formControl,formState:l},n.defaultValues&&!Cr(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:p,...v}=zC(n);a.current={...v,formState:l}}const f=a.current.control;return f._options=n,vC(()=>{const p=f._subscribe({formState:f._proxyFormState,callback:()=>c({...f._formState}),reRenderRoot:!0});return c(v=>({...v,isReady:!0})),f._formState.isReady=!0,p},[f]),Ae.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),Ae.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),Ae.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),Ae.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),Ae.useEffect(()=>{if(f._proxyFormState.isDirty){const p=f._getDirty();p!==l.isDirty&&f._subjects.state.next({isDirty:p})}},[f,l.isDirty]),Ae.useEffect(()=>{var p;n.values&&!os(n.values,s.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((p=f._options.resetOptions)===null||p===void 0)&&p.keepIsValid||f._setValid(),s.current=n.values,c(v=>({...v}))):f._resetDefaultValues()},[f,n.values]),Ae.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),a.current.formState=Ae.useMemo(()=>yC(l,f),[f,l]),a.current}const BC=({isOpen:n,onClose:a,attorneyData:s,onSave:l})=>{const{register:c,handleSubmit:f,formState:{errors:p},reset:v,setValue:S,watch:x}=UC({mode:"onChange",defaultValues:{name:"",designation:"",description:"",socialLinks:""}});x(),D.useEffect(()=>{n&&v(s?{name:s.name||"",designation:s.designation||"",description:s.description||"",socialLinks:s.socialLinks||""}:{name:"",designation:"",description:"",socialLinks:""})},[n,s,v]);const A={name:{required:"Name is required"},designation:{required:"Designation is required"}},w=M=>{const z={name:M.name.trim(),designation:M.designation.trim(),description:M.description.trim(),socialLinks:M.socialLinks.trim()};l(z),j()},j=()=>{v({name:"",designation:"",description:"",socialLinks:""}),a()};return n?E.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e4},children:E.jsxs("div",{style:{background:"white",borderRadius:"8px",width:"500px",maxWidth:"90%",maxHeight:"90vh",overflowY:"auto",position:"relative",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)"},children:[E.jsxs("div",{style:{background:"#00bdff",color:"white",paddingTop:"6px",paddingBottom:"6px",paddingLeft:"16px",paddingRight:"16px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[E.jsx("h3",{style:{margin:0,fontSize:"1.25rem",fontWeight:"500",textTransform:"none",color:"#fff"},children:s?"Edit Team Member":"Add Team Member"}),E.jsx("button",{style:{background:"none",border:"none",cursor:"pointer",padding:"5px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s",color:"#fff"},onClick:j,onMouseEnter:M=>{M.target.style.backgroundColor="rgba(255, 255, 255, 0.1)"},onMouseLeave:M=>{M.target.style.backgroundColor="transparent"},children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),E.jsx("div",{style:{paddingLeft:"16px",paddingRight:"16px",width:"100%"},children:E.jsxs("form",{onSubmit:f(w),children:[E.jsxs("div",{style:{marginTop:"16px",display:"flex",width:"100%"},children:[E.jsxs("div",{className:"input-wrap mb-4 position-relative",style:{width:"50%"},children:[E.jsx("label",{className:"form-label w-100 text-start modal-label",htmlFor:"name",style:{textTransform:"none"},children:"Name:"}),E.jsx("input",{type:"text",...c("name",A.name),placeholder:"Enter name",className:"input-control modal-input-placeholder style-placeholder",style:{width:"97%"}}),p.name&&E.jsx("span",{className:"error-msg",children:p.name.message})]}),E.jsxs("div",{className:"input-wrap mb-4 position-relative",style:{width:"50%"},children:[E.jsx("label",{className:"form-label w-100 text-start modal-label",htmlFor:"designation",style:{textTransform:"none"},children:"Designation:"}),E.jsx("input",{type:"text",...c("designation",A.designation),placeholder:"Enter designation",className:"input-control modal-input-placeholder style-placeholder",style:{width:"99%"}}),p.designation&&E.jsx("span",{className:"error-msg",children:p.designation.message})]})]}),E.jsxs("div",{className:"input-wrap mb-4 position-relative",children:[E.jsx("label",{className:"form-label w-100 text-start modal-label",htmlFor:"socialLinks",style:{textTransform:"none"},children:"Social Links:"}),E.jsx("input",{type:"text",...c("socialLinks",A.socialLinks),placeholder:"https://linkedin.com/in/username or https://website.com",className:"input-control modal-input-placeholder style-placeholder"}),p.socialLinks&&E.jsx("span",{className:"text-danger position-absolute",style:{left:"0px",fontSize:"13px"},children:p.socialLinks.message})]}),E.jsxs("div",{className:"input-wrap mb-4 position-relative",children:[E.jsx("label",{className:"form-label w-100 text-start modal-label",htmlFor:"description",style:{textTransform:"none"},children:"Description:"}),E.jsx("textarea",{...c("description",A.description),maxLength:1e3,placeholder:"Brief description about the team member",className:"input-control modal-input-placeholder style-placeholder"}),p.description&&E.jsx("span",{className:"error-msg",children:p.description.message})]}),E.jsx("div",{style:{height:"1px",backgroundColor:"#e0e0e0",marginTop:"16px",marginBottom:"16px"}}),E.jsxs("div",{style:{display:"flex",gap:"16px",justifyContent:"flex-end",marginBottom:"16px"},children:[E.jsx("button",{className:"remove-btn dark",type:"button",onClick:j,children:"Cancel"}),E.jsx("button",{type:"submit",className:"remove-btn",children:s?"Update":"Add"})]})]})})]})}):null},HC=()=>{const[n,a]=D.useState(!1),l=Ri().state.returnData??{},c=vf(),f=Tf(),[p,v]=D.useState(null),[S,x]=D.useState(null),[A,w]=D.useState(null),[j,M]=D.useState(null),[z,O]=D.useState(null),[U,L]=D.useState(null),[P,Z]=D.useState(null),[ee,I]=D.useState(null),[ie,g]=D.useState(""),[Q,ne]=D.useState(""),[ze,ke]=D.useState(null),[je,Ee]=D.useState(""),[Xe,$e]=D.useState(""),[W,pe]=D.useState([]),[Ue,Ye]=D.useState(null),[q,he]=D.useState(""),[Ne,ye]=D.useState(""),[Re,He]=D.useState("auto"),[Ve,Yt]=D.useState(""),Ge=D.useRef(null),Mt=D.useRef(null),tt=D.useRef(null),fn=D.useRef(),[Nt,hn]=D.useState(null),[ln,zn]=D.useState(""),[jn,Ht]=D.useState(!1),[Sn,mn]=D.useState(!1),[_n,ea]=D.useState(null),[At,H]=D.useState(null),[$,X]=D.useState(!0),[Ce,Te]=D.useState({}),[te,de]=D.useState(null),[Oe,lt]=D.useState(null),[Et,Qt]=D.useState(1),[Zt,gn]=D.useState(!1),Gn=D.useRef(null),[yn,ha]=D.useState(!1),Tn=IE(Yh(Hp),Yh(Fb),Yh(Up,{coordinateGetter:mT})),[Xt,Ft]=D.useState(l),[Rt,vn]=D.useState((Xt==null?void 0:Xt.practice_areas)??[]),[Ie,gt]=D.useState((Xt==null?void 0:Xt.attorneys)??[]),ft=[{type:"custom_section",title:"Custom",description:"Describe any section you want"},{type:"about",title:"About",description:"Provide info about the company"},{type:"latest_posts",title:"Latest Blog Posts",description:"Display latest blog posts"},{type:"contact_form",title:"Contact Form",description:"Encourage visitors to contact through a contact form"},{type:"contact_information",title:"Contact Information",description:"Show contact information for direct reach"},{type:"call_to_action",title:"Call to Action",description:"Urge users to take action"},{type:"faqs",title:"FAQs",description:"Answer common questions"},{type:"features_listing",title:"Features Grid",description:"Highlight core features like our values, features, services in a grid layout"},{type:"gallery",title:"Gallery",description:"Showcase images or media"},{type:"hero_banner",title:"Hero Banner",description:"A full screen banner section for the the main message"},{type:"social_proof_logos",title:"Partner Logos",description:"Display logos of key customers or partners"},{type:"portfolio",title:"Portfolio",description:"Showcase portfolio items"},{type:"informational_content",title:"Static Content",description:"Display Informational Content"},{type:"reviews_section",title:"Reviews",description:"Showcase customer reviews"},{type:"practice_areas",title:"Practice areas",description:"Showcase practice areas"},{type:"practice_areas_listing",title:"All Practice areas",description:"List all practice areas"},{type:"social_cards",title:"Meet our Team",description:"Introduce the team"},{type:"testimonials",title:"Testimonials",description:"Showcase clients' success stories"}],Dt=(fe,be)=>{S&&Ft(qe=>({...qe,pages:qe.pages.map(rt=>{if(rt.page_title==="Home"){const Qe=[...rt.sections],tn=Qe.findIndex(wn=>wn.section_type==="footer"),ot={section_type:fe.type,section_title:fe.title,section_description:fe.description,section_prompt:fe.prompt,selected_slug:"auto"};return tn!==-1?Qe.splice(tn,0,ot):Qe.push(ot),{...rt,sections:Qe}}return rt})})),A&&Ft(qe=>{const rt=qe.pages.map((Qe,tn)=>{if(tn===P){const ot=[...Qe.sections],wn=ot.findIndex(Ra=>Ra.section_type==="footer"),pa={section_type:fe.type,section_title:fe.title,section_description:fe.description};return wn!==-1?ot.splice(wn,0,pa):ot.push(pa),{...Qe,sections:ot}}return Qe});return{...qe,pages:rt}}),j&&Ft(qe=>{const rt=[...qe.pages],Qe=[...rt[U].sections],tn={section_type:fe.type,section_title:fe.title,section_description:fe.description};return Qe.splice(z+1,0,tn),rt[U]={...rt[U],sections:Qe},{...qe,pages:rt}}),v(!1),x(!1),w(!1),M(!1),Z(null),L(null),O(null),I(!1),Te({}),a(!1),He("auto")},On=(fe,be)=>{const qe=[...Rt];qe[fe]=be.target.value,vn(qe),Ft(rt=>({...rt,practice_areas:qe}))},Jt=()=>{vn([...Rt,""])},yt=fe=>{const be=[...Rt];be.splice(fe,1),vn(be),Ft(qe=>({...qe,practice_areas:be}))},Tt=()=>`attorney_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,[ht,Lt]=D.useState(null),[Un,kn]=D.useState(!1),ba=fe=>{const be=fe||Ie.find(qe=>qe.id===fe.id);Lt(be),kn(!0)},Ka=()=>{Lt(null),kn(!0)},Ta=fe=>{let be,qe;if(ht)qe=ht.id,be=Ie.map(rt=>rt.id===qe?{...fe,id:qe}:rt);else{qe=Tt();const rt={...fe,id:qe};be=[...Ie,rt]}gt(be),console.log("attorneys....",be),Ft(rt=>({...rt,attorneys:be})),kn(!1),Lt(null)},hs=fe=>{const be=Ie.filter(qe=>qe.id!==fe.id);gt(be),Ft(qe=>({...qe,attorneys:be}))},Ha=fe=>{let be=qc;switch(fe.section_type){case"hero_banner":be=IT;break;case"inner_banner":be=$T;break;case"about":be=WT;break;case"posts_grid_with_pagination":be=iC;break;case"latest_posts":be=rC;break;case"contact_form":be=JT;break;case"contact_information":be=eC;break;case"call_to_action":be=uC;break;case"faqs":be=sC;break;case"social_cards":be=cC;break;case"gallery":be=tC;break;case"practice_areas":be=QT;break;case"practice_areas_listing":be=KT;break;case"features_listing":be=nC;break;case"statistics_bar":be=aC;break;case"reviews":be=y0;break;case"testimonials":be=y0;break;case"portfolio":be=oC;break;case"social_proof_logos":be=lC;break;case"media_and_text":be=qc;break;case"social_cards_listing":be=fC;break;case"informational_content":be=qc;break;default:be=qc;break}Object.keys(be).map(qe=>{fe.selected_slug&&fe.selected_slug!="auto"&&qe==fe.selected_slug&&Yt(be[qe])}),pe(be)},cr=fe=>fe.toLowerCase().split(" ").map(be=>be.charAt(0).toUpperCase()+be.slice(1)).join(" "),ti=async()=>{je.toLowerCase().replace(" ","_");const fe=cr(je);lt(!0);try{const be={page:fe,website_name:Xt.website_title,website_description:Xt.website_description},qe=await xn.post(`${f}/api/v1/websites/add_page`,be);if(qe.status===200){const rt=qe.data;Ft(Qe=>({...Qe,pages:[...Qe.pages,rt]})),Ee(""),ke(null)}}catch(be){console.error("Failed to add page",be)}finally{lt(!1)}},xa=fe=>{Ft(be=>{const qe=be.pages.map((rt,Qe)=>Qe===Ue?{...rt,sections:rt.sections.filter((tn,ot)=>ot!==z)}:rt);return{...be,pages:qe}}),I(!1),Ye(null),g(null),O(null)},Cn=fe=>{Ft(be=>({...be,pages:be.pages.filter((qe,rt)=>rt!==fe)}))},Di=(fe,be)=>{hn(fe),zn(be)},ji=fe=>{zn(fe.target.value)},Ca=fe=>{ln.trim()===""?zn(Xt.pages[fe].page_title):Ft(be=>{const qe=[...be.pages];return qe[fe].page_title=ln,{...be,pages:qe}}),hn(null)},fr=fe=>{const{active:be,over:qe}=fe;!qe||be.id===qe.id||Ft(rt=>{const Qe=[...rt.pages],tn=Qe[0],ot=[...tn.sections],wn=be.id,pa=qe.id,Ra=ot[wn],kr=ot[pa];if(Ra.section_title==="Header"||Ra.section_title==="Footer"||kr.section_title==="Header"||kr.section_title==="Footer")return rt;const[$a]=ot.splice(wn,1);return ot.splice(pa,0,$a),Qe[0]={...tn,sections:ot},{...rt,pages:Qe}})},Fl=(fe,be)=>{const{active:qe,over:rt}=fe;!rt||qe.id===rt.id||Ft(Qe=>{const tn=[...Qe.pages],ot=tn[be],wn=[...ot.sections],pa=parseInt(qe.id.split("-")[1],10),Ra=parseInt(rt.id.split("-")[1],10),kr=wn[Ra].section_title;if(kr==="Header"||kr==="Footer")return Qe;const[$a]=wn.splice(pa,1);return wn.splice(Ra,0,$a),tn[be]={...ot,sections:wn},{...Qe,pages:tn}})},jr=fe=>{const{active:be,over:qe}=fe;qe&&be.id!==qe.id&&Ft(rt=>{const Qe=[...rt.pages],tn=Qe.slice(1),ot=parseInt(be.id),wn=parseInt(qe.id),pa=qp(tn,ot,wn);return{...rt,pages:[Qe[0],...pa]}})};D.useEffect(()=>{function fe(be){Ge.current&&!Ge.current.contains(be.target)&&(ke(!1),Ee(""))}return ze&&document.addEventListener("mousedown",fe),()=>{document.removeEventListener("mousedown",fe)}},[ze]),D.useEffect(()=>{function fe(be){Mt.current&&!Mt.current.contains(be.target)&&(v(!1),ne(""),$e(""),g(""),He("auto"),pe([]))}return p&&document.addEventListener("mousedown",fe),()=>{document.removeEventListener("mousedown",fe)}},[p]);const ps=()=>{Ft(fe=>{const be=fe.pages.map((qe,rt)=>rt===Ue?{...qe,sections:qe.sections.map(Qe=>Qe.section_title===ie?{...Qe,section_title:q.trim()===""?Qe.section_title:q,section_description:Ne.trim()===""?Qe.section_description:Ne,selected_slug:Re||"auto"}:Qe)}:qe);return{...fe,pages:be}}),he(""),ye(""),He("auto"),ne(""),$e(""),I(!1),Te({}),pe([]),a(!1)};D.useEffect(()=>{function fe(be){tt.current&&!tt.current.contains(be.target)&&!Un&&(he(""),ye(""),He("auto"),ne(""),$e(""),I(!1),pe([]),a(!1))}return ee&&document.addEventListener("mousedown",fe),()=>{document.removeEventListener("mousedown",fe)}},[ee,Un,ie,Q,q,Ne]);const ms=fe=>{ea(_n===fe?null:fe)},Or=()=>{H(!At)},ni=()=>{he(""),ye(""),He("auto"),ne(""),$e(""),I(!1),pe([])},Na=()=>{Kr.dismiss();const fe=Kr.error("A maximum of 6 pages is allowed. Please remove an existing page before creating a new one.",{duration:4e3,dismissible:!0,style:{borderRadius:"6px",backgroundColor:"red",color:"white",border:"none",boxShadow:"0px 0px 4px #fff",padding:"10px 16px"}});de(fe)},ai=async fe=>{if(fe.preventDefault(),!Rt.length){Kr.dismiss();const be=Kr.error("Please add Practice Areas in practice areas section",{duration:4e3,dismissible:!0,style:{borderRadius:"6px",backgroundColor:"red",color:"white",border:"none",boxShadow:"0px 0px 4px #fff",padding:"10px 16px"}});return de(be),!1}if(!Ie.length){Kr.dismiss();const be=Kr.error("Please add team members in Our Team section",{duration:4e3,dismissible:!0,style:{borderRadius:"6px",backgroundColor:"red",color:"white",border:"none",boxShadow:"0px 0px 4px #fff",padding:"10px 16px"}});return de(be),!1}if(!yn){ha(!0);try{await xn.post(`${f}/api/store-session`,Xt),window.location.href=`${f}/register?update=1`}catch(be){console.error("Failed to store session:",be)}finally{ha(!1)}}};return D.useEffect(()=>{const fe=()=>gn(window.innerWidth<=768);return fe(),window.addEventListener("resize",fe),()=>window.removeEventListener("resize",fe)},[]),E.jsxs("div",{className:"main-container light-theme",style:{overflow:"hidden"},children:[!Zt&&E.jsxs("div",{className:"zoom-controller-container",children:[E.jsx("button",{className:"zoom-out-btn",onClick:()=>Qt(fe=>Math.max(.5,fe-.1)),children:E.jsx(AE,{})}),E.jsxs("div",{className:"zoom-percentage",children:[Math.round(Et*100),"%"]}),E.jsx("button",{className:"zoom-in-btn",onClick:()=>Qt(fe=>Math.min(1.5,fe+.1)),children:E.jsx(EE,{})})]}),jn?E.jsx("div",{className:`description-sidebar ${Sn?"closing":""}`,ref:fn,children:E.jsx(xT,{websiteData:Xt,setWebsiteData:Ft,isSiteStrPopupOpen:jn,setIsSiteStrPopupOpen:Ht,siteStrRef:fn,setIsClosing:mn})}):E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"description-sidebar-ham-icon",onClick:()=>Ht(!0),children:E.jsx("button",{className:"hamburger tggle-icon ",children:E.jsx(SE,{})})}),E.jsxs("div",{className:"description-sidebar-icon",onClick:()=>Ht(!0),children:["Site's structure",E.jsx(yE,{})]})]}),p&&E.jsxs("div",{className:"sidebar",ref:Mt,children:[E.jsxs("div",{className:"sidebar-title",children:[E.jsx("div",{children:"Add Sections"}),E.jsx("div",{className:"sidebar-cross-icon",onClick:()=>{v(!1),ne(""),He("auto"),$e(""),g(""),pe([])},children:E.jsx(Ol,{})})]}),E.jsx("div",{className:"sidebar-list",children:ft.map((fe,be)=>E.jsxs("div",{className:"sidebar-section-item",onClick:()=>{Te(fe),g(fe.title),ne(fe.description),$e(fe.type),he(fe.title),ye(fe.description),He("auto"),X(!1),Ye(S?0:P),j&&Ye(U),Dt(fe),v(!1)},children:[E.jsxs("div",{className:"sidebar-text",children:[E.jsx("p",{className:"sidebar-section-title",children:fe.title}),E.jsx("div",{className:"sidebar-section-description",children:fe.description})]}),E.jsx("div",{className:"plus-icon-div",children:E.jsx(bE,{className:"plus-icon",size:10,opacity:.5})})]},be))})]}),ee&&E.jsx("div",{}),E.jsxs("div",{className:`side-drawer ${ee?"open":""}`,ref:tt,children:[E.jsxs("div",{className:"side-drawer-header",children:[E.jsx("div",{className:"side-drawer-close-icon",onClick:()=>ni(),children:E.jsx(Ol,{})}),E.jsx("h2",{className:"side-drawer-title",children:ie}),$&&E.jsxs("div",{className:"remove-btn-div",children:[E.jsxs("span",{style:{display:"flex"},children:[" ",E.jsx(qv,{})]}),E.jsxs("span",{onClick:fe=>xa(),className:"remove-section-link",children:[" ","Remove Section"]})]})]}),E.jsxs("div",{className:"side-drawer-content",children:[E.jsx("label",{children:"Title"}),E.jsx("input",{type:"text",value:q,onChange:fe=>{he(fe.target.value)},className:"input-control",style:{marginBottom:"15px"}}),E.jsx("label",{children:"Description"}),E.jsx("textarea",{rows:"5",value:Ne,onChange:fe=>{ye(fe.target.value)},className:"input-control",style:{marginBottom:"15px"}}),E.jsx("label",{children:"Section Type"}),E.jsx("input",{disabled:!0,type:"text",value:Xe,className:"input-control section-type"}),(Xe==="practice_areas"||Xe==="practice_areas_listing")&&E.jsxs("div",{children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"25px",marginTop:"15px",marginBottom:"15px"},children:[E.jsx("label",{children:"Add Practice Areas"}),E.jsx("button",{className:"ds-btn ds-btn-rounded",onClick:Jt,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),E.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}),Rt.length>0?Rt.map((fe,be)=>E.jsxs("div",{className:"input-repeater-group",style:{marginBottom:"15px"},children:[E.jsx("input",{type:"text",className:"input-control",value:fe,onChange:qe=>On(be,qe),placeholder:"Enter value"}),E.jsx("button",{className:"ds-btn ds-btn-rounded ds-remove",onClick:()=>yt(be),children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},be)):E.jsx("span",{style:{color:"#babdbeff",fontSize:"14px"},children:"Click + to add"})]}),(Xe==="social_cards"||Xe==="social_cards_listing")&&E.jsxs("div",{children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"25px",marginTop:"15px",marginBottom:"15px"},children:[E.jsx("label",{children:"Add Team Members"}),E.jsx("button",{className:"ds-btn ds-btn-rounded",onClick:Ka,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),E.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}),Ie.length>0?Ie.map(fe=>E.jsxs("div",{className:"input-repeater-group",style:{marginBottom:"15px"},children:[E.jsxs("label",{className:"input-control",onClick:be=>{be.stopPropagation(),ba(fe)},children:[" ",fe.name.charAt(0).toUpperCase()+fe.name.slice(1)," "]}),E.jsx("button",{className:"ds-btn ds-btn-rounded ds-remove",onClick:be=>{be.stopPropagation(),hs(fe)},children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},fe.id)):E.jsx("span",{style:{color:"#babdbeff",fontSize:"14px"},children:"Click + to add"})]}),E.jsxs("div",{className:"add-section-pattren",children:[E.jsx("input",{disabled:!0,hidden:!0,type:"text",value:Re,className:"input-field section-slug"}),Re!="auto"&&E.jsxs(E.Fragment,{children:[E.jsx("label",{className:"mb-3",children:"Selected Design"}),E.jsx("img",{src:"/patterns/"+Ve,alt:"Section patterns"})]})]}),E.jsxs("div",{className:"btn-group",children:[!$&&E.jsx("div",{children:E.jsx("button",{className:"remove-btn",onClick:()=>Dt(Ce),children:"Save Section"})}),$&&E.jsxs("div",{className:"d-flex",children:[E.jsx("button",{className:"remove-btn dark",onClick:()=>ps(),children:"Save Section"}),Re!="auto"&&E.jsx("button",{className:"remove-btn",onClick:()=>a(!0),children:"Change Pattern"}),Re=="auto"&&E.jsx("button",{className:"remove-btn",onClick:()=>a(!0),children:"Select Pattern"})]})]})]}),n&&E.jsxs("div",{className:"pattern-sidebar text-white p-3",ref:Mt,children:[E.jsxs("div",{className:"sidebar-title",children:[E.jsx("h4",{className:"text-white",children:"Select Pattern"}),E.jsx("div",{className:"sidebar-cross-icon",onClick:()=>a(!1),children:E.jsx(Ol,{})})]}),E.jsx("div",{className:"pattern-list",children:Object.keys(W).map(fe=>E.jsx("div",{className:"pattern-card",onClick:()=>{He(fe),Yt(W[fe]),a(!1)},children:E.jsx("img",{src:`/patterns/${W[fe]}`,alt:"pattern"})},fe))})]})]}),ze&&E.jsx("div",{className:"popup-container ",ref:Ge,children:E.jsxs("div",{className:"popup-content",children:[E.jsxs("div",{className:"popup-title",children:[E.jsx("h3",{children:"Add new page title"}),E.jsx("div",{className:"add-page-cross-icon",onClick:()=>{ke(!1),Ee("")},children:E.jsx(Ol,{})})]}),E.jsx("input",{type:"text",placeholder:"Enter title",value:je,onChange:fe=>Ee(fe.target.value)}),E.jsx("button",{className:`proceed-button ${je.trim()===""?"btn-disable":"btn-enable"} ${Oe?"disabled":""}`,disabled:!!(je.trim()===""||Oe),onClick:()=>ti(),children:Oe?"Adding..":"Proceed"})]})}),E.jsx(kE,{nodeRef:Gn,disabled:Zt,cancel:".homePage, .add-page-btn, .lower-page,.drag-handle-page, .mobile-add-page-container",children:E.jsx("div",{ref:Gn,children:E.jsxs("div",{style:{transform:`scale(${Et})`,transformOrigin:"0 0",transition:"transform 0.2s ease"},children:[E.jsx("div",{className:"homePage-container",children:E.jsxs("div",{className:"homePage",children:[E.jsxs("div",{className:"page-header",children:[E.jsxs("div",{className:"page-header-title",onClick:()=>Or(),children:[E.jsx(vE,{}),E.jsx("span",{style:{fontSize:"13px"},children:"Home Page"})]}),E.jsxs("div",{className:"home-action-container",children:[E.jsx("div",{className:"home-add-btn",onClick:()=>{x(!0),v(!0)},children:E.jsx("span",{style:{marginBottom:"-4px"},children:E.jsx(kc,{})})}),E.jsx("div",{className:"home-down-arrow",onClick:()=>Or(),children:E.jsx(Vv,{className:`home-arrow-icon ${At?"open":""}`})})]})]}),E.jsx("div",{className:"page-content",style:{display:At?"block":"none"},children:E.jsx(Ih,{sensors:Tn,collisionDetection:Zh,onDragEnd:fr,modifiers:[$h,Kh],children:E.jsx(Qh,{items:Xt.pages[0].sections.map((fe,be)=>["Header","Footer"].includes(fe.section_title)?null:be).filter(Boolean),strategy:h0,children:Xt.pages[0].sections.map((fe,be)=>{const qe=fe.section_title==="Header"||fe.section_title==="Footer";return E.jsx(p0,{id:be,disabled:qe,children:E.jsxs("div",{className:"section",children:[fe.section_title==="Header"&&E.jsx("span",{className:"section-title",children:fe.section_title}),!qe&&E.jsx(E.Fragment,{children:E.jsx("span",{className:"section-title",onClick:rt=>{X(!0),g(fe.section_title),ne(fe.section_description),I(!0),he(fe.section_title),ye(fe.section_description),Ye(0),O(be),$e(fe.section_type),He(fe.selected_slug?fe.selected_slug:"auto"),Ha(fe)},children:fe.section_title})}),fe.section_title==="Footer"&&E.jsx("span",{className:"section-title",children:fe.section_title}),!qe&&E.jsx(E.Fragment,{children:E.jsx("span",{className:"pencil-icon",onClick:rt=>{X(!0),g(fe.section_title),ne(fe.section_description),I(!0),he(fe.section_title),ye(fe.section_description),Ye(0),O(be),$e(fe.section_type),He(fe.selected_slug?fe.selected_slug:"auto"),Ha(fe)},children:E.jsx(Qc,{size:14})})}),fe.section_title!=="Footer"&&E.jsx("span",{className:"hover-plus-icon",onClick:rt=>{rt.stopPropagation(),M(!0),O(be),L(0),v(!0)},children:E.jsx(kc,{})})]})},be)})})})})]})}),E.jsx("div",{className:"add-page-container",children:E.jsxs("button",{className:"add-page-btn",onClick:()=>{Xt.pages.length===7?Na():ke(!0)},children:[E.jsx("span",{className:"add-page-btn-icon",children:"+"}),"Add Page"]})}),E.jsx("div",{className:"lower-pages-container",children:E.jsx(Ih,{sensors:Tn,collisionDetection:Zh,onDragEnd:jr,modifiers:[yT,$h,Kh],children:E.jsx(Qh,{items:Xt.pages.slice(1).map((fe,be)=>be),strategy:rT,children:Xt.pages.slice(1).map((fe,be)=>{const qe=be+1,rt=Xt.pages.length-1;return E.jsx(vT,{id:be,children:E.jsx("div",{className:"lower-page-div",children:E.jsxs("div",{className:`lower-page ${be===0?"first-page":be===rt-1?"last-page":""} ${rt===1?"one-page":""}`,children:[E.jsxs("div",{className:"lower-page-header",children:[E.jsxs("div",{className:"lower-page-title",onClick:()=>ms(be),children:[E.jsx("span",{style:{marginTop:"2px"},children:E.jsx(xE,{})}),Nt===qe?E.jsx("input",{className:"edit-input",type:"text",value:ln,onChange:ji,onBlur:()=>Ca(qe),autoFocus:!0}):E.jsx("span",{style:{fontSize:"13px",width:"80%"},children:fe.page_title})]}),E.jsxs("div",{className:"add-edit-div",children:[E.jsx("div",{className:"add-btn",onClick:()=>{Z(qe),w(!0),v(!0)},children:E.jsx("span",{style:{marginBottom:"-4px"},children:E.jsx(kc,{})})}),E.jsx("div",{className:"edit-btn",onClick:()=>Di(qe,fe.page_title),children:E.jsx("span",{style:{marginBottom:"-4px"},children:E.jsx(Qc,{})})}),E.jsx("div",{className:"delete-btn",onClick:()=>{Cn(qe)},children:E.jsx("span",{style:{marginBottom:"-4px"},children:E.jsx(qv,{})})}),E.jsx("div",{className:"down-btn",onClick:()=>ms(be),children:E.jsx("span",{style:{marginBottom:"-4px"},children:E.jsx(Vv,{className:`arrow-icon ${_n===be?"open":""}`})})})]})]}),E.jsx("div",{className:"lower-page-content",style:{display:_n===be?"block":"none"},children:E.jsx(Ih,{sensors:Tn,collisionDetection:Zh,modifiers:[$h,Kh],onDragEnd:Qe=>Fl(Qe,qe),children:E.jsx(Qh,{items:Xt.pages[qe].sections.map((Qe,tn)=>["Header","Footer"].includes(Qe.section_title)?null:`${qe}-${tn}`).filter(Boolean),strategy:h0,children:fe.sections.map((Qe,tn)=>E.jsx(p0,{id:`${qe}-${tn}`,disabled:["Header","Footer"].includes(Qe.section_title),children:E.jsxs("div",{className:"section",children:[E.jsxs("span",{className:"section-title",onClick:ot=>{Qe.section_title==="Header"||Qe.section_title==="Footer"||(X(!0),g(Qe.section_title),I(!0),he(Qe.section_title),ye(Qe.section_description),ne(Qe.section_description),Ye(qe),O(tn),$e(Qe.section_type),He(Qe.selected_slug?Qe.selected_slug:"auto"),Ha(Qe))},children:[" ",Qe.section_title]}),Qe.section_title!=="Header"&&Qe.section_title!=="Footer"&&E.jsx("span",{className:"pencil-icon",onClick:ot=>{Qe.section_title==="Header"||Qe.section_title==="Footer"||(X(!0),g(Qe.section_title),I(!0),he(Qe.section_title),ye(Qe.section_description),ne(Qe.section_description),Ye(qe),O(tn),$e(Qe.section_type),He(Qe.selected_slug?Qe.selected_slug:"auto"),Ha(Qe))},children:E.jsx(Qc,{size:14})}),Qe.section_title!=="Footer"&&E.jsx("span",{className:"hover-plus-icon",onClick:ot=>{M(!0),O(tn),L(qe),v(!0)},children:E.jsx(kc,{})})]})},`${qe}-${tn}`))})})})]},qe)})},be)})})})}),E.jsx("div",{className:"mobile-add-page-container",children:E.jsxs("button",{className:"add-page-btn",onClick:()=>{Xt.pages.length===7?Na():ke(!0)},children:[E.jsx("span",{className:"add-page-btn-icon",children:"+"}),"Add Page"]})})]})})}),E.jsx(BC,{isOpen:Un,onClose:()=>{kn(!1),Lt(null)},attorneyData:ht,onSave:Ta}),E.jsxs("div",{className:"db-actions-line active color-temp",children:[E.jsxs("div",{className:"footcol product-by",style:{margin:"0px"},children:["Powered by"," ",E.jsxs("a",{href:"https://42works.net/",target:"_blank",children:[E.jsx("img",{src:"./42-logo.svg"})," Works"]}),". All Rights Reserved."]}),E.jsx("div",{className:"db-steps-progress-container",children:E.jsxs("ul",{className:"db-steps-progress",children:[E.jsxs("li",{className:"step active site-right-border",children:[E.jsx("span",{children:"SITE INFO"}),E.jsx("div",{className:"circle filled"})]}),E.jsxs("li",{className:"step active page-right-border",children:[E.jsx("span",{className:"step-link",onClick:()=>c("/color-template",{state:{returnData:Xt}}),children:"STYLE"}),E.jsx("div",{className:"solid-line solid"}),E.jsx("div",{className:"circle filled"})]}),E.jsxs("li",{className:"step current",children:[E.jsx("span",{children:"PAGES"}),E.jsx("div",{className:"solid-line solid"}),E.jsx("div",{className:"circle filled"})]})]})}),E.jsxs("div",{className:"back-generate-div",children:[E.jsx("a",{className:"ds-btn-m ds-btn-outline item",onClick:()=>c("/color-template",{state:{returnData:Xt}}),children:E.jsx("span",{children:"Back"})}),E.jsxs("a",{className:`ds-btn-purple-blue ds-btn-m item ${yn?"disabled":""}`,onClick:fe=>!yn&&ai(fe),style:{pointerEvents:yn?"none":"auto",opacity:yn?.6:1},children:[E.jsx("img",{src:dC,alt:"Generate"}),E.jsx("span",{children:yn?"Generating":"Generate"})]})]})]}),E.jsxs("div",{className:"db-actions-line ng-star-inserted active site-pages",style:{display:"none"},children:[E.jsxs("div",{className:"footcol product-by",children:["Powered by"," ",E.jsxs("a",{href:"https://42works.net/",target:"_blank",children:[E.jsx("img",{src:"./42-logo.svg"})," Works"]}),". All Rights Reserved."]}),E.jsx("div",{style:{marginRight:"100px"},className:"db-steps-progress-container",children:E.jsxs("ul",{className:"db-steps-progress",children:[E.jsxs("li",{className:"step active site-right-border",children:[E.jsx("span",{children:"SITE INFO"}),E.jsx("div",{className:"circle filled"})]}),E.jsxs("li",{className:"step active page-right-border",children:[E.jsx("span",{children:"PAGES"}),E.jsx("div",{className:"solid-line solid"}),E.jsx("div",{className:"circle filled"})]}),E.jsxs("li",{className:"step current",children:[E.jsx("span",{className:"step-link",onClick:()=>{c("/color-template",{state:{websiteData:Xt}})},children:"COLORS & FONTS"}),E.jsx("div",{className:"dashed-line dashed"}),E.jsx("div",{className:"circle empty"})]})]})}),E.jsx("a",{className:"ds-btn-m ds-btn-outline ds-btn-purple-blue item",onClick:()=>{c("/color-template",{state:{websiteData:Xt}})},children:E.jsx("span",{children:"Next"})})]})]})},qC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALuSURBVHgB7ZpbTiJBFIb/bkYTozHgNRoT5sXEt8EVDLODcQXoCtQVACtwZgU6KxjZATsAHnx1IBqNxih4iUYjTP0VCrl0I1Z1THenv6Rp6OqunL/OqTqnQltQlEppxGJZtFop8SuOgGHJz0olKz5zCDCW8MQmbHsfAceGZWUQAigkjRBgIyREQvxGJMRvREL8RiTEb3yBB6SnppCJx1F/fcXu+XnnejwWQ3ZhQZ7zl5eoPj932vZXVuS5cHeHw0YDphgJoYF/k0kphCIOb2972kqrq/g6Pi5/pyYm8OP4WN5HGs0mMokENmdmULy/x0at1mnTwSi09paWpIjdszMkjo6wdXLS00YRNI4HhfCaYqf9DJ9lH8pDumh7hEZyNPMXF/h1ddXT9nN6utP2fXJSbBYsFET47C0voyC81u05PitDcHERSdFnrSv8PoK2R2gsObi5GWgrPjzIUMkJIQoazGts60cNxEa7Tx2MPMKQqTqMoJwvDhPYbVKr8Psmwk8XbY8kx8YcRehiMtGJthDGdV2sPF7BQVErnA5RZh8V05AZFU8y+zC2Tk/xGZhldtt2jOvuRcDJIyZzwQ0jIczW/9bWBq6XHx97yhEFBTCDM5M74ZRjRsVISPnpCb/7sjq9xCzNGoxiumEBSRHM+NWXl4E2E4yEcMQPrq8HrquSg4cSyu+qbOnO+ApWzyxldNEWUhMjKusoB2goxeSE8TwUf0Q54ySCMOwqwsO6aAuhN2isG6xuWRymhVjeyzBkue4G+zKpFLSFcEJvz83JCc/vTtDwYcYr2AeFuPUzCtoJkaPNkZaxbcj27Kw8m6xa2kIoghN3Z35eLqkpjcqV84J7FLUImISWJf7kacGAXHt1Iqqsf68soQCGkppj3CX2b84+irEQZRgnNb2SbBs5DIpttBcA7lG8qMc8EeIHojLeb0RC/EYkxG9EQvwGhdQRAmy0WmWEAArJIwTYWF8votkMvJi33T5fd+KbQgF9yeY/fu1JgKNSAZ0AAAAASUVORK5CYII=",VC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGYSURBVHgB7dk/SAJhGMfx3/uegQSJbkfg0piLcy22uQet1VBrS/82dZOaWmtI2xKaa3SItsDFxhahblMUSqq7t+c9wiyChnvv5V54P4Ny4vDlfHjPu5fhi7s7KsERFQEUGZBFsrQRoOkdZxrygMkXd39UARNVJJ1gVe9orsbcveEGOM5hCuavcApeh0mEU+H0VoJBaJ6LHIahhSJrXLRko3Wx0boYGZ1CTDJphnIhhXyOTT7rPgW4efhAVLFElxdTOFlLh+HT7h59JdHKxyOf438Gq6Q8emt5JtZgSfl4FOadH8dyHHZaYwzHAqrEvnqc3b4pDZbsOq0Lcw+GkX+7q+1ZLC04/35PzvfmxSui0nqmr7vR12hJa3T3OYAK2qJ7/YAu4z5UUDLT037P9+rpS3j5VskuebrYaF1stC72HlFq3b/Tuvx9ue711f4tlZRHX1J03OxM62KjdbHRunBaRQcwDKdnQR2Ypc1pX64GkzA0uVfPtWm31oxw6vTqmcbkSaF7SDu3ItwILSFBBMSAgXXkRIQnmHwCUVFxR4agamQAAAAASUVORK5CYII=",PC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4YSURBVHgBrVlbjF1VGf7XWnufmU47UCql1EsqGi9p+kACCWi8FHkpgsYn0RfQeDfoAyHRFwM1xjcTItEYI1A0EpCASUUx1ks1JCASrVINBk3gBXpLepvpdObstZbf9/3rnBY6GER2M9377Nv6L9///ZcdrG237Xhkexjs1i6XSzsL67s82Gh5sM6KzRYcDzyO1pUVS9VwnPGrWlcHC7g+y30KloYVi7HgvFnAPUFvD7hzsJiK1VBsVPFkWMGbi1nqLYRlC5F3jvGzWIQgMQ5WU7aUxhb7Ya+V8T2X7Llvl78N284P7rm1VrstYfGuBCwYLOZlmx2K9TjXl2yjgsUyXoiFKDAFT5V7PjO2vhYsEHQu4ncM1SKEoyAUOCUcUxiuiHtxUauHhHN4H5aEUniuw/MBwkPBEvncgJuyFLZQb9uy+96d4UtX7v7E+ResuZuWiZA84Q/P2QwETRB8JmcoQaGr9ThOON8bhTcI6kJT2ZlKLSBAuz9SAaxTsXDA/SFmt1Ec43/8g9D0hKxPL/QuLIW2OMhbMbkHApWl8Ny6lauAhP7GAglKcSea/vAb+1FIenkcc/VB1jAIU3EQoESt7iy+FKtAEZqu8BDGgfUkWJGFcTcexXU8RAcEwIM3ygsQOFDQ7gw0aABYwDq8r+q4SJEU8q1dnLPtLo0LUCqXoUuwD7Up0lTBaiHQxss6ESauFkbxB1hQMN0L/ARYosYsrwS8q1AgxgWVpDDEPt0hgccSNvJ+eicO7TexXWUICg44IOZcFhuAZcLDFQiydah2lshB1p8c0wq1DO06T8NyCjwKXQQj+NQtzXuByw4uDQi0QIzCCyU6FBIhQ2ikrHtpbVpa0JKlq8cDPRfieli/xyJRAtNaXDISRzlMoeIQgFJBwWBT3RocpKOeDY5TWdIhQAF5rSM8YNUcKGRwDyTHaoTQEzgEKQGlcTxIWIdFDB4H0Ny6IZKGOsedXB7d5SU2//ufI7YImzJsqRLRmvVdKf8ZcS0iHggzUVl1Q1DhSCVolG6YwqBCmZ70Zs4UYADLUKRjrBEihBZiiUFaIHjn68YJ+521VQkfpr/o9CD+nQhpDT4RMCh17FYhRHgekU8ckgxsygJZXO4eIASKLB14L54tacUhoECkwGMb4Y0DbSoqDIJQV5UigDkJXqxRwtSCk0MaPvFeJpEGGROw4HI8MwLNFZ6tXNRpGFckmOBAxumcAru44lankEgs5P2SeB5c0jkNiiYBj0xDCOse3GIpkRHfFj2AcvQgrU00x+/YcwEWq8S0Lo11TKv2dZAC3QQw0YVlnETFQGjJATCwFVldAlvjXyUJWhr5gDFCwSlSj/OjLBwbj7ugQMYuiYooCWmJti146UiBGBvPNrTUBqIqn4u73ehR54K58KIn0aNnPu5DYwIqEyBwJ6vlFmgumPaiSNzbRTcOLdglv7f3wEQgtpSCfclJrqJwmcQ+NPwKOlPZpyyx4fKLbcPbNtiazWttdF5v/breuvkZxa+TS5mQj+WDR6wsnLJ86JAt/fFPVo8csIQFCtN159wcO1e4djRcUTDXkbs+JRwLOpWWptXgNATJTJiu4RsVIVSYaGrRPrbo23rzlXbJx7fZK9/ecubwix+1hd2P2MLdd4rerPE296VrGZXGHI0lbOlakPRRGTkywLKsnURsBYLl2OKvBrHGJC/S4sT9tpuv+B8FPndb9+Fr7LxP3SisOzywSudpNoCNENlQCNbtiW2cngGsZnCM8zEHIqia81RUGqeYWbR6Jr2L4qDUHKDw1o9ttVez1UXC48j099x1H7K0aYNbNXrmSwjGOioKxDJTVI90PQsqlkl4aCbS0gR+Jw4eVAdETxBQICenurOqD3vD+7bYq90O3PQ1O/jlr0j4ydZvg8d6cjWXjs7jjSl68vMI0ORBz0A0KdOpOlY1BlcAtwXCDnhwyKSn6JRnzihki25+9LJC5ZPLdvThv9jSvmckGKuzDddcbvM7rtB1lqdpfs7K4oKltXM61228yFZi43YIaiMlBJWqGUHWMa4ICdEdrgPjHYUqytTVq+RJhiTW0a30LB+jZzlCZu3mdasKvPLCcfvX5++2gn1/AUxwPpQ/eNiO7N9vx3/8U9v8rVvs4jtvP+e5uHETGASy4o/GEp/L0tHYNxRCBQFYSHus0XG+y5CcDJsZuVB3TOopXk+TBvMQPPczQZDrX8bST3/hR1YPHLXNn32/XXj9uy3Oz4LiluzEQ7+xExD68Fe/YZvu+KaFZuHppswIz0LQ2JPHO+FaghMOiZCB4fDXydpuT2gaxR6CQPDgK6qLg3eCqq1NSnXrzhX60MNP2fLzR23TZ66yiz79AQksK65bY+tvuM7Ov+FaK4cP2anf/u6cZ9OFFzfBo0OkRw0D4WtHyiNkoo5Z36CqgsXRqUq4WpXLxBwUDuzOriNH17JIaG8K6ipWPvKzpxQTG6+/clUvzH9kBxTpbfz3/atcrc4KaAICcFx6h0eSoDiPIKTggcFIBfhbNOetBYRSMQnLe0VHAYcwSS6rC+wmBWxefx6CbHb1y4BEnF9rZenkKheDAk9tXO+Bp3KW2RHQVb+BPbE83Y+j1xTqE3nMtqkVRbmlePqNmBripL5+ybrrZiwzRZ88varQZXERafygNxEv2YKgYR54LGdk1SjKyxI0aG0eKzJ5Tu1Rc31WH+cUl+OE6qqsXcxe1tLnX7bFhoXTdvj+x1a9vrj7F+o6ZrdfvcrV4Fimd1lMtWYCKkBGCAjWCNRGlR6Oienc6M6UCT1/j0MUX5O/i7qaqAKc1l84sHDOshdduw3wWG8H7vq9Hb5rj1jDLXzKTtz7oJ287z7rNr1uVaHL6ZOqk8skuTCZMJ0TGTE6OTDFR7dy9eTiNQbTeYe6WRCptbFH1BRoTL05SsCbazgXHsTyO79zg/37ph/Y4V177OgPH7bZN62zuHzYwtKC9Zs32gU7v26rbqcXPJkw+3ahdTgzMJILWUDghEhUICY1FKRsQSJoFADODpwWMUuiIhkADZaoWf2TOuqTL5xcde2Zzett64O32LFfPmkLv3pUg5bR/OtszaXvsLmrt4Of1676XD52UKnbW7jkPaqSignDtL5KVCnkv2HpNJ0aMPDI66UVUGx1Uk3eaLYhy+KBRftv2/odl+vvlW5leQFCt3FD8nXV2UQPPApakc6J66iAZJWn9NJZCzsvT9MkpScPUIIk+Djx+X2H7LXchn8+5gktOSHIuqE1zvFMNiQmWLLyj9d1AzGtBMJ+WuMq1BOxZcUwUjbkS08cXLSnH/iHvRbb8qMPWj1+yIVlHd06YtKe1xrOzSQB9p8sXYsaW9aE1bXMFDp6U0vmIBzGyTHPa0NwhZ644wl75oH99v9sp//wkC39/Hvel2rk5UL73Cc59ZE9WPn1zNBRsOFPNvWqrroclFTOdLGdj7pqbInGh165kIaSPfntx+3Zn+yzN75ni81vnrMZ9Iezm+c5IGyNbPE9EwoYpCydEFMMR1+wfOBZG577s6UZf7eWFdt65xIFDVeiaMjhTQgNGkHBGtZEduJ1wtFZNwwaIDJSs0rSxIA1nz/UQgWTHUdQju//KwYqyzYXTqMUPmVz/SkYhn8LNuJQcbSsIojToYCwr2tMbVUcpTY6C14JV+dpZWRe6hpjkG4b1jXm6HwsAbdj3pE0dhGZa0Ar9kDqhmaEBc8PeBjDKijmx2QewQjvHEfPl8PEYNWrxhKbEWV9b+U0VIztKwGFbZNWttiVFZ5GEp4pmdtz8Ocmg3iBqGqGwUBMggipj4wyQUtVZkwKRqV0Xo9e+XHQ48tjEscEpAKrtkEOwjpXKaiJUxulqbfCxiyoASU3YpbBmHsPyOQZ2IdKzi6uPAIz82J0F6nzbhjmt5GJkLWxytAEZ2qX9snHM6WbTIijV4ltosp7qXlXa+uOnN1qmwdWzdE0bZ6WYaK4yeAEDWFoRZpoL3o5EZmNaAV25IWFbYsK7x2jsE04jN0ZzjLmViZUBg0fkytH3EeHjeq5UmXOwUdFbWAZ2vDM3V8YH24xn4pHD0YffhTHMZtdprzgTBY9qEor4YKCbtA7igceep7gGJJ1xyk0D/TCM8vVgfGARXLwJzQgE4U6HmOrHl9cKU6mVsGmXyJEXJMZ4pkuKqpVn4wxinopWSo08DvVmaY6g8acPgOhsKoCg1d//mdt8t9mrMK4Y9O/g/l5VDN4TWcvqsXFo06v8hCNVM9Wpk2MQvvq0GblTOUxl3AsxTa8DRxme+qeTHxlyegOlfXMlaEQxDabCA7mJxYfy8q0x0jBPMRewrulvUyYTKxKg4sP8WdbJVG86TCf/suADL7glCgeRxu1b6itU6GVimNqCK6lMEgBld7PeLK0KaCGPDG2jt7TPwYPgoofu/tZ3oaJkMVaEHJW6OxRpl/LcMdQ2rlkregz/7AidffGpeNLO8PEvZyYRnctZ8vEttckxfm2ROF0hdar3iBkBUmSQvTQCs5xiDgAcivySBTPk2L4BbJmb6RJkSFXh1xxkFBIjrUyfwk6mKqW2MjBa3zcc098/Nfv3RvKeKc8wwVFSXRr5zPmylf0vnArqkwQSM7dEG7MgOOnIKYyKlpmVPRU/7Zr/lEueQhhP2bFz2kWv3ZBW467wzgLQ2WAz8aM+uyYr+4BehTl8c7ustt3ieWf/tv397596+eeg0DrSy5vFuvzG6Cw5uDrBhXaqLBAaO3LbcD384hvLfy6y68BqfK7OVBd8UmC32Diis6pJOcXgOqf4WiICcUFfFdJisukj1WhdeMaH3Dk39sx1NSP49cnZ9713V2U9z/SXxnnOehCwAAAAABJRU5ErkJggg==",YC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAITSURBVHgB7ZmxkYJAFIbf3UVmlmBoaAmUYAdSgh2AFWhoph1oB9CB14GpGYQacfszPu65hxwsuIDDP/M7srDDt8u/bxkl+pWjHChHyknHDC6XNHkdBM2zx8Bux0F1O3Sf+r4Aw8HH/UufFPcRmj6phxqgbWmAtqX3h/Y8j87nc65xrowcx3noh2MTld6NxuNxom6UPNNisSjsP5lMkiiKsuuXy6Xprlitw2w2y268Xq9TEN/302O04/gZsBww+hgCV4eGMUMsDAJtQRCkx6fTKX0iRU9os9nUATaDhnFjCDCAkmB4AvLaw+GQAWNQNYHNoQEJAAizjDa1qP7kGwNgYVDP4mMFmuhxYanq8RAdtL8IuB407LpuBoaZRhvnm1W0QFuBhmW+AacvvPl83iRwM9Cwnm9UlQbq8WuhZb65esh8dy4ebCxGPRJc7rg0dgpaxkHOblH9bhVa36I5Jrw7viDfzQLjnUK25eWbt/5WoOWuCCG/fC5vd9zv903l2xx6t9tlYHkgevWQ+UZf69CyUhRt0Xr1kK+21t6nqwBzhOTsIjY8kBr5rtYB9VeqzE3l7OoyyfeX+vCppNSM0na7pev1SnEc02q1ouPx+G+/y+VCt9uNptNp2k8aGo1GFIYhldXwW54tDdC2NEDbUm+hY+qZAP1N/VKID4cM3j9atMv0fsdB2T5pcqmbf4RGdy6HQX8ANweDnVweKd0AAAAASUVORK5CYII=",ZC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAImSURBVHgB7ZlNS1tBFIbfM9qSxkICFoS22FWzq6SULlwo2lUX9Re0YAptsnDlL0gC4s6dbqKgov4LBUnALJUsFLPza6EgJIv4AcZxzvWDJBrMKHe8A/eBBM7MCbwz971nJhzCDYF/uQEimSQgCkIYHkJKrApgvjLdP8cx8VcwnkuqqRQ8D6VOMn1pCvzPxgRhFpZweVkdFCQwDIsgaksKkhiARRAhKmAfYRtFwxdtCl+0KawU3Q5NhqKd+NPbhVCwHfG5InaPz2AaCsazstXk7s4Atsa/38U7SnDv2DrKJxcwiZY9+iKhuviTWkT4jfbDejZaohutwPHOC9ij7dW3v6lWk3ePz1HYr6Ar9BqFvQpiM9son5q1BqPlaa+gZciejx34papHLUv5I8ciXE1Gfryvm8sVy86Hx4e+vsMX9fuwyuOnNbV8gMX8IZ6C1k7/VqUuE4vUjf2cKDjC+KXcrKkszOLaIXq63zqLfYinVh9XDxeu6c0EM7zQzHAEurgqmi3zGGy3VvJqcf0YZ4t8GM2jI5FDQp2gD1mh/3MIOrgqmut4Yr6I0o1QfvEmVw7u5XlqpxfW7lcHrjbPxeWdPocb+PdpU/iiTeGLNoVWVee7c1ZdjhrHbmmca/b/sdW8Zlh5n/Y9bQpftCl80aYQkCjBMoQU2IBFOI1QWa2mYRHcuRVnM4OrSr8lwmWaW810G3LnlhuhnusrSlmSoA0pq+nrDQauAEwhwX7BxdSdAAAAAElFTkSuQmCC",XC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAHYgAAB2IBOHqZ2wAAAVlQTFRFAAAA5Bsk4xsg4hog4hog4hog4hog4hog4xog4xog4Bcf4xkf4hog4hog4hog4hog4hkf4hog4Rsh5Roj4hog4hog4xwc4hog4hog4hoh4xoh4hog4hof4hog4yQp5jk+50BF6EhN6VJW6ldb62Fl62Jm62Ro4yMp50FG+MnK/vv7/////vr6+MfJ5C0y9re59ra45Cwy6EpP++Pk++Li6ElO7W9z//7+7W1x8IiL/vb2/fDx8IaJ85ye+tna74SH+dLT/vT08pqd86Om4h0j5jtA7Ghs+tXX86Kk9a2v4yMo7Gdr/OTl9ayu9bCy9a+x5Ccs8Y2R+tjZ9aut50RJ6VNY9Kiq/Onp/Onq9rW3/Obn85qd++Pj9re4+MfI5z9F6EhM6VFW615i4hog4hog4hog4hog4hog4hog4Rof4Rog4h0d4hog4hof4hog4Rog4xog4hog3hkhtGBM6wAAAHN0Uk5TAAMler/r/f96KQQSXs3+0V7AEwNdXwMnziZ5vuz8////////////////////////////////////////////////////////////////////////////////////////////7Oq9eCbMJV4DEl3QXHl5A5SP1xUAAAGfSURBVHiczdXPSwJREAfw+aKpoRlhrAUZFYKRlOGhU1jUIfoHoktBeZAg+lM6dfAPCAnq2CG6VEKnICEi6iCFHRILk36IabY9czWR0X3enNPb5cPbYd7sGxARykENQ1VVI5AVksgq5FdjqoUFhU+hraasLv2Loj0NB/L6G5fDDjjxKonJZIPBKrs1mW0wGmQxUS8GnuX1D1wpea3ALI/F6bSpdmr9BahqqZdU1fLQSA8zjQi8P7Hag2/u6x244bQXOU534orTPnxw2oYYp/1v2qIbmVrec8HpqbS2cDwOAv8N4Tzn9HSyohNuUZ1MJS/XCafnElUtijYP3JcfR445vRDntftId+9F4E57HD1snrci0r6uvufzrtZkHIjXlH7ygNPVetcFX+/WztI7FuN0gz7x+C45PXHL9iD1d4l/oC7gxx6xmmgoh1lEZ6KldeAsoJ42+Xf0o410a/dgcFder7R0f6/CYpKfDcsIRfKyek20vUN6pgXFxbcZlsvcnBXzUszi9UJEf/sQijulyU3Ky9Z+qq9J3ZWkshTe2Cb6BUzLcJGj6u2BAAAAAElFTkSuQmCC";var Vc=function(n,a){return n<a?-1:n>a?1:0},R0=function(n){return n.reduce(function(a,s){return a+s},0)},FC=(function(){function n(s){this.colors=s}var a=n.prototype;return a.palette=function(){return this.colors},a.map=function(s){return s},n})(),GC=(function(){function n(f,p,v){return(f<<10)+(p<<5)+v}function a(f){var p=[],v=!1;function S(){p.sort(f),v=!0}return{push:function(x){p.push(x),v=!1},peek:function(x){return v||S(),x===void 0&&(x=p.length-1),p[x]},pop:function(){return v||S(),p.pop()},size:function(){return p.length},map:function(x){return p.map(x)},debug:function(){return v||S(),p}}}function s(f,p,v,S,x,A,w){var j=this;j.r1=f,j.r2=p,j.g1=v,j.g2=S,j.b1=x,j.b2=A,j.histo=w}function l(){this.vboxes=new a(function(f,p){return Vc(f.vbox.count()*f.vbox.volume(),p.vbox.count()*p.vbox.volume())})}function c(f,p){if(p.count()){var v=p.r2-p.r1+1,S=p.g2-p.g1+1,x=Math.max.apply(null,[v,S,p.b2-p.b1+1]);if(p.count()==1)return[p.copy()];var A,w,j,M,z=0,O=[],U=[];if(x==v)for(A=p.r1;A<=p.r2;A++){for(M=0,w=p.g1;w<=p.g2;w++)for(j=p.b1;j<=p.b2;j++)M+=f[n(A,w,j)]||0;O[A]=z+=M}else if(x==S)for(A=p.g1;A<=p.g2;A++){for(M=0,w=p.r1;w<=p.r2;w++)for(j=p.b1;j<=p.b2;j++)M+=f[n(w,A,j)]||0;O[A]=z+=M}else for(A=p.b1;A<=p.b2;A++){for(M=0,w=p.r1;w<=p.r2;w++)for(j=p.g1;j<=p.g2;j++)M+=f[n(w,j,A)]||0;O[A]=z+=M}return O.forEach(function(L,P){U[P]=z-L}),(function(L){var P,Z,ee,I,ie,g=L+"1",Q=L+"2",ne=0;for(A=p[g];A<=p[Q];A++)if(O[A]>z/2){for(ee=p.copy(),I=p.copy(),ie=(P=A-p[g])<=(Z=p[Q]-A)?Math.min(p[Q]-1,~~(A+Z/2)):Math.max(p[g],~~(A-1-P/2));!O[ie];)ie++;for(ne=U[ie];!ne&&O[ie-1];)ne=U[--ie];return ee[Q]=ie,I[g]=ee[Q]+1,[ee,I]}})(x==v?"r":x==S?"g":"b")}}return s.prototype={volume:function(f){var p=this;return p._volume&&!f||(p._volume=(p.r2-p.r1+1)*(p.g2-p.g1+1)*(p.b2-p.b1+1)),p._volume},count:function(f){var p=this,v=p.histo;if(!p._count_set||f){var S,x,A,w=0;for(S=p.r1;S<=p.r2;S++)for(x=p.g1;x<=p.g2;x++)for(A=p.b1;A<=p.b2;A++)w+=v[n(S,x,A)]||0;p._count=w,p._count_set=!0}return p._count},copy:function(){var f=this;return new s(f.r1,f.r2,f.g1,f.g2,f.b1,f.b2,f.histo)},avg:function(f){var p=this,v=p.histo;if(!p._avg||f){var S,x,A,w,j=0,M=0,z=0,O=0;if(p.r1===p.r2&&p.g1===p.g2&&p.b1===p.b2)p._avg=[p.r1<<3,p.g1<<3,p.b1<<3];else{for(x=p.r1;x<=p.r2;x++)for(A=p.g1;A<=p.g2;A++)for(w=p.b1;w<=p.b2;w++)j+=S=v[n(x,A,w)]||0,M+=S*(x+.5)*8,z+=S*(A+.5)*8,O+=S*(w+.5)*8;p._avg=j?[~~(M/j),~~(z/j),~~(O/j)]:[~~(8*(p.r1+p.r2+1)/2),~~(8*(p.g1+p.g2+1)/2),~~(8*(p.b1+p.b2+1)/2)]}}return p._avg},contains:function(f){var p=this,v=f[0]>>3;return gval=f[1]>>3,bval=f[2]>>3,v>=p.r1&&v<=p.r2&&gval>=p.g1&&gval<=p.g2&&bval>=p.b1&&bval<=p.b2}},l.prototype={push:function(f){this.vboxes.push({vbox:f,color:f.avg()})},palette:function(){return this.vboxes.map(function(f){return f.color})},size:function(){return this.vboxes.size()},map:function(f){for(var p=this.vboxes,v=0;v<p.size();v++)if(p.peek(v).vbox.contains(f))return p.peek(v).color;return this.nearest(f)},nearest:function(f){for(var p,v,S,x=this.vboxes,A=0;A<x.size();A++)((v=Math.sqrt(Math.pow(f[0]-x.peek(A).color[0],2)+Math.pow(f[1]-x.peek(A).color[1],2)+Math.pow(f[2]-x.peek(A).color[2],2)))<p||p===void 0)&&(p=v,S=x.peek(A).color);return S},forcebw:function(){var f=this.vboxes;f.sort(function(x,A){return Vc(R0(x.color),R0(A.color))});var p=f[0].color;p[0]<5&&p[1]<5&&p[2]<5&&(f[0].color=[0,0,0]);var v=f.length-1,S=f[v].color;S[0]>251&&S[1]>251&&S[2]>251&&(f[v].color=[255,255,255])}},{quantize:function(f,p){if(!Number.isInteger(p)||p<1||p>256)throw new Error("Invalid maximum color count. It must be an integer between 1 and 256.");if(!f.length||p<2||p>256||!f.length||p<2||p>256)return!1;for(var v=[],S=new Set,x=0;x<f.length;x++){var A=f[x],w=A.join(",");S.has(w)||(S.add(w),v.push(A))}if(v.length<=p)return new FC(v);var j=(function(P){var Z,ee=new Array(32768);return P.forEach(function(I){Z=n(I[0]>>3,I[1]>>3,I[2]>>3),ee[Z]=(ee[Z]||0)+1}),ee})(f);j.forEach(function(){});var M=(function(P,Z){var ee,I,ie,g=1e6,Q=0,ne=1e6,ze=0,ke=1e6,je=0;return P.forEach(function(Ee){(ee=Ee[0]>>3)<g?g=ee:ee>Q&&(Q=ee),(I=Ee[1]>>3)<ne?ne=I:I>ze&&(ze=I),(ie=Ee[2]>>3)<ke?ke=ie:ie>je&&(je=ie)}),new s(g,Q,ne,ze,ke,je,Z)})(f,j),z=new a(function(P,Z){return Vc(P.count(),Z.count())});function O(P,Z){for(var ee,I=P.size(),ie=0;ie<1e3;){if(I>=Z||ie++>1e3)return;if((ee=P.pop()).count()){var g=c(j,ee),Q=g[0],ne=g[1];if(!Q)return;P.push(Q),ne&&(P.push(ne),I++)}else P.push(ee),ie++}}z.push(M),O(z,.75*p);for(var U=new a(function(P,Z){return Vc(P.count()*P.volume(),Z.count()*Z.volume())});z.size();)U.push(z.pop());O(U,p);for(var L=new l;U.size();)L.push(U.pop());return L}}})().quantize,h1=function(n){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=n.naturalWidth,this.height=this.canvas.height=n.naturalHeight,this.context.drawImage(n,0,0,this.width,this.height)};h1.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var Dl=function(){};Dl.prototype.getColor=function(n,a){return a===void 0&&(a=10),this.getPalette(n,5,a)[0]},Dl.prototype.getPalette=function(n,a,s){var l=(function(v){var S=v.colorCount,x=v.quality;if(S!==void 0&&Number.isInteger(S)){if(S===1)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");S=Math.max(S,2),S=Math.min(S,20)}else S=10;return(x===void 0||!Number.isInteger(x)||x<1)&&(x=10),{colorCount:S,quality:x}})({colorCount:a,quality:s}),c=new h1(n),f=(function(v,S,x){for(var A,w,j,M,z,O=v,U=[],L=0;L<S;L+=x)w=O[0+(A=4*L)],j=O[A+1],M=O[A+2],((z=O[A+3])===void 0||z>=125)&&(w>250&&j>250&&M>250||U.push([w,j,M]));return U})(c.getImageData().data,c.width*c.height,l.quality),p=GC(f,l.colorCount);return p?p.palette():null},Dl.prototype.getColorFromUrl=function(n,a,s){var l=this,c=document.createElement("img");c.addEventListener("load",function(){var f=l.getPalette(c,5,s);a(f[0],n)}),c.src=n},Dl.prototype.getImageData=function(n,a){var s=new XMLHttpRequest;s.open("GET",n,!0),s.responseType="arraybuffer",s.onload=function(){if(this.status==200){var l=new Uint8Array(this.response);i=l.length;for(var c=new Array(i),f=0;f<l.length;f++)c[f]=String.fromCharCode(l[f]);var p=c.join(""),v=window.btoa(p);a("data:image/png;base64,"+v)}},s.send()},Dl.prototype.getColorAsync=function(n,a,s){var l=this;this.getImageData(n,function(c){var f=document.createElement("img");f.addEventListener("load",function(){var p=l.getPalette(f,5,s);a(p[0],this)}),f.src=c})};const IC=new Dl,QC=()=>{var X,Ce,Te;const[n,a]=D.useState(!1);D.useEffect(()=>{const te=de=>{!de.target.closest(".custom-color-dropdown")&&!de.target.closest(".custom-color-btn")&&a(!1)};return document.addEventListener("click",te),()=>{document.removeEventListener("click",te)}},[]);const[s,l]=D.useState("#000000"),[c,f]=D.useState("#6b6b6b"),p=vf(),S=Ri().state.returnData??{},x=Tf(),[A,w]=D.useState(!1),j=D.useRef(),[M,z]=D.useState((S==null?void 0:S.theme)??"material"),[O,U]=D.useState(H2),[L,P]=D.useState((S==null?void 0:S.colors)??O[0]),[Z,ee]=D.useState("material-font"),[I,ie]=D.useState(null),[g,Q]=D.useState("facebook"),[ne,ze]=D.useState(null),[ke,je]=D.useState(!1),[Ee,Xe]=D.useState(((X=S==null?void 0:S.contact_details)==null?void 0:X.phone_number)??""),[$e,W]=D.useState(!1),[pe,Ue]=D.useState(""),[Ye,q]=D.useState(((Ce=S==null?void 0:S.contact_details)==null?void 0:Ce.email)??""),[he,Ne]=D.useState(((Te=S==null?void 0:S.contact_details)==null?void 0:Te.address)??{street:"",suite:"",city:"",state:"",zip:"",direction_link:""}),[ye,Re]=D.useState(""),[He,Ve]=D.useState("phone"),[Yt,Ge]=D.useState({facebook:"",instagram:"",twitter:"",linkedin:"",youtube:""}),[Mt,tt]=D.useState({facebook:"",instagram:"",twitter:"",linkedin:"",youtube:""}),[fn,Nt]=D.useState({facebook:"",instagram:"",twitter:"",linkedin:"",youtube:""}),hn=["image/png","image/jpeg","image/jpg","image/bmp"],ln=te=>{te.preventDefault();let de=te.currentTarget,Oe=de.files;if(Oe.length){let Et=Oe[0];if(hn.includes(Et.type)){ze(Et);var lt=URL.createObjectURL(Et);j.current.src=lt}else de.value="",alert("Please select an image file")}},zn=async()=>{if(!ne)return;const te=new FormData;te.append("logo",ne);try{const{data:de}=await xn.post(`${x}/v1/websites/uploadlogo`,te,{headers:{"Content-Type":"multipart/form-data"}});return de.url}catch(de){return console.error("Error uploading:",de),!1}},jn=()=>{if(!(!j.current||j.current.src.includes("site-logo.png"))&&j.current.complete){var de=IC.getPalette(j.current,2);O.push(de),U([...O]),P(de)}},Ht=(te,de)=>te!==null&&typeof te=="object"&&te.length>=de?"rgb("+te[de].toString()+")":"rgb(0,0,0)",Sn=()=>Object.values(fn).some(te=>te&&te.length>0),mn=async()=>{if($())return;if(Sn()){At();return}if(ke)return;je(!0);const te=await zn(),Oe={...S,theme:M,colors:L,fonts:Z,social_urls:Mt,user_logo:te,contact_details:{phone_number:Ee,email:Ye,primary_cta:He,country_code_req:$e,address:he}};console.log("Payload",Oe),je(!1),p("/site-structure",{state:{returnData:Oe}})},_n=(te,de)=>{if(Ge(Oe=>({...Oe,[te]:de})),de===""){tt(Oe=>({...Oe,[te]:""})),Nt(Oe=>({...Oe,[te]:""}));return}q2.test(de)?(tt(Oe=>({...Oe,[te]:de})),Nt(Oe=>({...Oe,[te]:""}))):(tt(Oe=>({...Oe,[te]:""})),Nt(Oe=>({...Oe,[te]:"Please enter a valid URL"})))},ea=te=>{P(te),w(()=>!1)},At=()=>{Kr.dismiss();const te=Kr.error("One or more social media URLs are invalid. Please fix them before continuing.",{duration:4e3,dismissible:!0,style:{borderRadius:"6px",backgroundColor:"red",color:"white",border:"none",boxShadow:"0px 0px 4px #fff",padding:"10px 16px"}});ie(te)},H=te=>{Kr.dismiss();const de=Kr.error(te,{duration:4e3,dismissible:!0,style:{borderRadius:"6px",backgroundColor:"red",color:"white",border:"none",boxShadow:"0px 0px 4px #fff",padding:"10px 16px"}});ie(de)},$=()=>{let te=!1;return Ye&&!mv(Ye)?(Re("Please enter a valid email address"),H("Please enter a valid email address"),te=!0):Re(""),Ee?gv(Ee)?Ue(""):(Ue("Please enter a valid phone number"),H("Please enter a valid phone number"),te=!0):(Ue("Please enter a phone number"),H("Please enter a phone number"),te=!0),te};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"main-container light-theme",children:[E.jsx(Tb,{}),E.jsxs("div",{className:"website-customizer-box color-temp",style:{"--accentColor":Ht(L,0),"--secondaryColor":Ht(L,1)},children:[E.jsx("h1",{className:"form-heading",style:{textAlign:"center",marginBottom:"10px"},children:"Style your website"}),E.jsxs("div",{className:"description mb30",style:{textAlign:"center",marginBottom:"45px"},children:["Play with fonts, colors, and styles to craft the",E.jsx("br",{}),"look of your future website."]}),E.jsxs("div",{className:"custom-color-container form-step-control mb24",children:[E.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"25px",alignItems:"center"},children:[E.jsx("h2",{className:"form-step-title",style:{margin:0},children:"Add Logo"}),E.jsx("img",{src:"./site-logo.png",alt:"Site Logo",ref:j,className:"site-logo-main",onLoad:jn})]}),E.jsxs("div",{className:"logo-color-theif",children:[E.jsx("img",{src:qC,alt:"Upload",style:{borderRadius:"6px"}}),E.jsx("input",{type:"file",accept:".png,.jpg,.jpeg",onChange:ln}),ne&&E.jsx("button",{className:"cancel-logo-btn",onClick:()=>{ze(null),j.current.src="./site-logo.png"},children:"✕"})]})]}),E.jsxs("div",{className:"color-picker-container form-step-control mb24",children:[E.jsx("h2",{className:"form-step-title",children:"Colors"}),E.jsx("div",{className:"db-list",children:O.map(te=>E.jsx("div",{onClick:()=>{ea(te)},className:`AI color-item suggested ${JSON.stringify(te)===JSON.stringify(L)?"selected":""}`,children:E.jsxs("div",{className:"color-set-container",children:[E.jsx("div",{className:"color",style:{backgroundColor:Ht(te,0)}}),E.jsx("div",{className:"color",style:{backgroundColor:Ht(te,1)}})]})}))}),E.jsx("div",{className:"csm-color-grup",children:E.jsx("a",{className:"custom-color-btn",onClick:()=>a(te=>!te),children:n?E.jsx(Ol,{}):E.jsx(wE,{})})}),n&&E.jsxs("div",{className:"custom-color-dropdown",children:[E.jsxs("div",{className:"flex-color",children:[E.jsxs("div",{className:"color-input-row",children:[E.jsx("label",{children:"Primary"}),E.jsx("input",{type:"color",value:s,onChange:te=>l(te.target.value)})]}),E.jsxs("div",{className:"color-input-row",children:[E.jsx("label",{children:"Secondary"}),E.jsx("input",{type:"color",value:c,onChange:te=>f(te.target.value)})]})]}),E.jsx("div",{className:"text-end",children:E.jsx("a",{className:"custom-color",onClick:()=>{const te=[s.replace("#","").match(/.{1,2}/g).map(de=>parseInt(de,16)),c.replace("#","").match(/.{1,2}/g).map(de=>parseInt(de,16))];U(de=>[...de,te]),P(te),a(!1)},children:"Add"})})]})]}),E.jsxs("div",{className:"style-picker-container form-step-control mb24",children:[E.jsx("h2",{className:"form-step-title",children:"Button Styles"}),E.jsxs("div",{className:"db-styles mt10",children:[E.jsx("div",{onClick:()=>{z("classic"),ee("classic-font"),w(()=>!1)},className:`db-style classic ${M==="classic"?"selected":""}`,children:E.jsx("a",{className:"classic theme-btn",children:E.jsx("span",{children:"Button"})})}),E.jsx("div",{onClick:()=>{z("flat"),ee("flat-font"),w(()=>!1)},className:`db-style flat ${M==="flat"?"selected":""}`,children:E.jsx("a",{className:"flat theme-btn",children:E.jsx("span",{children:"Button"})})}),E.jsx("div",{onClick:()=>{z("material"),ee("material-font"),w(()=>!1)},className:`db-style material ${M==="material"?"selected":""}`,children:E.jsx("a",{className:"material theme-btn",children:E.jsx("span",{children:"Button"})})}),E.jsx("div",{onClick:()=>{z("minimalistic"),ee("minimalistic-font"),w(()=>!1)},className:`db-style minimalistic ${M==="minimalistic"?"selected":""}`,children:E.jsx("a",{className:"minimalistic theme-btn",children:E.jsx("span",{children:"Button"})})}),E.jsx("div",{onClick:()=>{z("soft"),ee("soft-font"),w(()=>!1)},className:`db-style soft ${M==="soft"?"selected":""}`,children:E.jsx("a",{className:"soft theme-btn",children:E.jsx("span",{children:"Button"})})})]})]}),E.jsxs("div",{className:"custom-color-container form-step-control mb24 social-info-container",children:[E.jsx("h2",{className:"form-step-title",children:"Contact Information"}),E.jsxs("div",{className:"contact-fields-container",children:[E.jsxs("div",{className:"contact-form-field",style:{position:"relative"},children:[E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:E.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})}),E.jsx("input",{type:"text",placeholder:"Enter phone number *",className:"input-control icon-control",value:Ee,onChange:te=>{const de=te.target.value;Xe(de),de&&!gv(de)?Ue("Please enter a valid phone number"):Ue("")}}),pe&&E.jsx("p",{className:"error-msg contact-error",children:pe})]}),E.jsxs("div",{className:"contact-form-field email-field",style:{position:"relative"},children:[E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:E.jsx("path",{d:`M467,76H45C20.137,76,0,96.262,0,121v270c0,24.885,20.285,45,45,45h422c24.655,0,45-20.03,45-45V121
C512,96.306,491.943,76,467,76z M460.698,106c-9.194,9.145-167.415,166.533-172.878,171.967c-8.5,8.5-19.8,13.18-31.82,13.18
s-23.32-4.681-31.848-13.208C220.478,274.284,64.003,118.634,51.302,106H460.698z M30,384.894V127.125L159.638,256.08L30,384.894z
M51.321,406l129.587-128.763l22.059,21.943c14.166,14.166,33,21.967,53.033,21.967c20.033,0,38.867-7.801,53.005-21.939
l22.087-21.971L460.679,406H51.321z M482,384.894L352.362,256.08L482,127.125V384.894z`})}),E.jsx("input",{type:"text",placeholder:"Enter Email",className:"input-control icon-control",value:Ye,onChange:te=>{const de=te.target.value;q(de),de&&!mv(de)?Re("Please enter a valid email address"):Re("")}}),ye&&E.jsx("p",{className:"error-msg contact-error",children:ye})]})]}),E.jsx("span",{className:"title-small mb6",children:"Address"}),E.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px",marginBottom:"20px"},children:[E.jsx("input",{type:"text",placeholder:"Street Address",className:"input-control",value:he.street,onChange:te=>{const de=te.target.value;Ne(Oe=>({...Oe,street:de}))}}),E.jsx("input",{type:"text",placeholder:"Suite Number",className:"input-control",value:he.suite,onChange:te=>{const de=te.target.value;Ne(Oe=>({...Oe,suite:de}))}}),E.jsx("input",{type:"text",placeholder:"City / County",className:"input-control",value:he.city,onChange:te=>{const de=te.target.value;Ne(Oe=>({...Oe,city:de}))}}),E.jsx("input",{type:"text",placeholder:"State",className:"input-control",value:he.state,onChange:te=>{const de=te.target.value;Ne(Oe=>({...Oe,state:de}))}}),E.jsx("input",{type:"text",placeholder:"Zip Code",className:"input-control",value:he.zip,onChange:te=>{const de=te.target.value;Ne(Oe=>({...Oe,zip:de}))}}),E.jsx("input",{type:"text",placeholder:"Get Directions Link",className:"input-control",value:he.direction_link,onChange:te=>{const de=te.target.value;Ne(Oe=>({...Oe,direction_link:de}))}})]}),E.jsx("span",{className:"title-small mb6",children:"Social Links"}),E.jsxs("div",{className:"social-links-container",children:[g&&E.jsxs("div",{className:"tooltip-input fixed-tooltip",children:[E.jsx("input",{type:"text",placeholder:"Enter Url",value:Yt[g],className:"input-control",onChange:te=>_n(g,te.target.value)}),E.jsx("span",{className:`tooltip-arrow ${g}`})]}),E.jsxs("div",{className:"social-link-icons",children:[E.jsx("img",{src:VC,alt:"Facebook",onClick:()=>Q("facebook"),className:g==="facebook"?"active":""}),E.jsx("img",{src:PC,alt:"Instagram",onClick:()=>Q("instagram"),className:g==="instagram"?"active":""}),E.jsx("img",{src:YC,alt:"Twitter",onClick:()=>Q("twitter"),className:g==="twitter"?"active":""}),E.jsx("img",{src:ZC,alt:"LinkedIn",onClick:()=>Q("linkedin"),className:g==="linkedin"?"active":""}),E.jsx("img",{src:XC,alt:"youtube",onClick:()=>Q("youtube"),className:g==="youtube"?"active":""})]}),fn[g]&&E.jsx("p",{className:"url-error-msg",children:fn[g]})]})]})]})]}),E.jsxs("div",{className:"db-actions-line ng-star-inserted active site-pages",children:[E.jsxs("div",{className:"footcol product-by",children:["Powered by"," ",E.jsxs("a",{href:"https://42works.net/",target:"_blank",children:[E.jsx("img",{src:"./42-logo.svg"})," Works"]}),". All Rights Reserved."]}),E.jsx("div",{style:{marginRight:"100px"},className:"db-steps-progress-container",children:E.jsxs("ul",{className:"db-steps-progress",children:[E.jsxs("li",{className:"step active site-right-border",children:[E.jsx("span",{children:"SITE INFO"}),E.jsx("div",{className:"circle filled"})]}),E.jsxs("li",{className:"step active page-right-border",children:[E.jsx("span",{children:"STYLE"}),E.jsx("div",{className:"solid-line solid"}),E.jsx("div",{className:"circle filled"})]}),E.jsxs("li",{className:"step current",children:[E.jsx("span",{className:"step-link",onClick:te=>{mn()},children:"PAGES"}),E.jsx("div",{className:"dashed-line dashed"}),E.jsx("div",{className:"circle empty"})]})]})}),E.jsx("a",{className:"ds-btn-m ds-btn-outline ds-btn-purple-blue",onClick:te=>{mn()},children:E.jsx("span",{children:"Next"})})]})]})};Ux.createRoot(document.getElementById("root")).render(E.jsxs(KS,{children:[E.jsx(GT,{visibleToasts:1,richColors:!0,closeButton:!0,position:"top-right"}),E.jsxs(CS,{children:[E.jsx(Pc,{path:"/",element:E.jsx(uE,{})}),E.jsx(Pc,{path:"/site-structure",element:E.jsx(HC,{})}),E.jsx(Pc,{path:"/color-template",element:E.jsx(QC,{})})]})]}));