128 lines
256 KiB
JavaScript
128 lines
256 KiB
JavaScript
|
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(l){if(l.ep)return;l.ep=!0;const o=r(l);fetch(l.href,o)}})();function yh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var od={exports:{}},Zo={},id={exports:{}},Z={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Cl=Symbol.for("react.element"),wh=Symbol.for("react.portal"),xh=Symbol.for("react.fragment"),kh=Symbol.for("react.strict_mode"),Sh=Symbol.for("react.profiler"),Eh=Symbol.for("react.provider"),Ch=Symbol.for("react.context"),Ph=Symbol.for("react.forward_ref"),Rh=Symbol.for("react.suspense"),_h=Symbol.for("react.memo"),Nh=Symbol.for("react.lazy"),yu=Symbol.iterator;function Lh(e){return e===null||typeof e!="object"?null:(e=yu&&e[yu]||e["@@iterator"],typeof e=="function"?e:null)}var ad={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sd=Object.assign,ud={};function Sn(e,t,r){this.props=e,this.context=t,this.refs=ud,this.updater=r||ad}Sn.prototype.isReactComponent={};Sn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cd(){}cd.prototype=Sn.prototype;function es(e,t,r){this.props=e,this.context=t,this.refs=ud,this.updater=r||ad}var ts=es.prototype=new cd;ts.constructor=es;sd(ts,Sn.prototype);ts.isPureReactComponent=!0;var wu=Array.isArray,dd=Object.prototype.hasOwnProperty,rs={current:null},fd={key:!0,ref:!0,__self:!0,__source:!0};function pd(e,t,r){var n,l={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)dd.call(t,n)&&!fd.hasOwnProperty(n)&&(l[n]=t[n]);var a=arguments.length-2;if(a===1)l.children=r;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];l.children=s}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)l[n]===void 0&&(l[n]=a[n]);return{$$typeof:Cl,type:e,key:o,ref:i,props:l,_owner:rs.current}}function Mh(e,t){return{$$typeof:Cl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ns(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cl}function zh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var xu=/\/+/g;function xi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zh(""+e.key):t.toString(36)}function so(e,t,r,n,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Cl:case wh:i=!0}}if(i)return i=e,l=l(i),e=n===""?"."+xi(i,0):n,wu(l)?(r="",e!=null&&(r=e.replace(xu,"$&/")+"/"),so(l,t,r,"",function(u){return u})):l!=null&&(ns(l)&&(l=Mh(l,r+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(xu,"$&/")+"/")+e)),t.push(l)),1;if(i=0,n=n===""?".":n+":",wu(e))for(var a=0;a<e.length;a++){o=e[a];var s=n+xi(o,a);i+=so(o,t,r,s,l)}else if(s=Lh(e),typeof s=="function")for(e=s.call(e),a=0;!(o=e.next()).done;)o=o.value,s=n+xi(o,a++),i+=so(o,t,r,s,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ul(e,t,r){if(e==null)return e;var n=[],l=0;return so(e,n,"","",function(o){return t.call(r,o,l++)}),n}function Th(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ke={current:null},uo={transition:null},Dh={ReactCurrentDispatcher:Ke,ReactCurrentBatchConfig:uo,ReactCurrentOwner:rs};function hd(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Ul,forEach:function(e,t,r){Ul(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ul(e,function(){t++}),t},toArray:function(e){return Ul(e,function(t){return t})||[]},only:function(e){if(!ns(e))throw Error("React.Children.only expected to receive a sing
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Oh=x,Fh=Symbol.for("react.element"),Ih=Symbol.for("react.fragment"),bh=Object.prototype.hasOwnProperty,$h=Oh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ah={key:!0,ref:!0,__self:!0,__source:!0};function md(e,t,r){var n,l={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)bh.call(t,n)&&!Ah.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)l[n]===void 0&&(l[n]=t[n]);return{$$typeof:Fh,type:e,key:o,ref:i,props:l,_owner:$h.current}}Zo.Fragment=Ih;Zo.jsx=md;Zo.jsxs=md;od.exports=Zo;var T=od.exports,ea={},vd={exports:{}},at={},gd={exports:{}},yd={};/**
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/(function(e){function t(P,b){var A=P.length;P.push(b);e:for(;0<A;){var q=A-1>>>1,re=P[q];if(0<l(re,b))P[q]=b,P[A]=re,A=q;else break e}}function r(P){return P.length===0?null:P[0]}function n(P){if(P.length===0)return null;var b=P[0],A=P.pop();if(A!==b){P[0]=A;e:for(var q=0,re=P.length,ee=re>>>1;q<ee;){var ie=2*(q+1)-1,tt=P[ie],ze=ie+1,de=P[ze];if(0>l(tt,A))ze<re&&0>l(de,tt)?(P[q]=de,P[ze]=A,q=ze):(P[q]=tt,P[ie]=A,q=ie);else if(ze<re&&0>l(de,A))P[q]=de,P[ze]=A,q=ze;else break e}}return b}function l(P,b){var A=P.sortIndex-b.sortIndex;return A!==0?A:P.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var s=[],u=[],c=1,p=null,f=3,y=!1,k=!1,S=!1,M=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(P){for(var b=r(u);b!==null;){if(b.callback===null)n(u);else if(b.startTime<=P)n(u),b.sortIndex=b.expirationTime,t(s,b);else break;b=r(u)}}function C(P){if(S=!1,m(P),!k)if(r(s)!==null)k=!0,Y(_);else{var b=r(u);b!==null&&se(C,b.startTime-P)}}function _(P,b){k=!1,S&&(S=!1,d(R),R=-1),y=!0;var A=f;try{for(m(b),p=r(s);p!==null&&(!(p.expirationTime>b)||P&&!ue());){var q=p.callback;if(typeof q=="function"){p.callback=null,f=p.priorityLevel;var re=q(p.expirationTime<=b);b=e.unstable_now(),typeof re=="function"?p.callback=re:p===r(s)&&n(s),m(b)}else n(s);p=r(s)}if(p!==null)var ee=!0;else{var ie=r(u);ie!==null&&se(C,ie.startTime-b),ee=!1}return ee}finally{p=null,f=A,y=!1}}var g=!1,z=null,R=-1,O=5,V=-1;function ue(){return!(e.unstable_now()-V<O)}function Me(){if(z!==null){var P=e.unstable_now();V=P;var b=!0;try{b=z(!0,P)}finally{b?je():(g=!1,z=null)}}else g=!1}var je;if(typeof h=="function")je=function(){h(Me)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,oe=te.port2;te.port1.onmessage=Me,je=function(){oe.postMessage(null)}}else je=function(){M(Me,0)};function Y(P){z=P,g||(g=!0,je())}function se(P,b){R=M(function(){P(e.unstable_now())},b)}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(P){P.callback=null},e.unstable_continueExecution=function(){k||y||(k=!0,Y(_))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(s)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var b=3;break;default:b=f}var A=f;f=b;try{return P()}finally{f=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,b){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var A=f;f=P;try{return b()}finally{f=A}},e.unstable_scheduleCallback=function(P,b,A){var q=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?q+A:q):A=q,P){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=A+re,P={id:c++,callback:b,priorityLevel:P,startTime:A,expirationTime:re,sortIndex:-1},A>q?(P.sortIndex=A,t(u,P),r(s)===null&&P===r(u)&&(S?(d(R),R=-1):S=!0,se(C,A-q))):(P.sortIndex=re,t(s,P),k||y||(k=!0,Y(_))),P},e.unstable_shouldYield=ue,e.unstable_wrapCallback=function(P){var b=f;return function(){var A=f;f=b;try{return P.apply(this,arguments)}finally{f=A}}}})(yd);gd.exports=yd;var Uh=gd.exports;/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Vh=x,it=Uh;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var wd=new Set,ll={};function Vr(e,t){mn(e,t),mn(e+"Capture",t)}function mn(e,t){for(ll[e]=t,e=0;e<t.length;e++)wd.add(t[e])}var Vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ta=Object.prototype.hasOwnProperty,Hh=/^[: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]*$/,ku={},Su={};function Bh(e){return ta.call(Su,e)?!0:ta.call(ku,e)?!1:Hh.test(e)?Su[e]=!0:(ku[e]=!0,!1)}function Wh(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qh(e,t,r,n){if(t===null||typeof t>"u"||Wh(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,r,n,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=l,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var ls=/[\-:]([a-z])/g;function os(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
|
||
|
|
`+ki+e}var Si=!1;function Ei(e,t){if(!e||Si)return"";Si=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var l=u.stack.split(`
|
||
|
|
`),o=n.stack.split(`
|
||
|
|
`),i=l.length-1,a=o.length-1;1<=i&&0<=a&&l[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(l[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||l[i]!==o[a]){var s=`
|
||
|
|
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=a);break}}}finally{Si=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Hn(e):""}function Kh(e){switch(e.tag){case 5:return Hn(e.type);case 16:return Hn("Lazy");case 13:return Hn("Suspense");case 19:return Hn("SuspenseList");case 0:case 2:case 15:return e=Ei(e.type,!1),e;case 11:return e=Ei(e.type.render,!1),e;case 1:return e=Ei(e.type,!0),e;default:return""}}function oa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xr:return"Fragment";case Yr:return"Portal";case ra:return"Profiler";case as:return"StrictMode";case na:return"Suspense";case la:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kd:return(e.displayName||"Context")+".Consumer";case xd:return(e._context.displayName||"Context")+".Provider";case ss:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case us:return t=e.displayName||null,t!==null?t:oa(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return oa(e(t))}catch{}}return null}function Gh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oa(t);case 8:return t===as?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ed(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yh(e){var t=Ed(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hl(e){e._valueTracker||(e._valueTracker=Yh(e))}function Cd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Ed(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Po(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ia(e,t){var r=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Cu(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=mr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Pd(e,t){t=t.checked,t!=null&&is(e,"checked",t,!1)}function aa(e,t){Pd(e,t);var r=mr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sa(e,t.type,r):t.hasOwnProperty("defaultValue")&&sa(e,t.type,mr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pu(e,t,r){if(t.hasOwnProperty("val
|
||
|
|
`).replace(ov,"")}function Jl(e,t,r){if(t=Gu(t),Gu(e)!==t&&r)throw Error(L(425))}function Do(){}var Sa=null,Ea=null;function Ca(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pa=typeof setTimeout=="function"?setTimeout:void 0,iv=typeof clearTimeout=="function"?clearTimeout:void 0,Yu=typeof Promise=="function"?Promise:void 0,av=typeof queueMicrotask=="function"?queueMicrotask:typeof Yu<"u"?function(e){return Yu.resolve(null).then(e).catch(sv)}:Pa;function sv(e){setTimeout(function(){throw e})}function Fi(e,t){var r=t,n=0;do{var l=r.nextSibling;if(e.removeChild(r),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(n===0){e.removeChild(l),ul(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=l}while(r);ul(t)}function cr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Xu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Cn,hl="__reactProps$"+Cn,Ht="__reactContainer$"+Cn,Ra="__reactEvents$"+Cn,uv="__reactListeners$"+Cn,cv="__reactHandles$"+Cn;function zr(e){var t=e[Lt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ht]||r[Lt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Xu(e);e!==null;){if(r=e[Lt])return r;e=Xu(e)}return t}e=r,r=e.parentNode}return null}function _l(e){return e=e[Lt]||e[Ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function en(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function ni(e){return e[hl]||null}var _a=[],tn=-1;function wr(e){return{current:e}}function he(e){0>tn||(e.current=_a[tn],_a[tn]=null,tn--)}function ce(e,t){tn++,_a[tn]=e.current,e.current=t}var vr={},He=wr(vr),Ze=wr(!1),Ir=vr;function vn(e,t){var r=e.type.contextTypes;if(!r)return vr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in r)l[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function qe(e){return e=e.childContextTypes,e!=null}function jo(){he(Ze),he(He)}function Ju(e,t,r){if(He.current!==vr)throw Error(L(168));ce(He,t),ce(Ze,r)}function hf(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var l in n)if(!(l in t))throw Error(L(108,Gh(e)||"Unknown",l));return xe({},r,n)}function Oo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vr,Ir=He.current,ce(He,e),ce(Ze,Ze.current),!0}function Zu(e,t,r){var n=e.stateNode;if(!n)throw Error(L(169));r?(e=hf(e,t,Ir),n.__reactInternalMemoizedMergedChildContext=e,he(Ze),he(He),ce(He,e)):he(Ze),ce(Ze,r)}var bt=null,li=!1,Ii=!1;function mf(e){bt===null?bt=[e]:bt.push(e)}function dv(e){li=!0,mf(e)}function xr(){if(!Ii&&bt!==null){Ii=!0;var e=0,t=ae;try{var r=bt;for(ae=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}bt=null,li=!1}catch(l){throw bt!==null&&(bt=bt.slice(e+1)),$d(ds,xr),l}finally{ae=t,Ii=!1}}return null}var rn=[],nn=0,Fo=null,Io=0,ct=[],dt=0,br=null,$t=1,At="";function Lr(e,t){rn[nn++]=Io,rn[nn++]=Fo,Fo=e,Io=t}function vf(e,t,r){ct[dt++]=$t,ct[dt++]=At,ct[dt++]=br,br=e;var n=$t;e=At;var l=32-kt(n)-1;n&=~(1<<l),r+=1;var o=32-kt(t)+l;if(30<o){var i=l-l%5;o=(n&(1<<i)-1).toString(32),n>>=i,l-=i,$t=1<<32-kt(t)+l|r<<l|n,At=o+e}else $t=1<<o|r<<l|n,At=e}function xs(e){e.return!==null&&(Lr(e,1),vf(e,1,0))}function ks(e){for(;e===Fo;)Fo=rn[--nn],rn[nn]=null,Io=rn[--nn],rn[nn]=null;for(;e===br;)br=ct[--dt],ct[dt]=null,At=ct[--dt],ct[dt]=null,$t=ct[--dt],ct[dt]=null}var ot=null,lt=null,ve=!1,xt=null;function gf(e,t){var r=ft(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletio
|
||
|
|
Error generating stack: `+o.message+`
|
||
|
|
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Vi(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Da(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var xv=typeof WeakMap=="function"?WeakMap:Map;function Bf(e,t,r){r=Ut(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Wo||(Wo=!0,Ha=n),Da(e,t)},r}function Wf(e,t,r){r=Ut(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var l=t.value;r.payload=function(){return n(l)},r.callback=function(){Da(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Da(e,t),typeof n!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function sc(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new xv;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(r)||(l.add(r),e=jv.bind(null,e,t,r),t.then(e,e))}function uc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function cc(e,t,r,n,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ut(-1,1),t.tag=2,dr(r,t,1))),r.lanes|=1),e)}var kv=Qt.ReactCurrentOwner,Je=!1;function We(e,t,r,n){t.child=e===null?xf(t,null,r,n):yn(t,e.child,r,n)}function dc(e,t,r,n,l){r=r.render;var o=t.ref;return fn(t,l),n=Ts(e,t,r,n,o,l),r=Ds(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Wt(e,t,l)):(ve&&r&&xs(t),t.flags|=1,We(e,t,n,l),t.child)}function fc(e,t,r,n,l){if(e===null){var o=r.type;return typeof o=="function"&&!Hs(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,Qf(e,t,o,n,l)):(e=xo(r.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:dl,r(i,n)&&e.ref===t.ref)return Wt(e,t,l)}return t.flags|=1,e=hr(o,n),e.ref=t.ref,e.return=t,t.child=e}function Qf(e,t,r,n,l){if(e!==null){var o=e.memoizedProps;if(dl(o,n)&&e.ref===t.ref)if(Je=!1,t.pendingProps=n=o,(e.lanes&l)!==0)e.flags&131072&&(Je=!0);else return t.lanes=e.lanes,Wt(e,t,l)}return ja(e,t,r,n,l)}function Kf(e,t,r){var n=t.pendingProps,l=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(an,rt),rt|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(an,rt),rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ce(an,rt),rt|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ce(an,rt),rt|=n;return We(e,t,l,r),t.child}function Gf(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ja(e,t,r,n,l){var o=qe(r)?Ir:He.current;return o=vn(t,o),fn(t,l),r=Ts(e,t,r,n,o,l),n=Ds(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Wt(e,t,l)):(ve&&n&&xs(t),t.flags|=1,We(e,t,r,l),t.child)}function pc(e,t,r,n,l){if(qe(r)){var o=!0;Oo(t)}else o=!1;if(fn(t,l),t.stateNode===null)go(e,t),Hf(t,r,n),Ta(t,r,n,l),n=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var s=i.context,u=r.contextType;typeof u=="object"&&u!==null?u=ht(u):(u=qe(r)?Ir:He.current,u=vn(t,u));var c=r.getDerivedStateFromProps,p=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==n||s!==u)&&ac(t,i,n,u),er=!1;var f=t.memoizedState;i.state=f,Ao(t,n,i,l),s=t.memoizedState,a!==n||f!==s||Ze.current||er?(typeof c=="function"&&(za(t,r,c,n),s=t.memoizedState),(a=er||ic(t,r,a,n,f,s,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.
|
||
|
|
* react-router v7.8.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 wp=e=>{throw TypeError(e)},Wv=(e,t,r)=>t.has(e)||wp("Cannot "+r),Qi=(e,t,r)=>(Wv(e,t,"read from private field"),r?r.call(e):t.get(e)),Qv=(e,t,r)=>t.has(e)?wp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_c="popstate";function Kv(e={}){function t(n,l){let{pathname:o,search:i,hash:a}=n.location;return kl("",{pathname:o,search:i,hash:a},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(n,l){return typeof l=="string"?l:gr(l)}return Yv(t,r,null,e)}function J(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pe(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Gv(){return Math.random().toString(36).substring(2,10)}function Nc(e,t){return{usr:e.state,key:e.key,idx:t}}function kl(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?kr(t):t,state:r,key:t&&t.key||n||Gv()}}function gr({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function kr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Yv(e,t,r,n={}){let{window:l=document.defaultView,v5Compat:o=!1}=n,i=l.history,a="POP",s=null,u=c();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function c(){return(i.state||{idx:null}).idx}function p(){a="POP";let M=c(),d=M==null?null:M-u;u=M,s&&s({action:a,location:S.location,delta:d})}function f(M,d){a="PUSH";let h=kl(S.location,M,d);u=c()+1;let m=Nc(h,u),C=S.createHref(h);try{i.pushState(m,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;l.location.assign(C)}o&&s&&s({action:a,location:S.location,delta:1})}function y(M,d){a="REPLACE";let h=kl(S.location,M,d);u=c();let m=Nc(h,u),C=S.createHref(h);i.replaceState(m,"",C),o&&s&&s({action:a,location:S.location,delta:0})}function k(M){return xp(M)}let S={get action(){return a},get location(){return e(l,i)},listen(M){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(_c,p),s=M,()=>{l.removeEventListener(_c,p),s=null}},createHref(M){return t(l,M)},createURL:k,encodeLocation(M){let d=k(M);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:f,replace:y,go(M){return i.go(M)}};return S}function xp(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),J(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:gr(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var Kn,Lc=class{constructor(e){if(Qv(this,Kn,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(Qi(this,Kn).has(e))return Qi(this,Kn).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Qi(this,Kn).set(e,t)}};Kn=new WeakMap;var Xv=new Set(["lazy","caseSensitive","path","id","index","children"]);function Jv(e){return Xv.has(e)}var Zv=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function qv(e){return Zv.has(e)}function eg(e){return e.index===!0}function Sl(e,t,r=[],n={},l=!1){return e.map((o,i)=>{let a=[...r,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(J(o.index!==!0||!o.children,"Cannot specify children on an index route"),J(l||!n[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),eg(o)){let u={...o,...t(o),id:s};return n[s]=u,u}else{let u={...o,...t(o),id:s,children:void 0};return n[s]=u,o.children&&(u.children=Sl(o.children,t,a,n,l)),u}})}function nr(e,t,r="/"){return ko(e,t,r,!1)}function ko(e,t,r,n){let l=typeof t=="string"?kr(t):t,o=vt(l.pathname||"/",r);if(o==null)return null;let i=kp(e);rg(i);let a=null;for(let s=0;a==null&&s<i.length;++s){let u=pg(o);a=dg(i[s],u,n)}return a}function tg(e,t){let{route:r,pathname:n,params:l}=e;return{id:r.id,p
|
||
|
|
`,""):String(r.body);return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Ye(o))return n();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return n()}}}J(typeof FormData=="function","FormData is not available in this environment");let a,s;if(r.formData)a=Xa(r.formData),s=r.formData;else if(r.body instanceof FormData)a=Xa(r.body),s=r.body;else if(r.body instanceof URLSearchParams)a=r.body,s=bc(a);else if(r.body==null)a=new URLSearchParams,s=new FormData;else try{a=new URLSearchParams(r.body),s=bc(a)}catch{return n()}let u={formMethod:o,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ye(u.formMethod))return{path:t,submission:u};let c=kr(t);return e&&c.search&&Js(c.search)&&a.append("index",""),c.search=`?${a}`,{path:gr(c),submission:u}}function Tc(e,t,r,n,l,o,i,a,s,u,c,p,f,y,k,S,M,d,h,m){var je;let C=m?nt(m[1])?m[1].error:m[1].data:void 0,_=l.createURL(o.location),g=l.createURL(s),z;if(c&&o.errors){let te=Object.keys(o.errors)[0];z=i.findIndex(oe=>oe.route.id===te)}else if(m&&nt(m[1])){let te=m[0];z=i.findIndex(oe=>oe.route.id===te)-1}let R=m?m[1].statusCode:void 0,O=R&&R>=400,V={currentUrl:_,currentParams:((je=o.matches[0])==null?void 0:je.params)||{},nextUrl:g,nextParams:i[0].params,...a,actionResult:C,actionStatus:R},ue=i.map((te,oe)=>{let{route:Y}=te,se=null;if(z!=null&&oe>z?se=!1:Y.lazy?se=!0:Y.loader==null?se=!1:c?se=Ga(Y,o.loaderData,o.errors):Mg(o.loaderData,o.matches[oe],te)&&(se=!0),se!==null)return Ya(r,n,e,te,u,t,se);let P=O?!1:p||_.pathname+_.search===g.pathname+g.search||_.search!==g.search||zg(o.matches[oe],te),b={...V,defaultShouldRevalidate:P},A=Jo(te,b);return Ya(r,n,e,te,u,t,A,b)}),Me=[];return k.forEach((te,oe)=>{if(c||!i.some(ee=>ee.route.id===te.routeId)||y.has(oe))return;let Y=o.fetchers.get(oe),se=Y&&Y.state!=="idle"&&Y.data===void 0,P=nr(M,te.path,d);if(!P){if(h&&se)return;Me.push({key:oe,routeId:te.routeId,path:te.path,matches:null,match:null,request:null,controller:null});return}if(S.has(oe))return;let b=So(P,te.path),A=new AbortController,q=Gr(l,te.path,A.signal),re=null;if(f.has(oe))f.delete(oe),re=hn(r,n,q,P,b,u,t);else if(se)p&&(re=hn(r,n,q,P,b,u,t));else{let ee={...V,defaultShouldRevalidate:O?!1:p};Jo(b,ee)&&(re=hn(r,n,q,P,b,u,t,ee))}re&&Me.push({key:oe,routeId:te.routeId,path:te.path,matches:re,match:b,request:q,controller:A})}),{dsMatches:ue,revalidatingFetchers:Me}}function Ga(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&e.id in t,l=r!=null&&r[e.id]!==void 0;return!n&&l?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!l}function Mg(e,t,r){let n=!t||r.route.id!==t.route.id,l=!e.hasOwnProperty(r.route.id);return n||l}function zg(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Jo(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Dc(e,t,r,n,l,o){let i;if(e){let u=n[e];J(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),i=u.children}else i=r;let a=[],s=[];if(t.forEach(u=>{let c=i.find(p=>_p(u,p));c?s.push({existingRoute:c,newRoute:u}):a.push(u)}),a.length>0){let u=Sl(a,l,[e||"_","patch",String((i==null?void 0:i.length)||"0")],n);i.push(...u)}if(o&&s.length>0)for(let u=0;u<s.length;u++){let{existingRoute:c,newRoute:p}=s[u],f=c,[y]=Sl([p],l,[],{},!0);Object.assign(f,{element:y.element?y.element:f.element,errorElement:y.errorElement?y.errorElement:f.errorElement,hydrateFallbackElement:y.hydrateFallbackElement?y.hydrateFallbackElement:f.hydrateFallbackElement})}}function _p(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)
|
||
|
|
|
||
|
|
Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}/*`}">.`)}let p=Sr(),f;f=p;let y=f.pathname||"/",k=y;if(u!=="/"){let d=u.replace(/^\//,"").split("/");k="/"+y.replace(/^\//,"").split("/").slice(d.length).join("/")}let S=nr(e,{pathname:k});return Pe(c||S!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Pe(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),ny(S&&S.map(d=>Object.assign({},d,{params:Object.assign({},a,d.params),pathname:Tt([u,l.encodeLocation?l.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?u:Tt([u,l.encodeLocation?l.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),o,r,n)}function qg(){let e=sy(),t=El(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:o},"ErrorBoundary")," or"," ",x.createElement("code",{style:o},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:l},r):null,i)}var ey=x.createElement(qg,null),ty=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?x.createElement(jt.Provider,{value:this.props.routeContext},x.createElement(qs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ry({routeContext:e,match:t,children:r}){let n=x.useContext(Br);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(jt.Provider,{value:e},r)}function ny(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,o=r==null?void 0:r.errors;if(o!=null){let s=l.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);J(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,s+1))}let i=!1,a=-1;if(r)for(let s=0;s<l.length;s++){let u=l[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(a=s),u.route.id){let{loaderData:c,errors:p}=r,f=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||f){i=!0,a>=0?l=l.slice(0,a+1):l=[l[0]];break}}}return l.reduceRight((s,u,c)=>{let p,f=!1,y=null,k=null;r&&(p=o&&u.route.id?o[u.route.id]:void 0,y=u.route.errorElement||ey,i&&(a<0&&c===0?(bp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,k=null):a===c&&(f=!0,k=u.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,c+1)),M=()=>{let d;return p?d=y:f?d=k:u.route.Component?d=x.createElement(u.route.Component,null):u.route.element?d=u.route.element:d=
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const H0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),B0=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),nd=e=>{const t=B0(e);return t.charAt(0).toUpperCase()+t.slice(1)},rh=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),W0=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Q0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const K0=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:o,iconNode:i,...a},s)=>x.createElement("svg",{ref:s,...Q0,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:rh("lucide",l),...!o&&!W0(a)&&{"aria-hidden":"true"},...a},[...i.map(([u,c])=>x.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const Ct=(e,t)=>{const r=x.forwardRef(({className:n,...l},o)=>x.createElement(K0,{ref:o,iconNode:t,className:rh(`lucide-${H0(nd(e))}`,`lucide-${e}`,n),...l}));return r.displayName=nd(e),r};/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const G0=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],ld=Ct("bot",G0);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const Y0=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],X0=Ct("chart-column",Y0);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const J0=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Z0=Ct("clock",J0);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const q0=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],ew=Ct("house",q0);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const tw=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],rw=Ct("log-in",tw);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const nw=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],lw=Ct("log-out",nw);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ow=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],nh=Ct("message-square",ow);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const iw=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],aw=Ct("moon",iw);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const sw=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],uw=Ct("send",sw);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const cw=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],dw=Ct("trending-up",cw);/**
|
||
|
|
* @license lucide-react v0.539.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const fw=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pw=Ct("user",fw);function hw(){const[e,t]=x.useState([{id:crypto.randomUUID(),role:"assistant",content:"Halo! Saya asisten virtual untuk pengusaha kos. Ada yang bisa saya bantu hari ini?",timestamp:Date.now()}]),[r,n]=x.useState(""),l=x.useRef(null);x.useEffect(()=>{var i;(i=l.current)==null||i.scrollTo({top:l.current.scrollHeight,behavior:"smooth"})},[e.length]);const o=()=>{const i=r.trim();if(!i)return;const a={id:crypto.randomUUID(),role:"user",content:i,timestamp:Date.now()};t(s=>[...s,a]),n(""),setTimeout(()=>{const s={id:crypto.randomUUID(),role:"assistant",content:`Terima kasih! Saya catat: "${i}". Fitur backend akan menjawab secara cerdas nanti.`,timestamp:Date.now()};t(u=>[...u,s])},600)};return T.jsxs("div",{className:"w-full max-w-2xl h-[75vh] flex flex-col rounded-2xl border bg-background/45 shadow-2xl supports-[backdrop-filter]:backdrop-blur-xl backdrop-blur-xl",children:[T.jsxs("div",{className:"flex items-center gap-3 border-b bg-background/40 px-4 py-3",children:[T.jsxs("div",{className:"relative h-8 w-8 shrink-0 overflow-hidden rounded-full border bg-secondary",children:[T.jsx(ld,{className:"h-full w-full p-1"}),T.jsx("span",{className:"absolute bottom-0 right-0 h-2 w-2 rounded-full bg-emerald-500 ring-2 ring-background"})]}),T.jsxs("div",{children:[T.jsx("div",{className:"text-sm font-medium",children:"JuraganKos Assistant"}),T.jsx("div",{className:"text-xs text-muted-foreground",children:"Online • Siap membantu kos Anda"})]})]}),T.jsx("div",{ref:l,className:"flex-1 space-y-4 overflow-auto p-4",children:e.map(i=>{const a=i.role==="user";return T.jsxs("div",{className:`flex items-start gap-3 ${a?"flex-row-reverse":""}`,children:[T.jsx("div",{className:`mt-1 rounded-full p-1 ${a?"bg-primary text-primary-foreground":"bg-secondary"}`,children:a?T.jsx(pw,{className:"h-4 w-4"}):T.jsx(ld,{className:"h-4 w-4"})}),T.jsx("div",{className:`max-w-[75%] rounded-lg border px-3 py-2 text-sm ${a?"bg-primary text-primary-foreground border-transparent":"bg-background"}`,children:i.content})]},i.id)})}),T.jsxs("form",{onSubmit:i=>{i.preventDefault(),o()},className:"flex items-center gap-2 border-t p-3 bg-background/30",children:[T.jsx("input",{className:"flex-1 h-10 rounded-md border bg-background/60 px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring backdrop-blur-sm",placeholder:"Tulis pesan...",value:r,onChange:i=>n(i.target.value)}),T.jsxs(Tl,{type:"submit",size:"sm",disabled:!r.trim(),children:[T.jsx(uw,{className:"mr-2 h-4 w-4"})," Kirim"]})]})]})}const iu="jk_admin_token";async function mw(e,t){if(await yw(300),!e||!t)throw new Error("Email dan password wajib diisi");localStorage.setItem(iu,"ok")}function vw(){localStorage.removeItem(iu)}function gw(){return!!localStorage.getItem(iu)}function yw(e){return new Promise(t=>setTimeout(t,e))}function ww(){const[e,t]=x.useState(""),[r,n]=x.useState(""),[l,o]=x.useState(!1),[i,a]=x.useState(null),s=eu(),u=async c=>{c.preventDefault(),o(!0),a(null);try{await mw(e,r),s("/admin/dashboard")}catch(p){a((p==null?void 0:p.message)??"Gagal login")}finally{o(!1)}};return T.jsxs("div",{className:"mx-auto max-w-sm rounded-lg border bg-card p-6 shadow-sm",children:[T.jsx("h2",{className:"mb-4 text-xl font-semibold",children:"Admin Login"}),T.jsxs("form",{className:"space-y-3",onSubmit:u,children:[T.jsxs("div",{className:"space-y-1",children:[T.jsx("label",{htmlFor:"email",className:"text-sm text-muted-foreground",children:"Email"}),T.jsx("input",{id:"email",type:"email",autoComplete:"email",required:!0,className:"h-10 w-full rounded-md border bg-background px-3 text-sm",value:e,onChange:c=>t(c.target.value)})]}),T.jsxs("div",{className:"space-y-1",children:[T.jsx("label",{htmlFor:"password",className:"text-sm text-muted-foreground",children:"Password"}),T.jsx("input",{id:"password",type:"password",autoComplete:"current-password",required:!0,className:"h-10 w-full rounded-md border bg-background px-3 text-sm",value:r,onChange:c=>n(c.
|