From 0d4ba0cb08fb8dbef81b09df0bac718587f22842 Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 15 Apr 2024 09:54:23 +0700 Subject: [PATCH] fix --- app/srv/core/main.js | 60 +++++++++---------- .../src/nova/vi/render/script/eval-script.tsx | 12 +++- 2 files changed, 41 insertions(+), 31 deletions(-) diff --git a/app/srv/core/main.js b/app/srv/core/main.js index f0d6a9bf..22868b37 100644 --- a/app/srv/core/main.js +++ b/app/srv/core/main.js @@ -1,11 +1,11 @@ -var S0=Object.create;var yl=Object.defineProperty;var k0=Object.getOwnPropertyDescriptor;var E0=Object.getOwnPropertyNames;var C0=Object.getPrototypeOf,R0=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),P0=(e,t)=>{for(var n in t)yl(e,n,{get:t[n],enumerable:!0})},N0=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of E0(t))!R0.call(e,o)&&o!==n&&yl(e,o,{get:()=>t[o],enumerable:!(r=k0(t,o))||r.enumerable});return e};var O=(e,t,n)=>(n=e!=null?S0(C0(e)):{},N0(t||!e||!e.__esModule?yl(n,"default",{value:e,enumerable:!0}):n,e));var df=q(M=>{"use strict";var Lr=Symbol.for("react.element"),O0=Symbol.for("react.portal"),I0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),b0=Symbol.for("react.profiler"),L0=Symbol.for("react.provider"),A0=Symbol.for("react.context"),M0=Symbol.for("react.forward_ref"),j0=Symbol.for("react.suspense"),F0=Symbol.for("react.memo"),D0=Symbol.for("react.lazy"),tf=Symbol.iterator;function z0(e){return e===null||typeof e!="object"?null:(e=tf&&e[tf]||e["@@iterator"],typeof e=="function"?e:null)}var of={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sf=Object.assign,lf={};function Fn(e,t,n){this.props=e,this.context=t,this.refs=lf,this.updater=n||of}Fn.prototype.isReactComponent={};Fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function af(){}af.prototype=Fn.prototype;function vl(e,t,n){this.props=e,this.context=t,this.refs=lf,this.updater=n||of}var wl=vl.prototype=new af;wl.constructor=vl;sf(wl,Fn.prototype);wl.isPureReactComponent=!0;var nf=Array.isArray,uf=Object.prototype.hasOwnProperty,_l={current:null},cf={key:!0,ref:!0,__self:!0,__source:!0};function ff(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)uf.call(t,r)&&!cf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1{"use strict";pf.exports=df()});var kf=q(H=>{"use strict";function Cl(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;rli(l,n))ali(f,l)?(e[r]=f,e[a]=n,r=a):(e[r]=l,e[s]=n,r=s);else if(ali(f,n))e[r]=f,e[a]=n,r=a;else break e}}return t}function li(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(mf=performance,H.unstable_now=function(){return mf.now()}):(Sl=Date,hf=Sl.now(),H.unstable_now=function(){return Sl.now()-hf});var mf,Sl,hf,ft=[],Dt=[],H0=1,He=null,ge=3,ci=!1,yn=!1,Mr=!1,vf=typeof setTimeout=="function"?setTimeout:null,wf=typeof clearTimeout=="function"?clearTimeout:null,yf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Rl(e){for(var t=tt(Dt);t!==null;){if(t.callback===null)ui(Dt);else if(t.startTime<=e)ui(Dt),t.sortIndex=t.expirationTime,Cl(ft,t);else break;t=tt(Dt)}}function Pl(e){if(Mr=!1,Rl(e),!yn)if(tt(ft)!==null)yn=!0,Ol(Nl);else{var t=tt(Dt);t!==null&&Il(Pl,t.startTime-e)}}function Nl(e,t){yn=!1,Mr&&(Mr=!1,wf(jr),jr=-1),ci=!0;var n=ge;try{for(Rl(t),He=tt(ft);He!==null&&(!(He.expirationTime>t)||e&&!Sf());){var r=He.callback;if(typeof r=="function"){He.callback=null,ge=He.priorityLevel;var o=r(He.expirationTime<=t);t=H.unstable_now(),typeof o=="function"?He.callback=o:He===tt(ft)&&ui(ft),Rl(t)}else ui(ft);He=tt(ft)}if(He!==null)var i=!0;else{var s=tt(Dt);s!==null&&Il(Pl,s.startTime-t),i=!1}return i}finally{He=null,ge=n,ci=!1}}var fi=!1,ai=null,jr=-1,_f=5,xf=-1;function Sf(){return!(H.unstable_now()-xf<_f)}function kl(){if(ai!==null){var e=H.unstable_now();xf=e;var t=!0;try{t=ai(!0,e)}finally{t?Ar():(fi=!1,ai=null)}}else fi=!1}var Ar;typeof yf=="function"?Ar=function(){yf(kl)}:typeof MessageChannel<"u"?(El=new MessageChannel,gf=El.port2,El.port1.onmessage=kl,Ar=function(){gf.postMessage(null)}):Ar=function(){vf(kl,0)};var El,gf;function Ol(e){ai=e,fi||(fi=!0,Ar())}function Il(e,t){jr=vf(function(){e(H.unstable_now())},t)}H.unstable_IdlePriority=5;H.unstable_ImmediatePriority=1;H.unstable_LowPriority=4;H.unstable_NormalPriority=3;H.unstable_Profiling=null;H.unstable_UserBlockingPriority=2;H.unstable_cancelCallback=function(e){e.callback=null};H.unstable_continueExecution=function(){yn||ci||(yn=!0,Ol(Nl))};H.unstable_forceFrameRate=function(e){0>e||125r?(e.sortIndex=n,Cl(Dt,e),tt(ft)===null&&e===tt(Dt)&&(Mr?(wf(jr),jr=-1):Mr=!0,Il(Pl,n-r))):(e.sortIndex=o,Cl(ft,e),yn||ci||(yn=!0,Ol(Nl))),e};H.unstable_shouldYield=Sf;H.unstable_wrapCallback=function(e){var t=ge;return function(){var n=ge;ge=t;try{return e.apply(this,arguments)}finally{ge=n}}}});var Cf=q((HS,Ef)=>{"use strict";Ef.exports=kf()});var Tm=q($e=>{"use strict";var bd=fe(),Ue=Cf();function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,W0=/^[: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]*$/,Rf={},Pf={};function G0(e){return Zl.call(Pf,e)?!0:Zl.call(Rf,e)?!1:W0.test(e)?Pf[e]=!0:(Rf[e]=!0,!1)}function K0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Q0(e,t,n,r){if(t===null||typeof t>"u"||K0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Pe(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){me[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wa=/[\-:]([a-z])/g;function Ga(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wa,Ga);me[t]=new Pe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wa,Ga);me[t]=new Pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wa,Ga);me[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ka(e,t,n,r){var o=me.hasOwnProperty(t)?me[t]:null;(o!==null?o.type!==0:r||!(2()=>(t||e((t={exports:{}}).exports,t),t.exports),b0=(e,t)=>{for(var n in t)wl(e,n,{get:t[n],enumerable:!0})},L0=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of P0(t))!N0.call(e,o)&&o!==n&&wl(e,o,{get:()=>t[o],enumerable:!(r=I0(t,o))||r.enumerable});return e};var P=(e,t,n)=>(n=e!=null?O0(T0(e)):{},L0(t||!e||!e.__esModule?wl(n,"default",{value:e,enumerable:!0}):n,e));var gf=Y(A=>{"use strict";var Ar=Symbol.for("react.element"),M0=Symbol.for("react.portal"),A0=Symbol.for("react.fragment"),j0=Symbol.for("react.strict_mode"),D0=Symbol.for("react.profiler"),F0=Symbol.for("react.provider"),z0=Symbol.for("react.context"),B0=Symbol.for("react.forward_ref"),U0=Symbol.for("react.suspense"),V0=Symbol.for("react.memo"),$0=Symbol.for("react.lazy"),lf=Symbol.iterator;function H0(e){return e===null||typeof e!="object"?null:(e=lf&&e[lf]||e["@@iterator"],typeof e=="function"?e:null)}var cf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ff=Object.assign,df={};function zn(e,t,n){this.props=e,this.context=t,this.refs=df,this.updater=n||cf}zn.prototype.isReactComponent={};zn.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")};zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pf(){}pf.prototype=zn.prototype;function _l(e,t,n){this.props=e,this.context=t,this.refs=df,this.updater=n||cf}var Sl=_l.prototype=new pf;Sl.constructor=_l;ff(Sl,zn.prototype);Sl.isPureReactComponent=!0;var af=Array.isArray,mf=Object.prototype.hasOwnProperty,kl={current:null},hf={key:!0,ref:!0,__self:!0,__source:!0};function yf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)mf.call(t,r)&&!hf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1{"use strict";vf.exports=gf()});var If=Y(H=>{"use strict";function Il(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;rui(l,n))aui(f,l)?(e[r]=f,e[a]=n,r=a):(e[r]=l,e[s]=n,r=s);else if(aui(f,n))e[r]=f,e[a]=n,r=a;else break e}}return t}function ui(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(wf=performance,H.unstable_now=function(){return wf.now()}):(Cl=Date,xf=Cl.now(),H.unstable_now=function(){return Cl.now()-xf});var wf,Cl,xf,ft=[],Ft=[],Y0=1,He=null,ge=3,di=!1,yn=!1,Dr=!1,kf=typeof setTimeout=="function"?setTimeout:null,Ef=typeof clearTimeout=="function"?clearTimeout:null,_f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Pl(e){for(var t=tt(Ft);t!==null;){if(t.callback===null)fi(Ft);else if(t.startTime<=e)fi(Ft),t.sortIndex=t.expirationTime,Il(ft,t);else break;t=tt(Ft)}}function Tl(e){if(Dr=!1,Pl(e),!yn)if(tt(ft)!==null)yn=!0,bl(Nl);else{var t=tt(Ft);t!==null&&Ll(Tl,t.startTime-e)}}function Nl(e,t){yn=!1,Dr&&(Dr=!1,Ef(Fr),Fr=-1),di=!0;var n=ge;try{for(Pl(t),He=tt(ft);He!==null&&(!(He.expirationTime>t)||e&&!Of());){var r=He.callback;if(typeof r=="function"){He.callback=null,ge=He.priorityLevel;var o=r(He.expirationTime<=t);t=H.unstable_now(),typeof o=="function"?He.callback=o:He===tt(ft)&&fi(ft),Pl(t)}else fi(ft);He=tt(ft)}if(He!==null)var i=!0;else{var s=tt(Ft);s!==null&&Ll(Tl,s.startTime-t),i=!1}return i}finally{He=null,ge=n,di=!1}}var pi=!1,ci=null,Fr=-1,Cf=5,Rf=-1;function Of(){return!(H.unstable_now()-Rfe||125r?(e.sortIndex=n,Il(Ft,e),tt(ft)===null&&e===tt(Ft)&&(Dr?(Ef(Fr),Fr=-1):Dr=!0,Ll(Tl,n-r))):(e.sortIndex=o,Il(ft,e),yn||di||(yn=!0,bl(Nl))),e};H.unstable_shouldYield=Of;H.unstable_wrapCallback=function(e){var t=ge;return function(){var n=ge;ge=t;try{return e.apply(this,arguments)}finally{ge=n}}}});var Tf=Y((YS,Pf)=>{"use strict";Pf.exports=If()});var jm=Y($e=>{"use strict";var Dd=fe(),Ue=Tf();function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),na=Object.prototype.hasOwnProperty,q0=/^[: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]*$/,Nf={},bf={};function J0(e){return na.call(bf,e)?!0:na.call(Nf,e)?!1:q0.test(e)?bf[e]=!0:(Nf[e]=!0,!1)}function X0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Z0(e,t,n,r){if(t===null||typeof t>"u"||X0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Oe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Oe(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){me[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ka=/[\-:]([a-z])/g;function Ya(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ka,Ya);me[t]=new Oe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ka,Ya);me[t]=new Oe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ka,Ya);me[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function qa(e,t,n,r){var o=me.hasOwnProperty(t)?me[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` -`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wr(e):""}function q0(e){switch(e.tag){case 5:return Wr(e.type);case 16:return Wr("Lazy");case 13:return Wr("Suspense");case 19:return Wr("SuspenseList");case 0:case 2:case 15:return e=Ll(e.type,!1),e;case 11:return e=Ll(e.type.render,!1),e;case 1:return e=Ll(e.type,!0),e;default:return""}}function ra(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 Un:return"Fragment";case Bn:return"Portal";case ea:return"Profiler";case Qa:return"StrictMode";case ta:return"Suspense";case na:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Md:return(e.displayName||"Context")+".Consumer";case Ad:return(e._context.displayName||"Context")+".Provider";case qa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ja:return t=e.displayName||null,t!==null?t:ra(e.type)||"Memo";case Bt:t=e._payload,e=e._init;try{return ra(e(t))}catch{}}return null}function J0(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 ra(t);case 8:return t===Qa?"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 en(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X0(e){var t=Fd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pi(e){e._valueTracker||(e._valueTracker=X0(e))}function Dd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(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 oa(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Of(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=en(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zd(e,t){t=t.checked,t!=null&&Ka(e,"checked",t,!1)}function ia(e,t){zd(e,t);var n=en(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sa(e,t.type,n):t.hasOwnProperty("defaultValue")&&sa(e,t.type,en(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function If(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sa(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gr=Array.isArray;function Yn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function io(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Y0=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(e){Y0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qr[t]=qr[e]})});function $d(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qr.hasOwnProperty(e)&&qr[e]?(""+t).trim():t+"px"}function Hd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$d(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z0=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ua(e,t){if(t){if(Z0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function ca(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fa=null;function Xa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var da=null,Zn=null,er=null;function Lf(e){if(e=Eo(e)){if(typeof da!="function")throw Error(x(280));var t=e.stateNode;t&&(t=hs(t),da(e.stateNode,e.type,t))}}function Wd(e){Zn?er?er.push(e):er=[e]:Zn=e}function Gd(){if(Zn){var e=Zn,t=er;if(er=Zn=null,Lf(e),t)for(e=0;e>>=0,e===0?32:31-(cv(e)/fv|0)|0}var hi=64,yi=4194304;function Kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Kr(l):(i&=s,i!==0&&(r=Kr(i)))}else s=n&~o,s!==0?r=Kr(s):i!==0&&(r=Kr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function So(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-st(t),e[t]=n}function hv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xr),Vf=" ",$f=!1;function dp(e,t){switch(e){case"keyup":return $v.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Wv(e,t){switch(e){case"compositionend":return pp(t);case"keypress":return t.which!==32?null:($f=!0,Vf);case"textInput":return e=t.data,e===Vf&&$f?null:e;default:return null}}function Gv(e,t){if(Vn)return e==="compositionend"||!iu&&dp(e,t)?(e=cp(),bi=nu=Ht=null,Vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gf(n)}}function gp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vp(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function su(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tw(e){var t=vp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gp(n.ownerDocument.documentElement,n)){if(r!==null&&su(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Kf(n,i);var s=Kf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,va=null,Zr=null,wa=!1;function Qf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wa||$n==null||$n!==Ui(r)||(r=$n,"selectionStart"in r&&su(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zr&&fo(Zr,r)||(Zr=r,r=Qi(va,"onSelect"),0Gn||(e.current=Ca[Gn],Ca[Gn]=null,Gn--)}function W(e,t){Gn++,Ca[Gn]=e.current,e.current=t}var tn={},xe=rn(tn),Le=rn(!1),En=tn;function ir(e,t){var n=e.type.contextTypes;if(!n)return tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ae(e){return e=e.childContextTypes,e!=null}function Ji(){Q(Le),Q(xe)}function rd(e,t,n){if(xe.current!==tn)throw Error(x(168));W(xe,t),W(Le,n)}function Pp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(x(108,J0(e)||"Unknown",o));return Z({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,En=xe.current,W(xe,e),W(Le,Le.current),!0}function od(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Pp(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,Q(Le),Q(xe),W(xe,e)):Q(Le),W(Le,n)}var xt=null,ys=!1,Hl=!1;function Np(e){xt===null?xt=[e]:xt.push(e)}function fw(e){ys=!0,Np(e)}function on(){if(!Hl&&xt!==null){Hl=!0;var e=0,t=U;try{var n=xt;for(U=1;e>=s,o-=s,St=1<<32-st(t)+o|n<N?(te=P,P=null):te=P.sibling;var j=d(m,P,v[N],_);if(j===null){P===null&&(P=te);break}e&&P&&j.alternate===null&&t(m,P),p=i(j,p,N),R===null?C=j:R.sibling=j,R=j,P=te}if(N===v.length)return n(m,P),J&&gn(m,N),C;if(P===null){for(;NN?(te=P,P=null):te=P.sibling;var ye=d(m,P,j.value,_);if(ye===null){P===null&&(P=te);break}e&&P&&ye.alternate===null&&t(m,P),p=i(ye,p,N),R===null?C=ye:R.sibling=ye,R=ye,P=te}if(j.done)return n(m,P),J&&gn(m,N),C;if(P===null){for(;!j.done;N++,j=v.next())j=c(m,j.value,_),j!==null&&(p=i(j,p,N),R===null?C=j:R.sibling=j,R=j);return J&&gn(m,N),C}for(P=r(m,P);!j.done;N++,j=v.next())j=y(P,m,N,j.value,_),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?N:j.key),p=i(j,p,N),R===null?C=j:R.sibling=j,R=j);return e&&P.forEach(function(Mn){return t(m,Mn)}),J&&gn(m,N),C}function S(m,p,v,_){if(typeof v=="object"&&v!==null&&v.type===Un&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case di:e:{for(var C=v.key,R=p;R!==null;){if(R.key===C){if(C=v.type,C===Un){if(R.tag===7){n(m,R.sibling),p=o(R,v.props.children),p.return=m,m=p;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Bt&&fd(C)===R.type){n(m,R.sibling),p=o(R,v.props),p.ref=Ur(m,R,v),p.return=m,m=p;break e}n(m,R);break}else t(m,R);R=R.sibling}v.type===Un?(p=kn(v.props.children,m.mode,_,v.key),p.return=m,m=p):(_=Bi(v.type,v.key,v.props,null,m.mode,_),_.ref=Ur(m,p,v),_.return=m,m=_)}return s(m);case Bn:e:{for(R=v.key;p!==null;){if(p.key===R)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=o(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Yl(v,m.mode,_),p.return=m,m=p}return s(m);case Bt:return R=v._init,S(m,p,R(v._payload),_)}if(Gr(v))return h(m,p,v,_);if(Fr(v))return g(m,p,v,_);Pi(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,v),p.return=m,m=p):(n(m,p),p=Xl(v,m.mode,_),p.return=m,m=p),s(m)):n(m,p)}return S}var lr=jp(!0),Fp=jp(!1),Co={},yt=rn(Co),yo=rn(Co),go=rn(Co);function xn(e){if(e===Co)throw Error(x(174));return e}function hu(e,t){switch(W(go,t),W(yo,e),W(yt,Co),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:aa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=aa(t,e)}Q(yt),W(yt,t)}function ar(){Q(yt),Q(yo),Q(go)}function Dp(e){xn(go.current);var t=xn(yt.current),n=aa(t,e.type);t!==n&&(W(yo,e),W(yt,n))}function yu(e){yo.current===e&&(Q(yt),Q(yo))}var X=rn(0);function rs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wl=[];function gu(){for(var e=0;en?n:4,e(!0);var r=Gl.transition;Gl.transition={};try{e(!1),t()}finally{U=n,Gl.transition=r}}function em(){return Je().memoizedState}function hw(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tm(e))nm(t,n);else if(n=bp(e,t,n,r),n!==null){var o=Re();lt(n,e,r,o),rm(n,t,r)}}function yw(e,t,n){var r=Yt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tm(e))nm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,at(l,s)){var a=t.interleaved;a===null?(o.next=o,pu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=bp(e,t,o,r),n!==null&&(o=Re(),lt(n,e,r,o),rm(n,t,r))}}function tm(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function nm(e,t){eo=os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Za(e,n)}}var is={readContext:qe,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},gw={readContext:qe,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:qe,useEffect:pd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ji(4194308,4,qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ji(4194308,4,e,t)},useInsertionEffect:function(e,t){return ji(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hw.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:dd,useDebugValue:Su,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=dd(!1),t=e[0];return e=mw.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,o=pt();if(J){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ce===null)throw Error(x(349));Rn&30||Up(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,pd($p.bind(null,r,i,e),[e]),r.flags|=2048,_o(9,Vp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pt(),t=ce.identifierPrefix;if(J){var n=kt,r=St;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vo++,0")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Al=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qr(e):""}function ev(e){switch(e.tag){case 5:return Qr(e.type);case 16:return Qr("Lazy");case 13:return Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 2:case 15:return e=jl(e.type,!1),e;case 11:return e=jl(e.type.render,!1),e;case 1:return e=jl(e.type,!0),e;default:return""}}function sa(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 $n:return"Fragment";case Vn:return"Portal";case ra:return"Profiler";case Ja:return"StrictMode";case oa:return"Suspense";case ia:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bd:return(e.displayName||"Context")+".Consumer";case zd:return(e._context.displayName||"Context")+".Provider";case Xa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Za:return t=e.displayName||null,t!==null?t:sa(e.type)||"Memo";case Bt:t=e._payload,e=e._init;try{return sa(e(t))}catch{}}return null}function tv(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 sa(t);case 8:return t===Ja?"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 en(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nv(e){var t=Vd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hi(e){e._valueTracker||(e._valueTracker=nv(e))}function $d(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $i(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 la(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=en(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hd(e,t){t=t.checked,t!=null&&qa(e,"checked",t,!1)}function aa(e,t){Hd(e,t);var n=en(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ua(e,t.type,n):t.hasOwnProperty("defaultValue")&&ua(e,t.type,en(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Af(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ua(e,t,n){(t!=="number"||$i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rv=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){rv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function Kd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function Yd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Kd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ov=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function da(e,t){if(t){if(ov[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function pa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ma=null;function eu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,tr=null,nr=null;function Ff(e){if(e=Ro(e)){if(typeof ha!="function")throw Error(_(280));var t=e.stateNode;t&&(t=gs(t),ha(e.stateNode,e.type,t))}}function qd(e){tr?nr?nr.push(e):nr=[e]:tr=e}function Jd(){if(tr){var e=tr,t=nr;if(nr=tr=null,Ff(e),t)for(e=0;e>>=0,e===0?32:31-(hv(e)/yv|0)|0}var gi=64,vi=4194304;function Yr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Yr(l):(i&=s,i!==0&&(r=Yr(i)))}else s=n&~o,s!==0?r=Yr(s):i!==0&&(r=Yr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Eo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-st(t),e[t]=n}function xv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zr),Qf=" ",Kf=!1;function gp(e,t){switch(e){case"keyup":return Kv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function qv(e,t){switch(e){case"compositionend":return vp(t);case"keypress":return t.which!==32?null:(Kf=!0,Qf);case"textInput":return e=t.data,e===Qf&&Kf?null:e;default:return null}}function Jv(e,t){if(Hn)return e==="compositionend"||!au&&gp(e,t)?(e=hp(),Mi=iu=Ht=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jf(n)}}function Sp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kp(){for(var e=window,t=$i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$i(e.document)}return t}function uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sw(e){var t=kp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sp(n.ownerDocument.documentElement,n)){if(r!==null&&uu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Xf(n,i);var s=Xf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Wn=null,_a=null,to=null,Sa=!1;function Zf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sa||Wn==null||Wn!==$i(r)||(r=Wn,"selectionStart"in r&&uu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),to&&mo(to,r)||(to=r,r=qi(_a,"onSelect"),0Kn||(e.current=Ia[Kn],Ia[Kn]=null,Kn--)}function W(e,t){Kn++,Ia[Kn]=e.current,e.current=t}var tn={},_e=rn(tn),Le=rn(!1),En=tn;function lr(e,t){var n=e.type.contextTypes;if(!n)return tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Me(e){return e=e.childContextTypes,e!=null}function Xi(){K(Le),K(_e)}function ad(e,t,n){if(_e.current!==tn)throw Error(_(168));W(_e,t),W(Le,n)}function bp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,tv(e)||"Unknown",o));return Z({},n,r)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,En=_e.current,W(_e,e),W(Le,Le.current),!0}function ud(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=bp(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,K(Le),K(_e),W(_e,e)):K(Le),W(Le,n)}var _t=null,vs=!1,Ql=!1;function Lp(e){_t===null?_t=[e]:_t.push(e)}function yw(e){vs=!0,Lp(e)}function on(){if(!Ql&&_t!==null){Ql=!0;var e=0,t=U;try{var n=_t;for(U=1;e>=s,o-=s,St=1<<32-st(t)+o|n<I?(te=O,O=null):te=O.sibling;var j=d(m,O,v[I],x);if(j===null){O===null&&(O=te);break}e&&O&&j.alternate===null&&t(m,O),p=i(j,p,I),R===null?C=j:R.sibling=j,R=j,O=te}if(I===v.length)return n(m,O),q&&gn(m,I),C;if(O===null){for(;II?(te=O,O=null):te=O.sibling;var ye=d(m,O,j.value,x);if(ye===null){O===null&&(O=te);break}e&&O&&ye.alternate===null&&t(m,O),p=i(ye,p,I),R===null?C=ye:R.sibling=ye,R=ye,O=te}if(j.done)return n(m,O),q&&gn(m,I),C;if(O===null){for(;!j.done;I++,j=v.next())j=c(m,j.value,x),j!==null&&(p=i(j,p,I),R===null?C=j:R.sibling=j,R=j);return q&&gn(m,I),C}for(O=r(m,O);!j.done;I++,j=v.next())j=y(O,m,I,j.value,x),j!==null&&(e&&j.alternate!==null&&O.delete(j.key===null?I:j.key),p=i(j,p,I),R===null?C=j:R.sibling=j,R=j);return e&&O.forEach(function(Dn){return t(m,Dn)}),q&&gn(m,I),C}function S(m,p,v,x){if(typeof v=="object"&&v!==null&&v.type===$n&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case mi:e:{for(var C=v.key,R=p;R!==null;){if(R.key===C){if(C=v.type,C===$n){if(R.tag===7){n(m,R.sibling),p=o(R,v.props.children),p.return=m,m=p;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Bt&&yd(C)===R.type){n(m,R.sibling),p=o(R,v.props),p.ref=$r(m,R,v),p.return=m,m=p;break e}n(m,R);break}else t(m,R);R=R.sibling}v.type===$n?(p=kn(v.props.children,m.mode,x,v.key),p.return=m,m=p):(x=Vi(v.type,v.key,v.props,null,m.mode,x),x.ref=$r(m,p,v),x.return=m,m=x)}return s(m);case Vn:e:{for(R=v.key;p!==null;){if(p.key===R)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=o(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=ta(v,m.mode,x),p.return=m,m=p}return s(m);case Bt:return R=v._init,S(m,p,R(v._payload),x)}if(Kr(v))return h(m,p,v,x);if(zr(v))return g(m,p,v,x);Pi(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,v),p.return=m,m=p):(n(m,p),p=ea(v,m.mode,x),p.return=m,m=p),s(m)):n(m,p)}return S}var ur=Up(!0),Vp=Up(!1),Oo={},yt=rn(Oo),vo=rn(Oo),wo=rn(Oo);function _n(e){if(e===Oo)throw Error(_(174));return e}function vu(e,t){switch(W(wo,t),W(vo,e),W(yt,Oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fa(t,e)}K(yt),W(yt,t)}function cr(){K(yt),K(vo),K(wo)}function $p(e){_n(wo.current);var t=_n(yt.current),n=fa(t,e.type);t!==n&&(W(vo,e),W(yt,n))}function wu(e){vo.current===e&&(K(yt),K(vo))}var J=rn(0);function is(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kl=[];function xu(){for(var e=0;en?n:4,e(!0);var r=Yl.transition;Yl.transition={};try{e(!1),t()}finally{U=n,Yl.transition=r}}function im(){return qe().memoizedState}function xw(e,t,n){var r=Xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sm(e))lm(t,n);else if(n=Dp(e,t,n,r),n!==null){var o=Re();lt(n,e,r,o),am(n,t,r)}}function _w(e,t,n){var r=Xt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sm(e))lm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,at(l,s)){var a=t.interleaved;a===null?(o.next=o,yu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Dp(e,t,o,r),n!==null&&(o=Re(),lt(n,e,r,o),am(n,t,r))}}function sm(e){var t=e.alternate;return e===X||t!==null&&t===X}function lm(e,t){no=ss=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function am(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nu(e,n)}}var ls={readContext:Ye,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Sw={readContext:Ye,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:vd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,em.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xw.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:gd,useDebugValue:Cu,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=gd(!1),t=e[0];return e=ww.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,o=pt();if(q){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ce===null)throw Error(_(349));Rn&30||Gp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,vd(Kp.bind(null,r,i,e),[e]),r.flags|=2048,So(9,Qp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pt(),t=ce.identifierPrefix;if(q){var n=kt,r=St;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mt]=t,e[ho]=r,dm(e,t,!1,!1),t.stateNode=e;e:{switch(s=ca(n,r),n){case"dialog":K("cancel",e),K("close",e),o=r;break;case"iframe":case"object":case"embed":K("load",e),o=r;break;case"video":case"audio":for(o=0;ocr&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304)}else{if(!r)if(e=rs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!J)return we(t),null}else 2*ne()-i.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=X.current,W(X,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Nu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Cw(e,t){switch(au(t),t.tag){case 1:return Ae(t.type)&&Ji(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),Q(Le),Q(xe),gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yu(t),null;case 13:if(Q(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(X),null;case 4:return ar(),null;case 10:return du(t.type._context),null;case 22:case 23:return Nu(),null;case 24:return null;default:return null}}var Oi=!1,_e=!1,Rw=typeof WeakSet=="function"?WeakSet:Set,E=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Fa(e,t,n){try{n()}catch(r){ee(e,t,r)}}var Sd=!1;function Pw(e,t){if(_a=Gi,e=vp(),su(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,f=0,u=0,c=e,d=null;t:for(;;){for(var y;c!==n||o!==0&&c.nodeType!==3||(l=s+o),c!==i||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(y=c.firstChild)!==null;)d=c,c=y;for(;;){if(c===e)break t;if(d===n&&++f===o&&(l=s),d===i&&++u===r&&(a=s),(y=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(xa={focusedElem:e,selectionRange:n},Gi=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,S=h.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:rt(t.type,g),S);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(_){ee(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return h=Sd,Sd=!1,h}function to(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Fa(t,n,i)}o=o.next}while(o!==r)}}function ws(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Da(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hm(e){var t=e.alternate;t!==null&&(e.alternate=null,hm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[ho],delete t[Ea],delete t[uw],delete t[cw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ym(e){return e.tag===5||e.tag===3||e.tag===4}function kd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ym(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qi));else if(r!==4&&(e=e.child,e!==null))for(za(e,t,n),e=e.sibling;e!==null;)za(e,t,n),e=e.sibling}function Ba(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ba(e,t,n),e=e.sibling;e!==null;)Ba(e,t,n),e=e.sibling}var de=null,ot=!1;function zt(e,t,n){for(n=n.child;n!==null;)gm(e,t,n),n=n.sibling}function gm(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(fs,n)}catch{}switch(n.tag){case 5:_e||Jn(n,t);case 6:var r=de,o=ot;de=null,zt(e,t,n),de=r,ot=o,de!==null&&(ot?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(ot?(e=de,n=n.stateNode,e.nodeType===8?$l(e.parentNode,n):e.nodeType===1&&$l(e,n),uo(e)):$l(de,n.stateNode));break;case 4:r=de,o=ot,de=n.stateNode.containerInfo,ot=!0,zt(e,t,n),de=r,ot=o;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Fa(n,t,s),o=o.next}while(o!==r)}zt(e,t,n);break;case 1:if(!_e&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ee(n,t,l)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,zt(e,t,n),_e=r):zt(e,t,n);break;default:zt(e,t,n)}}function Ed(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rw),t.forEach(function(r){var o=jw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ow(r/1960))-r,10e?16:e,Wt===null)var r=!1;else{if(e=Wt,Wt=null,as=0,D&6)throw Error(x(331));var o=D;for(D|=4,E=e.current;E!==null;){var i=E,s=i.child;if(E.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ane()-Ru?Sn(e,0):Cu|=n),Me(e,t)}function Cm(e,t){t===0&&(e.mode&1?(t=yi,yi<<=1,!(yi&130023424)&&(yi=4194304)):t=1);var n=Re();e=Pt(e,t),e!==null&&(So(e,t,n),Me(e,n))}function Mw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cm(e,n)}function jw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),Cm(e,n)}var Rm;Rm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,kw(e,t,n);be=!!(e.flags&131072)}else be=!1,J&&t.flags&1048576&&Op(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fi(e,t),e=t.pendingProps;var o=ir(t,xe.current);nr(t,n),o=wu(null,t,r,e,o,n);var i=_u();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,Xi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,mu(t),o.updater=gs,t.stateNode=o,o._reactInternals=t,Ia(t,r,e,n),t=La(null,t,r,!0,i,n)):(t.tag=0,J&&i&&lu(t),Ce(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Dw(r),e=rt(r,e),o){case 0:t=ba(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=gd(null,t,r,e,n);break e;case 14:t=vd(null,t,r,rt(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),ba(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),wd(e,t,r,o,n);case 3:e:{if(um(t),e===null)throw Error(x(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Lp(e,t),ns(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ur(Error(x(423)),t),t=_d(e,t,r,n,o);break e}else if(r!==o){o=ur(Error(x(424)),t),t=_d(e,t,r,n,o);break e}else for(ze=qt(t.stateNode.containerInfo.firstChild),Be=t,J=!0,it=null,n=Fp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sr(),r===o){t=Nt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Dp(t),e===null&&Pa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Sa(r,o)?s=null:i!==null&&Sa(r,i)&&(t.flags|=32),am(e,t),Ce(e,t,s,n),t.child;case 6:return e===null&&Pa(t),null;case 13:return cm(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lr(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),gd(e,t,r,o,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,W(es,r._currentValue),r._currentValue=s,i!==null)if(at(i.value,s)){if(i.children===o.children&&!Le.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Et(-1,n&-n),a.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var u=f.pending;u===null?a.next=a:(a.next=u.next,u.next=a),f.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Na(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(x(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Na(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ce(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,nr(t,n),o=qe(o),r=r(o),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,o=rt(r,t.pendingProps),o=rt(r.type,o),vd(e,t,r,o,n);case 15:return sm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Fi(e,t),t.tag=1,Ae(r)?(e=!0,Xi(t)):e=!1,nr(t,n),Mp(t,r,o),Ia(t,r,o,n),La(null,t,r,!0,e,n);case 19:return fm(e,t,n);case 22:return lm(e,t,n)}throw Error(x(156,t.tag))};function Pm(e,t){return Zd(e,t)}function Fw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new Fw(e,t,n,r)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dw(e){if(typeof e=="function")return Iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qa)return 11;if(e===Ja)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=Ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Iu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Un:return kn(n.children,o,i,t);case Qa:s=8,o|=8;break;case ea:return e=Ke(12,n,t,o|2),e.elementType=ea,e.lanes=i,e;case ta:return e=Ke(13,n,t,o),e.elementType=ta,e.lanes=i,e;case na:return e=Ke(19,n,t,o),e.elementType=na,e.lanes=i,e;case jd:return xs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ad:s=10;break e;case Md:s=9;break e;case qa:s=11;break e;case Ja:s=14;break e;case Bt:s=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ke(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function kn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function xs(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=jd,e.lanes=n,e.stateNode={isHidden:!1},e}function Xl(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function Yl(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tu(e,t,n,r,o,i,s,l,a){return e=new zw(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ke(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mu(i),e}function Bw(e,t,n){var r=3{"use strict";function bm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bm)}catch(e){console.error(e)}}bm(),Lm.exports=Tm()});var Mm=q(ju=>{"use strict";var Am=Mu();ju.createRoot=Am.createRoot,ju.hydrateRoot=Am.hydrateRoot;var KS});var Um=q(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.output=Ne.exists=Ne.hash=Ne.bytes=Ne.bool=Ne.number=void 0;function Rs(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}Ne.number=Rs;function Fm(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}Ne.bool=Fm;function Gw(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Fu(e,...t){if(!Gw(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}Ne.bytes=Fu;function Dm(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Rs(e.outputLen),Rs(e.blockLen)}Ne.hash=Dm;function zm(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Ne.exists=zm;function Bm(e,t){Fu(e);let n=t.outputLen;if(e.length{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.add5L=I.add5H=I.add4H=I.add4L=I.add3H=I.add3L=I.add=I.rotlBL=I.rotlBH=I.rotlSL=I.rotlSH=I.rotr32L=I.rotr32H=I.rotrBL=I.rotrBH=I.rotrSL=I.rotrSH=I.shrSL=I.shrSH=I.toBig=I.split=I.fromBig=void 0;var Ps=BigInt(2**32-1),Du=BigInt(32);function zu(e,t=!1){return t?{h:Number(e&Ps),l:Number(e>>Du&Ps)}:{h:Number(e>>Du&Ps)|0,l:Number(e&Ps)|0}}I.fromBig=zu;function Vm(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);I.toBig=$m;var Hm=(e,t,n)=>e>>>n;I.shrSH=Hm;var Wm=(e,t,n)=>e<<32-n|t>>>n;I.shrSL=Wm;var Gm=(e,t,n)=>e>>>n|t<<32-n;I.rotrSH=Gm;var Km=(e,t,n)=>e<<32-n|t>>>n;I.rotrSL=Km;var Qm=(e,t,n)=>e<<64-n|t>>>n-32;I.rotrBH=Qm;var qm=(e,t,n)=>e>>>n-32|t<<64-n;I.rotrBL=qm;var Jm=(e,t)=>t;I.rotr32H=Jm;var Xm=(e,t)=>e;I.rotr32L=Xm;var Ym=(e,t,n)=>e<>>32-n;I.rotlSH=Ym;var Zm=(e,t,n)=>t<>>32-n;I.rotlSL=Zm;var eh=(e,t,n)=>t<>>64-n;I.rotlBH=eh;var th=(e,t,n)=>e<>>64-n;I.rotlBL=th;function nh(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}I.add=nh;var rh=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);I.add3L=rh;var oh=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;I.add3H=oh;var ih=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);I.add4L=ih;var sh=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;I.add4H=sh;var lh=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);I.add5L=lh;var ah=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;I.add5H=ah;var Qw={fromBig:zu,split:Vm,toBig:$m,shrSH:Hm,shrSL:Wm,rotrSH:Gm,rotrSL:Km,rotrBH:Qm,rotrBL:qm,rotr32H:Jm,rotr32L:Xm,rotlSH:Ym,rotlSL:Zm,rotlBH:eh,rotlBL:th,add:nh,add3L:rh,add3H:oh,add4L:ih,add4H:sh,add5H:ah,add5L:lh};I.default=Qw});var ch=q(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.crypto=void 0;Ns.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var ph=q(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.randomBytes=L.wrapXOFConstructorWithOpts=L.wrapConstructorWithOpts=L.wrapConstructor=L.checkOpts=L.Hash=L.concatBytes=L.toBytes=L.utf8ToBytes=L.asyncLoop=L.nextTick=L.hexToBytes=L.bytesToHex=L.isLE=L.rotr=L.createView=L.u32=L.u8=void 0;var Bu=ch(),qw=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);L.u8=qw;var Jw=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));L.u32=Jw;function Vu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var Xw=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);L.createView=Xw;var Yw=(e,t)=>e<<32-t|e>>>t;L.rotr=Yw;L.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!L.isLE)throw new Error("Non little-endian hardware is not supported");var Zw=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function e1(e){if(!Vu(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n=It._0&&e<=It._9)return e-It._0;if(e>=It._A&&e<=It._F)return e-(It._A-10);if(e>=It._a&&e<=It._f)return e-(It._a-10)}function t1(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let o=0,i=0;o{};L.nextTick=n1;async function r1(e,t,n){let r=Date.now();for(let o=0;o=0&&ie().update(Os(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}L.wrapConstructor=l1;function a1(e){let t=(r,o)=>e(o).update(Os(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapConstructorWithOpts=a1;function u1(e){let t=(r,o)=>e(o).update(Os(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapXOFConstructorWithOpts=u1;function c1(e=32){if(Bu.crypto&&typeof Bu.crypto.getRandomValues=="function")return Bu.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}L.randomBytes=c1});var $u=q(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.shake256=G.shake128=G.keccak_512=G.keccak_384=G.keccak_256=G.keccak_224=G.sha3_512=G.sha3_384=G.sha3_256=G.sha3_224=G.Keccak=G.keccakP=void 0;var mr=Um(),No=uh(),Po=ph(),[yh,gh,vh]=[[],[],[]],f1=BigInt(0),Ro=BigInt(1),d1=BigInt(2),p1=BigInt(7),m1=BigInt(256),h1=BigInt(113);for(let e=0,t=Ro,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],yh.push(2*(5*r+n)),gh.push((e+1)*(e+2)/2%64);let o=f1;for(let i=0;i<7;i++)t=(t<>p1)*h1)%m1,t&d1&&(o^=Ro<<(Ro<n>32?(0,No.rotlBH)(e,t,n):(0,No.rotlSH)(e,t,n),hh=(e,t,n)=>n>32?(0,No.rotlBL)(e,t,n):(0,No.rotlSL)(e,t,n);function wh(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let l=(s+8)%10,a=(s+2)%10,f=n[a],u=n[a+1],c=mh(f,u,1)^n[l],d=hh(f,u,1)^n[l+1];for(let y=0;y<50;y+=10)e[s+y]^=c,e[s+y+1]^=d}let o=e[2],i=e[3];for(let s=0;s<24;s++){let l=gh[s],a=mh(o,i,l),f=hh(o,i,l),u=yh[s];o=e[u],i=e[u+1],e[u]=a,e[u+1]=f}for(let s=0;s<50;s+=10){for(let l=0;l<10;l++)n[l]=e[s+l];for(let l=0;l<10;l++)e[s+l]^=~n[(l+2)%10]&n[(l+4)%10]}e[0]^=y1[r],e[1]^=g1[r]}n.fill(0)}G.keccakP=wh;var Oo=class e extends Po.Hash{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,mr.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Po.u32)(this.state)}keccak(){wh(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,mr.exists)(this);let{blockLen:n,state:r}=this;t=(0,Po.toBytes)(t);let o=t.length;for(let i=0;i=r&&this.keccak();let s=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+s),o),this.posOut+=s,o+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,mr.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,mr.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:s}=this;return t||(t=new e(n,r,o,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=s,t.destroyed=this.destroyed,t}};G.Keccak=Oo;var ln=(e,t,n)=>(0,Po.wrapConstructor)(()=>new Oo(t,e,n));G.sha3_224=ln(6,144,224/8);G.sha3_256=ln(6,136,256/8);G.sha3_384=ln(6,104,384/8);G.sha3_512=ln(6,72,512/8);G.keccak_224=ln(1,144,224/8);G.keccak_256=ln(1,136,256/8);G.keccak_384=ln(1,104,384/8);G.keccak_512=ln(1,72,512/8);var _h=(e,t,n)=>(0,Po.wrapXOFConstructorWithOpts)((r={})=>new Oo(t,e,r.dkLen===void 0?n:r.dkLen,!0));G.shake128=_h(31,168,128/8);G.shake256=_h(31,136,256/8)});var Nh=q((ok,an)=>{var{sha3_512:v1}=$u(),Sh=24,Io=32,Hu=(e=4,t=Math.random)=>{let n="";for(;n.lengthkh(v1(e)).toString(36).slice(1),xh=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),w1=e=>xh[Math.floor(e()*xh.length)],Ch=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),n=t.length?t+Hu(Io):Hu(Io);return Eh(n).substring(0,Io)},Rh=e=>()=>e++,_1=476782367,Ph=({random:e=Math.random,counter:t=Rh(Math.floor(e()*_1)),length:n=Sh,fingerprint:r=Ch()}={})=>function(){let i=w1(e),s=Date.now().toString(36),l=t().toString(36),a=Hu(n,e),f=`${s+a+l+r}`;return`${i+Eh(f).substring(1,n)}`},x1=Ph(),S1=(e,{minLength:t=2,maxLength:n=Io}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};an.exports.getConstants=()=>({defaultLength:Sh,bigLength:Io});an.exports.init=Ph;an.exports.createId=x1;an.exports.bufToBigInt=kh;an.exports.createCounter=Rh;an.exports.createFingerprint=Ch;an.exports.isCuid=S1});var Oh=q((ik,To)=>{var{createId:k1,init:E1,getConstants:C1,isCuid:R1}=Nh();To.exports.createId=k1;To.exports.init=E1;To.exports.getConstants=C1;To.exports.isCuid=R1});var Th=q(Gu=>{"use strict";var P1=Symbol.for("react.fragment");Gu.Fragment=P1;Gu.jsxDEV=void 0});var Lh=q((uk,bh)=>{"use strict";bh.exports=Th()});var Mh=q(Is=>{"use strict";var N1=fe(),O1=Symbol.for("react.element"),I1=Symbol.for("react.fragment"),T1=Object.prototype.hasOwnProperty,b1=N1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L1={key:!0,ref:!0,__self:!0,__source:!0};function Ah(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)T1.call(t,r)&&!L1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:O1,type:e,key:i,ref:s,props:o,_owner:b1.current}}Is.Fragment=I1;Is.jsx=Ah;Is.jsxs=Ah});var V=q((fk,jh)=>{"use strict";jh.exports=Mh()});var sc=q((Yk,hy)=>{var U1="Expected a function",ly="__lodash_hash_undefined__",ay=1/0,V1="[object Function]",$1="[object GeneratorFunction]",H1="[object Symbol]",W1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G1=/^\w*$/,K1=/^\./,Q1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q1=/[\\^$.*+?()[\]{}|]/g,J1=/\\(\\)?/g,X1=/^\[object .+?Constructor\]$/,Y1=typeof global=="object"&&global&&global.Object===Object&&global,Z1=typeof self=="object"&&self&&self.Object===Object&&self,nc=Y1||Z1||Function("return this")();function e_(e,t){return e?.[t]}function t_(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var n_=Array.prototype,r_=Function.prototype,uy=Object.prototype,tc=nc["__core-js_shared__"],ry=function(){var e=/[^.]+$/.exec(tc&&tc.keys&&tc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),cy=r_.toString,rc=uy.hasOwnProperty,fy=uy.toString,o_=RegExp("^"+cy.call(rc).replace(q1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oy=nc.Symbol,i_=n_.splice,s_=dy(nc,"Map"),Ao=dy(Object,"create"),iy=oy?oy.prototype:void 0,sy=iy?iy.toString:void 0;function bn(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function y_(e,t){var n=this.__data__,r=Ls(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}hr.prototype.clear=d_;hr.prototype.delete=p_;hr.prototype.get=m_;hr.prototype.has=h_;hr.prototype.set=y_;function Ln(e){var t=-1,n=e?e.length:0;for(this.clear();++t{var{sha3_512:F_}=$u(),Cy=24,jo=32,ac=(e=4,t=Math.random)=>{let n="";for(;n.lengthRy(F_(e)).toString(36).slice(1),Ey=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),D_=e=>Ey[Math.floor(e()*Ey.length)],Ny=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+ac(jo,t):ac(jo,t);return Py(r).substring(0,jo)},Oy=e=>()=>e++,z_=476782367,Iy=({random:e=Math.random,counter:t=Oy(Math.floor(e()*z_)),length:n=Cy,fingerprint:r=Ny({random:e})}={})=>function(){let i=D_(e),s=Date.now().toString(36),l=t().toString(36),a=ac(n,e),f=`${s+a+l+r}`;return`${i+Py(f).substring(1,n)}`},B_=Iy(),U_=(e,{minLength:t=2,maxLength:n=jo}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};dn.exports.getConstants=()=>({defaultLength:Cy,bigLength:jo});dn.exports.init=Iy;dn.exports.createId=B_;dn.exports.bufToBigInt=Ry;dn.exports.createCounter=Oy;dn.exports.createFingerprint=Ny;dn.exports.isCuid=U_});var uc=q((kE,Fo)=>{var{createId:V_,init:$_,getConstants:H_,isCuid:W_}=Ty();Fo.exports.createId=V_;Fo.exports.init=$_;Fo.exports.getConstants=H_;Fo.exports.isCuid=W_});var Jy=q((Bo,Ws)=>{(function(e,t){"use strict";var n="1.0.37",r="",o="?",i="function",s="undefined",l="object",a="string",f="major",u="model",c="name",d="type",y="vendor",h="version",g="architecture",S="console",m="mobile",p="tablet",v="smarttv",_="wearable",C="embedded",R=500,P="Amazon",N="Apple",te="ASUS",j="BlackBerry",ye="Browser",Mn="Chrome",v0="Edge",Xo="Firefox",Yo="Google",Wc="Huawei",ul="LG",cl="Microsoft",Gc="Motorola",Zo="Opera",ei="Samsung",Kc="Sharp",ti="Sony",fl="Xiaomi",dl="Zebra",Qc="Facebook",qc="Chromium OS",Jc="Mac OS",w0=function(F,B){var b={};for(var $ in F)B[$]&&B[$].length%2===0?b[$]=B[$].concat(F[$]):b[$]=F[$];return b},ni=function(F){for(var B={},b=0;b0?z.length===2?typeof z[1]==i?this[z[0]]=z[1].call(this,ct):this[z[0]]=z[1]:z.length===3?typeof z[1]===i&&!(z[1].exec&&z[1].test)?this[z[0]]=ct?z[1].call(this,ct,z[2]):t:this[z[0]]=ct?ct.replace(z[1],z[2]):t:z.length===4&&(this[z[0]]=ct?z[3].call(this,ct.replace(z[1],z[2])):t):this[z]=ct||t;b+=2}},ml=function(F,B){for(var b in B)if(typeof B[b]===l&&B[b].length>0){for(var $=0;$2&&(T[u]="iPad",T[d]=p),T},this.getEngine=function(){var T={};return T[c]=t,T[h]=t,br.call(T,$,ut.engine),T},this.getOS=function(){var T={};return T[c]=t,T[h]=t,br.call(T,$,ut.os),z&&!T[c]&&Ft&&Ft.platform!="Unknown"&&(T[c]=Ft.platform.replace(/chrome os/i,qc).replace(/macos/i,Jc)),T},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return $},this.setUA=function(T){return $=typeof T===a&&T.length>R?pl(T,R):T,this},this.setUA($),this};Fe.VERSION=n,Fe.BROWSER=ni([c,h,f]),Fe.CPU=ni([g]),Fe.DEVICE=ni([u,y,d,S,m,v,p,_,C]),Fe.ENGINE=Fe.OS=ni([c,h]),typeof Bo!==s?(typeof Ws!==s&&Ws.exports&&(Bo=Ws.exports=Fe),Bo.UAParser=Fe):typeof define===i&&define.amd?define(function(){return Fe}):typeof e!==s&&(e.UAParser=Fe);var jn=typeof e!==s&&(e.jQuery||e.Zepto);if(jn&&!jn.ua){var ri=new Fe;jn.ua=ri.getResult(),jn.ua.get=function(){return ri.getUA()},jn.ua.set=function(F){ri.setUA(F);var B=ri.getResult();for(var b in B)jn.ua[b]=B[b]}}})(typeof window=="object"?window:Bo)});var Yg=q((UP,Xg)=>{var rS=1/0,oS="[object Symbol]",iS=/^\s+|\s+$/g,Uc="\\ud800-\\udfff",Bg="\\u0300-\\u036f\\ufe20-\\ufe23",Ug="\\u20d0-\\u20f0",Vg="\\ufe0e\\ufe0f",sS="["+Uc+"]",zc="["+Bg+Ug+"]",Bc="\\ud83c[\\udffb-\\udfff]",lS="(?:"+zc+"|"+Bc+")",$g="[^"+Uc+"]",Hg="(?:\\ud83c[\\udde6-\\uddff]){2}",Wg="[\\ud800-\\udbff][\\udc00-\\udfff]",Gg="\\u200d",Kg=lS+"?",Qg="["+Vg+"]?",aS="(?:"+Gg+"(?:"+[$g,Hg,Wg].join("|")+")"+Qg+Kg+")*",uS=Qg+Kg+aS,cS="(?:"+[$g+zc+"?",zc,Hg,Wg,sS].join("|")+")",fS=RegExp(Bc+"(?="+Bc+")|"+cS+uS,"g"),dS=RegExp("["+Gg+Uc+Bg+Ug+Vg+"]"),pS=typeof global=="object"&&global&&global.Object===Object&&global,mS=typeof self=="object"&&self&&self.Object===Object&&self,hS=pS||mS||Function("return this")();function yS(e){return e.split("")}function gS(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1;);return n}function _S(e,t){for(var n=e.length;n--&&qg(t,e[n],0)>-1;);return n}function xS(e){return dS.test(e)}function jg(e){return xS(e)?SS(e):yS(e)}function SS(e){return e.match(fS)||[]}var kS=Object.prototype,ES=kS.toString,Fg=hS.Symbol,Dg=Fg?Fg.prototype:void 0,zg=Dg?Dg.toString:void 0;function CS(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:CS(e,t,n)}function PS(e){return!!e&&typeof e=="object"}function NS(e){return typeof e=="symbol"||PS(e)&&ES.call(e)==oS}function OS(e){return e==null?"":Jg(e)}function IS(e,t,n){if(e=OS(e),e&&(n||t===void 0))return e.replace(iS,"");if(!e||!(t=Jg(t)))return e;var r=jg(e),o=jg(t),i=wS(r,o),s=_S(r,o)+1;return RS(r,i,s).join("")}Xg.exports=IS});var i0=q((qP,o0)=>{"use strict";function LS(e,t){for(;e.length{let[,r]=(0,pr.useState)({}),i=(0,pr.useRef)({data:e,deps:n||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,pr.useEffect)(()=>{i.ready=!0,t&&t({init:!0})},[]),i.ready===!1){i._loading={};for(let[s,l]of Object.entries(e))if(!i.promisedKeys.has(s)){let a=l;typeof a=="object"&&a instanceof Promise&&(i._loading[s]=!0,i.promisedKeys.add(s),i.data[s]=null,a.then(f=>{i.data[s]=f,i._loading[s]=!1,i.data.render()}))}i.data.render=()=>{i.ready&&r({})}}else if(i.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(i.deps[s]!==l){i.deps[s]=l,t&&setTimeout(()=>{t({init:!1})});break}}return i.data};var jm=(e,t)=>new Promise(async n=>{if(typeof e=="function"){let r=null;if(t&&(r=setTimeout(n,t)),await e()){clearTimeout(r),n();return}let o=0,i=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(i),n()),o>100&&clearInterval(i)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});var Ww=O(fe());var Ih=O(Oh()),Tt=O(fe()),Wu=(0,Tt.createContext)({global:{},render:()=>{}});var cn=(e,t,n)=>{let r=window;r.globalValueID||(r.globalValueID=new WeakMap);let o=typeof t=="string"?t:n;o||(r.globalValueID.has(e)||r.globalValueID.set(e,(0,Ih.createId)()),o=r.globalValueID.get(e)||""),o||(o="GLOBAL_DEFAULT");let i=(0,Tt.useContext)(Wu),{global:s,render:l}=i;s[o]||(s[o]=e),(0,Tt.useEffect)(()=>{let f=null;if(typeof t=="function")try{f=t()}catch(u){console.log(u)}return()=>{typeof f=="function"?f():f instanceof Promise&&f.then(u=>{typeof u=="function"&&u()})}},[]);let a=s[o];return a?a.render=f=>{f&&(s[o]=void 0),(0,Tt.startTransition)(l)}:console.log(e,o),a},un=e=>{if(e==null||typeof e!="object")return e;if(e instanceof Date){var t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array)return e.map(o=>un(o));var n={};for(var r in e)typeof e[r]=="object"?n[r]=un(e[r]):n[r]=e[r];return n};var wk=O(fe());var Ku=O(fe()),Fh=O(Mu()),Dh=O(Lh()),zh=O(V()),Bh=()=>{let e=typeof window=="object"?window:globalThis;e.React=Ku.default,e.ReactDOM=Fh.default,e.JSXRuntime=zh.default,e.JSXDevRuntime=Dh.default,e.Fragment=Ku.default.Fragment};var A1={data:""},Vh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||A1,$h=e=>{let t=Vh(e),n=t.data;return t.data="",n},M1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,j1=/\/\*[^]*?\*\/| +/g,Uh=/\n+/g,Tn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Tn(s,i):i+"{"+Tn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Tn(s,t?t.replace(/([^,])+/g,l=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Tn.p?Tn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},bt={},Hh=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Hh(e[n]);return t}return e},F1=(e,t,n,r,o)=>{let i=Hh(e),s=bt[i]||(bt[i]=(a=>{let f=0,u=11;for(;f>>0;return"go"+u})(i));if(!bt[s]){let a=i!==e?e:(f=>{let u,c,d=[{}];for(;u=M1.exec(f.replace(j1,""));)u[4]?d.shift():u[3]?(c=u[3].replace(Uh," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][u[1]]=u[2].replace(Uh," ").trim();return d[0]})(e);bt[s]=Tn(o?{["@keyframes "+s]:a}:a,n?"":"."+s)}let l=n&&bt.g?bt.g:null;return n&&(bt.g=bt[s]),((a,f,u,c)=>{c?f.data=f.data.replace(c,a):f.data.indexOf(a)===-1&&(f.data=u?a+f.data:f.data+a)})(bt[s],t,r,l),s},D1=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=a?"."+a:l&&typeof l=="object"?l.props?"":Tn(l,""):l===!1?"":l}return r+o+(s??"")},"");function Ts(e){let t=this||{},n=e.call?e(t.p):e;return F1(n.unshift?n.raw?D1(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Vh(t.target),t.g,t.o,t.k)}var pk=Ts.bind({g:1}),mk=Ts.bind({k:1});var Wh=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await jm(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",o=n.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(r)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let s=new URL(t.serverurl);(s.hostname==="localhost"||s.hostname==="127.0.0.1")&&(s.hostname=n.hostname,s.pathname=s.pathname==="/"?"":s.pathname,t.serverurl=s.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let i=n.port;t.baseurl=o+"://"+r+(i?":"+i:"")+"/",t.basepath||(t.basepath="/"),t.css=Ts,t.extractCss=$h,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(a=>a?(typeof a=="string"&&a.trim(),!0):!1).forEach(a=>{if(Array.isArray(a))for(let f of a)typeof f=="string"&&f.trim()&&l.push(f.trim());else l.push(a.trim())}),l.join(" ")},t.navigate=s=>{let l=s;if(typeof t.navigateOverride=="function"&&(l=t.navigateOverride(s),!l))return null;history.pushState({prevUrl:window.location.href},"",l),t.pathname=s,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let s=navigator.serviceWorker.controller;if(s&&s.postMessage({type:"add-cache",url:n.href}),t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};function qu(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Ju(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=qu(n);return(o,i)=>r.then(s=>i(s.transaction(t,o).objectStore(t)))}var Qu;function Gh(){return Qu||(Qu=Ju("keyval-store","keyval")),Qu}function Xu(e,t=Gh()){return t("readonly",n=>qu(n.get(e)))}function bs(e,t,n=Gh()){return n("readwrite",r=>(r.put(t,e),qu(r.transaction)))}var m0=O(fe());var Kh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function z1(e){return typeof e=="string"&&Kh.test(e)}var Yu=z1;var bo=O(V()),Zu=({children:e,back:t})=>(0,bo.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,bo.jsx)("div",{children:e}),(0,bo.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var qh=O(fe());var Se=O(V()),Qh=window,Lo=({children:e,className:t,show:n,backdrop:r,note:o,alt:i})=>{let s=sn({icon:(0,Se.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,qh.useEffect)(()=>(s.ival=setInterval(()=>{s.value+=.1333,s.value>=1.3&&(s.value=0),s.render()},200),Qh.loadingIcon&&(s.icon=(0,Se.jsx)("img",{alt:"loading",src:Qh.loadingIcon,className:css` +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Xl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ma(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Cw=typeof WeakMap=="function"?WeakMap:Map;function um(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){us||(us=!0,Ha=r),Ma(e,t)},n}function cm(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ma(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ma(e,t),typeof r!="function"&&(Jt===null?Jt=new Set([this]):Jt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function wd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=zw.bind(null,e,t,n),t.then(e,e))}function xd(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 _d(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,qt(n,t,1))),n.lanes|=1),e)}var Rw=Pt.ReactCurrentOwner,be=!1;function Ce(e,t,n,r){t.child=e===null?Vp(t,null,n,r):ur(t,e.child,n,r)}function Sd(e,t,n,r,o){n=n.render;var i=t.ref;return or(t,o),r=Su(e,t,n,r,i,o),n=ku(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,It(e,t,o)):(q&&n&&cu(t),t.flags|=1,Ce(e,t,r,o),t.child)}function kd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Lu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,fm(e,t,i,r,o)):(e=Vi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:mo,n(s,r)&&e.ref===t.ref)return It(e,t,o)}return t.flags|=1,e=Zt(i,r),e.ref=t.ref,e.return=t,t.child=e}function fm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(mo(i,r)&&e.ref===t.ref)if(be=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(be=!0);else return t.lanes=e.lanes,It(e,t,o)}return Aa(e,t,n,r,o)}function dm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(Zn,Fe),Fe|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(Zn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,W(Zn,Fe),Fe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,W(Zn,Fe),Fe|=r;return Ce(e,t,o,n),t.child}function pm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Aa(e,t,n,r,o){var i=Me(n)?En:_e.current;return i=lr(t,i),or(t,o),n=Su(e,t,n,r,i,o),r=ku(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,It(e,t,o)):(q&&r&&cu(t),t.flags|=1,Ce(e,t,n,o),t.child)}function Ed(e,t,n,r,o){if(Me(n)){var i=!0;Zi(t)}else i=!1;if(or(t,o),t.stateNode===null)zi(e,t),Bp(t,n,r),La(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=Ye(f):(f=Me(n)?En:_e.current,f=lr(t,f));var u=n.getDerivedStateFromProps,c=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==f)&&hd(t,s,r,f),Ut=!1;var d=t.memoizedState;s.state=d,os(t,r,s,o),a=t.memoizedState,l!==r||d!==a||Le.current||Ut?(typeof u=="function"&&(ba(t,n,u,r),a=t.memoizedState),(l=Ut||md(t,n,l,r,d,a,f))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=f,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Fp(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:rt(t.type,l),s.props=f,c=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ye(a):(a=Me(n)?En:_e.current,a=lr(t,a));var y=n.getDerivedStateFromProps;(u=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==c||d!==a)&&hd(t,s,r,a),Ut=!1,d=t.memoizedState,s.state=d,os(t,r,s,o);var h=t.memoizedState;l!==c||d!==h||Le.current||Ut?(typeof y=="function"&&(ba(t,n,y,r),h=t.memoizedState),(f=Ut||md(t,n,f,r,d,h,a)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,h,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,h,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=a,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ja(e,t,n,r,i,o)}function ja(e,t,n,r,o,i){pm(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&ud(t,n,!1),It(e,t,i);r=t.stateNode,Rw.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ur(t,e.child,null,i),t.child=ur(t,null,l,i)):Ce(e,t,l,i),t.memoizedState=r.state,o&&ud(t,n,!0),t.child}function mm(e){var t=e.stateNode;t.pendingContext?ad(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ad(e,t.context,!1),vu(e,t.containerInfo)}function Cd(e,t,n,r,o){return ar(),du(o),t.flags|=256,Ce(e,t,n,r),t.child}var Da={dehydrated:null,treeContext:null,retryLane:0};function Fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function hm(e,t,n){var r=t.pendingProps,o=J.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),W(J,o&1),e===null)return Ta(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=ks(s,r,0,null),e=kn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fa(n),t.memoizedState=Da,e):Ru(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ow(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Zt(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Zt(l,i):(i=kn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Fa(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Da,r}return i=e.child,e=i.sibling,r=Zt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ru(e,t){return t=ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ti(e,t,n,r){return r!==null&&du(r),ur(t,e.child,null,n),e=Ru(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ow(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Xl(Error(_(422))),Ti(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ks({mode:"visible",children:r.children},o,0,null),i=kn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ur(t,e.child,null,s),t.child.memoizedState=Fa(s),t.memoizedState=Da,i);if(!(t.mode&1))return Ti(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(_(419)),r=Xl(i,r,void 0),Ti(e,t,s,r)}if(l=(s&e.childLanes)!==0,be||l){if(r=ce,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ot(e,o),lt(r,e,o,-1))}return bu(),r=Xl(Error(_(421))),Ti(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Bw.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ze=Yt(o.nextSibling),Be=t,q=!0,it=null,e!==null&&(We[Ge++]=St,We[Ge++]=kt,We[Ge++]=Cn,St=e.id,kt=e.overflow,Cn=t),t=Ru(t,r.children),t.flags|=4096,t)}function Rd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Na(e.return,t,n)}function Zl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ym(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ce(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rd(e,n,t);else if(e.tag===19)Rd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(J,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&is(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Zl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&is(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Zl(t,!0,n,null,i);break;case"together":Zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function It(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Iw(e,t,n){switch(t.tag){case 3:mm(t),ar();break;case 5:$p(t);break;case 1:Me(t.type)&&Zi(t);break;case 4:vu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;W(ns,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?hm(e,t,n):(W(J,J.current&1),e=It(e,t,n),e!==null?e.sibling:null);W(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ym(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),W(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,dm(e,t,n)}return It(e,t,n)}var gm,za,vm,wm;gm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};za=function(){};vm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,_n(yt.current);var i=null;switch(n){case"input":o=la(e,o),r=la(e,r),i=[];break;case"select":o=Z({},o,{value:void 0}),r=Z({},r,{value:void 0}),i=[];break;case"textarea":o=ca(e,o),r=ca(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ji)}da(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var l=o[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(so.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var a=r[f];if(l=o?.[f],r.hasOwnProperty(f)&&a!==l&&(a!=null||l!=null))if(f==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(f,n)),n=a;else f==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(f,a)):f==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(f,""+a):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(so.hasOwnProperty(f)?(a!=null&&f==="onScroll"&&Q("scroll",e),i||l===a||(i=[])):(i=i||[]).push(f,a))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};wm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Hr(e,t){if(!q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function we(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Pw(e,t,n){var r=t.pendingProps;switch(fu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return Me(t.type)&&Xi(),we(t),null;case 3:return r=t.stateNode,cr(),K(Le),K(_e),xu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,it!==null&&(Qa(it),it=null))),za(e,t),we(t),null;case 5:wu(t);var o=_n(wo.current);if(n=t.type,e!==null&&t.stateNode!=null)vm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return we(t),null}if(e=_n(yt.current),Ii(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mt]=t,r[go]=i,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mt]=t,e[go]=r,gm(e,t,!1,!1),t.stateNode=e;e:{switch(s=pa(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;odr&&(t.flags|=128,r=!0,Hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=is(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!q)return we(t),null}else 2*ne()-i.renderingStartTime>dr&&n!==1073741824&&(t.flags|=128,r=!0,Hr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=J.current,W(J,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Nu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function Tw(e,t){switch(fu(t),t.tag){case 1:return Me(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cr(),K(Le),K(_e),xu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wu(t),null;case 13:if(K(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(J),null;case 4:return cr(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Nu(),null;case 24:return null;default:return null}}var Ni=!1,xe=!1,Nw=typeof WeakSet=="function"?WeakSet:Set,E=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Ba(e,t,n){try{n()}catch(r){ee(e,t,r)}}var Od=!1;function bw(e,t){if(ka=Ki,e=kp(),uu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,f=0,u=0,c=e,d=null;t:for(;;){for(var y;c!==n||o!==0&&c.nodeType!==3||(l=s+o),c!==i||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(y=c.firstChild)!==null;)d=c,c=y;for(;;){if(c===e)break t;if(d===n&&++f===o&&(l=s),d===i&&++u===r&&(a=s),(y=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ea={focusedElem:e,selectionRange:n},Ki=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,S=h.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:rt(t.type,g),S);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(x){ee(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return h=Od,Od=!1,h}function ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ba(t,n,i)}o=o.next}while(o!==r)}}function _s(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ua(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xm(e){var t=e.alternate;t!==null&&(e.alternate=null,xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[go],delete t[Oa],delete t[mw],delete t[hw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _m(e){return e.tag===5||e.tag===3||e.tag===4}function Id(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Va(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ji));else if(r!==4&&(e=e.child,e!==null))for(Va(e,t,n),e=e.sibling;e!==null;)Va(e,t,n),e=e.sibling}function $a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($a(e,t,n),e=e.sibling;e!==null;)$a(e,t,n),e=e.sibling}var de=null,ot=!1;function zt(e,t,n){for(n=n.child;n!==null;)Sm(e,t,n),n=n.sibling}function Sm(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(ps,n)}catch{}switch(n.tag){case 5:xe||Xn(n,t);case 6:var r=de,o=ot;de=null,zt(e,t,n),de=r,ot=o,de!==null&&(ot?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(ot?(e=de,n=n.stateNode,e.nodeType===8?Gl(e.parentNode,n):e.nodeType===1&&Gl(e,n),fo(e)):Gl(de,n.stateNode));break;case 4:r=de,o=ot,de=n.stateNode.containerInfo,ot=!0,zt(e,t,n),de=r,ot=o;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ba(n,t,s),o=o.next}while(o!==r)}zt(e,t,n);break;case 1:if(!xe&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ee(n,t,l)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,zt(e,t,n),xe=r):zt(e,t,n);break;default:zt(e,t,n)}}function Pd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nw),t.forEach(function(r){var o=Uw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mw(r/1960))-r,10e?16:e,Wt===null)var r=!1;else{if(e=Wt,Wt=null,cs=0,F&6)throw Error(_(331));var o=F;for(F|=4,E=e.current;E!==null;){var i=E,s=i.child;if(E.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ane()-Pu?Sn(e,0):Iu|=n),Ae(e,t)}function Tm(e,t){t===0&&(e.mode&1?(t=vi,vi<<=1,!(vi&130023424)&&(vi=4194304)):t=1);var n=Re();e=Ot(e,t),e!==null&&(Eo(e,t,n),Ae(e,n))}function Bw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tm(e,n)}function Uw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Tm(e,n)}var Nm;Nm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,Iw(e,t,n);be=!!(e.flags&131072)}else be=!1,q&&t.flags&1048576&&Mp(t,ts,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zi(e,t),e=t.pendingProps;var o=lr(t,_e.current);or(t,n),o=Su(null,t,r,e,o,n);var i=ku();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(i=!0,Zi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gu(t),o.updater=ws,t.stateNode=o,o._reactInternals=t,La(t,r,e,n),t=ja(null,t,r,!0,i,n)):(t.tag=0,q&&i&&cu(t),Ce(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$w(r),e=rt(r,e),o){case 0:t=Aa(null,t,r,e,n);break e;case 1:t=Ed(null,t,r,e,n);break e;case 11:t=Sd(null,t,r,e,n);break e;case 14:t=kd(null,t,r,rt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Aa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Ed(e,t,r,o,n);case 3:e:{if(mm(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Fp(e,t),os(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=fr(Error(_(423)),t),t=Cd(e,t,r,n,o);break e}else if(r!==o){o=fr(Error(_(424)),t),t=Cd(e,t,r,n,o);break e}else for(ze=Yt(t.stateNode.containerInfo.firstChild),Be=t,q=!0,it=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ar(),r===o){t=It(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return $p(t),e===null&&Ta(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ca(r,o)?s=null:i!==null&&Ca(r,i)&&(t.flags|=32),pm(e,t),Ce(e,t,s,n),t.child;case 6:return e===null&&Ta(t),null;case 13:return hm(e,t,n);case 4:return vu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Sd(e,t,r,o,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,W(ns,r._currentValue),r._currentValue=s,i!==null)if(at(i.value,s)){if(i.children===o.children&&!Le.current){t=It(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Et(-1,n&-n),a.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var u=f.pending;u===null?a.next=a:(a.next=u.next,u.next=a),f.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Na(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(_(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Na(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ce(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,or(t,n),o=Ye(o),r=r(o),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,o=rt(r,t.pendingProps),o=rt(r.type,o),kd(e,t,r,o,n);case 15:return fm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),zi(e,t),t.tag=1,Me(r)?(e=!0,Zi(t)):e=!1,or(t,n),Bp(t,r,o),La(t,r,o,n),ja(null,t,r,!0,e,n);case 19:return ym(e,t,n);case 22:return dm(e,t,n)}throw Error(_(156,t.tag))};function bm(e,t){return op(e,t)}function Vw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qe(e,t,n,r){return new Vw(e,t,n,r)}function Lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $w(e){if(typeof e=="function")return Lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xa)return 11;if(e===Za)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=Qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Lu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $n:return kn(n.children,o,i,t);case Ja:s=8,o|=8;break;case ra:return e=Qe(12,n,t,o|2),e.elementType=ra,e.lanes=i,e;case oa:return e=Qe(13,n,t,o),e.elementType=oa,e.lanes=i,e;case ia:return e=Qe(19,n,t,o),e.elementType=ia,e.lanes=i,e;case Ud:return ks(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zd:s=10;break e;case Bd:s=9;break e;case Xa:s=11;break e;case Za:s=14;break e;case Bt:s=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Qe(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function kn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function ks(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Ud,e.lanes=n,e.stateNode={isHidden:!1},e}function ea(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function ta(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fl(0),this.expirationTimes=Fl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,o,i,s,l,a){return e=new Hw(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Qe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gu(i),e}function Ww(e,t,n){var r=3{"use strict";function Dm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dm)}catch(e){console.error(e)}}Dm(),Fm.exports=jm()});var Bm=Y(zu=>{"use strict";var zm=Fu();zu.createRoot=zm.createRoot,zu.hydrateRoot=zm.hydrateRoot;var XS});var Gm=Y(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.output=Ie.exists=Ie.hash=Ie.bytes=Ie.bool=Ie.number=void 0;function Is(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}Ie.number=Is;function Vm(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}Ie.bool=Vm;function Jw(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Bu(e,...t){if(!Jw(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}Ie.bytes=Bu;function $m(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Is(e.outputLen),Is(e.blockLen)}Ie.hash=$m;function Hm(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Ie.exists=Hm;function Wm(e,t){Bu(e);let n=t.outputLen;if(e.length{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.add5L=T.add5H=T.add4H=T.add4L=T.add3H=T.add3L=T.add=T.rotlBL=T.rotlBH=T.rotlSL=T.rotlSH=T.rotr32L=T.rotr32H=T.rotrBL=T.rotrBH=T.rotrSL=T.rotrSH=T.shrSL=T.shrSH=T.toBig=T.split=T.fromBig=void 0;var Ps=BigInt(2**32-1),Uu=BigInt(32);function Vu(e,t=!1){return t?{h:Number(e&Ps),l:Number(e>>Uu&Ps)}:{h:Number(e>>Uu&Ps)|0,l:Number(e&Ps)|0}}T.fromBig=Vu;function Qm(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);T.toBig=Km;var Ym=(e,t,n)=>e>>>n;T.shrSH=Ym;var qm=(e,t,n)=>e<<32-n|t>>>n;T.shrSL=qm;var Jm=(e,t,n)=>e>>>n|t<<32-n;T.rotrSH=Jm;var Xm=(e,t,n)=>e<<32-n|t>>>n;T.rotrSL=Xm;var Zm=(e,t,n)=>e<<64-n|t>>>n-32;T.rotrBH=Zm;var eh=(e,t,n)=>e>>>n-32|t<<64-n;T.rotrBL=eh;var th=(e,t)=>t;T.rotr32H=th;var nh=(e,t)=>e;T.rotr32L=nh;var rh=(e,t,n)=>e<>>32-n;T.rotlSH=rh;var oh=(e,t,n)=>t<>>32-n;T.rotlSL=oh;var ih=(e,t,n)=>t<>>64-n;T.rotlBH=ih;var sh=(e,t,n)=>e<>>64-n;T.rotlBL=sh;function lh(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}T.add=lh;var ah=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);T.add3L=ah;var uh=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;T.add3H=uh;var ch=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);T.add4L=ch;var fh=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;T.add4H=fh;var dh=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);T.add5L=dh;var ph=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;T.add5H=ph;var Zw={fromBig:Vu,split:Qm,toBig:Km,shrSH:Ym,shrSL:qm,rotrSH:Jm,rotrSL:Xm,rotrBH:Zm,rotrBL:eh,rotr32H:th,rotr32L:nh,rotlSH:rh,rotlSL:oh,rotlBH:ih,rotlBL:sh,add:lh,add3L:ah,add3H:uh,add4L:ch,add4H:fh,add5H:ph,add5L:dh};T.default=Zw});var hh=Y(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.crypto=void 0;Ts.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var vh=Y(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.randomBytes=L.wrapXOFConstructorWithOpts=L.wrapConstructorWithOpts=L.wrapConstructor=L.checkOpts=L.Hash=L.concatBytes=L.toBytes=L.utf8ToBytes=L.asyncLoop=L.nextTick=L.hexToBytes=L.bytesToHex=L.isLE=L.rotr=L.createView=L.u32=L.u8=void 0;var $u=hh(),e1=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);L.u8=e1;var t1=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));L.u32=t1;function Wu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var n1=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);L.createView=n1;var r1=(e,t)=>e<<32-t|e>>>t;L.rotr=r1;L.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!L.isLE)throw new Error("Non little-endian hardware is not supported");var o1=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function i1(e){if(!Wu(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n=Tt._0&&e<=Tt._9)return e-Tt._0;if(e>=Tt._A&&e<=Tt._F)return e-(Tt._A-10);if(e>=Tt._a&&e<=Tt._f)return e-(Tt._a-10)}function s1(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let o=0,i=0;o{};L.nextTick=l1;async function a1(e,t,n){let r=Date.now();for(let o=0;o=0&&ie().update(Ns(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}L.wrapConstructor=d1;function p1(e){let t=(r,o)=>e(o).update(Ns(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapConstructorWithOpts=p1;function m1(e){let t=(r,o)=>e(o).update(Ns(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapXOFConstructorWithOpts=m1;function h1(e=32){if($u.crypto&&typeof $u.crypto.getRandomValues=="function")return $u.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}L.randomBytes=h1});var Gu=Y(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.shake256=G.shake128=G.keccak_512=G.keccak_384=G.keccak_256=G.keccak_224=G.sha3_512=G.sha3_384=G.sha3_256=G.sha3_224=G.Keccak=G.keccakP=void 0;var yr=Gm(),To=mh(),Po=vh(),[_h,Sh,kh]=[[],[],[]],y1=BigInt(0),Io=BigInt(1),g1=BigInt(2),v1=BigInt(7),w1=BigInt(256),x1=BigInt(113);for(let e=0,t=Io,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],_h.push(2*(5*r+n)),Sh.push((e+1)*(e+2)/2%64);let o=y1;for(let i=0;i<7;i++)t=(t<>v1)*x1)%w1,t&g1&&(o^=Io<<(Io<n>32?(0,To.rotlBH)(e,t,n):(0,To.rotlSH)(e,t,n),xh=(e,t,n)=>n>32?(0,To.rotlBL)(e,t,n):(0,To.rotlSL)(e,t,n);function Eh(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let l=(s+8)%10,a=(s+2)%10,f=n[a],u=n[a+1],c=wh(f,u,1)^n[l],d=xh(f,u,1)^n[l+1];for(let y=0;y<50;y+=10)e[s+y]^=c,e[s+y+1]^=d}let o=e[2],i=e[3];for(let s=0;s<24;s++){let l=Sh[s],a=wh(o,i,l),f=xh(o,i,l),u=_h[s];o=e[u],i=e[u+1],e[u]=a,e[u+1]=f}for(let s=0;s<50;s+=10){for(let l=0;l<10;l++)n[l]=e[s+l];for(let l=0;l<10;l++)e[s+l]^=~n[(l+2)%10]&n[(l+4)%10]}e[0]^=_1[r],e[1]^=S1[r]}n.fill(0)}G.keccakP=Eh;var No=class e extends Po.Hash{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,yr.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Po.u32)(this.state)}keccak(){Eh(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,yr.exists)(this);let{blockLen:n,state:r}=this;t=(0,Po.toBytes)(t);let o=t.length;for(let i=0;i=r&&this.keccak();let s=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+s),o),this.posOut+=s,o+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,yr.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,yr.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:s}=this;return t||(t=new e(n,r,o,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=s,t.destroyed=this.destroyed,t}};G.Keccak=No;var ln=(e,t,n)=>(0,Po.wrapConstructor)(()=>new No(t,e,n));G.sha3_224=ln(6,144,224/8);G.sha3_256=ln(6,136,256/8);G.sha3_384=ln(6,104,384/8);G.sha3_512=ln(6,72,512/8);G.keccak_224=ln(1,144,224/8);G.keccak_256=ln(1,136,256/8);G.keccak_384=ln(1,104,384/8);G.keccak_512=ln(1,72,512/8);var Ch=(e,t,n)=>(0,Po.wrapXOFConstructorWithOpts)((r={})=>new No(t,e,r.dkLen===void 0?n:r.dkLen,!0));G.shake128=Ch(31,168,128/8);G.shake256=Ch(31,136,256/8)});var Lh=Y((uk,an)=>{var{sha3_512:k1}=Gu(),Oh=24,bo=32,Qu=(e=4,t=Math.random)=>{let n="";for(;n.lengthIh(k1(e)).toString(36).slice(1),Rh=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),E1=e=>Rh[Math.floor(e()*Rh.length)],Th=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),n=t.length?t+Qu(bo):Qu(bo);return Ph(n).substring(0,bo)},Nh=e=>()=>e++,C1=476782367,bh=({random:e=Math.random,counter:t=Nh(Math.floor(e()*C1)),length:n=Oh,fingerprint:r=Th()}={})=>function(){let i=E1(e),s=Date.now().toString(36),l=t().toString(36),a=Qu(n,e),f=`${s+a+l+r}`;return`${i+Ph(f).substring(1,n)}`},R1=bh(),O1=(e,{minLength:t=2,maxLength:n=bo}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};an.exports.getConstants=()=>({defaultLength:Oh,bigLength:bo});an.exports.init=bh;an.exports.createId=R1;an.exports.bufToBigInt=Ih;an.exports.createCounter=Nh;an.exports.createFingerprint=Th;an.exports.isCuid=O1});var Mh=Y((ck,Lo)=>{var{createId:I1,init:P1,getConstants:T1,isCuid:N1}=Lh();Lo.exports.createId=I1;Lo.exports.init=P1;Lo.exports.getConstants=T1;Lo.exports.isCuid=N1});var jh=Y(Yu=>{"use strict";var b1=Symbol.for("react.fragment");Yu.Fragment=b1;Yu.jsxDEV=void 0});var Fh=Y((mk,Dh)=>{"use strict";Dh.exports=jh()});var Bh=Y(bs=>{"use strict";var L1=fe(),M1=Symbol.for("react.element"),A1=Symbol.for("react.fragment"),j1=Object.prototype.hasOwnProperty,D1=L1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F1={key:!0,ref:!0,__self:!0,__source:!0};function zh(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)j1.call(t,r)&&!F1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:M1,type:e,key:i,ref:s,props:o,_owner:D1.current}}bs.Fragment=A1;bs.jsx=zh;bs.jsxs=zh});var V=Y((yk,Uh)=>{"use strict";Uh.exports=Bh()});var uc=Y((rE,xy)=>{var G1="Expected a function",dy="__lodash_hash_undefined__",py=1/0,Q1="[object Function]",K1="[object GeneratorFunction]",Y1="[object Symbol]",q1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J1=/^\w*$/,X1=/^\./,Z1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ex=/[\\^$.*+?()[\]{}|]/g,tx=/\\(\\)?/g,nx=/^\[object .+?Constructor\]$/,rx=typeof global=="object"&&global&&global.Object===Object&&global,ox=typeof self=="object"&&self&&self.Object===Object&&self,ic=rx||ox||Function("return this")();function ix(e,t){return e?.[t]}function sx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var lx=Array.prototype,ax=Function.prototype,my=Object.prototype,oc=ic["__core-js_shared__"],ay=function(){var e=/[^.]+$/.exec(oc&&oc.keys&&oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),hy=ax.toString,sc=my.hasOwnProperty,yy=my.toString,ux=RegExp("^"+hy.call(sc).replace(ex,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uy=ic.Symbol,fx=lx.splice,dx=gy(ic,"Map"),jo=gy(Object,"create"),cy=uy?uy.prototype:void 0,fy=cy?cy.toString:void 0;function bn(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function Sx(e,t){var n=this.__data__,r=As(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}gr.prototype.clear=vx;gr.prototype.delete=wx;gr.prototype.get=xx;gr.prototype.has=_x;gr.prototype.set=Sx;function Ln(e){var t=-1,n=e?e.length:0;for(this.clear();++t{var{sha3_512:$x}=Gu(),Ty=24,Fo=32,fc=(e=4,t=Math.random)=>{let n="";for(;n.lengthNy($x(e)).toString(36).slice(1),Py=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Hx=e=>Py[Math.floor(e()*Py.length)],Ly=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+fc(Fo,t):fc(Fo,t);return by(r).substring(0,Fo)},My=e=>()=>e++,Wx=476782367,Ay=({random:e=Math.random,counter:t=My(Math.floor(e()*Wx)),length:n=Ty,fingerprint:r=Ly({random:e})}={})=>function(){let i=Hx(e),s=Date.now().toString(36),l=t().toString(36),a=fc(n,e),f=`${s+a+l+r}`;return`${i+by(f).substring(1,n)}`},Gx=Ay(),Qx=(e,{minLength:t=2,maxLength:n=Fo}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};dn.exports.getConstants=()=>({defaultLength:Ty,bigLength:Fo});dn.exports.init=Ay;dn.exports.createId=Gx;dn.exports.bufToBigInt=Ny;dn.exports.createCounter=My;dn.exports.createFingerprint=Ly;dn.exports.isCuid=Qx});var dc=Y((IE,zo)=>{var{createId:Kx,init:Yx,getConstants:qx,isCuid:Jx}=jy();zo.exports.createId=Kx;zo.exports.init=Yx;zo.exports.getConstants=qx;zo.exports.isCuid=Jx});var tg=Y((Vo,Ks)=>{(function(e,t){"use strict";var n="1.0.37",r="",o="?",i="function",s="undefined",l="object",a="string",f="major",u="model",c="name",d="type",y="vendor",h="version",g="architecture",S="console",m="mobile",p="tablet",v="smarttv",x="wearable",C="embedded",R=500,O="Amazon",I="Apple",te="ASUS",j="BlackBerry",ye="Browser",Dn="Chrome",k0="Edge",Zo="Firefox",ei="Google",qc="Huawei",dl="LG",pl="Microsoft",Jc="Motorola",ti="Opera",ni="Samsung",Xc="Sharp",ri="Sony",ml="Xiaomi",hl="Zebra",Zc="Facebook",ef="Chromium OS",tf="Mac OS",E0=function(D,B){var b={};for(var $ in D)B[$]&&B[$].length%2===0?b[$]=B[$].concat(D[$]):b[$]=D[$];return b},oi=function(D){for(var B={},b=0;b0?z.length===2?typeof z[1]==i?this[z[0]]=z[1].call(this,ct):this[z[0]]=z[1]:z.length===3?typeof z[1]===i&&!(z[1].exec&&z[1].test)?this[z[0]]=ct?z[1].call(this,ct,z[2]):t:this[z[0]]=ct?ct.replace(z[1],z[2]):t:z.length===4&&(this[z[0]]=ct?z[3].call(this,ct.replace(z[1],z[2])):t):this[z]=ct||t;b+=2}},gl=function(D,B){for(var b in B)if(typeof B[b]===l&&B[b].length>0){for(var $=0;$2&&(N[u]="iPad",N[d]=p),N},this.getEngine=function(){var N={};return N[c]=t,N[h]=t,Mr.call(N,$,ut.engine),N},this.getOS=function(){var N={};return N[c]=t,N[h]=t,Mr.call(N,$,ut.os),z&&!N[c]&&Dt&&Dt.platform!="Unknown"&&(N[c]=Dt.platform.replace(/chrome os/i,ef).replace(/macos/i,tf)),N},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return $},this.setUA=function(N){return $=typeof N===a&&N.length>R?yl(N,R):N,this},this.setUA($),this};De.VERSION=n,De.BROWSER=oi([c,h,f]),De.CPU=oi([g]),De.DEVICE=oi([u,y,d,S,m,v,p,x,C]),De.ENGINE=De.OS=oi([c,h]),typeof Vo!==s?(typeof Ks!==s&&Ks.exports&&(Vo=Ks.exports=De),Vo.UAParser=De):typeof define===i&&define.amd?define(function(){return De}):typeof e!==s&&(e.UAParser=De);var Fn=typeof e!==s&&(e.jQuery||e.Zepto);if(Fn&&!Fn.ua){var ii=new De;Fn.ua=ii.getResult(),Fn.ua.get=function(){return ii.getUA()},Fn.ua.set=function(D){ii.setUA(D);var B=ii.getResult();for(var b in B)Fn.ua[b]=B[b]}}})(typeof window=="object"?window:Vo)});var r0=Y((aI,n0)=>{var aS=1/0,uS="[object Symbol]",cS=/^\s+|\s+$/g,Gc="\\ud800-\\udfff",Wg="\\u0300-\\u036f\\ufe20-\\ufe23",Gg="\\u20d0-\\u20f0",Qg="\\ufe0e\\ufe0f",fS="["+Gc+"]",Hc="["+Wg+Gg+"]",Wc="\\ud83c[\\udffb-\\udfff]",dS="(?:"+Hc+"|"+Wc+")",Kg="[^"+Gc+"]",Yg="(?:\\ud83c[\\udde6-\\uddff]){2}",qg="[\\ud800-\\udbff][\\udc00-\\udfff]",Jg="\\u200d",Xg=dS+"?",Zg="["+Qg+"]?",pS="(?:"+Jg+"(?:"+[Kg,Yg,qg].join("|")+")"+Zg+Xg+")*",mS=Zg+Xg+pS,hS="(?:"+[Kg+Hc+"?",Hc,Yg,qg,fS].join("|")+")",yS=RegExp(Wc+"(?="+Wc+")|"+hS+mS,"g"),gS=RegExp("["+Jg+Gc+Wg+Gg+Qg+"]"),vS=typeof global=="object"&&global&&global.Object===Object&&global,wS=typeof self=="object"&&self&&self.Object===Object&&self,xS=vS||wS||Function("return this")();function _S(e){return e.split("")}function SS(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1;);return n}function CS(e,t){for(var n=e.length;n--&&e0(t,e[n],0)>-1;);return n}function RS(e){return gS.test(e)}function Ug(e){return RS(e)?OS(e):_S(e)}function OS(e){return e.match(yS)||[]}var IS=Object.prototype,PS=IS.toString,Vg=xS.Symbol,$g=Vg?Vg.prototype:void 0,Hg=$g?$g.toString:void 0;function TS(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:TS(e,t,n)}function bS(e){return!!e&&typeof e=="object"}function LS(e){return typeof e=="symbol"||bS(e)&&PS.call(e)==uS}function MS(e){return e==null?"":t0(e)}function AS(e,t,n){if(e=MS(e),e&&(n||t===void 0))return e.replace(cS,"");if(!e||!(t=t0(t)))return e;var r=Ug(e),o=Ug(t),i=ES(r,o),s=CS(r,o)+1;return NS(r,i,s).join("")}n0.exports=AS});var c0=Y((yI,u0)=>{"use strict";function FS(e,t){for(;e.length{let[,r]=(0,hr.useState)({}),i=(0,hr.useRef)({data:e,deps:n||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,hr.useEffect)(()=>{i.ready=!0,t&&t({init:!0})},[]),i.ready===!1){i._loading={};for(let[s,l]of Object.entries(e))if(!i.promisedKeys.has(s)){let a=l;typeof a=="object"&&a instanceof Promise&&(i._loading[s]=!0,i.promisedKeys.add(s),i.data[s]=null,a.then(f=>{i.data[s]=f,i._loading[s]=!1,i.data.render()}))}i.data.render=()=>{i.ready&&r({})}}else if(i.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(i.deps[s]!==l){i.deps[s]=l,t&&setTimeout(()=>{t({init:!1})});break}}return i.data};var Um=(e,t)=>new Promise(async n=>{if(typeof e=="function"){let r=null;if(t&&(r=setTimeout(n,t)),await e()){clearTimeout(r),n();return}let o=0,i=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(i),n()),o>100&&clearInterval(i)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});var qw=P(fe());var Ah=P(Mh()),Nt=P(fe()),Ku=(0,Nt.createContext)({global:{},render:()=>{}});var cn=(e,t,n)=>{let r=window;r.globalValueID||(r.globalValueID=new WeakMap);let o=typeof t=="string"?t:n;o||(r.globalValueID.has(e)||r.globalValueID.set(e,(0,Ah.createId)()),o=r.globalValueID.get(e)||""),o||(o="GLOBAL_DEFAULT");let i=(0,Nt.useContext)(Ku),{global:s,render:l}=i;s[o]||(s[o]=e),(0,Nt.useEffect)(()=>{let f=null;if(typeof t=="function")try{f=t()}catch(u){console.log(u)}return()=>{typeof f=="function"?f():f instanceof Promise&&f.then(u=>{typeof u=="function"&&u()})}},[]);let a=s[o];return a?a.render=f=>{f&&(s[o]=void 0),(0,Nt.startTransition)(l)}:console.log(e,o),a},un=e=>{if(e==null||typeof e!="object")return e;if(e instanceof Date){var t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array)return e.map(o=>un(o));var n={};for(var r in e)typeof e[r]=="object"?n[r]=un(e[r]):n[r]=e[r];return n};var Ek=P(fe());var qu=P(fe()),Vh=P(Fu()),$h=P(Fh()),Hh=P(V()),Wh=()=>{let e=typeof window=="object"?window:globalThis;e.React=qu.default,e.ReactDOM=Vh.default,e.JSXRuntime=Hh.default,e.JSXDevRuntime=$h.default,e.Fragment=qu.default.Fragment};var z1={data:""},Qh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||z1,Kh=e=>{let t=Qh(e),n=t.data;return t.data="",n},B1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,U1=/\/\*[^]*?\*\/| +/g,Gh=/\n+/g,Nn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Nn(s,i):i+"{"+Nn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Nn(s,t?t.replace(/([^,])+/g,l=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Nn.p?Nn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},bt={},Yh=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Yh(e[n]);return t}return e},V1=(e,t,n,r,o)=>{let i=Yh(e),s=bt[i]||(bt[i]=(a=>{let f=0,u=11;for(;f>>0;return"go"+u})(i));if(!bt[s]){let a=i!==e?e:(f=>{let u,c,d=[{}];for(;u=B1.exec(f.replace(U1,""));)u[4]?d.shift():u[3]?(c=u[3].replace(Gh," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][u[1]]=u[2].replace(Gh," ").trim();return d[0]})(e);bt[s]=Nn(o?{["@keyframes "+s]:a}:a,n?"":"."+s)}let l=n&&bt.g?bt.g:null;return n&&(bt.g=bt[s]),((a,f,u,c)=>{c?f.data=f.data.replace(c,a):f.data.indexOf(a)===-1&&(f.data=u?a+f.data:f.data+a)})(bt[s],t,r,l),s},$1=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=a?"."+a:l&&typeof l=="object"?l.props?"":Nn(l,""):l===!1?"":l}return r+o+(s??"")},"");function Ls(e){let t=this||{},n=e.call?e(t.p):e;return V1(n.unshift?n.raw?$1(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Qh(t.target),t.g,t.o,t.k)}var vk=Ls.bind({g:1}),wk=Ls.bind({k:1});var qh=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await Um(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",o=n.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(r)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let s=new URL(t.serverurl);(s.hostname==="localhost"||s.hostname==="127.0.0.1")&&(s.hostname=n.hostname,s.pathname=s.pathname==="/"?"":s.pathname,t.serverurl=s.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let i=n.port;t.baseurl=o+"://"+r+(i?":"+i:"")+"/",t.basepath||(t.basepath="/"),t.css=Ls,t.extractCss=Kh,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(a=>a?(typeof a=="string"&&a.trim(),!0):!1).forEach(a=>{if(Array.isArray(a))for(let f of a)typeof f=="string"&&f.trim()&&l.push(f.trim());else l.push(a.trim())}),l.join(" ")},t.navigate=s=>{let l=s;if(typeof t.navigateOverride=="function"&&(l=t.navigateOverride(s),!l))return null;history.pushState({prevUrl:window.location.href},"",l),t.pathname=s,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let s=navigator.serviceWorker.controller;if(s&&s.postMessage({type:"add-cache",url:n.href}),t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};function Xu(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Zu(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=Xu(n);return(o,i)=>r.then(s=>i(s.transaction(t,o).objectStore(t)))}var Ju;function Jh(){return Ju||(Ju=Zu("keyval-store","keyval")),Ju}function ec(e,t=Jh()){return t("readonly",n=>Xu(n.get(e)))}function Ms(e,t,n=Jh()){return n("readwrite",r=>(r.put(t,e),Xu(r.transaction)))}var w0=P(fe());var Xh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H1(e){return typeof e=="string"&&Xh.test(e)}var tc=H1;var Mo=P(V()),nc=({children:e,back:t})=>(0,Mo.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,Mo.jsx)("div",{children:e}),(0,Mo.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var ey=P(fe());var Se=P(V()),Zh=window,Ao=({children:e,className:t,show:n,backdrop:r,note:o,alt:i})=>{let s=sn({icon:(0,Se.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,ey.useEffect)(()=>(s.ival=setInterval(()=>{s.value+=.1333,s.value>=1.3&&(s.value=0),s.render()},200),Zh.loadingIcon&&(s.icon=(0,Se.jsx)("img",{alt:"loading",src:Zh.loadingIcon,className:css` width: 42px; height: 42px; `}),s.render()),()=>{clearInterval(s.ival)}),[]),(0,Se.jsxs)(Se.Fragment,{children:[r!==!1&&(0,Se.jsx)("div",{className:cx("flex items-center z-40 bg-white pointer-events-none","w-full h-full fixed transition-all duration-1000",typeof n<"u"?n?"opacity-50":"opacity-0":"opacity-50"),onContextMenuCapture:l=>{l.preventDefault()}}),e?(0,Se.jsx)("div",{onContextMenuCapture:l=>{l.preventDefault()},className:cx("flex flex-1 items-center justify-center z-40 transition-all",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,Se.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,Se.jsx)("div",{className:"text-sm",children:e})})}):(0,Se.jsx)("div",{className:cx("flex flex-1 items-center justify-center z-40 pointer-events-none transition-all",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,Se.jsxs)("div",{className:cx("w-1/6 flex flex-col items-center justify-center",css` @@ -15,9 +15,9 @@ Error generating stack: `+i.message+` } `),children:[(0,Se.jsx)("div",{className:"text-[10px] text-slate-400 whitespace-nowrap",children:o}),(0,Se.jsx)("div",{className:"pr-outer w-full h-[3px] flex items-stretch rounded-sm overflow-hidden",children:(0,Se.jsx)("div",{className:cx("bg-blue-800 transition-all duration-200 rounded-sm w-full",css` transform: translate(${-100+s.value*200}%); - `)})}),i]})})]})};var $s=O(fe());var Jh=(e,t)=>{e.status="loading",e.on_status_changes&&e.on_status_changes(e.status),e.site.id=t.site_id,e.site.api_url=t.api_url,e.status="ready",e.on_status_changes&&e.on_status_changes(e.status)};var fn={ts:0,status:"init",meta:{},entry:[],tick:0,mode:"desktop",site:{id:"",api_url:"",api:null,db:null},site_url:null,script:{init_local_effect:void 0},visit:void 0,on_status_changes:void 0,layout:void 0,page:{cur:{id:""},navs:{}},comp:{load:async()=>null},on_preload:void 0};var Hy=O(fe());var ae=O(fe()),ec=class extends ae.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},B1=()=>!1,Xh=(0,ae.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:B1});function Yh({children:e}){let[t,n]=(0,ae.useState)(),r=(0,ae.useRef)(),o=(0,ae.useMemo)(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return ae.default.createElement(Xh.Provider,{value:o},ae.default.createElement(ec,{error:t,onError:(i,s)=>{n(i),r.current?.(i,s)}},e))}Yh.displayName="ReactUseErrorBoundaryContext";function Zh(e){function t(n){return ae.default.createElement(Yh,null,ae.default.createElement(e,{key:"WrappedComponent",...n}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function ey(e){let t=(0,ae.useContext)(Xh);t.componentDidCatch.current=e;let n=(0,ae.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,n]}var Xe=O(V()),gt=Zh(({children:e,meta:t,id:n,silent:r=!0})=>{let o=sn({retrying:!1,meta:t}),[i,s]=ey((a,f)=>{r!==!0&&console.warn(a)});t&&o.meta!==t&&(o.meta=t,setTimeout(s));let l=t;return i?(0,Xe.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Xe.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",l?.item.name?"["+l.item.name+"]:":""]}),(0,Xe.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:o.retrying?(0,Xe.jsx)(Xe.Fragment,{children:"Retrying..."}):(0,Xe.jsx)(Xe.Fragment,{children:i.message})}),(0,Xe.jsx)("div",{className:"p-1",children:(0,Xe.jsx)("button",{onClick:()=>{o.retrying=!0,o.render(),setTimeout(()=>{o.retrying=!1,o.render(),s()},100)},className:"bg-white border border-white hover:border-red-400 hover:bg-red-50 rounded px-2",children:"Try again"})})]}):e});var je=(e,t,n,r)=>{let o=e[t];return n==="desktop"||!n?!o&&e.mobile&&e.mobile[t]&&(o=e.mobile[t]):e.mobile&&e.mobile[t]&&(o=e.mobile[t]),o||(o=r),o};var ty=(e,t)=>{let n=je(e,"adv",t,{});return typeof n.css=="string"&&n.css.trim()?cx(css` + `)})}),i]})})]})};var Gs=P(fe());var ty=(e,t)=>{e.status="loading",e.on_status_changes&&e.on_status_changes(e.status),e.site.id=t.site_id,e.site.api_url=t.api_url,e.status="ready",e.on_status_changes&&e.on_status_changes(e.status)};var fn={ts:0,status:"init",meta:{},entry:[],tick:0,mode:"desktop",site:{id:"",api_url:"",api:null,db:null},site_url:null,script:{init_local_effect:void 0},visit:void 0,on_status_changes:void 0,layout:void 0,page:{cur:{id:""},navs:{}},comp:{load:async()=>null},on_preload:void 0};var Yy=P(fe());var ae=P(fe()),rc=class extends ae.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},W1=()=>!1,ny=(0,ae.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:W1});function ry({children:e}){let[t,n]=(0,ae.useState)(),r=(0,ae.useRef)(),o=(0,ae.useMemo)(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return ae.default.createElement(ny.Provider,{value:o},ae.default.createElement(rc,{error:t,onError:(i,s)=>{n(i),r.current?.(i,s)}},e))}ry.displayName="ReactUseErrorBoundaryContext";function oy(e){function t(n){return ae.default.createElement(ry,null,ae.default.createElement(e,{key:"WrappedComponent",...n}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function iy(e){let t=(0,ae.useContext)(ny);t.componentDidCatch.current=e;let n=(0,ae.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,n]}var Je=P(V()),gt=oy(({children:e,meta:t,id:n,silent:r=!0})=>{let o=sn({retrying:!1,meta:t}),[i,s]=iy((a,f)=>{r!==!0&&console.warn(a)});t&&o.meta!==t&&(o.meta=t,setTimeout(s));let l=t;return i?(0,Je.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Je.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",l?.item.name?"["+l.item.name+"]:":""]}),(0,Je.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:o.retrying?(0,Je.jsx)(Je.Fragment,{children:"Retrying..."}):(0,Je.jsx)(Je.Fragment,{children:i.message})}),(0,Je.jsx)("div",{className:"p-1",children:(0,Je.jsx)("button",{onClick:()=>{o.retrying=!0,o.render(),setTimeout(()=>{o.retrying=!1,o.render(),s()},100)},className:"bg-white border border-white hover:border-red-400 hover:bg-red-50 rounded px-2",children:"Try again"})})]}):e});var je=(e,t,n,r)=>{let o=e[t];return n==="desktop"||!n?!o&&e.mobile&&e.mobile[t]&&(o=e.mobile[t]):e.mobile&&e.mobile[t]&&(o=e.mobile[t]),o||(o=r),o};var sy=(e,t)=>{let n=je(e,"adv",t,{});return typeof n.css=="string"&&n.css.trim()?cx(css` ${n.css} - `,t):""};var ny=(e,t)=>{let n=je(e,"bg",t,{size:"contain",pos:"center"}),r=`${serverurl}${n.url}`;return n&&n.url&&n.url.startsWith("http")&&(r=n.url),cx(` + `,t):""};var ly=(e,t)=>{let n=je(e,"bg",t,{size:"contain",pos:"center"}),r=`${serverurl}${n.url}`;return n&&n.url&&n.url.startsWith("http")&&(r=n.url),cx(` background-repeat: no-repeat; `,n.color&&` background-color: ${n.color}; @@ -27,7 +27,7 @@ Error generating stack: `+i.message+` background-size: ${n.size}; `,n.pos&&` background-position: ${n.pos}; - `)};var yy=O(sc());var gy=(e,t)=>{let n=je(e,"border",t,{style:"solid",stroke:{},rounded:{tr:0,tl:0,bl:0,br:0},color:"transparent"});return cx(vt(n,"stroke.l","border-left-width"),vt(n,"stroke.r","border-right-width"),vt(n,"stroke.b","border-bottom-width"),vt(n,"stroke.t","border-top-width"),vt(n,"color","border-color","transparent"),vt(n,"style","border-style","dashed"),vt(n,"rounded.tl","border-top-left-radius"),vt(n,"rounded.tr","border-top-right-radius"),vt(n,"rounded.bl","border-bottom-left-radius"),vt(n,"rounded.br","border-bottom-right-radius"))},vt=(e,t,n,r)=>{let o=(0,yy.default)(e,t);if(r)return o?`${n}: ${o};`:`${n}: ${r};`;if(o)return`${n}: ${o}px;`};var vy=(e,t,n)=>{let r=je(e,"dim",t,{h:"fit",w:"fit"});return r.w==="full"&&r.h==="full"?` + `)};var _y=P(uc());var Sy=(e,t)=>{let n=je(e,"border",t,{style:"solid",stroke:{},rounded:{tr:0,tl:0,bl:0,br:0},color:"transparent"});return cx(vt(n,"stroke.l","border-left-width"),vt(n,"stroke.r","border-right-width"),vt(n,"stroke.b","border-bottom-width"),vt(n,"stroke.t","border-top-width"),vt(n,"color","border-color","transparent"),vt(n,"style","border-style","dashed"),vt(n,"rounded.tl","border-top-left-radius"),vt(n,"rounded.tr","border-top-right-radius"),vt(n,"rounded.bl","border-bottom-left-radius"),vt(n,"rounded.br","border-bottom-right-radius"))},vt=(e,t,n,r)=>{let o=(0,_y.default)(e,t);if(r)return o?`${n}: ${o};`:`${n}: ${r};`;if(o)return`${n}: ${o}px;`};var ky=(e,t,n)=>{let r=je(e,"dim",t,{h:"fit",w:"fit"});return r.w==="full"&&r.h==="full"?` width:100%; height:100%; flex:1; @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` `,r.h&&typeof r.h=="number"&&r.h>=0&&` height: ${r.h}${r.hUnit||"px"}; overflow-y: clip; - `)};var wy=({item:e,hover:t,active:n})=>cx(t&&css` + `)};var Ey=({item:e,hover:t,active:n})=>cx(t&&css` & { box-shadow: inset 0 0 0px 3px #bae3fd; > img { @@ -58,7 +58,7 @@ Error generating stack: `+i.message+` > img { opacity: 0.6; } - `);var yr=window,_y=(e,t)=>{let n=je(e,"font",t,{});if(n.family){yr.loadedFonts||(yr.loadedFonts=[]);let o=`:wght@${[300,400,500,600].join(";")}`,i=n.family.replace(/ /g,"+");if(yr.loadedFonts.indexOf(n.family)<0){yr.loadedFonts.push(n.family);let s=document,l=`https://prasi.avolut.com/_font/css2?family=${i}${o}`;if(!s.querySelector(`link[href="${l}]`)){let a=s.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=l,s.head.appendChild(a)}}}return!n.family&&yr.defaultFont&&(n.family=yr.defaultFont),cx(n.color&&` + `);var vr=window,Cy=(e,t)=>{let n=je(e,"font",t,{});if(n.family){vr.loadedFonts||(vr.loadedFonts=[]);let o=`:wght@${[300,400,500,600].join(";")}`,i=n.family.replace(/ /g,"+");if(vr.loadedFonts.indexOf(n.family)<0){vr.loadedFonts.push(n.family);let s=document,l=`https://prasi.avolut.com/_font/css2?family=${i}${o}`;if(!s.querySelector(`link[href="${l}]`)){let a=s.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=l,s.head.appendChild(a)}}}return!n.family&&vr.defaultFont&&(n.family=vr.defaultFont),cx(n.color&&` color: ${n.color}; `,n.whitespace==="whitespace-normal"&&` word-break: break-word; @@ -74,10 +74,10 @@ Error generating stack: `+i.message+` line-height: ${n.height==="auto"?"normal":`${n.height}%`}; `,n.family&&` font-family: ${n.family}; - `)};var xy=(e,t)=>{let n=[],r=je(e,"layout",t,{dir:"col",align:"top-left",gap:0,wrap:void 0});if(r)r.wrap&&n.push(r.wrap==="flex-wrap"?"flex-wrap: wrap;":"flex-wrap: nowrap;"),r.dir.startsWith("col")?(r.dir==="col"?n.push("flex-direction: column;"):r.dir==="col-reverse"&&n.push("flex-direction: column-reverse;"),r.gap==="auto"?(r.align==="left"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="right"&&n.push("align-items:end; justify-content: space-between;")):(n.push(`gap: ${r.gap}px;`),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:center; justify-content: start;"),r.align==="top-right"&&n.push("align-items:end; justify-content: start;"),r.align==="left"&&n.push("align-items:start; justify-content: center;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-left"&&n.push("align-items:start; justify-content: end;"),r.align==="bottom-center"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;"))):(r.dir==="row"?n.push("flex-direction: row;"):r.dir==="row-reverse"&&n.push("flex-direction: row-reverse;"),r.gap==="auto"?(r.align==="top"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="bottom"&&n.push("align-items:end; justify-content: space-between;")):(n.push(` + `)};var Ry=(e,t)=>{let n=[],r=je(e,"layout",t,{dir:"col",align:"top-left",gap:0,wrap:void 0});if(r)r.wrap&&n.push(r.wrap==="flex-wrap"?"flex-wrap: wrap;":"flex-wrap: nowrap;"),r.dir.startsWith("col")?(r.dir==="col"?n.push("flex-direction: column;"):r.dir==="col-reverse"&&n.push("flex-direction: column-reverse;"),r.gap==="auto"?(r.align==="left"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="right"&&n.push("align-items:end; justify-content: space-between;")):(n.push(`gap: ${r.gap}px;`),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:center; justify-content: start;"),r.align==="top-right"&&n.push("align-items:end; justify-content: start;"),r.align==="left"&&n.push("align-items:start; justify-content: center;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-left"&&n.push("align-items:start; justify-content: end;"),r.align==="bottom-center"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;"))):(r.dir==="row"?n.push("flex-direction: row;"):r.dir==="row-reverse"&&n.push("flex-direction: row-reverse;"),r.gap==="auto"?(r.align==="top"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="bottom"&&n.push("align-items:end; justify-content: space-between;")):(n.push(` gap: ${r.gap}px; `),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:start; justify-content: center;"),r.align==="top-right"&&n.push("align-items:start; justify-content: end;"),r.align==="left"&&n.push("align-items:center; justify-content: start;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-left"&&n.push("align-items:end; justify-content: start;"),r.align==="bottom-center"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;")));else return"flex-direction:column; align-items:start; justify-content: start;";return n.join(` - `).trim()};var Sy=(e,t)=>{let n=je(e,"padding",t,{l:0,b:0,t:0,r:0});return cx(n.l!==void 0&&` + `).trim()};var Oy=(e,t)=>{let n=je(e,"padding",t,{l:0,b:0,t:0,r:0});return cx(n.l!==void 0&&` padding-left: ${n.l}px; `,n.r!==void 0&&` padding-right: ${n.r}px; @@ -85,32 +85,32 @@ Error generating stack: `+i.message+` padding-bottom: ${n.b}px; `,n.t!==void 0&&` padding-top: ${n.t}px; - `)};var lc=(e,t)=>{try{return cx([e.id?`s-${e.id}`:"",css` + `)};var cc=(e,t)=>{try{return cx([e.id?`s-${e.id}`:"",css` display: flex; position: relative; user-select: none; - ${xy(e,t.mode)} + ${Ry(e,t.mode)} + ${Oy(e,t.mode)} + ${ky(e,t.mode,t?.editor)} ${Sy(e,t.mode)} - ${vy(e,t.mode,t?.editor)} - ${gy(e,t.mode)} - ${ny(e,t.mode)} - ${_y(e,t.mode)} - `,(t?.hover||t?.active)&&wy({item:e,hover:t?.hover,active:t?.active}),ty(e,t.mode)])}catch(n){console.log(n)}return cx([])};var ky=O(V()),Mo=(e,t,n,r)=>{let o=t.item,i;o.component?.style&&(i={style:o.component.style,className:lc(o.component.style,{mode:e.mode})});let s={className:lc(o,{mode:e.mode}),inherit:i},l={},a=t.item.childs,f;return t.item.type==="text"?(f=null,s.dangerouslySetInnerHTML={__html:t.item.html||""}):f=Array.isArray(a)&&a?.map(u=>{if(!u)return null;let{id:c}=u,d=n?e.layout?.meta[c]:e.meta[c];return d?(0,ky.jsx)(Lt,{meta:d,is_layout:n,passprop:r},c):null}),s.children=f,t.item.adv?.html?(delete s.children,s.dangerouslySetInnerHTML={__html:t.item.adv?.html}):t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete s.children,delete s.dangerouslySetInnerHTML),{props:s,text_props:l}};var $y=O(fe());var By=O(uc());var gr={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Ms(e={}){let t={options:e,rootNode:Ly(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(let r in e.routes)by(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>G_(t,n(r)),insert:(r,o)=>by(t,n(r),o),remove:r=>K_(t,n(r))}}function G_(e,t){let n=e.staticRoutesMap[t];if(n)return n.data;let r=t.split("/"),o={},i=!1,s=null,l=e.rootNode,a=null;for(let f=0;f{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:J_,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};var js=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var _r=O(fe());var Ye=window;var X_=Ju("prasi-cache","prasi-cache-store"),Do={timeout:null,store:X_},Fs=(e,t)=>{let n=[...Ay(t,"navigate(",")"),...Ay(t,"href = ",";")],r=e.page.cur.id;e.page.navs[r]||(e.page.navs[r]=new Set);for(let o of n)e.page.navs[r].add(o);clearTimeout(Do.timeout),Do.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[r])})},100)},Ay=(e,t,n)=>{let r=0,o=0,i=[];for(;;){let s=e.indexOf(t,r);if(o=r,s>=0){let l=e[s+t.length];if(l==='"'||l==="'"||l==="`"){let a=e.indexOf(`${l}${n}`,s+t.length+1),f=e.substring(s+t.length+1,a);r=a+2+n.length,i.push(f)}}if(o===r)break}return i};var zo=O(fe());var jy=O(sc()),An=O(fe());var cc=O(V()),Fy=(e,t,n,r)=>o=>{let[i,s]=(0,An.useState)({}),l=o.internal_key;n.item.script||(n.item.script={});let a=n.item.script;l&&(n.item.script_keyed||(n.item.script_keyed={}),n.item.script_keyed[l]||(n.item.script_keyed[l]={}),a=n.item.script_keyed[l]),a.passprop||(a.passprop={});let f={};if(a.passprop){let d=!1;for(let[y,h]of Object.entries(o))["children","key"].includes(y)||(d=!0,f[y]=h,a.passprop[y]={end:0,start:0,value:h})}let u={...r,...f};if(!Array.isArray(o.children)&&(0,An.isValidElement)(o.children)&&typeof o.children=="object"){let d=(0,jy.default)(o.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(d)){let y=!0;for(let h of d)!(0,An.isValidElement)(h)&&typeof h=="object"||(y=!1);if(y)return d.map(h=>{let g=e.meta[h.id];if(g||(e.meta[h.id]={item:h},g=e.meta[h.id]),g){if(Object.keys(g.item).length<=3&&g.mitem){let S={...g.item},m=g.mitem.toJSON();g.item={...m,...S}}return(0,cc.jsx)(Lt,{is_layout:t,meta:g,passprop:u,parent_key:o.internal_key},h.id)}return null})}}if(!Array.isArray(o.children)&&!(0,An.isValidElement)(o.children)&&typeof o.children=="object"){let d=o.children.id;if(d){let y=e.meta[d];if(!y){e.meta[d]={item:o.children},y=e.meta[d];let h=y.item.component?.id;h&&e.comp.load(h).then(g=>{if(g){for(let[m,p]of Object.entries(g)){let v=y.item;v[m]||(v[m]=p)}let S=y.item.component?.props;for(let[m,p]of Object.entries(g.component?.props||{}))S[m]||(S[m]=p);s({})}})}return(0,cc.jsx)(Lt,{is_layout:t,meta:y,passprop:u,parent_key:o.internal_key})}}return fc(o,u,l?{parent_key:l}:void 0)},fc=(e,t,n)=>{let r={};if(Array.isArray(e)?r.children=e:r=e,Array.isArray(r.children)){let o=[];for(let i of r.children)o.push(My(i,r,t,n));return o}return My(r.children,r,t,n)},My=(e,t,n,r)=>{if((0,An.isValidElement)(e)){let o={...t};return delete o.children,{...e,props:{...e.props,...r,passprop:{...n,...o}}}}return e};var wr={},Dy=(e,t,n)=>r=>{let o=["localhost","prasi.avolut.com"].includes(location.hostname)&&location.pathname.startsWith("/ed/"),i=n.item.id,{children:s,parent_key:l}=r,a=e.script?.init_local_effect,f=t?e.layout?.meta:e.meta,c=(0,zo.useRef)(wr[i]?wr[i]:r.value).current;return c.render=n.render,Ds(e,n,n.script?.scope,l),r.hook&&r.hook(c),(0,zo.useEffect)(()=>{if(n.parent?.instance_id&&f){let y=f[n.parent?.instance_id];if(y&&y.instances){for(let[h,g]of Object.entries(y.instances[n.parent.instance_id]))if(g===n.item.id){i=h;break}}}return!a[i]&&(typeof a=="object"&&(a[i]=!0),(async()=>r.effect&&(await r.effect(c),o&&(wr[i]=c)))()),()=>{}},[location.pathname]),(0,zo.useEffect)(()=>{o&&wr[i]===null&&(async()=>r.effect&&(await r.effect(c),o&&(wr[i]=c)))()},[wr[i]]),fc(s,{...n.script?.scope,[r.name]:c})};var dc=O(V()),zy=(e,t,n,r,o)=>{let i=Mo(e,t,n,r);e.visit&&e.visit(t,i),t.script?t.script.scope=r:t.script={scope:r,result:null,Local:Dy(e,n,t),PassProp:Fy(e,n,t,r)};let s=t.script,l=window.exports,a={useEffect:_r.useEffect,children:i.props.children,props:i.props,Local:s?.Local,db:e.site.db,api:e.site.api,PassProp:s?.PassProp,ErrorBox:gt,newElement:()=>{},render:d=>{let y=d;if((0,_r.isValidElement)(d)&&d.props.children&&Array.isArray(d.props.children)){let h=d.props.children.filter(g=>g);if(h.length>1){let g=[];for(let S of h)S.key?g.push({...S,props:{...S.props,internal_key:S.key}}):console.warn(`No key prop in item: ${t.item.name}`,` + ${ly(e,t.mode)} + ${Cy(e,t.mode)} + `,(t?.hover||t?.active)&&Ey({item:e,hover:t?.hover,active:t?.active}),sy(e,t.mode)])}catch(n){console.log(n)}return cx([])};var Iy=P(V()),Do=(e,t,n,r)=>{let o=t.item,i;o.component?.style&&(i={style:o.component.style,className:cc(o.component.style,{mode:e.mode})});let s={className:cc(o,{mode:e.mode}),inherit:i},l={},a=t.item.childs,f;return t.item.type==="text"?(f=null,s.dangerouslySetInnerHTML={__html:t.item.html||""}):f=Array.isArray(a)&&a?.map(u=>{if(!u)return null;let{id:c}=u,d=n?e.layout?.meta[c]:e.meta[c];return d?(0,Iy.jsx)(Lt,{meta:d,is_layout:n,passprop:r},c):null}),s.children=f,t.item.adv?.html?(delete s.children,s.dangerouslySetInnerHTML={__html:t.item.adv?.html}):t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete s.children,delete s.dangerouslySetInnerHTML),{props:s,text_props:l}};var Ky=P(fe());var Wy=P(dc());var wr={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Ds(e={}){let t={options:e,rootNode:Fy(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(let r in e.routes)Dy(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>Xx(t,n(r)),insert:(r,o)=>Dy(t,n(r),o),remove:r=>Zx(t,n(r))}}function Xx(e,t){let n=e.staticRoutesMap[t];if(n)return n.data;let r=t.split("/"),o={},i=!1,s=null,l=e.rootNode,a=null;for(let f=0;f{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:n_,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};var Fs=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var Sr=P(fe());var Xe=window;var r_=Zu("prasi-cache","prasi-cache-store"),Bo={timeout:null,store:r_},zs=(e,t)=>{let n=[...zy(t,"navigate(",")"),...zy(t,"href = ",";")],r=e.page.cur.id;e.page.navs[r]||(e.page.navs[r]=new Set);for(let o of n)e.page.navs[r].add(o);clearTimeout(Bo.timeout),Bo.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[r])})},100)},zy=(e,t,n)=>{let r=0,o=0,i=[];for(;;){let s=e.indexOf(t,r);if(o=r,s>=0){let l=e[s+t.length];if(l==='"'||l==="'"||l==="`"){let a=e.indexOf(`${l}${n}`,s+t.length+1),f=e.substring(s+t.length+1,a);r=a+2+n.length,i.push(f)}}if(o===r)break}return i};var Uo=P(fe());var Uy=P(uc()),Mn=P(fe());var pc=P(V()),Vy=(e,t,n,r)=>o=>{let[i,s]=(0,Mn.useState)({}),l=o.internal_key;n.item.script||(n.item.script={});let a=n.item.script;l&&(n.item.script_keyed||(n.item.script_keyed={}),n.item.script_keyed[l]||(n.item.script_keyed[l]={}),a=n.item.script_keyed[l]),a.passprop||(a.passprop={});let f={};if(a.passprop){let d=!1;for(let[y,h]of Object.entries(o))["children","key"].includes(y)||(d=!0,f[y]=h,a.passprop[y]={end:0,start:0,value:h})}let u={...r,...f};if(!Array.isArray(o.children)&&(0,Mn.isValidElement)(o.children)&&typeof o.children=="object"){let d=(0,Uy.default)(o.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(d)){let y=!0;for(let h of d)!(0,Mn.isValidElement)(h)&&typeof h=="object"||(y=!1);if(y)return d.map(h=>{let g=e.meta[h.id];if(g||(e.meta[h.id]={item:h},g=e.meta[h.id]),g){if(Object.keys(g.item).length<=3&&g.mitem){let S={...g.item},m=g.mitem.toJSON();g.item={...m,...S}}return(0,pc.jsx)(Lt,{is_layout:t,meta:g,passprop:u,parent_key:o.internal_key},h.id)}return null})}}if(!Array.isArray(o.children)&&!(0,Mn.isValidElement)(o.children)&&typeof o.children=="object"){let d=o.children.id;if(d){let y=e.meta[d];if(!y){e.meta[d]={item:o.children},y=e.meta[d];let h=y.item.component?.id;h&&e.comp.load(h).then(g=>{if(g){for(let[m,p]of Object.entries(g)){let v=y.item;v[m]||(v[m]=p)}let S=y.item.component?.props;for(let[m,p]of Object.entries(g.component?.props||{}))S[m]||(S[m]=p);s({})}})}return(0,pc.jsx)(Lt,{is_layout:t,meta:y,passprop:u,parent_key:o.internal_key})}}return mc(o,u,l?{parent_key:l}:void 0)},mc=(e,t,n)=>{let r={};if(Array.isArray(e)?r.children=e:r=e,Array.isArray(r.children)){let o=[];for(let i of r.children)o.push(By(i,r,t,n));return o}return By(r.children,r,t,n)},By=(e,t,n,r)=>{if((0,Mn.isValidElement)(e)){let o={...t};return delete o.children,{...e,props:{...e.props,...r,passprop:{...n,...o}}}}return e};var _r={},$y=(e,t,n)=>r=>{let o=["localhost","prasi.avolut.com"].includes(location.hostname)&&location.pathname.startsWith("/ed/"),i=n.item.id,{children:s,parent_key:l}=r,a=e.script?.init_local_effect,f=t?e.layout?.meta:e.meta,c=(0,Uo.useRef)(_r[i]?_r[i]:r.value).current;return c.render=n.render,Bs(e,n,n.script?.scope,l),r.hook&&r.hook(c),(0,Uo.useEffect)(()=>{if(n.parent?.instance_id&&f){let y=f[n.parent?.instance_id];if(y&&y.instances){for(let[h,g]of Object.entries(y.instances[n.parent.instance_id]))if(g===n.item.id){i=h;break}}}return!a[i]&&(typeof a=="object"&&(a[i]=!0),(async()=>r.effect&&(await r.effect(c),o&&(_r[i]=c)))()),()=>{}},[location.pathname]),(0,Uo.useEffect)(()=>{o&&_r[i]===null&&(async()=>r.effect&&(await r.effect(c),o&&(_r[i]=c)))()},[_r[i]]),mc(s,{...n.script?.scope,[r.name]:c})};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function jn(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function hc(e){jn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||An(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function yc(e){return jn(1,arguments),e instanceof Date||An(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Us(e){if(jn(1,arguments),!yc(e)&&typeof e!="number")return!1;var t=hc(e);return!isNaN(Number(t))}var gc=P(V()),Hy=(e,t,n,r,o)=>{let i=Do(e,t,n,r);e.visit&&e.visit(t,i),t.script?t.script.scope=r:t.script={scope:r,result:null,Local:$y(e,n,t),PassProp:Vy(e,n,t,r)};let s=t.script,l=window.exports,a={useEffect:Sr.useEffect,children:i.props.children,props:i.props,Local:s?.Local,db:e.site.db,api:e.site.api,PassProp:s?.PassProp,ErrorBox:gt,newElement:()=>{},render:d=>{let y=d;if((0,Sr.isValidElement)(d)&&d.props.children&&Array.isArray(d.props.children)){let h=d.props.children.filter(S=>S),g=!1;if(h.length>1){let S=[];for(let m of h)Us(m)&&m.type===t.script?.PassProp&&(g=!0),m.key?S.push({...m,props:{...m.props,internal_key:m.key}}):console.warn(`No key prop in item: ${t.item.name}`,` -`,t.item.adv?.js);y={...d,props:{...d.props,children:g}}}}s&&(s.result=(0,dc.jsx)(_r.Suspense,{children:y}))},params,...js(e),...l,...r,_meta:e.meta,_item:t.item,_syncm:typeof syncronize<"u"?syncronize:void 0};if(typeof r=="object"){for(let[d,y]of Object.entries(r))if(typeof y=="object"&&y&&y._jsx){let h=y;a[d]=(0,dc.jsx)(Y_,{fn:h.fn,passprop:r,meta:t})}}!Ye.isEditor&&t.item.adv?.js&&Fs(e,t.item.adv.js);let f=t.item.adv?.jsBuilt||"",u=mc(f,pc)||"";new Function(...Object.keys(a),`// ${t.item.name}: ${t.item.id} +`,t.item.adv?.js);g&&(y={...d,props:{...d.props,children:S}})}}s&&(s.result=(0,gc.jsx)(Sr.Suspense,{children:y}))},params,...Fs(e),...l,...r,_meta:e.meta,_item:t.item,_syncm:typeof syncronize<"u"?syncronize:void 0};if(typeof r=="object"){for(let[d,y]of Object.entries(r))if(typeof y=="object"&&y&&y._jsx){let h=y;a[d]=(0,gc.jsx)(o_,{fn:h.fn,passprop:r,meta:t})}}!Xe.isEditor&&t.item.adv?.js&&zs(e,t.item.adv.js);let f=t.item.adv?.jsBuilt||"",u=wc(f,vc)||"";new Function(...Object.keys(a),`// ${t.item.name}: ${t.item.id} ${u} - `)(...Object.values(a)),Ds(e,t,r,o)},Y_=({fn:e,meta:t,passprop:n})=>e({passprop:n,meta:t}),pc={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},mc=(e,t)=>{let n=e;for(let[r,o]of Object.entries(t))n=n.replaceAll(r,o);return n};var Vy=O(V());var Uy=(e,t,n,r,o)=>{if(t.item.component?.id){let i=t.item.script;if(o?(t.item.script_keyed||(t.item.script_keyed={}),t.item.script_keyed[o]||(t.item.script_keyed[o]={}),i=t.item.script_keyed[o]):(t.item.script||(t.item.script={}),i=t.item.script),!i)return;let l={...window.exports,db:e.site.db,api:e.site.api,...js(e),...r,params};i.props={};let a=new Set;if(t.item.component.props){let f={};for(let[u,c]of Object.entries(t.item.component.props))try{if(c.meta?.type==="content-element"){let S={_jsx:!0,fn:m=>{let p=c.content?.id;if(p){let v=n?e.layout?.meta[p]:e.meta[p];if(!v)return null;let _=t.instances;if(!m.meta.item.originalId||!_||!_[t.item.id])return null;let R=m.meta.item.originalId;if(v.mitem&&(c.jsxCalledBy&&(!c.jsxCalledBy.includes(R)||c.jsxCalledBy.length!==2)||!c.jsxCalledBy)){let P=t.mitem?.get("component")?.get("props")?.get(u);if(P){let N=P.get("jsxCalledBy");!N||typeof N!="object"?P.set("jsxCalledBy",[t.item.id,R]):(!N.includes(R)||N.length!==2||N[0]!==t.item.id||N[1]!==R)&&P.set("jsxCalledBy",[t.item.id,R])}}return(0,Vy.jsx)(Lt,{meta:v,passprop:m.passprop,is_layout:n})}return null}};l[u]=S,r&&(r[u]=S);continue}if(c.value&&Fs(e,c.value),!c.valueBuilt&&c.value&&t.mitem){let S=t.mitem?.get("component")?.get("props")?.get(u);if(S){Z_(S,c.value);return}}let d=c.valueBuilt||"",y=mc(d,pc)||"",h=new Function(...Object.keys(l),`// [${t.item.name}] ${u}: ${t.item.id} + `)(...Object.values(a)),Bs(e,t,r,o)},o_=({fn:e,meta:t,passprop:n})=>e({passprop:n,meta:t}),vc={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},wc=(e,t)=>{let n=e;for(let[r,o]of Object.entries(t))n=n.replaceAll(r,o);return n};var Qy=P(V());var Gy=(e,t,n,r,o)=>{if(t.item.component?.id){let i=t.item.script;if(o?(t.item.script_keyed||(t.item.script_keyed={}),t.item.script_keyed[o]||(t.item.script_keyed[o]={}),i=t.item.script_keyed[o]):(t.item.script||(t.item.script={}),i=t.item.script),!i)return;let l={...window.exports,db:e.site.db,api:e.site.api,...Fs(e),...r,params};i.props={};let a=new Set;if(t.item.component.props){let f={};for(let[u,c]of Object.entries(t.item.component.props))try{if(c.meta?.type==="content-element"){let S={_jsx:!0,fn:m=>{let p=c.content?.id;if(p){let v=n?e.layout?.meta[p]:e.meta[p];if(!v)return null;let x=t.instances;if(!m.meta.item.originalId||!x||!x[t.item.id])return null;let R=m.meta.item.originalId;if(v.mitem&&(c.jsxCalledBy&&(!c.jsxCalledBy.includes(R)||c.jsxCalledBy.length!==2)||!c.jsxCalledBy)){let O=t.mitem?.get("component")?.get("props")?.get(u);if(O){let I=O.get("jsxCalledBy");!I||typeof I!="object"?O.set("jsxCalledBy",[t.item.id,R]):(!I.includes(R)||I.length!==2||I[0]!==t.item.id||I[1]!==R)&&O.set("jsxCalledBy",[t.item.id,R])}}return(0,Qy.jsx)(Lt,{meta:v,passprop:m.passprop,is_layout:n})}return null}};l[u]=S,r&&(r[u]=S);continue}if(c.value&&zs(e,c.value),!c.valueBuilt&&c.value&&t.mitem){let S=t.mitem?.get("component")?.get("props")?.get(u);if(S){i_(S,c.value);return}}let d=c.valueBuilt||"",y=wc(d,vc)||"",h=new Function(...Object.keys(l),`// [${t.item.name}] ${u}: ${t.item.id} return ${y} - `);i.props[u]={value:y};let g=h(...Object.values(l));typeof g=="function"&&(i.props[u].fn=g,g=(...S)=>{if(i)return i.props?.[u].fn(...S)}),l[u]=g,f[u]=g,r&&(r[u]=g)}catch{a.add(u)}if(location.pathname.startsWith("/ed/")&&vr.item_id&&t.item.id===vr.item_id){vr.scope={};for(let[u,c]of Object.entries(r))vr.scope[u]=c;vr.scope.self_props=f}}}},Ze={timeout:null,set:new WeakSet,map:{},src:{}},Z_=(e,t)=>{if(!Ze.set.has(e)){Ze.set.add(e);let n=(0,By.createId)();Ze.map[n]={mprop:e},Ze.src[n]=t}clearTimeout(Ze.timeout),Ze.timeout=setTimeout(async()=>{let n=await _api.code_build(Ze.src),r=null;for(let[o,i]of Object.entries(n)){let s=Ze.map[o].mprop;if(!r&&s.doc){r=s.doc;break}}r&&(r.transact(()=>{for(let[o,i]of Object.entries(n))Ze.map[o].mprop.set("valueBuilt",i)}),Ze.set=new WeakSet,Ze.map={},Ze.src={})},300)},Ds=(e,t,n,r)=>{let o=r?t.item.script_keyed?.[r]:t.item.script;if(o&&o.props){let i={...n,api:e.site.api,db:e.site.db};for(let[s,l]of Object.entries(o.props))if(l.fn){let a=new Function(...Object.keys(i),`// [${t.item.name}] ${s}: ${t.item.id} + `);i.props[u]={value:y};let g=h(...Object.values(l));typeof g=="function"&&(i.props[u].fn=g,g=(...S)=>{if(i)return i.props?.[u].fn(...S)}),l[u]=g,f[u]=g,r&&(r[u]=g)}catch{a.add(u)}if(location.pathname.startsWith("/ed/")&&xr.item_id&&t.item.id===xr.item_id){xr.scope={};for(let[u,c]of Object.entries(r))xr.scope[u]=c;xr.scope.self_props=f}}}},Ze={timeout:null,set:new WeakSet,map:{},src:{}},i_=(e,t)=>{if(!Ze.set.has(e)){Ze.set.add(e);let n=(0,Wy.createId)();Ze.map[n]={mprop:e},Ze.src[n]=t}clearTimeout(Ze.timeout),Ze.timeout=setTimeout(async()=>{let n=await _api.code_build(Ze.src),r=null;for(let[o,i]of Object.entries(n)){let s=Ze.map[o].mprop;if(!r&&s.doc){r=s.doc;break}}r&&(r.transact(()=>{for(let[o,i]of Object.entries(n))Ze.map[o].mprop.set("valueBuilt",i)}),Ze.set=new WeakSet,Ze.map={},Ze.src={})},300)},Bs=(e,t,n,r)=>{let o=r?t.item.script_keyed?.[r]:t.item.script;if(o&&o.props){let i={...n,api:e.site.api,db:e.site.db};for(let[s,l]of Object.entries(o.props))if(l.fn){let a=new Function(...Object.keys(i),`// [${t.item.name}] ${s}: ${t.item.id} return ${l.value||""} - `);l.fn=a(...Object.values(i))}}};var hc=O(V()),yc=({meta:e,passprop:t,is_layout:n,parent_key:r})=>{let o=cn(fn,"VI"),[i,s]=(0,$y.useState)({});e.render=()=>{s({})};let l=t;return e.item.component?.id&&(l||(l={}),Uy(o,e,n,l,r)),e.item.adv?.html?(0,hc.jsx)(zs,{meta:e,passprop:l,is_layout:n}):e.item.adv?.js&&(zy(o,e,n,l,r),e.script)?e.script.result:(0,hc.jsx)(zs,{meta:e,passprop:l,is_layout:n})};var he=O(V()),ex=70,Bs={enabled:!1,meta:{}},Lt=({meta:e,passprop:t,is_layout:n,parent_key:r})=>{if(Bs.enabled){let o=Bs.meta;if(o[e.item.id]?o[e.item.id].last_render===Math.floor(Date.now()/1e3)?o[e.item.id].count++:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1}:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1},o[e.item.id]?.count>ex)return(0,he.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,he.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,he.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",o[e.item.id]?.count," times in less than 1 second."]})]})}return!e||e.item.hidden?null:e.item.adv?.js||e.item.component?.id?(0,he.jsx)(gt,{meta:e,children:(0,he.jsx)(yc,{meta:e,is_layout:n,passprop:t,parent_key:r})}):(0,he.jsx)(gt,{meta:e,children:(0,he.jsx)(zs,{meta:e,passprop:t,is_layout:n,parent_key:r})})},zs=({meta:e,passprop:t,is_layout:n,parent_key:r})=>{let o=cn(fn,"VI");if(n&&e.item.name==="children"){let s=[];for(let l of o.entry){let a=o.meta[l];if(a.item.adv?.js||a.item.component?.id)s.push((0,he.jsx)(gt,{meta:a,children:(0,he.jsx)(yc,{meta:a,is_layout:!1,passprop:t,parent_key:r})}));else{let f=Mo(o,a,!1,t);o.visit&&o.visit(a,f),s.push((0,he.jsx)("div",{...f.props}))}}return(0,he.jsx)(he.Fragment,{children:s.map((l,a)=>(0,he.jsx)(Hy.Fragment,{children:l},a))})}let i=Mo(o,e,n,t);return o.visit&&o.visit(e,i),(0,he.jsx)("div",{...i.props})};var xr=O(V()),Wy=({})=>{let e=cn(fn,"VI"),t=sn({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,xr.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,xr.jsx)(Lo,{backdrop:!1})});let n=!!e.layout?.entry&&e.layout.entry.length>0,r=e.entry;return n&&e.layout?.entry&&(r=e.layout?.entry),(0,xr.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(r)&&r.map(o=>{let i=n?e.layout?.meta[o]:e.meta[o];return i&&Element?(0,xr.jsx)(gt,{children:(0,xr.jsx)(Lt,{meta:i,is_layout:n})},i.item.id):null})})};var Vs=O(V()),Us=window,Gy=({meta:e,entry:t,api_url:n,site_id:r,api:o,mode:i,db:s,visit:l,script:a,page_id:f,render_stat:u,on_status_changed:c,on_preload:d,layout:y,comp_load:h})=>{let g=cn(fn,"VI");return g.mode=i,g.entry=t,g.on_preload=d,g.comp.load=h,Us.siteurl=(S,m)=>{if(S.startsWith("http://")||S.startsWith("https://"))return S;try{["prasi.avolut.com","localhost"].includes(location.hostname)?g.site.api_url&&(g.site_url||(g.site_url=new URL(g.site.api_url))):g.site_url||(m&&g.site.api_url?g.site_url=new URL(g.site.api_url):g.site_url=new URL(location.href),g.site_url.pathname="")}catch{}if(g.site_url){let p=g.site_url,v=S;return v.startsWith("/")||(v="/"+v),`${p.protocol}//${p.hostname}${v}`}return S},Us.isMobile=i==="mobile",Us.isDesktop=i==="desktop",Us.preload=(S,m)=>{g.page.navs[f]||(g.page.navs[f]=new Set);let p=typeof S=="string"?[S]:S;for(let v of p)g.page.navs[f].add(v);return clearTimeout(Do.timeout),Do.timeout=setTimeout(()=>{g.on_preload&&g.on_preload({urls:Array.from(g.page.navs[f]),opt:{on_load:m?.on_load}})},100),""},g.layout=y,g.page.cur.id=f,g.on_status_changes=c,u==="disabled"&&(Bs.enabled=!1),g.meta!==e&&(g.meta=e),a&&(g.script.init_local_effect=a.init_local_effect),g.visit=l,g.status==="init"&&(g.site.db=s,g.site.api=o,Jh(g,{api_url:n,site_id:r})),d&&(0,$s.useEffect)(()=>{setTimeout(()=>{let S=g.page.navs[g.page.cur.id];S&&d({urls:Array.from(S),opt:{on_load(m){}}})},500)},[g.page.cur.id]),(0,Vs.jsx)(gt,{children:(0,Vs.jsx)($s.Suspense,{children:(0,Vs.jsx)(Wy,{})})})};var gc=window,k={root:null,url(...e){let t=e.map(r=>Array.isArray(r)?r.join(""):r).join(""),n=this.root.toString();return n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")?n+t:n+"/"+t},get pathname(){let e=location.pathname.substring(k.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:gc._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:new Set},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},Ky=()=>{if(!k.root){let e=new URL(location.href);gc._prasi.basepath&&(e.pathname=gc._prasi.basepath),k.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),k.root.pathname.endsWith("/")&&(k.root.pathname=k.root.pathname.substring(0,k.root.length-1))}};var Sr=async(e,t)=>{let n=k.comp,r=t||{};for(let o of e)o&&o.type!=="text"&&Hs(o,r);if(n.pending.size>0)try{let o=await(await fetch(k.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...n.pending]})})).json();for(let[i,s]of Object.entries(o))n.pending.delete(i),n.list[i]=s,await bs(`comp-${i}`,s);await Sr(Object.values(o),r)}catch{}},Hs=(e,t)=>{let n=k.comp;if(e.type==="item"){let r=e.component?.id;if(r&&(!n.list[r]&&!n.pending.has(r)&&n.pending.add(r),n.pending.has(r)&&(t[r]||(t[r]=[]),t[r].push(e)),t[r])){if(n.list[r]){for(let o of t[r])for(let i of Object.values(o.component?.props||{}))i.content&&Hs(i.content,t);delete t[r]}else if(e.component?.props)for(let o of Object.values(e.component?.props||{}))o.content&&Hs(o.content,t)}}if(e.childs)for(let r of e.childs){let o=r;o&&o.type!=="text"&&Hs(o,t)}};var Qy=e=>new Promise(async t=>{let n=!1,r=await Xu(`page-${e}`);r&&(t(r),n=!0);let o=await(await fetch(k.url`_prasi/page/${e}`)).json();n||t(o)}),tx=e=>new Promise(async t=>{let n={},r=[...new Set(e)],o=!0;for(let s of r){let l=await Xu(`page-${s}`);if(l)n[s]=l;else{o=!1;break}}o&&t(n);let i=await(await fetch(k.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();o||t(i)}),qy=async e=>{let t=e.map(r=>k.route.router?.lookup(r)).filter(r=>r&&r.id);return await tx(t.map(r=>r?.id))};var Xy=O(Jy()),Yy=()=>{let e=k;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,Xy.default)();e.mode=t.device.type==="mobile"?"mobile":"desktop"}else e.site.responsive==="mobile-only"?e.mode="mobile":e.site.responsive==="desktop-only"&&(e.mode="desktop");localStorage.getItem("prasi-editor-mode")&&(e.mode=localStorage.getItem("prasi-editor-mode"))}};function Uo(e,t){return function(){return e.apply(t,arguments)}}var{toString:nx}=Object.prototype,{getPrototypeOf:_c}=Object,Ks=(e=>t=>{let n=nx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wt=e=>(e=e.toLowerCase(),t=>Ks(t)===e),Qs=e=>t=>typeof t===e,{isArray:kr}=Array,Vo=Qs("undefined");function rx(e){return e!==null&&!Vo(e)&&e.constructor!==null&&!Vo(e.constructor)&&et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var tg=wt("ArrayBuffer");function ox(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tg(e.buffer),t}var ix=Qs("string"),et=Qs("function"),ng=Qs("number"),qs=e=>e!==null&&typeof e=="object",sx=e=>e===!0||e===!1,Gs=e=>{if(Ks(e)!=="object")return!1;let t=_c(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lx=wt("Date"),ax=wt("File"),ux=wt("Blob"),fx=wt("FileList"),dx=e=>qs(e)&&et(e.pipe),px=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||et(e.append)&&((t=Ks(e))==="formdata"||t==="object"&&et(e.toString)&&e.toString()==="[object FormData]"))},mx=wt("URLSearchParams"),hx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $o(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),kr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}var og=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ig=e=>!Vo(e)&&e!==og;function wc(){let{caseless:e}=ig(this)&&this||{},t={},n=(r,o)=>{let i=e&&rg(t,o)||o;Gs(t[i])&&Gs(r)?t[i]=wc(t[i],r):Gs(r)?t[i]=wc({},r):kr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r($o(t,(o,i)=>{n&&et(o)?e[i]=Uo(o,n):e[i]=o},{allOwnKeys:r}),e),gx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wx=(e,t,n,r)=>{let o,i,s,l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&_c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_x=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},xx=e=>{if(!e)return null;if(kr(e))return e;let t=e.length;if(!ng(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_c(Uint8Array)),kx=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),o;for(;(o=r.next())&&!o.done;){let i=o.value;t.call(e,i[0],i[1])}},Ex=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Cx=wt("HTMLFormElement"),Rx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Zy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Px=wt("RegExp"),sg=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};$o(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Nx=e=>{sg(e,(t,n)=>{if(et(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(et(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ox=(e,t)=>{let n={},r=o=>{o.forEach(i=>{n[i]=!0})};return kr(e)?r(e):r(String(e).split(t)),n},Ix=()=>{},Tx=(e,t)=>(e=+e,Number.isFinite(e)?e:t),vc="abcdefghijklmnopqrstuvwxyz",eg="0123456789",lg={DIGIT:eg,ALPHA:vc,ALPHA_DIGIT:vc+vc.toUpperCase()+eg},bx=(e=16,t=lg.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lx(e){return!!(e&&et(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var Ax=e=>{let t=new Array(10),n=(r,o)=>{if(qs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;let i=kr(r)?[]:{};return $o(r,(s,l)=>{let a=n(s,o+1);!Vo(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},Mx=wt("AsyncFunction"),jx=e=>e&&(qs(e)||et(e))&&et(e.then)&&et(e.catch),w={isArray:kr,isArrayBuffer:tg,isBuffer:rx,isFormData:px,isArrayBufferView:ox,isString:ix,isNumber:ng,isBoolean:sx,isObject:qs,isPlainObject:Gs,isUndefined:Vo,isDate:lx,isFile:ax,isBlob:ux,isRegExp:Px,isFunction:et,isStream:dx,isURLSearchParams:mx,isTypedArray:Sx,isFileList:fx,forEach:$o,merge:wc,extend:yx,trim:hx,stripBOM:gx,inherits:vx,toFlatObject:wx,kindOf:Ks,kindOfTest:wt,endsWith:_x,toArray:xx,forEachEntry:kx,matchAll:Ex,isHTMLForm:Cx,hasOwnProperty:Zy,hasOwnProp:Zy,reduceDescriptors:sg,freezeMethods:Nx,toObjectSet:Ox,toCamelCase:Rx,noop:Ix,toFiniteNumber:Tx,findKey:rg,global:og,isContextDefined:ig,ALPHABET:lg,generateString:bx,isSpecCompliantForm:Lx,toJSONObject:Ax,isAsyncFn:Mx,isThenable:jx};function Er(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}w.inherits(Er,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ag=Er.prototype,ug={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ug[e]={value:e}});Object.defineProperties(Er,ug);Object.defineProperty(ag,"isAxiosError",{value:!0});Er.from=(e,t,n,r,o,i)=>{let s=Object.create(ag);return w.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),Er.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var A=Er;var Js=null;function xc(e){return w.isPlainObject(e)||w.isArray(e)}function fg(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function cg(e,t,n){return e?e.concat(t).map(function(o,i){return o=fg(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Fx(e){return w.isArray(e)&&!e.some(xc)}var Dx=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function zx(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(Js||FormData),n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!w.isUndefined(S[g])});let r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!a&&w.isBlob(h))throw new A("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,S){let m=h;if(h&&!S&&typeof h=="object"){if(w.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&Fx(h)||(w.isFileList(h)||w.endsWith(g,"[]"))&&(m=w.toArray(h)))return g=fg(g),m.forEach(function(v,_){!(w.isUndefined(v)||v===null)&&t.append(s===!0?cg([g],_,i):s===null?g:g+"[]",f(v))}),!1}return xc(h)?!0:(t.append(cg(S,g,i),f(h)),!1)}let c=[],d=Object.assign(Dx,{defaultVisitor:u,convertValue:f,isVisitable:xc});function y(h,g){if(!w.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(h),w.forEach(h,function(m,p){(!(w.isUndefined(m)||m===null)&&o.call(t,m,w.isString(p)?p.trim():p,g,d))===!0&&y(m,g?g.concat(p):[p])}),c.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return y(e),t}var pn=zx;function dg(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function pg(e,t){this._pairs=[],e&&pn(e,this,t)}var mg=pg.prototype;mg.append=function(t,n){this._pairs.push([t,n])};mg.toString=function(t){let n=t?function(r){return t.call(this,r,dg)}:dg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};var Xs=pg;function Bx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ho(e,t,n){if(!t)return e;let r=n&&n.encode||Bx,o=n&&n.serialize,i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new Xs(t,n).toString(r),i){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var Sc=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}},kc=Sc;var Ys={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var hg=typeof URLSearchParams<"u"?URLSearchParams:Xs;var yg=typeof FormData<"u"?FormData:null;var gg=typeof Blob<"u"?Blob:null;var vg={isBrowser:!0,classes:{URLSearchParams:hg,FormData:yg,Blob:gg},protocols:["http","https","file","blob","url","data"]};var Ec={};P0(Ec,{hasBrowserEnv:()=>wg,hasStandardBrowserEnv:()=>Ux,hasStandardBrowserWebWorkerEnv:()=>Vx});var wg=typeof window<"u"&&typeof document<"u",Ux=(e=>wg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Oe={...Ec,...vg};function Cc(e,t){return pn(e,new Oe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Oe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function $x(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hx(e){let t={},n=Object.keys(e),r,o=n.length,i;for(r=0;r=n.length;return s=!s&&w.isArray(o)?o.length:s,a?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=Hx(o[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){let n={};return w.forEachEntry(e,(r,o)=>{t($x(r),o,n,0)}),n}return null}var Zs=Wx;function Gx(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Rc={transitional:Ys,adapter:["xhr","http"],transformRequest:[function(t,n){let r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Zs(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cc(t,this.formSerializer).toString();if((l=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return pn(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Gx(t)):t}],transformResponse:[function(t){let n=this.transitional||Rc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||o)){let s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?A.from(l,A.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Rc.headers[e]={}});var Cr=Rc;var Kx=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_g=e=>{let t={},n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Kx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var xg=Symbol("internals");function Wo(e){return e&&String(e).trim().toLowerCase()}function el(e){return e===!1||e==null?e:w.isArray(e)?e.map(el):String(e)}function Qx(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var qx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pc(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function Jx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Xx(e,t){let n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}var Rr=class{constructor(t){t&&this.set(t)}set(t,n,r){let o=this;function i(l,a,f){let u=Wo(a);if(!u)throw new Error("header name must be a non-empty string");let c=w.findKey(o,u);(!c||o[c]===void 0||f===!0||f===void 0&&o[c]!==!1)&&(o[c||a]=el(l))}let s=(l,a)=>w.forEach(l,(f,u)=>i(f,u,a));return w.isPlainObject(t)||t instanceof this.constructor?s(t,n):w.isString(t)&&(t=t.trim())&&!qx(t)?s(_g(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Wo(t),t){let r=w.findKey(this,t);if(r){let o=this[r];if(!n)return o;if(n===!0)return Qx(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Wo(t),t){let r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Pc(this,this[r],r,n)))}return!1}delete(t,n){let r=this,o=!1;function i(s){if(s=Wo(s),s){let l=w.findKey(r,s);l&&(!n||Pc(r,r[l],l,n))&&(delete r[l],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){let n=Object.keys(this),r=n.length,o=!1;for(;r--;){let i=n[r];(!t||Pc(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){let n=this,r={};return w.forEach(this,(o,i)=>{let s=w.findKey(r,i);if(s){n[s]=el(o),delete n[i];return}let l=t?Jx(i):String(i).trim();l!==i&&delete n[i],n[l]=el(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){let r=(this[xg]=this[xg]={accessors:{}}).accessors,o=this.prototype;function i(s){let l=Wo(s);r[l]||(Xx(o,s),r[l]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};Rr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Rr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(Rr);var Ie=Rr;function Go(e,t){let n=this||Cr,r=t||n,o=Ie.from(r.headers),i=r.data;return w.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ko(e){return!!(e&&e.__CANCEL__)}function Sg(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Sg,A,{__CANCEL__:!0});var mn=Sg;function Nc(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var kg=Oe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){let s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Oc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ic(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qo(e,t){return e&&!Oc(t)?Ic(e,t):t}var Eg=Oe.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){let l=w.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Tc(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Yx(e,t){e=e||10;let n=new Array(e),r=new Array(e),o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){let f=Date.now(),u=r[i];s||(s=f),n[o]=a,r[o]=f;let c=i,d=0;for(;c!==o;)d+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s{let i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),f=i<=s;n=i;let u={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}var Zx=typeof XMLHttpRequest<"u",Pg=Zx&&function(e){return new Promise(function(n,r){let o=e.data,i=Ie.from(e.headers).normalize(),{responseType:s,withXSRFToken:l}=e,a;function f(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let u;if(w.isFormData(o)){if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){let[g,...S]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...S].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let g=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+S))}let d=Qo(e.baseURL,e.url);c.open(e.method.toUpperCase(),Ho(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let g=Ie.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};Nc(function(v){n(v),f()},function(v){r(v),f()},m),c=null}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(r(new A("Request aborted",A.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new A("Network Error",A.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",m=e.transitional||Ys;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new A(S,m.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,c)),c=null},Oe.hasStandardBrowserEnv&&(l&&w.isFunction(l)&&(l=l(e)),l||l!==!1&&Eg(d))){let g=e.xsrfHeaderName&&e.xsrfCookieName&&kg.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&w.forEach(i.toJSON(),function(S,m){c.setRequestHeader(m,S)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Rg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Rg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=g=>{c&&(r(!g||g.type?new mn(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let h=Tc(d);if(h&&Oe.protocols.indexOf(h)===-1){r(new A("Unsupported protocol "+h+":",A.ERR_BAD_REQUEST,e));return}c.send(o||null)})};var bc={http:Js,xhr:Pg};w.forEach(bc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var Ng=e=>`- ${e}`,eS=e=>w.isFunction(e)||e===null||e===!1,tl={getAdapter:e=>{e=w.isArray(e)?e:[e];let{length:t}=e,n,r,o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build")),s=t?i.length>1?`since : -`+i.map(Ng).join(` -`):" "+Ng(i[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:bc};function Lc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mn(null,e)}function nl(e){return Lc(e),e.headers=Ie.from(e.headers),e.data=Go.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tl.getAdapter(e.adapter||Cr.adapter)(e).then(function(r){return Lc(e),r.data=Go.call(e,e.transformResponse,r),r.headers=Ie.from(r.headers),r},function(r){return Ko(r)||(Lc(e),r&&r.response&&(r.response.data=Go.call(e,e.transformResponse,r.response),r.response.headers=Ie.from(r.response.headers))),Promise.reject(r)})}var Og=e=>e instanceof Ie?e.toJSON():e;function At(e,t){t=t||{};let n={};function r(f,u,c){return w.isPlainObject(f)&&w.isPlainObject(u)?w.merge.call({caseless:c},f,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(f,u,c){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f,c)}else return r(f,u,c)}function i(f,u){if(!w.isUndefined(u))return r(void 0,u)}function s(f,u){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function l(f,u,c){if(c in t)return r(f,u);if(c in e)return r(void 0,f)}let a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,u)=>o(Og(f),Og(u),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(u){let c=a[u]||o,d=c(e[u],t[u],u);w.isUndefined(d)&&c!==l||(n[u]=d)}),n}var rl="1.6.7";var Ac={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ac[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Ig={};Ac.transitional=function(t,n,r){function o(i,s){return"[Axios v"+rl+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new A(o(s," has been removed"+(n?" in "+n:"")),A.ERR_DEPRECATED);return n&&!Ig[s]&&(Ig[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function tS(e,t,n){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let i=r[o],s=t[i];if(s){let l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new A("option "+i+" must be "+a,A.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new A("Unknown option "+i,A.ERR_BAD_OPTION)}}var ol={assertOptions:tS,validators:Ac};var hn=ol.validators,Pr=class{constructor(t){this.defaults=t,this.interceptors={request:new kc,response:new kc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;let i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=At(this.defaults,n);let{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ol.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:ol.assertOptions(o,{encode:hn.function,serialize:hn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Ie.concat(s,i);let l=[],a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});let f=[];this.interceptors.response.forEach(function(g){f.push(g.fulfilled,g.rejected)});let u,c=0,d;if(!a){let h=[nl.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,f),d=h.length,u=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i,s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new mn(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},Tg=Mc;function jc(e){return function(n){return e.apply(null,n)}}function Fc(e){return w.isObject(e)&&e.isAxiosError===!0}var Dc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dc).forEach(([e,t])=>{Dc[t]=e});var bg=Dc;function Lg(e){let t=new qo(e),n=Uo(qo.prototype.request,t);return w.extend(n,qo.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lg(At(e,o))},n}var ie=Lg(Cr);ie.Axios=qo;ie.CanceledError=mn;ie.CancelToken=Tg;ie.isCancel=Ko;ie.VERSION=rl;ie.toFormData=pn;ie.AxiosError=A;ie.Cancel=ie.CanceledError;ie.all=function(t){return Promise.all(t)};ie.spread=jc;ie.isAxiosError=Fc;ie.mergeConfig=At;ie.AxiosHeaders=Ie;ie.formToJSON=e=>Zs(w.isHTMLForm(e)?new FormData(e):e);ie.getAdapter=tl.getAdapter;ie.HttpStatusCode=bg;ie.default=ie;var il=ie;var{Axios:SP,AxiosError:kP,CanceledError:EP,isCancel:CP,CancelToken:RP,VERSION:PP,all:NP,Cancel:OP,isAxiosError:IP,spread:TP,toFormData:bP,AxiosHeaders:LP,HttpStatusCode:AP,formToJSON:MP,getAdapter:jP,mergeConfig:FP}=il;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var nS=typeof window<"u"?window:null,Ag=typeof global<"u"?global:void 0,Nr=async(e,t,n)=>{let r={...n},o=null,i=!1,s=null,l=[];if(Array.isArray(t))for(let c of t)c instanceof File&&(l.push(c),i=!0),typeof c=="function"&&(s=c);else t instanceof File&&(i=!0,l.push(t));if(!i)o=JSON.stringify(t),r["content-type"]="aplication/json";else{let c=new FormData;for(let d of l)c.append(d.name,d);o=c,delete r["content-type"],r.enctype="multipart/form-data;"}let a=new URL(e);if(nS!==null){let c=new URL(location.href),d="";if(a.host===c.host||Ag&&typeof Ag.server_hook=="function"?d=a.toString():d=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(a.toString())}`,d){if(s)return(await il({method:t?"post":void 0,url:d,data:o,onUploadProgress:s})).data;{let h=await(await fetch(d,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(h,Mg)}catch{return h}}}}let u=await(await fetch(a,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(u,Mg)}catch{return u}},Mg=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var Zg=O(Yg());var e0=async(e,t)=>{let n=(0,Zg.default)(e,"/"),r=await Nr(bS(n,"/_prasi/_")),o="";r&&r.prasi&&(o=r.prasi);let i=TS(n);if(o==="v2")await new Promise(s=>{let l=document,a=l.createElement("script");a.onload=async()=>{s()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let f=localStorage.getItem("api-ts-"+n);t?a.src=`${i}/_prasi/load.js?url=${n}&v3&dev=1&ts=${f}`:a.src=`${i}/_prasi/load.js?url=${n}&v3&ts=${f}`,document.querySelector(`script[src="${a.src}"]`)?s():l.body.appendChild(a)});else{let s=await fetch(i+"/_prasi/api-entry");if(Ye.prasiApi[n]={apiEntry:(await s.json()).srv},t){let l=await fetch(i+"/_prasi/api-types");Ye.prasiApi[n].apiTypes=await l.text(),Ye.prasiApi[n].prismaTypes={"prisma.d.ts":await Vc(`${i}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await Vc(`${i}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await Vc(`${i}/_prasi/prisma/runtime/library.d.ts`)}}}},TS=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},bS=(e,t)=>{let n=new URL(e);return n.pathname=t,n.toString()},Vc=async(e,t)=>await(await fetch(e)).text();var Jo={},n0=e=>{Ye.prasiApi||(Ye.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return Ye.prasiApi[n]||Jo[n]||(Jo[n]=e0(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,o)=>{if(o==="_url")return(s,l)=>{let a=new URL(n);a.pathname=s.split("/").filter(c=>c).join("/");let f=new URL(location.href),u="";return a.host===f.host||l===!1?u=a.toString():u=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(a.toString())}`,u};let i=s=>function(...l){return new Promise(async(a,f)=>{try{let u=Ye.prasiApi[n];if(!u&&Jo&&typeof Jo[n]=="object"&&(await Jo[n],u=Ye.prasiApi[n]),u){if(s==="_raw"){let y=l[0],h=`${n}${y}`,g=await t0(h,l.slice(1));a(g);return}if(u.apiEntry||(u.apiEntry={}),u.apiEntry&&!u.apiEntry[s]){f(`API ${s.toString()} not found, existing API: + `);l.fn=a(...Object.values(i))}}};var xc=P(V()),_c=({meta:e,passprop:t,is_layout:n,parent_key:r})=>{let o=cn(fn,"VI"),[i,s]=(0,Ky.useState)({});e.render=()=>{s({})};let l=t;return e.item.component?.id&&(l||(l={}),Gy(o,e,n,l,r)),e.item.adv?.html?(0,xc.jsx)(Vs,{meta:e,passprop:l,is_layout:n}):e.item.adv?.js&&(Hy(o,e,n,l,r),e.script)?e.script.result:(0,xc.jsx)(Vs,{meta:e,passprop:l,is_layout:n})};var he=P(V()),s_=70,$s={enabled:!1,meta:{}},Lt=({meta:e,passprop:t,is_layout:n,parent_key:r})=>{if($s.enabled){let o=$s.meta;if(o[e.item.id]?o[e.item.id].last_render===Math.floor(Date.now()/1e3)?o[e.item.id].count++:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1}:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1},o[e.item.id]?.count>s_)return(0,he.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,he.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,he.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",o[e.item.id]?.count," times in less than 1 second."]})]})}return!e||e.item.hidden?null:e.item.adv?.js||e.item.component?.id?(0,he.jsx)(gt,{meta:e,children:(0,he.jsx)(_c,{meta:e,is_layout:n,passprop:t,parent_key:r})}):(0,he.jsx)(gt,{meta:e,children:(0,he.jsx)(Vs,{meta:e,passprop:t,is_layout:n,parent_key:r})})},Vs=({meta:e,passprop:t,is_layout:n,parent_key:r})=>{let o=cn(fn,"VI");if(n&&e.item.name==="children"){let s=[];for(let l of o.entry){let a=o.meta[l];if(a.item.adv?.js||a.item.component?.id)s.push((0,he.jsx)(gt,{meta:a,children:(0,he.jsx)(_c,{meta:a,is_layout:!1,passprop:t,parent_key:r})}));else{let f=Do(o,a,!1,t);o.visit&&o.visit(a,f),s.push((0,he.jsx)("div",{...f.props}))}}return(0,he.jsx)(he.Fragment,{children:s.map((l,a)=>(0,he.jsx)(Yy.Fragment,{children:l},a))})}let i=Do(o,e,n,t);return o.visit&&o.visit(e,i),(0,he.jsx)("div",{...i.props})};var kr=P(V()),qy=({})=>{let e=cn(fn,"VI"),t=sn({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,kr.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,kr.jsx)(Ao,{backdrop:!1})});let n=!!e.layout?.entry&&e.layout.entry.length>0,r=e.entry;return n&&e.layout?.entry&&(r=e.layout?.entry),(0,kr.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(r)&&r.map(o=>{let i=n?e.layout?.meta[o]:e.meta[o];return i&&Element?(0,kr.jsx)(gt,{children:(0,kr.jsx)(Lt,{meta:i,is_layout:n})},i.item.id):null})})};var Ws=P(V()),Hs=window,Jy=({meta:e,entry:t,api_url:n,site_id:r,api:o,mode:i,db:s,visit:l,script:a,page_id:f,render_stat:u,on_status_changed:c,on_preload:d,layout:y,comp_load:h})=>{let g=cn(fn,"VI");return g.mode=i,g.entry=t,g.on_preload=d,g.comp.load=h,Hs.siteurl=(S,m)=>{if(S.startsWith("http://")||S.startsWith("https://"))return S;try{["prasi.avolut.com","localhost"].includes(location.hostname)?g.site.api_url&&(g.site_url||(g.site_url=new URL(g.site.api_url))):g.site_url||(m&&g.site.api_url?g.site_url=new URL(g.site.api_url):g.site_url=new URL(location.href),g.site_url.pathname="")}catch{}if(g.site_url){let p=g.site_url,v=S;return v.startsWith("/")||(v="/"+v),`${p.protocol}//${p.hostname}${v}`}return S},Hs.isMobile=i==="mobile",Hs.isDesktop=i==="desktop",Hs.preload=(S,m)=>{g.page.navs[f]||(g.page.navs[f]=new Set);let p=typeof S=="string"?[S]:S;for(let v of p)g.page.navs[f].add(v);return clearTimeout(Bo.timeout),Bo.timeout=setTimeout(()=>{g.on_preload&&g.on_preload({urls:Array.from(g.page.navs[f]),opt:{on_load:m?.on_load}})},100),""},g.layout=y,g.page.cur.id=f,g.on_status_changes=c,u==="disabled"&&($s.enabled=!1),g.meta!==e&&(g.meta=e),a&&(g.script.init_local_effect=a.init_local_effect),g.visit=l,g.status==="init"&&(g.site.db=s,g.site.api=o,ty(g,{api_url:n,site_id:r})),d&&(0,Gs.useEffect)(()=>{setTimeout(()=>{let S=g.page.navs[g.page.cur.id];S&&d({urls:Array.from(S),opt:{on_load(m){}}})},500)},[g.page.cur.id]),(0,Ws.jsx)(gt,{children:(0,Ws.jsx)(Gs.Suspense,{children:(0,Ws.jsx)(qy,{})})})};var Sc=window,k={root:null,url(...e){let t=e.map(r=>Array.isArray(r)?r.join(""):r).join(""),n=this.root.toString();return n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")?n+t:n+"/"+t},get pathname(){let e=location.pathname.substring(k.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:Sc._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:new Set},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},Xy=()=>{if(!k.root){let e=new URL(location.href);Sc._prasi.basepath&&(e.pathname=Sc._prasi.basepath),k.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),k.root.pathname.endsWith("/")&&(k.root.pathname=k.root.pathname.substring(0,k.root.length-1))}};var Er=async(e,t)=>{let n=k.comp,r=t||{};for(let o of e)o&&o.type!=="text"&&Qs(o,r);if(n.pending.size>0)try{let o=await(await fetch(k.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...n.pending]})})).json();for(let[i,s]of Object.entries(o))n.pending.delete(i),n.list[i]=s,await Ms(`comp-${i}`,s);await Er(Object.values(o),r)}catch{}},Qs=(e,t)=>{let n=k.comp;if(e.type==="item"){let r=e.component?.id;if(r&&(!n.list[r]&&!n.pending.has(r)&&n.pending.add(r),n.pending.has(r)&&(t[r]||(t[r]=[]),t[r].push(e)),t[r])){if(n.list[r]){for(let o of t[r])for(let i of Object.values(o.component?.props||{}))i.content&&Qs(i.content,t);delete t[r]}else if(e.component?.props)for(let o of Object.values(e.component?.props||{}))o.content&&Qs(o.content,t)}}if(e.childs)for(let r of e.childs){let o=r;o&&o.type!=="text"&&Qs(o,t)}};var Zy=e=>new Promise(async t=>{let n=!1,r=await ec(`page-${e}`);r&&(t(r),n=!0);let o=await(await fetch(k.url`_prasi/page/${e}`)).json();n||t(o)}),l_=e=>new Promise(async t=>{let n={},r=[...new Set(e)],o=!0;for(let s of r){let l=await ec(`page-${s}`);if(l)n[s]=l;else{o=!1;break}}o&&t(n);let i=await(await fetch(k.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();o||t(i)}),eg=async e=>{let t=e.map(r=>k.route.router?.lookup(r)).filter(r=>r&&r.id);return await l_(t.map(r=>r?.id))};var ng=P(tg()),rg=()=>{let e=k;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,ng.default)();e.mode=t.device.type==="mobile"?"mobile":"desktop"}else e.site.responsive==="mobile-only"?e.mode="mobile":e.site.responsive==="desktop-only"&&(e.mode="desktop");localStorage.getItem("prasi-editor-mode")&&(e.mode=localStorage.getItem("prasi-editor-mode"))}};function $o(e,t){return function(){return e.apply(t,arguments)}}var{toString:a_}=Object.prototype,{getPrototypeOf:Cc}=Object,qs=(e=>t=>{let n=a_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wt=e=>(e=e.toLowerCase(),t=>qs(t)===e),Js=e=>t=>typeof t===e,{isArray:Cr}=Array,Ho=Js("undefined");function u_(e){return e!==null&&!Ho(e)&&e.constructor!==null&&!Ho(e.constructor)&&et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var sg=wt("ArrayBuffer");function c_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sg(e.buffer),t}var f_=Js("string"),et=Js("function"),lg=Js("number"),Xs=e=>e!==null&&typeof e=="object",d_=e=>e===!0||e===!1,Ys=e=>{if(qs(e)!=="object")return!1;let t=Cc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},p_=wt("Date"),m_=wt("File"),h_=wt("Blob"),y_=wt("FileList"),g_=e=>Xs(e)&&et(e.pipe),v_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||et(e.append)&&((t=qs(e))==="formdata"||t==="object"&&et(e.toString)&&e.toString()==="[object FormData]"))},w_=wt("URLSearchParams"),x_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Cr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}var ug=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cg=e=>!Ho(e)&&e!==ug;function Ec(){let{caseless:e}=cg(this)&&this||{},t={},n=(r,o)=>{let i=e&&ag(t,o)||o;Ys(t[i])&&Ys(r)?t[i]=Ec(t[i],r):Ys(r)?t[i]=Ec({},r):Cr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Wo(t,(o,i)=>{n&&et(o)?e[i]=$o(o,n):e[i]=o},{allOwnKeys:r}),e),S_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),k_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},E_=(e,t,n,r)=>{let o,i,s,l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Cc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},C_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},R_=e=>{if(!e)return null;if(Cr(e))return e;let t=e.length;if(!lg(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},O_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Cc(Uint8Array)),I_=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),o;for(;(o=r.next())&&!o.done;){let i=o.value;t.call(e,i[0],i[1])}},P_=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},T_=wt("HTMLFormElement"),N_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),og=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),b_=wt("RegExp"),fg=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Wo(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},L_=e=>{fg(e,(t,n)=>{if(et(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(et(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},M_=(e,t)=>{let n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Cr(e)?r(e):r(String(e).split(t)),n},A_=()=>{},j_=(e,t)=>(e=+e,Number.isFinite(e)?e:t),kc="abcdefghijklmnopqrstuvwxyz",ig="0123456789",dg={DIGIT:ig,ALPHA:kc,ALPHA_DIGIT:kc+kc.toUpperCase()+ig},D_=(e=16,t=dg.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function F_(e){return!!(e&&et(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var z_=e=>{let t=new Array(10),n=(r,o)=>{if(Xs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;let i=Cr(r)?[]:{};return Wo(r,(s,l)=>{let a=n(s,o+1);!Ho(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},B_=wt("AsyncFunction"),U_=e=>e&&(Xs(e)||et(e))&&et(e.then)&&et(e.catch),w={isArray:Cr,isArrayBuffer:sg,isBuffer:u_,isFormData:v_,isArrayBufferView:c_,isString:f_,isNumber:lg,isBoolean:d_,isObject:Xs,isPlainObject:Ys,isUndefined:Ho,isDate:p_,isFile:m_,isBlob:h_,isRegExp:b_,isFunction:et,isStream:g_,isURLSearchParams:w_,isTypedArray:O_,isFileList:y_,forEach:Wo,merge:Ec,extend:__,trim:x_,stripBOM:S_,inherits:k_,toFlatObject:E_,kindOf:qs,kindOfTest:wt,endsWith:C_,toArray:R_,forEachEntry:I_,matchAll:P_,isHTMLForm:T_,hasOwnProperty:og,hasOwnProp:og,reduceDescriptors:fg,freezeMethods:L_,toObjectSet:M_,toCamelCase:N_,noop:A_,toFiniteNumber:j_,findKey:ag,global:ug,isContextDefined:cg,ALPHABET:dg,generateString:D_,isSpecCompliantForm:F_,toJSONObject:z_,isAsyncFn:B_,isThenable:U_};function Rr(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}w.inherits(Rr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var pg=Rr.prototype,mg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mg[e]={value:e}});Object.defineProperties(Rr,mg);Object.defineProperty(pg,"isAxiosError",{value:!0});Rr.from=(e,t,n,r,o,i)=>{let s=Object.create(pg);return w.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),Rr.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var M=Rr;var Zs=null;function Rc(e){return w.isPlainObject(e)||w.isArray(e)}function yg(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function hg(e,t,n){return e?e.concat(t).map(function(o,i){return o=yg(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function V_(e){return w.isArray(e)&&!e.some(Rc)}var $_=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function H_(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(Zs||FormData),n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!w.isUndefined(S[g])});let r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!a&&w.isBlob(h))throw new M("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,S){let m=h;if(h&&!S&&typeof h=="object"){if(w.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&V_(h)||(w.isFileList(h)||w.endsWith(g,"[]"))&&(m=w.toArray(h)))return g=yg(g),m.forEach(function(v,x){!(w.isUndefined(v)||v===null)&&t.append(s===!0?hg([g],x,i):s===null?g:g+"[]",f(v))}),!1}return Rc(h)?!0:(t.append(hg(S,g,i),f(h)),!1)}let c=[],d=Object.assign($_,{defaultVisitor:u,convertValue:f,isVisitable:Rc});function y(h,g){if(!w.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(h),w.forEach(h,function(m,p){(!(w.isUndefined(m)||m===null)&&o.call(t,m,w.isString(p)?p.trim():p,g,d))===!0&&y(m,g?g.concat(p):[p])}),c.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return y(e),t}var pn=H_;function gg(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vg(e,t){this._pairs=[],e&&pn(e,this,t)}var wg=vg.prototype;wg.append=function(t,n){this._pairs.push([t,n])};wg.toString=function(t){let n=t?function(r){return t.call(this,r,gg)}:gg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};var el=vg;function W_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Go(e,t,n){if(!t)return e;let r=n&&n.encode||W_,o=n&&n.serialize,i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new el(t,n).toString(r),i){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var Oc=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}},Ic=Oc;var tl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var xg=typeof URLSearchParams<"u"?URLSearchParams:el;var _g=typeof FormData<"u"?FormData:null;var Sg=typeof Blob<"u"?Blob:null;var kg={isBrowser:!0,classes:{URLSearchParams:xg,FormData:_g,Blob:Sg},protocols:["http","https","file","blob","url","data"]};var Pc={};b0(Pc,{hasBrowserEnv:()=>Eg,hasStandardBrowserEnv:()=>G_,hasStandardBrowserWebWorkerEnv:()=>Q_});var Eg=typeof window<"u"&&typeof document<"u",G_=(e=>Eg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Q_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Pe={...Pc,...kg};function Tc(e,t){return pn(e,new Pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function K_(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Y_(e){let t={},n=Object.keys(e),r,o=n.length,i;for(r=0;r=n.length;return s=!s&&w.isArray(o)?o.length:s,a?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=Y_(o[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){let n={};return w.forEachEntry(e,(r,o)=>{t(K_(r),o,n,0)}),n}return null}var nl=q_;function J_(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Nc={transitional:tl,adapter:["xhr","http"],transformRequest:[function(t,n){let r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(nl(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tc(t,this.formSerializer).toString();if((l=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return pn(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),J_(t)):t}],transformResponse:[function(t){let n=this.transitional||Nc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||o)){let s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?M.from(l,M.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pe.classes.FormData,Blob:Pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Nc.headers[e]={}});var Or=Nc;var X_=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cg=e=>{let t={},n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&X_[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var Rg=Symbol("internals");function Qo(e){return e&&String(e).trim().toLowerCase()}function rl(e){return e===!1||e==null?e:w.isArray(e)?e.map(rl):String(e)}function Z_(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var eS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bc(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function tS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nS(e,t){let n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}var Ir=class{constructor(t){t&&this.set(t)}set(t,n,r){let o=this;function i(l,a,f){let u=Qo(a);if(!u)throw new Error("header name must be a non-empty string");let c=w.findKey(o,u);(!c||o[c]===void 0||f===!0||f===void 0&&o[c]!==!1)&&(o[c||a]=rl(l))}let s=(l,a)=>w.forEach(l,(f,u)=>i(f,u,a));return w.isPlainObject(t)||t instanceof this.constructor?s(t,n):w.isString(t)&&(t=t.trim())&&!eS(t)?s(Cg(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Qo(t),t){let r=w.findKey(this,t);if(r){let o=this[r];if(!n)return o;if(n===!0)return Z_(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Qo(t),t){let r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||bc(this,this[r],r,n)))}return!1}delete(t,n){let r=this,o=!1;function i(s){if(s=Qo(s),s){let l=w.findKey(r,s);l&&(!n||bc(r,r[l],l,n))&&(delete r[l],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){let n=Object.keys(this),r=n.length,o=!1;for(;r--;){let i=n[r];(!t||bc(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){let n=this,r={};return w.forEach(this,(o,i)=>{let s=w.findKey(r,i);if(s){n[s]=rl(o),delete n[i];return}let l=t?tS(i):String(i).trim();l!==i&&delete n[i],n[l]=rl(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){let r=(this[Rg]=this[Rg]={accessors:{}}).accessors,o=this.prototype;function i(s){let l=Qo(s);r[l]||(nS(o,s),r[l]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};Ir.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Ir.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(Ir);var Te=Ir;function Ko(e,t){let n=this||Or,r=t||n,o=Te.from(r.headers),i=r.data;return w.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Yo(e){return!!(e&&e.__CANCEL__)}function Og(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Og,M,{__CANCEL__:!0});var mn=Og;function Lc(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Ig=Pe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){let s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Mc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ac(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qo(e,t){return e&&!Mc(t)?Ac(e,t):t}var Pg=Pe.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){let l=w.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function jc(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rS(e,t){e=e||10;let n=new Array(e),r=new Array(e),o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){let f=Date.now(),u=r[i];s||(s=f),n[o]=a,r[o]=f;let c=i,d=0;for(;c!==o;)d+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s{let i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),f=i<=s;n=i;let u={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}var oS=typeof XMLHttpRequest<"u",bg=oS&&function(e){return new Promise(function(n,r){let o=e.data,i=Te.from(e.headers).normalize(),{responseType:s,withXSRFToken:l}=e,a;function f(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let u;if(w.isFormData(o)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){let[g,...S]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...S].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let g=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+S))}let d=qo(e.baseURL,e.url);c.open(e.method.toUpperCase(),Go(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let g=Te.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};Lc(function(v){n(v),f()},function(v){r(v),f()},m),c=null}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(r(new M("Request aborted",M.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",m=e.transitional||tl;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new M(S,m.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,c)),c=null},Pe.hasStandardBrowserEnv&&(l&&w.isFunction(l)&&(l=l(e)),l||l!==!1&&Pg(d))){let g=e.xsrfHeaderName&&e.xsrfCookieName&&Ig.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&w.forEach(i.toJSON(),function(S,m){c.setRequestHeader(m,S)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Ng(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Ng(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=g=>{c&&(r(!g||g.type?new mn(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let h=jc(d);if(h&&Pe.protocols.indexOf(h)===-1){r(new M("Unsupported protocol "+h+":",M.ERR_BAD_REQUEST,e));return}c.send(o||null)})};var Dc={http:Zs,xhr:bg};w.forEach(Dc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var Lg=e=>`- ${e}`,iS=e=>w.isFunction(e)||e===null||e===!1,ol={getAdapter:e=>{e=w.isArray(e)?e:[e];let{length:t}=e,n,r,o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build")),s=t?i.length>1?`since : +`+i.map(Lg).join(` +`):" "+Lg(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Dc};function Fc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mn(null,e)}function il(e){return Fc(e),e.headers=Te.from(e.headers),e.data=Ko.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ol.getAdapter(e.adapter||Or.adapter)(e).then(function(r){return Fc(e),r.data=Ko.call(e,e.transformResponse,r),r.headers=Te.from(r.headers),r},function(r){return Yo(r)||(Fc(e),r&&r.response&&(r.response.data=Ko.call(e,e.transformResponse,r.response),r.response.headers=Te.from(r.response.headers))),Promise.reject(r)})}var Mg=e=>e instanceof Te?e.toJSON():e;function Mt(e,t){t=t||{};let n={};function r(f,u,c){return w.isPlainObject(f)&&w.isPlainObject(u)?w.merge.call({caseless:c},f,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(f,u,c){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f,c)}else return r(f,u,c)}function i(f,u){if(!w.isUndefined(u))return r(void 0,u)}function s(f,u){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function l(f,u,c){if(c in t)return r(f,u);if(c in e)return r(void 0,f)}let a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,u)=>o(Mg(f),Mg(u),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(u){let c=a[u]||o,d=c(e[u],t[u],u);w.isUndefined(d)&&c!==l||(n[u]=d)}),n}var sl="1.6.7";var zc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Ag={};zc.transitional=function(t,n,r){function o(i,s){return"[Axios v"+sl+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new M(o(s," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ag[s]&&(Ag[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function sS(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let i=r[o],s=t[i];if(s){let l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new M("option "+i+" must be "+a,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}var ll={assertOptions:sS,validators:zc};var hn=ll.validators,Pr=class{constructor(t){this.defaults=t,this.interceptors={request:new Ic,response:new Ic}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;let i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mt(this.defaults,n);let{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ll.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:ll.assertOptions(o,{encode:hn.function,serialize:hn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Te.concat(s,i);let l=[],a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});let f=[];this.interceptors.response.forEach(function(g){f.push(g.fulfilled,g.rejected)});let u,c=0,d;if(!a){let h=[il.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,f),d=h.length,u=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i,s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new mn(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},jg=Bc;function Uc(e){return function(n){return e.apply(null,n)}}function Vc(e){return w.isObject(e)&&e.isAxiosError===!0}var $c={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($c).forEach(([e,t])=>{$c[t]=e});var Dg=$c;function Fg(e){let t=new Jo(e),n=$o(Jo.prototype.request,t);return w.extend(n,Jo.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Fg(Mt(e,o))},n}var ie=Fg(Or);ie.Axios=Jo;ie.CanceledError=mn;ie.CancelToken=jg;ie.isCancel=Yo;ie.VERSION=sl;ie.toFormData=pn;ie.AxiosError=M;ie.Cancel=ie.CanceledError;ie.all=function(t){return Promise.all(t)};ie.spread=Uc;ie.isAxiosError=Vc;ie.mergeConfig=Mt;ie.AxiosHeaders=Te;ie.formToJSON=e=>nl(w.isHTMLForm(e)?new FormData(e):e);ie.getAdapter=ol.getAdapter;ie.HttpStatusCode=Dg;ie.default=ie;var al=ie;var{Axios:$O,AxiosError:HO,CanceledError:WO,isCancel:GO,CancelToken:QO,VERSION:KO,all:YO,Cancel:qO,isAxiosError:JO,spread:XO,toFormData:ZO,AxiosHeaders:eI,HttpStatusCode:tI,formToJSON:nI,getAdapter:rI,mergeConfig:oI}=al;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var lS=typeof window<"u"?window:null,zg=typeof global<"u"?global:void 0,Tr=async(e,t,n)=>{let r={...n},o=null,i=!1,s=null,l=[];if(Array.isArray(t))for(let c of t)c instanceof File&&(l.push(c),i=!0),typeof c=="function"&&(s=c);else t instanceof File&&(i=!0,l.push(t));if(!i)o=JSON.stringify(t),r["content-type"]="aplication/json";else{let c=new FormData;for(let d of l)c.append(d.name,d);o=c,delete r["content-type"],r.enctype="multipart/form-data;"}let a=new URL(e);if(lS!==null){let c=new URL(location.href),d="";if(a.host===c.host||zg&&typeof zg.server_hook=="function"?d=a.toString():d=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(a.toString())}`,d){if(s)return(await al({method:t?"post":void 0,url:d,data:o,onUploadProgress:s})).data;{let h=await(await fetch(d,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(h,Bg)}catch{return h}}}}let u=await(await fetch(a,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(u,Bg)}catch{return u}},Bg=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var o0=P(r0());var i0=async(e,t)=>{let n=(0,o0.default)(e,"/"),r=await Tr(DS(n,"/_prasi/_")),o="";r&&r.prasi&&(o=r.prasi);let i=jS(n);if(o==="v2")await new Promise(s=>{let l=document,a=l.createElement("script");a.onload=async()=>{s()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let f=localStorage.getItem("api-ts-"+n);t?a.src=`${i}/_prasi/load.js?url=${n}&v3&dev=1&ts=${f}`:a.src=`${i}/_prasi/load.js?url=${n}&v3&ts=${f}`,document.querySelector(`script[src="${a.src}"]`)?s():l.body.appendChild(a)});else{let s=await fetch(i+"/_prasi/api-entry");if(Xe.prasiApi[n]={apiEntry:(await s.json()).srv},t){let l=await fetch(i+"/_prasi/api-types");Xe.prasiApi[n].apiTypes=await l.text(),Xe.prasiApi[n].prismaTypes={"prisma.d.ts":await Qc(`${i}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await Qc(`${i}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await Qc(`${i}/_prasi/prisma/runtime/library.d.ts`)}}}},jS=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},DS=(e,t)=>{let n=new URL(e);return n.pathname=t,n.toString()},Qc=async(e,t)=>await(await fetch(e)).text();var Xo={},l0=e=>{Xe.prasiApi||(Xe.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return Xe.prasiApi[n]||Xo[n]||(Xo[n]=i0(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,o)=>{if(o==="_url")return(s,l)=>{let a=new URL(n);a.pathname=s.split("/").filter(c=>c).join("/");let f=new URL(location.href),u="";return a.host===f.host||l===!1?u=a.toString():u=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(a.toString())}`,u};let i=s=>function(...l){return new Promise(async(a,f)=>{try{let u=Xe.prasiApi[n];if(!u&&Xo&&typeof Xo[n]=="object"&&(await Xo[n],u=Xe.prasiApi[n]),u){if(s==="_raw"){let y=l[0],h=`${n}${y}`,g=await s0(h,l.slice(1));a(g);return}if(u.apiEntry||(u.apiEntry={}),u.apiEntry&&!u.apiEntry[s]){f(`API ${s.toString()} not found, existing API: - ${Object.keys(u.apiEntry||{}).join(` - - `)}`);return}let c=u.apiEntry[s].url,d=u.apiEntry[s].args;if(c&&d){if(l.length>0&&d.length>0)for(let[g,S]of Object.entries(l)){let m=d[parseInt(g)];d&&d.includes(m)&&S&&typeof S!="string"&&typeof S!="number"||(c=c.replace(`:${m}?`,S+""),c=c.replace(`:${m}`,S+""))}let y=`${n}${c}`,h=await t0(y,l);a(h)}else console.error(`API Not Found: ${s.toString()}`)}else f("Failed to load API [Proxy]: "+n)}catch(u){f(u)}})};return o==="then"?new Proxy({},{get:(s,l)=>i(l)}):i(o)}})}catch{return null}},t0=async(e,t)=>await Nr(e,t,{"content-type":"application/json"});var s0=O(i0());var l0=e=>{let t="";return new Proxy({},{get(n,r){return r==="_batch"?{update:async o=>Or({name:t,action:"batch_update",table:"",params:{batch:o}},e)}:r==="_schema"?{tables:async()=>Or({name:t,action:"schema_tables",table:"",params:[]},e),columns:async o=>Or({name:t,action:"schema_columns",table:o,params:[]},e),rels:async o=>Or({name:t,action:"schema_rels",table:o,params:[]},e)}:r.startsWith("$")?(...o)=>Or({name:t,action:"query",table:r,params:o},e):new Proxy({},{get(o,i){return async(...s)=>(r==="query"&&(r=i,i="query"),await Or({name:t,action:i,table:r,params:s},e))}})}})},sl={},Or=async(e,t)=>{try{let n=new URL(t);n.pathname="/_dbs",e.table&&(n.pathname+=`/${e.table}`);let r=n.toString(),o=(0,s0.default)(e),i=sl[o];if(!i||i&&Date.now()-i.timestamp>1e3){sl[o]={timestamp:Date.now(),promise:Nr(r,e,{"content-type":"application/json"}),result:null};let s=await sl[o].promise;return sl[o].result=s,s}return await i.promise}catch{}};var a0=O(uc());var u0=e=>{let{item:t,item_comp:n,ids:r}=e,o=un(n);if(c0(o,r),t.id&&(o.id=t.id),o.hidden=t.hidden,o.component){if(o.component.props&&t.component)for(let i of Object.keys(o.component.props)){let s=t.component.props[i],l=o.component.props[i];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}o.component.instances=t.component?.instances,o.component.style=t.component?.style}for(let i of Object.keys(t))delete t[i];for(let[i,s]of Object.entries(o))t[i]=s},c0=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,a0.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)c0(n,t)};var f0=e=>{let t=Object.entries(e.item_comp.component?.props||{}).sort((n,r)=>n[1].idx-r[1].idx);for(let[n,r]of t){let o=un(r),i=e.item.component?.props;i&&i[n]&&(o.value=i[n].value,o.valueBuilt=i[n].valueBuilt,i[n].content&&(o.content=i[n].content)),o&&e.each(n,o)}};var ll=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let o of r)o.type==="item"&&o.component?t.childs.push(o):t.childs.push({name:o.name,id:o.id,originalId:o.originalId})}else t[n]=r;return t};var d0=(e,t)=>{let{item:n}=t;if(n.type==="item"&&n.component?.id&&t.parent?.item.id){let r=e.comps[n.component.id];if(e.on?.visit_component&&e.on.visit_component(n,t.root||t.item),!r)return;if(r){let o;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),o=n.component.instances):o=t.parent?.root_instances,o){let s=o[n.id];o[n.id]||(o[n.id]={},s=o[n.id]),u0({item:n,item_comp:r,ids:s})}let i={item:ll(n),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:o};e.on?.visit&&e.on.visit(i,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=i),f0({item:n,item_comp:r,instance:o?o[n.id]:{},each(s,l){let a=n.component?.id;l.meta?.type==="content-element"&&a&&l.content&&(l.content.name=s,Ir({...e},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:a,name:s},parent:{item:i.item,instance_id:n.id,comp:r,root_instances:o}}))}});for(let s of Object.values(n.childs))s?.name?.startsWith("jsx:")||s&&Object.keys(s).length>3&&Ir({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:o,comp:r}})}}};var Ir=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){d0(e,t);return}let r={item:ll(n),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(r.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(r,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[r.item.id]=r),n.childs){for(let[o,i]of Object.entries(n.childs))if(i.id){let s={item:i,is_root:!1,root:t.root||t.item,parent:{item:r.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(s.jsx_prop={...t.jsx_prop,is_root:!1}),Ir(e,s)}}};var FS=()=>new Promise(async e=>{let t=!1,n=await(await fetch(k.url`_prasi/route`)).json();t||e(n)}),p0=async()=>{let e=Ms(),t=[];try{let n=await FS();if(n&&n.site&&n.urls){n.layout&&(k.layout.id=n.layout.id,k.layout.root=n.layout.root,k.layout.meta={},k.layout.root&&(await Sr(k.layout.root.childs),al(k.layout.meta,k.layout.root))),k.site=n.site,k.site.code={mode:"vsc"},await DS(),k.site.api=n0(k.site.api_url),k.site.db=l0(k.site.api_url);let r=window;r.serverurl=k.site.api_url,r.db=k.site.db,r.api=k.site.api;for(let o of n.urls)e.insert(o.url,o),t.push(o)}}catch{}return{router:e,pages:t}},DS=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=k.site.api_url;try{new URL(r)}catch{location.hostname==="localhost"?r="http://localhost:4550":r="https://prasi.avolut.com"}localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let o=localStorage.getItem("api-ts-"+r);n.src=`${r}/_prasi/load.js?url=${r}&v3&ts=${o}`,document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),al=(e,t)=>{for(let n of t.childs)Ir({set_meta:!0,comps:k.comp.list,meta:e,mode:"page"},{item:n})};var re=window;var jt=O(V()),Hc=()=>location.hostname.split(".").length===4||location.hostname==="prasi.app"||location.hostname==="prasi.avolut.com"||location.hostname.includes("ngrok")||location.hostname==="localhost"||location.hostname==="127.0.0.1"||location.hostname==="10.0.2.2",h0=()=>{let e=sn({page_id:""}),[t,n]=(0,m0.useState)({}),r=()=>n({});re.prasiContext.render=r;let o=Wu.Provider,i=Hc()&&location.pathname.startsWith("/prod");if(k.route.status!=="ready")return k.route.status==="init"&&(k.route.status="loading",p0().then(async({router:u,pages:c})=>{Yy(),k.route.status="ready",k.route.router=u,k.route.pages=c;let d=re._prasi.basepath,y=`${d.endsWith("/")?d:`${d}/`}_prasi/code/index.js`,h=new URL(location.href);y.startsWith("/")&&(y=`${h.protocol}//${h.host}${y}`);let g=new Function("callback",`import("${y}").then(callback)`);await new Promise(S=>{g(m=>{for(let[p,v]of Object.entries(m))re[p]=v;S()})}),r()})),(0,jt.jsx)(Lo,{});let s=k.route.router;if(!s)return(0,jt.jsx)(Zu,{children:"Failed to create Router"});let l="";if(i){let u=location.pathname.split("/");Yu(u[3])&&(l=u[3])}let a=null;if(re._prasi.page_id)s.insert(k.pathname,{id:re._prasi.page_id,url:k.pathname}),a={id:re._prasi.page_id,url:"",params:re._prasi.params},re._prasi.routed={page_id:re._prasi.page_id,params:re._prasi.params},delete re._prasi.page_id,delete re._prasi.params;else{if(a=s.lookup(k.pathname),l){let u=k.route.pages.find(c=>l===c.id);u&&(a=u)}a&&re._prasi.routed&&re._prasi.routed.page_id===a.id&&re._prasi.routed.params&&(a.params=re._prasi.routed.params)}if(!a)return(0,jt.jsx)(Zu,{children:"Page Not Found"});a.id!==e.page_id&&(k.init_local_effect={}),re.params=a.params||{},k.page.id=a.id,k.page.url=a.url;let f=k.page.cache[a.id];if(f)k.page.root=f.root,k.page.meta=f.meta;else return Qy(a.id).then(async({root:u})=>{if(a){let c={id:a.id,url:a.url,root:u,meta:{}};await Sr(u.childs),al(c.meta,u),k.page.cache[c.id]=c,r()}}).catch(()=>{r()}),(0,jt.jsx)(Lo,{note:"Loading page"});return(0,jt.jsx)(o,{value:re.prasiContext,children:(0,jt.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,jt.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",k.mode==="mobile"?css` + - `)}`);return}let c=u.apiEntry[s].url,d=u.apiEntry[s].args;if(c&&d){if(l.length>0&&d.length>0)for(let[g,S]of Object.entries(l)){let m=d[parseInt(g)];d&&d.includes(m)&&S&&typeof S!="string"&&typeof S!="number"||(c=c.replace(`:${m}?`,S+""),c=c.replace(`:${m}`,S+""))}let y=`${n}${c}`,h=await s0(y,l);a(h)}else console.error(`API Not Found: ${s.toString()}`)}else f("Failed to load API [Proxy]: "+n)}catch(u){f(u)}})};return o==="then"?new Proxy({},{get:(s,l)=>i(l)}):i(o)}})}catch{return null}},s0=async(e,t)=>await Tr(e,t,{"content-type":"application/json"});var f0=P(c0());var d0=e=>{let t="";return new Proxy({},{get(n,r){return r==="_batch"?{update:async o=>Nr({name:t,action:"batch_update",table:"",params:{batch:o}},e)}:r==="_schema"?{tables:async()=>Nr({name:t,action:"schema_tables",table:"",params:[]},e),columns:async o=>Nr({name:t,action:"schema_columns",table:o,params:[]},e),rels:async o=>Nr({name:t,action:"schema_rels",table:o,params:[]},e)}:r.startsWith("$")?(...o)=>Nr({name:t,action:"query",table:r,params:o},e):new Proxy({},{get(o,i){return async(...s)=>(r==="query"&&(r=i,i="query"),await Nr({name:t,action:i,table:r,params:s},e))}})}})},ul={},Nr=async(e,t)=>{try{let n=new URL(t);n.pathname="/_dbs",e.table&&(n.pathname+=`/${e.table}`);let r=n.toString(),o=(0,f0.default)(e),i=ul[o];if(!i||i&&Date.now()-i.timestamp>1e3){ul[o]={timestamp:Date.now(),promise:Tr(r,e,{"content-type":"application/json"}),result:null};let s=await ul[o].promise;return ul[o].result=s,s}return await i.promise}catch{}};var p0=P(dc());var m0=e=>{let{item:t,item_comp:n,ids:r}=e,o=un(n);if(h0(o,r),t.id&&(o.id=t.id),o.hidden=t.hidden,o.component){if(o.component.props&&t.component)for(let i of Object.keys(o.component.props)){let s=t.component.props[i],l=o.component.props[i];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}o.component.instances=t.component?.instances,o.component.style=t.component?.style}for(let i of Object.keys(t))delete t[i];for(let[i,s]of Object.entries(o))t[i]=s},h0=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,p0.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)h0(n,t)};var y0=e=>{let t=Object.entries(e.item_comp.component?.props||{}).sort((n,r)=>n[1].idx-r[1].idx);for(let[n,r]of t){let o=un(r),i=e.item.component?.props;i&&i[n]&&(o.value=i[n].value,o.valueBuilt=i[n].valueBuilt,i[n].content&&(o.content=i[n].content)),o&&e.each(n,o)}};var cl=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let o of r)o.type==="item"&&o.component?t.childs.push(o):t.childs.push({name:o.name,id:o.id,originalId:o.originalId})}else t[n]=r;return t};var g0=(e,t)=>{let{item:n}=t;if(n.type==="item"&&n.component?.id&&t.parent?.item.id){let r=e.comps[n.component.id];if(e.on?.visit_component&&e.on.visit_component(n,t.root||t.item),!r)return;if(r){let o;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),o=n.component.instances):o=t.parent?.root_instances,o){let s=o[n.id];o[n.id]||(o[n.id]={},s=o[n.id]),m0({item:n,item_comp:r,ids:s})}let i={item:cl(n),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:o};e.on?.visit&&e.on.visit(i,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=i),y0({item:n,item_comp:r,instance:o?o[n.id]:{},each(s,l){let a=n.component?.id;l.meta?.type==="content-element"&&a&&l.content&&(l.content.name=s,br({...e},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:a,name:s},parent:{item:i.item,instance_id:n.id,comp:r,root_instances:o}}))}});for(let s of Object.values(n.childs))s?.name?.startsWith("jsx:")||s&&Object.keys(s).length>3&&br({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:o,comp:r}})}}};var br=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){g0(e,t);return}let r={item:cl(n),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(r.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(r,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[r.item.id]=r),n.childs){for(let[o,i]of Object.entries(n.childs))if(i.id){let s={item:i,is_root:!1,root:t.root||t.item,parent:{item:r.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(s.jsx_prop={...t.jsx_prop,is_root:!1}),br(e,s)}}};var VS=()=>new Promise(async e=>{let t=!1,n=await(await fetch(k.url`_prasi/route`)).json();t||e(n)}),v0=async()=>{let e=Ds(),t=[];try{let n=await VS();if(n&&n.site&&n.urls){n.layout&&(k.layout.id=n.layout.id,k.layout.root=n.layout.root,k.layout.meta={},k.layout.root&&(await Er(k.layout.root.childs),fl(k.layout.meta,k.layout.root))),k.site=n.site,k.site.code={mode:"vsc"},await $S(),k.site.api=l0(k.site.api_url),k.site.db=d0(k.site.api_url);let r=window;r.serverurl=k.site.api_url,r.db=k.site.db,r.api=k.site.api;for(let o of n.urls)e.insert(o.url,o),t.push(o)}}catch{}return{router:e,pages:t}},$S=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=k.site.api_url;try{new URL(r)}catch{location.hostname==="localhost"?r="http://localhost:4550":r="https://prasi.avolut.com"}localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let o=localStorage.getItem("api-ts-"+r);n.src=`${r}/_prasi/load.js?url=${r}&v3&ts=${o}`,document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),fl=(e,t)=>{for(let n of t.childs)br({set_meta:!0,comps:k.comp.list,meta:e,mode:"page"},{item:n})};var re=window;var jt=P(V()),Yc=()=>location.hostname.split(".").length===4||location.hostname==="prasi.app"||location.hostname==="prasi.avolut.com"||location.hostname.includes("ngrok")||location.hostname==="localhost"||location.hostname==="127.0.0.1"||location.hostname==="10.0.2.2",x0=()=>{let e=sn({page_id:""}),[t,n]=(0,w0.useState)({}),r=()=>n({});re.prasiContext.render=r;let o=Ku.Provider,i=Yc()&&location.pathname.startsWith("/prod");if(k.route.status!=="ready")return k.route.status==="init"&&(k.route.status="loading",v0().then(async({router:u,pages:c})=>{rg(),k.route.status="ready",k.route.router=u,k.route.pages=c;let d=re._prasi.basepath,y=`${d.endsWith("/")?d:`${d}/`}_prasi/code/index.js`,h=new URL(location.href);y.startsWith("/")&&(y=`${h.protocol}//${h.host}${y}`);let g=new Function("callback",`import("${y}").then(callback)`);await new Promise(S=>{g(m=>{for(let[p,v]of Object.entries(m))re[p]=v;S()})}),r()})),(0,jt.jsx)(Ao,{});let s=k.route.router;if(!s)return(0,jt.jsx)(nc,{children:"Failed to create Router"});let l="";if(i){let u=location.pathname.split("/");tc(u[3])&&(l=u[3])}let a=null;if(re._prasi.page_id)s.insert(k.pathname,{id:re._prasi.page_id,url:k.pathname}),a={id:re._prasi.page_id,url:"",params:re._prasi.params},re._prasi.routed={page_id:re._prasi.page_id,params:re._prasi.params},delete re._prasi.page_id,delete re._prasi.params;else{if(a=s.lookup(k.pathname),l){let u=k.route.pages.find(c=>l===c.id);u&&(a=u)}a&&re._prasi.routed&&re._prasi.routed.page_id===a.id&&re._prasi.routed.params&&(a.params=re._prasi.routed.params)}if(!a)return(0,jt.jsx)(nc,{children:"Page Not Found"});a.id!==e.page_id&&(k.init_local_effect={}),re.params=a.params||{},k.page.id=a.id,k.page.url=a.url;let f=k.page.cache[a.id];if(f)k.page.root=f.root,k.page.meta=f.meta;else return Zy(a.id).then(async({root:u})=>{if(a){let c={id:a.id,url:a.url,root:u,meta:{}};await Er(u.childs),fl(c.meta,u),k.page.cache[c.id]=c,r()}}).catch(()=>{r()}),(0,jt.jsx)(Ao,{note:"Loading page"});return(0,jt.jsx)(o,{value:re.prasiContext,children:(0,jt.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,jt.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",k.mode==="mobile"?css` @media (min-width: 768px) { border-left: 1px solid #ccc; border-right: 1px solid #ccc; @@ -129,7 +129,7 @@ ${u} } `:"inset-0 overflow-auto",css` contain: content; - `),children:(0,jt.jsx)(Gy,{api_url:k.site.api_url,entry:Object.values(k.page.root.childs).filter(u=>u).map(u=>u.id),meta:k.page.meta,mode:k.mode,page_id:k.page.id,site_id:k.site.id,db:k.site.db,api:k.site.api,comp_load:async u=>{let c=k.comp;if(c.list[u])return c.list[u];try{let d=await(await fetch(k.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[u]})})).json();for(let[y,h]of Object.entries(d))c.pending.delete(y),c.list[y]=h,await bs(`comp-${y}`,h)}catch{}return c.list[u]},layout:k.layout.id&&k.layout.root&&k.layout.meta?{id:k.layout.id,meta:k.layout.meta,entry:Object.values(k.layout.root.childs).filter(u=>u).map(u=>u.id)}:void 0,script:{init_local_effect:k.init_local_effect},on_preload:async({urls:u,opt:c})=>{let d=[],y={};if(k.cache.urls)for(let h of u)k.cache.urls.has(h)||(d.push(h),k.cache.urls.add(h));if(d.length>0){let h=await qy(d);if(c?.on_load&&c.on_load(h,zS),Array.isArray(h))for(let g of h){let S={id:g.id,url:g.url,root:g.root,meta:{}};await Sr(g.root.childs),al(S.meta,g.root),k.page.cache[S.id]=S}}}})})})})},zS=(e,t)=>{for(let n of e)for(let r of n.root.childs)$c(r,t)},$c=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&$c(n.content,t);for(let n of e.childs)$c(n,t)}};var g0=O(V());(async()=>{Ky();let e=document.getElementById("root");if(e){let t=(0,y0.createRoot)(e);await Wh(!1),Bh(),re.navigateOverride=n=>(n&&n.startsWith("/")&&Hc()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.render((0,g0.jsx)(h0,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); + `),children:(0,jt.jsx)(Jy,{api_url:k.site.api_url,entry:Object.values(k.page.root.childs).filter(u=>u).map(u=>u.id),meta:k.page.meta,mode:k.mode,page_id:k.page.id,site_id:k.site.id,db:k.site.db,api:k.site.api,comp_load:async u=>{let c=k.comp;if(c.list[u])return c.list[u];try{let d=await(await fetch(k.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[u]})})).json();for(let[y,h]of Object.entries(d))c.pending.delete(y),c.list[y]=h,await Ms(`comp-${y}`,h)}catch{}return c.list[u]},layout:k.layout.id&&k.layout.root&&k.layout.meta?{id:k.layout.id,meta:k.layout.meta,entry:Object.values(k.layout.root.childs).filter(u=>u).map(u=>u.id)}:void 0,script:{init_local_effect:k.init_local_effect},on_preload:async({urls:u,opt:c})=>{let d=[],y={};if(k.cache.urls)for(let h of u)k.cache.urls.has(h)||(d.push(h),k.cache.urls.add(h));if(d.length>0){let h=await eg(d);if(c?.on_load&&c.on_load(h,HS),Array.isArray(h))for(let g of h){let S={id:g.id,url:g.url,root:g.root,meta:{}};await Er(g.root.childs),fl(S.meta,g.root),k.page.cache[S.id]=S}}}})})})})},HS=(e,t)=>{for(let n of e)for(let r of n.root.childs)Kc(r,t)},Kc=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&Kc(n.content,t);for(let n of e.childs)Kc(n,t)}};var S0=P(V());(async()=>{Xy();let e=document.getElementById("root");if(e){let t=(0,_0.createRoot)(e);await qh(!1),Wh(),re.navigateOverride=n=>(n&&n.startsWith("/")&&Yc()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.render((0,S0.jsx)(x0,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); /*! Bundled license information: react/cjs/react.production.min.js: diff --git a/app/web/src/nova/vi/render/script/eval-script.tsx b/app/web/src/nova/vi/render/script/eval-script.tsx index 2e4b289a..bc94fb13 100644 --- a/app/web/src/nova/vi/render/script/eval-script.tsx +++ b/app/web/src/nova/vi/render/script/eval-script.tsx @@ -9,6 +9,7 @@ import { updatePropScope } from "./eval-prop"; import { extractNavigate } from "./extract-nav"; import { createViLocal } from "./local"; import { createViPassProp } from "./passprop"; +import { isValid } from "date-fns"; export const viEvalScript = ( vi: { page: VG["page"]; @@ -57,9 +58,13 @@ export const viEvalScript = ( if (isValidElement(jsx) && jsx.props.children) { if (Array.isArray(jsx.props.children)) { const childs = jsx.props.children.filter((e: any) => e); + let replace_child = false; if (childs.length > 1) { let new_childs = []; for (const child of childs) { + if (isValid(child) && child.type === meta.script?.PassProp) { + replace_child = true; + } if (!child.key) { console.warn( `No key prop in item: ${meta.item.name}`, @@ -73,7 +78,12 @@ export const viEvalScript = ( }); } } - result = { ...jsx, props: { ...jsx.props, children: new_childs } }; + if (replace_child) { + result = { + ...jsx, + props: { ...jsx.props, children: new_childs }, + }; + } } } }