var Gy=e=>{throw TypeError(e)};var gh=(e,n,a)=>n.has(e)||Gy("Cannot "+a);var M=(e,n,a)=>(gh(e,n,"read from private field"),a?a.call(e):n.get(e)),Ce=(e,n,a)=>n.has(e)?Gy("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(gh(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Fe=(e,n,a)=>(gh(e,n,"access private method"),a);var Ku=(e,n,a,r)=>({set _(o){he(e,n,o,a)},get _(){return M(e,n,r)}});(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();function Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={exports:{}},to={};/** * @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 Yy;function IS(){if(Yy)return to;Yy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,o,u){var f=null;if(u!==void 0&&(f=""+u),o.key!==void 0&&(f=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:e,type:r,key:f,ref:o!==void 0?o:null,props:u}}return to.Fragment=n,to.jsx=a,to.jsxs=a,to}var $y;function qS(){return $y||($y=1,ph.exports=IS()),ph.exports}var c=qS(),yh={exports:{}},He={};/** * @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 Xy;function QS(){if(Xy)return He;Xy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function b(N){return N===null||typeof N!="object"?null:(N=v&&N[v]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,j={};function C(N,X,le){this.props=N,this.context=X,this.refs=j,this.updater=le||x}C.prototype.isReactComponent={},C.prototype.setState=function(N,X){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,X,"setState")},C.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=C.prototype;function z(N,X,le){this.props=N,this.context=X,this.refs=j,this.updater=le||x}var _=z.prototype=new k;_.constructor=z,S(_,C.prototype),_.isPureReactComponent=!0;var Z=Array.isArray,R={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ue(N,X,le,q,re,we){return le=we.ref,{$$typeof:e,type:N,key:X,ref:le!==void 0?le:null,props:we}}function se(N,X){return ue(N.type,X,void 0,void 0,void 0,N.props)}function Q(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function ne(N){var X={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(le){return X[le]})}var fe=/\/+/g;function ge(N,X){return typeof N=="object"&&N!==null&&N.key!=null?ne(""+N.key):X.toString(36)}function De(){}function ce(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(De,De):(N.status="pending",N.then(function(X){N.status==="pending"&&(N.status="fulfilled",N.value=X)},function(X){N.status==="pending"&&(N.status="rejected",N.reason=X)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function P(N,X,le,q,re){var we=typeof N;(we==="undefined"||we==="boolean")&&(N=null);var Re=!1;if(N===null)Re=!0;else switch(we){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(N.$$typeof){case e:case n:Re=!0;break;case y:return Re=N._init,P(Re(N._payload),X,le,q,re)}}if(Re)return re=re(N),Re=q===""?"."+ge(N,0):q,Z(re)?(le="",Re!=null&&(le=Re.replace(fe,"$&/")+"/"),P(re,X,le,"",function(ze){return ze})):re!=null&&(Q(re)&&(re=se(re,le+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(fe,"$&/")+"/")+Re)),X.push(re)),1;Re=0;var dt=q===""?".":q+":";if(Z(N))for(var Ve=0;Ve>>1,N=H[oe];if(0>>1;oeo(q,$))reo(we,q)?(H[oe]=we,H[re]=$,oe=re):(H[oe]=q,H[le]=$,oe=le);else if(reo(we,$))H[oe]=we,H[re]=$,oe=re;else break e}}return te}function o(H,te){var $=H.sortIndex-te.sortIndex;return $!==0?$:H.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();e.unstable_now=function(){return f.now()-m}}var p=[],g=[],y=1,v=null,b=3,x=!1,S=!1,j=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function _(H){for(var te=a(g);te!==null;){if(te.callback===null)r(g);else if(te.startTime<=H)r(g),te.sortIndex=te.expirationTime,n(p,te);else break;te=a(g)}}function Z(H){if(j=!1,_(H),!S)if(a(p)!==null)S=!0,ce();else{var te=a(g);te!==null&&P(Z,te.startTime-H)}}var R=!1,W=-1,ue=5,se=-1;function Q(){return!(e.unstable_now()-seH&&Q());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,b=v.priorityLevel;var N=oe(v.expirationTime<=H);if(H=e.unstable_now(),typeof N=="function"){v.callback=N,_(H),te=!0;break t}v===a(p)&&r(p),_(H)}else r(p);v=a(p)}if(v!==null)te=!0;else{var X=a(g);X!==null&&P(Z,X.startTime-H),te=!1}}break e}finally{v=null,b=$,x=!1}te=void 0}}finally{te?fe():R=!1}}}var fe;if(typeof z=="function")fe=function(){z(ne)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,De=ge.port2;ge.port1.onmessage=ne,fe=function(){De.postMessage(null)}}else fe=function(){C(ne,0)};function ce(){R||(R=!0,fe())}function P(H,te){W=C(function(){H(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_continueExecution=function(){S||x||(S=!0,ce())},e.unstable_forceFrameRate=function(H){0>H||125oe?(H.sortIndex=$,n(g,H),a(p)===null&&H===a(g)&&(j?(k(W),W=-1):j=!0,P(Z,$-oe))):(H.sortIndex=N,n(p,H),S||x||(S=!0,ce())),H},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(H){var te=b;return function(){var $=b;b=te;try{return H.apply(this,arguments)}finally{b=$}}}}(bh)),bh}var Jy;function YS(){return Jy||(Jy=1,wh.exports=GS()),wh.exports}var xh={exports:{}},Wt={};/** * @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 Wy;function $S(){if(Wy)return Wt;Wy=1;var e=zm();function n(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xh.exports=$S(),xh.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 tv;function XS(){if(tv)return no;tv=1;var e=YS(),n=zm(),a=Fw();function r(t){var i="https://react.dev/errors/"+t;if(1)":-1d||T[l]!==B[d]){var J=` `+T[l].replace(" at new "," at ");return t.displayName&&J.includes("")&&(J=J.replace("",t.displayName)),J}while(1<=l&&0<=d);break}}}finally{ce=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?De(s):""}function H(t){switch(t.tag){case 26:case 27:case 5:return De(t.type);case 16:return De("Lazy");case 13:return De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return t=P(t.type,!1),t;case 11:return t=P(t.type.render,!1),t;case 1:return t=P(t.type,!0),t;default:return""}}function te(t){try{var i="";do i+=H(t),t=t.return;while(t);return i}catch(s){return` Error generating stack: `+s.message+` `+s.stack}}function $(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function oe(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function N(t){if($(t)!==t)throw Error(r(188))}function X(t){var i=t.alternate;if(!i){if(i=$(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,l=i;;){var d=s.return;if(d===null)break;var h=d.alternate;if(h===null){if(l=d.return,l!==null){s=l;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===s)return N(d),t;if(h===l)return N(d),i;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=d,l=h;else{for(var w=!1,A=d.child;A;){if(A===s){w=!0,s=d,l=h;break}if(A===l){w=!0,l=d,s=h;break}A=A.sibling}if(!w){for(A=h.child;A;){if(A===s){w=!0,s=h,l=d;break}if(A===l){w=!0,l=h,s=d;break}A=A.sibling}if(!w)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:i}function le(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=le(t),i!==null)return i;t=t.sibling}return null}var q=Array.isArray,re=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,we={pending:!1,data:null,method:null,action:null},Re=[],dt=-1;function Ve(t){return{current:t}}function ze(t){0>dt||(t.current=Re[dt],Re[dt]=null,dt--)}function _e(t,i){dt++,Re[dt]=t.current,t.current=i}var bt=Ve(null),xn=Ve(null),Rt=Ve(null),Yr=Ve(null);function $r(t,i){switch(_e(Rt,i),_e(xn,t),_e(bt,null),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)&&(i=i.namespaceURI)?xy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=xy(t),i=Sy(t,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ze(bt),_e(bt,i)}function Oa(){ze(bt),ze(xn),ze(Rt)}function rl(t){t.memoizedState!==null&&_e(Yr,t);var i=bt.current,s=Sy(i,t.type);i!==s&&(_e(xn,t),_e(bt,s))}function Xr(t){xn.current===t&&(ze(bt),ze(xn)),Yr.current===t&&(ze(Yr),Kl._currentValue=we)}var sl=Object.prototype.hasOwnProperty,ll=e.unstable_scheduleCallback,ia=e.unstable_cancelCallback,tr=e.unstable_shouldYield,Uo=e.unstable_requestPaint,hn=e.unstable_now,ya=e.unstable_getCurrentPriorityLevel,zn=e.unstable_ImmediatePriority,ol=e.unstable_UserBlockingPriority,oi=e.unstable_NormalPriority,ud=e.unstable_LowPriority,ra=e.unstable_IdlePriority,Ho=e.log,Fo=e.unstable_setDisableYieldValue,ui=null,rn=null;function Po(t){if(rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(ui,t,void 0,(t.current.flags&128)===128)}catch{}}function Sn(t){if(typeof Ho=="function"&&Fo(t),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(ui,t)}catch{}}var Zt=Math.clz32?Math.clz32:Vo,ul=Math.log,cd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/cd|0)|0}var Kr=128,nr=4194304;function Ln(t){var i=t&42;if(i!==0)return i;switch(t&-t){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: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function _a(t,i){var s=t.pendingLanes;if(s===0)return 0;var l=0,d=t.suspendedLanes,h=t.pingedLanes,w=t.warmLanes;t=t.finishedLanes!==0;var A=s&134217727;return A!==0?(s=A&~d,s!==0?l=Ln(s):(h&=A,h!==0?l=Ln(h):t||(w=A&~w,w!==0&&(l=Ln(w))))):(A=s&~d,A!==0?l=Ln(A):h!==0?l=Ln(h):t||(w=s&~w,w!==0&&(l=Ln(w)))),l===0?0:i!==0&&i!==l&&(i&d)===0&&(d=l&-l,w=i&-i,d>=w||d===32&&(w&4194176)!==0)?i:l}function ar(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function dd(t,i){switch(t){case 1:case 2:case 4:case 8:return i+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function D(){var t=Kr;return Kr<<=1,(Kr&4194176)===0&&(Kr=128),t}function U(){var t=nr;return nr<<=1,(nr&62914560)===0&&(nr=4194304),t}function I(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function ie(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function de(t,i,s,l,d,h){var w=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var A=t.entanglements,T=t.expirationTimes,B=t.hiddenUpdates;for(s=w&~s;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sr=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]*$"),pt={},La={};function Io(t){return sl.call(La,t)?!0:sl.call(pt,t)?!1:sr.test(t)?La[t]=!0:(pt[t]=!0,!1)}function Zr(t,i,s){if(Io(i))if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+s)}}function qo(t,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+s)}}function Ua(t,i,s,l){if(l===null)t.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(i,s,""+l)}}function Fn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Cg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function U2(t){var i=Cg(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),l=""+t[i];if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,h=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return d.call(this)},set:function(w){l=""+w,h.call(this,w)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Qo(t){t._valueTracker||(t._valueTracker=U2(t))}function Eg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Cg(t)?t.checked?"true":"false":t.value),t=l,t!==s?(i.setValue(t),!0):!1}function Go(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var H2=/[\n"\\]/g;function Pn(t){return t.replace(H2,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function fd(t,i,s,l,d,h,w,A){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),i!=null?w==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+Fn(i)):t.value!==""+Fn(i)&&(t.value=""+Fn(i)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),i!=null?hd(t,w,Fn(i)):s!=null?hd(t,w,Fn(s)):l!=null&&t.removeAttribute("value"),d==null&&h!=null&&(t.defaultChecked=!!h),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+Fn(A):t.removeAttribute("name")}function jg(t,i,s,l,d,h,w,A){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),i!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||i!=null))return;s=s!=null?""+Fn(s):"",i=i!=null?""+Fn(i):s,A||i===t.value||(t.value=i),t.defaultValue=i}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=A?t.checked:!!l,t.defaultChecked=!!l,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w)}function hd(t,i,s){i==="number"&&Go(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function Jr(t,i,s,l){if(t=t.options,i){i={};for(var d=0;d=ml),Hg=" ",Fg=!1;function Pg(t,i){switch(t){case"keyup":return h1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ns=!1;function g1(t,i){switch(t){case"compositionend":return Vg(i);case"keypress":return i.which!==32?null:(Fg=!0,Hg);case"textInput":return t=i.data,t===Hg&&Fg?null:t;default:return null}}function p1(t,i){if(ns)return t==="compositionend"||!Cd&&Pg(t,i)?(t=Og(),$o=wd=ci=null,ns=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:s,offset:i-t};t=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Kg(s)}}function Jg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Wg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=Go(t.document);i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=Go(t.document)}return i}function Rd(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function C1(t,i){var s=Wg(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Jg(i.ownerDocument.documentElement,i)){if(l!==null&&Rd(i)){if(t=l.start,s=l.end,s===void 0&&(s=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(s,i.value.length);else if(s=(t=i.ownerDocument||document)&&t.defaultView||window,s.getSelection){s=s.getSelection();var d=i.textContent.length,h=Math.min(l.start,d);l=l.end===void 0?h:Math.min(l.end,d),!s.extend&&h>l&&(d=l,l=h,h=d),d=Zg(i,h);var w=Zg(i,l);d&&w&&(s.rangeCount!==1||s.anchorNode!==d.node||s.anchorOffset!==d.offset||s.focusNode!==w.node||s.focusOffset!==w.offset)&&(t=t.createRange(),t.setStart(d.node,d.offset),s.removeAllRanges(),h>l?(s.addRange(t),s.extend(w.node,w.offset)):(t.setEnd(w.node,w.offset),s.addRange(t)))}}for(t=[],s=i;s=s.parentNode;)s.nodeType===1&&t.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,as=null,Nd=null,vl=null,Td=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Td||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Rd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vl&&yl(vl,l)||(vl=l,l=Bu(Nd,"onSelect"),0>=w,d-=w,Ha=1<<32-Zt(i)+d|s<Te?(Pt=Ae,Ae=null):Pt=Ae.sibling;var Ze=V(L,Ae,F[Te],ee);if(Ze===null){Ae===null&&(Ae=Pt);break}t&&Ae&&Ze.alternate===null&&i(L,Ae),O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze,Ae=Pt}if(Te===F.length)return s(L,Ae),Ke&&dr(L,Te),ve;if(Ae===null){for(;TeTe?(Pt=Ae,Ae=null):Pt=Ae.sibling;var ki=V(L,Ae,Ze.value,ee);if(ki===null){Ae===null&&(Ae=Pt);break}t&&Ae&&ki.alternate===null&&i(L,Ae),O=h(ki,O,Te),Ie===null?ve=ki:Ie.sibling=ki,Ie=ki,Ae=Pt}if(Ze.done)return s(L,Ae),Ke&&dr(L,Te),ve;if(Ae===null){for(;!Ze.done;Te++,Ze=F.next())Ze=ae(L,Ze.value,ee),Ze!==null&&(O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze);return Ke&&dr(L,Te),ve}for(Ae=l(Ae);!Ze.done;Te++,Ze=F.next())Ze=K(Ae,L,Te,Ze.value,ee),Ze!==null&&(t&&Ze.alternate!==null&&Ae.delete(Ze.key===null?Te:Ze.key),O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze);return t&&Ae.forEach(function(VS){return i(L,VS)}),Ke&&dr(L,Te),ve}function Et(L,O,F,ee){if(typeof F=="object"&&F!==null&&F.type===p&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case f:e:{for(var ve=F.key;O!==null;){if(O.key===ve){if(ve=F.type,ve===p){if(O.tag===7){s(L,O.sibling),ee=d(O,F.props.children),ee.return=L,L=ee;break e}}else if(O.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&yp(ve)===O.type){s(L,O.sibling),ee=d(O,F.props),El(ee,F),ee.return=L,L=ee;break e}s(L,O);break}else i(L,O);O=O.sibling}F.type===p?(ee=Sr(F.props.children,L.mode,ee,F.key),ee.return=L,L=ee):(ee=Eu(F.type,F.key,F.props,null,L.mode,ee),El(ee,F),ee.return=L,L=ee)}return w(L);case m:e:{for(ve=F.key;O!==null;){if(O.key===ve)if(O.tag===4&&O.stateNode.containerInfo===F.containerInfo&&O.stateNode.implementation===F.implementation){s(L,O.sibling),ee=d(O,F.children||[]),ee.return=L,L=ee;break e}else{s(L,O);break}else i(L,O);O=O.sibling}ee=Df(F,L.mode,ee),ee.return=L,L=ee}return w(L);case z:return ve=F._init,F=ve(F._payload),Et(L,O,F,ee)}if(q(F))return xe(L,O,F,ee);if(W(F)){if(ve=W(F),typeof ve!="function")throw Error(r(150));return F=ve.call(F),Le(L,O,F,ee)}if(typeof F.then=="function")return Et(L,O,su(F),ee);if(F.$$typeof===x)return Et(L,O,Su(L,F),ee);lu(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,O!==null&&O.tag===6?(s(L,O.sibling),ee=d(O,F),ee.return=L,L=ee):(s(L,O),ee=Mf(F,L.mode,ee),ee.return=L,L=ee),w(L)):s(L,O)}return function(L,O,F,ee){try{Cl=0;var ve=Et(L,O,F,ee);return us=null,ve}catch(Ae){if(Ae===Sl)throw Ae;var Ie=Xn(29,Ae,null,L.mode);return Ie.lanes=ee,Ie.return=L,Ie}finally{}}}var hr=vp(!0),wp=vp(!1),cs=Ve(null),ou=Ve(0);function bp(t,i){t=Za,_e(ou,t),_e(cs,i),Za=t|i.baseLanes}function Ld(){_e(ou,Za),_e(cs,cs.current)}function Ud(){Za=ou.current,ze(cs),ze(ou)}var Gn=Ve(null),wa=null;function fi(t){var i=t.alternate;_e(zt,zt.current&1),_e(Gn,t),wa===null&&(i===null||cs.current!==null||i.memoizedState!==null)&&(wa=t)}function xp(t){if(t.tag===22){if(_e(zt,zt.current),_e(Gn,t),wa===null){var i=t.alternate;i!==null&&i.memoizedState!==null&&(wa=t)}}else hi()}function hi(){_e(zt,zt.current),_e(Gn,Gn.current)}function Pa(t){ze(Gn),wa===t&&(wa=null),ze(zt)}var zt=Ve(0);function uu(t){for(var i=t;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var T1=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(s,l){t.push(l)}};this.abort=function(){i.aborted=!0,t.forEach(function(s){return s()})}},k1=e.unstable_scheduleCallback,M1=e.unstable_NormalPriority,Lt={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hd(){return{controller:new T1,data:new Map,refCount:0}}function jl(t){t.refCount--,t.refCount===0&&k1(M1,function(){t.controller.abort()})}var Rl=null,Fd=0,ds=0,fs=null;function D1(t,i){if(Rl===null){var s=Rl=[];Fd=0,ds=Yf(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fd++,i.then(Sp,Sp),i}function Sp(){if(--Fd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;ih?h:8;var w=Q.T,A={};Q.T=A,af(t,!1,i,s);try{var T=d(),B=Q.S;if(B!==null&&B(A,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var J=O1(T,l);kl(t,i,J,Rn(t))}else kl(t,i,l,Rn(t))}catch(ae){kl(t,i,{then:function(){},status:"rejected",reason:ae},Rn())}finally{re.p=h,Q.T=w}}function U1(){}function tf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var d=Wp(t).queue;Jp(t,d,i,we,s===null?U1:function(){return e0(t),s(l)})}function Wp(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:we,baseState:we,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:we},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:s},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function e0(t){var i=Wp(t).next.queue;kl(t,i,{},Rn())}function nf(){return Jt(Kl)}function t0(){return _t().memoizedState}function n0(){return _t().memoizedState}function H1(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var s=Rn();t=vi(s);var l=wi(i,t,s);l!==null&&(ln(l,i,s),Ol(l,i,s)),i={cache:Hd()},t.payload=i;return}i=i.return}}function F1(t,i,s){var l=Rn();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},vu(t)?i0(i,s):(s=Dd(t,i,s,l),s!==null&&(ln(s,t,l),r0(s,i,l)))}function a0(t,i,s){var l=Rn();kl(t,i,s,l)}function kl(t,i,s,l){var d={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(vu(t))i0(i,d);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var w=i.lastRenderedState,A=h(w,s);if(d.hasEagerState=!0,d.eagerState=A,An(A,w))return tu(t,i,d,0),lt===null&&eu(),!1}catch{}finally{}if(s=Dd(t,i,d,l),s!==null)return ln(s,t,l),r0(s,i,l),!0}return!1}function af(t,i,s,l){if(l={lane:2,revertLane:Yf(),action:l,hasEagerState:!1,eagerState:null,next:null},vu(t)){if(i)throw Error(r(479))}else i=Dd(t,s,l,2),i!==null&&ln(i,t,2)}function vu(t){var i=t.alternate;return t===Pe||i!==null&&i===Pe}function i0(t,i){hs=du=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function r0(t,i,s){if((s&4194176)!==0){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,Ee(t,s)}}var ba={readContext:Jt,use:mu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt};ba.useCacheRefresh=Nt,ba.useMemoCache=Nt,ba.useHostTransitionStatus=Nt,ba.useFormState=Nt,ba.useActionState=Nt,ba.useOptimistic=Nt;var pr={readContext:Jt,use:mu,useCallback:function(t,i){return pn().memoizedState=[t,i===void 0?null:i],t},useContext:Jt,useEffect:qp,useImperativeHandle:function(t,i,s){s=s!=null?s.concat([t]):null,pu(4194308,4,Yp.bind(null,i,t),s)},useLayoutEffect:function(t,i){return pu(4194308,4,t,i)},useInsertionEffect:function(t,i){pu(4,2,t,i)},useMemo:function(t,i){var s=pn();i=i===void 0?null:i;var l=t();if(gr){Sn(!0);try{t()}finally{Sn(!1)}}return s.memoizedState=[l,i],l},useReducer:function(t,i,s){var l=pn();if(s!==void 0){var d=s(i);if(gr){Sn(!0);try{s(i)}finally{Sn(!1)}}}else d=i;return l.memoizedState=l.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},l.queue=t,t=t.dispatch=F1.bind(null,Pe,t),[l.memoizedState,t]},useRef:function(t){var i=pn();return t={current:t},i.memoizedState=t},useState:function(t){t=Kd(t);var i=t.queue,s=a0.bind(null,Pe,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Wd,useDeferredValue:function(t,i){var s=pn();return ef(s,t,i)},useTransition:function(){var t=Kd(!1);return t=Jp.bind(null,Pe,t.queue,!0,!1),pn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,s){var l=Pe,d=pn();if(Ke){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),lt===null)throw Error(r(349));(Xe&60)!==0||Np(l,i,s)}d.memoizedState=s;var h={value:s,getSnapshot:i};return d.queue=h,qp(kp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,Tp.bind(null,l,h,s,i),{destroy:void 0},null),s},useId:function(){var t=pn(),i=lt.identifierPrefix;if(Ke){var s=Fa,l=Ha;s=(l&~(1<<32-Zt(l)-1)).toString(32)+s,i=":"+i+"R"+s,s=fu++,0 title"))),Xt(h,l,s),h[ye]=t,st(h),l=h;break e;case"link":var w=Dy("link","href",d).get(l+(s.href||""));if(w){for(var A=0;A<\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}t[ye]=i,t[Oe]=l;e:for(d=i.child;d!==null;){if(d.tag===5||d.tag===6)t.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i.stateNode=t;e:switch(Xt(t,s,l),s){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Xa(i)}}return yt(i),i.flags&=-16777217,null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==l&&Xa(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(r(166));if(t=Rt.current,wl(i)){if(t=i.stateNode,s=i.memoizedProps,l=null,d=sn,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}t[ye]=i,t=!!(t.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||by(t.nodeValue,s)),t||fr(i)}else t=Lu(t).createTextNode(l),t[ye]=i,i.stateNode=t}return yt(i),null;case 13:if(l=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=wl(i),l!==null&&l.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[ye]=i}else bl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;yt(i),d=!1}else la!==null&&(Ff(la),la=null),d=!0;if(!d)return i.flags&256?(Pa(i),i):(Pa(i),null)}if(Pa(i),(i.flags&128)!==0)return i.lanes=s,i;if(s=l!==null,t=t!==null&&t.memoizedState!==null,s){l=i.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool);var h=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048)}return s!==t&&s&&(i.child.flags|=8192),ju(i,i.updateQueue),yt(i),null;case 4:return Oa(),t===null&&Zf(i.stateNode.containerInfo),yt(i),null;case 10:return Qa(i.type),yt(i),null;case 19:if(ze(zt),d=i.memoizedState,d===null)return yt(i),null;if(l=(i.flags&128)!==0,h=d.rendering,h===null)if(l)Fl(d,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(h=uu(t),h!==null){for(i.flags|=128,Fl(d,!1),t=h.updateQueue,i.updateQueue=t,ju(i,t),i.subtreeFlags=0,t=s,s=i.child;s!==null;)$0(s,t),s=s.sibling;return _e(zt,zt.current&1|2),i.child}t=t.sibling}d.tail!==null&&hn()>Ru&&(i.flags|=128,l=!0,Fl(d,!1),i.lanes=4194304)}else{if(!l)if(t=uu(h),t!==null){if(i.flags|=128,l=!0,t=t.updateQueue,i.updateQueue=t,ju(i,t),Fl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!h.alternate&&!Ke)return yt(i),null}else 2*hn()-d.renderingStartTime>Ru&&s!==536870912&&(i.flags|=128,l=!0,Fl(d,!1),i.lanes=4194304);d.isBackwards?(h.sibling=i.child,i.child=h):(t=d.last,t!==null?t.sibling=h:i.child=h,d.last=h)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=hn(),i.sibling=null,t=zt.current,_e(zt,l?t&1|2:t&1),i):(yt(i),null);case 22:case 23:return Pa(i),Ud(),l=i.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(s&536870912)!==0&&(i.flags&128)===0&&(yt(i),i.subtreeFlags&6&&(i.flags|=8192)):yt(i),s=i.updateQueue,s!==null&&ju(i,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048),t!==null&&ze(mr),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Qa(Lt),yt(i),null;case 25:return null}throw Error(r(156,i.tag))}function Y1(t,i){switch(_d(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Qa(Lt),Oa(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return Xr(i),null;case 13:if(Pa(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));bl()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return ze(zt),null;case 4:return Oa(),null;case 10:return Qa(i.type),null;case 22:case 23:return Pa(i),Ud(),t!==null&&ze(mr),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return Qa(Lt),null;case 25:return null;default:return null}}function Z0(t,i){switch(_d(i),i.tag){case 3:Qa(Lt),Oa();break;case 26:case 27:case 5:Xr(i);break;case 4:Oa();break;case 13:Pa(i);break;case 19:ze(zt);break;case 10:Qa(i.type);break;case 22:case 23:Pa(i),Ud(),t!==null&&ze(mr);break;case 24:Qa(Lt)}}var $1={getCacheForType:function(t){var i=Jt(Lt),s=i.data.get(t);return s===void 0&&(s=t(),i.data.set(t,s)),s}},X1=typeof WeakMap=="function"?WeakMap:Map,vt=0,lt=null,qe=null,Xe=0,ot=0,jn=null,Ka=!1,ws=!1,Of=!1,Za=0,Ct=0,Ci=0,Ar=0,_f=0,Kn=0,bs=0,Pl=null,xa=null,Bf=!1,zf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Lf=0,Uf=null,Il=0,Hf=null;function Rn(){if((vt&2)!==0&&Xe!==0)return Xe&-Xe;if(Q.T!==null){var t=ds;return t!==0?t:Yf()}return Se()}function J0(){Kn===0&&(Kn=(Xe&536870912)===0||Ke?D():536870912);var t=Gn.current;return t!==null&&(t.flags|=32),Kn}function ln(t,i,s){(t===lt&&ot===2||t.cancelPendingCommit!==null)&&(xs(t,0),Ja(t,Xe,Kn,!1)),ie(t,s),((vt&2)===0||t!==lt)&&(t===lt&&((vt&2)===0&&(Ar|=s),Ct===4&&Ja(t,Xe,Kn,!1)),Sa(t))}function W0(t,i,s){if((vt&6)!==0)throw Error(r(327));var l=!s&&(i&60)===0&&(i&t.expiredLanes)===0||ar(t,i),d=l?J1(t,i):If(t,i,!0),h=l;do{if(d===0){ws&&!l&&Ja(t,i,0,!1);break}else if(d===6)Ja(t,i,0,!Ka);else{if(s=t.current.alternate,h&&!K1(s)){d=If(t,i,!1),h=!1;continue}if(d===2){if(h=i,t.errorRecoveryDisabledLanes&h)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var A=t;d=Pl;var T=A.current.memoizedState.isDehydrated;if(T&&(xs(A,w).flags|=256),w=If(A,w,!1),w!==2){if(Of&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,d=4;break e}h=xa,xa=d,h!==null&&Ff(h)}d=w}if(h=!1,d!==2)continue}}if(d===1){xs(t,0),Ja(t,i,0,!0);break}e:{switch(l=t,d){case 0:case 1:throw Error(r(345));case 4:if((i&4194176)===i){Ja(l,i,Kn,!Ka);break e}break;case 2:xa=null;break;case 3:case 5:break;default:throw Error(r(329))}if(l.finishedWork=s,l.finishedLanes=i,(i&62914560)===i&&(h=zf+300-hn(),10s?32:s,Q.T=null,Cr===null)var h=!1;else{s=Uf,Uf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,G0(w.current),I0(w,w.current,A,s),vt=T,ql(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(ui,w)}catch{}h=!0}return h}finally{re.p=d,Q.T=l,oy(t,i)}}return!1}function uy(t,i,s){i=In(s,i),i=lf(t.stateNode,i,2),t=wi(t,i,2),t!==null&&(ie(t,2),Sa(t))}function rt(t,i,s){if(t.tag===3)uy(t,t,s);else for(;i!==null;){if(i.tag===3){uy(i,t,s);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ei===null||!Ei.has(l))){t=In(s,t),s=f0(2),l=wi(i,s,2),l!==null&&(h0(s,l,i,t),ie(l,2),Sa(l));break}}i=i.return}}function qf(t,i,s){var l=t.pingCache;if(l===null){l=t.pingCache=new X1;var d=new Set;l.set(i,d)}else d=l.get(i),d===void 0&&(d=new Set,l.set(i,d));d.has(s)||(Of=!0,d.add(s),t=tS.bind(null,t,i,s),i.then(t,t))}function tS(t,i,s){var l=t.pingCache;l!==null&&l.delete(i),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,lt===t&&(Xe&s)===s&&(Ct===4||Ct===3&&(Xe&62914560)===Xe&&300>hn()-zf?(vt&2)===0&&xs(t,0):_f|=s,bs===Xe&&(bs=0)),Sa(t)}function cy(t,i){i===0&&(i=U()),t=di(t,i),t!==null&&(ie(t,i),Sa(t))}function nS(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),cy(t,s)}function aS(t,i){var s=0;switch(t.tag){case 13:var l=t.stateNode,d=t.memoizedState;d!==null&&(s=d.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(i),cy(t,s)}function iS(t,i){return ll(t,i)}var Du=null,Cs=null,Qf=!1,Ou=!1,Gf=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Qf||(Qf=!0,sS(rS))}function ql(t,i){if(!Gf&&Ou){Gf=!0;do for(var s=!1,l=Du;l!==null;){if(t!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var w=l.suspendedLanes,A=l.pingedLanes;h=(1<<31-Zt(42|t)+1)-1,h&=d&~(w&~A),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(s=!0,hy(l,h))}else h=Xe,h=_a(l,l===lt?h:0),(h&3)===0||ar(l,h)||(s=!0,hy(l,h));l=l.next}while(s);Gf=!1}}function rS(){Ou=Qf=!1;var t=0;Er!==0&&(mS()&&(t=Er),Er=0);for(var i=hn(),s=null,l=Du;l!==null;){var d=l.next,h=dy(l,i);h===0?(l.next=null,s===null?Du=d:s.next=d,d===null&&(Cs=s)):(s=l,(t!==0||(h&3)!==0)&&(Ou=!0)),l=d}ql(t)}function dy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,d=t.expirationTimes,h=t.pendingLanes&-62914561;0"u"?null:document;function Ny(t,i,s){var l=js;if(l&&typeof i=="string"&&i){var d=Pn(i);d='link[rel="'+t+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),Ry.has(d)||(Ry.add(d),t={rel:t,crossOrigin:s,href:i},l.querySelector(d)===null&&(i=l.createElement("link"),Xt(i,"link",t),st(i),l.head.appendChild(i)))}}function SS(t){Wa.D(t),Ny("dns-prefetch",t,null)}function AS(t,i){Wa.C(t,i),Ny("preconnect",t,i)}function CS(t,i,s){Wa.L(t,i,s);var l=js;if(l&&t&&i){var d='link[rel="preload"][as="'+Pn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+Pn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+Pn(s.imageSizes)+'"]')):d+='[href="'+Pn(t)+'"]';var h=d;switch(i){case"style":h=Rs(t);break;case"script":h=Ns(t)}Zn.has(h)||(t=ne({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:t,as:i},s),Zn.set(h,t),l.querySelector(d)!==null||i==="style"&&l.querySelector(Yl(h))||i==="script"&&l.querySelector($l(h))||(i=l.createElement("link"),Xt(i,"link",t),st(i),l.head.appendChild(i)))}}function ES(t,i){Wa.m(t,i);var s=js;if(s&&t){var l=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+Pn(l)+'"][href="'+Pn(t)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ns(t)}if(!Zn.has(h)&&(t=ne({rel:"modulepreload",href:t},i),Zn.set(h,t),s.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector($l(h)))return}l=s.createElement("link"),Xt(l,"link",t),st(l),s.head.appendChild(l)}}}function jS(t,i,s){Wa.S(t,i,s);var l=js;if(l&&t){var d=Hn(l).hoistableStyles,h=Rs(t);i=i||"default";var w=d.get(h);if(!w){var A={loading:0,preload:null};if(w=l.querySelector(Yl(h)))A.loading=5;else{t=ne({rel:"stylesheet",href:t,"data-precedence":i},s),(s=Zn.get(h))&&sh(t,s);var T=w=l.createElement("link");st(T),Xt(T,"link",t),T._p=new Promise(function(B,J){T.onload=B,T.onerror=J}),T.addEventListener("load",function(){A.loading|=1}),T.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Hu(w,i,l)}w={type:"stylesheet",instance:w,count:1,state:A},d.set(h,w)}}}function RS(t,i){Wa.X(t,i);var s=js;if(s&&t){var l=Hn(s).hoistableScripts,d=Ns(t),h=l.get(d);h||(h=s.querySelector($l(d)),h||(t=ne({src:t,async:!0},i),(i=Zn.get(d))&&lh(t,i),h=s.createElement("script"),st(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function NS(t,i){Wa.M(t,i);var s=js;if(s&&t){var l=Hn(s).hoistableScripts,d=Ns(t),h=l.get(d);h||(h=s.querySelector($l(d)),h||(t=ne({src:t,async:!0,type:"module"},i),(i=Zn.get(d))&&lh(t,i),h=s.createElement("script"),st(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function Ty(t,i,s,l){var d=(d=Rt.current)?Uu(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Rs(s.href),s=Hn(d).hoistableStyles,l=s.get(i),l||(l={type:"style",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=Rs(s.href);var h=Hn(d).hoistableStyles,w=h.get(t);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,w),(h=d.querySelector(Yl(t)))&&!h._p&&(w.instance=h,w.state.loading=5),Zn.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Zn.set(t,s),h||TS(d,t,s,w.state))),i&&l===null)throw Error(r(528,""));return w}if(i&&l!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ns(s),s=Hn(d).hoistableScripts,l=s.get(i),l||(l={type:"script",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Rs(t){return'href="'+Pn(t)+'"'}function Yl(t){return'link[rel="stylesheet"]['+t+"]"}function ky(t){return ne({},t,{"data-precedence":t.precedence,precedence:null})}function TS(t,i,s,l){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=t.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Xt(i,"link",s),st(i),t.head.appendChild(i))}function Ns(t){return'[src="'+Pn(t)+'"]'}function $l(t){return"script[async]"+t}function My(t,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=t.querySelector('style[data-href~="'+Pn(s.href)+'"]');if(l)return i.instance=l,st(l),l;var d=ne({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),st(l),Xt(l,"style",d),Hu(l,s.precedence,t),i.instance=l;case"stylesheet":d=Rs(s.href);var h=t.querySelector(Yl(d));if(h)return i.state.loading|=4,i.instance=h,st(h),h;l=ky(s),(d=Zn.get(d))&&sh(l,d),h=(t.ownerDocument||t).createElement("link"),st(h);var w=h;return w._p=new Promise(function(A,T){w.onload=A,w.onerror=T}),Xt(h,"link",l),i.state.loading|=4,Hu(h,s.precedence,t),i.instance=h;case"script":return h=Ns(s.src),(d=t.querySelector($l(h)))?(i.instance=d,st(d),d):(l=s,(d=Zn.get(h))&&(l=ne({},s),lh(l,d)),t=t.ownerDocument||t,d=t.createElement("script"),st(d),Xt(d,"link",l),t.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,Hu(l,s.precedence,t));return i.instance}function Hu(t,i,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,h=d,w=0;w title"):null)}function kS(t,i,s){if(s===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return t=i.disabled,typeof i.precedence=="string"&&t==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function _y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Xl=null;function MS(){}function DS(t,i,s){if(Xl===null)throw Error(r(475));var l=Xl;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Rs(s.href),h=t.querySelector(Yl(d));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Pu.bind(l),t.then(l,l)),i.state.loading|=4,i.instance=h,st(h);return}h=t.ownerDocument||t,s=ky(s),(d=Zn.get(d))&&sh(s,d),h=h.createElement("link"),st(h);var w=h;w._p=new Promise(function(A,T){w.onload=A,w.onerror=T}),Xt(h,"link",s),i.instance=h}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(l.count++,i=Pu.bind(l),t.addEventListener("load",i),t.addEventListener("error",i))}}function OS(){if(Xl===null)throw Error(r(475));var t=Xl;return t.stylesheets&&t.count===0&&oh(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=XS(),vh.exports}var ZS=KS(),ao={},av;function JS(){if(av)return ao;av=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.parse=f,ao.serialize=g;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,u=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function f(b,x){const S=new u,j=b.length;if(j<2)return S;const C=(x==null?void 0:x.decode)||y;let k=0;do{const z=b.indexOf("=",k);if(z===-1)break;const _=b.indexOf(";",k),Z=_===-1?j:_;if(z>Z){k=b.lastIndexOf(";",z-1)+1;continue}const R=m(b,k,z),W=p(b,z,R),ue=b.slice(R,W);if(S[ue]===void 0){let se=m(b,z+1,Z),Q=p(b,Z,se);const ne=C(b.slice(se,Q));S[ue]=ne}k=Z+1}while(kS;){const j=b.charCodeAt(--x);if(j!==32&&j!==9)return x+1}return S}function g(b,x,S){const j=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=j(x);if(!n.test(C))throw new TypeError(`argument val is invalid: ${x}`);let k=b+"="+C;if(!S)return k;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);k+="; Max-Age="+S.maxAge}if(S.domain){if(!a.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);k+="; Domain="+S.domain}if(S.path){if(!r.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);k+="; Path="+S.path}if(S.expires){if(!v(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);k+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(k+="; HttpOnly"),S.secure&&(k+="; Secure"),S.partitioned&&(k+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return k}function y(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function v(b){return o.call(b)==="[object Date]"}return ao}JS();/** * react-router v7.3.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Pw=e=>{throw TypeError(e)},WS=(e,n,a)=>n.has(e)||Pw("Cannot "+a),Sh=(e,n,a)=>(WS(e,n,"read from private field"),a?a.call(e):n.get(e)),eA=(e,n,a)=>n.has(e)?Pw("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),iv="popstate";function tA(e={}){function n(r,o){let{pathname:u,search:f,hash:m}=r.location;return go("",{pathname:u,search:f,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(r,o){return typeof o=="string"?o:Xi(o)}return aA(n,a,null,e)}function Qe(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function It(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function nA(){return Math.random().toString(36).substring(2,10)}function rv(e,n){return{usr:e.state,key:e.key,idx:n}}function go(e,n,a=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ji(n):n,state:a,key:n&&n.key||r||nA()}}function Xi({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Ji(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function aA(e,n,a,r={}){let{window:o=document.defaultView,v5Compat:u=!1}=r,f=o.history,m="POP",p=null,g=y();g==null&&(g=0,f.replaceState({...f.state,idx:g},""));function y(){return(f.state||{idx:null}).idx}function v(){m="POP";let C=y(),k=C==null?null:C-g;g=C,p&&p({action:m,location:j.location,delta:k})}function b(C,k){m="PUSH";let z=go(j.location,C,k);g=y()+1;let _=rv(z,g),Z=j.createHref(z);try{f.pushState(_,"",Z)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(Z)}u&&p&&p({action:m,location:j.location,delta:1})}function x(C,k){m="REPLACE";let z=go(j.location,C,k);g=y();let _=rv(z,g),Z=j.createHref(z);f.replaceState(_,"",Z),u&&p&&p({action:m,location:j.location,delta:0})}function S(C){let k=o.location.origin!=="null"?o.location.origin:o.location.href,z=typeof C=="string"?C:Xi(C);return z=z.replace(/ $/,"%20"),Qe(k,`No window.location.(origin|href) available to create URL for href: ${z}`),new URL(z,k)}let j={get action(){return m},get location(){return e(o,f)},listen(C){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(iv,v),p=C,()=>{o.removeEventListener(iv,v),p=null}},createHref(C){return n(o,C)},createURL:S,encodeLocation(C){let k=S(C);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:b,replace:x,go(C){return f.go(C)}};return j}var co,sv=class{constructor(e){if(eA(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Sh(this,co).has(e))return Sh(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Sh(this,co).set(e,n)}};co=new WeakMap;var iA=new Set(["lazy","caseSensitive","path","id","index","children"]);function rA(e){return e.index===!0}function gc(e,n,a=[],r={}){return e.map((o,u)=>{let f=[...a,String(u)],m=typeof o.id=="string"?o.id:f.join("-");if(Qe(o.index!==!0||!o.children,"Cannot specify children on an index route"),Qe(!r[m],`Found a route id collision on id "${m}". Route id's must be globally unique within Data Router usages`),rA(o)){let p={...o,...n(o),id:m};return r[m]=p,p}else{let p={...o,...n(o),id:m,children:void 0};return r[m]=p,o.children&&(p.children=gc(o.children,n,f,r)),p}})}function Oi(e,n,a="/"){return rc(e,n,a,!1)}function rc(e,n,a,r){let o=typeof n=="string"?Ji(n):n,u=ta(o.pathname||"/",a);if(u==null)return null;let f=Vw(e);lA(f);let m=null;for(let p=0;m==null&&p{let p={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};p.relativePath.startsWith("/")&&(Qe(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length));let g=Ta([r,p.relativePath]),y=a.concat(p);u.children&&u.children.length>0&&(Qe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Vw(u.children,n,y,g)),!(u.path==null&&!u.index)&&n.push({path:g,score:mA(g,u.index),routesMeta:y})};return e.forEach((u,f)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))o(u,f);else for(let p of Iw(u.path))o(u,f,p)}),n}function Iw(e){let n=e.split("/");if(n.length===0)return[];let[a,...r]=n,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(r.length===0)return o?[u,""]:[u];let f=Iw(r.join("/")),m=[];return m.push(...f.map(p=>p===""?u:[u,p].join("/"))),o&&m.push(...f),m.map(p=>e.startsWith("/")&&p===""?"/":p)}function lA(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:gA(n.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var oA=/^:[\w-]+$/,uA=3,cA=2,dA=1,fA=10,hA=-2,lv=e=>e==="*";function mA(e,n){let a=e.split("/"),r=a.length;return a.some(lv)&&(r+=hA),n&&(r+=cA),a.filter(o=>!lv(o)).reduce((o,u)=>o+(oA.test(u)?uA:u===""?dA:fA),r)}function gA(e,n){return e.length===n.length&&e.slice(0,-1).every((r,o)=>r===n[o])?e[e.length-1]-n[n.length-1]:0}function pA(e,n,a=!1){let{routesMeta:r}=e,o={},u="/",f=[];for(let m=0;m{if(y==="*"){let S=m[b]||"";f=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const x=m[b];return v&&!x?g[y]=void 0:g[y]=(x||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:f,pattern:e}}function yA(e,n=!1,a=!0){It(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,p)=>(r.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function vA(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return It(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function ta(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}function wA(e,n="/"){let{pathname:a,search:r="",hash:o=""}=typeof e=="string"?Ji(e):e;return{pathname:a?a.startsWith("/")?a:bA(a,n):n,search:SA(r),hash:AA(o)}}function bA(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Ah(e,n,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function qw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function zc(e){let n=qw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Lc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Qe(!o.pathname||!o.pathname.includes("?"),Ah("?","pathname","search",o)),Qe(!o.pathname||!o.pathname.includes("#"),Ah("#","pathname","hash",o)),Qe(!o.search||!o.search.includes("#"),Ah("#","search","hash",o)));let u=e===""||o.pathname==="",f=u?"/":o.pathname,m;if(f==null)m=a;else{let v=n.length-1;if(!r&&f.startsWith("..")){let b=f.split("/");for(;b[0]==="..";)b.shift(),v-=1;o.pathname=b.join("/")}m=v>=0?n[v]:"/"}let p=wA(o,m),g=f&&f!=="/"&&f.endsWith("/"),y=(u||f===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Ta=e=>e.join("/").replace(/\/\/+/g,"/"),xA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,yc=class{constructor(e,n,a,r=!1){this.status=e,this.statusText=n||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function po(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Qw=["POST","PUT","PATCH","DELETE"],CA=new Set(Qw),EA=["GET",...Qw],jA=new Set(EA),RA=new Set([301,302,303,307,308]),NA=new Set([307,308]),Ch={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},TA={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},io={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gw="remix-router-transitions",Yw=Symbol("ResetLoaderData");function MA(e){const n=e.window?e.window:typeof window<"u"?window:void 0,a=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";Qe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.mapRouteProperties||kA,o={},u=gc(e.routes,r,void 0,o),f,m=e.basename||"/",p=e.dataStrategy||zA,g={unstable_middleware:!1,...e.future},y=null,v=new Set,b=null,x=null,S=null,j=e.hydrationData!=null,C=Oi(u,e.history.location,m),k=!1,z=null;if(C==null&&!e.patchRoutesOnNavigation){let D=Wn(404,{pathname:e.history.location.pathname}),{matches:U,route:I}=wv(u);C=U,z={[I.id]:D}}C&&!e.hydrationData&&Ln(C,u,e.history.location.pathname).active&&(C=null);let _;if(C)if(C.some(D=>D.route.lazy))_=!1;else if(!C.some(D=>D.route.loader))_=!0;else{let D=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null;if(U){let I=C.findIndex(ie=>U[ie.route.id]!==void 0);_=C.slice(0,I+1).every(ie=>!Wh(ie.route,D,U))}else _=C.every(I=>!Wh(I.route,D,U))}else{_=!1,C=[];let D=Ln(null,u,e.history.location.pathname);D.active&&D.matches&&(k=!0,C=D.matches)}let Z,R={historyAction:e.history.action,location:e.history.location,matches:C,initialized:_,navigation:Ch,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||z,fetchers:new Map,blockers:new Map},W="POP",ue=!1,se,Q=!1,ne=new Map,fe=null,ge=!1,De=!1,ce=new Set,P=new Map,H=0,te=-1,$=new Map,oe=new Set,N=new Map,X=new Map,le=new Set,q=new Map,re,we=null;function Re(){if(y=e.history.listen(({action:D,location:U,delta:I})=>{if(re){re(),re=void 0;return}It(q.size===0||I!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ie=Zt({currentLocation:R.location,nextLocation:U,historyAction:D});if(ie&&I!=null){let de=new Promise(Ne=>{re=Ne});e.history.go(I*-1),Sn(ie,{state:"blocked",location:U,proceed(){Sn(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),de.then(()=>e.history.go(I))},reset(){let Ne=new Map(R.blockers);Ne.set(ie,io),ze({blockers:Ne})}});return}return Rt(D,U)}),a){$A(n,ne);let D=()=>XA(n,ne);n.addEventListener("pagehide",D),fe=()=>n.removeEventListener("pagehide",D)}return R.initialized||Rt("POP",R.location,{initialHydration:!0}),Z}function dt(){y&&y(),fe&&fe(),v.clear(),se&&se.abort(),R.fetchers.forEach((D,U)=>oi(U)),R.blockers.forEach((D,U)=>Po(U))}function Ve(D){return v.add(D),()=>v.delete(D)}function ze(D,U={}){R={...R,...D};let I=[],ie=[];R.fetchers.forEach((de,Ne)=>{de.state==="idle"&&(le.has(Ne)?I.push(Ne):ie.push(Ne))}),le.forEach(de=>{!R.fetchers.has(de)&&!P.has(de)&&I.push(de)}),[...v].forEach(de=>de(R,{deletedFetchers:I,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),I.forEach(de=>oi(de)),ie.forEach(de=>R.fetchers.delete(de))}function _e(D,U,{flushSync:I}={}){var me,pe;let ie=R.actionData!=null&&R.navigation.formMethod!=null&&fa(R.navigation.formMethod)&&R.navigation.state==="loading"&&((me=D.state)==null?void 0:me._isRedirect)!==!0,de;U.actionData?Object.keys(U.actionData).length>0?de=U.actionData:de=null:ie?de=R.actionData:de=null;let Ne=U.loaderData?yv(R.loaderData,U.loaderData,U.matches||[],U.errors):R.loaderData,Ee=R.blockers;Ee.size>0&&(Ee=new Map(Ee),Ee.forEach((ye,Oe)=>Ee.set(Oe,io)));let be=ue===!0||R.navigation.formMethod!=null&&fa(R.navigation.formMethod)&&((pe=D.state)==null?void 0:pe._isRedirect)!==!0;f&&(u=f,f=void 0),ge||W==="POP"||(W==="PUSH"?e.history.push(D,D.state):W==="REPLACE"&&e.history.replace(D,D.state));let Se;if(W==="POP"){let ye=ne.get(R.location.pathname);ye&&ye.has(D.pathname)?Se={currentLocation:R.location,nextLocation:D}:ne.has(D.pathname)&&(Se={currentLocation:D,nextLocation:R.location})}else if(Q){let ye=ne.get(R.location.pathname);ye?ye.add(D.pathname):(ye=new Set([D.pathname]),ne.set(R.location.pathname,ye)),Se={currentLocation:R.location,nextLocation:D}}ze({...U,actionData:de,loaderData:Ne,historyAction:W,location:D,initialized:!0,navigation:Ch,revalidation:"idle",restoreScrollPosition:nr(D,U.matches||R.matches),preventScrollReset:be,blockers:Ee},{viewTransitionOpts:Se,flushSync:I===!0}),W="POP",ue=!1,Q=!1,ge=!1,De=!1,we==null||we.resolve(),we=null}async function bt(D,U){if(typeof D=="number"){e.history.go(D);return}let I=Jh(R.location,R.matches,m,D,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:ie,submission:de,error:Ne}=ov(!1,I,U),Ee=R.location,be=go(R.location,ie,U&&U.state);be={...be,...e.history.encodeLocation(be)};let Se=U&&U.replace!=null?U.replace:void 0,me="PUSH";Se===!0?me="REPLACE":Se===!1||de!=null&&fa(de.formMethod)&&de.formAction===R.location.pathname+R.location.search&&(me="REPLACE");let pe=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,ye=(U&&U.flushSync)===!0,Oe=Zt({currentLocation:Ee,nextLocation:be,historyAction:me});if(Oe){Sn(Oe,{state:"blocked",location:be,proceed(){Sn(Oe,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),bt(D,U)},reset(){let tt=new Map(R.blockers);tt.set(Oe,io),ze({blockers:tt})}});return}await Rt(me,be,{submission:de,pendingError:Ne,preventScrollReset:pe,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:ye})}function xn(){we||(we=KA()),hn(),ze({revalidation:"loading"});let D=we.promise;return R.navigation.state==="submitting"?D:R.navigation.state==="idle"?(Rt(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),D):(Rt(W||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:Q===!0}),D)}async function Rt(D,U,I){se&&se.abort(),se=null,W=D,ge=(I&&I.startUninterruptedRevalidation)===!0,Kr(R.location,R.matches),ue=(I&&I.preventScrollReset)===!0,Q=(I&&I.enableViewTransition)===!0;let ie=f||u,de=I&&I.overrideNavigation,Ne=I!=null&&I.initialHydration&&R.matches&&R.matches.length>0&&!k?R.matches:Oi(ie,U,m),Ee=(I&&I.flushSync)===!0;if(Ne&&R.initialized&&!De&&IA(R.location,U)&&!(I&&I.submission&&fa(I.submission.formMethod))){_e(U,{matches:Ne},{flushSync:Ee});return}let be=Ln(Ne,ie,U.pathname);if(be.active&&be.matches&&(Ne=be.matches),!Ne){let{error:xt,notFoundMatches:mt,route:St}=ul(U.pathname);_e(U,{matches:mt,loaderData:{},errors:{[St.id]:xt}},{flushSync:Ee});return}se=new AbortController;let Se=Ts(e.history,U,se.signal,I&&I.submission),me=new sv(e.unstable_getContext?await e.unstable_getContext():void 0),pe;if(I&&I.pendingError)pe=[Rr(Ne).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&fa(I.submission.formMethod)){let xt=await Yr(Se,U,I.submission,Ne,me,be.active,{replace:I.replace,flushSync:Ee});if(xt.shortCircuited)return;if(xt.pendingActionResult){let[mt,St]=xt.pendingActionResult;if(Nn(St)&&po(St.error)&&St.error.status===404){se=null,_e(U,{matches:xt.matches,loaderData:{},errors:{[mt]:St.error}});return}}Ne=xt.matches||Ne,pe=xt.pendingActionResult,de=Eh(U,I.submission),Ee=!1,be.active=!1,Se=Ts(e.history,Se.url,Se.signal)}let{shortCircuited:ye,matches:Oe,loaderData:tt,errors:Dt}=await $r(Se,U,Ne,me,be.active,de,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,Ee,pe);ye||(se=null,_e(U,{matches:Oe||Ne,...vv(pe),loaderData:tt,errors:Dt}))}async function Yr(D,U,I,ie,de,Ne,Ee={}){hn();let be=GA(U,I);if(ze({navigation:be},{flushSync:Ee.flushSync===!0}),Ne){let pe=await _a(ie,U.pathname,D.signal);if(pe.type==="aborted")return{shortCircuited:!0};if(pe.type==="error"){let ye=Rr(pe.partialMatches).route.id;return{matches:pe.partialMatches,pendingActionResult:[ye,{type:"error",error:pe.error}]}}else if(pe.matches)ie=pe.matches;else{let{notFoundMatches:ye,error:Oe,route:tt}=ul(U.pathname);return{matches:ye,pendingActionResult:[tt.id,{type:"error",error:Oe}]}}}let Se,me=fo(ie,U);if(!me.route.action&&!me.route.lazy)Se={type:"error",error:Wn(405,{method:D.method,pathname:U.pathname,routeId:me.route.id})};else{let pe=await tr("action",D,[me],ie,de,null);if(Se=pe[me.route.id],!Se){for(let ye of ie)if(pe[ye.route.id]){Se=pe[ye.route.id];break}}if(D.signal.aborted)return{shortCircuited:!0}}if(Nr(Se)){let pe;return Ee&&Ee.replace!=null?pe=Ee.replace:pe=mv(Se.response.headers.get("Location"),new URL(D.url),m)===R.location.pathname+R.location.search,await ia(D,Se,!0,{submission:I,replace:pe}),{shortCircuited:!0}}if(Nn(Se)){let pe=Rr(ie,me.route.id);return(Ee&&Ee.replace)!==!0&&(W="PUSH"),{matches:ie,pendingActionResult:[pe.route.id,Se]}}return{matches:ie,pendingActionResult:[me.route.id,Se]}}async function $r(D,U,I,ie,de,Ne,Ee,be,Se,me,pe,ye){let Oe=Ne||Eh(U,Ee),tt=Ee||be||xv(Oe),Dt=!ge&&!me;if(de){if(Dt){let gt=Oa(ye);ze({navigation:Oe,...gt!==void 0?{actionData:gt}:{}},{flushSync:pe})}let $e=await _a(I,U.pathname,D.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let gt=Rr($e.partialMatches).route.id;return{matches:$e.partialMatches,loaderData:{},errors:{[gt]:$e.error}}}else if($e.matches)I=$e.matches;else{let{error:gt,notFoundMatches:mn,route:sr}=ul(U.pathname);return{matches:mn,loaderData:{},errors:{[sr.id]:gt}}}}let xt=f||u,[mt,St]=cv(e.history,R,I,tt,U,me===!0,De,ce,le,N,oe,xt,m,ye);if(te=++H,mt.length===0&&St.length===0){let $e=Fo();return _e(U,{matches:I,loaderData:{},errors:ye&&Nn(ye[1])?{[ye[0]]:ye[1].error}:null,...vv(ye),...$e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:pe}),{shortCircuited:!0}}if(Dt){let $e={};if(!de){$e.navigation=Oe;let gt=Oa(ye);gt!==void 0&&($e.actionData=gt)}St.length>0&&($e.fetchers=rl(St)),ze($e,{flushSync:pe})}St.forEach($e=>{ra($e.key),$e.controller&&P.set($e.key,$e.controller)});let Un=()=>St.forEach($e=>ra($e.key));se&&se.signal.addEventListener("abort",Un);let{loaderResults:Ba,fetcherResults:Qt}=await Uo(I,mt,St,D,ie);if(D.signal.aborted)return{shortCircuited:!0};se&&se.signal.removeEventListener("abort",Un),St.forEach($e=>P.delete($e.key));let Gt=Zu(Ba);if(Gt)return await ia(D,Gt.result,!0,{replace:Se}),{shortCircuited:!0};if(Gt=Zu(Qt),Gt)return oe.add(Gt.key),await ia(D,Gt.result,!0,{replace:Se}),{shortCircuited:!0};let{loaderData:za,errors:Hn}=pv(R,I,Ba,ye,St,Qt);me&&R.errors&&(Hn={...R.errors,...Hn});let st=Fo(),ir=ui(te),rr=st||ir||St.length>0;return{matches:I,loaderData:za,errors:Hn,...rr?{fetchers:new Map(R.fetchers)}:{}}}function Oa(D){if(D&&!Nn(D[1]))return{[D[0]]:D[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function rl(D){return D.forEach(U=>{let I=R.fetchers.get(U.key),ie=ro(void 0,I?I.data:void 0);R.fetchers.set(U.key,ie)}),new Map(R.fetchers)}async function Xr(D,U,I,ie){ra(D);let de=(ie&&ie.flushSync)===!0,Ne=f||u,Ee=Jh(R.location,R.matches,m,I,U,ie==null?void 0:ie.relative),be=Oi(Ne,Ee,m),Se=Ln(be,Ne,Ee);if(Se.active&&Se.matches&&(be=Se.matches),!be){zn(D,U,Wn(404,{pathname:Ee}),{flushSync:de});return}let{path:me,submission:pe,error:ye}=ov(!0,Ee,ie);if(ye){zn(D,U,ye,{flushSync:de});return}let Oe=fo(be,me),tt=new sv(e.unstable_getContext?await e.unstable_getContext():void 0),Dt=(ie&&ie.preventScrollReset)===!0;if(pe&&fa(pe.formMethod)){await sl(D,U,me,Oe,be,tt,Se.active,de,Dt,pe);return}N.set(D,{routeId:U,path:me}),await ll(D,U,me,Oe,be,tt,Se.active,de,Dt,pe)}async function sl(D,U,I,ie,de,Ne,Ee,be,Se,me){hn(),N.delete(D);function pe(pt){if(!pt.route.action&&!pt.route.lazy){let La=Wn(405,{method:me.formMethod,pathname:I,routeId:U});return zn(D,U,La,{flushSync:be}),!0}return!1}if(!Ee&&pe(ie))return;let ye=R.fetchers.get(D);ya(D,YA(me,ye),{flushSync:be});let Oe=new AbortController,tt=Ts(e.history,I,Oe.signal,me);if(Ee){let pt=await _a(de,I,tt.signal,D);if(pt.type==="aborted")return;if(pt.type==="error"){zn(D,U,pt.error,{flushSync:be});return}else if(pt.matches){if(de=pt.matches,ie=fo(de,I),pe(ie))return}else{zn(D,U,Wn(404,{pathname:I}),{flushSync:be});return}}P.set(D,Oe);let Dt=H,mt=(await tr("action",tt,[ie],de,Ne,D))[ie.route.id];if(tt.signal.aborted){P.get(D)===Oe&&P.delete(D);return}if(le.has(D)){if(Nr(mt)||Nn(mt)){ya(D,Mi(void 0));return}}else{if(Nr(mt))if(P.delete(D),te>Dt){ya(D,Mi(void 0));return}else return oe.add(D),ya(D,ro(me)),ia(tt,mt,!1,{fetcherSubmission:me,preventScrollReset:Se});if(Nn(mt)){zn(D,U,mt.error);return}}let St=R.navigation.location||R.location,Un=Ts(e.history,St,Oe.signal),Ba=f||u,Qt=R.navigation.state!=="idle"?Oi(Ba,R.navigation.location,m):R.matches;Qe(Qt,"Didn't find any matches after fetcher action");let Gt=++H;$.set(D,Gt);let za=ro(me,mt.data);R.fetchers.set(D,za);let[Hn,st]=cv(e.history,R,Qt,me,St,!1,De,ce,le,N,oe,Ba,m,[ie.route.id,mt]);st.filter(pt=>pt.key!==D).forEach(pt=>{let La=pt.key,Io=R.fetchers.get(La),Zr=ro(void 0,Io?Io.data:void 0);R.fetchers.set(La,Zr),ra(La),pt.controller&&P.set(La,pt.controller)}),ze({fetchers:new Map(R.fetchers)});let ir=()=>st.forEach(pt=>ra(pt.key));Oe.signal.addEventListener("abort",ir);let{loaderResults:rr,fetcherResults:$e}=await Uo(Qt,Hn,st,Un,Ne);if(Oe.signal.aborted)return;Oe.signal.removeEventListener("abort",ir),$.delete(D),P.delete(D),st.forEach(pt=>P.delete(pt.key));let gt=Zu(rr);if(gt)return ia(Un,gt.result,!1,{preventScrollReset:Se});if(gt=Zu($e),gt)return oe.add(gt.key),ia(Un,gt.result,!1,{preventScrollReset:Se});let{loaderData:mn,errors:sr}=pv(R,Qt,rr,void 0,st,$e);if(R.fetchers.has(D)){let pt=Mi(mt.data);R.fetchers.set(D,pt)}ui(Gt),R.navigation.state==="loading"&&Gt>te?(Qe(W,"Expected pending action"),se&&se.abort(),_e(R.navigation.location,{matches:Qt,loaderData:mn,errors:sr,fetchers:new Map(R.fetchers)})):(ze({errors:sr,loaderData:yv(R.loaderData,mn,Qt,sr),fetchers:new Map(R.fetchers)}),De=!1)}async function ll(D,U,I,ie,de,Ne,Ee,be,Se,me){let pe=R.fetchers.get(D);ya(D,ro(me,pe?pe.data:void 0),{flushSync:be});let ye=new AbortController,Oe=Ts(e.history,I,ye.signal);if(Ee){let mt=await _a(de,I,Oe.signal,D);if(mt.type==="aborted")return;if(mt.type==="error"){zn(D,U,mt.error,{flushSync:be});return}else if(mt.matches)de=mt.matches,ie=fo(de,I);else{zn(D,U,Wn(404,{pathname:I}),{flushSync:be});return}}P.set(D,ye);let tt=H,xt=(await tr("loader",Oe,[ie],de,Ne,D))[ie.route.id];if(P.get(D)===ye&&P.delete(D),!Oe.signal.aborted){if(le.has(D)){ya(D,Mi(void 0));return}if(Nr(xt))if(te>tt){ya(D,Mi(void 0));return}else{oe.add(D),await ia(Oe,xt,!1,{preventScrollReset:Se});return}if(Nn(xt)){zn(D,U,xt.error);return}ya(D,Mi(xt.data))}}async function ia(D,U,I,{submission:ie,fetcherSubmission:de,preventScrollReset:Ne,replace:Ee}={}){U.response.headers.has("X-Remix-Revalidate")&&(De=!0);let be=U.response.headers.get("Location");Qe(be,"Expected a Location header on the redirect Response"),be=mv(be,new URL(D.url),m);let Se=go(R.location,be,{_isRedirect:!0});if(a){let Dt=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(Lm.test(be)){const xt=e.history.createURL(be);Dt=xt.origin!==n.location.origin||ta(xt.pathname,m)==null}if(Dt){Ee?n.location.replace(be):n.location.assign(be);return}}se=null;let me=Ee===!0||U.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:pe,formAction:ye,formEncType:Oe}=R.navigation;!ie&&!de&&pe&&ye&&Oe&&(ie=xv(R.navigation));let tt=ie||de;if(NA.has(U.response.status)&&tt&&fa(tt.formMethod))await Rt(me,Se,{submission:{...tt,formAction:be},preventScrollReset:Ne||ue,enableViewTransition:I?Q:void 0});else{let Dt=Eh(Se,ie);await Rt(me,Se,{overrideNavigation:Dt,fetcherSubmission:de,preventScrollReset:Ne||ue,enableViewTransition:I?Q:void 0})}}async function tr(D,U,I,ie,de,Ne){let Ee,be={};try{Ee=await UA(p,D,U,I,ie,Ne,o,r,de,g.unstable_middleware)}catch(Se){return I.forEach(me=>{be[me.route.id]={type:"error",error:Se}}),be}for(let[Se,me]of Object.entries(Ee))if(qA(me)){let pe=me.result;be[Se]={type:"redirect",response:PA(pe,U,Se,ie,m)}}else be[Se]=await FA(me);return be}async function Uo(D,U,I,ie,de){let Ne=tr("loader",ie,U,D,de,null),Ee=Promise.all(I.map(async me=>{if(me.matches&&me.match&&me.controller){let ye=(await tr("loader",Ts(e.history,me.path,me.controller.signal),[me.match],me.matches,de,me.key))[me.match.route.id];return{[me.key]:ye}}else return Promise.resolve({[me.key]:{type:"error",error:Wn(404,{pathname:me.path})}})})),be=await Ne,Se=(await Ee).reduce((me,pe)=>Object.assign(me,pe),{});return{loaderResults:be,fetcherResults:Se}}function hn(){De=!0,N.forEach((D,U)=>{P.has(U)&&ce.add(U),ra(U)})}function ya(D,U,I={}){R.fetchers.set(D,U),ze({fetchers:new Map(R.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function zn(D,U,I,ie={}){let de=Rr(R.matches,U);oi(D),ze({errors:{[de.route.id]:I},fetchers:new Map(R.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ol(D){return X.set(D,(X.get(D)||0)+1),le.has(D)&&le.delete(D),R.fetchers.get(D)||TA}function oi(D){let U=R.fetchers.get(D);P.has(D)&&!(U&&U.state==="loading"&&$.has(D))&&ra(D),N.delete(D),$.delete(D),oe.delete(D),le.delete(D),ce.delete(D),R.fetchers.delete(D)}function ud(D){let U=(X.get(D)||0)-1;U<=0?(X.delete(D),le.add(D)):X.set(D,U),ze({fetchers:new Map(R.fetchers)})}function ra(D){let U=P.get(D);U&&(U.abort(),P.delete(D))}function Ho(D){for(let U of D){let I=ol(U),ie=Mi(I.data);R.fetchers.set(U,ie)}}function Fo(){let D=[],U=!1;for(let I of oe){let ie=R.fetchers.get(I);Qe(ie,`Expected fetcher: ${I}`),ie.state==="loading"&&(oe.delete(I),D.push(I),U=!0)}return Ho(D),U}function ui(D){let U=[];for(let[I,ie]of $)if(ie0}function rn(D,U){let I=R.blockers.get(D)||io;return q.get(D)!==U&&q.set(D,U),I}function Po(D){R.blockers.delete(D),q.delete(D)}function Sn(D,U){let I=R.blockers.get(D)||io;Qe(I.state==="unblocked"&&U.state==="blocked"||I.state==="blocked"&&U.state==="blocked"||I.state==="blocked"&&U.state==="proceeding"||I.state==="blocked"&&U.state==="unblocked"||I.state==="proceeding"&&U.state==="unblocked",`Invalid blocker state transition: ${I.state} -> ${U.state}`);let ie=new Map(R.blockers);ie.set(D,U),ze({blockers:ie})}function Zt({currentLocation:D,nextLocation:U,historyAction:I}){if(q.size===0)return;q.size>1&&It(!1,"A router only supports one blocker at a time");let ie=Array.from(q.entries()),[de,Ne]=ie[ie.length-1],Ee=R.blockers.get(de);if(!(Ee&&Ee.state==="proceeding")&&Ne({currentLocation:D,nextLocation:U,historyAction:I}))return de}function ul(D){let U=Wn(404,{pathname:D}),I=f||u,{matches:ie,route:de}=wv(I);return{notFoundMatches:ie,route:de,error:U}}function cd(D,U,I){if(b=D,S=U,x=I||null,!j&&R.navigation===Ch){j=!0;let ie=nr(R.location,R.matches);ie!=null&&ze({restoreScrollPosition:ie})}return()=>{b=null,S=null,x=null}}function Vo(D,U){return x&&x(D,U.map(ie=>sA(ie,R.loaderData)))||D.key}function Kr(D,U){if(b&&S){let I=Vo(D,U);b[I]=S()}}function nr(D,U){if(b){let I=Vo(D,U),ie=b[I];if(typeof ie=="number")return ie}return null}function Ln(D,U,I){if(e.patchRoutesOnNavigation)if(D){if(Object.keys(D[0].params).length>0)return{active:!0,matches:rc(U,I,m,!0)}}else return{active:!0,matches:rc(U,I,m,!0)||[]};return{active:!1,matches:null}}async function _a(D,U,I,ie){if(!e.patchRoutesOnNavigation)return{type:"success",matches:D};let de=D;for(;;){let Ne=f==null,Ee=f||u,be=o;try{await e.patchRoutesOnNavigation({signal:I,path:U,matches:de,fetcherKey:ie,patch:(pe,ye)=>{I.aborted||fv(pe,ye,Ee,be,r)}})}catch(pe){return{type:"error",error:pe,partialMatches:de}}finally{Ne&&!I.aborted&&(u=[...u])}if(I.aborted)return{type:"aborted"};let Se=Oi(Ee,U,m);if(Se)return{type:"success",matches:Se};let me=rc(Ee,U,m,!0);if(!me||de.length===me.length&&de.every((pe,ye)=>pe.route.id===me[ye].route.id))return{type:"success",matches:null};de=me}}function ar(D){o={},f=gc(D,r,void 0,o)}function dd(D,U){let I=f==null;fv(D,U,f||u,o,r),I&&(u=[...u],ze({}))}return Z={get basename(){return m},get future(){return g},get state(){return R},get routes(){return u},get window(){return n},initialize:Re,subscribe:Ve,enableScrollRestoration:cd,navigate:bt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:ud,dispose:dt,getBlocker:rn,deleteBlocker:Po,patchRoutes:dd,_internalFetchControllers:P,_internalSetRoutes:ar},Z}function DA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Jh(e,n,a,r,o,u){let f,m;if(o){f=[];for(let g of n)if(f.push(g),g.route.id===o){m=g;break}}else f=n,m=n[n.length-1];let p=Lc(r||".",zc(f),ta(e.pathname,a)||e.pathname,u==="path");if(r==null&&(p.search=e.search,p.hash=e.hash),(r==null||r===""||r===".")&&m){let g=Um(p.search);if(m.route.index&&!g)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&g){let y=new URLSearchParams(p.search),v=y.getAll("index");y.delete("index"),v.filter(x=>x).forEach(x=>y.append("index",x));let b=y.toString();p.search=b?`?${b}`:""}}return a!=="/"&&(p.pathname=p.pathname==="/"?a:Ta([a,p.pathname])),Xi(p)}function ov(e,n,a){if(!a||!DA(a))return{path:n};if(a.formMethod&&!QA(a.formMethod))return{path:n,error:Wn(405,{method:a.formMethod})};let r=()=>({path:n,error:Wn(400,{type:"invalid-body"})}),u=(a.formMethod||"get").toUpperCase(),f=Kw(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!fa(u))return r();let v=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((b,[x,S])=>`${b}${x}=${S} `,""):String(a.body);return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:v}}}else if(a.formEncType==="application/json"){if(!fa(u))return r();try{let v=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}Qe(typeof FormData=="function","FormData is not available in this environment");let m,p;if(a.formData)m=tm(a.formData),p=a.formData;else if(a.body instanceof FormData)m=tm(a.body),p=a.body;else if(a.body instanceof URLSearchParams)m=a.body,p=gv(m);else if(a.body==null)m=new URLSearchParams,p=new FormData;else try{m=new URLSearchParams(a.body),p=gv(m)}catch{return r()}let g={formMethod:u,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(fa(g.formMethod))return{path:n,submission:g};let y=Ji(n);return e&&y.search&&Um(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:g}}function uv(e,n,a=!1){let r=e.findIndex(o=>o.route.id===n);return r>=0?e.slice(0,a?r+1:r):e}function cv(e,n,a,r,o,u,f,m,p,g,y,v,b,x){let S=x?Nn(x[1])?x[1].error:x[1].data:void 0,j=e.createURL(n.location),C=e.createURL(o),k=a;u&&n.errors?k=uv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=uv(a,x[0]));let z=x?x[1].statusCode:void 0,_=z&&z>=400,Z=k.filter((W,ue)=>{let{route:se}=W;if(se.lazy)return!0;if(se.loader==null)return!1;if(u)return Wh(se,n.loaderData,n.errors);if(OA(n.loaderData,n.matches[ue],W))return!0;let Q=n.matches[ue],ne=W;return dv(W,{currentUrl:j,currentParams:Q.params,nextUrl:C,nextParams:ne.params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f||j.pathname+j.search===C.pathname+C.search||j.search!==C.search||_A(Q,ne)})}),R=[];return g.forEach((W,ue)=>{if(u||!a.some(ge=>ge.route.id===W.routeId)||p.has(ue))return;let se=Oi(v,W.path,b);if(!se){R.push({key:ue,routeId:W.routeId,path:W.path,matches:null,match:null,controller:null});return}let Q=n.fetchers.get(ue),ne=fo(se,W.path),fe=!1;y.has(ue)?fe=!1:m.has(ue)?(m.delete(ue),fe=!0):Q&&Q.state!=="idle"&&Q.data===void 0?fe=f:fe=dv(ne,{currentUrl:j,currentParams:n.matches[n.matches.length-1].params,nextUrl:C,nextParams:a[a.length-1].params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f}),fe&&R.push({key:ue,routeId:W.routeId,path:W.path,matches:se,match:ne,controller:new AbortController})}),[Z,R]}function Wh(e,n,a){if(e.lazy)return!0;if(!e.loader)return!1;let r=n!=null&&n[e.id]!==void 0,o=a!=null&&a[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function OA(e,n,a){let r=!n||a.route.id!==n.route.id,o=!e.hasOwnProperty(a.route.id);return r||o}function _A(e,n){let a=e.route.path;return e.pathname!==n.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==n.params["*"]}function dv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function fv(e,n,a,r,o){let u;if(e){let p=r[e];Qe(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),u=p.children}else u=a;let f=n.filter(p=>!u.some(g=>$w(p,g))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function $w(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((a,r)=>{var o;return(o=n.children)==null?void 0:o.some(u=>$w(a,u))}):!1}async function BA(e,n,a){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=a[e.id];Qe(o,"No route found in manifest");let u={};for(let f in r){let p=o[f]!==void 0&&f!=="hasErrorBoundary";It(!p,`Route "${o.id}" has a static property "${f}" defined but its lazy function is also returning a value for this property. The lazy route property "${f}" will be ignored.`),!p&&!iA.has(f)&&(u[f]=r[f])}Object.assign(o,u),Object.assign(o,{...n(o),lazy:void 0})}async function hv(e){let n=e.matches.filter(o=>o.shouldLoad),a={};return(await Promise.all(n.map(o=>o.resolve()))).forEach((o,u)=>{a[n[u].route.id]=o}),a}async function zA(e){return e.matches.some(n=>n.route.unstable_middleware)?LA(e,!1,()=>hv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):hv(e)}async function LA(e,n,a,r){let{matches:o,request:u,params:f,context:m}=e,p={handlerResult:void 0,propagateResult:n};try{let g=o.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(b=>[v.route.id,b]):[]),y=await Xw({request:u,params:f,context:m},g,p,a);return p.propagateResult?y:p.handlerResult}catch(g){if(!(g instanceof em))throw g;let y=await r(g);return p.handlerResult?Object.assign(p.handlerResult,y):y}}var em=class{constructor(e,n){this.routeId=e,this.error=n}};async function Xw(e,n,a,r,o=0){let{request:u}=e;if(u.signal.aborted)throw u.signal.reason?u.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${u.method} ${u.url}`);let f=n[o];if(!f)return a.handlerResult=await r(),a.handlerResult;let[m,p]=f,g=!1,y,v=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");g=!0;let b=await Xw(e,n,a,r,o+1);if(a.propagateResult)return y=b,y};try{let b=await p({request:e.request,params:e.params,context:e.context},v);return g?b===void 0?y:b:v()}catch(b){throw b instanceof em?b:new em(m,b)}}async function UA(e,n,a,r,o,u,f,m,p,g){let y=o.map(x=>x.route.lazy?BA(x.route,m,f):void 0);g&&await Promise.all(y);let v=o.map((x,S)=>{let j=y[S],C=r.some(z=>z.route.id===x.route.id);return{...x,shouldLoad:C,resolve:async z=>(z&&a.method==="GET"&&(x.route.lazy||x.route.loader)&&(C=!0),C?HA(n,a,x,j,z,p):Promise.resolve({type:"data",result:void 0}))}}),b=await e({matches:v,request:a,params:o[0].params,fetcherKey:u,context:p});try{await Promise.all(y)}catch{}return b}async function HA(e,n,a,r,o,u){let f,m,p=g=>{let y,v=new Promise((S,j)=>y=j);m=()=>y(),n.signal.addEventListener("abort",m);let b=S=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${a.route.id}]`)):g({request:n,params:a.params,context:u},...S!==void 0?[S]:[]),x=(async()=>{try{return{type:"data",result:await(o?o(j=>b(j)):b())}}catch(S){return{type:"error",result:S}}})();return Promise.race([x,v])};try{let g=a.route[e];if(r)if(g){let y,[v]=await Promise.all([p(g).catch(b=>{y=b}),r]);if(y!==void 0)throw y;f=v}else if(await r,g=a.route[e],g)f=await p(g);else if(e==="action"){let y=new URL(n.url),v=y.pathname+y.search;throw Wn(405,{method:n.method,pathname:v,routeId:a.route.id})}else return{type:"data",result:void 0};else if(g)f=await p(g);else{let y=new URL(n.url),v=y.pathname+y.search;throw Wn(404,{pathname:v})}}catch(g){return{type:"error",result:g}}finally{m&&n.signal.removeEventListener("abort",m)}return f}async function FA(e){var r,o,u,f,m,p;let{result:n,type:a}=e;if(Zw(n)){let g;try{let y=n.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?n.body==null?g=null:g=await n.json():g=await n.text()}catch(y){return{type:"error",error:y}}return a==="error"?{type:"error",error:new yc(n.status,n.statusText,g),statusCode:n.status,headers:n.headers}:{type:"data",data:g,statusCode:n.status,headers:n.headers}}return a==="error"?bv(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(r=n.init)==null?void 0:r.status,headers:(o=n.init)!=null&&o.headers?new Headers(n.init.headers):void 0}:{type:"error",error:new yc(((u=n.init)==null?void 0:u.status)||500,void 0,n.data),statusCode:po(n)?n.status:void 0,headers:(f=n.init)!=null&&f.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:po(n)?n.status:void 0}:bv(n)?{type:"data",data:n.data,statusCode:(m=n.init)==null?void 0:m.status,headers:(p=n.init)!=null&&p.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function PA(e,n,a,r,o){let u=e.headers.get("Location");if(Qe(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!Lm.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Jh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function mv(e,n,a){if(Lm.test(e)){let r=e,o=r.startsWith("//")?new URL(n.protocol+r):new URL(r),u=ta(o.pathname,a)!=null;if(o.origin===n.origin&&u)return o.pathname+o.search+o.hash}return e}function Ts(e,n,a,r){let o=e.createURL(Kw(n)).toString(),u={signal:a};if(r&&fa(r.formMethod)){let{formMethod:f,formEncType:m}=r;u.method=f.toUpperCase(),m==="application/json"?(u.headers=new Headers({"Content-Type":m}),u.body=JSON.stringify(r.json)):m==="text/plain"?u.body=r.text:m==="application/x-www-form-urlencoded"&&r.formData?u.body=tm(r.formData):u.body=r.formData}return new Request(o,u)}function tm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function gv(e){let n=new FormData;for(let[a,r]of e.entries())n.append(a,r);return n}function VA(e,n,a,r=!1,o=!1){let u={},f=null,m,p=!1,g={},y=a&&Nn(a[1])?a[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in n))return;let b=v.route.id,x=n[b];if(Qe(!Nr(x),"Cannot handle redirect results in processLoaderData"),Nn(x)){let S=x.error;if(y!==void 0&&(S=y,y=void 0),f=f||{},o)f[b]=S;else{let j=Rr(e,b);f[j.route.id]==null&&(f[j.route.id]=S)}r||(u[b]=Yw),p||(p=!0,m=po(x.error)?x.error.status:500),x.headers&&(g[b]=x.headers)}else u[b]=x.data,x.statusCode&&x.statusCode!==200&&!p&&(m=x.statusCode),x.headers&&(g[b]=x.headers)}),y!==void 0&&a&&(f={[a[0]]:y},u[a[0]]=void 0),{loaderData:u,errors:f,statusCode:m||200,loaderHeaders:g}}function pv(e,n,a,r,o,u){let{loaderData:f,errors:m}=VA(n,a,r);return o.forEach(p=>{let{key:g,match:y,controller:v}=p,b=u[g];if(Qe(b,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Nn(b)){let x=Rr(e.matches,y==null?void 0:y.route.id);m&&m[x.route.id]||(m={...m,[x.route.id]:b.error}),e.fetchers.delete(g)}else if(Nr(b))Qe(!1,"Unhandled fetcher revalidation redirect");else{let x=Mi(b.data);e.fetchers.set(g,x)}}),{loaderData:f,errors:m}}function yv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==Yw).reduce((u,[f,m])=>(u[f]=m,u),{});for(let u of a){let f=u.route.id;if(!n.hasOwnProperty(f)&&e.hasOwnProperty(f)&&u.route.loader&&(o[f]=e[f]),r&&r.hasOwnProperty(f))break}return o}function vv(e){return e?Nn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Rr(e,n){return(n?e.slice(0,e.findIndex(r=>r.route.id===n)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function wv(e){let n=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Wn(e,{pathname:n,routeId:a,method:r,type:o,message:u}={}){let f="Unknown Server Error",m="Unknown @remix-run/router error";return e===400?(f="Bad Request",r&&n&&a?m=`You made a ${r} request to "${n}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:o==="invalid-body"&&(m="Unable to encode submission body")):e===403?(f="Forbidden",m=`Route "${a}" does not match URL "${n}"`):e===404?(f="Not Found",m=`No route matches URL "${n}"`):e===405&&(f="Method Not Allowed",r&&n&&a?m=`You made a ${r.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:r&&(m=`Invalid request method "${r.toUpperCase()}"`)),new yc(e||500,f,new Error(m),!0)}function Zu(e){let n=Object.entries(e);for(let a=n.length-1;a>=0;a--){let[r,o]=n[a];if(Nr(o))return{key:r,result:o}}}function Kw(e){let n=typeof e=="string"?Ji(e):e;return Xi({...n,hash:""})}function IA(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function qA(e){return Zw(e.result)&&RA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function bv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Zw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QA(e){return jA.has(e.toUpperCase())}function fa(e){return CA.has(e.toUpperCase())}function Um(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function fo(e,n){let a=typeof n=="string"?Ji(n).search:n.search;if(e[e.length-1].route.index&&Um(a||""))return e[e.length-1];let r=qw(e);return r[r.length-1]}function xv(e){let{formMethod:n,formAction:a,formEncType:r,text:o,formData:u,json:f}=e;if(!(!n||!a||!r)){if(o!=null)return{formMethod:n,formAction:a,formEncType:r,formData:void 0,json:void 0,text:o};if(u!=null)return{formMethod:n,formAction:a,formEncType:r,formData:u,json:void 0,text:void 0};if(f!==void 0)return{formMethod:n,formAction:a,formEncType:r,formData:void 0,json:f,text:void 0}}}function Eh(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function GA(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function ro(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function YA(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Mi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $A(e,n){try{let a=e.sessionStorage.getItem(Gw);if(a){let r=JSON.parse(a);for(let[o,u]of Object.entries(r||{}))u&&Array.isArray(u)&&n.set(o,new Set(u||[]))}}catch{}}function XA(e,n){if(n.size>0){let a={};for(let[r,o]of n)a[r]=[...o];try{e.sessionStorage.setItem(Gw,JSON.stringify(a))}catch(r){It(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function KA(){let e,n,a=new Promise((r,o)=>{e=async u=>{r(u);try{await a}catch{}},n=async u=>{o(u);try{await a}catch{}}});return{promise:a,resolve:e,reject:n}}var qr=E.createContext(null);qr.displayName="DataRouter";var Co=E.createContext(null);Co.displayName="DataRouterState";var Hm=E.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Jw=E.createContext(new Map);Jw.displayName="Fetchers";var ZA=E.createContext(null);ZA.displayName="Await";var ga=E.createContext(null);ga.displayName="Navigation";var Uc=E.createContext(null);Uc.displayName="Location";var aa=E.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Fm=E.createContext(null);Fm.displayName="RouteError";function JA(e,{relative:n}={}){Qe(Ks(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:r}=E.useContext(ga),{hash:o,pathname:u,search:f}=Eo(e,{relative:n}),m=u;return a!=="/"&&(m=u==="/"?a:Ta([a,u])),r.createHref({pathname:m,search:f,hash:o})}function Ks(){return E.useContext(Uc)!=null}function Da(){return Qe(Ks(),"useLocation() may be used only in the context of a component."),E.useContext(Uc).location}var Ww="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eb(e){E.useContext(ga).static||E.useLayoutEffect(e)}function dn(){let{isDataRoute:e}=E.useContext(aa);return e?fC():WA()}function WA(){Qe(Ks(),"useNavigate() may be used only in the context of a component.");let e=E.useContext(qr),{basename:n,navigator:a}=E.useContext(ga),{matches:r}=E.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(zc(r)),f=E.useRef(!1);return eb(()=>{f.current=!0}),E.useCallback((p,g={})=>{if(It(f.current,Ww),!f.current)return;if(typeof p=="number"){a.go(p);return}let y=Lc(p,JSON.parse(u),o,g.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Ta([n,y.pathname])),(g.replace?a.replace:a.push)(y,g.state,g)},[n,a,u,o,e])}var eC=E.createContext(null);function tC(e){let n=E.useContext(aa).outlet;return n&&E.createElement(eC.Provider,{value:e},n)}function Hc(){let{matches:e}=E.useContext(aa),n=e[e.length-1];return n?n.params:{}}function Eo(e,{relative:n}={}){let{matches:a}=E.useContext(aa),{pathname:r}=Da(),o=JSON.stringify(zc(a));return E.useMemo(()=>Lc(e,JSON.parse(o),r,n==="path"),[e,o,r,n])}function nC(e,n,a,r){Qe(Ks(),"useRoutes() may be used only in the context of a component.");let{navigator:o,static:u}=E.useContext(ga),{matches:f}=E.useContext(aa),m=f[f.length-1],p=m?m.params:{},g=m?m.pathname:"/",y=m?m.pathnameBase:"/",v=m&&m.route;{let z=v&&v.path||"";nb(g,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (under ) 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 to .`)}let b=Da(),x;x=b;let S=x.pathname||"/",j=S;if(y!=="/"){let z=y.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(z.length).join("/")}let C=!u&&a&&a.matches&&a.matches.length>0?a.matches:Oi(e,{pathname:j});return It(v||C!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),It(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`),lC(C&&C.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:Ta([y,o.encodeLocation?o.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?y:Ta([y,o.encodeLocation?o.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),f,a,r)}function aC(){let e=tb(),n=po(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:u},"ErrorBoundary")," or"," ",E.createElement("code",{style:u},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},n),a?E.createElement("pre",{style:o},a):null,f)}var iC=E.createElement(aC,null),rC=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?E.createElement(aa.Provider,{value:this.props.routeContext},E.createElement(Fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function sC({routeContext:e,match:n,children:a}){let r=E.useContext(qr);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(aa.Provider,{value:e},a)}function lC(e,n=[],a=null,r=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,u=a==null?void 0:a.errors;if(u!=null){let p=o.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Qe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let f=!1,m=-1;if(a)for(let p=0;p=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((p,g,y)=>{let v,b=!1,x=null,S=null;a&&(v=u&&g.route.id?u[g.route.id]:void 0,x=g.route.errorElement||iC,f&&(m<0&&y===0?(nb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,S=null):m===y&&(b=!0,S=g.route.hydrateFallbackElement||null)));let j=n.concat(o.slice(0,y+1)),C=()=>{let k;return v?k=x:b?k=S:g.route.Component?k=E.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=p,E.createElement(sC,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:a!=null},children:k})};return a&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?E.createElement(rC,{location:a.location,revalidation:a.revalidation,component:x,error:v,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):C()},null)}function Pm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oC(e){let n=E.useContext(qr);return Qe(n,Pm(e)),n}function uC(e){let n=E.useContext(Co);return Qe(n,Pm(e)),n}function cC(e){let n=E.useContext(aa);return Qe(n,Pm(e)),n}function Vm(e){let n=cC(e),a=n.matches[n.matches.length-1];return Qe(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function dC(){return Vm("useRouteId")}function tb(){var r;let e=E.useContext(Fm),n=uC("useRouteError"),a=Vm("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function fC(){let{router:e}=oC("useNavigate"),n=Vm("useNavigate"),a=E.useRef(!1);return eb(()=>{a.current=!0}),E.useCallback(async(o,u={})=>{It(a.current,Ww),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Sv={};function nb(e,n,a){!n&&!Sv[e]&&(Sv[e]=!0,It(!1,a))}var Av={};function Cv(e,n){!e&&!Av[n]&&(Av[n]=!0,console.warn(n))}function hC(e){let n={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&It(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:E.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&It(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:E.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&It(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),n}var mC=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",e(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",n(a))}})}};function gC({router:e,flushSync:n}){let[a,r]=E.useState(e.state),[o,u]=E.useState(),[f,m]=E.useState({isTransitioning:!1}),[p,g]=E.useState(),[y,v]=E.useState(),[b,x]=E.useState(),S=E.useRef(new Map),j=E.useCallback((_,{deletedFetchers:Z,flushSync:R,viewTransitionOpts:W})=>{_.fetchers.forEach((se,Q)=>{se.data!==void 0&&S.current.set(Q,se.data)}),Z.forEach(se=>S.current.delete(se)),Cv(R===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ue=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Cv(W==null||ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!W||!ue){n&&R?n(()=>r(_)):E.startTransition(()=>r(_));return}if(n&&R){n(()=>{y&&(p&&p.resolve(),y.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let se=e.window.document.startViewTransition(()=>{n(()=>r(_))});se.finished.finally(()=>{n(()=>{g(void 0),v(void 0),u(void 0),m({isTransitioning:!1})})}),n(()=>v(se));return}y?(p&&p.resolve(),y.skipTransition(),x({state:_,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(u(_),m({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[e.window,n,y,p]);E.useLayoutEffect(()=>e.subscribe(j),[e,j]),E.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new mC)},[f]),E.useEffect(()=>{if(p&&o&&e.window){let _=o,Z=p.promise,R=e.window.document.startViewTransition(async()=>{E.startTransition(()=>r(_)),await Z});R.finished.finally(()=>{g(void 0),v(void 0),u(void 0),m({isTransitioning:!1})}),v(R)}},[o,p,e.window]),E.useEffect(()=>{p&&o&&a.location.key===o.location.key&&p.resolve()},[p,y,a.location,o]),E.useEffect(()=>{!f.isTransitioning&&b&&(u(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),x(void 0))},[f.isTransitioning,b]);let C=E.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:_=>e.navigate(_),push:(_,Z,R)=>e.navigate(_,{state:Z,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(_,Z,R)=>e.navigate(_,{replace:!0,state:Z,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[e]),k=e.basename||"/",z=E.useMemo(()=>({router:e,navigator:C,static:!1,basename:k}),[e,C,k]);return E.createElement(E.Fragment,null,E.createElement(qr.Provider,{value:z},E.createElement(Co.Provider,{value:a},E.createElement(Jw.Provider,{value:S.current},E.createElement(Hm.Provider,{value:f},E.createElement(vC,{basename:k,location:a.location,navigationType:a.historyAction,navigator:C},E.createElement(pC,{routes:e.routes,future:e.future,state:a})))))),null)}var pC=E.memo(yC);function yC({routes:e,future:n,state:a}){return nC(e,void 0,a,n)}function jh({to:e,replace:n,state:a,relative:r}){Qe(Ks()," may be used only in the context of a component.");let{static:o}=E.useContext(ga);It(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:u}=E.useContext(aa),{pathname:f}=Da(),m=dn(),p=Lc(e,zc(u),f,r==="path"),g=JSON.stringify(p);return E.useEffect(()=>{m(JSON.parse(g),{replace:n,state:a,relative:r})},[m,g,r,n,a]),null}function ab(e){return tC(e.context)}function vC({basename:e="/",children:n=null,location:a,navigationType:r="POP",navigator:o,static:u=!1}){Qe(!Ks(),"You cannot render a inside another . You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),m=E.useMemo(()=>({basename:f,navigator:o,static:u,future:{}}),[f,o,u]);typeof a=="string"&&(a=Ji(a));let{pathname:p="/",search:g="",hash:y="",state:v=null,key:b="default"}=a,x=E.useMemo(()=>{let S=ta(p,f);return S==null?null:{location:{pathname:S,search:g,hash:y,state:v,key:b},navigationType:r}},[f,p,g,y,v,b,r]);return It(x!=null,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the won't render anything.`),x==null?null:E.createElement(ga.Provider,{value:m},E.createElement(Uc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function wC(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function bC(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function xC(e){return Fc(e)&&e.tagName.toLowerCase()==="input"}function SC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AC(e,n){return e.button===0&&(!n||n==="_self")&&!SC(e)}var Ju=null;function CC(){if(Ju===null)try{new FormData(document.createElement("form"),0),Ju=!1}catch{Ju=!0}return Ju}var EC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Rh(e){return e!=null&&!EC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${lc}"`),null):e}function jC(e,n){let a,r,o,u,f;if(bC(e)){let m=e.getAttribute("action");r=m?ta(m,n):null,a=e.getAttribute("method")||sc,o=Rh(e.getAttribute("enctype"))||lc,u=new FormData(e)}else if(wC(e)||xC(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a

    `.replace(/(^|\n)\s*/g,""),ER=()=>{const e=fn();return e?(e.remove(),na([document.documentElement,document.body],[Y["no-backdrop"],Y["toast-shown"],Y["has-column"]]),!0):!1},jr=()=>{je.currentInstance.resetValidationMessage()},jR=()=>{const e=Je(),n=Gi(e,Y.input),a=Gi(e,Y.file),r=e.querySelector(`.${Y.range} input`),o=e.querySelector(`.${Y.range} output`),u=Gi(e,Y.select),f=e.querySelector(`.${Y.checkbox} input`),m=Gi(e,Y.textarea);n.oninput=jr,a.onchange=jr,u.onchange=jr,f.onchange=jr,m.oninput=jr,r.oninput=()=>{jr(),o.value=r.value},r.onchange=()=>{jr(),o.value=r.value}},RR=e=>typeof e=="string"?document.querySelector(e):e,NR=e=>{const n=Je();n.setAttribute("role",e.toast?"alert":"dialog"),n.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||n.setAttribute("aria-modal","true")},TR=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},kR=e=>{const n=ER();if(AR()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),Bn(a,CR),a.dataset.swal2Theme=e.theme;const r=RR(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),NR(e),TR(r),jR()},yg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?MR(e,n):e&&Bn(n,e)},MR=(e,n)=>{e.jquery?DR(n,e):Bn(n,e.toString())},DR=(e,n)=>{if(e.textContent="",0 in n)for(let a=0;a in n;a++)e.appendChild(n[a].cloneNode(!0));else e.appendChild(n.cloneNode(!0))},OR=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),On(a,n,"actions"),_R(a,r,n),Bn(r,n.loaderHtml||""),On(r,n,"loader"))};function _R(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(Ih(r,"confirm",a),Ih(o,"deny",a),Ih(u,"cancel",a),BR(r,o,u,a),a.reverseButtons&&(a.toast?(e.insertBefore(u,r),e.insertBefore(o,r)):(e.insertBefore(u,n),e.insertBefore(o,n),e.insertBefore(r,n))))}function BR(e,n,a,r){if(!r.buttonsStyling){na([e,n,a],Y.styled);return}We([e,n,a],Y.styled),r.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&n.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&a.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),Vh(e),Vh(n),Vh(a)}function Vh(e){const n=window.getComputedStyle(e),a=n.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",n.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${a}`))}function Ih(e,n,a){const r=lg(n);Do(e,a[`show${r}Button`],"inline-block"),Bn(e,a[`${n}ButtonText`]||""),e.setAttribute("aria-label",a[`${n}ButtonAriaLabel`]||""),e.className=Y[n],On(e,a,`${n}Button`)}const zR=(e,n)=>{const a=fg();a&&(Bn(a,n.closeButtonHtml||""),On(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},LR=(e,n)=>{const a=fn();a&&(UR(a,n.backdrop),HR(a,n.position),FR(a,n.grow),On(a,n,"container"))};function UR(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function HR(e,n){n&&(n in Y?We(e,Y[n]):(cn('The "position" parameter is not valid, defaulting to "center"'),We(e,Y.center)))}function FR(e,n){n&&We(e,Y[`grow-${n}`])}var ct={innerParams:new WeakMap,domCache:new WeakMap};const PR=["input","file","range","select","radio","checkbox","textarea"],VR=(e,n)=>{const a=Je();if(!a)return;const r=ct.innerParams.get(e),o=!r||n.input!==r.input;PR.forEach(u=>{const f=Gi(a,Y[u]);f&&(QR(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&IR(n),GR(n))},IR=e=>{if(!e.input)return;if(!Tt[e.input]){Qr(`Unexpected type of input! Expected ${Object.keys(Tt).join(" | ")}, got "${e.input}"`);return}const n=Gx(e.input);if(!n)return;const a=Tt[e.input](n,e);qt(n),e.inputAutoFocus&&setTimeout(()=>{Ix(a)})},qR=e=>{for(let n=0;n{const a=Je();if(!a)return;const r=id(a,e);if(r){qR(r);for(const o in n)r.setAttribute(o,n[o])}},GR=e=>{if(!e.input)return;const n=Gx(e.input);n&&On(n,e,"input")},vg=(e,n)=>{!e.placeholder&&n.inputPlaceholder&&(e.placeholder=n.inputPlaceholder)},Oo=(e,n,a)=>{if(a.inputLabel){const r=document.createElement("label"),o=Y["input-label"];r.setAttribute("for",e.id),r.className=o,typeof a.customClass=="object"&&We(r,a.customClass.inputLabel),r.innerText=a.inputLabel,n.insertAdjacentElement("beforebegin",r)}},Gx=e=>{const n=Je();if(n)return Gi(n,Y[e]||Y.input)},Rc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:ug(n)||cn(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof n}"`)},Tt={};Tt.text=Tt.email=Tt.password=Tt.number=Tt.tel=Tt.url=Tt.search=Tt.date=Tt["datetime-local"]=Tt.time=Tt.week=Tt.month=(e,n)=>(Rc(e,n.inputValue),Oo(e,e,n),vg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),vg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Rc(a,n.inputValue),a.type=n.input,Rc(r,n.inputValue),Oo(a,e,n),e};Tt.select=(e,n)=>{if(e.textContent="",n.inputPlaceholder){const a=document.createElement("option");Bn(a,n.inputPlaceholder),a.value="",a.disabled=!0,a.selected=!0,e.appendChild(a)}return Oo(e,e,n),e};Tt.radio=e=>(e.textContent="",e);Tt.checkbox=(e,n)=>{const a=id(Je(),"checkbox");a.value="1",a.checked=!!n.inputValue;const r=e.querySelector("span");return Bn(r,n.inputPlaceholder||n.inputLabel),a};Tt.textarea=(e,n)=>{Rc(e,n.inputValue),vg(e,n),Oo(e,e,n);const a=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(Je()).width),o=()=>{if(!document.body.contains(e))return;const u=e.offsetWidth+a(e);u>r?Je().style.width=`${u}px`:Hr(Je(),"width",n.width)};new MutationObserver(o).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const YR=(e,n)=>{const a=cg();a&&(gg(a),On(a,n,"htmlContainer"),n.html?(yg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),VR(e,n))},$R=(e,n)=>{const a=Vx();a&&(gg(a),Do(a,n.footer,"block"),n.footer&&yg(n.footer,a),On(a,n,"footer"))},XR=(e,n)=>{const a=ct.innerParams.get(e),r=tl();if(!r)return;if(a&&n.icon===a.icon){cw(r,n),uw(r,n);return}if(!n.icon&&!n.iconHtml){an(r);return}if(n.icon&&Object.keys(jc).indexOf(n.icon)===-1){Qr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),an(r);return}qt(r),cw(r,n),uw(r,n),We(r,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Yx)},uw=(e,n)=>{for(const[a,r]of Object.entries(jc))n.icon!==a&&na(e,r);We(e,n.icon&&jc[n.icon]),JR(e,n),Yx(),On(e,n,"icon")},Yx=()=>{const e=Je();if(!e)return;const n=window.getComputedStyle(e).getPropertyValue("background-color"),a=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r
    `,ZR=` `,cw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=dw(n.iconHtml):n.icon==="success"?(r=KR,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=ZR:n.icon&&(r=dw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&Bn(e,r)},JR=(e,n)=>{if(n.iconColor){e.style.color=n.iconColor,e.style.borderColor=n.iconColor;for(const a of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])lw(e,a,"background-color",n.iconColor);lw(e,".swal2-success-ring","border-color",n.iconColor)}},dw=e=>`
    ${e}
    `,WR=(e,n)=>{const a=Px();if(a){if(!n.imageUrl){an(a);return}qt(a,""),a.setAttribute("src",n.imageUrl),a.setAttribute("alt",n.imageAlt||""),Hr(a,"width",n.imageWidth),Hr(a,"height",n.imageHeight),a.className=Y.image,On(a,n,"image")}};let wg=!1,$x=0,Xx=0,Kx=0,Zx=0;const eN=e=>{e.addEventListener("mousedown",Nc),document.body.addEventListener("mousemove",Tc),e.addEventListener("mouseup",kc),e.addEventListener("touchstart",Nc),document.body.addEventListener("touchmove",Tc),e.addEventListener("touchend",kc)},tN=e=>{e.removeEventListener("mousedown",Nc),document.body.removeEventListener("mousemove",Tc),e.removeEventListener("mouseup",kc),e.removeEventListener("touchstart",Nc),document.body.removeEventListener("touchmove",Tc),e.removeEventListener("touchend",kc)},Nc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){wg=!0;const a=Jx(e);$x=a.clientX,Xx=a.clientY,Kx=parseInt(n.style.insetInlineStart)||0,Zx=parseInt(n.style.insetBlockStart)||0,We(n,"swal2-dragging")}},Tc=e=>{const n=Je();if(wg){let{clientX:a,clientY:r}=Jx(e);n.style.insetInlineStart=`${Kx+(a-$x)}px`,n.style.insetBlockStart=`${Zx+(r-Xx)}px`}},kc=()=>{const e=Je();wg=!1,na(e,"swal2-dragging")},Jx=e=>{let n=0,a=0;return e.type.startsWith("mouse")?(n=e.clientX,a=e.clientY):e.type.startsWith("touch")&&(n=e.touches[0].clientX,a=e.touches[0].clientY),{clientX:n,clientY:a}},nN=(e,n)=>{const a=fn(),r=Je();if(!(!a||!r)){if(n.toast){Hr(a,"width",n.width),r.style.width="100%";const o=al();o&&r.insertBefore(o,tl())}else Hr(r,"width",n.width);Hr(r,"padding",n.padding),n.color&&(r.style.color=n.color),n.background&&(r.style.background=n.background),an(td()),aN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),eN(r)):(na(r,Y.draggable),tN(r))}},aN=(e,n)=>{const a=n.showClass||{};e.className=`${Y.popup} ${bn(e)?a.popup:""}`,n.toast?(We([document.documentElement,document.body],Y["toast-shown"]),We(e,Y.toast)):We(e,Y.modal),On(e,n,"popup"),typeof n.customClass=="string"&&We(e,n.customClass),n.icon&&We(e,Y[`icon-${n.icon}`])},iN=(e,n)=>{const a=dg();if(!a)return;const{progressSteps:r,currentProgressStep:o}=n;if(!r||r.length===0||o===void 0){an(a);return}qt(a),a.textContent="",o>=r.length&&cn("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((u,f)=>{const m=rN(u);if(a.appendChild(m),f===o&&We(m,Y["active-progress-step"]),f!==r.length-1){const p=sN(n);a.appendChild(p)}})},rN=e=>{const n=document.createElement("li");return We(n,Y["progress-step"]),Bn(n,e),n},sN=e=>{const n=document.createElement("li");return We(n,Y["progress-step-line"]),e.progressStepsDistance&&Hr(n,"width",e.progressStepsDistance),n},lN=(e,n)=>{const a=Fx();a&&(gg(a),Do(a,n.title||n.titleText,"block"),n.title&&yg(n.title,a),n.titleText&&(a.innerText=n.titleText),On(a,n,"title"))},Wx=(e,n)=>{nN(e,n),LR(e,n),iN(e,n),XR(e,n),WR(e,n),lN(e,n),zR(e,n),YR(e,n),OR(e,n),$R(e,n);const a=Je();typeof n.didRender=="function"&&a&&n.didRender(a),je.eventEmitter.emit("didRender",a)},oN=()=>bn(Je()),e2=()=>{var e;return(e=Ma())===null||e===void 0?void 0:e.click()},uN=()=>{var e;return(e=Gr())===null||e===void 0?void 0:e.click()},cN=()=>{var e;return(e=nl())===null||e===void 0?void 0:e.click()},il=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),t2=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},dN=(e,n,a)=>{t2(e),n.toast||(e.keydownHandler=r=>hN(n,r,a),e.keydownTarget=n.keydownListenerCapture?window:Je(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Tm=(e,n)=>{var a;const r=hg();if(r.length){e=e+n,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();return}(a=Je())===null||a===void 0||a.focus()},n2=["ArrowRight","ArrowDown"],fN=["ArrowLeft","ArrowUp"],hN=(e,n,a)=>{e&&(n.isComposing||n.keyCode===229||(e.stopKeydownPropagation&&n.stopPropagation(),n.key==="Enter"?mN(n,e):n.key==="Tab"?gN(n):[...n2,...fN].includes(n.key)?pN(n.key):n.key==="Escape"&&yN(n,e,a)))},mN=(e,n)=>{if(!ed(n.allowEnterKey))return;const a=id(Je(),n.input);if(e.target&&a&&e.target instanceof HTMLElement&&e.target.outerHTML===a.outerHTML){if(["textarea","file"].includes(n.input))return;e2(),e.preventDefault()}},gN=e=>{const n=e.target,a=hg();let r=-1;for(let o=0;o{const n=Mo(),a=Ma(),r=Gr(),o=nl();if(!n||!a||!r||!o)return;const u=[a,r,o];if(document.activeElement instanceof HTMLElement&&!u.includes(document.activeElement))return;const f=n2.includes(e)?"nextElementSibling":"previousElementSibling";let m=document.activeElement;if(m){for(let p=0;p{ed(n.allowEscapeKey)&&(e.preventDefault(),a(il.esc))};var Ys={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const vN=()=>{const e=fn();Array.from(document.body.children).forEach(a=>{a.contains(e)||(a.hasAttribute("aria-hidden")&&a.setAttribute("data-previous-aria-hidden",a.getAttribute("aria-hidden")||""),a.setAttribute("aria-hidden","true"))})},a2=()=>{Array.from(document.body.children).forEach(n=>{n.hasAttribute("data-previous-aria-hidden")?(n.setAttribute("aria-hidden",n.getAttribute("data-previous-aria-hidden")||""),n.removeAttribute("data-previous-aria-hidden")):n.removeAttribute("aria-hidden")})},i2=typeof window<"u"&&!!window.GestureEvent,wN=()=>{if(i2&&!ri(document.body,Y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,We(document.body,Y.iosfix),bN()}},bN=()=>{const e=fn();if(!e)return;let n;e.ontouchstart=a=>{n=xN(a)},e.ontouchmove=a=>{n&&(a.preventDefault(),a.stopPropagation())}},xN=e=>{const n=e.target,a=fn(),r=cg();return!a||!r||SN(e)||AN(e)?!1:n===a||!ow(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(ow(r)&&r.contains(n))},SN=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",AN=e=>e.touches&&e.touches.length>1,CN=()=>{if(ri(document.body,Y.iosfix)){const e=parseInt(document.body.style.top,10);na(document.body,Y.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},EN=()=>{const e=document.createElement("div");e.className=Y["scrollbar-measure"],document.body.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),n};let Ms=null;const jN=e=>{Ms===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(Ms=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ms+EN()}px`)},RN=()=>{Ms!==null&&(document.body.style.paddingRight=`${Ms}px`,Ms=null)};function r2(e,n,a,r){ad()?fw(e,r):(fR(a).then(()=>fw(e,r)),t2(je)),i2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),mg()&&(RN(),CN(),a2()),NN()}function NN(){na([document.documentElement,document.body],[Y.shown,Y["height-auto"],Y["no-backdrop"],Y["toast-shown"]])}function Yi(e){e=kN(e);const n=Ys.swalPromiseResolve.get(this),a=TN(this);this.isAwaitingPromise?e.isDismissed||(_o(this),n(e)):a&&n(e)}const TN=e=>{const n=Je();if(!n)return!1;const a=ct.innerParams.get(e);if(!a||ri(n,a.hideClass.popup))return!1;na(n,a.showClass.popup),We(n,a.hideClass.popup);const r=fn();return na(r,a.showClass.backdrop),We(r,a.hideClass.backdrop),MN(e,n,a),!0};function s2(e){const n=Ys.swalPromiseReject.get(this);_o(this),n&&n(e)}const _o=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,ct.innerParams.get(e)||e._destroy())},kN=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),MN=(e,n,a)=>{var r;const o=fn(),u=Qx(n);typeof a.willClose=="function"&&a.willClose(n),(r=je.eventEmitter)===null||r===void 0||r.emit("willClose",n),u?DN(e,n,o,a.returnFocus,a.didClose):r2(e,o,a.returnFocus,a.didClose)},DN=(e,n,a,r,o)=>{je.swalCloseEventFinishedCallback=r2.bind(null,e,a,r,o);const u=function(f){if(f.target===n){var m;(m=je.swalCloseEventFinishedCallback)===null||m===void 0||m.call(je),delete je.swalCloseEventFinishedCallback,n.removeEventListener("animationend",u),n.removeEventListener("transitionend",u)}};n.addEventListener("animationend",u),n.addEventListener("transitionend",u)},fw=(e,n)=>{setTimeout(()=>{var a;typeof n=="function"&&n.bind(e.params)(),(a=je.eventEmitter)===null||a===void 0||a.emit("didClose"),e._destroy&&e._destroy()})},$s=e=>{let n=Je();if(n||new Tn,n=Je(),!n)return;const a=al();ad()?an(tl()):ON(n,e),qt(a),n.setAttribute("data-loading","true"),n.setAttribute("aria-busy","true"),n.focus()},ON=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n&&bn(Ma())&&(n=Ma()),qt(a),n&&(an(n),r.setAttribute("data-button-to-replace",n.className),a.insertBefore(r,n)),We([e,a],Y.loading))},_N=(e,n)=>{n.input==="select"||n.input==="radio"?HN(e,n):["text","email","number","tel","textarea"].some(a=>a===n.input)&&(og(n.inputValue)||ug(n.inputValue))&&($s(Ma()),FN(e,n))},BN=(e,n)=>{const a=e.getInput();if(!a)return null;switch(n.input){case"checkbox":return zN(a);case"radio":return LN(a);case"file":return UN(a);default:return n.inputAutoTrim?a.value.trim():a.value}},zN=e=>e.checked?1:0,LN=e=>e.checked?e.value:null,UN=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,HN=(e,n)=>{const a=Je();if(!a)return;const r=o=>{n.input==="select"?PN(a,Mc(o),n):n.input==="radio"&&VN(a,Mc(o),n)};og(n.inputOptions)||ug(n.inputOptions)?($s(Ma()),To(n.inputOptions).then(o=>{e.hideLoading(),r(o)})):typeof n.inputOptions=="object"?r(n.inputOptions):Qr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof n.inputOptions}`)},FN=(e,n)=>{const a=e.getInput();a&&(an(a),To(n.inputValue).then(r=>{a.value=n.input==="number"?`${parseFloat(r)||0}`:`${r}`,qt(a),a.focus(),e.hideLoading()}).catch(r=>{Qr(`Error in inputValue promise: ${r}`),a.value="",qt(a),a.focus(),e.hideLoading()}))};function PN(e,n,a){const r=Gi(e,Y.select);if(!r)return;const o=(u,f,m)=>{const p=document.createElement("option");p.value=m,Bn(p,f),p.selected=l2(m,a.inputValue),u.appendChild(p)};n.forEach(u=>{const f=u[0],m=u[1];if(Array.isArray(m)){const p=document.createElement("optgroup");p.label=f,p.disabled=!1,r.appendChild(p),m.forEach(g=>o(p,g[1],g[0]))}else o(r,m,f)}),r.focus()}function VN(e,n,a){const r=Gi(e,Y.radio);if(!r)return;n.forEach(u=>{const f=u[0],m=u[1],p=document.createElement("input"),g=document.createElement("label");p.type="radio",p.name=Y.radio,p.value=f,l2(f,a.inputValue)&&(p.checked=!0);const y=document.createElement("span");Bn(y,m),y.className=Y.label,g.appendChild(p),g.appendChild(y),r.appendChild(g)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}const Mc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Mc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Mc(r)),n.push([a,r])}),n},l2=(e,n)=>!!n&&n.toString()===e.toString(),IN=e=>{const n=ct.innerParams.get(e);e.disableButtons(),n.input?o2(e,"confirm"):xg(e,!0)},qN=e=>{const n=ct.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?o2(e,"deny"):bg(e,!1)},QN=(e,n)=>{e.disableButtons(),n(il.cancel)},o2=(e,n)=>{const a=ct.innerParams.get(e);if(!a.input){Qr(`The "input" parameter is needed to be set when using returnInputValueOn${lg(n)}`);return}const r=e.getInput(),o=BN(e,a);a.inputValidator?GN(e,o,n):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(a.validationMessage||r.validationMessage)):n==="deny"?bg(e,o):xg(e,o)},GN=(e,n,a)=>{const r=ct.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>To(r.inputValidator(n,r.validationMessage))).then(u=>{e.enableButtons(),e.enableInput(),u?e.showValidationMessage(u):a==="deny"?bg(e,n):xg(e,n)})},bg=(e,n)=>{const a=ct.innerParams.get(e||void 0);a.showLoaderOnDeny&&$s(Gr()),a.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>To(a.preDeny(n,a.validationMessage))).then(o=>{o===!1?(e.hideLoading(),_o(e)):e.close({isDenied:!0,value:typeof o>"u"?n:o})}).catch(o=>u2(e||void 0,o))):e.close({isDenied:!0,value:n})},hw=(e,n)=>{e.close({isConfirmed:!0,value:n})},u2=(e,n)=>{e.rejectPromise(n)},xg=(e,n)=>{const a=ct.innerParams.get(e||void 0);a.showLoaderOnConfirm&&$s(),a.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>To(a.preConfirm(n,a.validationMessage))).then(o=>{bn(td())||o===!1?(e.hideLoading(),_o(e)):hw(e,typeof o>"u"?n:o)}).catch(o=>u2(e||void 0,o))):hw(e,n)};function Dc(){const e=ct.innerParams.get(this);if(!e)return;const n=ct.domCache.get(this);an(n.loader),ad()?e.icon&&qt(tl()):YN(n),na([n.popup,n.actions],Y.loading),n.popup.removeAttribute("aria-busy"),n.popup.removeAttribute("data-loading"),n.confirmButton.disabled=!1,n.denyButton.disabled=!1,n.cancelButton.disabled=!1}const YN=e=>{const n=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));n.length?qt(n[0],"inline-block"):xR()&&an(e.actions)};function c2(){const e=ct.innerParams.get(this),n=ct.domCache.get(this);return n?id(n.popup,e.input):null}function d2(e,n,a){const r=ct.domCache.get(e);n.forEach(o=>{r[o].disabled=a})}function f2(e,n){const a=Je();if(!(!a||!e))if(e.type==="radio"){const r=a.querySelectorAll(`[name="${Y.radio}"]`);for(let o=0;oObject.prototype.hasOwnProperty.call(Ds,e),b2=e=>$N.indexOf(e)!==-1,x2=e=>XN[e],ZN=e=>{w2(e)||cn(`Unknown parameter "${e}"`)},JN=e=>{KN.includes(e)&&cn(`The parameter "${e}" is incompatible with toasts`)},WN=e=>{const n=x2(e);n&&Hx(e,n)},S2=e=>{e.backdrop===!1&&e.allowOutsideClick&&cn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(e.theme)&&cn(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const n in e)ZN(n),e.toast&&JN(n),WN(n)};function A2(e){const n=fn(),a=Je(),r=ct.innerParams.get(this);if(!a||ri(a,r.hideClass.popup)){cn("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const o=e6(e),u=Object.assign({},r,o);S2(u),n.dataset.swal2Theme=u.theme,Wx(this,u),ct.innerParams.set(this,u),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const e6=e=>{const n={};return Object.keys(e).forEach(a=>{b2(a)?n[a]=e[a]:cn(`Invalid parameter to update: ${a}`)}),n};function C2(){const e=ct.domCache.get(this),n=ct.innerParams.get(this);if(!n){E2(this);return}e.popup&&je.swalCloseEventFinishedCallback&&(je.swalCloseEventFinishedCallback(),delete je.swalCloseEventFinishedCallback),typeof n.didDestroy=="function"&&n.didDestroy(),je.eventEmitter.emit("didDestroy"),t6(this)}const t6=e=>{E2(e),delete e.params,delete je.keydownHandler,delete je.keydownTarget,delete je.currentInstance},E2=e=>{e.isAwaitingPromise?(qh(ct,e),e.isAwaitingPromise=!0):(qh(Ys,e),qh(ct,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},qh=(e,n)=>{for(const a in e)e[a].delete(n)};var n6=Object.freeze({__proto__:null,_destroy:C2,close:Yi,closeModal:Yi,closePopup:Yi,closeToast:Yi,disableButtons:m2,disableInput:p2,disableLoading:Dc,enableButtons:h2,enableInput:g2,getInput:c2,handleAwaitingPromise:_o,hideLoading:Dc,rejectPromise:s2,resetValidationMessage:v2,showValidationMessage:y2,update:A2});const a6=(e,n,a)=>{e.toast?i6(e,n,a):(s6(n),l6(n),o6(e,n,a))},i6=(e,n,a)=>{n.popup.onclick=()=>{e&&(r6(e)||e.timer||e.input)||a(il.close)}},r6=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let Oc=!1;const s6=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(Oc=!0)}}},l6=e=>{e.container.onmousedown=n=>{n.target===e.container&&n.preventDefault(),e.popup.onmouseup=function(a){e.popup.onmouseup=()=>{},(a.target===e.popup||a.target instanceof HTMLElement&&e.popup.contains(a.target))&&(Oc=!0)}}},o6=(e,n,a)=>{n.container.onclick=r=>{if(Oc){Oc=!1;return}r.target===n.container&&ed(e.allowOutsideClick)&&a(il.backdrop)}},u6=e=>typeof e=="object"&&e.jquery,mw=e=>e instanceof Element||u6(e),c6=e=>{const n={};return typeof e[0]=="object"&&!mw(e[0])?Object.assign(n,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||mw(o)?n[a]=o:o!==void 0&&Qr(`Unexpected type of ${a}! Expected "string" or "Element", got ${typeof o}`)}),n};function d6(){for(var e=arguments.length,n=new Array(e),a=0;aje.timeout&&je.timeout.getTimerLeft(),j2=()=>{if(je.timeout)return SR(),je.timeout.stop()},R2=()=>{if(je.timeout){const e=je.timeout.start();return pg(e),e}},m6=()=>{const e=je.timeout;return e&&(e.running?j2():R2())},g6=e=>{if(je.timeout){const n=je.timeout.increase(e);return pg(n,!0),n}},p6=()=>!!(je.timeout&&je.timeout.isRunning());let gw=!1;const km={};function y6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";km[e]=this,gw||(document.body.addEventListener("click",v6),gw=!0)}const v6=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in km){const r=n.getAttribute(a);if(r){km[a].fire({template:r});return}}};class w6{constructor(){this.events={}}_getHandlersByEventName(n){return typeof this.events[n]>"u"&&(this.events[n]=[]),this.events[n]}on(n,a){const r=this._getHandlersByEventName(n);r.includes(a)||r.push(a)}once(n,a){var r=this;const o=function(){r.removeListener(n,o);for(var u=arguments.length,f=new Array(u),m=0;m1?a-1:0),o=1;o{try{u.apply(this,r)}catch(f){console.error(f)}})}removeListener(n,a){const r=this._getHandlersByEventName(n),o=r.indexOf(a);o>-1&&r.splice(o,1)}removeAllListeners(n){this.events[n]!==void 0&&(this.events[n].length=0)}reset(){this.events={}}}je.eventEmitter=new w6;const b6=(e,n)=>{je.eventEmitter.on(e,n)},x6=(e,n)=>{je.eventEmitter.once(e,n)},S6=(e,n)=>{if(!e){je.eventEmitter.reset();return}n?je.eventEmitter.removeListener(e,n):je.eventEmitter.removeAllListeners(e)};var A6=Object.freeze({__proto__:null,argsToParams:c6,bindClickHandler:y6,clickCancel:cN,clickConfirm:e2,clickDeny:uN,enableLoading:$s,fire:d6,getActions:Mo,getCancelButton:nl,getCloseButton:fg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:hg,getFooter:Vx,getHtmlContainer:cg,getIcon:tl,getIconContent:pR,getImage:Px,getInputLabel:yR,getLoader:al,getPopup:Je,getProgressSteps:dg,getTimerLeft:h6,getTimerProgressBar:nd,getTitle:Fx,getValidationMessage:td,increaseTimer:g6,isDeprecatedParameter:x2,isLoading:wR,isTimerRunning:p6,isUpdatableParameter:b2,isValidParameter:w2,isVisible:oN,mixin:f6,off:S6,on:b6,once:x6,resumeTimer:R2,showLoading:$s,stopTimer:j2,toggleTimer:m6});class C6{constructor(n,a){this.callback=n,this.remaining=a,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(n){const a=this.running;return a&&this.stop(),this.remaining+=n,a&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const N2=["swal-title","swal-html","swal-footer"],E6=e=>{const n=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!n)return{};const a=n.content;return O6(a),Object.assign(j6(a),R6(a),N6(a),T6(a),k6(a),M6(a),D6(a,N2))},j6=e=>{const n={};return Array.from(e.querySelectorAll("swal-param")).forEach(r=>{Ir(r,["name","value"]);const o=r.getAttribute("name"),u=r.getAttribute("value");!o||!u||(typeof Ds[o]=="boolean"?n[o]=u!=="false":typeof Ds[o]=="object"?n[o]=JSON.parse(u):n[o]=u)}),n},R6=e=>{const n={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(r=>{const o=r.getAttribute("name"),u=r.getAttribute("value");!o||!u||(n[o]=new Function(`return ${u}`)())}),n},N6=e=>{const n={};return Array.from(e.querySelectorAll("swal-button")).forEach(r=>{Ir(r,["type","color","aria-label"]);const o=r.getAttribute("type");!o||!["confirm","cancel","deny"].includes(o)||(n[`${o}ButtonText`]=r.innerHTML,n[`show${lg(o)}Button`]=!0,r.hasAttribute("color")&&(n[`${o}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(n[`${o}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),n},T6=e=>{const n={},a=e.querySelector("swal-image");return a&&(Ir(a,["src","width","height","alt"]),a.hasAttribute("src")&&(n.imageUrl=a.getAttribute("src")||void 0),a.hasAttribute("width")&&(n.imageWidth=a.getAttribute("width")||void 0),a.hasAttribute("height")&&(n.imageHeight=a.getAttribute("height")||void 0),a.hasAttribute("alt")&&(n.imageAlt=a.getAttribute("alt")||void 0)),n},k6=e=>{const n={},a=e.querySelector("swal-icon");return a&&(Ir(a,["type","color"]),a.hasAttribute("type")&&(n.icon=a.getAttribute("type")),a.hasAttribute("color")&&(n.iconColor=a.getAttribute("color")),n.iconHtml=a.innerHTML),n},M6=e=>{const n={},a=e.querySelector("swal-input");a&&(Ir(a,["type","label","placeholder","value"]),n.input=a.getAttribute("type")||"text",a.hasAttribute("label")&&(n.inputLabel=a.getAttribute("label")),a.hasAttribute("placeholder")&&(n.inputPlaceholder=a.getAttribute("placeholder")),a.hasAttribute("value")&&(n.inputValue=a.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(n.inputOptions={},r.forEach(o=>{Ir(o,["value"]);const u=o.getAttribute("value");if(!u)return;const f=o.innerHTML;n.inputOptions[u]=f})),n},D6=(e,n)=>{const a={};for(const r in n){const o=n[r],u=e.querySelector(o);u&&(Ir(u,[]),a[o.replace(/^swal-/,"")]=u.innerHTML.trim())}return a},O6=e=>{const n=N2.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(a=>{const r=a.tagName.toLowerCase();n.includes(r)||cn(`Unrecognized element <${r}>`)})},Ir=(e,n)=>{Array.from(e.attributes).forEach(a=>{n.indexOf(a.name)===-1&&cn([`Unrecognized attribute "${a.name}" on <${e.tagName.toLowerCase()}>.`,`${n.length?`Allowed attributes are: ${n.join(", ")}`:"To set the value, use HTML within the element."}`])})},T2=10,_6=e=>{const n=fn(),a=Je();typeof e.willOpen=="function"&&e.willOpen(a),je.eventEmitter.emit("willOpen",a);const o=window.getComputedStyle(document.body).overflowY;L6(n,a,e),setTimeout(()=>{B6(n,a)},T2),mg()&&(z6(n,e.scrollbarPadding,o),vN()),!ad()&&!je.previousActiveElement&&(je.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),je.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},_c=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",_c),n.removeEventListener("transitionend",_c),a.style.overflowY="auto"},B6=(e,n)=>{Qx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",_c),n.addEventListener("transitionend",_c)):e.style.overflowY="auto"},z6=(e,n,a)=>{wN(),n&&a!=="hidden"&&jN(a),setTimeout(()=>{e.scrollTop=0})},L6=(e,n,a)=>{We(e,a.showClass.backdrop),a.animation?(n.style.setProperty("opacity","0","important"),qt(n,"grid"),setTimeout(()=>{We(n,a.showClass.popup),n.style.removeProperty("opacity")},T2)):qt(n,"grid"),We([document.documentElement,document.body],Y.shown),a.heightAuto&&a.backdrop&&!a.toast&&We([document.documentElement,document.body],Y["height-auto"])};var pw={email:(e,n)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid email address"),url:(e,n)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid URL")};function U6(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=pw.email),e.input==="url"&&(e.inputValidator=pw.url))}function H6(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(cn('Target parameter is not valid, defaulting to "body"'),e.target="body")}function F6(e){U6(e),e.showLoaderOnConfirm&&!e.preConfirm&&cn(`showLoaderOnConfirm is set to true, but preConfirm is not defined. showLoaderOnConfirm should be used together with preConfirm, see usage example: https://sweetalert2.github.io/#ajax-request`),H6(e),typeof e.title=="string"&&(e.title=e.title.split(` `).join("
    ")),kR(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(oR(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r1&&arguments[1]!==void 0?arguments[1]:{};if(S2(Object.assign({},a,n)),je.currentInstance){const u=Ys.swalPromiseResolve.get(je.currentInstance),{isAwaitingPromise:f}=je.currentInstance;je.currentInstance._destroy(),f||u({isDismissed:!0}),mg()&&a2()}je.currentInstance=Ea;const r=V6(n,a);F6(r),Object.freeze(r),je.timeout&&(je.timeout.stop(),delete je.timeout),clearTimeout(je.restoreFocusTimeout);const o=I6(Ea);return Wx(Ea,r),ct.innerParams.set(Ea,r),P6(Ea,o,r)}then(n){return rw(ac,this).then(n)}finally(n){return rw(ac,this).finally(n)}}const P6=(e,n,a)=>new Promise((r,o)=>{const u=f=>{e.close({isDismissed:!0,dismiss:f})};Ys.swalPromiseResolve.set(e,r),Ys.swalPromiseReject.set(e,o),n.confirmButton.onclick=()=>{IN(e)},n.denyButton.onclick=()=>{qN(e)},n.cancelButton.onclick=()=>{QN(e,u)},n.closeButton.onclick=()=>{u(il.close)},a6(a,n,u),dN(je,a,u),_N(e,a),_6(a),q6(je,a,u),Q6(n,a),setTimeout(()=>{n.container.scrollTop=0})}),V6=(e,n)=>{const a=E6(e),r=Object.assign({},Ds,n,a,e);return r.showClass=Object.assign({},Ds.showClass,r.showClass),r.hideClass=Object.assign({},Ds.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},I6=e=>{const n={popup:Je(),container:fn(),actions:Mo(),confirmButton:Ma(),denyButton:Gr(),cancelButton:nl(),loader:al(),closeButton:fg(),validationMessage:td(),progressSteps:dg()};return ct.domCache.set(e,n),n},q6=(e,n,a)=>{const r=nd();an(r),n.timer&&(e.timeout=new C6(()=>{a("timer"),delete e.timeout},n.timer),n.timerProgressBar&&(qt(r),On(r,n,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&pg(n.timer)})))},Q6=(e,n)=>{if(!n.toast){if(!ed(n.allowEnterKey)){Hx("allowEnterKey"),$6();return}G6(e)||Y6(e,n)||Tm(-1,1)}},G6=e=>{const n=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const a of n)if(a instanceof HTMLElement&&bn(a))return a.focus(),!0;return!1},Y6=(e,n)=>n.focusDeny&&bn(e.denyButton)?(e.denyButton.focus(),!0):n.focusCancel&&bn(e.cancelButton)?(e.cancelButton.focus(),!0):n.focusConfirm&&bn(e.confirmButton)?(e.confirmButton.focus(),!0):!1,$6=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,n=localStorage.getItem("swal-initiation");n?(e.getTime()-Date.parse(n))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const a=document.createElement("audio");a.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",a.loop=!0,document.body.appendChild(a),setTimeout(()=>{a.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}Mt.prototype.disableButtons=m2;Mt.prototype.enableButtons=h2;Mt.prototype.getInput=c2;Mt.prototype.disableInput=p2;Mt.prototype.enableInput=g2;Mt.prototype.hideLoading=Dc;Mt.prototype.disableLoading=Dc;Mt.prototype.showValidationMessage=y2;Mt.prototype.resetValidationMessage=v2;Mt.prototype.close=Yi;Mt.prototype.closePopup=Yi;Mt.prototype.closeModal=Yi;Mt.prototype.closeToast=Yi;Mt.prototype.rejectPromise=s2;Mt.prototype.update=A2;Mt.prototype._destroy=C2;Object.assign(Mt,A6);Object.keys(n6).forEach(e=>{Mt[e]=function(){return Ea&&Ea[e]?Ea[e](...arguments):null}});Mt.DismissReason=il;Mt.version="11.21.0";const Tn=Mt;Tn.default=Tn;typeof document<"u"&&function(e,n){var a=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(a),a.styleSheet)a.styleSheet.disabled||(a.styleSheet.cssText=n);else try{a.innerHTML=n}catch{a.innerText=n}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.1s, box-shadow 0.1s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.1s, box-shadow 0.1s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-button-darken-hover: rgba(0, 0, 0, 0.1);--swal2-button-darken-active: rgba(0, 0, 0, 0.2);--swal2-button-transition: box-shadow 0.1s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(var(--swal2-button-darken-hover), var(--swal2-button-darken-hover))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(var(--swal2-button-darken-active), var(--swal2-button-darken-active))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-button-transition);box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:1px solid #d9d9d9;border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const X6=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"}));var Mm=function(e,n){return Mm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(a[o]=r[o])},Mm(e,n)};function K6(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Mm(e,n);function a(){this.constructor=e}e.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}var Vt=function(){return Vt=Object.assign||function(n){for(var a,r=1,o=arguments.length;rn},ie64:function(){return k.ie()&&v},firefox:function(){return C()||a},opera:function(){return C()||r},webkit:function(){return C()||o},safari:function(){return k.webkit()},chrome:function(){return C()||u},windows:function(){return C()||p},osx:function(){return C()||m},linux:function(){return C()||g},iphone:function(){return C()||b},mobile:function(){return C()||b||x||y||j},nativeApp:function(){return C()||S},android:function(){return C()||y},ipad:function(){return C()||x}};return Qh=k,Qh}var Gh,vw;function J6(){if(vw)return Gh;vw=1;var e=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};return Gh=n,Gh}var Yh,ww;function W6(){if(ww)return Yh;ww=1;var e=J6(),n;e.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */function a(r,o){if(!e.canUseDOM||o&&!("addEventListener"in document))return!1;var u="on"+r,f=u in document;if(!f){var m=document.createElement("div");m.setAttribute(u,"return;"),f=typeof m[u]=="function"}return!f&&n&&r==="wheel"&&(f=document.implementation.hasFeature("Events.wheel","3.0")),f}return Yh=a,Yh}var $h,bw;function eT(){if(bw)return $h;bw=1;var e=Z6(),n=W6(),a=10,r=40,o=800;function u(f){var m=0,p=0,g=0,y=0;return"detail"in f&&(p=f.detail),"wheelDelta"in f&&(p=-f.wheelDelta/120),"wheelDeltaY"in f&&(p=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(m=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(m=p,p=0),g=m*a,y=p*a,"deltaY"in f&&(y=f.deltaY),"deltaX"in f&&(g=f.deltaX),(g||y)&&f.deltaMode&&(f.deltaMode==1?(g*=r,y*=r):(g*=o,y*=o)),g&&!m&&(m=g<1?-1:1),y&&!p&&(p=y<1?-1:1),{spinX:m,spinY:p,pixelX:g,pixelY:y}}return u.getEventType=function(){return e.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},$h=u,$h}var Xh,xw;function tT(){return xw||(xw=1,Xh=eT()),Xh}var nT=tT();const aT=Bc(nT);function iT(e,n,a,r,o,u){u===void 0&&(u=0);var f=Xs(e,n,u),m=f.width,p=f.height,g=Math.min(m,a),y=Math.min(p,r);return g>y*o?{width:y*o,height:y}:{width:g,height:g/o}}function rT(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function uo(e,n,a,r,o){o===void 0&&(o=0);var u=Xs(n.width,n.height,o),f=u.width,m=u.height;return{x:Sw(e.x,f,a.width,r),y:Sw(e.y,m,a.height,r)}}function Sw(e,n,a,r){var o=n*r/2-a/2;return rd(e,-o,o)}function Aw(e,n){return Math.sqrt(Math.pow(e.y-n.y,2)+Math.pow(e.x-n.x,2))}function Cw(e,n){return Math.atan2(n.y-e.y,n.x-e.x)*180/Math.PI}function sT(e,n,a,r,o,u,f){u===void 0&&(u=0),f===void 0&&(f=!0);var m=f?lT:oT,p=Xs(n.width,n.height,u),g=Xs(n.naturalWidth,n.naturalHeight,u),y={x:m(100,((p.width-a.width/o)/2-e.x/o)/p.width*100),y:m(100,((p.height-a.height/o)/2-e.y/o)/p.height*100),width:m(100,a.width/p.width*100/o),height:m(100,a.height/p.height*100/o)},v=Math.round(m(g.width,y.width*g.width/100)),b=Math.round(m(g.height,y.height*g.height/100)),x=g.width>=g.height*r,S=x?{width:Math.round(b*r),height:b}:{width:v,height:Math.round(v/r)},j=Vt(Vt({},S),{x:Math.round(m(g.width-S.width,y.x*g.width/100)),y:Math.round(m(g.height-S.height,y.y*g.height/100))});return{croppedAreaPercentages:y,croppedAreaPixels:j}}function lT(e,n){return Math.min(e,Math.max(0,n))}function oT(e,n){return n}function uT(e,n,a,r,o,u){var f=Xs(n.width,n.height,a),m=rd(r.width/f.width*(100/e.width),o,u),p={x:m*f.width/2-r.width/2-f.width*m*(e.x/100),y:m*f.height/2-r.height/2-f.height*m*(e.y/100)};return{crop:p,zoom:m}}function cT(e,n,a){var r=rT(n);return a.height>a.width?a.height/(e.height*r):a.width/(e.width*r)}function dT(e,n,a,r,o,u){a===void 0&&(a=0);var f=Xs(n.naturalWidth,n.naturalHeight,a),m=rd(cT(e,n,r),o,u),p=r.height>r.width?r.height/e.height:r.width/e.width,g={x:((f.width-e.width)/2-e.x)*p,y:((f.height-e.height)/2-e.y)*p};return{crop:g,zoom:m}}function Ew(e,n){return{x:(n.x+e.x)/2,y:(n.y+e.y)/2}}function fT(e){return e*Math.PI/180}function Xs(e,n,a){var r=fT(a);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*n),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*n)}}function rd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n0}).join(" ").trim()}var hT=`.reactEasyCrop_Container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; user-select: none; touch-action: none; cursor: move; display: flex; justify-content: center; align-items: center; } .reactEasyCrop_Image, .reactEasyCrop_Video { will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */ } .reactEasyCrop_Contain { max-width: 100%; max-height: 100%; margin: auto; position: absolute; top: 0; bottom: 0; left: 0; right: 0; } .reactEasyCrop_Cover_Horizontal { width: 100%; height: auto; } .reactEasyCrop_Cover_Vertical { width: auto; height: 100%; } .reactEasyCrop_CropArea { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, 0.5); box-sizing: border-box; box-shadow: 0 0 0 9999em; color: rgba(0, 0, 0, 0.5); overflow: hidden; } .reactEasyCrop_CropAreaRound { border-radius: 50%; } .reactEasyCrop_CropAreaGrid::before { content: ' '; box-sizing: border-box; position: absolute; border: 1px solid rgba(255, 255, 255, 0.5); top: 0; bottom: 0; left: 33.33%; right: 33.33%; border-top: 0; border-bottom: 0; } .reactEasyCrop_CropAreaGrid::after { content: ' '; box-sizing: border-box; position: absolute; border: 1px solid rgba(255, 255, 255, 0.5); top: 33.33%; bottom: 33.33%; left: 0; right: 0; border-left: 0; border-right: 0; } `,mT=1,gT=3,pT=1,yT=function(e){K6(n,e);function n(){var a=e!==null&&e.apply(this,arguments)||this;return a.cropperRef=E.createRef(),a.imageRef=E.createRef(),a.videoRef=E.createRef(),a.containerPosition={x:0,y:0},a.containerRef=null,a.styleRef=null,a.containerRect=null,a.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},a.dragStartPosition={x:0,y:0},a.dragStartCrop={x:0,y:0},a.gestureZoomStart=0,a.gestureRotationStart=0,a.isTouching=!1,a.lastPinchDistance=0,a.lastPinchRotation=0,a.rafDragTimeout=null,a.rafPinchTimeout=null,a.wheelTimer=null,a.currentDoc=typeof document<"u"?document:null,a.currentWindow=typeof window<"u"?window:null,a.resizeObserver=null,a.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},a.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!a.containerRef)){var r=!0;a.resizeObserver=new window.ResizeObserver(function(o){if(r){r=!1;return}a.computeSizes()}),a.resizeObserver.observe(a.containerRef)}},a.preventZoomSafari=function(r){return r.preventDefault()},a.cleanEvents=function(){a.currentDoc&&(a.currentDoc.removeEventListener("mousemove",a.onMouseMove),a.currentDoc.removeEventListener("mouseup",a.onDragStopped),a.currentDoc.removeEventListener("touchmove",a.onTouchMove),a.currentDoc.removeEventListener("touchend",a.onDragStopped),a.currentDoc.removeEventListener("gesturemove",a.onGestureMove),a.currentDoc.removeEventListener("gestureend",a.onGestureEnd),a.currentDoc.removeEventListener("scroll",a.onScroll))},a.clearScrollEvent=function(){a.containerRef&&a.containerRef.removeEventListener("wheel",a.onWheel),a.wheelTimer&&clearTimeout(a.wheelTimer)},a.onMediaLoad=function(){var r=a.computeSizes();r&&(a.emitCropData(),a.setInitialCrop(r)),a.props.onMediaLoaded&&a.props.onMediaLoaded(a.mediaSize)},a.setInitialCrop=function(r){if(a.props.initialCroppedAreaPercentages){var o=uT(a.props.initialCroppedAreaPercentages,a.mediaSize,a.props.rotation,r,a.props.minZoom,a.props.maxZoom),u=o.crop,f=o.zoom;a.props.onCropChange(u),a.props.onZoomChange&&a.props.onZoomChange(f)}else if(a.props.initialCroppedAreaPixels){var m=dT(a.props.initialCroppedAreaPixels,a.mediaSize,a.props.rotation,r,a.props.minZoom,a.props.maxZoom),u=m.crop,f=m.zoom;a.props.onCropChange(u),a.props.onZoomChange&&a.props.onZoomChange(f)}},a.computeSizes=function(){var r,o,u,f,m,p,g=a.imageRef.current||a.videoRef.current;if(g&&a.containerRef){a.containerRect=a.containerRef.getBoundingClientRect(),a.saveContainerPosition();var y=a.containerRect.width/a.containerRect.height,v=((r=a.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((o=a.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,b=((u=a.imageRef.current)===null||u===void 0?void 0:u.naturalHeight)||((f=a.videoRef.current)===null||f===void 0?void 0:f.videoHeight)||0,x=g.offsetWidthS?{width:a.containerRect.height*S,height:a.containerRect.height}:{width:a.containerRect.width,height:a.containerRect.width/S};break;case"horizontal-cover":j={width:a.containerRect.width,height:a.containerRect.width/S};break;case"vertical-cover":j={width:a.containerRect.height*S,height:a.containerRect.height};break}else j={width:g.offsetWidth,height:g.offsetHeight};a.mediaSize=Vt(Vt({},j),{naturalWidth:v,naturalHeight:b}),a.props.setMediaSize&&a.props.setMediaSize(a.mediaSize);var C=a.props.cropSize?a.props.cropSize:iT(a.mediaSize.width,a.mediaSize.height,a.containerRect.width,a.containerRect.height,a.props.aspect,a.props.rotation);return(((m=a.state.cropSize)===null||m===void 0?void 0:m.height)!==C.height||((p=a.state.cropSize)===null||p===void 0?void 0:p.width)!==C.width)&&a.props.onCropSizeChange&&a.props.onCropSizeChange(C),a.setState({cropSize:C},a.recomputeCropPosition),a.props.setCropSize&&a.props.setCropSize(C),C}},a.saveContainerPosition=function(){if(a.containerRef){var r=a.containerRef.getBoundingClientRect();a.containerPosition={x:r.left,y:r.top}}},a.onMouseDown=function(r){a.currentDoc&&(r.preventDefault(),a.currentDoc.addEventListener("mousemove",a.onMouseMove),a.currentDoc.addEventListener("mouseup",a.onDragStopped),a.saveContainerPosition(),a.onDragStart(n.getMousePoint(r)))},a.onMouseMove=function(r){return a.onDrag(n.getMousePoint(r))},a.onScroll=function(r){a.currentDoc&&(r.preventDefault(),a.saveContainerPosition())},a.onTouchStart=function(r){a.currentDoc&&(a.isTouching=!0,!(a.props.onTouchRequest&&!a.props.onTouchRequest(r))&&(a.currentDoc.addEventListener("touchmove",a.onTouchMove,{passive:!1}),a.currentDoc.addEventListener("touchend",a.onDragStopped),a.saveContainerPosition(),r.touches.length===2?a.onPinchStart(r):r.touches.length===1&&a.onDragStart(n.getTouchPoint(r.touches[0]))))},a.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?a.onPinchMove(r):r.touches.length===1&&a.onDrag(n.getTouchPoint(r.touches[0]))},a.onGestureStart=function(r){a.currentDoc&&(r.preventDefault(),a.currentDoc.addEventListener("gesturechange",a.onGestureMove),a.currentDoc.addEventListener("gestureend",a.onGestureEnd),a.gestureZoomStart=a.props.zoom,a.gestureRotationStart=a.props.rotation)},a.onGestureMove=function(r){if(r.preventDefault(),!a.isTouching){var o=n.getMousePoint(r),u=a.gestureZoomStart-1+r.scale;if(a.setNewZoom(u,o,{shouldUpdatePosition:!0}),a.props.onRotationChange){var f=a.gestureRotationStart+r.rotation;a.props.onRotationChange(f)}}},a.onGestureEnd=function(r){a.cleanEvents()},a.onDragStart=function(r){var o,u,f=r.x,m=r.y;a.dragStartPosition={x:f,y:m},a.dragStartCrop=Vt({},a.props.crop),(u=(o=a.props).onInteractionStart)===null||u===void 0||u.call(o)},a.onDrag=function(r){var o=r.x,u=r.y;a.currentWindow&&(a.rafDragTimeout&&a.currentWindow.cancelAnimationFrame(a.rafDragTimeout),a.rafDragTimeout=a.currentWindow.requestAnimationFrame(function(){if(a.state.cropSize&&!(o===void 0||u===void 0)){var f=o-a.dragStartPosition.x,m=u-a.dragStartPosition.y,p={x:a.dragStartCrop.x+f,y:a.dragStartCrop.y+m},g=a.props.restrictPosition?uo(p,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):p;a.props.onCropChange(g)}}))},a.onDragStopped=function(){var r,o;a.isTouching=!1,a.cleanEvents(),a.emitCropData(),(o=(r=a.props).onInteractionEnd)===null||o===void 0||o.call(r)},a.onWheel=function(r){if(a.currentWindow&&!(a.props.onWheelRequest&&!a.props.onWheelRequest(r))){r.preventDefault();var o=n.getMousePoint(r),u=aT(r).pixelY,f=a.props.zoom-u*a.props.zoomSpeed/200;a.setNewZoom(f,o,{shouldUpdatePosition:!0}),a.state.hasWheelJustStarted||a.setState({hasWheelJustStarted:!0},function(){var m,p;return(p=(m=a.props).onInteractionStart)===null||p===void 0?void 0:p.call(m)}),a.wheelTimer&&clearTimeout(a.wheelTimer),a.wheelTimer=a.currentWindow.setTimeout(function(){return a.setState({hasWheelJustStarted:!1},function(){var m,p;return(p=(m=a.props).onInteractionEnd)===null||p===void 0?void 0:p.call(m)})},250)}},a.getPointOnContainer=function(r,o){var u=r.x,f=r.y;if(!a.containerRect)throw new Error("The Cropper is not mounted");return{x:a.containerRect.width/2-(u-o.x),y:a.containerRect.height/2-(f-o.y)}},a.getPointOnMedia=function(r){var o=r.x,u=r.y,f=a.props,m=f.crop,p=f.zoom;return{x:(o+m.x)/p,y:(u+m.y)/p}},a.setNewZoom=function(r,o,u){var f=u===void 0?{}:u,m=f.shouldUpdatePosition,p=m===void 0?!0:m;if(!(!a.state.cropSize||!a.props.onZoomChange)){var g=rd(r,a.props.minZoom,a.props.maxZoom);if(p){var y=a.getPointOnContainer(o,a.containerPosition),v=a.getPointOnMedia(y),b={x:v.x*g-y.x,y:v.y*g-y.y},x=a.props.restrictPosition?uo(b,a.mediaSize,a.state.cropSize,g,a.props.rotation):b;a.props.onCropChange(x)}a.props.onZoomChange(g)}},a.getCropData=function(){if(!a.state.cropSize)return null;var r=a.props.restrictPosition?uo(a.props.crop,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):a.props.crop;return sT(r,a.mediaSize,a.state.cropSize,a.getAspect(),a.props.zoom,a.props.rotation,a.props.restrictPosition)},a.emitCropData=function(){var r=a.getCropData();if(r){var o=r.croppedAreaPercentages,u=r.croppedAreaPixels;a.props.onCropComplete&&a.props.onCropComplete(o,u),a.props.onCropAreaChange&&a.props.onCropAreaChange(o,u)}},a.emitCropAreaChange=function(){var r=a.getCropData();if(r){var o=r.croppedAreaPercentages,u=r.croppedAreaPixels;a.props.onCropAreaChange&&a.props.onCropAreaChange(o,u)}},a.recomputeCropPosition=function(){if(a.state.cropSize){var r=a.props.restrictPosition?uo(a.props.crop,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):a.props.crop;a.props.onCropChange(r),a.emitCropData()}},a.onKeyDown=function(r){var o,u,f=a.props,m=f.crop,p=f.onCropChange,g=f.keyboardStep,y=f.zoom,v=f.rotation,b=g;if(a.state.cropSize){r.shiftKey&&(b*=.2);var x=Vt({},m);switch(r.key){case"ArrowUp":x.y-=b,r.preventDefault();break;case"ArrowDown":x.y+=b,r.preventDefault();break;case"ArrowLeft":x.x-=b,r.preventDefault();break;case"ArrowRight":x.x+=b,r.preventDefault();break;default:return}a.props.restrictPosition&&(x=uo(x,a.mediaSize,a.state.cropSize,y,v)),r.repeat||(u=(o=a.props).onInteractionStart)===null||u===void 0||u.call(o),p(x)}},a.onKeyUp=function(r){var o,u;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}a.emitCropData(),(u=(o=a.props).onInteractionEnd)===null||u===void 0||u.call(o)},a}return n.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=hT,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},n.prototype.componentWillUnmount=function(){var a,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(a=this.resizeObserver)===null||a===void 0||a.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},n.prototype.componentDidUpdate=function(a){var r,o,u,f,m,p,g,y,v;a.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):a.aspect!==this.props.aspect?this.computeSizes():a.objectFit!==this.props.objectFit?this.computeSizes():a.zoom!==this.props.zoom?this.recomputeCropPosition():((r=a.cropSize)===null||r===void 0?void 0:r.height)!==((o=this.props.cropSize)===null||o===void 0?void 0:o.height)||((u=a.cropSize)===null||u===void 0?void 0:u.width)!==((f=this.props.cropSize)===null||f===void 0?void 0:f.width)?this.computeSizes():(((m=a.crop)===null||m===void 0?void 0:m.x)!==((p=this.props.crop)===null||p===void 0?void 0:p.x)||((g=a.crop)===null||g===void 0?void 0:g.y)!==((y=this.props.crop)===null||y===void 0?void 0:y.y))&&this.emitCropAreaChange(),a.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),a.video!==this.props.video&&((v=this.videoRef.current)===null||v===void 0||v.load());var b=this.getObjectFit();b!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:b},this.computeSizes)},n.prototype.getAspect=function(){var a=this.props,r=a.cropSize,o=a.aspect;return r?r.width/r.height:o},n.prototype.getObjectFit=function(){var a,r,o,u;if(this.props.objectFit==="cover"){var f=this.imageRef.current||this.videoRef.current;if(f&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var m=this.containerRect.width/this.containerRect.height,p=((a=this.imageRef.current)===null||a===void 0?void 0:a.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,g=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((u=this.videoRef.current)===null||u===void 0?void 0:u.videoHeight)||0,y=p/g;return ya.onload=u);const r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.width,r.height=n.height,o.drawImage(a,n.x,n.y,n.width,n.height,0,0,n.width,n.height),new Promise(u=>{r.toBlob(f=>u(URL.createObjectURL(f)),"image/jpeg")})}const k2=({image:e,onCropComplete:n})=>{const[a,r]=E.useState({x:0,y:0}),[o,u]=E.useState(1),f=E.useCallback(async(m,p)=>{const g=await vT(e,p);n(g)},[e,n]);return c.jsxs("div",{className:"relative w-full h-96 bg-gray-200 flex flex-col items-center justify-center",children:[c.jsx(yT,{image:e,crop:a,zoom:o,aspect:1,onCropChange:r,onZoomChange:u,onCropComplete:f}),c.jsx("button",{className:"mt-4 px-6 py-2 bg-blue-600 text-white font-semibold rounded-lg",onClick:()=>f(),children:"Simpan Crop"})]})};k2.propTypes={image:Be.string.isRequired,onCropComplete:Be.func.isRequired};const Bo="/assets/Ellipse%201-BVGZo3uy.png",zo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA5zSURBVHgB7Z39cxT1Hcffu3d5ziWX8JQglYsBFAkClVQsAySFFrUj0OoPwoyK5ZeOMx3tOP1Z/AvEX/1F7HR02ukUaK2jtUi0Ba08hQFBIZID8kQMEMgTuaft57N3h5fcd2/3br97t4F7zRwke3uXu33v5/H73e8qcDlad7cfHk8bSksXIhJpgqouhKYFoCh+ejr5AG70JV6AYajKMP0Q1H+P4RRUdCOqnULE26msWjUMF6PAZWj9/Xywt9JBX0mPNtoUsPTCpCDmfyFI798JxbMf0fAppeUnnXARrhBEu3KljQ7SNjr7t8KqANOxLEjaXw8CagdisXeV5a0dKDAFE0R3ReXlr5AVbKNfV8IuOQuSComjenfjNj4j1xZEAci7IFpPDx/8nWQNLyLp/2UgRZBUlL0IqW/kW5i8CaLHBk17h35sgxNIFyRJfoVxXBDdNZWVvU4/vgoncUyQJPkRRoWDaAMDr5AY3XBajLyg7URp5JB27uSLcBBHLMRx9yTCcQtJQUEHJj0vOWEt0i1EtwpNO4l8ipFvNPpupdGT2tmj0i1fmoXkLVYYkU8LSUVR9igPP/p7SEKKIAkXtQ8y6olcKZQgOlS/hLztMlyYbZeVEOMQCilGwVECesA/eTIAm9gSRC/y4vEigHseJaDHlTNf2ToxcxZEF0NV2TLkVdszHz8U9ZAdUXISpChGRmyJkrUgeswoimFGXJQcYkpWgqQE8KIY5vhzCfTZWUhcjACKWEThQL+PRLF8AlsWROvrexNFMXJhJcpir1vd2ZIgejvkrmgQFghNe9Vqm8W0Uk/EDa413B03ClqpW2IYIc8qs2re3ELiXdtiELcP9fqi75jtlFEQso6duJu7tvmGusRmrsvQZaWkuAHMBNzvspKw62oymh9mbCGx2G4Usyon8GfKuoQWkrCObriAa7296O3qwvjNmxi7dQtaLIbSigpU1daivqEB8xcvRhn9PoMsJE7cSoLTN3uFO7N1KIWbQxe6fRsXOztx/vhxjA1nnvmp0OdsbG5GQ8MsNC9dAm+JFzOCeIBvn7457agX2jr6LlzAyYMHcevatexed/kyGu9fgLU/b8PCxc2YEWixVdOnsqYL0tu7l047R2dWiIiEwzj+8ce4eOoUcoEFSfLQyha0PbUZVTXVcDUa3lJaVk/JuqYIUijrCE1M4MsPPkDv+fPIlVRBmNo6P57a/gzmk9W4mLSMa3qW1YY8EwmFbIsh4uaNYfztnfdwqcsVuYkRfngjUyxkqiCaZrkJJotjH32UUQxN0zA2MoLrQ0MY7OvDVXoMXb2K4evXMUnBPxOTZHn/+NNfcLW3H65FVbZO+TX5g35JQJ7rDo4X3adPGz7PB3Swv5/O9hu4PT6OSCSCKD1Ck5MYHx3FtcFBfE/ihMjKDN+DRPvgvb/i9kRm8QrISu300bbkLz/kiKq6E3lgkg7sdT6I9P+JTz4x3G+E6g5+mBEmcYYGBnCT9q3x+WigLr3WHb52HUc7DmPdkxuRDWydl7su4sbQdYRJ9LrZs9D4o/soWfBBKnxtDNDBP3pTNm6AA/CXGqYzuevECfRfvGhaVzCjVABaESOV8bGx+EGrq4PHm16LfPX5YaxYsxo1dbWm7xWLRnH66An879B/6HOMTHmO655VP30Mq9etgc9v/l6WUHS3pccSPctKTFo4CcmM04HlmqKHYkSMXI0V2DVxvMiW/r54pV5aVqaLogosZU37Oqzd/LOM7xMOhXHwwIf4+njmK93mNs7Dtp074KutgRQSlXv8U3s80ie5XfnmG3z49tu4fPasZTE4RnCwtgPHlzGKLyK+PX0284vJmj//8F+mYjCD/Vfx9z/+2TSxsExJhN1WIqhr2lZI5NwXX+DIvn26f8+GUXJTMepV2WWcrEz0PjeGrpE7HDF83fkz59D55TFYZaC3D//9+FNIQVFX8H9Ju5ZmIZw1dX76adYHlq2D44AM+G+HqfIXMTQwKNzO8efg/n8iW05/dYLS8QFIoI3/UfVZ65LS3RFyN8eprshElAImx4lbFNz5wQF8goTINoibYZQK3zJIKrrPU0d5bFz4HFvcyIjYsvj7HPl3B+yjBXh2ihderzTr4F5U2OBAsAXwQZ+QZAVmcHYngoO2iDNHxTnNJLndmyki+nzpKe+lCxf1Oqe8ohy2qMAGVVZA7//uOz2tFcEicXWdLzF0DAQxcqWDBtX8CFlwklGykqggQeHGaBfFH9tEIk0qfcIAJHD2yBHhdv4CnMZybu8GFME4zySd3WOj6ScLH+jpsYjdl4jey1cg4dMFVErYV8Am43TmfH9F/IE4jY1aTHulYjDAJqpPDN2s4CSaoHaOiJEbEmKgogWkXGPIw6win81fVFqeniVG452qJ/0ri9ot+r6C7RzERd91fFyGO1YW8l8MwCZ9FD9EjKb4X7fg8XjStpVXVghdWUlJSZoo/Hqjfe2j+Pmv2Z4EN0wBW0Q4Qxe2UIjObj7IjYKBLD7w1SlZlZd6ZNyWEVFZXQUJn87PXTjbgkwYtCoihYgdCTSD7aFJ8UkSWNKMvkvpcbCqqgpl1B9jvF7jCRRLVyyHBPxSYojorDOqA/KFUVbX031ZuP2Rxx6lxmSp8DkWIpMYVWRFDyxdAhlIEUT0YdnclQJOJeJ0VXRSXPmum0YQ0+dwVVVXU3u+Fbmw+dkt8EqJIZIEqZ0zR7i9orIShYLdpchlcjeYG4IisdY/uQn3L2pCNqx/YhOaHlwEWbAg5iNGJswLBITbq2skjRXkiFEbnlsdRpX5s7ueR0vrKphRU+/X921tWwuJDHt2v/bab2EzsPNUzgvHj6dtVxMpZijLNnwujAqaf2wh5eXlwlQ3Go1h0bKH0razm1308IOY09igJwDc++L34feopAA/774GPL5xA9q3PIHZ88SeIXeUAXb+ti3EV1+vT+fs6+pKf662Vh+gGstnHysF7kXVz5qVtj14oUtvjRj5/sUkFj94H24csoOroOahrFghRNP0EcMgJLCivd0wiNfSAfEVyH1NUi0kaiiO3RqlVrx5u4MFqK7x0ef3OStGAm4uXoIE/HPnYkmrcZbi8/vJxOfFZ6rnEwreRu0bo8GqAnLKS72BICSxfP16DFGT8Vq/OGDyBIRZlJHxGctxZYI6pzxY5XTNYlSg8pCuu2CXFYkEIYkSOuBtO3ag0sQ9cX+onCyljlzZ3Pnz9Tijqs6tNhg1GAOJhAvXSRCioVOldKMDEimlrGbTCy9QWlhvaX/OXliQeSRMuUPuTDWIbR6vB64i4u1UlaYmzrKCkAhf3bR51y40LV9uuVrnFng9ubNaat7JrvCNgrG/vg7uQQvyLPjkNKDPIBlvaSnWbNmCtu3b0fDAA5Zfx32hutmzpYpSWiruUdXOcpMg0C+MiTeheHF6wJGLdBqamvTH9z09CJ45g8Fg0PTqKHZdbC08mdouFfReol5bla8KcxrmwTWoXl4i8Y4g+8lK3oSDzFmwQH/oc30HBnDp7FmcP3bMcHi3jGIRuy+e+Z4rHJ9qasXzb+9f1JyXusIy0bBuIbrLUhobg5AcR4xgV1TX2IiVGzfi6Zdf1q3HCHZfldW5XZbGYtRRYiHK3vQJ04/n1tl1BoofiWsNf/i0sdgB5JkKOuDtlCZz/WIEWwlbSzbo9Q7FIaNh1WbqVTW66lI3tePOT3e2adp+FIiWdevw0Jo1wuf4bOZ4wp1js0DPI3uzqLbhh6ihyPj8NWh/+gm4iljs3eSPUy/67Ovj6XsFW+710PvvY8Bgsh3D8YabhTz4xCOC/OE5m+MsapgSBdWTua5gQX/9mx0ILJY3fmEfclfLWu/47enXGObdbaWydts2vXNsBF+I46fn51BPjAtJrvLryTWx9VgR4xfPPO0yMQD9BjKpv055MhTaAwnt+FzhJTM2PPccKmslXZmUgGPQL7c/g5bV5gNPBWBKDThFEL1qT/FnhcBHQXzT88/r3WMZLFzSjF1/+B0efGQZ3IeyV1k6db2T9JUcHLq8LVt4atHXhw/jwjFrF9BMXziAL85cQyN7PL3HycalLVRPk6kgDAV3XierDS6Ap6l+e/Qorpw7l/EiIBaELwdYuGQRWn68AguaAxmn7hQeso5lj76UtlW0q5uWZ0rC16wPUfuFx1tuDg3pl8txIOd4U0furdITwYKmhZgxCKyDMV5RrqdnD9n6K5gpzKj1ssTWwRg713B4NwqYcd298L0S1TeMnjUUJDFOYvjCIjlCdYfIVSUxX7fXRQE+IzPBZWnoUFpWt2faxTwfVBT2dUXXZRe+i7XH85LZbqaCJFrzRddlG+2NTK4qiaWKSZk/fw8VAW+hSG7oS/m17rGyq+WB68Rt8dx78y/XxpCp3VwzLPcU9KxLUX6FPI0s3h3otwNvz+YVWTV59HiiKPwHikHeDA7iJIaVuJFK1l03XZRYrChKJlgMxLIWg8mpDaosWNBZFMWApBjTFki2Ss596aIoAmyKwdgaKNBFURQehgvinocCuMezyo4YjO2Rm5RAH8S9S2cuAVyElKE0FoWKx6Z7snikog8hjxQxGOkXklMzkpc75RWyba8QkRX5Lgz1eEHtEIsVuFUcubI/MeLI98doQ77IpyDUteVGoSyrSMXRpRb0m4rF15MPwGnyIYhDVpGKo9MxKLbs1QO+phV0apEUOFaEaRzcQTGYvC1Gorux+K2UnLlZjFMW4qB7EpH31WEcE0amILprAll1bK/duiJb8i5IEl0YDvqyYowcQaj7oB1AxLvH6D6DTlMwQVLR713Ct8uI36EhgFzIWRAlqE8y17T9yvLWDhQYVwiSij6VldcSjq9Hz4NhAUsvtCwIC0BxQdU6Mek5YHaz4HzjOkGmo49U8urbJSUreKHhlGVtA4gXn/ECNCkI+39FGSZB6X/wwb9EuWQ3IvR/1NNRKFdklf8DYxwEor4iWjMAAAAASUVORK5CYII=",sd=()=>c.jsx("div",{children:c.jsx("div",{className:"flex-col gap-4 w-full h-96 flex items-center justify-center",children:c.jsx("div",{className:"w-20 h-20 border-4 border-transparent text-sky-800 text-4xl animate-spin flex items-center justify-center border-t-blue-400 rounded-full",children:c.jsx("div",{className:"w-16 h-16 border-4 border-transparent text-gray-500 text-2xl animate-spin flex items-center justify-center border-t-red-400 rounded-full"})})})}),Sg=({handleDoctorSelect:e})=>{var x;const[n,a]=E.useState(""),[r,o]=E.useState(1),u=8,{data:f,isLoading:m,isError:p}=el({queryKey:["doctors",n],queryFn:()=>Mn.getListDoctors({search:n}),staleTime:5*60*1e3,cacheTime:30*60*1e3}),y=(((x=f==null?void 0:f.data)==null?void 0:x.data)||[]).filter(S=>S.name.toLowerCase().includes(n.toLowerCase())),v=Math.ceil(y.length/u),b=y.slice((r-1)*u,r*u);return c.jsxs("div",{className:"w-full pt-4",children:[c.jsxs("div",{className:"w-full flex items-center bg-white shadow-md rounded-lg px-4 py-2 mb-6 mx-auto",children:[c.jsx(Ic,{className:"text-gray-400 mr-2"}),c.jsx("input",{type:"text",placeholder:"Cari dokter",value:n,onChange:S=>{a(S.target.value),o(1)},className:"flex- outline-none bg-transparent text-gray-700"})]}),m?c.jsx(sd,{}):p?c.jsx("p",{className:"text-center text-red-500",children:"Gagal memuat data dokter."}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4",children:b.map(S=>c.jsxs("div",{className:"flex flex-col items-center bg-white rounded-xl shadow-md p-4",children:[c.jsx("img",{src:"https://img.freepik.com/free-photo/young-female-doctor-office_1303-18666.jpg?w=200",alt:"dokter",className:"w-20 h-20 rounded-full object-cover mb-4"}),c.jsxs("p",{className:"font-semibold text-center",children:["dr. ",S.name]}),c.jsx("button",{onClick:()=>e==null?void 0:e(S),className:"mt-3 bg-sky-900 text-white px-6 py-2 rounded-full cursor-pointer",children:"Pilih Dokter"})]},S.id))}),v>1&&c.jsxs("div",{className:"flex justify-center items-center space-x-2 mt-8",children:[c.jsx("button",{onClick:()=>o(S=>Math.max(S-1,1)),disabled:r===1,className:"px-3 py-1 rounded-md bg-white border disabled:opacity-50",children:c.jsx(db,{className:"m-1"})}),Array.from({length:v},(S,j)=>j+1).map(S=>c.jsx("button",{onClick:()=>o(S),className:`px-3 py-1 rounded-md border ${r===S?"bg-sky-900 text-white":"bg-white text-gray-700"}`,children:S},S)),c.jsx("button",{onClick:()=>o(S=>Math.min(S+1,v)),disabled:r===v,className:"px-3 py-1 rounded-md bg-white border disabled:opacity-50",children:c.jsx(fb,{className:"m-1"})})]})]})]})};Sg.propTypes={handleDoctorSelect:Be.func};const wT=()=>{var fe;const[e,n]=E.useState(null),[a,r]=E.useState(null),[o,u]=E.useState(!1),[f,m]=E.useState(!0),[p,g]=E.useState(null),[y,v]=E.useState(!1),[b,x]=E.useState(!1),S=E.useRef(!1),[j,C]=E.useState(""),[k,z]=E.useState(null),{user:_}=Wi(),Z=(fe=_==null?void 0:_.data)==null?void 0:fe.id,R=Ec({mutationFn:ge=>Mn.createDetection(ge),onSuccess:ge=>{var De;console.log("Detection submitted successfully:",ge),g((De=ge==null?void 0:ge.data)==null?void 0:De.data),v(!1)},onError:ge=>{var De,ce,P;console.error("Detailed error response:",{status:(De=ge.response)==null?void 0:De.status,data:(ce=ge.response)==null?void 0:ce.data,headers:(P=ge.response)==null?void 0:P.headers}),v(!1)}}),W=async ge=>{if(!b){if(x(!0),!ge){console.error("Missing cropped image URL");return}if(!Z){console.error("Patient ID not available. Current user:",_);return}try{if(v(!0),!ge.startsWith("blob:")&&!ge.startsWith("data:")){console.error("Invalid image URL format:",ge),v(!1);return}const De=await fetch(ge);if(!De.ok)throw new Error("Failed to fetch cropped image");const ce=await De.blob();if(!ce||ce.size===0)throw new Error("Empty image blob");const P=new File([ce],"diagnosis.jpg",{type:ce.type||"image/jpeg"}),H=new FormData;H.append("patient_id",Z.toString()),H.append("image",P,P.name);for(let[te,$]of H.entries())console.log(te,$ instanceof File?`${$.name} (${$.type})`:$);R.mutate(H)}catch(De){console.error("Submission error details:",{error:De.message,patientId:Z,hasCroppedImage:!!ge,userAuthStatus:!!_}),v(!1)}finally{x(!1)}}},ue=async ge=>{if(!j||!ge||!(p!=null&&p.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const De={doctorId:ge.id,complaint:j};try{const ce=await Mn.updateDetection(p.id,De,_.token);console.log("data submit:",ce),Tn.fire("Berhasil","Pengajuan berhasil dikirim ke dokter","success"),m(!0),C(""),z(null)}catch(ce){console.error(ce),Tn.fire("Gagal","Terjadi kesalahan saat mengirim data","error")}},se=async ge=>{(await Tn.fire({title:`Pilih Dokter ${ge.name}?`,text:"Apakah Anda yakin ingin mengajukan verifikasi ke dokter ini?",icon:"question",showCancelButton:!0,confirmButtonText:"Ya, pilih dokter ini",cancelButtonText:"Batal"})).isConfirmed&&(z(ge),ue(ge))},Q=ge=>{const De=ge.target.files[0];De&&(n(URL.createObjectURL(De)),r(null),g(null),m(!0),S.current=!1)},ne=(p==null?void 0:p.percentage)>=50?"Tidak Aman":"Aman";return c.jsx("div",{className:"flex justify-center py-10 px-10 md:px-20 w-full",children:c.jsxs("div",{className:"md:bg-white md:py-8 md:px-20 md:rounded-lg md:border md:border-gray-400 w-full",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Deteksi Kanker Kulit"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Masukkan gambar untuk mendeteksi kanker dari gambar yang diberikan"}),c.jsxs("div",{className:"w-full flex flex-col items-center",children:[o?c.jsx(k2,{image:e,onCropComplete:async ge=>{r(ge),u(!1),!S.current&&ge&&(S.current=!0,await W(ge))}}):c.jsx("div",{className:"w-full md:w-1/3 h-60 border-2 border-dashed border-gray-400 bg-blue-50 rounded-lg mt-6 flex justify-center items-center relative",children:a?c.jsx("img",{src:a,alt:"Cropped",className:"max-h-58 w-full object-cover rounded-lg"}):e?c.jsx("img",{src:e,alt:"Uploaded",className:"max-h-58 w-full object-cover rounded-lg"}):c.jsxs("label",{className:"cursor-pointer flex flex-col items-center text-blue-900 font-semibold",children:[c.jsx("span",{className:"text-lg",children:"+ Masukkan Gambar"}),c.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:Q})]})}),e&&!o&&c.jsx("div",{className:"w-full flex justify-center mt-3",children:a?c.jsxs("label",{className:"md:w-1/3 font-bold border border-gray-800 rounded-full px-6 py-2 cursor-pointer text-center",children:[c.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:Q}),"Ganti Foto"]}):c.jsx("button",{className:"md:w-1/3 font-bold text-white bg-sky-900 rounded-full px-6 py-2 cursor-pointer",onClick:()=>u(!0),children:"Crop Foto"})}),y&&c.jsx("div",{className:"mt-4 text-center",children:c.jsx("p",{className:"text-gray-600",children:"Memproses deteksi..."})}),a&&p&&c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),c.jsx("p",{children:p.diagnosis})]}),c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:"text-green-500",children:`${p.percentage}% ${p.diagnosisAi} (${ne})`})]})]}),a&&_&&c.jsx("button",{onClick:()=>m(ge=>!ge),className:`md:w-1/3 font-bold text-white rounded-full px-6 py-2 my-4 cursor-pointer ${f?"bg-sky-900":"bg-red-700"}`,children:f?"Ajukan Verifikasi/Keluhan":"Batalkan Pengajuan"}),!f&&a&&c.jsxs("div",{className:"w-full",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),c.jsxs("div",{className:"text-left w-full",children:[c.jsx("p",{children:"Keluhan:"}),c.jsx("textarea",{value:j,onChange:ge=>C(ge.target.value),className:"w-full h-32 border border-gray-400 rounded-lg p-2 mt-2",placeholder:"Masukkan keluhan Anda disini",required:!0}),c.jsx(Sg,{handleDoctorSelect:se}),k&&c.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",c.jsxs("strong",{children:["dr. ",k.name]})]})]})]})]}),!a&&c.jsxs("div",{className:"mt-6 text-sm text-gray-700",children:[c.jsxs("p",{className:"text-black",children:["1. Format: JPEG, PNG ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("p",{className:"text-black",children:["2. Ukuran: Maksimum 5 MB ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("p",{className:"text-black",children:["3. Resolusi: Minimal 800 x 600 piksel"," ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsx("p",{className:"text-red-500 mt-2 italic",children:"*Wajib mengikuti aturan gambar"})]})]})})},bT="/assets/doctor-B0xZjIfR.jpeg",xT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFMSURBVHgB7ZW9VcMwEMfvjgwQwgIZIRvgNIYORggdL7ADYQMKApQwAY8upkGMkAliFjBZAB1nPewnCQmbQKDJr/GzdH+dT/dhgA0NoP3S2zvhkJFGHC5nl8pe6+4fJ8RbTyH7IpvW53b8TfGgkPnZ/Yy3PHBODsznjhZxV05OIEYZQS8dT2BFSq1/C52Y8U56esjIB9AKPS+y64vQTtQBgx7I3YygBQyk5BF0QLBm3AgkaZrM16xEqSWtnTWMGXclB9Q2B8wvxePVBP4DE8F2Or5HhAH8Kqik4Y5MDojhQYp3DohnVaM1No2FaHLR3NUak0tY1BFUmCaRzfI+TcOJw5YO1Gs2HVYae1SsvUz/uA8sQjUdgwkX33bwMZ4V/JDP41oqwZ+omvTtcnaT22vyP+iTppGvxSYHpswQE89MQTn/Xfp+lUXHwoaveAeA0XugwY8BigAAAABJRU5ErkJggg==",ST=()=>{var n;const{user:e}=Wi();return c.jsxs("div",{className:"w-full min-h-screen",children:[c.jsxs("div",{className:"w-full h-80 md:h-[32rem]",children:[c.jsx("img",{src:bT,alt:"Dokter",className:"w-full h-full object-cover"}),c.jsxs("div",{className:"absolute left-8 md:left-32 top-28 md:top-48 max-w-md",children:[c.jsxs("h1",{className:"text-4xl md:text-5xl font-light text-sky-900",children:["Selamat Datang, ",c.jsx("br",{}),c.jsx("span",{className:"font-bold capitalize",children:((n=e==null?void 0:e.data)==null?void 0:n.name)||"Pasien"})]}),c.jsxs("button",{onClick:()=>window.location.href="#deteksi",className:"mt-4 md:mt-6 flex items-center gap-2 bg-white text-blue-900 font-semibold px-4 md:px-6 py-1 md:py-3 rounded-full shadow-lg cursor-pointer hover:bg-blue-100",children:[c.jsx("span",{className:"material-icons",children:c.jsx("img",{src:xT,alt:""})}),"Coba Sekarang"]})]})]}),c.jsx(sR,{}),c.jsx("div",{id:"deteksi",children:c.jsx(wT,{})})]})},ld="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAgCSURBVHgB7d0JbBRVGAfw/5vd7tHSUkCKpRERLSpIRCWtCmrrLYEEPCpFimCNF0ii4kHQqOARFY0xCl4BRaMxmBiNKAGj4oVFAsVSCi3QVmhLKZRylB67O+M3s1KEPdo53rDbfT8ym92Z2Q3sNzvvve99MwCCIAiCIAiCIAiCIAiCIAiCIAiCICQuBk6UfSvPRHvbVDCWhoTAZDjZcpY5uQYmOMGLzzcPkmMOEklAKaTHC2GCBF4UxYtEwyTTBzi/gAiGiIDEGBGQGCMCEmP49bJMatjXgnc+/Rn7m4/CTnmXD8eUCTk4XXQFRCn7+HF6XEBPXd3u3NHJ4O5+t0jKKuuxau0W2K28qj5+AkLG0uKBDa4acx7mzLjO1l+IOkq+duwFOJ30BUSR62jkDTt4PS5Mn3wFEo2+Rl1imyFwpS8gAf8fELjSF5DtaRX02A6BG11tCCsoCChlH9XQ09Pb8v3PHxt3Yiv1jHgbnJGO8fmjwJuRcUgpbA7IF9/+hdr6Zsy8/UoM7J/atf5IazvmPP857OL1upB/+fngyUBAFGpH2BTYQJZlvPbBaqz4boP2OoW+kFlF+V3bU7xu5Fx8DrbtaABvGQPTMCI7E7zpDwiTN0FxgLejxzrw3Jvf4OeS7drrszL74dabLjlpH0liWLzgLvQm+gOieKuATvB05GgbHn1xBTZt/Ud7fXZWfyxeOA2DBvT+yUfdyUU2amojTT7thwUWU66q+KmPUb37xMfVUw5r+tylXcEYNTwLyxfdkxDBUBnL9jKsg0mdnX4s+/J3bK7YjQee/gQVOxtQW3cADz/3GXY3HNT2ufmai/DWs4VISbYlWxMTjGV7FbaBgjIRJrhcTjxSfD3e+HANDrS04r55y+F0StRz6tC2F07MwWP33hj2vWpj30Q5LkWBbdLTvPC4k8CbwfS7ssOKgpWpE3PRLzUZr7y3SmvEEYwFHpyWh+I7xkV8X9FjS7F9117YKdmThCULizBy+GDwZOyUJUm/wSK35I3C0w9PoH+wSwvx7OnXRg2Gyh+QYbcOOsX6AgHwZvgwpxG7OjyO3DFP9kLPfMjBQ8e0bmzf1O6LVQIUkF27m2CnAel90D89JfpOjO1gWZOyYYKZGUN1gGDZSKlf3+Qe7+twSMgeOgi9kfE5dQWVECxnJiDrIVjORNVJwLKGXTjBeBviSK2G3OqnhsyWyhU/jT2cUujxM5sGklXVjeBtIGUK3nzmTpzRrw94MvxlsosKOpWyZTX09DxwtGfvQcxf9BWqavfh5cdvxTU5w7u2NdOAsqS0mgaI/EeI6uB1S2Ud8nJjLv1+EjWFwi0gdRSMh575lPJbh7TX+w+eXIGidkNfmjtZCxZvGTQPwzsYKnMBkdk6aoWKwME/NCE1g5KMh1uDM8Yz7xiL2266NGS/G8aN0JbewlwpqdNc11ed8atvbAlZ/+O6bZj55LKuYKiTUrOm5SMRmPuF+LANDq3oQXc6Vj3vT5nzPhr3H8YDhVfj3ilXa+tX/vQ3Fr79Lfx+asRpAPgoJRgLxo9BojAVEDZ6Rp3y90c1lIDRPceufuEOKZi5effzX7RckZuyqe9+tlZbl5bqwQuPTMKVl3HtM8Qc0ylbymmpVQahc+w9yGWppyt1LuR4o32cGoxF8wpw6cghYd+3fnO1tiiwL/9+VuYATLphdPSdTnMuK0hWdkEyFtfBg9Kx9NWZNF37BbZWBQsVBmf0xZIXipBF2yKZ//pXWjLSbi6ng3spkPmAONhGMweqOtBasmAaFn2wGm3tnZh1d37UYKgKJ+Tgz9JdCMj2/UIyBvRB7iXDwJv5U9bWTzIpHx5aqaYz/d4rWHDKMn0FFRtRROcaxn9kliAsuqSN2hHBEtYERMH3ECxhUabWmqKH7rTIh7G641e0yR0h2xj9Gee+DMOcQxDPrAmIpJRC4R+QUl8Fyn1VEbc7Ox1xHxBrTlntvhp69IMzGdGrPgLgXxXCmyUBYWPuP0bfVglijF9maPeHLur6WGXdbB9DOYJX6caE3+s9KF4zEMf8ocecet3qs7nNuGfkEcQa6+7kICv2X1Qexa91nrDBUKkTjKtqe152ZCfrAuJg8TUWsbEuWA/rTlmejB/Q1qi/6KG9Gaj+muZWwiQL1XPL0AlAanz3nPSw7BfCsserg4Na6NW4nibLy4BDO0OXFhre1KxEIrG4hIepF4Seq+st3VWMyNx700E+v3pbwtD1SfQVJfG/DOE4awOi4E/qbd2GeFNK/ZG3ltLpsyP89oKJwKSbYQdr75fFAqWIR3saIgdDVVoOu1gbENlRgd7IxokwSwOiFj1Qm9ACwTDrb/HH2F8QDLM+IAE55nJa8cT6gEhsJwTDrL+UQHJughI9DV5eWX+icLqJmpymKMUQ3k7qAQUrVrf4mtDojzwuYdIRrHUH963fkQLX3sj5qsNtPqwt+a+5q6ZsgT9K8aX6Vy0Jfq7HlYTc0UPB6856ln+qsuG9vnB7KpHsyQhXdaLeu2TuSysQzx6cmofiO8NcKRwLVSenormRQ9TTinjayj57kFZ3xegIO7EgysLCLD3dL/IHh92fRrYhyymf3SfZjWFDzgAvnK5+0lLxYe9gmXVmOr5+fzaE8Pjc2To4WSUYwCkgyhoIhvAJiE1FD70Rl4BoRQ+M8b/vXi/E739HkNhGJBpFNl01we8ac+aeTwNEGm3J8V8s1ROMtcLBnoAgCIIgCIIgCIIgCIIgJIh/AWKHeUFeYYwHAAAAAElFTkSuQmCC",M2="/assets/Ellipse%204-CrOw4YA8.png",AT=()=>{var y;const{id:e}=Hc(),n=dn(),{data:a,isLoading:r,isError:o}=el({queryKey:["submitDetect",e],queryFn:()=>Mn.getDetectionsById(e),enabled:!!e}),u=((y=a==null?void 0:a.data)==null?void 0:y.data)||[];if(r)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(o||!u)return c.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const f=a.data.data,p=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",g=f.status==="rejected"?"text-red-600":f.status==="pending"?"text-yellow-600":"text-green-600";return c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[c.jsxs("button",{onClick:()=>n("/deteksi"),className:"flex items-center gap-x-2 px-4 py-2 text-white font-bold rounded-xl bg-sky-800 hover:bg-sky-900",children:[c.jsx(Vc,{className:"text-lg"}),"Kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center mt-5",children:[c.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Detail Hasil Deteksi"}),c.jsx("p",{className:"text-sm text-gray-600",children:f.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 mx-auto my-6 object-cover",src:f.imageUrl,alt:"Hasil Deteksi Kulit"}),c.jsxs("p",{className:"w-full lg:w-1/2 mx-auto mb-4 text-left font-bold text-md",children:["ID Deteksi: ",f.id]}),c.jsx("a",{href:f.imageUrl,download:!0,className:"block w-full lg:w-1/2 mx-auto mb-6 px-4 py-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 text-center",children:"Unduh Gambar"}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{onClick:()=>f.isSubmitted==="Sudah"?n(`/deteksi/${f.id}`):n(`/pengajuan/ulang/${f.id}`),className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4 cursor-pointer",children:[c.jsx("img",{src:M2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:`font-semibold ${f.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:f.isSubmitted})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),c.jsx("p",{className:"text-sm font-normal text-gray-400 text-center",children:"*Hasil deteksi hanya berupa indikasi awal dari sistem, harap konsultasikan dengan dokter untuk kepastian diagnosis."})]})})};var mc={exports:{}},CT=mc.exports,jw;function ET(){return jw||(jw=1,function(e,n){(function(a,r){e.exports=r()})(CT,function(){var a=1e3,r=6e4,o=36e5,u="millisecond",f="second",m="minute",p="hour",g="day",y="week",v="month",b="quarter",x="year",S="date",j="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,z={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ce){var P=["th","st","nd","rd"],H=ce%100;return"["+ce+(P[(H-20)%10]||P[H]||P[0])+"]"}},_=function(ce,P,H){var te=String(ce);return!te||te.length>=P?ce:""+Array(P+1-te.length).join(H)+ce},Z={s:_,z:function(ce){var P=-ce.utcOffset(),H=Math.abs(P),te=Math.floor(H/60),$=H%60;return(P<=0?"+":"-")+_(te,2,"0")+":"+_($,2,"0")},m:function ce(P,H){if(P.date()1)return ce(N[0])}else{var X=P.name;W[X]=P,$=X}return!te&&$&&(R=$),$||!te&&R},ne=function(ce,P){if(se(ce))return ce.clone();var H=typeof P=="object"?P:{};return H.date=ce,H.args=arguments,new ge(H)},fe=Z;fe.l=Q,fe.i=se,fe.w=function(ce,P){return ne(ce,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var ge=function(){function ce(H){this.$L=Q(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[ue]=!0}var P=ce.prototype;return P.parse=function(H){this.$d=function(te){var $=te.date,oe=te.utc;if($===null)return new Date(NaN);if(fe.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var N=$.match(C);if(N){var X=N[2]-1||0,le=(N[7]||"0").substring(0,3);return oe?new Date(Date.UTC(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,le)):new Date(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,le)}}return new Date($)}(H),this.init()},P.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},P.$utils=function(){return fe},P.isValid=function(){return this.$d.toString()!==j},P.isSame=function(H,te){var $=ne(H);return this.startOf(te)<=$&&$<=this.endOf(te)},P.isAfter=function(H,te){return ne(H){var v,b,x,S;const{id:e}=Hc(),n=dn(),{user:a}=Wi(),{data:r,isLoading:o,isError:u}=el({queryKey:["submission",e],queryFn:()=>Mn.getSubmissionsById(e),enabled:!!e});if(o)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(u||!(r!=null&&r.data))return c.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const f=r.data.data,p=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",g=f.status==="rejected"?"text-red-600":f.status==="pending"?"text-yellow-600":"text-green-600",y=j=>Rw().diff(Rw(j),"year");return c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-4 lg:p-10",children:[c.jsxs("button",{onClick:()=>n("/pengajuan"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsx("div",{className:"my-5 leading-10",children:c.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"})}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2",src:f.imageUrl||"https://via.placeholder.com/600x400?text=No+Image",alt:"Hasil Deteksi"}),c.jsx("button",{className:"w-full lg:w-1/2 px-4 py-2 my-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 cursor-pointer",children:"Unduh Gambar"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[c.jsxs("div",{className:"lg:col-span-3 p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Diverifikasi Oleh"}),c.jsxs("p",{children:["Dr. ",f.verifiedBy]})]}),c.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),c.jsxs("span",{className:"flex flex-col gap-y-2",children:[c.jsxs("p",{children:["Nama: ",((v=a==null?void 0:a.data)==null?void 0:v.name)||"Pasien"]}),c.jsxs("p",{children:["Nomor Telepon: ",((b=a==null?void 0:a.data)==null?void 0:b.phone)||"-"]}),c.jsxs("p",{children:["Email: ",((x=a==null?void 0:a.data)==null?void 0:x.email)||"-"]}),c.jsxs("p",{children:["Umur: ",y((S=a==null?void 0:a.data)==null?void 0:S.dob)]})]})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),c.jsx("p",{children:f.complaint})]})]}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),c.jsxs("div",{className:"w-full text-left",children:[c.jsx("h1",{className:"text-2xl font-semibold text-center my-4",children:"Catatan Dokter"}),c.jsx("textarea",{className:"shadow-md rounded-lg w-full p-4",name:"catatan",id:"catatan",value:f.doctorNote,readOnly:!0})]})]})]})})},D2=e=>{const{diagnosis:n,percentage:a,status:r}=e;return c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),c.jsx("p",{children:a>49?"Iya":"Tidak"})]}),c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:a>49?"text-red-500":"text-green-500",children:n})]}),c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:r=="verified"?"text-green-500":"text-red-500",children:r==="verified"?"Sudah diverifikasi":"Belum diverifikasi"})]})]})};D2.propTypes={diagnosis:Be.string.isRequired,percentage:Be.number.isRequired,status:Be.string.isRequired};const Nw="/assets/default-DlLfYoqZ.png";let NT={data:""},TT=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||NT,kT=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,MT=/\/\*[^]*?\*\/| +/g,Tw=/\n+/g,_i=(e,n)=>{let a="",r="",o="";for(let u in e){let f=e[u];u[0]=="@"?u[1]=="i"?a=u+" "+f+";":r+=u[1]=="f"?_i(f,u):u+"{"+_i(f,u[1]=="k"?"":n)+"}":typeof f=="object"?r+=_i(f,n?n.replace(/([^,])+/g,m=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,m):m?m+" "+p:p)):u):f!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=_i.p?_i.p(u,f):u+":"+f+";")}return a+(n&&o?n+"{"+o+"}":o)+r},ei={},O2=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+O2(e[a]);return n}return e},DT=(e,n,a,r,o)=>{let u=O2(e),f=ei[u]||(ei[u]=(p=>{let g=0,y=11;for(;g>>0;return"go"+y})(u));if(!ei[f]){let p=u!==e?e:(g=>{let y,v,b=[{}];for(;y=kT.exec(g.replace(MT,""));)y[4]?b.shift():y[3]?(v=y[3].replace(Tw," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][y[1]]=y[2].replace(Tw," ").trim();return b[0]})(e);ei[f]=_i(o?{["@keyframes "+f]:p}:p,a?"":"."+f)}let m=a&&ei.g?ei.g:null;return a&&(ei.g=ei[f]),((p,g,y,v)=>{v?g.data=g.data.replace(v,p):g.data.indexOf(p)===-1&&(g.data=y?p+g.data:g.data+p)})(ei[f],n,r,m),f},OT=(e,n,a)=>e.reduce((r,o,u)=>{let f=n[u];if(f&&f.call){let m=f(a),p=m&&m.props&&m.props.className||/^go/.test(m)&&m;f=p?"."+p:m&&typeof m=="object"?m.props?"":_i(m,""):m===!1?"":m}return r+o+(f??"")},"");function od(e){let n=this||{},a=e.call?e(n.p):e;return DT(a.unshift?a.raw?OT(a,[].slice.call(arguments,1),n.p):a.reduce((r,o)=>Object.assign(r,o&&o.call?o(n.p):o),{}):a,TT(n.target),n.g,n.o,n.k)}let _2,Dm,Om;od.bind({g:1});let li=od.bind({k:1});function _T(e,n,a,r){_i.p=n,_2=e,Dm=a,Om=r}function er(e,n){let a=this||{};return function(){let r=arguments;function o(u,f){let m=Object.assign({},u),p=m.className||o.className;a.p=Object.assign({theme:Dm&&Dm()},m),a.o=/ *go\d+/.test(p),m.className=od.apply(a,r)+(p?" "+p:"");let g=e;return e[0]&&(g=m.as||e,delete m.as),Om&&g[0]&&Om(m),_2(g,m)}return o}}var BT=e=>typeof e=="function",_m=(e,n)=>BT(e)?e(n):e,zT=(()=>{let e=0;return()=>(++e).toString()})(),LT=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),UT=20,B2=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,UT)};case 1:return{...e,toasts:e.toasts.map(u=>u.id===n.toast.id?{...u,...n.toast}:u)};case 2:let{toast:a}=n;return B2(e,{type:e.toasts.find(u=>u.id===a.id)?1:0,toast:a});case 3:let{toastId:r}=n;return{...e,toasts:e.toasts.map(u=>u.id===r||r===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(u=>u.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let o=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(u=>({...u,pauseDuration:u.pauseDuration+o}))}}},HT=[],Kh={toasts:[],pausedAt:void 0},Ag=e=>{Kh=B2(Kh,e),HT.forEach(n=>{n(Kh)})},FT=(e,n="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||zT()}),Lo=e=>(n,a)=>{let r=FT(n,e,a);return Ag({type:2,toast:r}),r.id},Kt=(e,n)=>Lo("blank")(e,n);Kt.error=Lo("error");Kt.success=Lo("success");Kt.loading=Lo("loading");Kt.custom=Lo("custom");Kt.dismiss=e=>{Ag({type:3,toastId:e})};Kt.remove=e=>Ag({type:4,toastId:e});Kt.promise=(e,n,a)=>{let r=Kt.loading(n.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let u=n.success?_m(n.success,o):void 0;return u?Kt.success(u,{id:r,...a,...a==null?void 0:a.success}):Kt.dismiss(r),o}).catch(o=>{let u=n.error?_m(n.error,o):void 0;u?Kt.error(u,{id:r,...a,...a==null?void 0:a.error}):Kt.dismiss(r)}),e};var PT=li` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,VT=li` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,IT=li` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,qT=er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${PT} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${VT} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${IT} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,QT=li` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,GT=er("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${QT} 1s linear infinite; `,YT=li` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,$T=li` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,XT=er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${YT} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${$T} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,KT=er("div")` position: absolute; `,ZT=er("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,JT=li` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,WT=er("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${JT} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,ek=({toast:e})=>{let{icon:n,type:a,iconTheme:r}=e;return n!==void 0?typeof n=="string"?E.createElement(WT,null,n):n:a==="blank"?null:E.createElement(ZT,null,E.createElement(GT,{...r}),a!=="loading"&&E.createElement(KT,null,a==="error"?E.createElement(qT,{...r}):E.createElement(XT,{...r})))},tk=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,nk=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} `,ak="0%{opacity:0;} 100%{opacity:1;}",ik="0%{opacity:1;} 100%{opacity:0;}",rk=er("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,sk=er("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,lk=(e,n)=>{let a=e.includes("top")?1:-1,[r,o]=LT()?[ak,ik]:[tk(a),nk(a)];return{animation:n?`${li(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${li(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}};E.memo(({toast:e,position:n,style:a,children:r})=>{let o=e.height?lk(e.position||n||"top-center",e.visible):{opacity:0},u=E.createElement(ek,{toast:e}),f=E.createElement(sk,{...e.ariaProps},_m(e.message,e));return E.createElement(rk,{className:e.className,style:{...o,...a,...e.style}},typeof r=="function"?r({icon:u,message:f}):E.createElement(E.Fragment,null,u,f))});_T(E.createElement);od` z-index: 9999; > * { pointer-events: auto; } `;const ok=()=>c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 animate-pulse",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx("div",{className:"w-6 h-6 bg-gray-300 rounded-full"}),c.jsx("div",{className:"h-6 w-24 bg-gray-300 rounded"})]}),c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("div",{className:"h-6 w-48 bg-gray-300 rounded mx-auto mb-2"}),c.jsx("div",{className:"h-4 w-24 bg-gray-200 rounded mx-auto"})]}),c.jsx("div",{className:"flex justify-center",children:c.jsx("div",{className:"w-full lg:w-1/2 h-[300px] bg-gray-200 rounded-2xl mb-4"})}),c.jsx("div",{className:"w-full lg:w-1/2 h-10 bg-gray-300 rounded-full mx-auto mb-6"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[c.jsxs("div",{className:"p-4 rounded-lg shadow-md border border-gray-100",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),c.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>c.jsx("div",{className:"h-4 w-3/4 bg-gray-200 rounded"},n))})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 rounded-lg shadow-md border border-gray-100",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),c.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>c.jsx("div",{className:"h-4 w-full bg-gray-200 rounded"},n))})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6 w-full",children:[...Array(3)].map((e,n)=>c.jsx("div",{className:"h-24 bg-gray-200 rounded-lg shadow-md border border-gray-100"},n))}),c.jsxs("div",{className:"p-6 rounded-lg shadow-md w-full border border-gray-100",children:[c.jsx("div",{className:"h-6 w-40 bg-gray-300 mb-6 rounded"}),c.jsxs("div",{className:"flex gap-8 mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),c.jsx("div",{className:"w-24 h-4 bg-gray-200 rounded"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),c.jsx("div",{className:"w-32 h-4 bg-gray-200 rounded"})]})]}),c.jsxs("div",{className:"mb-6",children:[c.jsx("div",{className:"w-24 h-4 bg-gray-300 mb-2 rounded"}),c.jsx("div",{className:"h-28 w-full bg-gray-100 rounded-lg"})]}),c.jsx("div",{className:"w-full h-10 bg-gray-300 rounded-full"})]})]}),uk=()=>{const{id:e}=Hc(),n=dn(),[a,r]=E.useState(null),[o,u]=E.useState(!0),[f,m]=E.useState(""),[p,g]=E.useState(""),[y,v]=E.useState(!1),[b,x]=E.useState(!1);E.useEffect(()=>{e&&((async()=>{try{u(!0);const Z=await Ki.getSubmissionDetail(e);r(Z.data.data),console.log("Submission Data:",Z.data.data),Z.data.data.diagnosis&&m(Z.data.data.diagnosis),Z.data.data.doctorNote&&g(Z.data.data.doctorNote)}catch(Z){console.error("Error fetching submission detail:",Z),Kt.error("Gagal memuat data submission")}finally{u(!1)}})(),v(!1))},[e]);const S=()=>{v(!0),console.log("Image failed to load, using default image")},j=async()=>{if(!f){Kt.error("Silakan pilih diagnosis terlebih dahulu");return}if((await Tn.fire({title:"Konfirmasi Verifikasi",html:"Apakah Anda sudah memverifikasi data dengan benar?

    Hasil verifikasi tidak dapat diubah lagi
    Pastikan Anda memeriksa dengan benar keluhan pasien.",icon:"warning",showCancelButton:!0,confirmButtonColor:"#12476B",cancelButtonColor:"#d33",confirmButtonText:"Ya, verifikasi",cancelButtonText:"Batalkan"})).isConfirmed)try{x(!0);const Z={diagnosis:f,doctorNote:p};await Ki.verifySubmission(e,Z),Kt.success("Verifikasi berhasil"),n("/dokter/riwayat-verifikasi")}catch(Z){console.error("Error verifying submission:",Z),Kt.error("Gagal memverifikasi submission")}finally{x(!1)}},C=()=>{if(!(a!=null&&a.imageUrl)||y){Kt.error("Gambar tidak tersedia untuk diunduh");return}const _=document.createElement("a");_.href=a.imageUrl,_.download=`skin-condition-${e}.jpg`,document.body.appendChild(_),_.click(),document.body.removeChild(_)};if(o)return c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 text-center",children:[c.jsx(ok,{}),";"]});const k=(a==null?void 0:a.status)==="verified",z=y?Nw:a==null?void 0:a.imageUrl;return c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0",children:[c.jsxs("button",{onClick:()=>n("/dokter/riwayat-verifikasi"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsxs("div",{className:"my-5 leading-10",children:[c.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"}),c.jsxs("p",{children:["ID: ",e||"-"]})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover max-h-[400px]",src:z||Nw,alt:"Skin condition",onError:S}),c.jsx("button",{className:`w-full lg:w-1/2 px-4 py-2 my-2 text-white font-bold rounded-full ${y?"bg-gray-500 cursor-not-allowed":"bg-sky-800 hover:bg-sky-900 cursor-pointer"}`,onClick:C,disabled:y,children:y?"Gambar tidak tersedia":"Unduh Gambar"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[c.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md border border-gray-100",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),c.jsxs("span",{className:"flex flex-col gap-y-2",children:[c.jsxs("p",{children:["Nama: ",(a==null?void 0:a.patientName)||"-"]}),c.jsxs("p",{children:["ID Pasien: ",(a==null?void 0:a.patientId)||"-"]}),c.jsxs("p",{children:["Status: ",(a==null?void 0:a.status)||"-"]}),c.jsxs("p",{children:["Tanggal Submit: ",(a==null?void 0:a.submittedAt)||"-"]}),(a==null?void 0:a.verifiedAt)&&c.jsxs("p",{children:["Tanggal Verifikasi: ",a.verifiedAt]})]})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md border border-gray-100",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),c.jsx("p",{children:(a==null?void 0:a.complaint)||"Tidak ada keluhan"})]})]}),(a==null?void 0:a.diagnosisAi)&&c.jsx(D2,{diagnosis:a.diagnosisAi,percentage:a.percentage,status:a.status}),c.jsxs("div",{className:"p-6 mt-4 rounded-lg shadow-md w-full text-left border border-gray-100",children:[c.jsx("h1",{className:"text-xl font-semibold mb-4",children:k?"Hasil Verifikasi Dokter":"Verifikasi Hasil Deteksi"}),c.jsxs("div",{className:"mb-4",children:[c.jsx("p",{className:"font-bold mb-2",children:k?"Diagnosis Dokter:":"*Verifikasi Diagnosis"}),c.jsxs("div",{className:"flex gap-8",children:[c.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[c.jsx("input",{type:"radio",className:"w-4 h-4",name:"diagnosis",value:"Melanoma",checked:f==="Melanoma",onChange:_=>!k&&m(_.target.value),disabled:k}),c.jsx("span",{children:"Melanoma"})]}),c.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[c.jsx("input",{type:"radio",className:"w-4 h-4",name:"diagnosis",value:"Bukan Melanoma",checked:f==="Bukan Melanoma",onChange:_=>!k&&m(_.target.value),disabled:k}),c.jsx("span",{children:"Bukan Melanoma"})]})]})]}),c.jsxs("div",{className:"mb-6",children:[c.jsx("label",{htmlFor:"catatan",className:"block font-bold mb-2",children:k?"Catatan Dokter:":"Catatan:"}),k?c.jsx("div",{className:"border border-gray-200 rounded-lg w-full p-4 shadow-md min-h-[120px] bg-gray-50",children:p||"Tidak ada catatan"}):c.jsx("textarea",{id:"catatan",name:"catatan",placeholder:"Masukkan catatan untuk pasien disini",className:"border border-gray-200 rounded-lg w-full p-4 shadow-md min-h-[120px]",value:p,onChange:_=>g(_.target.value)})]}),!k&&c.jsx("button",{className:`w-full text-white font-semibold py-2 rounded-full ${b?"bg-gray-500 cursor-not-allowed":"bg-[#12476B] hover:bg-[#0f3c5b] cursor-pointer"}`,onClick:j,disabled:b,children:b?c.jsxs("div",{className:"flex items-center justify-center",children:[c.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[c.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),c.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Memproses..."]}):"Verifikasi"})]})]})]})},z2=({item:e,handleDelete:n})=>{const a=dn(),o=parseFloat(e.persentase)>=50?"text-red-600":"text-green-600",u=e.status==="rejected"?"text-red-600":e.status==="pending"?"text-yellow-600":"text-green-600",f=e.diagnosis===null?"Menunggu":e.diagnosis!=="Melanoma"?"Bukan Melanoma":"Melanoma";return c.jsx("div",{className:"block lg:hidden w-full mx-auto bg-white rounded-3xl shadow-lg p-6 mb-5",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Tanggal Pengajuan"}),c.jsx("span",{className:"text-right",children:e.date})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Diagnosis AI"}),c.jsx("span",{className:`font-semibold text-right ${o}`,children:e.persentase})]}),c.jsxs("div",{className:"flex justify-between gap-x-4 items-center",children:[c.jsx("span",{className:"font-bold",children:"Gambar"}),c.jsx("img",{src:mx,alt:"Deteksi",className:"w-24 h-24 rounded-lg shadow-md object-cover"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Keluhan"}),c.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.keluhan})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Status"}),c.jsx("span",{className:`font-semibold capitalize ${u}`,children:e.status})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Tanggal Diverifikasi"}),c.jsx("span",{children:e.tglVerif||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Verified By"}),c.jsx("span",{children:e.verifiedBy||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Melanoma"}),c.jsx("span",{children:f||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Catatan Dokter"}),c.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.doctorNote||"-"})]}),c.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[c.jsx("button",{onClick:()=>a(`/pengajuan/info/${e.id}`),className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{onClick:n,className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus"})})]})]})})};z2.propTypes={item:Be.object.isRequired,handleDelete:Be.func.isRequired};const ck=()=>{var ce;const{user:e}=Wi(),n=e==null?void 0:e.token,a=(ce=e==null?void 0:e.data)==null?void 0:ce.id,[r,o]=E.useState(!1),[u,f]=E.useState(1),[m,p]=E.useState(""),[g,y]=E.useState(5),[v,b]=E.useState(null),[x,S]=E.useState(!1),j=dn(),{data:C,isLoading:k,refetch:z}=el({queryKey:["submissions",a],queryFn:()=>Mn.getSubmissions({userId:a}),enabled:!!a,staleTime:5*60*1e3,cacheTime:30*60*1e3}),_=E.useMemo(()=>{var P;return((P=C==null?void 0:C.data)==null?void 0:P.data)||[]},[C]),Z=(_==null?void 0:_.filter(P=>{var H;return(H=P.complaint)==null?void 0:H.toLowerCase().includes(m.toLowerCase())}))||[],R=Z.length,W=Math.ceil(R/g),ue=u*g,se=ue-g,Q=Z.slice(se,ue),ne=P=>{b(P),o(!0)},fe=Ec({mutationFn:P=>Mn.deleteSubmission(P,n),onSuccess:()=>{nt.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{nt.error("Gagal menghapus data")}}),ge=()=>{uP+1)},De=()=>{u>1&&f(P=>P-1)};return c.jsxs(c.Fragment,{children:[r&&c.jsx(tg,{onClose:()=>o(!1),onDelete:()=>fe.mutate(v)}),c.jsxs("div",{className:"pt-32 w-full px-6 lg:px-3",children:[c.jsx("h1",{className:"text-3xl font-bold text-black",children:"Riwayat Pengajuan"}),c.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between gap-3 mt-6 mb-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mr-2 font-medium",children:"Tampilkan:"}),c.jsxs("select",{className:"border rounded px-3 py-1",value:g,onChange:P=>{y(Number(P.target.value)),f(1)},children:[c.jsx("option",{value:5,children:"5 data"}),c.jsx("option",{value:10,children:"10 data"}),c.jsx("option",{value:20,children:"20 data"})]})]}),c.jsx("div",{children:c.jsx("input",{type:"text",placeholder:"Cari keluhan...",className:"border rounded px-3 py-1 w-full md:w-64",value:m,onChange:P=>{p(P.target.value),f(1)}})})]}),c.jsx("button",{className:"px-4 py-2 mb-4 bg-sky-700 hover:bg-sky-600 font-semibold text-white rounded cursor-pointer",onClick:async()=>{try{S(!0),await z()}finally{S(!1)}},children:x?"Sedang memuat...":"Refresh Data 🔄"}),c.jsx("div",{className:"w-full overflow-x-auto hidden lg:block",children:c.jsxs("table",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white/60 backdrop-blur-md",children:[c.jsx("thead",{className:"border-b border-gray-200 text-left",children:c.jsxs("tr",{className:"text-black font-semibold",children:[c.jsx("th",{className:"py-4 px-6",children:"Tanggal"}),c.jsx("th",{className:"py-4 px-6",children:"Diagnosis AI"}),c.jsx("th",{className:"py-4 px-6",children:"Gambar"}),c.jsx("th",{className:"py-4 px-6",children:"Keluhan"}),c.jsx("th",{className:"py-4 px-6",children:"Status"}),c.jsx("th",{className:"py-4 px-6",children:"Tgl Verifikasi"}),c.jsx("th",{className:"py-4 px-6",children:"Verified By"}),c.jsx("th",{className:"py-4 px-6",children:"Melanoma"}),c.jsx("th",{className:"py-4 px-6",children:"Catatan Dokter"}),c.jsx("th",{className:"py-4 px-6",children:"Aksi"})]})}),c.jsx("tbody",{className:"text-left text-gray-800",children:k?c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"py-6",children:c.jsx(px,{})})}):Q.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"text-center font-bold py-6",children:"Anda belum memiliki riwayat pengajuan"})}):Q.map((P,H)=>{const $=parseFloat(P.diagnosisAi)>=50?"text-red-600":"text-green-600",oe=P.status==="rejected"?"text-red-600":P.status==="pending"?"text-yellow-600":"text-green-600";return c.jsxs("tr",{className:"*:align-middle *:py-3 *:px-6",children:[c.jsx("td",{children:P.submittedAt}),c.jsx("td",{className:`font-semibold ${$}`,children:P.diagnosisAi}),c.jsx("td",{children:c.jsx("div",{className:"w-20 h-16 rounded-lg flex items-center justify-start overflow-hidden",children:c.jsx("img",{className:"max-w-full max-h-full object-cover",src:P.imageUrl,alt:"Deteksi"})})}),c.jsx("td",{className:"px-6 text-ellipsis",children:P.complaint}),c.jsx("td",{className:`px-6 font-semibold capitalize ${oe}`,children:P.status}),c.jsx("td",{children:P.verifiedAt}),c.jsx("td",{children:P.verifiedBy}),c.jsx("td",{children:P.diagnosis}),c.jsx("td",{children:P.doctorNote}),c.jsx("td",{children:c.jsxs("div",{className:"flex gap-x-3",children:[c.jsx("button",{type:"button",onClick:()=>j(`/pengajuan/info/${P.id}`),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus",onClick:()=>ne(P.id)})})]})})]},H)})})]})}),c.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:Q.map((P,H)=>{const te={date:P.submittedAt,persentase:P.diagnosisAi,keluhan:P.complaint,status:P.status,tglVerif:P.verifiedAt,verifiedBy:P.verifiedBy,diagnosis:P.diagnosis,doctorNote:P.doctorNote};return c.jsx(z2,{item:te,handleDelete:()=>ne(P.id)},H)})}),c.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between mt-4 mb-10 px-4 text-sm text-gray-600",children:[c.jsxs("span",{children:["Halaman ",u," dari ",W,"  |  Total"," ",R," data"]}),c.jsxs("div",{className:"mt-2 lg:mt-0 flex gap-3",children:[c.jsx("button",{onClick:De,disabled:u===1,className:"px-4 py-2 rounded-md border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:"Sebelumnya"}),c.jsx("button",{onClick:ge,disabled:u===W,className:"px-4 py-2 rounded-md border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:"Selanjutnya"})]})]})]})]})},Bm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?c.jsx(jh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?c.jsx(jh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?c.jsx(jh,{to:"/dokter",replace:!0}):e};Bm.propTypes={children:Be.node};const L2=({data:e})=>{const n=dn(),[a,r]=E.useState(""),[o,u]=E.useState([]),[f,m]=E.useState(10),p=E.useMemo(()=>[{header:"Tanggal Pengajuan",accessorKey:"submittedAt"},{header:"Pasien",accessorKey:"patientName"},{header:"Diagnosis AI",accessorKey:"diagnosisAi",cell:({getValue:v})=>c.jsx("span",{className:"text-green-600 font-semibold block",children:v()})},{header:"Verifikasi Dokter",accessorKey:"diagnosis"},{header:"Catatan",accessorKey:"doctorNote",cell:({getValue:v})=>c.jsx("p",{className:"truncate max-w-[250px]",children:v()})},{header:"Detail",cell:({row:v})=>c.jsxs("button",{onClick:()=>n(`/dokter/riwayat-verifikasi/informasi-penyakit/${v.original.id}`),className:"w-full bg-[#12476B] text-white px-4 py-2 rounded-xl flex items-center justify-center gap-2",children:[c.jsx(hE,{size:18}),"Detail"]})}],[n]),g=cx({data:e,columns:p,state:{globalFilter:a,sorting:o},onGlobalFilterChange:r,onSortingChange:u,getCoreRowModel:sx(),getFilteredRowModel:lx(),getSortedRowModel:ux(),getPaginationRowModel:ox(),initialState:{pagination:{pageSize:f}}}),y=v=>{const b=Number(v.target.value);m(b),g.setPageSize(b)};return c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"mb-4 flex flex-col md:flex-row justify-between items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("label",{htmlFor:"pageSize",className:"text-sm text-gray-700 whitespace-nowrap",children:"Tampilkan"}),c.jsx("select",{id:"pageSize",value:f,onChange:y,className:"px-3 py-2 border border-gray-200 rounded-lg shadow-sm text-sm",children:[10,25,50,100].map(v=>c.jsxs("option",{value:v,children:[v," data"]},v))})]}),c.jsxs("div",{className:"relative w-full max-w-sm",children:[c.jsx(Ic,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),c.jsx("input",{type:"text",value:a??"",onChange:v=>r(v.target.value),placeholder:"Cari data...",className:"pl-10 pr-4 py-2 border border-gray-200 rounded-lg w-full shadow-sm"})]})]}),c.jsxs("table",{className:"w-full text-left",children:[c.jsx("thead",{className:"border-b border-gray-200 text-black font-semibold",children:g.getHeaderGroups().map(v=>c.jsx("tr",{children:v.headers.map(b=>c.jsx("th",{className:"py-4 px-6 text-center cursor-pointer select-none",onClick:b.column.getToggleSortingHandler(),children:c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[Sc(b.column.columnDef.header,b.getContext()),{asc:c.jsx(Yb,{size:14}),desc:c.jsx(Qb,{size:14})}[b.column.getIsSorted()]??null]})},b.id))},v.id))}),c.jsx("tbody",{className:"text-gray-800",children:g.getRowModel().rows.map((v,b)=>c.jsx("tr",{className:b%2===0?"bg-white":"bg-gray-50",children:v.getVisibleCells().map(x=>c.jsx("td",{className:"py-4 px-6 text-center",children:Sc(x.column.columnDef.cell,x.getContext())},x.id))},v.id))})]}),c.jsxs("div",{className:"mt-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[c.jsxs("div",{className:"text-sm text-gray-600",children:["Halaman ",g.getState().pagination.pageIndex+1," dari"," ",g.getPageCount(),"   |   Total:"," ",g.getFilteredRowModel().rows.length," data"]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>g.previousPage(),disabled:!g.getCanPreviousPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:[c.jsx(Xb,{}),"Sebelumnya"]}),c.jsxs("button",{onClick:()=>g.nextPage(),disabled:!g.getCanNextPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:["Selanjutnya",c.jsx(Kb,{})]})]})]})]})};L2.propTypes={data:Be.array.isRequired};const dk=()=>c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"grid grid-cols-4 font-semibold text-black py-3 border-b border-gray-300",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"})]}),[...Array(5)].map((e,n)=>c.jsxs("div",{className:"grid grid-cols-4 gap-4 py-4 border-b border-gray-100 animate-pulse",children:[c.jsx("div",{className:"h-6 bg-gray-200 rounded w-32"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-40"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]},n)),c.jsxs("div",{className:"flex justify-between items-center mt-6",children:[c.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded animate-pulse"}),c.jsxs("div",{className:"flex gap-4",children:[c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"}),c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"})]})]})]}),fk=()=>{const[e,n]=E.useState([]),[a,r]=E.useState(!0),[o,u]=E.useState(null);return E.useEffect(()=>{(async()=>{try{r(!0);const m=await Ki.getSubmissionsHistory();n(m.data.data||[]),r(!1)}catch(m){console.error("Error fetching verification history:",m),u("Failed to fetch verification history"),r(!1)}})()},[]),a?c.jsx("div",{className:"py-10 px-6 flex justify-center",children:c.jsxs("div",{className:"w-full",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center mb-6",children:"Riwayat Verifikasi"}),c.jsx(dk,{})]})}):o?c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),c.jsx("div",{className:"py-10 px-6 flex justify-center",children:c.jsx("p",{className:"text-lg text-red-500",children:o})})]}):c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),c.jsx("div",{className:"px-6 flex justify-center",children:e.length===0?c.jsxs("div",{className:"w-full flex flex-col items-center py-10",children:[c.jsx("img",{src:"/empty-state.svg",alt:"Empty",className:"w-40 h-40 mb-4 opacity-70",style:{objectFit:"contain"},onError:f=>f.target.style.display="none"}),c.jsx("p",{className:"text-lg text-gray-500",children:"Belum ada riwayat verifikasi."})]}):c.jsx(L2,{data:e})})]})},hk="/assets/errorPage-c4bJcYnY.jpeg",Zh=()=>{const e=tb(),n=dn();console.error(e);const a=()=>{n("/",{replace:!0})};return c.jsxs("div",{className:"h-screen flex flex-col items-center justify-center text-center p-4",children:[c.jsx("img",{src:hk,alt:"error",className:"w-[30rem] mb-2"}),c.jsx("p",{className:"text-lg font-bold",children:"Something went wrong."}),c.jsx("pre",{className:"bg-gray-100 p-4 mt-4 rounded text-sm text-red-700 max-w-md overflow-x-auto",children:(e==null?void 0:e.statusText)||(e==null?void 0:e.message)||"Unexpected error"}),c.jsx("button",{onClick:a,className:"mt-6 bg-blue-600 text-white px-6 py-2 rounded-full hover:bg-blue-700 transition",children:"Kembali ke halaman utama"})]})},mk=()=>{var k;const{id:e}=Hc(),{user:n}=Wi(),a=dn(),[r,o]=E.useState(""),[u,f]=E.useState(null),{data:m,isLoading:p,isError:g}=el({queryKey:["submission",e],queryFn:()=>Mn.getDetectionsById(e),enabled:!!e}),y=((k=m==null?void 0:m.data)==null?void 0:k.data)||[];if(p)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(g||!y)return c.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const v=y,b=async z=>{if(!r||!z||!(v!=null&&v.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const _={doctorId:z.id,complaint:r};try{const Z=await Mn.updateDetection(v.id,_,n.token);console.log("data submit:",Z),Tn.fire("Berhasil","Pengajuan berhasil dikirim ke dokter","success"),o(""),f(null)}catch(Z){console.error(Z),Tn.fire("Gagal","Terjadi kesalahan saat mengirim data","error")}},x=async z=>{(await Tn.fire({title:`Pilih Dokter ${z.name}?`,text:"Apakah Anda yakin ingin mengajukan verifikasi ke dokter ini?",icon:"question",showCancelButton:!0,confirmButtonText:"Ya, pilih dokter ini",cancelButtonText:"Batal"})).isConfirmed&&(f(z),b(z))},j=parseFloat(v.diagnosisAi)>=50?"text-red-600":"text-green-600",C=v.status==="rejected"?"text-red-600":v.status==="pending"?"text-yellow-600":"text-green-600";return c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[c.jsxs("button",{onClick:()=>a("/deteksi"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsxs("div",{className:"my-5 leading-10",children:[c.jsx("h1",{className:"text-2xl font-semibold",children:"Detail Hasil Deteksi"}),c.jsx("p",{className:"text-sm text-ellipsis",children:v.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover",src:v.imageUrl,alt:"Hasil Deteksi Kulit"}),c.jsxs("p",{className:"w-full lg:w-1/2 my-5 text-left font-bold text-md",children:["ID Deteksi: ",v.id]}),c.jsx("a",{href:v.imageUrl,download:!0,className:"w-full lg:w-1/2 px-4 py-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 cursor-pointer text-center",children:"Unduh Gambar"}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:v.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:j,children:v.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:M2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:`font-semibold ${v.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:v.isSubmitted})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${C}`,children:v.status})]})]}),c.jsx("p",{className:"text-sm font-normal text-gray-400",children:"*Hasil deteksi belum dipastikan benar karena web hanya memberikan indikasi awal, silahkan ajukan hasil verifikasi ke dokter."}),c.jsxs("div",{className:"w-full mt-6",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),c.jsxs("div",{className:"text-left w-full",children:[c.jsx("p",{children:"Keluhan:"}),c.jsx("textarea",{value:r,onChange:z=>o(z.target.value),className:"w-full h-32 border border-gray-400 rounded-lg p-2 mt-2",placeholder:"Masukkan keluhan Anda disini",required:!0}),c.jsx(Sg,{handleDoctorSelect:x}),u&&c.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",c.jsxs("strong",{children:["dr. ",u.name]})]})]})]})]})]})})},gk=PC([{element:c.jsx(tE,{}),errorElement:c.jsx(Zh,{}),children:[{element:c.jsx(dc,{type:"default"}),errorElement:c.jsx(Zh,{}),children:[{path:"/",element:c.jsx(ST,{})},{path:"faq",element:c.jsx(eR,{})}]},{element:c.jsx(Bm,{children:c.jsx(dc,{type:"default"})}),errorElement:c.jsx(Zh,{}),children:[{path:"deteksi",element:c.jsx(W3,{})},{path:"pengajuan",element:c.jsx(ck,{})},{path:"deteksi/:id",element:c.jsx(AT,{})},{path:"pengajuan/info/:id",element:c.jsx(RT,{})},{path:"pengajuan/ulang/:id",element:c.jsx(mk,{})}]},{path:"dokter",element:c.jsx(Bm,{children:c.jsx(dc,{type:"doctor"})}),children:[{path:"",element:c.jsx(r3,{})},{path:"daftar-pasien",element:c.jsx(n3,{})},{path:"daftar-pengajuan",element:c.jsx(i3,{})},{path:"riwayat-verifikasi",element:c.jsx(fk,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:c.jsx(uk,{})}]}]}]),pk=new A3;ZS.createRoot(document.getElementById("root")).render(c.jsx($i.StrictMode,{children:c.jsx(N3,{client:pk,children:c.jsx(Ub,{children:c.jsx(eE,{router:gk})})})}));