vendor: 6,225 bytes, lines 1-9
1var Zg=e=>{throw TypeError(e)};var Hd=(e,t,r)=>t.has(e)||Zg("Cannot "+r);var j=(e,t,r)=>(Hd(e,t,"read from private field"),r?r.call(e):t.get(e)),we=(e,t,r)=>t.has(e)?Zg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),se=(e,t,r,o)=>(Hd(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),Te=(e,t,r)=>(Hd(e,t,"access private method"),r);var Ml=(e,t,r,o)=>({set _(i){se(e,t,i,r)},get _(){return j(e,t,o)}});function eE(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(o,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>o[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(i){if(i.ep)return;i.ep=!0;const l=r(i);fetch(i.href,l)}})();function ph(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qd={exports:{}},qi={},Qd={exports:{}},Me={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var ey;function tE(){if(ey)return Me;ey=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=v&&A[v]||A["@@iterator"],typeof A=="function"?A:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function S(A,V,de){this.props=A,this.context=V,this.refs=w,this.updater=de||k}S.prototype.isReactComponent={},S.prototype.setState=function(A,V){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,V,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function N(){}N.prototype=S.prototype;function T(A,V,de){this.props=A,this.context=V,this.refs=w,this.updater=de||k}var P=T.prototype=new N;P.constructor=T,C(P,S.prototype),P.isPureReactComponent=!0;var _=Array.isArray,F=Object.prototype.hasOwnProperty,H={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function W(A,V,de){var ce,Ne={},Pe=null,X=null;if(V!=null)for(ce in V.ref!==void 0&&(X=V.ref),V.key!==void 0&&(Pe=""+V.key),V)F.call(V,ce)&&!$.hasOwnProperty(ce)&&(Ne[ce]=V[ce]);var ge=arguments.length-2;if(ge===1)Ne.children=de;else if(1<ge){for(var I=Array(ge),te=0;te<ge;te++)I[te]=arguments[te+2];Ne.children=I}if(A&&A.defaultProps)for(ce in ge=A.defaultProps,ge)Ne[ce]===void 0&&(Ne[ce]=ge[ce]);return{$$typeof:e,type:A,key:Pe,ref:X,props:Ne,_owner:H.current}}function oe(A,V){return{$$typeof:e,type:A.type,key:V,ref:A.ref,props:A.props,_owner:A._owner}}function K(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function ue(A){var V={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(de){return V[de]})}var ie=/\/+/g;function ne(A,V){return typeof A=="object"&&A!==null&&A.key!=null?ue(""+A.key):V.toString(36)}function ae(A,V,de,ce,Ne){var Pe=typeof A;(Pe==="undefined"||Pe==="boolean")&&(A=null);var X=!1;if(A===null)X=!0;else switch(Pe){case"string":case"number":X=!0;break;case"object":switch(A.$$typeof){case e:case t:X=!0}}if(X)return X=A,Ne=Ne(X),A=ce===""?"."+ne(X,0):ce,_(Ne)?(de="",A!=null&&(de=A.replace(ie,"$&/")+"/"),ae(Ne,V,de,"",function(te){return te})):Ne!=null&&(K(Ne)&&(Ne=oe(Ne,de+(!Ne.key||X&&X.key===Ne.key?"":(""+Ne.key).replace(ie,"$&/")+"/")+A)),V.push(Ne)),1;if(X=0,ce=ce===""?".":ce+":",_(A))for(var ge=0;ge<A.length;ge++){Pe=A[ge];var I=ce+ne(Pe,ge);X+=ae(Pe,V,de,I,Ne)}else if(I=E(A),typeof I=="function")for(A=I.call(A),ge=0;!(Pe=A.next()).done;)Pe=Pe.value,I=ce+ne(Pe,ge++),X+=ae(Pe,V,de,I,Ne);else if(Pe==="object")throw V=String(A),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return X}function xe(A,V,de){if(A==null)return A;var ce=[],Ne=0;return ae(A,ce,"","",function(Pe){return V.call(de,Pe,Ne++)}),ce}function G(A){if(A._status===-1){var V=A._result;V=V(),V.then(function(de){(A._status===0||A._status===-1)&&(A._status=1,A._result=de)},function(de){(A._status===0||A._status===-1)&&(A._status=2,A._result=de)}),A._status===-1&&(A._status=0,A._result=V)}if(A._status===1)return A._result.default;throw A._result}var re={current:null},D={transition:null},ee={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:D,ReactCurrentOwner:H};function J(){throw Error("act(...) is not supported in production builds of React.")}return Me.Children={map:xe,forEach:function(A,V,de){xe(A,function(){V.apply(this,arguments)},de)},count:function(A){var V=0;return xe(A,function(){V++}),V},toArray:function(A){return xe(A,function(V){return V})||[]},only:function(A){if(!K(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Me.Component=S,Me.Fragment=r,Me.Profiler=i,Me.PureComponent=T,Me.StrictMode=o,Me.Suspense=p,Me.__SECRET_INT
vendor: 9,320 bytes, lines 9-33
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Me.act=J,Me.cloneElement=function(A,V,de){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ce=C({},A.props),Ne=A.key,Pe=A.ref,X=A._owner;if(V!=null){if(V.ref!==void 0&&(Pe=V.ref,X=H.current),V.key!==void 0&&(Ne=""+V.key),A.type&&A.type.defaultProps)var ge=A.type.defaultProps;for(I in V)F.call(V,I)&&!$.hasOwnProperty(I)&&(ce[I]=V[I]===void 0&&ge!==void 0?ge[I]:V[I])}var I=arguments.length-2;if(I===1)ce.children=de;else if(1<I){ge=Array(I);for(var te=0;te<I;te++)ge[te]=arguments[te+2];ce.children=ge}return{$$typeof:e,type:A.type,key:Ne,ref:Pe,props:ce,_owner:X}},Me.createContext=function(A){return A={$$typeof:u,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:l,_context:A},A.Consumer=A},Me.createElement=W,Me.createFactory=function(A){var V=W.bind(null,A);return V.type=A,V},Me.createRef=function(){return{current:null}},Me.forwardRef=function(A){return{$$typeof:f,render:A}},Me.isValidElement=K,Me.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:G}},Me.memo=function(A,V){return{$$typeof:g,type:A,compare:V===void 0?null:V}},Me.startTransition=function(A){var V=D.transition;D.transition={};try{A()}finally{D.transition=V}},Me.unstable_act=J,Me.useCallback=function(A,V){return re.current.useCallback(A,V)},Me.useContext=function(A){return re.current.useContext(A)},Me.useDebugValue=function(){},Me.useDeferredValue=function(A){return re.current.useDeferredValue(A)},Me.useEffect=function(A,V){return re.current.useEffect(A,V)},Me.useId=function(){return re.current.useId()},Me.useImperativeHandle=function(A,V,de){return re.current.useImperativeHandle(A,V,de)},Me.useInsertionEffect=function(A,V){return re.current.useInsertionEffect(A,V)},Me.useLayoutEffect=function(A,V){return re.current.useLayoutEffect(A,V)},Me.useMemo=function(A,V){return re.current.useMemo(A,V)},Me.useReducer=function(A,V,de){return re.current.useReducer(A,V,de)},Me.useRef=function(A){return re.current.useRef(A)},Me.useState=function(A){return re.current.useState(A)},Me.useSyncExternalStore=function(A,V,de){return re.current.useSyncExternalStore(A,V,de)},Me.useTransition=function(){return re.current.useTransition()},Me.version="18.3.1",Me}var ty;function mh(){return ty||(ty=1,Qd.exports=tE()),Qd.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var ny;function nE(){if(ny)return qi;ny=1;var e=mh(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,p,g){var y,v={},E=null,k=null;g!==void 0&&(E=""+g),p.key!==void 0&&(E=""+p.key),p.ref!==void 0&&(k=p.ref);for(y in p)o.call(p,y)&&!l.hasOwnProperty(y)&&(v[y]=p[y]);if(f&&f.defaultProps)for(y in p=f.defaultProps,p)v[y]===void 0&&(v[y]=p[y]);return{$$typeof:t,type:f,key:E,ref:k,props:v,_owner:i.current}}return qi.Fragment=r,qi.jsx=u,qi.jsxs=u,qi}var ry;function rE(){return ry||(ry=1,qd.exports=nE()),qd.exports}var d=rE(),x=mh();const $r=ph(x),gh=eE({__proto__:null,default:$r},[x]);var Dl={},Kd={exports:{}},Ut={},Yd={exports:{}},Gd={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var sy;function sE(){return sy||(sy=1,(function(e){function t(D,ee){var J=D.length;D.push(ee);e:for(;0<J;){var A=J-1>>>1,V=D[A];if(0<i(V,ee))D[A]=ee,D[J]=V,J=A;else break e}}function r(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var ee=D[0],J=D.pop();if(J!==ee){D[0]=J;e:for(var A=0,V=D.length,de=V>>>1;A<de;){var ce=2*(A+1)-1,Ne=D[ce],Pe=ce+1,X=D[Pe];if(0>i(Ne,J))Pe<V&&0>i(X,Ne)?(D[A]=X,D[Pe]=J,A=Pe):(D[A]=Ne,D[ce]=J,A=ce);else if(Pe<V&&0>i(X,J))D[A]=X,D[Pe]=J,A=Pe;else break e}}return ee}function i(D,ee){var J=D.sortIndex-ee.sortIndex;return J!==0?J:D.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],g=[],y=1,v=null,E=3,k=!1,C=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(D){for(var ee=r(g);ee!==null;){if(ee.callback===null)o(g);else if(ee.startTime<=D)o(g),ee.sortIndex=ee.expirationTime,t(p,ee);else break;ee=r(g)}}function _(D){if(w=!1,P(D),!C)if(r(p)!==null)C=!0,G(F);else{var ee=r(g);ee!==null&&re(_,ee.startTime-D)}}function F(D,ee){C=!1,w&&(w=!1,N(W),W=-1),k=!0;var J=E;try{for(P(ee),v=r(p);v!==null&&(!(v.expirationTime>ee)||D&&!ue());){var A=v.callback;if(typeof A=="function"){v.callback=null,E=v.priorityLevel;var V=A(v.expirationTime<=ee);ee=e.unstable_now(),typeof V=="function"?v.callback=V:v===r(p)&&o(p),P(ee)}else o(p);v=r(p)}if(v!==null)var de=!0;else{var ce=r(g);ce!==null&&re(_,ce.startTime-ee),de=!1}return de}finally{v=null,E=J,k=!1}}var H=!1,$=null,W=-1,oe=5,K=-1;function ue(){return!(e.unstable_now()-K<oe)}function ie(){if($!==null){var D=e.unstable_now();K=D;var ee=!0;try{ee=$(!0,D)}finally{ee?ne():(H=!1,$=null)}}else H=!1}var ne;if(typeof T=="function")ne=function(){T(ie)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,xe=ae.port2;ae.port1.onmessage=ie,ne=function(){xe.postMessage(null)}}else ne=function(){S(ie,0)};function G(D){$=D,H||(H=!0,ne())}function re(D,ee){W=S(function(){D(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){C||k||(C=!0,G(F))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(D){switch(E){case 1:case 2:case 3:var ee=3;break;default:ee=E}var J=E;E=ee;try{return D()}finally{E=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,ee){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=E;E=D;try{return ee()}finally{E=J}},e.unstable_scheduleCallback=function(D,ee,J){var A=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?A+J:A):J=A,D){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=J+V,D={id:y++,callback:ee,priorityLevel:D,startTime:J,expirationTime:V,sortIndex:-1},J>A?(D.sortIndex=J,t(g,D),r(p)===null&&D===r(g)&&(w?(N(W),W=-1):w=!0,re(_,J-A))):(D.sortIndex=V,t(p,D),C||k||(C=!0,G(F))),D},e.unstable_shouldYield=ue,e.unstable_wrapCallback=function(D){var ee=E;return function(){var J=E;E=ee;try{return D.apply(this,arguments)}finally{E=J}}}})(Gd)),Gd}var oy;function oE(){return oy||(oy=1,Yd.exports=sE()),Yd.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var iy;function iE(){if(iy)return Ut;iy=1;var e=mh(),t=oE();function r(n){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,i={};function l(n,s){u(n,s),u(n+"Capture",s)}function u(n,s){for(i[n]=s,n=0;n<s.length;n++)o.add(s[n])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[: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]*$/,y={},v={};function E(n){return p.call(v,n)?!0:p.call(y,n)?!1:g.test(n)?v[n]=!0:(y[n]=!0,!1)}function k(n,s,a,c){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function C(n,s,a,c){if(s===null||typeof s>"u"||k(n,s,a,c))return!0;
vendor: 45,295 bytes, lines 33-38
33if(c)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function w(n,s,a,c,h,m,b){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=n,this.type=s,this.sanitizeURL=m,this.removeEmptyString=b}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){S[n]=new w(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var s=n[0];S[s]=new w(s,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){S[n]=new w(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){S[n]=new w(n,2,!1,n,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(n){S[n]=new w(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){S[n]=new w(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){S[n]=new w(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){S[n]=new w(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){S[n]=new w(n,5,!1,n.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function T(n){return n[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(n){var s=n.replace(N,T);S[s]=new w(s,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var s=n.replace(N,T);S[s]=new w(s,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var s=n.replace(N,T);S[s]=new w(s,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){S[n]=new w(n,1,!1,n.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){S[n]=new w(n,1,!1,n.toLowerCase(),null,!0,!0)});function P(n,s,a,c){var h=S.hasOwnProperty(s)?S[s]:null;(h!==null?h.type!==0:c||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(C(s,a,h,c)&&(a=null),c||h===null?E(s)&&(a===null?n.removeAttribute(s):n.setAttribute(s,""+a)):h.mustUseProperty?n[h.propertyName]=a===null?h.type===3?!1:"":a:(s=h.attributeName,c=h.attributeNamespace,a===null?n.removeAttribute(s):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,c?n.setAttributeNS(c,s,a):n.setAttribute(s,a))))}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),H=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),ue=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),D=Symbol.iterator;function ee(n){return n===null||typeof n!="object"?null:(n=D&&n[D]||n["@@iterator"],typeof n=="function"?n:null)}var J=Object.assign,A;function V(n){if(A===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);A=s&&s[1]||""}return` 34`+A+n}var de=!1;function ce(n,s){if(!n||de)return"";de=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(U){var c=U}Reflect.construct(n,[],s)}else{try{s.call()}catch(U){c=U}n.call(s.prototype)}else{try{throw Error()}catch(U){c=U}n()}}catch(U){if(U&&c&&typeof U.stack=="string"){for(var h=U.stack.split(` 35`),m=c.stack.split(` 36`),b=h.length-1,R=m.length-1;1<=b&&0<=R&&h[b]!==m[R];)R--;for(;1<=b&&0<=R;b--,R--)if(h[b]!==m[R]){if(b!==1||R!==1)do if(b--,R--,0>R||h[b]!==m[R]){var O=` 37`+h[b].replace(" at new "," at ");return n.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",n.displayName)),O}while(1<=b&&0<=R);break}}}finally{de=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?V(n):""}function Ne(n){switch(n.tag){case 5:return V(n.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return n=ce(n.type,!1),n;case 11:return n=ce(n.type.render,!1),n;case 1:return n=ce(n.type,!0),n;default:return""}}function Pe(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case $:return"Fragment";case H:return"Portal";case oe:return"Profiler";case W:return"StrictMode";case ne:return"Suspense";case ae:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ue:return(n.displayName||"Context")+".Consumer";case K:return(n._context.displayName||"Context")+".Provider";case ie:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case xe:return s=n.displayName||null,s!==null?s:Pe(n.type)||"Memo";case G:s=n._payload,n=n._init;try{return Pe(n(s))}catch{}}return null}function X(n){var s=n.type;switch(n.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=s.render,n=n.displayName||n.name||"",s.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(s);case 8:return s===W?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ge(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function I(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function te(n){var s=I(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,s),c=""+n[s];if(!n.hasOwnProperty(s)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,m=a.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return h.call(this)},set:function(b){c=""+b,m.call(this,b)}}),Object.defineProperty(n,s,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function Ee(n){n._valueTracker||(n._valueTracker=te(n))}function Ae(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return n&&(c=I(n)?n.checked?"true":"false":n.value),n=c,n!==a?(s.setValue(n),!0):!1}function ht(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Dt(n,s){var a=s.checked;return J({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked})}function gr(n,s){var a=s.defaultValue==null?"":s.defaultValue,c=s.checked!=null?s.checked:s.defaultChecked;a=ge(s.value!=null?s.value:a),n._wrapperState={initialChecked:c,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function yr(n,s){s=s.checked,s!=null&&P(n,"checked",s,!1)}function Qn(n,s){yr(n,s);var a=ge(s.value),c=s.type;if(a!=null)c==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+a):n.value!==""+a&&(n.value=""+a);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}s.hasOwnProperty("value")?vr(n,s.type,a):s.hasOwnProperty("defaultValue")&&vr(n,s.type,ge(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(n.defaultChecked=!!s.defaultChecked)}function Na(n,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var c=s.type;if(!(c!=="submit"&&c!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+n._wrapperState.initialValue,a||s===n.value||(n.value=s),n.defaultValue=s}a=n.name,a!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,a!==""&&(n.name=a)}function vr(n,s,a){(s!=="number"||ht(n.ownerDocument)!==n)&&(a==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+a&&(n.defaultValue=""+a))}var ai=Array.isArray;function Zs(n,s,a,c){if(n=n.options,s){s={};for(var h=0;h<a.length;h++)s["$"+a[h]]=!0;for(a=0;a<n.length;a++)h=s.hasOwnProperty("$"+n[a].value),n[a].selected!==h&&(n[a].selected=h),h&&c&&(n[a].defaultSelected=!0)}else{for(a=""+ge(a),s=null,h=0;h<n.length;h++){if(n[h].value===a){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}s!==null||n[h].disabled||(s=n[h])}s!==null&&(s.selected=!0)}}function tu(n,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return J({},s,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function cp(n,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(r(92));if(ai(a)){if(1<a.length)throw Error(r(93));a=a[0]}s=a}s==null&&(s=""),a=s}n._wrapperState={initialValue:ge(a)}}function up(n,s){var a=ge(s.value),c=ge(s.defaultValue);a!=null&&(a=""+a,a!==n.value&&(n.value=a),s.defaultValue==null&&n.defaultValue!==a&&(n.defaultValue=a)),c!=null&&(n.defaultValue=""+c)}function dp(n){var s=n.textContent;s===n._wrapperState.initialValue&&s!==""&&s!==null&&(n.value=s)}function fp(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nu(n,s){return n==null||n==="http://www.w3.org/1999/xhtml"?fp(s):n==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var ka,hp=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,a,c,h){MSApp.execUnsafeLocalFunction(function(){return n(s,a,c,h)})}:n})(function(n,s){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=s;else{for(ka=ka||document.createElement("div"),ka.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=ka.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;s.firstChild;)n.appendChild(s.firstChild)}});function li(n,s){if(s){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=s;return}}n.textContent=s}var ci={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},s1=["Webkit","ms","Moz","O"];Object.keys(ci).forEach(function(n){s1.forEach(function(s){s=s+n.charAt(0).toUpperCase()+n.substring(1),ci[s]=ci[n]})});function pp(n,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||ci.hasOwnProperty(n)&&ci[n]?(""+s).trim():s+"px"}function mp(n,s){n=n.style;for(var a in s)if(s.hasOwnProperty(a)){var c=a.indexOf("--")===0,h=pp(a,s[a],c);a==="float"&&(a="cssFloat"),c?n.setProperty(a,h):n[a]=h}}var o1=J({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 ru(n,s){if(s){if(o1[n]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function su(n,s){if(n.indexOf("-")===-1)return typeof s.is=="string";switch(n){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 ou=null;function iu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var au=null,eo=null,to=null;function gp(n){if(n=ji(n)){if(typeof au!="function")throw Error(r(280));var s=n.stateNode;s&&(s=Ya(s),au(n.stateNode,n.type,s))}}function yp(n){eo?to?to.push(n):to=[n]:eo=n}function vp(){if(eo){var n=eo,s=to;if(to=eo=null,gp(n),s)for(n=0;n<s.length;n++)gp(s[n])}}function xp(n,s){return n(s)}function wp(){}var lu=!1;function bp(n,s,a){if(lu)return n(s,a);lu=!0;try{return xp(n,s,a)}finally{lu=!1,(eo!==null||to!==null)&&(wp(),vp())}}function ui(n,s){var a=n.stateNode;if(a===null)return null;var c=Ya(a);if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(r(231,s,typeof a));return a}var cu=!1;if(f)try{var di={};Object.defineProperty(di,"passive",{get:function(){cu=!0}}),window.addEventListener("test",di,di),window.removeEventListener("test",di,di)}catch{cu=!1}function i1(n,s,a,c,h,m,b,R,O){var U=Array.prototype.slice.call(arguments,3);try{s.apply(a,U)}catch(Q){this.onError(Q)}}var fi=!1,Pa=null,_a=!1,uu=null,a1={onError:function(n){fi=!0,Pa=n}};function l1(n,s,a,c,h,m,b,R,O){fi=!1,Pa=null,i1.apply(a1,arguments)}function c1(n,s,a,c,h,m,b,R,O){if(l1.apply(this,arguments),fi){if(fi){var U=Pa;fi=!1,Pa=null}else throw Error(r(198));_a||(_a=!0,uu=U)}}function hs(n){var s=n,a=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(a=s.return),n=s.return;while(n)}return s.tag===3?a:null}function Sp(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function Cp(n){if(hs(n)!==n)throw Error(r(188))}function u1(n){var s=n.alternate;if(!s){if(s=hs(n),s===null)throw Error(r(188));return s!==n?null:n}for(var a=n,c=s;;){var h=a.return;if(h===null)break;var m=h.alternate;if(m===null){if(c=h.return,c!==null){a=c;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===a)return Cp(h),n;if(m===c)return Cp(h),s;m=m.sibling}throw Error(r(188))}if(a.return!==c.return)a=h,c=m;else{for(var b=!1,R=h.child;R;){if(R===a){b=!0,a=h,c=m;break}if(R===c){b=!0,c=h,a=m;break}R=R.sibling}if(!b){for(R=m.child;R;){if(R===a){b=!0,a=m,c=h;break}if(R===c){b=!0,c=m,a=h;break}R=R.sibling}if(!b)throw Error(r(189))}}if(a.alternate!==c)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?n:s}function Ep(n){return n=u1(n),n!==null?Np(n):null}function Np(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var s=Np(n);if(s!==null)return s;n=n.sibling}return null}var kp=t.unstable_scheduleCallback,Pp=t.unstable_cancelCallback,d1=t.unstable_shouldYield,f1=t.unstable_requestPaint,rt=t.unstable_now,h1=t.unstable_getCurrentPriorityLevel,du=t.unstable_ImmediatePriority,_p=t.unstable_UserBlockingPriority,Ra=t.unstable_NormalPriority,p1=t.unstable_LowPriority,Rp=t.unstable_IdlePriority,Ta=null,_n=null;function m1(n){if(_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Ta,n,void 0,(n.current.flags&128)===128)}catch{}}var ln=Math.clz32?Math.clz32:v1,g1=Math.log,y1=Math.LN2;function v1(n){return n>>>=0,n===0?32:31-(g1(n)/y1|0)|0}var ja=64,Oa=4194304;function hi(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Aa(n,s){var a=n.pendingLanes;if(a===0)return 0;var c=0,h=n.suspendedLanes,m=n.pingedLanes,b=a&268435455;if(b!==0){var R=b&~h;R!==0?c=hi(R):(m&=b,m!==0&&(c=hi(m)))}else b=a&~h,b!==0?c=hi(b):m!==0&&(c=hi(m));if(c===0)return 0;if(s!==0&&s!==c&&(s&h)===0&&(h=c&-c,m=s&-s,h>=m||h===16&&(m&4194240)!==0))return s;if((c&4)!==0&&(c|=a&16),s=n.entangledLanes,s!==0)for(n=n.entanglements,s&=c;0<s;)a=31-ln(s),h=1<<a,c|=n[a],s&=~h;return c}function x1(n,s){switch(n){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function w1(n,s){for(var a=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,m=n.pendingLanes;0<m;){var b=31-ln(m),R=1<<b,O=h[b];O===-1?((R&a)===0||(R&c)!==0)&&(h[b]=x1(R,s)):O<=s&&(n.expiredLanes|=R),m&=~R}}function fu(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Tp(){var n=ja;return ja<<=1,(ja&4194240)===0&&(ja=64),n}function hu(n){for(var s=[],a=0;31>a;a++)s.push(n);return s}function pi(n,s,a){n.pendingLanes|=s,s!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,s=31-ln(s),n[s]=a}function b1(n,s){var a=n.pendingLanes&~s;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=s,n.mutableReadLanes&=s,n.entangledLanes&=s,s=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<a;){var h=31-ln(a),m=1<<h;s[h]=0,c[h]=-1,n[h]=-1,a&=~m}}function pu(n,s){var a=n.entangledLanes|=s;for(n=n.entanglements;a;){var c=31-ln(a),h=1<<c;h&s|n[c]&s&&(n[c]|=s),a&=~h}}var We=0;function jp(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Op,mu,Ap,Mp,Dp,gu=!1,Ma=[],xr=null,wr=null,br=null,mi=new Map,gi=new Map,Sr=[],S1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ip(n,s){switch(n){case"focusin":case"focusout":xr=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":br=null;break;case"pointerover":case"pointerout":mi.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":gi.delete(s.pointerId)}}function yi(n,s,a,c,h,m){return n===null||n.nativeEvent!==m?(n={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:m,targetContainers:[h]},s!==null&&(s=ji(s),s!==null&&mu(s)),n):(n.eventSystemFlags|=c,s=n.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),n)}function C1(n,s,a,c,h){switch(s){case"focusin":return xr=yi(xr,n,s,a,c,h),!0;case"dragenter":return wr=yi(wr,n,s,a,c,h),!0;case"mouseover":return br=yi(br,n,s,a,c,h),!0;case"pointerover":var m=h.pointerId;return mi.set(m,yi(mi.get(m)||null,n,s,a,c,h)),!0;case"gotpointercapture":return m=h.pointerId,gi.set(m,yi(gi.get(m)||null,n,s,a,c,h)),!0}return!1}function Lp(n){var s=ps(n.target);if(s!==null){var a=hs(s);if(a!==null){if(s=a.tag,s===13){if(s=Sp(a),s!==null){n.blockedOn=s,Dp(n.priority,function(){Ap(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Da(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var a=vu(n.domEventName,n.eventSystemFlags,s[0],n.nativeEvent);if(a===null){a=n.nativeEvent;var c=new a.constructor(a.type,a);ou=c,a.target.dispatchEvent(c),ou=null}else return s=ji(a),s!==null&&mu(s),n.blockedOn=a,!1;s.shift()}return!0}function Fp(n,s,a){Da(n)&&a.delete(s)}function E1(){gu=!1,xr!==null&&Da(xr)&&(xr=null),wr!==null&&Da(wr)&&(wr=null),br!==null&&Da(br)&&(br=null),mi.forEach(Fp),gi.forEach(Fp)}function vi(n,s){n.blockedOn===s&&(n.blockedOn=null,gu||(gu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,E1)))}function xi(n){function s(h){return vi(h,n)}if(0<Ma.length){vi(Ma[0],n);for(var a=1;a<Ma.length;a++){var c=Ma[a];c.blockedOn===n&&(c.blockedOn=null)}}for(xr!==null&&vi(xr,n),wr!==null&&vi(wr,n),br!==null&&vi(br,n),mi.forEach(s),gi.forEach(s),a=0;a<Sr.length;a++)c=Sr[a],c.blockedOn===n&&(c.blockedOn=null);for(;0<Sr.length&&(a=Sr[0],a.blockedOn===null);)Lp(a),a.blockedOn===null&&Sr.shift()}var no=_.ReactCurrentBatchConfig,Ia=!0;function N1(n,s,a,c){var h=We,m=no.transition;no.transition=null;try{We=1,yu(n,s,a,c)}finally{We=h,no.transition=m}}function k1(n,s,a,c){var h=We,m=no.transition;no.transition=null;try{We=4,yu(n,s,a,c)}finally{We=h,no.transition=m}}function yu(n,s,a,c){if(Ia){var h=vu(n,s,a,c);if(h===null)Du(n,s,c,La,a),Ip(n,c);else if(C1(h,n,s,a,c))c.stopPropagation();else if(Ip(n,c),s&4&&-1<S1.indexOf(n)){for(;h!==null;){var m=ji(h);if(m!==null&&Op(m),m=vu(n,s,a,c),m===null&&Du(n,s,c,La,a),m===h)break;h=m}h!==null&&c.stopPropagation()}else Du(n,s,c,null,a)}}var La=null;function vu(n,s,a,c){if(La=null,n=iu(c),n=ps(n),n!==null)if(s=hs(n),s===null)n=null;else if(a=s.tag,a===13){if(n=Sp(s),n!==null)return n;n=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null);return La=n,null}function Bp(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(h1()){case du:return 1;case _p:return 4;case Ra:case p1:return 16;case Rp:return 536870912;default:return 16}default:return 16}}var Cr=null,xu=null,Fa=null;function $p(){if(Fa)return Fa;var n,s=xu,a=s.length,c,h="value"in Cr?Cr.value:Cr.textContent,m=h.length;for(n=0;n<a&&s[n]===h[n];n++);var b=a-n;for(c=1;c<=b&&s[a-c]===h[m-c];c++);return Fa=h.slice(n,1<c?1-c:void 0)}function Ba(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function $a(){return!0}function Up(){return!1}function qt(n){function s(a,c,h,m,b){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(a=n[R],this[R]=a?a(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?$a:Up,this.isPropagationStopped=Up,this}return J(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=$a)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=$a)},persist:function(){},isPersistent:$a}),s}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=qt(ro),wi=J({},ro,{view:0,detail:0}),P1=qt(wi),bu,Su,bi,Ua=J({},wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==bi&&(bi&&n.type==="mousemove"?(bu=n.screenX-bi.screenX,Su=n.screenY-bi.screenY):Su=bu=0,bi=n),bu)},movementY:function(n){return"movementY"in n?n.movementY:Su}}),zp=qt(Ua),_1=J({},Ua,{dataTransfer:0}),R1=qt(_1),T1=J({},wi,{relatedTarget:0}),Cu=qt(T1),j1=J({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),O1=qt(j1),A1=J({},ro,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),M1=qt(A1),D1=J({},ro,{data:0}),Wp=qt(D1),I1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},F1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B1(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=F1[n])?!!s[n]:!1}function Eu(){return B1}var $1=J({},wi,{key:function(n){if(n.key){var s=I1[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=Ba(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?L1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eu,charCode:function(n){return n.type==="keypress"?Ba(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ba(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),U1=qt($1),z1=J({},Ua,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vp=qt(z1),W1=J({},wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eu}),V1=qt(W1),H1=J({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),q1=qt(H1),Q1=J({},Ua,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),K1=qt(Q1),Y1=[9,13,27,32],Nu=f&&"CompositionEvent"in window,Si=null;f&&"documentMode"in document&&(Si=document.documentMode);var G1=f&&"TextEvent"in window&&!Si,Hp=f&&(!Nu||Si&&8<Si&&11>=Si),qp=" ",Qp=!1;function Kp(n,s){switch(n){case"keyup":return Y1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var so=!1;function X1(n,s){switch(n){case"compositionend":return Yp(s);case"keypress":return s.which!==32?null:(Qp=!0,qp);case"textInput":return n=s.data,n===qp&&Qp?null:n;default:return null}}function J1(n,s){if(so)return n==="compositionend"||!Nu&&Kp(n,s)?(n=$p(),Fa=xu=Cr=null,so=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Hp&&s.locale!=="ko"?null:s.data;default:return null}}var Z1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gp(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!Z1[n.type]:s==="textarea"}function Xp(n,s,a,c){yp(c),s=qa(s,"onChange"),0<s.length&&(a=new wu("onChange","change",null,a,c),n.push({event:a,listeners:s}))}var Ci=null,Ei=null;function eC(n){mm(n,0)}function za(n){var s=co(n);if(Ae(s))return n}function tC(n,s){if(n==="change")return s}var Jp=!1;if(f){var ku;if(f){var Pu="oninput"in document;if(!Pu){var Zp=document.createElement("div");Zp.setAttribute("oninput","return;"),Pu=typeof Zp.oninput=="function"}ku=Pu}else ku=!1;Jp=ku&&(!document.documentMode||9<document.documentMode)}function em(){Ci&&(Ci.detachEvent("onpropertychange",tm),Ei=Ci=null)}function tm(n){if(n.propertyName==="value"&&za(Ei)){var s=[];Xp(s,Ei,n,iu(n)),bp(eC,s)}}function nC(n,s,a){n==="focusin"?(em(),Ci=s,Ei=a,Ci.attachEvent("onpropertychange",tm)):n==="focusout"&&em()}function rC(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return za(Ei)}function sC(n,s){if(n==="click")return za(s)}function oC(n,s){if(n==="input"||n==="change")return za(s)}function iC(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var cn=typeof Object.is=="function"?Object.is:iC;function Ni(n,s){if(cn(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var a=Object.keys(n),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!p.call(s,h)||!cn(n[h],s[h]))return!1}return!0}function nm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function rm(n,s){var a=nm(n);n=0;for(var c;a;){if(a.nodeType===3){if(c=n+a.textContent.length,n<=s&&c>=s)return{node:a,offset:s-n};n=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=nm(a)}}function sm(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?sm(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function om(){for(var n=window,s=ht();s instanceof n.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)n=s.contentWindow;else break;s=ht(n.document)}return s}function _u(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}function aC(n){var s=om(),a=n.focusedElem,c=n.selectionRange;if(s!==a&&a&&a.ownerDocument&&sm(a.ownerDocument.documentElement,a)){if(c!==null&&_u(a)){if(s=c.start,n=c.end,n===void 0&&(n=s),"selectionStart"in a)a.selectionStart=s,a.selectionEnd=Math.min(n,a.value.length);else if(n=(s=a.ownerDocument||document)&&s.defaultView||window,n.getSelection){n=n.getSelection();var h=a.textContent.length,m=Math.min(c.start,h);c=c.end===void 0?m:Math.min(c.end,h),!n.extend&&m>c&&(h=c,c=m,m=h),h=rm(a,m);var b=rm(a,c);h&&b&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==b.node||n.focusOffset!==b.offset)&&(s=s.createRange(),s.setStart(h.node,h.offset),n.removeAllRanges(),m>c?(n.addRange(s),n.extend(b.node,b.offset)):(s.setEnd(b.node,b.offset),n.addRange(s)))}}for(s=[],n=a;n=n.parentNode;)n.nodeType===1&&s.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<s.length;a++)n=s[a],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var lC=f&&"documentMode"in document&&11>=document.documentMode,oo=null,Ru=null,ki=null,Tu=!1;function im(n,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tu||oo==null||oo!==ht(c)||(c=oo,"selectionStart"in c&&_u(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ki&&Ni(ki,c)||(ki=c,c=qa(Ru,"onSelect"),0<c.length&&(s=new wu("onSelect","select",null,s,a),n.push({event:s,listeners:c}),s.target=oo)))}function Wa(n,s){var a={};return a[n.toLowerCase()]=s.toLowerCase(),a["Webkit"+n]="webkit"+s,a["Moz"+n]="moz"+s,a}var io={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionend:Wa("Transition","TransitionEnd")},ju={},am={};f&&(am=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function Va(n){if(ju[n])return ju[n];if(!io[n])return n;var s=io[n],a;for(a in s)if(s.hasOwnProperty(a)&&a in am)return ju[n]=s[a];return n}var lm=Va("animationend"),cm=Va("animationiteration"),um=Va("animationstart"),dm=Va("transitionend"),fm=new Map,hm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Er(n,s){fm.set(n,s),l(s,[n])}for(var Ou=0;Ou<hm.length;Ou++){var Au=hm[Ou],cC=Au.toLowerCase(),uC=Au[0].toUpperCase()+Au.slice(1);Er(cC,"on"+uC)}Er(lm,"onAnimationEnd"),Er(cm,"onAnimationIteration"),Er(um,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(dm,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),dC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pi));function pm(n,s,a){var c=n.type||"unknown-event";n.currentTarget=a,c1(c,s,void 0,n),n.currentTarget=null}function mm(n,s){s=(s&4)!==0;for(var a=0;a<n.length;a++){var c=n[a],h=c.event;c=c.listeners;e:{var m=void 0;if(s)for(var b=c.length-1;0<=b;b--){var R=c[b],O=R.instance,U=R.currentTarget;if(R=R.listener,O!==m&&h.isPropagationStopped())break e;pm(h,R,U),m=O}else for(b=0;b<c.length;b++){if(R=c[b],O=R.instance,U=R.currentTarget,R=R.listener,O!==m&&h.isPropagationStopped())break e;pm(h,R,U),m=O}}}if(_a)throw n=uu,_a=!1,uu=null,n}function Qe(n,s){var a=s[Uu];a===void 0&&(a=s[Uu]=new Set);var c=n+"__bubble";a.has(c)||(gm(s,n,2,!1),a.add(c))}function Mu(n,s,a){var c=0;s&&(c|=4),gm(a,n,c,s)}var Ha="_reactListening"+Math.random().toString(36).slice(2);function _i(n){if(!n[Ha]){n[Ha]=!0,o.forEach(function(a){a!=="selectionchange"&&(dC.has(a)||Mu(a,!1,n),Mu(a,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[Ha]||(s[Ha]=!0,Mu("selectionchange",!1,s))}}function gm(n,s,a,c){switch(Bp(s)){case 1:var h=N1;break;case 4:h=k1;break;default:h=yu}a=h.bind(null,s,a,n),h=void 0,!cu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(s,a,{capture:!0,passive:h}):n.addEventListener(s,a,!0):h!==void 0?n.addEventListener(s,a,{passive:h}):n.addEventListener(s,a,!1)}function Du(n,s,a,c,h){var m=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var R=c.stateNode.containerInfo;if(R===h||R.nodeType===8&&R.parentNode===h)break;if(b===4)for(b=c.return;b!==null;){var O=b.tag;if((O===3||O===4)&&(O=b.stateNode.containerInfo,O===h||O.nodeType===8&&O.parentNode===h))return;b=b.return}for(;R!==null;){if(b=ps(R),b===null)return;if(O=b.tag,O===5||O===6){c=m=b;continue e}R=R.parentNode}}c=c.return}bp(function(){var U=m,Q=iu(a),Y=[];e:{var q=fm.get(n);if(q!==void 0){var le=wu,he=n;switch(n){case"keypress":if(Ba(a)===0)break e;case"keydown":case"keyup":le=U1;break;case"focusin":he="focus",le=Cu;break;case"focusout":he="blur",le=Cu;break;case"beforeblur":case"afterblur":le=Cu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=zp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=R1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=V1;break;case lm:case cm:case um:le=O1;break;case dm:le=q1;break;case"scroll":le=P1;break;case"wheel":le=K1;break;case"copy":case"cut":case"paste":le=M1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Vp}var ye=(s&4)!==0,st=!ye&&n==="scroll",L=ye?q!==null?q+"Capture":null:q;ye=[];for(var M=U,B;M!==null;){B=M;var Z=B.stateNode;if(B.tag===5&&Z!==null&&(B=Z,L!==null&&(Z=ui(M,L),Z!=null&&ye.push(Ri(M,Z,B)))),st)break;M=M.return}0<ye.length&&(q=new le(q,he,null,a,Q),Y.push({event:q,listeners:ye}))}}if((s&7)===0){e:{if(q=n==="mouseover"||n==="pointerover",le=n==="mouseout"||n==="pointerout",q&&a!==ou&&(he=a.relatedTarget||a.fromElement)&&(ps(he)||he[Kn]))break e;if((le||q)&&(q=Q.window===Q?Q:(q=Q.ownerDocument)?q.defaultView||q.parentWindow:window,le?(he=a.relatedTarget||a.toElement,le=U,he=he?ps(he):null,he!==null&&(st=hs(he),he!==st||he.tag!==5&&he.tag!==6)&&(he=null)):(le=null,he=U),le!==he)){if(ye=zp,Z="onMouseLeave",L="onMouseEnter",M="mouse",(n==="pointerout"||n==="pointerover")&&(ye=Vp,Z="onPointerLeave",L="onPointerEnter",M="pointer"),st=le==null?q:co(le),B=he==null?q:co(he),q=new ye(Z,M+"leave",le,a,Q),q.target=st,q.relatedTarget=B,Z=null,ps(Q)===U&&(ye=new ye(L,M+"enter",he,a,Q),ye.target=B,ye.relatedTarget=st,Z=ye),st=Z,le&&he)t:{for(ye=le,L=he,M=0,B=ye;B;B=ao(B))M++;for(B=0,Z=L;Z;Z=ao(Z))B++;for(;0<M-B;)ye=ao(ye),M--;for(;0<B-M;)L=ao(L),B--;for(;M--;){if(ye===L||L!==null&&ye===L.alternate)break t;ye=ao(ye),L=ao(L)}ye=null}else ye=null;le!==null&&ym(Y,q,le,ye,!1),he!==null&&st!==null&&ym(Y,st,he,ye,!0)}}e:{if(q=U?co(U):window,le=q.nodeName&&q.nodeName.toLowerCase(),le==="select"||le==="input"&&q.type==="file")var ve=tC;else if(Gp(q))if(Jp)ve=oC;else{ve=rC;var be=nC}else(le=q.nodeName)&&le.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(ve=sC);if(ve&&(ve=ve(n,U))){Xp(Y,ve,a,Q);break e}be&&be(n,q,U),n==="focusout"&&(be=q._wrapperState)&&be.controlled&&q.type==="number"&&vr(q,"number",q.value)}switch(be=U?co(U):window,n){case"focusin":(Gp(be)||be.contentEditable==="true")&&(oo=be,Ru=U,ki=null);break;case"focusout":ki=Ru=oo=null;break;case"mousedown":Tu=!0;break;case"contextmenu":case"mouseup":case"dragend":Tu=!1,im(Y,a,Q);break;case"selectionchange":if(lC)break;case"keydown":case"keyup":im(Y,a,Q)}var Se;if(Nu)e:{switch(n){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else so?Kp(n,a)&&(ke="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(Hp&&a.locale!=="ko"&&(so||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&so&&(Se=$p()):(Cr=Q,xu="value"in Cr?Cr.value:Cr.textContent,so=!0)),be=qa(U,ke),0<be.length&&(ke=new Wp(ke,n,null,a,Q),Y.push({event:ke,listeners:be}),Se?ke.data=Se:(Se=Yp(a),Se!==null&&(ke.data=Se)))),(Se=G1?X1(n,a):J1(n,a))&&(U=qa(U,"onBeforeInput"),0<U.length&&(Q=new Wp("onBeforeInput","beforeinput",null,a,Q),Y.push({event:Q,listeners:U}),Q.data=Se))}mm(Y,s)})}function Ri(n,s,a){return{instance:n,listener:s,currentTarget:a}}function qa(n,s){for(var a=s+"Capture",c=[];n!==null;){var h=n,m=h.stateNode;h.tag===5&&m!==null&&(h=m,m=ui(n,a),m!=null&&c.unshift(Ri(n,m,h)),m=ui(n,s),m!=null&&c.push(Ri(n,m,h))),n=n.return}return c}function ao(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function ym(n,s,a,c,h){for(var m=s._reactName,b=[];a!==null&&a!==c;){var R=a,O=R.alternate,U=R.stateNode;if(O!==null&&O===c)break;R.tag===5&&U!==null&&(R=U,h?(O=ui(a,m),O!=null&&b.unshift(Ri(a,O,R))):h||(O=ui(a,m),O!=null&&b.push(Ri(a,O,R)))),a=a.return}b.length!==0&&n.push({event:s,listeners:b})}var fC=/\r\n?/g,hC=/\u0000|\uFFFD/g;function vm(n){return(typeof n=="string"?n:""+n).replace(fC,` 38`).replace(hC,"")}function Qa(n,s,a){if(s=vm(s),vm(n)!==s&&a)throw Error(r(425))}function Ka(){}var Iu=null,Lu=null;function Fu(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Bu=typeof setTimeout=="function"?setTimeout:void 0,pC=typeof clearTimeout=="function"?clearTimeout:void 0,xm=typeof Promise=="function"?Promise:void 0,mC=typeof queueMicrotask=="function"?queueMicrotask:typeof xm<"u"?function(n){return xm.resolve(null).then(n).catch(gC)}:Bu;function gC(n){setTimeout(function(){throw n})}function $u(n,s){var a=s,c=0;do{var h=a.nextSibling;if(n.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(c===0){n.removeChild(h),xi(s);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=h}while(a);xi(s)}function Nr(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return n}function wm(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return n;s--}else a==="/$"&&s++}n=n.previousSibling}return null}var lo=Math.random().toString(36).slice(2),Rn="__reactFiber$"+lo,Ti="__reactProps$"+lo,Kn="__reactContainer$"+lo,Uu="__reactEvents$"+lo,yC="__reactListeners$"+lo,vC="__reactHandles$"+lo;function ps(n){var s=n[Rn];if(s)return s;for(var a=n.parentNode;a;){if(s=a[Kn]||a[Rn]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(n=wm(n);n!==null;){if(a=n[Rn])return a;n=wm(n)}return s}n=a,a=n.parentNode}return null}function ji(n){return n=n[Rn]||n[Kn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function co(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Ya(n){return n[Ti]||null}var zu=[],uo=-1;function kr(n){return{current:n}}function Ke(n){0>uo||(n.current=zu[uo],zu[uo]=null,uo--)}function qe(n,s){uo++,zu[uo]=n.current,n.current=s}var Pr={},St=kr(Pr),It=kr(!1),ms=Pr;function fo(n,s){var a=n.type.contextTypes;if(!a)return Pr;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===s)return c.__reactInternalMemoizedMaskedChildContext;var h={},m;
vendor: 5,443 bytes, line 38
38for(m in a)h[m]=s[m];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=s,n.__reactInternalMemoizedMaskedChildContext=h),h}function Lt(n){return n=n.childContextTypes,n!=null}function Ga(){Ke(It),Ke(St)}function bm(n,s,a){if(St.current!==Pr)throw Error(r(168));qe(St,s),qe(It,a)}function Sm(n,s,a){var c=n.stateNode;if(s=s.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var h in c)if(!(h in s))throw Error(r(108,X(n)||"Unknown",h));return J({},a,c)}function Xa(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Pr,ms=St.current,qe(St,n),qe(It,It.current),!0}function Cm(n,s,a){var c=n.stateNode;if(!c)throw Error(r(169));a?(n=Sm(n,s,ms),c.__reactInternalMemoizedMergedChildContext=n,Ke(It),Ke(St),qe(St,n)):Ke(It),qe(It,a)}var Yn=null,Ja=!1,Wu=!1;function Em(n){Yn===null?Yn=[n]:Yn.push(n)}function xC(n){Ja=!0,Em(n)}function _r(){if(!Wu&&Yn!==null){Wu=!0;var n=0,s=We;try{var a=Yn;for(We=1;n<a.length;n++){var c=a[n];do c=c(!0);while(c!==null)}Yn=null,Ja=!1}catch(h){throw Yn!==null&&(Yn=Yn.slice(n+1)),kp(du,_r),h}finally{We=s,Wu=!1}}return null}var ho=[],po=0,Za=null,el=0,Jt=[],Zt=0,gs=null,Gn=1,Xn="";function ys(n,s){ho[po++]=el,ho[po++]=Za,Za=n,el=s}function Nm(n,s,a){Jt[Zt++]=Gn,Jt[Zt++]=Xn,Jt[Zt++]=gs,gs=n;var c=Gn;n=Xn;var h=32-ln(c)-1;c&=~(1<<h),a+=1;var m=32-ln(s)+h;if(30<m){var b=h-h%5;m=(c&(1<<b)-1).toString(32),c>>=b,h-=b,Gn=1<<32-ln(s)+h|a<<h|c,Xn=m+n}else Gn=1<<m|a<<h|c,Xn=n}function Vu(n){n.return!==null&&(ys(n,1),Nm(n,1,0))}function Hu(n){for(;n===Za;)Za=ho[--po],ho[po]=null,el=ho[--po],ho[po]=null;for(;n===gs;)gs=Jt[--Zt],Jt[Zt]=null,Xn=Jt[--Zt],Jt[Zt]=null,Gn=Jt[--Zt],Jt[Zt]=null}var Qt=null,Kt=null,Ye=!1,un=null;function km(n,s){var a=rn(5,null,null,0);a.elementType="DELETED",a.stateNode=s,a.return=n,s=n.deletions,s===null?(n.deletions=[a],n.flags|=16):s.push(a)}function Pm(n,s){switch(n.tag){case 5:var a=n.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(n.stateNode=s,Qt=n,Kt=Nr(s.firstChild),!0):!1;case 6:return s=n.pendingProps===""||s.nodeType!==3?null:s,s!==null?(n.stateNode=s,Qt=n,Kt=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(a=gs!==null?{id:Gn,overflow:Xn}:null,n.memoizedState={dehydrated:s,treeContext:a,retryLane:1073741824},a=rn(18,null,null,0),a.stateNode=s,a.return=n,n.child=a,Qt=n,Kt=null,!0):!1;default:return!1}}function qu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Qu(n){if(Ye){var s=Kt;if(s){var a=s;if(!Pm(n,s)){if(qu(n))throw Error(r(418));s=Nr(a.nextSibling);var c=Qt;s&&Pm(n,s)?km(c,a):(n.flags=n.flags&-4097|2,Ye=!1,Qt=n)}}else{if(qu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Ye=!1,Qt=n}}}function _m(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Qt=n}function tl(n){if(n!==Qt)return!1;if(!Ye)return _m(n),Ye=!0,!1;var s;if((s=n.tag!==3)&&!(s=n.tag!==5)&&(s=n.type,s=s!=="head"&&s!=="body"&&!Fu(n.type,n.memoizedProps)),s&&(s=Kt)){if(qu(n))throw Rm(),Error(r(418));for(;s;)km(n,s),s=Nr(s.nextSibling)}if(_m(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,s=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"){if(s===0){Kt=Nr(n.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}n=n.nextSibling}Kt=null}}else Kt=Qt?Nr(n.stateNode.nextSibling):null;return!0}function Rm(){for(var n=Kt;n;)n=Nr(n.nextSibling)}function mo(){Kt=Qt=null,Ye=!1}function Ku(n){un===null?un=[n]:un.push(n)}var wC=_.ReactCurrentBatchConfig;function Oi(n,s,a){if(n=a.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(r(309));var c=a.stateNode}if(!c)throw Error(r(147,n));var h=c,m=""+n;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===m?s.ref:(s=function(b){var R=h.refs;b===null?delete R[m]:R[m]=b},s._stringRef=m,s)}if(typeof n!="string")throw Error(r(284));if(!a._owner)throw Error(r(290,n))}return n}function nl(n,s){throw n=Object.prototype.toString.call(s),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n))}function Tm(n){var s=n._init;return s(n._payload)}function jm(n){function s(L,M){if(n){var B=L.deletions;B===null?(L.deletions=[M],L.flags|=16):B.push(M)}}function a(L,M){if(!n)return null;for(;M!==null;)s(L,M),M=M.sibling;return null}function c(L,M){for(L=new Map;M!==null;)M.key!==null?L.set(M.key,M):L.set(M.index,M),M=M.sibling;return L}function h(L,M){return L=Ir(L,M),L.index=0,L.sibling=null,L}function m(L,M,B){return L.index=B,n?(B=L.alternate,B!==null?(B=B.index,B<M?(L.flags|=2,M):B):(L.flags|=2,M)):(L.flags|=1048576,M)}function b(L){return n&&L.alternate===null&&(L.flags|=2),L}function R(L,M,B,Z){return M===null||M.tag!==6?(M=Bd(B,L.mode,Z),M.return=L,M):(M=h(M,B),M.return=L,M)}function O(L,M,B,Z){var ve=B.type;return ve===$?Q(L,M,B.props.children,Z,B.key):M!==null&&(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===G&&Tm(ve)===M.type)?(Z=h(M,B.props),Z.ref=Oi(L,M,B),Z.return=L,Z):(Z=kl(B.type,B.key,B.props,null,L.mode,Z),Z.ref=Oi(L,M,B),Z.return=L,Z)}function U(L,M,B,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==B.containerInfo||M.stateNode.implementation!==B.implementation?(M=$d(B,L.mode,Z),M.return=L,M):(M=h(M,B.children||[]),M.return=L,M)}function Q(L,M,B,Z,ve){return M===null||M.tag!==7?(M=Ns(B,L.mode,Z,ve),M.return=L,M):(M=h(M,B),M.return=L,M)}
vendor: 11,385 bytes, line 38
38function Y(L,M,B){if(typeof M=="string"&&M!==""||typeof M=="number")return M=Bd(""+M,L.mode,B),M.return=L,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case F:return B=kl(M.type,M.key,M.props,null,L.mode,B),B.ref=Oi(L,null,M),B.return=L,B;case H:return M=$d(M,L.mode,B),M.return=L,M;case G:var Z=M._init;return Y(L,Z(M._payload),B)}if(ai(M)||ee(M))return M=Ns(M,L.mode,B,null),M.return=L,M;nl(L,M)}return null}function q(L,M,B,Z){var ve=M!==null?M.key:null;if(typeof B=="string"&&B!==""||typeof B=="number")return ve!==null?null:R(L,M,""+B,Z);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case F:return B.key===ve?O(L,M,B,Z):null;case H:return B.key===ve?U(L,M,B,Z):null;case G:return ve=B._init,q(L,M,ve(B._payload),Z)}if(ai(B)||ee(B))return ve!==null?null:Q(L,M,B,Z,null);nl(L,B)}return null}function le(L,M,B,Z,ve){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return L=L.get(B)||null,R(M,L,""+Z,ve);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case F:return L=L.get(Z.key===null?B:Z.key)||null,O(M,L,Z,ve);case H:return L=L.get(Z.key===null?B:Z.key)||null,U(M,L,Z,ve);case G:var be=Z._init;return le(L,M,B,be(Z._payload),ve)}if(ai(Z)||ee(Z))return L=L.get(B)||null,Q(M,L,Z,ve,null);nl(M,Z)}return null}function he(L,M,B,Z){for(var ve=null,be=null,Se=M,ke=M=0,gt=null;Se!==null&&ke<B.length;ke++){Se.index>ke?(gt=Se,Se=null):gt=Se.sibling;var Fe=q(L,Se,B[ke],Z);if(Fe===null){Se===null&&(Se=gt);break}n&&Se&&Fe.alternate===null&&s(L,Se),M=m(Fe,M,ke),be===null?ve=Fe:be.sibling=Fe,be=Fe,Se=gt}if(ke===B.length)return a(L,Se),Ye&&ys(L,ke),ve;if(Se===null){for(;ke<B.length;ke++)Se=Y(L,B[ke],Z),Se!==null&&(M=m(Se,M,ke),be===null?ve=Se:be.sibling=Se,be=Se);return Ye&&ys(L,ke),ve}for(Se=c(L,Se);ke<B.length;ke++)gt=le(Se,L,ke,B[ke],Z),gt!==null&&(n&>.alternate!==null&&Se.delete(gt.key===null?ke:gt.key),M=m(gt,M,ke),be===null?ve=gt:be.sibling=gt,be=gt);return n&&Se.forEach(function(Lr){return s(L,Lr)}),Ye&&ys(L,ke),ve}function ye(L,M,B,Z){var ve=ee(B);if(typeof ve!="function")throw Error(r(150));if(B=ve.call(B),B==null)throw Error(r(151));for(var be=ve=null,Se=M,ke=M=0,gt=null,Fe=B.next();Se!==null&&!Fe.done;ke++,Fe=B.next()){Se.index>ke?(gt=Se,Se=null):gt=Se.sibling;var Lr=q(L,Se,Fe.value,Z);if(Lr===null){Se===null&&(Se=gt);break}n&&Se&&Lr.alternate===null&&s(L,Se),M=m(Lr,M,ke),be===null?ve=Lr:be.sibling=Lr,be=Lr,Se=gt}if(Fe.done)return a(L,Se),Ye&&ys(L,ke),ve;if(Se===null){for(;!Fe.done;ke++,Fe=B.next())Fe=Y(L,Fe.value,Z),Fe!==null&&(M=m(Fe,M,ke),be===null?ve=Fe:be.sibling=Fe,be=Fe);return Ye&&ys(L,ke),ve}for(Se=c(L,Se);!Fe.done;ke++,Fe=B.next())Fe=le(Se,L,ke,Fe.value,Z),Fe!==null&&(n&&Fe.alternate!==null&&Se.delete(Fe.key===null?ke:Fe.key),M=m(Fe,M,ke),be===null?ve=Fe:be.sibling=Fe,be=Fe);return n&&Se.forEach(function(ZC){return s(L,ZC)}),Ye&&ys(L,ke),ve}function st(L,M,B,Z){if(typeof B=="object"&&B!==null&&B.type===$&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case F:e:{for(var ve=B.key,be=M;be!==null;){if(be.key===ve){if(ve=B.type,ve===$){if(be.tag===7){a(L,be.sibling),M=h(be,B.props.children),M.return=L,L=M;break e}}else if(be.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===G&&Tm(ve)===be.type){a(L,be.sibling),M=h(be,B.props),M.ref=Oi(L,be,B),M.return=L,L=M;break e}a(L,be);break}else s(L,be);be=be.sibling}B.type===$?(M=Ns(B.props.children,L.mode,Z,B.key),M.return=L,L=M):(Z=kl(B.type,B.key,B.props,null,L.mode,Z),Z.ref=Oi(L,M,B),Z.return=L,L=Z)}return b(L);case H:e:{for(be=B.key;M!==null;){if(M.key===be)if(M.tag===4&&M.stateNode.containerInfo===B.containerInfo&&M.stateNode.implementation===B.implementation){a(L,M.sibling),M=h(M,B.children||[]),M.return=L,L=M;break e}else{a(L,M);break}else s(L,M);M=M.sibling}M=$d(B,L.mode,Z),M.return=L,L=M}return b(L);case G:return be=B._init,st(L,M,be(B._payload),Z)}if(ai(B))return he(L,M,B,Z);if(ee(B))return ye(L,M,B,Z);nl(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,M!==null&&M.tag===6?(a(L,M.sibling),M=h(M,B),M.return=L,L=M):(a(L,M),M=Bd(B,L.mode,Z),M.return=L,L=M),b(L)):a(L,M)}return st}var go=jm(!0),Om=jm(!1),rl=kr(null),sl=null,yo=null,Yu=null;function Gu(){Yu=yo=sl=null}function Xu(n){var s=rl.current;Ke(rl),n._currentValue=s}function Ju(n,s,a){for(;n!==null;){var c=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),n===a)break;n=n.return}}function vo(n,s){sl=n,Yu=yo=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&s)!==0&&(Ft=!0),n.firstContext=null)}function en(n){var s=n._currentValue;if(Yu!==n)if(n={context:n,memoizedValue:s,next:null},yo===null){if(sl===null)throw Error(r(308));yo=n,sl.dependencies={lanes:0,firstContext:n}}else yo=yo.next=n;return s}var vs=null;function Zu(n){vs===null?vs=[n]:vs.push(n)}function Am(n,s,a,c){var h=s.interleaved;return h===null?(a.next=a,Zu(s)):(a.next=h.next,h.next=a),s.interleaved=a,Jn(n,c)}function Jn(n,s){n.lanes|=s;var a=n.alternate;for(a!==null&&(a.lanes|=s),a=n,n=n.return;n!==null;)n.childLanes|=s,a=n.alternate,a!==null&&(a.childLanes|=s),a=n,n=n.return;return a.tag===3?a.stateNode:null}var Rr=!1;function ed(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mm(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Zn(n,s){return{eventTime:n,lane:s,tag:0,payload:null,callback:null,next:null}}function Tr(n,s,a){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Le&2)!==0){var h=c.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s,Jn(n,a)}return h=c.interleaved,h===null?(s.next=s,Zu(c)):(s.next=h.next,h.next=s),c.interleaved=s,Jn(n,a)}function ol(n,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194240)!==0)){var c=s.lanes;c&=n.pendingLanes,a|=c,s.lanes=a,pu(n,a)}}function Dm(n,s){var a=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var b={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?h=m=b:m=m.next=b,a=a.next}while(a!==null);m===null?h=m=s:m=m.next=s}else h=m=s;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:c.shared,effects:c.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=s:n.next=s,a.lastBaseUpdate=s}function il(n,s,a,c){var h=n.updateQueue;Rr=!1;var m=h.firstBaseUpdate,b=h.lastBaseUpdate,R=h.shared.pending;if(R!==null){h.shared.pending=null;var O=R,U=O.next;O.next=null,b===null?m=U:b.next=U,b=O;var Q=n.alternate;Q!==null&&(Q=Q.updateQueue,R=Q.lastBaseUpdate,R!==b&&(R===null?Q.firstBaseUpdate=U:R.next=U,Q.lastBaseUpdate=O))}if(m!==null){var Y=h.baseState;b=0,Q=U=O=null,R=m;do{var q=R.lane,le=R.eventTime;if((c&q)===q){Q!==null&&(Q=Q.next={eventTime:le,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var he=n,ye=R;switch(q=s,le=a,ye.tag){case 1:if(he=ye.payload,typeof he=="function"){Y=he.call(le,Y,q);break e}Y=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ye.payload,q=typeof he=="function"?he.call(le,Y,q):he,q==null)break e;Y=J({},Y,q);break e;case 2:Rr=!0}}R.callback!==null&&R.lane!==0&&(n.flags|=64,q=h.effects,q===null?h.effects=[R]:q.push(R))}else le={eventTime:le,lane:q,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Q===null?(U=Q=le,O=Y):Q=Q.next=le,b|=q;if(R=R.next,R===null){if(R=h.shared.pending,R===null)break;q=R,R=q.next,q.next=null,h.lastBaseUpdate=q,h.shared.pending=null}}while(!0);if(Q===null&&(O=Y),h.baseState=O,h.firstBaseUpdate=U,h.lastBaseUpdate=Q,s=h.shared.interleaved,s!==null){h=s;do b|=h.lane,h=h.next;while(h!==s)}else m===null&&(h.shared.lanes=0);bs|=b,n.lanes=b,n.memoizedState=Y}}function Im(n,s,a){if(n=s.effects,s.effects=null,n!==null)for(s=0;s<n.length;s++){var c=n[s],h=c.callback;if(h!==null){if(c.callback=null,c=a,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var Ai={},Tn=kr(Ai),Mi=kr(Ai),Di=kr(Ai);function xs(n){if(n===Ai)throw Error(r(174));return n}function td(n,s){switch(qe(Di,s),qe(Mi,n),qe(Tn,Ai),n=s.nodeType,n){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:nu(null,"");break;default:n=n===8?s.parentNode:s,s=n.namespaceURI||null,n=n.tagName,s=nu(s,n)}Ke(Tn),qe(Tn,s)}function xo(){Ke(Tn),Ke(Mi),Ke(Di)}function Lm(n){xs(Di.current);var s=xs(Tn.current),a=nu(s,n.type);s!==a&&(qe(Mi,n),qe(Tn,a))}function nd(n){Mi.current===n&&(Ke(Tn),Ke(Mi))}var Xe=kr(0);function al(n){for(var s=n;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var rd=[];function sd(){for(var n=0;n<rd.length;n++)rd[n]._workInProgressVersionPrimary=null;rd.length=0}var ll=_.ReactCurrentDispatcher,od=_.ReactCurrentBatchConfig,ws=0,Je=null,ct=null,pt=null,cl=!1,Ii=!1,Li=0,bC=0;function Ct(){throw Error(r(321))}function id(n,s){if(s===null)return!1;for(var a=0;a<s.length&&a<n.length;a++)if(!cn(n[a],s[a]))return!1;return!0}function ad(n,s,a,c,h,m){if(ws=m,Je=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,ll.current=n===null||n.memoizedState===null?NC:kC,n=a(c,h),Ii){m=0;do{if(Ii=!1,Li=0,25<=m)throw Error(r(301));m+=1,pt=ct=null,s.updateQueue=null,ll.current=PC,n=a(c,h)}while(Ii)}if(ll.current=fl,s=ct!==null&&ct.next!==null,ws=0,pt=ct=Je=null,cl=!1,s)throw Error(r(300));return n}function ld(){var n=Li!==0;return Li=0,n}function jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Je.memoizedState=pt=n:pt=pt.next=n,pt}function tn(){if(ct===null){var n=Je.alternate;n=n!==null?n.memoizedState:null}else n=ct.next;var s=pt===null?Je.memoizedState:pt.next;if(s!==null)pt=s,ct=n;else{if(n===null)throw Error(r(310));ct=n,n={memoizedState:ct.memoizedState,baseState:ct.baseState,baseQueue:ct.baseQueue,queue:ct.queue,next:null},pt===null?Je.memoizedState=pt=n:pt=pt.next=n}return pt}function Fi(n,s){return typeof s=="function"?s(n):s}function cd(n){var s=tn(),a=s.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=ct,h=c.baseQueue,m=a.pending;if(m!==null){if(h!==null){var b=h.next;h.next=m.next,m.next=b}c.baseQueue=h=m,a.pending=null}if(h!==null){m=h.next,c=c.baseState;var R=b=null,O=null,U=m;do{var Q=U.lane;if((ws&Q)===Q)O!==null&&(O=O.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),c=U.hasEagerState?U.eagerState:n(c,U.action);else{var Y={lane:Q,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};O===null?(R=O=Y,b=c):O=O.next=Y,Je.lanes|=Q,bs|=Q}U=U.next}while(U!==null&&U!==m);O===null?b=c:O.next=R,cn(c,s.memoizedState)||(Ft=!0),s.memoizedState=c,s.baseState=b,s.baseQueue=O,a.lastRenderedState=c}if(n=a.interleaved,n!==null){h=n;do m=h.lane,Je.lanes|=m,bs|=m,h=h.next;while(h!==n)}else h===null&&(a.lanes=0);return[s.memoizedState,a.dispatch]}function ud(n){var s=tn(),a=s.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;
vendor: 4,790 bytes, line 38
38var c=a.dispatch,h=a.pending,m=s.memoizedState;if(h!==null){a.pending=null;var b=h=h.next;do m=n(m,b.action),b=b.next;while(b!==h);cn(m,s.memoizedState)||(Ft=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),a.lastRenderedState=m}return[m,c]}function Fm(){}function Bm(n,s){var a=Je,c=tn(),h=s(),m=!cn(c.memoizedState,h);if(m&&(c.memoizedState=h,Ft=!0),c=c.queue,dd(zm.bind(null,a,c,n),[n]),c.getSnapshot!==s||m||pt!==null&&pt.memoizedState.tag&1){if(a.flags|=2048,Bi(9,Um.bind(null,a,c,h,s),void 0,null),mt===null)throw Error(r(349));(ws&30)!==0||$m(a,s,h)}return h}function $m(n,s,a){n.flags|=16384,n={getSnapshot:s,value:a},s=Je.updateQueue,s===null?(s={lastEffect:null,stores:null},Je.updateQueue=s,s.stores=[n]):(a=s.stores,a===null?s.stores=[n]:a.push(n))}function Um(n,s,a,c){s.value=a,s.getSnapshot=c,Wm(s)&&Vm(n)}function zm(n,s,a){return a(function(){Wm(s)&&Vm(n)})}function Wm(n){var s=n.getSnapshot;n=n.value;try{var a=s();return!cn(n,a)}catch{return!0}}function Vm(n){var s=Jn(n,1);s!==null&&pn(s,n,1,-1)}function Hm(n){var s=jn();return typeof n=="function"&&(n=n()),s.memoizedState=s.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:n},s.queue=n,n=n.dispatch=EC.bind(null,Je,n),[s.memoizedState,n]}function Bi(n,s,a,c){return n={tag:n,create:s,destroy:a,deps:c,next:null},s=Je.updateQueue,s===null?(s={lastEffect:null,stores:null},Je.updateQueue=s,s.lastEffect=n.next=n):(a=s.lastEffect,a===null?s.lastEffect=n.next=n:(c=a.next,a.next=n,n.next=c,s.lastEffect=n)),n}function qm(){return tn().memoizedState}function ul(n,s,a,c){var h=jn();Je.flags|=n,h.memoizedState=Bi(1|s,a,void 0,c===void 0?null:c)}function dl(n,s,a,c){var h=tn();c=c===void 0?null:c;var m=void 0;if(ct!==null){var b=ct.memoizedState;if(m=b.destroy,c!==null&&id(c,b.deps)){h.memoizedState=Bi(s,a,m,c);return}}Je.flags|=n,h.memoizedState=Bi(1|s,a,m,c)}function Qm(n,s){return ul(8390656,8,n,s)}function dd(n,s){return dl(2048,8,n,s)}function Km(n,s){return dl(4,2,n,s)}function Ym(n,s){return dl(4,4,n,s)}function Gm(n,s){if(typeof s=="function")return n=n(),s(n),function(){s(null)};if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function Xm(n,s,a){return a=a!=null?a.concat([n]):null,dl(4,4,Gm.bind(null,s,n),a)}function fd(){}function Jm(n,s){var a=tn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&id(s,c[1])?c[0]:(a.memoizedState=[n,s],n)}function Zm(n,s){var a=tn();s=s===void 0?null:s;var c=a.memoizedState;return c!==null&&s!==null&&id(s,c[1])?c[0]:(n=n(),a.memoizedState=[n,s],n)}function eg(n,s,a){return(ws&21)===0?(n.baseState&&(n.baseState=!1,Ft=!0),n.memoizedState=a):(cn(a,s)||(a=Tp(),Je.lanes|=a,bs|=a,n.baseState=!0),s)}function SC(n,s){var a=We;We=a!==0&&4>a?a:4,n(!0);var c=od.transition;od.transition={};try{n(!1),s()}finally{We=a,od.transition=c}}function tg(){return tn().memoizedState}function CC(n,s,a){var c=Mr(n);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},ng(n))rg(s,a);else if(a=Am(n,s,a,c),a!==null){var h=Tt();pn(a,n,c,h),sg(a,s,c)}}function EC(n,s,a){var c=Mr(n),h={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(ng(n))rg(s,h);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var b=s.lastRenderedState,R=m(b,a);if(h.hasEagerState=!0,h.eagerState=R,cn(R,b)){var O=s.interleaved;O===null?(h.next=h,Zu(s)):(h.next=O.next,O.next=h),s.interleaved=h;return}}catch{}finally{}a=Am(n,s,h,c),a!==null&&(h=Tt(),pn(a,n,c,h),sg(a,s,c))}}function ng(n){var s=n.alternate;return n===Je||s!==null&&s===Je}function rg(n,s){Ii=cl=!0;var a=n.pending;a===null?s.next=s:(s.next=a.next,a.next=s),n.pending=s}function sg(n,s,a){if((a&4194240)!==0){var c=s.lanes;c&=n.pendingLanes,a|=c,s.lanes=a,pu(n,a)}}var fl={readContext:en,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},NC={readContext:en,useCallback:function(n,s){return jn().memoizedState=[n,s===void 0?null:s],n},useContext:en,useEffect:Qm,useImperativeHandle:function(n,s,a){return a=a!=null?a.concat([n]):null,ul(4194308,4,Gm.bind(null,s,n),a)},useLayoutEffect:function(n,s){return ul(4194308,4,n,s)},useInsertionEffect:function(n,s){return ul(4,2,n,s)},useMemo:function(n,s){var a=jn();return s=s===void 0?null:s,n=n(),a.memoizedState=[n,s],n},useReducer:function(n,s,a){var c=jn();return s=a!==void 0?a(s):s,c.memoizedState=c.baseState=s,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:s},c.queue=n,n=n.dispatch=CC.bind(null,Je,n),[c.memoizedState,n]}
vendor: 7,250 bytes, lines 38-40
38,useRef:function(n){var s=jn();return n={current:n},s.memoizedState=n},useState:Hm,useDebugValue:fd,useDeferredValue:function(n){return jn().memoizedState=n},useTransition:function(){var n=Hm(!1),s=n[0];return n=SC.bind(null,n[1]),jn().memoizedState=n,[s,n]},useMutableSource:function(){},useSyncExternalStore:function(n,s,a){var c=Je,h=jn();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=s(),mt===null)throw Error(r(349));(ws&30)!==0||$m(c,s,a)}h.memoizedState=a;var m={value:a,getSnapshot:s};return h.queue=m,Qm(zm.bind(null,c,m,n),[n]),c.flags|=2048,Bi(9,Um.bind(null,c,m,a,s),void 0,null),a},useId:function(){var n=jn(),s=mt.identifierPrefix;if(Ye){var a=Xn,c=Gn;a=(c&~(1<<32-ln(c)-1)).toString(32)+a,s=":"+s+"R"+a,a=Li++,0<a&&(s+="H"+a.toString(32)),s+=":"}else a=bC++,s=":"+s+"r"+a.toString(32)+":";return n.memoizedState=s},unstable_isNewReconciler:!1},kC={readContext:en,useCallback:Jm,useContext:en,useEffect:dd,useImperativeHandle:Xm,useInsertionEffect:Km,useLayoutEffect:Ym,useMemo:Zm,useReducer:cd,useRef:qm,useState:function(){return cd(Fi)},useDebugValue:fd,useDeferredValue:function(n){var s=tn();return eg(s,ct.memoizedState,n)},useTransition:function(){var n=cd(Fi)[0],s=tn().memoizedState;return[n,s]},useMutableSource:Fm,useSyncExternalStore:Bm,useId:tg,unstable_isNewReconciler:!1},PC={readContext:en,useCallback:Jm,useContext:en,useEffect:dd,useImperativeHandle:Xm,useInsertionEffect:Km,useLayoutEffect:Ym,useMemo:Zm,useReducer:ud,useRef:qm,useState:function(){return ud(Fi)},useDebugValue:fd,useDeferredValue:function(n){var s=tn();return ct===null?s.memoizedState=n:eg(s,ct.memoizedState,n)},useTransition:function(){var n=ud(Fi)[0],s=tn().memoizedState;return[n,s]},useMutableSource:Fm,useSyncExternalStore:Bm,useId:tg,unstable_isNewReconciler:!1};function dn(n,s){if(n&&n.defaultProps){s=J({},s),n=n.defaultProps;for(var a in n)s[a]===void 0&&(s[a]=n[a]);return s}return s}function hd(n,s,a,c){s=n.memoizedState,a=a(c,s),a=a==null?s:J({},s,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var hl={isMounted:function(n){return(n=n._reactInternals)?hs(n)===n:!1},enqueueSetState:function(n,s,a){n=n._reactInternals;var c=Tt(),h=Mr(n),m=Zn(c,h);m.payload=s,a!=null&&(m.callback=a),s=Tr(n,m,h),s!==null&&(pn(s,n,h,c),ol(s,n,h))},enqueueReplaceState:function(n,s,a){n=n._reactInternals;var c=Tt(),h=Mr(n),m=Zn(c,h);m.tag=1,m.payload=s,a!=null&&(m.callback=a),s=Tr(n,m,h),s!==null&&(pn(s,n,h,c),ol(s,n,h))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var a=Tt(),c=Mr(n),h=Zn(a,c);h.tag=2,s!=null&&(h.callback=s),s=Tr(n,h,c),s!==null&&(pn(s,n,c,a),ol(s,n,c))}};function og(n,s,a,c,h,m,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,m,b):s.prototype&&s.prototype.isPureReactComponent?!Ni(a,c)||!Ni(h,m):!0}function ig(n,s,a){var c=!1,h=Pr,m=s.contextType;return typeof m=="object"&&m!==null?m=en(m):(h=Lt(s)?ms:St.current,c=s.contextTypes,m=(c=c!=null)?fo(n,h):Pr),s=new s(a,m),n.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=hl,n.stateNode=s,s._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=m),s}function ag(n,s,a,c){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==n&&hl.enqueueReplaceState(s,s.state,null)}function pd(n,s,a,c){var h=n.stateNode;h.props=a,h.state=n.memoizedState,h.refs={},ed(n);var m=s.contextType;typeof m=="object"&&m!==null?h.context=en(m):(m=Lt(s)?ms:St.current,h.context=fo(n,m)),h.state=n.memoizedState,m=s.getDerivedStateFromProps,typeof m=="function"&&(hd(n,s,m,a),h.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(s=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),s!==h.state&&hl.enqueueReplaceState(h,h.state,null),il(n,a,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function wo(n,s){try{var a="",c=s;do a+=Ne(c),c=c.return;while(c);var h=a}catch(m){h=` 39Error generating stack: `+m.message+` 40`+m.stack}return{value:n,source:s,stack:h,digest:null}}function md(n,s,a){return{value:n,source:null,stack:a??null,digest:s??null}}function gd(n,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var _C=typeof WeakMap=="function"?WeakMap:Map;function lg(n,s,a){a=Zn(-1,a),a.tag=3,a.payload={element:null};var c=s.value;return a.callback=function(){wl||(wl=!0,jd=c),gd(n,s)},a}function cg(n,s,a){a=Zn(-1,a),a.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=s.value;a.payload=function(){return c(h)},a.callback=function(){gd(n,s)}}var m=n.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){gd(n,s),typeof c!="function"&&(Or===null?Or=new Set([this]):Or.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})}),a}function ug(n,s,a){var c=n.pingCache;if(c===null){c=n.pingCache=new _C;var h=new Set;c.set(s,h)}else h=c.get(s),h===void 0&&(h=new Set,c.set(s,h));h.has(a)||(h.add(a),n=zC.bind(null,n,s,a),s.then(n,n))}function dg(n){do{var s;if((s=n.tag===13)&&(s=n.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return n;n=n.return}while(n!==null);return null}function fg(n,s,a,c,h){return(n.mode&1)===0?(n===s?n.flags|=65536:(n.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(s=Zn(-1,1),s.tag=2,Tr(a,s,1))),a.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var RC=_.ReactCurrentOwner,Ft=!1;function Rt(n,s,a,c){s.child=n===null?Om(s,null,a,c):go(s,n.child,a,c)}function hg(n,s,a,c,h){a=a.render;var m=s.ref;return vo(s,h),c=ad(n,s,a,c,m,h),a=ld(),n!==null&&!Ft?(s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~h,er(n,s,h)):(Ye&&a&&Vu(s),s.flags|=1,Rt(n,s,c,h),s.child)}function pg(n,s,a,c,h){if(n===null){var m=a.type;return typeof m=="function"&&!Fd(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=m,mg(n,s,m,c,h)):(n=kl(a.type,null,c,s,s.mode,h),n.ref=s.ref,n.return=s,s.child=n)}if(m=n.child,(n.lanes&h)===0){var b=m.memoizedProps;if(a=a.compare,a=a!==null?a:Ni,a(b,c)&&n.ref===s.ref)return er(n,s,h)}return s.flags|=1,n=Ir(m,c),n.ref=s.ref,n.return=s,s.child=n}function mg(n,s,a,c,h){if(n!==null){var m=n.memoizedProps;if(Ni(m,c)&&n.ref===s.ref)if(Ft=!1,s.pendingProps=c=m,(n.lanes&h)!==0)(n.flags&131072)!==0&&(Ft=!0);else return s.lanes=n.lanes,er(n,s,h)}return yd(n,s,a,c,h)}function gg(n,s,a){var c=s.pendingProps,h=c.children,m=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(So,Yt),Yt|=a;else{if((a&1073741824)===0)return n=m!==null?m.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:n,cachePool:null,transitions:null},s.updateQueue=null,qe(So,Yt),Yt|=n,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:a,qe(So,Yt),Yt|=c}
vendor: 37,978 bytes, line 40
40else m!==null?(c=m.baseLanes|a,s.memoizedState=null):c=a,qe(So,Yt),Yt|=c;return Rt(n,s,h,a),s.child}function yg(n,s){var a=s.ref;(n===null&&a!==null||n!==null&&n.ref!==a)&&(s.flags|=512,s.flags|=2097152)}function yd(n,s,a,c,h){var m=Lt(a)?ms:St.current;return m=fo(s,m),vo(s,h),a=ad(n,s,a,c,m,h),c=ld(),n!==null&&!Ft?(s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~h,er(n,s,h)):(Ye&&c&&Vu(s),s.flags|=1,Rt(n,s,a,h),s.child)}function vg(n,s,a,c,h){if(Lt(a)){var m=!0;Xa(s)}else m=!1;if(vo(s,h),s.stateNode===null)ml(n,s),ig(s,a,c),pd(s,a,c,h),c=!0;else if(n===null){var b=s.stateNode,R=s.memoizedProps;b.props=R;var O=b.context,U=a.contextType;typeof U=="object"&&U!==null?U=en(U):(U=Lt(a)?ms:St.current,U=fo(s,U));var Q=a.getDerivedStateFromProps,Y=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function";Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(R!==c||O!==U)&&ag(s,b,c,U),Rr=!1;var q=s.memoizedState;b.state=q,il(s,c,b,h),O=s.memoizedState,R!==c||q!==O||It.current||Rr?(typeof Q=="function"&&(hd(s,a,Q,c),O=s.memoizedState),(R=Rr||og(s,a,R,c,q,O,U))?(Y||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(s.flags|=4194308)):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=O),b.props=c,b.state=O,b.context=U,c=R):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{b=s.stateNode,Mm(n,s),R=s.memoizedProps,U=s.type===s.elementType?R:dn(s.type,R),b.props=U,Y=s.pendingProps,q=b.context,O=a.contextType,typeof O=="object"&&O!==null?O=en(O):(O=Lt(a)?ms:St.current,O=fo(s,O));var le=a.getDerivedStateFromProps;(Q=typeof le=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(R!==Y||q!==O)&&ag(s,b,c,O),Rr=!1,q=s.memoizedState,b.state=q,il(s,c,b,h);var he=s.memoizedState;R!==Y||q!==he||It.current||Rr?(typeof le=="function"&&(hd(s,a,le,c),he=s.memoizedState),(U=Rr||og(s,a,U,c,q,he,O)||!1)?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,he,O),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,he,O)),typeof b.componentDidUpdate=="function"&&(s.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof b.componentDidUpdate!="function"||R===n.memoizedProps&&q===n.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&q===n.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=he),b.props=c,b.state=he,b.context=O,c=U):(typeof b.componentDidUpdate!="function"||R===n.memoizedProps&&q===n.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&q===n.memoizedState||(s.flags|=1024),c=!1)}return vd(n,s,a,c,m,h)}function vd(n,s,a,c,h,m){yg(n,s);var b=(s.flags&128)!==0;if(!c&&!b)return h&&Cm(s,a,!1),er(n,s,m);c=s.stateNode,RC.current=s;var R=b&&typeof a.getDerivedStateFromError!="function"?null:c.render();return s.flags|=1,n!==null&&b?(s.child=go(s,n.child,null,m),s.child=go(s,null,R,m)):Rt(n,s,R,m),s.memoizedState=c.state,h&&Cm(s,a,!0),s.child}function xg(n){var s=n.stateNode;s.pendingContext?bm(n,s.pendingContext,s.pendingContext!==s.context):s.context&&bm(n,s.context,!1),td(n,s.containerInfo)}function wg(n,s,a,c,h){return mo(),Ku(h),s.flags|=256,Rt(n,s,a,c),s.child}var xd={dehydrated:null,treeContext:null,retryLane:0};function wd(n){return{baseLanes:n,cachePool:null,transitions:null}}function bg(n,s,a){var c=s.pendingProps,h=Xe.current,m=!1,b=(s.flags&128)!==0,R;if((R=b)||(R=n!==null&&n.memoizedState===null?!1:(h&2)!==0),R?(m=!0,s.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),qe(Xe,h&1),n===null)return Qu(s),n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((s.mode&1)===0?s.lanes=1:n.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(b=c.children,n=c.fallback,m?(c=s.mode,m=s.child,b={mode:"hidden",children:b},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=b):m=Pl(b,c,0,null),n=Ns(n,c,a,null),m.return=s,n.return=s,m.sibling=n,s.child=m,s.child.memoizedState=wd(a),s.memoizedState=xd,n):bd(s,b));if(h=n.memoizedState,h!==null&&(R=h.dehydrated,R!==null))return TC(n,s,b,c,R,h,a);if(m){m=c.fallback,b=s.mode,h=n.child,R=h.sibling;var O={mode:"hidden",children:c.children};return(b&1)===0&&s.child!==h?(c=s.child,c.childLanes=0,c.pendingProps=O,s.deletions=null):(c=Ir(h,O),c.subtreeFlags=h.subtreeFlags&14680064),R!==null?m=Ir(R,m):(m=Ns(m,b,a,null),m.flags|=2),m.return=s,c.return=s,c.sibling=m,s.child=c,c=m,m=s.child,b=n.child.memoizedState,b=b===null?wd(a):{baseLanes:b.baseLanes|a,cachePool:null,transitions:b.transitions},m.memoizedState=b,m.childLanes=n.childLanes&~a,s.memoizedState=xd,c}return m=n.child,n=m.sibling,c=Ir(m,{mode:"visible",children:c.children}),(s.mode&1)===0&&(c.lanes=a),c.return=s,c.sibling=null,n!==null&&(a=s.deletions,a===null?(s.deletions=[n],s.flags|=16):a.push(n)),s.child=c,s.memoizedState=null,c}function bd(n,s){return s=Pl({mode:"visible",children:s},n.mode,0,null),s.return=n,n.child=s}function pl(n,s,a,c){return c!==null&&Ku(c),go(s,n.child,null,a),n=bd(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function TC(n,s,a,c,h,m,b){if(a)return s.flags&256?(s.flags&=-257,c=md(Error(r(422))),pl(n,s,b,c)):s.memoizedState!==null?(s.child=n.child,s.flags|=128,null):(m=c.fallback,h=s.mode,c=Pl({mode:"visible",children:c.children},h,0,null),m=Ns(m,h,b,null),m.flags|=2,c.return=s,m.return=s,c.sibling=m,s.child=c,(s.mode&1)!==0&&go(s,n.child,null,b),s.child.memoizedState=wd(b),s.memoizedState=xd,m);if((s.mode&1)===0)return pl(n,s,b,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var R=c.dgst;return c=R,m=Error(r(419)),c=md(m,c,void 0),pl(n,s,b,c)}if(R=(b&n.childLanes)!==0,Ft||R){if(c=mt,c!==null){switch(b&-b){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|b))!==0?0:h,h!==0&&h!==m.retryLane&&(m.retryLane=h,Jn(n,h),pn(c,n,h,-1))}return Ld(),c=md(Error(r(421))),pl(n,s,b,c)}return h.data==="$?"?(s.flags|=128,s.child=n.child,s=WC.bind(null,n),h._reactRetry=s,null):(n=m.treeContext,Kt=Nr(h.nextSibling),Qt=s,Ye=!0,un=null,n!==null&&(Jt[Zt++]=Gn,Jt[Zt++]=Xn,Jt[Zt++]=gs,Gn=n.id,Xn=n.overflow,gs=s),s=bd(s,c.children),s.flags|=4096,s)}function Sg(n,s,a){n.lanes|=s;var c=n.alternate;c!==null&&(c.lanes|=s),Ju(n.return,s,a)}function Sd(n,s,a,c,h){var m=n.memoizedState;m===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h}:(m.isBackwards=s,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=a,m.tailMode=h)}function Cg(n,s,a){var c=s.pendingProps,h=c.revealOrder,m=c.tail;if(Rt(n,s,c.children,a),c=Xe.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Sg(n,a,s);else if(n.tag===19)Sg(n,a,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break e;for(;n.sibling===null;){if(n.return===null||n.return===s)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(qe(Xe,c),(s.mode&1)===0)s.memoizedState=null;else switch(h){case"forwards":for(a=s.child,h=null;a!==null;)n=a.alternate,n!==null&&al(n)===null&&(h=a),a=a.sibling;a=h,a===null?(h=s.child,s.child=null):(h=a.sibling,a.sibling=null),Sd(s,!1,h,a,m);break;case"backwards":for(a=null,h=s.child,s.child=null;h!==null;){if(n=h.alternate,n!==null&&al(n)===null){s.child=h;break}n=h.sibling,h.sibling=a,a=h,h=n}Sd(s,!0,a,null,m);break;case"together":Sd(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ml(n,s){(s.mode&1)===0&&n!==null&&(n.alternate=null,s.alternate=null,s.flags|=2)}function er(n,s,a){if(n!==null&&(s.dependencies=n.dependencies),bs|=s.lanes,(a&s.childLanes)===0)return null;if(n!==null&&s.child!==n.child)throw Error(r(153));if(s.child!==null){for(n=s.child,a=Ir(n,n.pendingProps),s.child=a,a.return=s;n.sibling!==null;)n=n.sibling,a=a.sibling=Ir(n,n.pendingProps),a.return=s;a.sibling=null}return s.child}function jC(n,s,a){switch(s.tag){case 3:xg(s),mo();break;case 5:Lm(s);break;case 1:Lt(s.type)&&Xa(s);break;case 4:td(s,s.stateNode.containerInfo);break;case 10:var c=s.type._context,h=s.memoizedProps.value;qe(rl,c._currentValue),c._currentValue=h;break;case 13:if(c=s.memoizedState,c!==null)return c.dehydrated!==null?(qe(Xe,Xe.current&1),s.flags|=128,null):(a&s.child.childLanes)!==0?bg(n,s,a):(qe(Xe,Xe.current&1),n=er(n,s,a),n!==null?n.sibling:null);qe(Xe,Xe.current&1);break;case 19:if(c=(a&s.childLanes)!==0,(n.flags&128)!==0){if(c)return Cg(n,s,a);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),qe(Xe,Xe.current),c)break;return null;case 22:case 23:return s.lanes=0,gg(n,s,a)}return er(n,s,a)}var Eg,Cd,Ng,kg;Eg=function(n,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)n.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Cd=function(){},Ng=function(n,s,a,c){var h=n.memoizedProps;if(h!==c){n=s.stateNode,xs(Tn.current);var m=null;switch(a){case"input":h=Dt(n,h),c=Dt(n,c),m=[];break;case"select":h=J({},h,{value:void 0}),c=J({},c,{value:void 0}),m=[];break;case"textarea":h=tu(n,h),c=tu(n,c),m=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Ka)}ru(a,c);var b;a=null;for(U in h)if(!c.hasOwnProperty(U)&&h.hasOwnProperty(U)&&h[U]!=null)if(U==="style"){var R=h[U];for(b in R)R.hasOwnProperty(b)&&(a||(a={}),a[b]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(i.hasOwnProperty(U)?m||(m=[]):(m=m||[]).push(U,null));for(U in c){var O=c[U];if(R=h!=null?h[U]:void 0,c.hasOwnProperty(U)&&O!==R&&(O!=null||R!=null))if(U==="style")if(R){for(b in R)!R.hasOwnProperty(b)||O&&O.hasOwnProperty(b)||(a||(a={}),a[b]="");for(b in O)O.hasOwnProperty(b)&&R[b]!==O[b]&&(a||(a={}),a[b]=O[b])}else a||(m||(m=[]),m.push(U,a)),a=O;else U==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,R=R?R.__html:void 0,O!=null&&R!==O&&(m=m||[]).push(U,O)):U==="children"?typeof O!="string"&&typeof O!="number"||(m=m||[]).push(U,""+O):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(i.hasOwnProperty(U)?(O!=null&&U==="onScroll"&&Qe("scroll",n),m||R===O||(m=[])):(m=m||[]).push(U,O))}a&&(m=m||[]).push("style",a);var U=m;(s.updateQueue=U)&&(s.flags|=4)}},kg=function(n,s,a,c){a!==c&&(s.flags|=4)};function $i(n,s){if(!Ye)switch(n.tailMode){case"hidden":s=n.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Et(n){var s=n.alternate!==null&&n.alternate.child===n.child,a=0,c=0;if(s)for(var h=n.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=a,s}function OC(n,s,a){var c=s.pendingProps;switch(Hu(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(s),null;case 1:return Lt(s.type)&&Ga(),Et(s),null;case 3:return c=s.stateNode,xo(),Ke(It),Ke(St),sd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(tl(s)?s.flags|=4:n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,un!==null&&(Md(un),un=null))),Cd(n,s),Et(s),null;case 5:nd(s);var h=xs(Di.current);if(a=s.type,n!==null&&s.stateNode!=null)Ng(n,s,a,c,h),n.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!c){if(s.stateNode===null)throw Error(r(166));return Et(s),null}if(n=xs(Tn.current),tl(s)){c=s.stateNode,a=s.type;var m=s.memoizedProps;switch(c[Rn]=s,c[Ti]=m,n=(s.mode&1)!==0,a){case"dialog":Qe("cancel",c),Qe("close",c);break;case"iframe":case"object":case"embed":Qe("load",c);break;case"video":case"audio":for(h=0;h<Pi.length;h++)Qe(Pi[h],c);break;case"source":Qe("error",c);break;case"img":case"image":case"link":Qe("error",c),Qe("load",c);break;case"details":Qe("toggle",c);break;case"input":gr(c,m),Qe("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Qe("invalid",c);break;case"textarea":cp(c,m),Qe("invalid",c)}ru(a,m),h=null;for(var b in m)if(m.hasOwnProperty(b)){var R=m[b];b==="children"?typeof R=="string"?c.textContent!==R&&(m.suppressHydrationWarning!==!0&&Qa(c.textContent,R,n),h=["children",R]):typeof R=="number"&&c.textContent!==""+R&&(m.suppressHydrationWarning!==!0&&Qa(c.textContent,R,n),h=["children",""+R]):i.hasOwnProperty(b)&&R!=null&&b==="onScroll"&&Qe("scroll",c)}switch(a){case"input":Ee(c),Na(c,m,!0);break;case"textarea":Ee(c),dp(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Ka)}c=h,s.updateQueue=c,c!==null&&(s.flags|=4)}else{b=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=fp(a)),n==="http://www.w3.org/1999/xhtml"?a==="script"?(n=b.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=b.createElement(a,{is:c.is}):(n=b.createElement(a),a==="select"&&(b=n,c.multiple?b.multiple=!0:c.size&&(b.size=c.size))):n=b.createElementNS(n,a),n[Rn]=s,n[Ti]=c,Eg(n,s,!1,!1),s.stateNode=n;e:{switch(b=su(a,c),a){case"dialog":Qe("cancel",n),Qe("close",n),h=c;break;case"iframe":case"object":case"embed":Qe("load",n),h=c;break;case"video":case"audio":for(h=0;h<Pi.length;h++)Qe(Pi[h],n);h=c;break;case"source":Qe("error",n),h=c;break;case"img":case"image":case"link":Qe("error",n),Qe("load",n),h=c;break;case"details":Qe("toggle",n),h=c;break;case"input":gr(n,c),h=Dt(n,c),Qe("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=J({},c,{value:void 0}),Qe("invalid",n);break;case"textarea":cp(n,c),h=tu(n,c),Qe("invalid",n);break;default:h=c}ru(a,h),R=h;for(m in R)if(R.hasOwnProperty(m)){var O=R[m];m==="style"?mp(n,O):m==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&hp(n,O)):m==="children"?typeof O=="string"?(a!=="textarea"||O!=="")&&li(n,O):typeof O=="number"&&li(n,""+O):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(i.hasOwnProperty(m)?O!=null&&m==="onScroll"&&Qe("scroll",n):O!=null&&P(n,m,O,b))}switch(a){case"input":Ee(n),Na(n,c,!1);break;case"textarea":Ee(n),dp(n);break;case"option":c.value!=null&&n.setAttribute("value",""+ge(c.value));break;case"select":n.multiple=!!c.multiple,m=c.value,m!=null?Zs(n,!!c.multiple,m,!1):c.defaultValue!=null&&Zs(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Ka)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Et(s),null;case 6:if(n&&s.stateNode!=null)kg(n,s,n.memoizedProps,c);else{if(typeof c!="string"&&s.stateNode===null)throw Error(r(166));if(a=xs(Di.current),xs(Tn.current),tl(s)){if(c=s.stateNode,a=s.memoizedProps,c[Rn]=s,(m=c.nodeValue!==a)&&(n=Qt,n!==null))switch(n.tag){case 3:Qa(c.nodeValue,a,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Qa(c.nodeValue,a,(n.mode&1)!==0)}m&&(s.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[Rn]=s,s.stateNode=c}return Et(s),null;case 13:if(Ke(Xe),c=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Ye&&Kt!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Rm(),mo(),s.flags|=98560,m=!1;else if(m=tl(s),c!==null&&c.dehydrated!==null){if(n===null){if(!m)throw Error(r(318));if(m=s.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[Rn]=s}else mo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Et(s),m=!1}else un!==null&&(Md(un),un=null),m=!0;if(!m)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=a,s):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(s.child.flags|=8192,(s.mode&1)!==0&&(n===null||(Xe.current&1)!==0?ut===0&&(ut=3):Ld())),s.updateQueue!==null&&(s.flags|=4),Et(s),null);case 4:return xo(),Cd(n,s),n===null&&_i(s.stateNode.containerInfo),Et(s),null;case 10:return Xu(s.type._context),Et(s),null;case 17:return Lt(s.type)&&Ga(),Et(s),null;case 19:if(Ke(Xe),m=s.memoizedState,m===null)return Et(s),null;if(c=(s.flags&128)!==0,b=m.rendering,b===null)if(c)$i(m,!1);else{if(ut!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(b=al(n),b!==null){for(s.flags|=128,$i(m,!1),c=b.updateQueue,c!==null&&(s.updateQueue=c,s.flags|=4),s.subtreeFlags=0,c=a,a=s.child;a!==null;)m=a,n=c,m.flags&=14680066,b=m.alternate,b===null?(m.childLanes=0,m.lanes=n,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=b.childLanes,m.lanes=b.lanes,m.child=b.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=b.memoizedProps,m.memoizedState=b.memoizedState,m.updateQueue=b.updateQueue,m.type=b.type,n=b.dependencies,m.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a=a.sibling;return qe(Xe,Xe.current&1|2),s.child}n=n.sibling}m.tail!==null&&rt()>Co&&(s.flags|=128,c=!0,$i(m,!1),s.lanes=4194304)}else{if(!c)if(n=al(b),n!==null){if(s.flags|=128,c=!0,a=n.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),$i(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!Ye)return Et(s),null}else 2*rt()-m.renderingStartTime>Co&&a!==1073741824&&(s.flags|=128,c=!0,$i(m,!1),s.lanes=4194304);m.isBackwards?(b.sibling=s.child,s.child=b):(a=m.last,a!==null?a.sibling=b:s.child=b,m.last=b)}return m.tail!==null?(s=m.tail,m.rendering=s,m.tail=s.sibling,m.renderingStartTime=rt(),s.sibling=null,a=Xe.current,qe(Xe,c?a&1|2:a&1),s):(Et(s),null);case 22:case 23:return Id(),c=s.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(s.flags|=8192),c&&(s.mode&1)!==0?(Yt&1073741824)!==0&&(Et(s),s.subtreeFlags&6&&(s.flags|=8192)):Et(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function AC(n,s){switch(Hu(s),s.tag){case 1:return Lt(s.type)&&Ga(),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return xo(),Ke(It),Ke(St),sd(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 5:return nd(s),null;case 13:if(Ke(Xe),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(r(340));mo()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return Ke(Xe),null;case 4:return xo(),null;case 10:return Xu(s.type._context),null;case 22:case 23:return Id(),null;case 24:return null;default:return null}}var gl=!1,Nt=!1,MC=typeof WeakSet=="function"?WeakSet:Set,fe=null;function bo(n,s){var a=n.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){et(n,s,c)}else a.current=null}function Ed(n,s,a){try{a()}catch(c){et(n,s,c)}}var Pg=!1;function DC(n,s){if(Iu=Ia,n=om(),_u(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var b=0,R=-1,O=-1,U=0,Q=0,Y=n,q=null;t:for(;;){for(var le;Y!==a||h!==0&&Y.nodeType!==3||(R=b+h),Y!==m||c!==0&&Y.nodeType!==3||(O=b+c),Y.nodeType===3&&(b+=Y.nodeValue.length),(le=Y.firstChild)!==null;)q=Y,Y=le;for(;;){if(Y===n)break t;if(q===a&&++U===h&&(R=b),q===m&&++Q===c&&(O=b),(le=Y.nextSibling)!==null)break;Y=q,q=Y.parentNode}Y=le}a=R===-1||O===-1?null:{start:R,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Lu={focusedElem:n,selectionRange:a},Ia=!1,fe=s;fe!==null;)if(s=fe,n=s.child,(s.subtreeFlags&1028)!==0&&n!==null)n.return=s,fe=n;else for(;fe!==null;){s=fe;try{var he=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var ye=he.memoizedProps,st=he.memoizedState,L=s.stateNode,M=L.getSnapshotBeforeUpdate(s.elementType===s.type?ye:dn(s.type,ye),st);L.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var B=s.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Z){et(s,s.return,Z)}if(n=s.sibling,n!==null){n.return=s.return,fe=n;break}fe=s.return}return he=Pg,Pg=!1,he}function Ui(n,s,a){var c=s.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var m=h.destroy;h.destroy=void 0,m!==void 0&&Ed(s,a,m)}h=h.next}while(h!==c)}}function yl(n,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&n)===n){var c=a.create;a.destroy=c()}a=a.next}while(a!==s)}}function Nd(n){var s=n.ref;if(s!==null){var a=n.stateNode;switch(n.tag){case 5:n=a;break;default:n=a}typeof s=="function"?s(n):s.current=n}}function _g(n){var s=n.alternate;s!==null&&(n.alternate=null,_g(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&(delete s[Rn],delete s[Ti],delete s[Uu],delete s[yC],delete s[vC])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Rg(n){return n.tag===5||n.tag===3||n.tag===4}function Tg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Rg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function kd(n,s,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(n,s):a.insertBefore(n,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(n,a)):(s=a,s.appendChild(n)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=Ka));else if(c!==4&&(n=n.child,n!==null))for(kd(n,s,a),n=n.sibling;n!==null;)kd(n,s,a),n=n.sibling}function Pd(n,s,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,s?a.insertBefore(n,s):a.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Pd(n,s,a),n=n.sibling;n!==null;)Pd(n,s,a),n=n.sibling}var xt=null,fn=!1;function jr(n,s,a){for(a=a.child;a!==null;)jg(n,s,a),a=a.sibling}function jg(n,s,a){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Ta,a)}catch{}switch(a.tag){case 5:Nt||bo(a,s);case 6:var c=xt,h=fn;xt=null,jr(n,s,a),xt=c,fn=h,xt!==null&&(fn?(n=xt,a=a.stateNode,n.nodeType===8?n.parentNode.removeChild(a):n.removeChild(a)):xt.removeChild(a.stateNode));break;case 18:xt!==null&&(fn?(n=xt,a=a.stateNode,n.nodeType===8?$u(n.parentNode,a):n.nodeType===1&&$u(n,a),xi(n)):$u(xt,a.stateNode));break;case 4:c=xt,h=fn,xt=a.stateNode.containerInfo,fn=!0,jr(n,s,a),xt=c,fn=h;break;case 0:case 11:case 14:case 15:if(!Nt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var m=h,b=m.destroy;m=m.tag,b!==void 0&&((m&2)!==0||(m&4)!==0)&&Ed(a,s,b),h=h.next}while(h!==c)}jr(n,s,a);break;case 1:if(!Nt&&(bo(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(R){et(a,s,R)}jr(n,s,a);break;case 21:jr(n,s,a);break;case 22:a.mode&1?(Nt=(c=Nt)||a.memoizedState!==null,jr(n,s,a),Nt=c):jr(n,s,a);break;default:jr(n,s,a)}}function Og(n){var s=n.updateQueue;if(s!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new MC),s.forEach(function(c){var h=VC.bind(null,n,c);a.has(c)||(a.add(c),c.then(h,h))})}}function hn(n,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];try{var m=n,b=s,R=b;e:for(;R!==null;){switch(R.tag){case 5:xt=R.stateNode,fn=!1;break e;case 3:xt=R.stateNode.containerInfo,fn=!0;break e;case 4:xt=R.stateNode.containerInfo,fn=!0;break e}R=R.return}if(xt===null)throw Error(r(160));jg(m,b,h),xt=null,fn=!1;var O=h.alternate;O!==null&&(O.return=null),h.return=null}catch(U){et(h,s,U)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Ag(s,n),s=s.sibling}function Ag(n,s){var a=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(hn(s,n),On(n),c&4){try{Ui(3,n,n.return),yl(3,n)}catch(ye){et(n,n.return,ye)}try{Ui(5,n,n.return)}catch(ye){et(n,n.return,ye)}}break;case 1:hn(s,n),On(n),c&512&&a!==null&&bo(a,a.return);break;case 5:if(hn(s,n),On(n),c&512&&a!==null&&bo(a,a.return),n.flags&32){var h=n.stateNode;try{li(h,"")}catch(ye){et(n,n.return,ye)}}if(c&4&&(h=n.stateNode,h!=null)){var m=n.memoizedProps,b=a!==null?a.memoizedProps:m,R=n.type,O=n.updateQueue;if(n.updateQueue=null,O!==null)try{R==="input"&&m.type==="radio"&&m.name!=null&&yr(h,m),su(R,b);var U=su(R,m);for(b=0;b<O.length;b+=2){var Q=O[b],Y=O[b+1];Q==="style"?mp(h,Y):Q==="dangerouslySetInnerHTML"?hp(h,Y):Q==="children"?li(h,Y):P(h,Q,Y,U)}switch(R){case"input":Qn(h,m);break;case"textarea":up(h,m);break;case"select":var q=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!m.multiple;var le=m.value;le!=null?Zs(h,!!m.multiple,le,!1):q!==!!m.multiple&&(m.defaultValue!=null?Zs(h,!!m.multiple,m.defaultValue,!0):Zs(h,!!m.multiple,m.multiple?[]:"",!1))}h[Ti]=m}catch(ye){et(n,n.return,ye)}}break;case 6:if(hn(s,n),On(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,m=n.memoizedProps;try{h.nodeValue=m}catch(ye){et(n,n.return,ye)}}break;case 3:if(hn(s,n),On(n),c&4&&a!==null&&a.memoizedState.isDehydrated)try{xi(s.containerInfo)}catch(ye){et(n,n.return,ye)}break;case 4:hn(s,n),On(n);break;case 13:hn(s,n),On(n),h=n.child,h.flags&8192&&(m=h.memoizedState!==null,h.stateNode.isHidden=m,!m||h.alternate!==null&&h.alternate.memoizedState!==null||(Td=rt())),c&4&&Og(n);break;case 22:if(Q=a!==null&&a.memoizedState!==null,n.mode&1?(Nt=(U=Nt)||Q,hn(s,n),Nt=U):hn(s,n),On(n),c&8192){if(U=n.memoizedState!==null,(n.stateNode.isHidden=U)&&!Q&&(n.mode&1)!==0)for(fe=n,Q=n.child;Q!==null;){for(Y=fe=Q;fe!==null;){switch(q=fe,le=q.child,q.tag){case 0:case 11:case 14:case 15:Ui(4,q,q.return);break;case 1:bo(q,q.return);var he=q.stateNode;if(typeof he.componentWillUnmount=="function"){c=q,a=q.return;try{s=c,he.props=s.memoizedProps,he.state=s.memoizedState,he.componentWillUnmount()}catch(ye){et(c,a,ye)}}break;case 5:bo(q,q.return);break;case 22:if(q.memoizedState!==null){Ig(Y);continue}}le!==null?(le.return=q,fe=le):Ig(Y)}Q=Q.sibling}e:for(Q=null,Y=n;;){if(Y.tag===5){if(Q===null){Q=Y;try{h=Y.stateNode,U?(m=h.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(R=Y.stateNode,O=Y.memoizedProps.style,b=O!=null&&O.hasOwnProperty("display")?O.display:null,R.style.display=pp("display",b))}catch(ye){et(n,n.return,ye)}}}else if(Y.tag===6){if(Q===null)try{Y.stateNode.nodeValue=U?"":Y.memoizedProps}catch(ye){et(n,n.return,ye)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===n)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===n)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===n)break e;Q===Y&&(Q=null),Y=Y.return}Q===Y&&(Q=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:hn(s,n),On(n),c&4&&Og(n);break;case 21:break;default:hn(s,n),On(n)}}function On(n){var s=n.flags;if(s&2){try{e:{for(var a=n.return;a!==null;){if(Rg(a)){var c=a;break e}a=a.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(li(h,""),c.flags&=-33);var m=Tg(n);Pd(n,m,h);break;case 3:case 4:var b=c.stateNode.containerInfo,R=Tg(n);kd(n,R,b);break;default:throw Error(r(161))}}catch(O){et(n,n.return,O)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function IC(n,s,a){fe=n,Mg(n)}function Mg(n,s,a){for(var c=(n.mode&1)!==0;fe!==null;){var h=fe,m=h.child;if(h.tag===22&&c){var b=h.memoizedState!==null||gl;if(!b){var R=h.alternate,O=R!==null&&R.memoizedState!==null||Nt;R=gl;var U=Nt;if(gl=b,(Nt=O)&&!U)for(fe=h;fe!==null;)b=fe,O=b.child,b.tag===22&&b.memoizedState!==null?Lg(h):O!==null?(O.return=b,fe=O):Lg(h);for(;m!==null;)fe=m,Mg(m),m=m.sibling;fe=h,gl=R,Nt=U}Dg(n)}else(h.subtreeFlags&8772)!==0&&m!==null?(m.return=h,fe=m):Dg(n)}}function Dg(n){for(;fe!==null;){var s=fe;if((s.flags&8772)!==0){var a=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Nt||yl(5,s);break;case 1:var c=s.stateNode;if(s.flags&4&&!Nt)if(a===null)c.componentDidMount();else{var h=s.elementType===s.type?a.memoizedProps:dn(s.type,a.memoizedProps);c.componentDidUpdate(h,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=s.updateQueue;m!==null&&Im(s,m,c);break;case 3:var b=s.updateQueue;if(b!==null){if(a=null,s.child!==null)switch(s.child.tag){case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}Im(s,b,a)}break;case 5:var R=s.stateNode;if(a===null&&s.flags&4){a=R;var O=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&a.focus();break;case"img":O.src&&(a.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var U=s.alternate;if(U!==null){var Q=U.memoizedState;if(Q!==null){var Y=Q.dehydrated;Y!==null&&xi(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Nt||s.flags&512&&Nd(s)}catch(q){et(s,s.return,q)}}if(s===n){fe=null;break}if(a=s.sibling,a!==null){a.return=s.return,fe=a;break}fe=s.return}}function Ig(n){for(;fe!==null;){var s=fe;if(s===n){fe=null;break}var a=s.sibling;if(a!==null){a.return=s.return,fe=a;break}fe=s.return}}function Lg(n){for(;fe!==null;){var s=fe;try{switch(s.tag){case 0:case 11:case 15:var a=s.return;try{yl(4,s)}catch(O){et(s,a,O)}break;case 1:var c=s.stateNode;if(typeof c.componentDidMount=="function"){var h=s.return;try{c.componentDidMount()}catch(O){et(s,h,O)}}var m=s.return;try{Nd(s)}catch(O){et(s,m,O)}break;case 5:var b=s.return;try{Nd(s)}catch(O){et(s,b,O)}}}catch(O){et(s,s.return,O)}if(s===n){fe=null;break}var R=s.sibling;if(R!==null){R.return=s.return,fe=R;break}fe=s.return}}var LC=Math.ceil,vl=_.ReactCurrentDispatcher,_d=_.ReactCurrentOwner,nn=_.ReactCurrentBatchConfig,Le=0,mt=null,it=null,wt=0,Yt=0,So=kr(0),ut=0,zi=null,bs=0,xl=0,Rd=0,Wi=null,Bt=null,Td=0,Co=1/0,tr=null,wl=!1,jd=null,Or=null,bl=!1,Ar=null,Sl=0,Vi=0,Od=null,Cl=-1,El=0;function Tt(){return(Le&6)!==0?rt():Cl!==-1?Cl:Cl=rt()}function Mr(n){return(n.mode&1)===0?1:(Le&2)!==0&&wt!==0?wt&-wt:wC.transition!==null?(El===0&&(El=Tp()),El):(n=We,n!==0||(n=window.event,n=n===void 0?16:Bp(n.type)),n)}function pn(n,s,a,c){if(50<Vi)throw Vi=0,Od=null,Error(r(185));pi(n,a,c),((Le&2)===0||n!==mt)&&(n===mt&&((Le&2)===0&&(xl|=a),ut===4&&Dr(n,wt)),$t(n,c),a===1&&Le===0&&(s.mode&1)===0&&(Co=rt()+500,Ja&&_r()))}function $t(n,s){var a=n.callbackNode;w1(n,s);var c=Aa(n,n===mt?wt:0);if(c===0)a!==null&&Pp(a),n.callbackNode=null,n.callbackPriority=0;else if(s=c&-c,n.callbackPriority!==s){if(a!=null&&Pp(a),s===1)n.tag===0?xC(Bg.bind(null,n)):Em(Bg.bind(null,n)),mC(function(){(Le&6)===0&&_r()}),a=null;else{switch(jp(c)){case 1:a=du;break;case 4:a=_p;break;case 16:a=Ra;break;case 536870912:a=Rp;break;default:a=Ra}a=Qg(a,Fg.bind(null,n))}n.callbackPriority=s,n.callbackNode=a}}function Fg(n,s){if(Cl=-1,El=0,(Le&6)!==0)throw Error(r(327));var a=n.callbackNode;if(Eo()&&n.callbackNode!==a)return null;var c=Aa(n,n===mt?wt:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||s)s=Nl(n,c);else{s=c;var h=Le;Le|=2;var m=Ug();(mt!==n||wt!==s)&&(tr=null,Co=rt()+500,Cs(n,s));do try{$C();break}catch(R){$g(n,R)}while(!0);Gu(),vl.current=m,Le=h,it!==null?s=0:(mt=null,wt=0,s=ut)}if(s!==0){if(s===2&&(h=fu(n),h!==0&&(c=h,s=Ad(n,h))),s===1)throw a=zi,Cs(n,0),Dr(n,c),$t(n,rt()),a;if(s===6)Dr(n,c);else{if(h=n.current.alternate,(c&30)===0&&!FC(h)&&(s=Nl(n,c),s===2&&(m=fu(n),m!==0&&(c=m,s=Ad(n,m))),s===1))throw a=zi,Cs(n,0),Dr(n,c),$t(n,rt()),a;switch(n.finishedWork=h,n.finishedLanes=c,s){case 0:case 1:throw Error(r(345));case 2:Es(n,Bt,tr);break;case 3:if(Dr(n,c),(c&130023424)===c&&(s=Td+500-rt(),10<s)){if(Aa(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Tt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=Bu(Es.bind(null,n,Bt,tr),s);break}Es(n,Bt,tr);break;case 4:if(Dr(n,c),(c&4194240)===c)break;for(s=n.eventTimes,h=-1;0<c;){var b=31-ln(c);m=1<<b,b=s[b],b>h&&(h=b),c&=~m}if(c=h,c=rt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*LC(c/1960))-c,10<c){n.timeoutHandle=Bu(Es.bind(null,n,Bt,tr),c);break}Es(n,Bt,tr);break;case 5:Es(n,Bt,tr);break;default:throw Error(r(329))}}}return $t(n,rt()),n.callbackNode===a?Fg.bind(null,n):null}function Ad(n,s){var a=Wi;return n.current.memoizedState.isDehydrated&&(Cs(n,s).flags|=256),n=Nl(n,s),n!==2&&(s=Bt,Bt=a,s!==null&&Md(s)),n}function Md(n){Bt===null?Bt=n:Bt.push.apply(Bt,n)}function FC(n){for(var s=n;;){if(s.flags&16384){var a=s.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var h=a[c],m=h.getSnapshot;h=h.value;try{if(!cn(m(),h))return!1}catch{return!1}}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Dr(n,s){for(s&=~Rd,s&=~xl,n.suspendedLanes|=s,n.pingedLanes&=~s,n=n.expirationTimes;0<s;){var a=31-ln(s),c=1<<a;n[a]=-1,s&=~c}}function Bg(n){if((Le&6)!==0)throw Error(r(327));Eo();var s=Aa(n,0);if((s&1)===0)return $t(n,rt()),null;var a=Nl(n,s);if(n.tag!==0&&a===2){var c=fu(n);c!==0&&(s=c,a=Ad(n,c))}if(a===1)throw a=zi,Cs(n,0),Dr(n,s),$t(n,rt()),a;if(a===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=s,Es(n,Bt,tr),$t(n,rt()),null}function Dd(n,s){var a=Le;Le|=1;try{return n(s)}finally{Le=a,Le===0&&(Co=rt()+500,Ja&&_r())}}function Ss(n){Ar!==null&&Ar.tag===0&&(Le&6)===0&&Eo();var s=Le;Le|=1;var a=nn.transition,c=We;try{if(nn.transition=null,We=1,n)return n()}finally{We=c,nn.transition=a,Le=s,(Le&6)===0&&_r()}}function Id(){Yt=So.current,Ke(So)}function Cs(n,s){n.finishedWork=null,n.finishedLanes=0;var a=n.timeoutHandle;if(a!==-1&&(n.timeoutHandle=-1,pC(a)),it!==null)for(a=it.return;a!==null;){var c=a;switch(Hu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ga();break;case 3:xo(),Ke(It),Ke(St),sd();break;case 5:nd(c);break;case 4:xo();break;case 13:Ke(Xe);break;case 19:Ke(Xe);break;case 10:Xu(c.type._context);break;case 22:case 23:Id()}a=a.return}if(mt=n,it=n=Ir(n.current,null),wt=Yt=s,ut=0,zi=null,Rd=xl=bs=0,Bt=Wi=null,vs!==null){for(s=0;s<vs.length;s++)if(a=vs[s],c=a.interleaved,c!==null){a.interleaved=null;var h=c.next,m=a.pending;if(m!==null){var b=m.next;m.next=h,c.next=b}a.pending=c}vs=null}return n}function $g(n,s){do{var a=it;try{if(Gu(),ll.current=fl,cl){for(var c=Je.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}cl=!1}if(ws=0,pt=ct=Je=null,Ii=!1,Li=0,_d.current=null,a===null||a.return===null){ut=1,zi=s,it=null;break}e:{var m=n,b=a.return,R=a,O=s;if(s=wt,R.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var U=O,Q=R,Y=Q.tag;if((Q.mode&1)===0&&(Y===0||Y===11||Y===15)){var q=Q.alternate;q?(Q.updateQueue=q.updateQueue,Q.memoizedState=q.memoizedState,Q.lanes=q.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var le=dg(b);if(le!==null){le.flags&=-257,fg(le,b,R,m,s),le.mode&1&&ug(m,U,s),s=le,O=U;var he=s.updateQueue;if(he===null){var ye=new Set;ye.add(O),s.updateQueue=ye}else he.add(O);break e}else{if((s&1)===0){ug(m,U,s),Ld();break e}O=Error(r(426))}}else if(Ye&&R.mode&1){var st=dg(b);if(st!==null){(st.flags&65536)===0&&(st.flags|=256),fg(st,b,R,m,s),Ku(wo(O,R));break e}}m=O=wo(O,R),ut!==4&&(ut=2),Wi===null?Wi=[m]:Wi.push(m),m=b;do{switch(m.tag){case 3:m.flags|=65536,s&=-s,m.lanes|=s;var L=lg(m,O,s);Dm(m,L);break e;case 1:R=O;var M=m.type,B=m.stateNode;if((m.flags&128)===0&&(typeof M.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(Or===null||!Or.has(B)))){m.flags|=65536,s&=-s,m.lanes|=s;var Z=cg(m,R,s);Dm(m,Z);break e}}m=m.return}while(m!==null)}Wg(a)}catch(ve){s=ve,it===a&&a!==null&&(it=a=a.return);continue}break}while(!0)}function Ug(){var n=vl.current;return vl.current=fl,n===null?fl:n}function Ld(){(ut===0||ut===3||ut===2)&&(ut=4),mt===null||(bs&268435455)===0&&(xl&268435455)===0||Dr(mt,wt)}function Nl(n,s){var a=Le;Le|=2;var c=Ug();(mt!==n||wt!==s)&&(tr=null,Cs(n,s));do try{BC();break}catch(h){$g(n,h)}while(!0);if(Gu(),Le=a,vl.current=c,it!==null)throw Error(r(261));return mt=null,wt=0,ut}function BC(){for(;it!==null;)zg(it)}function $C(){for(;it!==null&&!d1();)zg(it)}function zg(n){var s=qg(n.alternate,n,Yt);n.memoizedProps=n.pendingProps,s===null?Wg(n):it=s,_d.current=null}function Wg(n){var s=n;do{var a=s.alternate;if(n=s.return,(s.flags&32768)===0){if(a=OC(a,s,Yt),a!==null){it=a;return}}else{if(a=AC(a,s),a!==null){a.flags&=32767,it=a;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{ut=6,it=null;return}}if(s=s.sibling,s!==null){it=s;return}it=s=n}while(s!==null);ut===0&&(ut=5)}function Es(n,s,a){var c=We,h=nn.transition;try{nn.transition=null,We=1,UC(n,s,a,c)}finally{nn.transition=h,We=c}return null}function UC(n,s,a,c){do Eo();while(Ar!==null);if((Le&6)!==0)throw Error(r(327));a=n.finishedWork;var h=n.finishedLanes;if(a===null)return null;if(n.finishedWork=null,n.finishedLanes=0,a===n.current)throw Error(r(1
vendor: 4,204 bytes, line 40
4077));n.callbackNode=null,n.callbackPriority=0;var m=a.lanes|a.childLanes;if(b1(n,m),n===mt&&(it=mt=null,wt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||bl||(bl=!0,Qg(Ra,function(){return Eo(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=nn.transition,nn.transition=null;var b=We;We=1;var R=Le;Le|=4,_d.current=null,DC(n,a),Ag(a,n),aC(Lu),Ia=!!Iu,Lu=Iu=null,n.current=a,IC(a),f1(),Le=R,We=b,nn.transition=m}else n.current=a;if(bl&&(bl=!1,Ar=n,Sl=h),m=n.pendingLanes,m===0&&(Or=null),m1(a.stateNode),$t(n,rt()),s!==null)for(c=n.onRecoverableError,a=0;a<s.length;a++)h=s[a],c(h.value,{componentStack:h.stack,digest:h.digest});if(wl)throw wl=!1,n=jd,jd=null,n;return(Sl&1)!==0&&n.tag!==0&&Eo(),m=n.pendingLanes,(m&1)!==0?n===Od?Vi++:(Vi=0,Od=n):Vi=0,_r(),null}function Eo(){if(Ar!==null){var n=jp(Sl),s=nn.transition,a=We;try{if(nn.transition=null,We=16>n?16:n,Ar===null)var c=!1;else{if(n=Ar,Ar=null,Sl=0,(Le&6)!==0)throw Error(r(331));var h=Le;for(Le|=4,fe=n.current;fe!==null;){var m=fe,b=m.child;if((fe.flags&16)!==0){var R=m.deletions;if(R!==null){for(var O=0;O<R.length;O++){var U=R[O];for(fe=U;fe!==null;){var Q=fe;switch(Q.tag){case 0:case 11:case 15:Ui(8,Q,m)}var Y=Q.child;if(Y!==null)Y.return=Q,fe=Y;else for(;fe!==null;){Q=fe;var q=Q.sibling,le=Q.return;if(_g(Q),Q===U){fe=null;break}if(q!==null){q.return=le,fe=q;break}fe=le}}}var he=m.alternate;if(he!==null){var ye=he.child;if(ye!==null){he.child=null;do{var st=ye.sibling;ye.sibling=null,ye=st}while(ye!==null)}}fe=m}}if((m.subtreeFlags&2064)!==0&&b!==null)b.return=m,fe=b;else e:for(;fe!==null;){if(m=fe,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Ui(9,m,m.return)}var L=m.sibling;if(L!==null){L.return=m.return,fe=L;break e}fe=m.return}}var M=n.current;for(fe=M;fe!==null;){b=fe;var B=b.child;if((b.subtreeFlags&2064)!==0&&B!==null)B.return=b,fe=B;else e:for(b=M;fe!==null;){if(R=fe,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:yl(9,R)}}catch(ve){et(R,R.return,ve)}if(R===b){fe=null;break e}var Z=R.sibling;if(Z!==null){Z.return=R.return,fe=Z;break e}fe=R.return}}if(Le=h,_r(),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Ta,n)}catch{}c=!0}return c}finally{We=a,nn.transition=s}}return!1}function Vg(n,s,a){s=wo(a,s),s=lg(n,s,1),n=Tr(n,s,1),s=Tt(),n!==null&&(pi(n,1,s),$t(n,s))}function et(n,s,a){if(n.tag===3)Vg(n,n,a);else for(;s!==null;){if(s.tag===3){Vg(s,n,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Or===null||!Or.has(c))){n=wo(a,n),n=cg(s,n,1),s=Tr(s,n,1),n=Tt(),s!==null&&(pi(s,1,n),$t(s,n));break}}s=s.return}}function zC(n,s,a){var c=n.pingCache;c!==null&&c.delete(s),s=Tt(),n.pingedLanes|=n.suspendedLanes&a,mt===n&&(wt&a)===a&&(ut===4||ut===3&&(wt&130023424)===wt&&500>rt()-Td?Cs(n,0):Rd|=a),$t(n,s)}function Hg(n,s){s===0&&((n.mode&1)===0?s=1:(s=Oa,Oa<<=1,(Oa&130023424)===0&&(Oa=4194304)));var a=Tt();n=Jn(n,s),n!==null&&(pi(n,s,a),$t(n,a))}function WC(n){var s=n.memoizedState,a=0;s!==null&&(a=s.retryLane),Hg(n,a)}function VC(n,s){var a=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(s),Hg(n,a)}var qg;qg=function(n,s,a){if(n!==null)if(n.memoizedProps!==s.pendingProps||It.current)Ft=!0;else{if((n.lanes&a)===0&&(s.flags&128)===0)return Ft=!1,jC(n,s,a);Ft=(n.flags&131072)!==0}else Ft=!1,Ye&&(s.flags&1048576)!==0&&Nm(s,el,s.index);switch(s.lanes=0,s.tag){case 2:var c=s.type;ml(n,s),n=s.pendingProps;var h=fo(s,St.current);vo(s,a),h=ad(null,s,c,n,h,a);var m=ld();return s.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Lt(c)?(m=!0,Xa(s)):m=!1,s.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,ed(s),h.updater=hl,s.stateNode=h,h._reactInternals=s,pd(s,c,n,a),s=vd(null,s,c,!0,m,a)):(s.tag=0,Ye&&m&&Vu(s),Rt(null,s,h,a),s=s.child),s;case 16:c=s.elementType;e:{switch(ml(n,s),n=s.pendingProps,h=c._init,c=h(c._payload),s.type=c,h=s.tag=qC(c),n=dn(c,n),h){case 0:s=yd(null,s,c,n,a);break e;case 1:s=vg(null,s,c,n,a);break e;
vendor: 12,052 bytes, line 40
40case 11:s=hg(null,s,c,n,a);break e;case 14:s=pg(null,s,c,dn(c.type,n),a);break e}throw Error(r(306,c,""))}return s;case 0:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:dn(c,h),yd(n,s,c,h,a);case 1:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:dn(c,h),vg(n,s,c,h,a);case 3:e:{if(xg(s),n===null)throw Error(r(387));c=s.pendingProps,m=s.memoizedState,h=m.element,Mm(n,s),il(s,c,null,a);var b=s.memoizedState;if(c=b.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){h=wo(Error(r(423)),s),s=wg(n,s,c,a,h);break e}else if(c!==h){h=wo(Error(r(424)),s),s=wg(n,s,c,a,h);break e}else for(Kt=Nr(s.stateNode.containerInfo.firstChild),Qt=s,Ye=!0,un=null,a=Om(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(mo(),c===h){s=er(n,s,a);break e}Rt(n,s,c,a)}s=s.child}return s;case 5:return Lm(s),n===null&&Qu(s),c=s.type,h=s.pendingProps,m=n!==null?n.memoizedProps:null,b=h.children,Fu(c,h)?b=null:m!==null&&Fu(c,m)&&(s.flags|=32),yg(n,s),Rt(n,s,b,a),s.child;case 6:return n===null&&Qu(s),null;case 13:return bg(n,s,a);case 4:return td(s,s.stateNode.containerInfo),c=s.pendingProps,n===null?s.child=go(s,null,c,a):Rt(n,s,c,a),s.child;case 11:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:dn(c,h),hg(n,s,c,h,a);case 7:return Rt(n,s,s.pendingProps,a),s.child;case 8:return Rt(n,s,s.pendingProps.children,a),s.child;case 12:return Rt(n,s,s.pendingProps.children,a),s.child;case 10:e:{if(c=s.type._context,h=s.pendingProps,m=s.memoizedProps,b=h.value,qe(rl,c._currentValue),c._currentValue=b,m!==null)if(cn(m.value,b)){if(m.children===h.children&&!It.current){s=er(n,s,a);break e}}else for(m=s.child,m!==null&&(m.return=s);m!==null;){var R=m.dependencies;if(R!==null){b=m.child;for(var O=R.firstContext;O!==null;){if(O.context===c){if(m.tag===1){O=Zn(-1,a&-a),O.tag=2;var U=m.updateQueue;if(U!==null){U=U.shared;var Q=U.pending;Q===null?O.next=O:(O.next=Q.next,Q.next=O),U.pending=O}}m.lanes|=a,O=m.alternate,O!==null&&(O.lanes|=a),Ju(m.return,a,s),R.lanes|=a;break}O=O.next}}else if(m.tag===10)b=m.type===s.type?null:m.child;else if(m.tag===18){if(b=m.return,b===null)throw Error(r(341));b.lanes|=a,R=b.alternate,R!==null&&(R.lanes|=a),Ju(b,a,s),b=m.sibling}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===s){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}Rt(n,s,h.children,a),s=s.child}return s;case 9:return h=s.type,c=s.pendingProps.children,vo(s,a),h=en(h),c=c(h),s.flags|=1,Rt(n,s,c,a),s.child;case 14:return c=s.type,h=dn(c,s.pendingProps),h=dn(c.type,h),pg(n,s,c,h,a);case 15:return mg(n,s,s.type,s.pendingProps,a);case 17:return c=s.type,h=s.pendingProps,h=s.elementType===c?h:dn(c,h),ml(n,s),s.tag=1,Lt(c)?(n=!0,Xa(s)):n=!1,vo(s,a),ig(s,c,h),pd(s,c,h,a),vd(null,s,c,!0,n,a);case 19:return Cg(n,s,a);case 22:return gg(n,s,a)}throw Error(r(156,s.tag))};function Qg(n,s){return kp(n,s)}function HC(n,s,a,c){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(n,s,a,c){return new HC(n,s,a,c)}function Fd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function qC(n){if(typeof n=="function")return Fd(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ie)return 11;if(n===xe)return 14}return 2}function Ir(n,s){var a=n.alternate;return a===null?(a=rn(n.tag,s,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=s,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&14680064,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,s=n.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function kl(n,s,a,c,h,m){var b=2;if(c=n,typeof n=="function")Fd(n)&&(b=1);else if(typeof n=="string")b=5;else e:switch(n){case $:return Ns(a.children,h,m,s);case W:b=8,h|=8;break;case oe:return n=rn(12,a,s,h|2),n.elementType=oe,n.lanes=m,n;case ne:return n=rn(13,a,s,h),n.elementType=ne,n.lanes=m,n;case ae:return n=rn(19,a,s,h),n.elementType=ae,n.lanes=m,n;case re:return Pl(a,h,m,s);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case K:b=10;break e;case ue:b=9;break e;case ie:b=11;break e;case xe:b=14;break e;case G:b=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return s=rn(b,a,s,h),s.elementType=n,s.type=c,s.lanes=m,s}function Ns(n,s,a,c){return n=rn(7,n,c,s),n.lanes=a,n}function Pl(n,s,a,c){return n=rn(22,n,c,s),n.elementType=re,n.lanes=a,n.stateNode={isHidden:!1},n}function Bd(n,s,a){return n=rn(6,n,null,s),n.lanes=a,n}function $d(n,s,a){return s=rn(4,n.children!==null?n.children:[],n.key,s),s.lanes=a,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}function QC(n,s,a,c,h){this.tag=s,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hu(0),this.expirationTimes=hu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hu(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Ud(n,s,a,c,h,m,b,R,O){return n=new QC(n,s,a,R,O),s===1?(s=1,m===!0&&(s|=8)):s=0,m=rn(3,null,null,s),n.current=m,m.stateNode=n,m.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},ed(m),n}function KC(n,s,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:c==null?null:""+c,children:n,containerInfo:s,implementation:a}}function Kg(n){if(!n)return Pr;n=n._reactInternals;e:{if(hs(n)!==n||n.tag!==1)throw Error(r(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Lt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(n.tag===1){var a=n.type;if(Lt(a))return Sm(n,a,s)}return s}function Yg(n,s,a,c,h,m,b,R,O){return n=Ud(a,c,!0,n,h,m,b,R,O),n.context=Kg(null),a=n.current,c=Tt(),h=Mr(a),m=Zn(c,h),m.callback=s??null,Tr(a,m,h),n.current.lanes=h,pi(n,h,c),$t(n,c),n}function _l(n,s,a,c){var h=s.current,m=Tt(),b=Mr(h);return a=Kg(a),s.context===null?s.context=a:s.pendingContext=a,s=Zn(m,b),s.payload={element:n},c=c===void 0?null:c,c!==null&&(s.callback=c),n=Tr(h,s,b),n!==null&&(pn(n,h,b,m),ol(n,h,b)),b}function Rl(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Gg(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<s?a:s}}function zd(n,s){Gg(n,s),(n=n.alternate)&&Gg(n,s)}function YC(){return null}var Xg=typeof reportError=="function"?reportError:function(n){console.error(n)};function Wd(n){this._internalRoot=n}Tl.prototype.render=Wd.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(r(409));_l(n,s,null,null)},Tl.prototype.unmount=Wd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;Ss(function(){_l(null,n,null,null)}),s[Kn]=null}};function Tl(n){this._internalRoot=n}Tl.prototype.unstable_scheduleHydration=function(n){if(n){var s=Mp();n={blockedOn:null,target:n,priority:s};for(var a=0;a<Sr.length&&s!==0&&s<Sr[a].priority;a++);Sr.splice(a,0,n),a===0&&Lp(n)}};function Vd(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function jl(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Jg(){}function GC(n,s,a,c,h){if(h){if(typeof c=="function"){var m=c;c=function(){var U=Rl(b);m.call(U)}}var b=Yg(s,c,n,0,null,!1,!1,"",Jg);return n._reactRootContainer=b,n[Kn]=b.current,_i(n.nodeType===8?n.parentNode:n),Ss(),b}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var R=c;c=function(){var U=Rl(O);R.call(U)}}var O=Ud(n,0,!1,null,null,!1,!1,"",Jg);return n._reactRootContainer=O,n[Kn]=O.current,_i(n.nodeType===8?n.parentNode:n),Ss(function(){_l(s,O,a,c)}),O}function Ol(n,s,a,c,h){var m=a._reactRootContainer;if(m){var b=m;if(typeof h=="function"){var R=h;h=function(){var O=Rl(b);R.call(O)}}_l(s,b,n,h)}else b=GC(a,s,n,h,c);return Rl(b)}Op=function(n){switch(n.tag){case 3:var s=n.stateNode;if(s.current.memoizedState.isDehydrated){var a=hi(s.pendingLanes);a!==0&&(pu(s,a|1),$t(s,rt()),(Le&6)===0&&(Co=rt()+500,_r()))}break;case 13:Ss(function(){var c=Jn(n,1);if(c!==null){var h=Tt();pn(c,n,1,h)}}),zd(n,1)}},mu=function(n){if(n.tag===13){var s=Jn(n,134217728);if(s!==null){var a=Tt();pn(s,n,134217728,a)}zd(n,134217728)}},Ap=function(n){if(n.tag===13){var s=Mr(n),a=Jn(n,s);if(a!==null){var c=Tt();pn(a,n,s,c)}zd(n,s)}},Mp=function(){return We},Dp=function(n,s){var a=We;try{return We=n,s()}finally{We=a}},au=function(n,s,a){switch(s){case"input":if(Qn(n,a),s=a.name,a.type==="radio"&&s!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==n&&c.form===n.form){var h=Ya(c);if(!h)throw Error(r(90));Ae(c),Qn(c,h)}}}break;case"textarea":up(n,a);break;case"select":s=a.value,s!=null&&Zs(n,!!a.multiple,s,!1)}},xp=Dd,wp=Ss;var XC={usingClientEntryPoint:!1,Events:[ji,co,Ya,yp,vp,Dd]},Hi={findFiberByHostInstance:ps,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},JC={bundleType:Hi.bundleType,version:Hi.version,rendererPackageName:Hi.rendererPackageName,rendererConfig:Hi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Ep(n),n===null?null:n.stateNode},findFiberByHostInstance:Hi.findFiberByHostInstance||YC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Al.isDisabled&&Al.supportsFiber)try{Ta=Al.inject(JC),_n=Al}catch{}}return Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=XC,Ut.createPortal=function(n,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vd(s))throw Error(r(200));return KC(n,s,null,a)},Ut.createRoot=function(n,s){if(!Vd(n))throw Error(r(299));var a=!1,c="",h=Xg;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onRecoverableError!==void 0&&(h=s.onRecoverableError)),s=Ud(n,1,!1,null,null,a,!1,c,h),n[Kn]=s.current,_i(n.nodeType===8?n.parentNode:n),new Wd(s)},Ut.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Ep(s),n=n===null?null:n.stateNode,n},Ut.flushSync=function(n){return Ss(n)},Ut.hydrate=function(n,s,a){if(!jl(s))throw Error(r(200));return Ol(null,n,s,!0,a)},Ut.hydrateRoot=function(n,s,a){if(!Vd(n))throw Error(r(405));var c=a!=null&&a.hydratedSources||null,h=!1,m="",b=Xg;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),s=Yg(s,null,
40n,1,a??null,h,!1,m,b),n[Kn]=s.current,_i(n),c)for(n=0;n<c.length;n++)a=c[n],h=a._getVersion,h=h(a._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[a,h]:s.mutableSourceEagerHydrationData.push(a,h);return new Tl(s)},Ut.render=function(n,s,a){if(!jl(s))throw Error(r(200));return Ol(null,n,s,!1,a)},Ut.unmountComponentAtNode=function(n){if(!jl(n))throw Error(r(40));return n._reactRootContainer?(Ss(function(){Ol(null,null,n,!1,function(){n._reactRootContainer=null,n[Kn]=null})}),!0):!1},Ut.unstable_batchedUpdates=Dd,Ut.unstable_renderSubtreeIntoContainer=function(n,s,a,c){if(!jl(a))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Ol(n,s,a,!1,c)},Ut.version="18.3.1-next-f1338f8080-20240426",Ut}var ay;function ix(){if(ay)return Kd.exports;ay=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Kd.exports=iE(),Kd.exports}var ly;function aE(){if(ly)return Dl;ly=1;var e=ix();return Dl.createRoot=e.createRoot,Dl.hydrateRoot=e.hydrateRoot,Dl}var lE=aE();const cE=ph(lE),uE=20,dE=1e6,ur={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Xd=0;function fE(){return Xd=(Xd+1)%Number.MAX_VALUE,Xd.toString()}const Jd=new Map,cy=e=>{if(Jd.has(e))return;const t=setTimeout(()=>{Jd.delete(e),ra({type:ur.REMOVE_TOAST,toastId:e})},dE);Jd.set(e,t)},hE=(e,t)=>{switch(t.type){case ur.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,uE)};case ur.UPDATE_TOAST:return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case ur.DISMISS_TOAST:{const{toastId:r}=t;return r?cy(r):e.toasts.forEach(o=>{cy(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,open:!1}:o)}}case ur.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Kl=[];let Yl={toasts:[]};function ra(e){Yl=hE(Yl,e),Kl.forEach(t=>{t(Yl)})}function pE({...e}){const t=fE(),r=i=>ra({type:ur.UPDATE_TOAST,toast:{...i,id:t}}),o=()=>ra({type:ur.DISMISS_TOAST,toastId:t});return ra({type:ur.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||o()}}}),{id:t,dismiss:o,update:r}}function mE(){const[e,t]=x.useState(Yl);return x.useEffect(()=>(Kl.push(t),()=>{const r=Kl.indexOf(t);r>-1&&Kl.splice(r,1)}),[e]),{...e,toast:pE,dismiss:r=>ra({type:ur.DISMISS_TOAST,toastId:r})}}function ax(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ax(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function lx(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ax(e))&&(o&&(o+=" "),o+=t);return o}const uy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,dy=lx,yh=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return dy(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:l}=t,u=Object.keys(i).map(g=>{const y=r==null?void 0:r[g],v=l==null?void 0:l[g];if(y===null)return null;const E=uy(y)||uy(v);return i[g][E]}),f=r&&Object.entries(r).reduce((g,y)=>{let[v,E]=y;return E===void 0||(g[v]=E),g},{}),p=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((g,y)=>{let{class:v,className:E,...k}=y;return Object.entries(k).every(C=>{let[w,S]=C;return Array.isArray(S)?S.includes({...l,...f}[w]):{...l,...f}[w]===S})?[...g,v,E]:g},[]);return dy(e,u,p,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const gE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cx=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var yE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const vE=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:i="",children:l,iconNode:u,...f},p)=>x.createElement("svg",{ref:p,...yE,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:cx("lucide",i),...f},[...u.map(([g,y])=>x.createElement(g,y)),...Array.isArray(l)?l:[l]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const _t=(e,t)=>{const r=x.forwardRef(({className:o,...i},l)=>x.createElement(vE,{ref:l,iconNode:t,className:cx(`lucide-${gE(e)}`,o),...i}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const xE=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],wE=_t("ArrowUpDown",xE);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const bE=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],SE=_t("Calculator",bE);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const CE=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],EE=_t("Calendar",CE);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const NE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ux=_t("Check",NE);/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const kE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],dx=_t("ChevronDown",kE);/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const PE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_E=_t("ChevronUp",PE);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const RE=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],TE=_t("CircleCheckBig",RE);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const jE=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],OE=_t("ExternalLink",jE);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const AE=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],ME=_t("Heart",AE);/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const DE=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],IE=_t("Layers",DE);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const LE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kc=_t("LoaderCircle",LE);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const FE=[["path",{d:"M5 12h14",key:"1ays0h"}]],BE=_t("Minus",FE);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const $E=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vh=_t("Plus",$E);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const UE=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],zE=_t("Settings",UE);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const WE=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 7,948 bytes, lines 135-140
135],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Sf=_t("Trash2",WE);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const VE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fx=_t("X",VE),xh="-",HE=e=>{const t=QE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{const f=u.split(xh);return f[0]===""&&f.length!==1&&f.shift(),hx(f,t)||qE(u)},getConflictingClassGroupIds:(u,f)=>{const p=r[u]||[];return f&&o[u]?[...p,...o[u]]:p}}},hx=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?hx(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(xh);return(u=t.validators.find(({validator:f})=>f(l)))==null?void 0:u.classGroupId},fy=/^\[(.+)\]$/,qE=e=>{if(fy.test(e)){const t=fy.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},QE=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const i in r)Cf(r[i],o,i,t);return o},Cf=(e,t,r,o)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?t:hy(t,i);l.classGroupId=r;return}if(typeof i=="function"){if(KE(i)){Cf(i(o),t,r,o);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([l,u])=>{Cf(u,hy(t,l),r,o)})})},hy=(e,t)=>{let r=e;return t.split(xh).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},KE=e=>e.isThemeGetter,YE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const i=(l,u)=>{r.set(l,u),t++,t>e&&(t=0,o=r,r=new Map)};return{get(l){let u=r.get(l);if(u!==void 0)return u;if((u=o.get(l))!==void 0)return i(l,u),u},set(l,u){r.has(l)?r.set(l,u):i(l,u)}}},Ef="!",Nf=":",GE=Nf.length,XE=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=i=>{const l=[];let u=0,f=0,p=0,g;for(let C=0;C<i.length;C++){let w=i[C];if(u===0&&f===0){if(w===Nf){l.push(i.slice(p,C)),p=C+GE;continue}if(w==="/"){g=C;continue}}w==="["?u++:w==="]"?u--:w==="("?f++:w===")"&&f--}const y=l.length===0?i:i.substring(p),v=JE(y),E=v!==y,k=g&&g>p?g-p:void 0;return{modifiers:l,hasImportantModifier:E,baseClassName:v,maybePostfixModifierPosition:k}};if(t){const i=t+Nf,l=o;o=u=>u.startsWith(i)?l(u.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(r){const i=o;o=l=>r({className:l,parseClassName:i})}return o},JE=e=>e.endsWith(Ef)?e.substring(0,e.length-1):e.startsWith(Ef)?e.substring(1):e,ZE=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const i=[];let l=[];return o.forEach(u=>{u[0]==="["||t[u]?(i.push(...l.sort(),u),l=[]):l.push(u)}),i.push(...l.sort()),i}},eN=e=>({cache:YE(e.cacheSize),parseClassName:XE(e),sortModifiers:ZE(e),...HE(e)}),tN=/\s+/,nN=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:l}=t,u=[],f=e.trim().split(tN);let p="";for(let g=f.length-1;g>=0;g-=1){const y=f[g],{isExternal:v,modifiers:E,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:w}=r(y);if(v){p=y+(p.length>0?" "+p:p);continue}let S=!!w,N=o(S?C.substring(0,w):C);if(!N){if(!S){p=y+(p.length>0?" "+p:p);continue}if(N=o(C),!N){p=y+(p.length>0?" "+p:p);continue}S=!1}const T=l(E).join(":"),P=k?T+Ef:T,_=P+N;if(u.includes(_))continue;u.push(_);const F=i(N,S);for(let H=0;H<F.length;++H){const $=F[H];u.push(P+$)}p=y+(p.length>0?" "+p:p)}return p};function rN(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=px(t))&&(o&&(o+=" "),o+=r);return o}const px=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=px(e[o]))&&(r&&(r+=" "),r+=t);return r};function sN(e,...t){let r,o,i,l=u;function u(p){const g=t.reduce((y,v)=>v(y),e());return r=eN(g),o=r.cache.get,i=r.cache.set,l=f,f(p)}function f(p){const g=o(p);if(g)return g;const y=nN(p,r);return i(p,y),y}return function(){return l(rN.apply(null,arguments))}}const dt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},mx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oN=/^\d+\/\d+$/,iN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,aN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,No=e=>oN.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),Fr=e=>!!e&&Number.isInteger(Number(e)),Zd=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),nr=e=>iN.test(e),dN=()=>!0,fN=e=>aN.test(e)&&!lN.test(e),yx=()=>!1,hN=e=>cN.test(e),pN=e=>uN.test(e),mN=e=>!pe(e)&&!me(e),gN=e=>Go(e,wx,yx),pe=e=>mx.test(e),ks=e=>Go(e,bx,fN),ef=e=>Go(e,bN,Oe),py=e=>Go(e,vx,yx),yN=e=>Go(e,xx,pN),Il=e=>Go(e,Sx,hN),me=e=>gx.test(e),Qi=e=>Xo(e,bx),vN=e=>Xo(e,SN),my=e=>Xo(e,vx),xN=e=>Xo(e,wx),wN=e=>Xo(e,xx),Ll=e=>Xo(e,Sx,!0),Go=(e,t,r)=>{const o=mx.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},Xo=(e,t,r=!1)=>{const o=gx.exec(e);return o?o[1]?t(o[1]):r:!1},vx=e=>e==="position"||e==="percentage",xx=e=>e==="image"||e==="url",wx=e=>e==="length"||e==="size"||e==="bg-size",bx=e=>e==="length",bN=e=>e==="number",SN=e=>e==="family-name",Sx=e=>e==="shadow",CN=()=>{const e=dt("color"),t=dt("font"),r=dt("text"),o=dt("font-weight"),i=dt("tracking"),l=dt("leading"),u=dt("breakpoint"),f=dt("container"),p=dt("spacing"),g=dt("radius"),y=dt("shadow"),v=dt("inset-shadow"),E=dt("text-shadow"),k=dt("drop-shadow"),C=dt("blur"),w=dt("perspective"),S=dt("aspect"),N=dt("ease"),T=dt("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[..._(),me,pe],H=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],W=()=>[me,pe,p],oe=()=>[No,"full","auto",...W()],K=()=>[Fr,"none","subgrid",me,pe],ue=()=>["auto",{span:["full",Fr,me,pe]},Fr,me,pe],ie=()=>[Fr,"auto",me,pe],ne=()=>["auto","min","max","fr",me,pe],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],xe=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...W()],re=()=>[No,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],D=()=>[e,me,pe],ee=()=>[..._(),my,py,{position:[me,pe]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",xN,gN,{size:[me,pe]}],V=()=>[Zd,Qi,ks],de=()=>["","none","full",g,me,pe],ce=()=>["",Oe,Qi,ks],Ne=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Oe,Zd,my,py],ge=()=>["","none",C,me,pe],I=()=>["none",Oe,me,pe],te=()=>["none",Oe,me,pe],Ee=()=>[Oe,me,pe],Ae=()=>[No,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[nr],breakpoint:[nr],color:[dN],container:[nr],"drop-shadow":[nr],ease:["in","out","in-out"],font:[mN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[nr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[nr],shadow:[nr],spacing:["px",Oe],text:[nr],"text-shadow":[nr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",No,pe,me,S]}
vendor: 13,385 bytes, line 140
140],container:["container"],columns:[{columns:[Oe,pe,me,f]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{start:oe()}],end:[{end:oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[Fr,"auto",me,pe]}],basis:[{basis:[No,"full","auto",f,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,No,"auto","initial","none",pe]}],grow:[{grow:["",Oe,me,pe]}],shrink:[{shrink:["",Oe,me,pe]}],order:[{order:[Fr,"first","last","none",me,pe]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...xe(),"normal"]}],"justify-self":[{"justify-self":["auto",...xe()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...xe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...xe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...xe(),"baseline"]}],"place-self":[{"place-self":["auto",...xe()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],w:[{w:[f,"screen",...re()]}],"min-w":[{"min-w":[f,"screen","none",...re()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",r,Qi,ks]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,me,ef]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zd,pe]}],"font-family":[{font:[vN,pe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,me,pe]}],"line-clamp":[{"line-clamp":[Oe,"none",me,ef]}],leading:[{leading:[l,...W()]}],"list-image":[{"list-image":["none",me,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",me,ks]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Oe,"auto",me,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fr,me,pe],radial:["",me,pe],conic:[Fr,me,pe]},wN,yN]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,me,pe]}],"outline-w":[{outline:["",Oe,Qi,ks]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",y,Ll,Il]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",v,Ll,Il]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Oe,ks]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",E,Ll,Il]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Oe,me,pe]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[me,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,pe]}],filter:[{filter:["","none",me,pe]}],blur:[{blur:ge()}],brightness:[{brightness:[Oe,me,pe]}],contrast:[{contrast:[Oe,me,pe]}],"drop-shadow":[{"drop-shadow":["","none",k,Ll,Il]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",Oe,me,pe]}],"hue-rotate":[{"hue-rotate":[Oe,me,pe]}],invert:[{invert:["",Oe,me,pe]}],saturate:[{saturate:[Oe,me,pe]}],sepia:[{sepia:["",Oe,me,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,pe]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,me,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,me,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,me,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,me,pe]}],"backdrop-invert":[{"backdrop-invert":["",Oe,me,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,me,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,me,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,me,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",me,pe]}],ease:[{ease:["linear","initial",N,me,pe]}],delay:[{delay:[Oe,me,pe]}],animate:[{animate:["none",T,me,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,me,pe]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:I()}],"rotate-x":[{"rotate-x":I()}],"rotate-y":[{"rotate-y":I()}],"rotate-z":[{"rotate-z":I()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[me,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,pe]}
vendor: 6,022 bytes, line 140
140],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,pe]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[Oe,Qi,ks,ef]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},EN=sN(CN);function Ce(...e){return EN(lx(e))}const Cx=x.forwardRef(({...e},t)=>d.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));Cx.displayName="ToastProvider";const Ex=x.forwardRef(({...e},t)=>d.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));Ex.displayName="ToastViewport";const NN=yh("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Nx=x.forwardRef(({className:e,variant:t,...r},o)=>d.jsx("div",{ref:o,className:Ce(NN({variant:t}),e),...r}));Nx.displayName="Toast";const kN=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));kN.displayName="ToastAction";
140const kx=x.forwardRef(({className:e,...t},r)=>d.jsx("button",{ref:r,className:Ce("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:d.jsx(fx,{className:"h-4 w-4"})}));kx.displayName="ToastClose";const Px=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("text-sm font-semibold",e),...t}));Px.displayName="ToastTitle";const _x=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("text-sm opacity-90",e),...t}));_x.displayName="ToastDescription";function PN(){const{toasts:e}=mE();return d.jsxs(Cx,{children:[e.map(function({id:t,title:r,description:o,action:i,...l}){return d.jsxs(Nx,{...l,children:[d.jsxs("div",{className:"grid gap-1",children:[r&&d.jsx(Px,{children:r}),o&&d.jsx(_x,{children:o})]}),i,d.jsx(kx,{})]},t)}),d.jsx(Ex,{})]})}var Jo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_N={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Hr,hh,Yv,RN=(Yv=class{constructor(){we(this,Hr,_N);we(this,hh,!1)}setTimeoutProvider(e){se(this,Hr,e)}setTimeout(e,t){return j(this,Hr).setTimeout(e,t)}clearTimeout(e){j(this,Hr).clearTimeout(e)}setInterval(e,t){return j(this,Hr).setInterval(e,t)}clearInterval(e){j(this,Hr).clearInterval(e)}},Hr=new WeakMap,hh=new WeakMap,Yv),_s=new RN;function TN(e){setTimeout(e,0)}var zs=typeof window>"u"||"Deno"in globalThis;function At(){}function jN(e,t){return typeof e=="function"?e(t):e}function kf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ts(e,t){return typeof e=="function"?e(t):e}function on(e,t){return typeof e=="function"?e(t):e}function gy(e,t){const{type:r="all",exact:o,fetchStatus:i,predicate:l,queryKey:u,stale:f}=e;if(u){if(o){if(t.queryHash!==wh(u,t.options))return!1}else if(!oa(t.queryKey,u))return!1}if(r!=="all"){const p=t.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||l&&!l(t))}function yy(e,t){const{exact:r,status:o,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(Ws(t.options.mutationKey)!==Ws(l))return!1}else if(!oa(t.options.mutationKey,l))return!1}return!(o&&t.state.status!==o||i&&!i(t))}function wh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ws)(e)}function Ws(e){return JSON.stringify(e,(t,r)=>Pf(r)?Object.keys(r).sort().reduce((o,i)=>(o[i]=r[i],o),{}):r)}function oa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>oa(e[r],t[r])):!1}var ON=Object.prototype.hasOwnProperty;function Tx(e,t){if(e===t)return e;const r=vy(e)&&vy(t);if(!r&&!(Pf(e)&&Pf(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,f=r?new Array(u):{};let p=0;for(let g=0;g<u;g++){const y=r?g:l[g],v=e[y],E=t[y];if(v===E){f[y]=v,(r?g<i:ON.call(e,y))&&p++;continue}if(v===null||E===null||typeof v!="object"||typeof E!="object"){f[y]=E;continue}const k=Tx(v,E);f[y]=k,k===v&&p++}return i===u&&p===i?e:f}function uc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function vy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pf(e){if(!xy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!xy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xy(e){return Object.prototype.toString.call(e)==="[object Object]"}function AN(e){return new Promise(t=>{_s.setTimeout(t,e)})}function _f(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Tx(e,t):t}function MN(e,t,r=0){const o=[...e,t];return r&&o.length>r?o.slice(1):o}function DN(e,t,r=0){const o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}var bh=Symbol();function jx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===bh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ox(e,t){return typeof e=="function"?e(...t):!!e}var Os,qr,Mo,Gv,IN=(Gv=class extends Jo{constructor(){super();we(this,Os);we(this,qr);we(this,Mo);se(this,Mo,t=>{if(!zs&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){j(this,qr)||this.setEventListener(j(this,Mo))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,qr))==null||t.call(this),se(this,qr,void 0))}setEventListener(t){var r;se(this,Mo,t),(r=j(this,qr))==null||r.call(this),se(this,qr,t(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(t){j(this,Os)!==t&&(se(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 5,022 bytes, line 140
140this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof j(this,Os)=="boolean"?j(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,qr=new WeakMap,Mo=new WeakMap,Gv),Sh=new IN;function Rf(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});r.status="pending",r.catch(()=>{});function o(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{o({status:"fulfilled",value:i}),e(i)},r.reject=i=>{o({status:"rejected",reason:i}),t(i)},r}var LN=TN;function FN(){let e=[],t=0,r=f=>{f()},o=f=>{f()},i=LN;const l=f=>{t?e.push(f):i(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&i(()=>{o(()=>{f.forEach(p=>{r(p)})})})};return{batch:f=>{let p;t++;try{p=f()}finally{t--,t||u()}return p},batchCalls:f=>(...p)=>{l(()=>{f(...p)})},schedule:l,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{o=f},setScheduler:f=>{i=f}}}var ft=FN(),Do,Qr,Io,Xv,BN=(Xv=class extends Jo{constructor(){super();we(this,Do,!0);we(this,Qr);we(this,Io);se(this,Io,t=>{if(!zs&&window.addEventListener){const r=()=>t(!0),o=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",o)}}})}onSubscribe(){j(this,Qr)||this.setEventListener(j(this,Io))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Qr))==null||t.call(this),se(this,Qr,void 0))}setEventListener(t){var r;se(this,Io,t),(r=j(this,Qr))==null||r.call(this),se(this,Qr,t(this.setOnline.bind(this)))}setOnline(t){j(this,Do)!==t&&(se(this,Do,t),this.listeners.forEach(o=>{o(t)}))}isOnline(){return j(this,Do)}},Do=new WeakMap,Qr=new WeakMap,Io=new WeakMap,Xv),dc=new BN;function $N(e){return Math.min(1e3*2**e,3e4)}function Ax(e){return(e??"online")==="online"?dc.isOnline():!0}var Tf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Mx(e){let t=!1,r=0,o;const i=Rf(),l=()=>i.status!=="pending",u=w=>{var S;if(!l()){const N=new Tf(w);E(N),(S=e.onCancel)==null||S.call(e,N)}},f=()=>{t=!0},p=()=>{t=!1},g=()=>Sh.isFocused()&&(e.networkMode==="always"||dc.isOnline())&&e.canRun(),y=()=>Ax(e.networkMode)&&e.canRun(),v=w=>{l()||(o==null||o(),i.resolve(w))},E=w=>{l()||(o==null||o(),i.reject(w))},k=()=>new Promise(w=>{var S;o=N=>{(l()||g())&&w(N)},(S=e.onPause)==null||S.call(e)}).then(()=>{var w;o=void 0,l()||(w=e.onContinue)==null||w.call(e)}),C=()=>{if(l())return;let w;const S=r===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(N){w=Promise.reject(N)}Promise.resolve(w).then(v).catch(N=>{var H;if(l())return;const T=e.retry??(zs?0:3),P=e.retryDelay??$N,_=typeof P=="function"?P(r,N):P,F=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,N);if(t||!F){E(N);return}r++,(H=e.onFail)==null||H.call(e,r,N),AN(_).then(()=>g()?void 0:k()).then(()=>{t?E(N):C()})})};return{promise:i,status:()=>i.status,cancel:u,continue:()=>(o==null||o(),i),cancelRetry:f,continueRetry:p,canStart:y,start:()=>(y()?C():k().then(C),i)}}var As,Jv,Dx=(Jv=class{constructor(){we(this,As)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kf(this.gcTime)&&se(this,As,_s.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zs?1/0:300*1e3))}clearGcTimeout(){j(this,As)&&(_s.clearTimeout(j(this,As)),se(this,As,void 0))}},As=new WeakMap,Jv),Ms,Lo,sn,Ds,yt,da,Is,gn,rr,Zv,UN=(Zv=class extends Dx{constructor(t){super();we(this,gn);we(this,Ms);we(this,Lo);we(this,sn);we(this,Ds);we(this,yt);we(this,da);we(this,Is);se(this,Is,!1),se(this,da,t.defaultOptions),this.setOptions(t.options),this.observers=[],se(this,Ds,t.client),se(this,sn,j(this,Ds).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,se(this,Ms,wy(this.options)),this.state=t.state??j(this,Ms),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,yt))==null?void 0:t.promise}setOptions(t){if(this.options={...j(this,da),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=wy(this.options);r.data!==void 0&&(this.setData(r.data,{updatedAt:r.dataUpdatedAt,manual:!0}),se(this,Ms,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,sn).remove(this)}setData(t,r){const o=_f(this.state.data,t,this.options);return Te(this,gn,rr).call(this,{data:o,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),o}setState(t,r){Te(this,gn,rr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var o,i;const r=(o=j(this,yt))==null?void 0:o.promise;return(i=j(this,yt))==null||i.cancel(t),r?r.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Ms))}isActive(){return this.observers.some(t=>on(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===bh||this.state.dataUpdateCount+this.state.errorUpdate
140Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ts(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Rx(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(o=>o.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=j(this,yt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(o=>o.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=j(this,yt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,sn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(j(this,yt)&&(j(this,Is)?j(this,yt).cancel({revert:!0}):j(this,yt).cancelRetry()),this.scheduleGc()),j(this,sn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,gn,rr).call(this,{type:"invalidate"})}async fetch(t,r){var p,g,y,v,E,k,C,w,S,N,T,P;if(this.state.fetchStatus!=="idle"&&((p=j(this,yt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(j(this,yt))return j(this,yt).continueRetry(),j(this,yt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(F=>F.options.queryFn);_&&this.setOptions(_.options)}const o=new AbortController,i=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(se(this,Is,!0),o.signal)})},l=()=>{const _=jx(this.options,r),H=(()=>{const $={client:j(this,Ds),queryKey:this.queryKey,meta:this.meta};return i($),$})();return se(this,Is,!1),this.options.persister?this.options.persister(_,H,this):_(H)},f=(()=>{const _={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:j(this,Ds),state:this.state,fetchFn:l};return i(_),_})();(g=this.options.behavior)==null||g.onFetch(f,this),se(this,Lo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&Te(this,gn,rr).call(this,{type:"fetch",meta:(v=f.fetchOptions)==null?void 0:v.meta}),se(this,yt,Mx({initialPromise:r==null?void 0:r.initialPromise,fn:f.fetchFn,onCancel:_=>{_ instanceof Tf&&_.revert&&this.setState({...j(this,Lo),fetchStatus:"idle"}),o.abort()},onFail:(_,F)=>{Te(this,gn,rr).call(this,{type:"failed",failureCount:_,error:F})},onPause:()=>{Te(this,gn,rr).call(this,{type:"pause"})},onContinue:()=>{Te(this,gn,rr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const _=await j(this,yt).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(k=(E=j(this,sn).config).onSuccess)==null||k.call(E,_,this),(w=(C=j(this,sn).config).onSettled)==null||w.call(C,_,this.state.error,this),_}catch(_){if(_ instanceof Tf){if(_.silent)return j(this,yt).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw Te(this,gn,rr).call(this,{type:"error",error:_}),(N=(S=j(this,sn).config).onError)==null||N.call(S,_,this),(P=(T=j(this,sn).config).onSettled)==null||P.call(T,this.state.data,_,this),_}finally{this.scheduleGc()}}},Ms=new WeakMap,Lo=new WeakMap,sn=new WeakMap,Ds=new WeakMap,yt=new WeakMap,da=new WeakMap,Is=new WeakMap,gn=new WeakSet,rr=function(t){const r=o=>{switch(t.type){case"failed":return{...o,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...Ix(o.data,this.options),fetchMeta:t.meta??null};case"success":const i={...o,data:t.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return se(this,Lo,t.manual?i:void 0),i;case"error":const l=t.error;
vendor: 13,787 bytes, line 140
140return{...o,error:l,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...t.state}}};this.state=r(this.state),ft.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),j(this,sn).notify({query:this,type:"updated",action:t})})},Zv);function Ix(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ax(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var zt,De,fa,jt,Ls,Fo,ir,Kr,ha,Bo,$o,Fs,Bs,Yr,Uo,Ue,Ji,jf,Of,Af,Mf,Df,If,Lf,Lx,ex,zN=(ex=class extends Jo{constructor(t,r){super();we(this,Ue);we(this,zt);we(this,De);we(this,fa);we(this,jt);we(this,Ls);we(this,Fo);we(this,ir);we(this,Kr);we(this,ha);we(this,Bo);we(this,$o);we(this,Fs);we(this,Bs);we(this,Yr);we(this,Uo,new Set);this.options=r,se(this,zt,t),se(this,Kr,null),se(this,ir,Rf()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,De).addObserver(this),by(j(this,De),this.options)?Te(this,Ue,Ji).call(this):this.updateResult(),Te(this,Ue,Mf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ff(j(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ff(j(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Ue,Df).call(this),Te(this,Ue,If).call(this),j(this,De).removeObserver(this)}setOptions(t){const r=this.options,o=j(this,De);if(this.options=j(this,zt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof on(this.options.enabled,j(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Ue,Lf).call(this),j(this,De).setOptions(this.options),r._defaulted&&!uc(this.options,r)&&j(this,zt).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,De),observer:this});const i=this.hasListeners();i&&Sy(j(this,De),o,this.options,r)&&Te(this,Ue,Ji).call(this),this.updateResult(),i&&(j(this,De)!==o||on(this.options.enabled,j(this,De))!==on(r.enabled,j(this,De))||ts(this.options.staleTime,j(this,De))!==ts(r.staleTime,j(this,De)))&&Te(this,Ue,jf).call(this);const l=Te(this,Ue,Of).call(this);i&&(j(this,De)!==o||on(this.options.enabled,j(this,De))!==on(r.enabled,j(this,De))||l!==j(this,Yr))&&Te(this,Ue,Af).call(this,l)}getOptimisticResult(t){const r=j(this,zt).getQueryCache().build(j(this,zt),t),o=this.createResult(r,t);return VN(this,o)&&(se(this,jt,o),se(this,Fo,this.options),se(this,Ls,j(this,De).state)),o}getCurrentResult(){return j(this,jt)}trackResult(t,r){return new Proxy(t,{get:(o,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&!this.options.experimental_prefetchInRender&&j(this,ir).status==="pending"&&j(this,ir).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(o,i))})}trackProp(t){j(this,Uo).add(t)}getCurrentQuery(){return j(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=j(this,zt).defaultQueryOptions(t),o=j(this,zt).getQueryCache().build(j(this,zt),r);return o.fetch().then(()=>this.createResult(o,r))}fetch(t){return Te(this,Ue,Ji).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,jt)))}createResult(t,r){var oe;const o=j(this,De),i=this.options,l=j(this,jt),u=j(this,Ls),f=j(this,Fo),g=t!==o?t.state:j(this,fa),{state:y}=t;let v={...y},E=!1,k;if(r._optimisticResults){const K=this.hasListeners(),ue=!K&&by(t,r),ie=K&&Sy(t,o,r,i);(ue||ie)&&(v={...v,...Ix(y.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:C,errorUpdatedAt:w,status:S}=v;k=v.data;let N=!1;if(r.placeholderData!==void 0&&k===void 0&&S==="pending"){let K;l!=null&&l.isPlaceholderData&&r.placeholderData===(f==null?void 0:f.placeholderData)?(K=l.data,N=!0):K=typeof r.placeholderData=="function"?r.placeholderData((oe=j(this,$o))==null?void 0:oe.state.data,j(this,$o)):r.placeholderData,K!==void 0&&(S="success",k=_f(l==null?void 0:l.data,K,r),E=!0)}if(r.select&&k!==void 0&&!N)if(l&&k===(u==null?void 0:u.data)&&r.select===j(this,ha))k=j(this,Bo);else try{se(this,ha,r.select),k=r.select(k),k=_f(l==null?void 0:l.data,k,r),se(this,Bo,k),se(this,Kr,null)}catch(K){se(this,Kr,K)}j(this,Kr)&&(C=j(this,Kr),k=j(this,Bo),w=Date.now(),S="error");const T=v.fetchStatus==="fetching",P=S==="pending",_=S==="error",F=P&&T,H=k!==void 0,W={status:S,fetchStatus:v.fetchStatus,isPending:P,isSuccess:S==="success",isError:_,isInitialLoading:F,isLoading:F,data:k,dataUpdatedAt:v.dataUpdatedAt,error:C,errorUpdatedAt:w,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>g.dataUpdateCount||v.errorUpdateCount>g.errorUpdateCount,isFetching:T,isRefetching:T&&!P,isLoadingError:_&&!H,isPaused:v.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:_&&H,isStale:Ch(t,r),refetch:this.refetch,promise:j(this,ir),isEnabled:on(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const K=ne=>{W.status==="error"?ne.reject(W.error):W.data!==void 0&&ne.resolve(W.data)},ue=()=>{const ne=se(this,ir,W.promise=Rf());K(ne)},ie=j(this,ir);switch(ie.status){case"pending":t.queryHash===o.queryHash&&K(ie);break;case"fulfilled":(W.status==="error"||W.data!==ie.value)&&ue();break;case"rejected":(W.status!=="error"||W.error!==ie.reason)&&ue();break}}return W}updateResult(){const t=j(this,jt),r=this.createResult(j(this,De),this.options);if(se(this,Ls,j(this,De).state),se(this,Fo,this.options),j(this,Ls).data!==void 0&&se(this,$o,j(this,De)),uc(r,t))return;se(this,jt,r);const o=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!j(this,Uo).size)return!0;const u=new Set(l??j(this,Uo));return this.options.throwOnError&&u.add("error"),Object.keys(j(this,jt)).some(f=>{const p=f;return j(this,jt)[p]!==t[p]&&u.has(p)})};Te(this,Ue,Lx).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Ue,Mf).call(this)}},zt=new WeakMap,De=new WeakMap,fa=new WeakMap,jt=new WeakMap,Ls=new WeakMap,Fo=new WeakMap,ir=new WeakMap,Kr=new WeakMap,ha=new WeakMap,Bo=new WeakMap,$o=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,Yr=new WeakMap,Uo=new WeakMap,Ue=new WeakSet,Ji=function(t){Te(this,Ue,Lf).call(this);let r=j(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(At)),r},jf=function(){Te(this,Ue,Df).call(this);const t=ts(this.options.staleTime,j(this,De));if(zs||j(this,jt).isStale||!kf(t))return;const o=Rx(j(this,jt).dataUpdatedAt,t)+1;se(this,Fs,_s.setTimeout(()=>{j(this,jt).isStale||this.updateResult()},o))},Of=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,De)):this.options.refetchInterval)??!1},Af=function(t){Te(this,Ue,If).call(this),se(this,Yr,t),!(zs||on(this.options.enabled,j(this,De))===!1||!kf(j(this,Yr))||j(this,Yr)===0)&&se(this,Bs,_s.setInterval(()=>{(this.options.refetchIntervalInBackground||Sh.isFocused())&&Te(this,Ue,Ji).call(this)},j(this,Yr)))},Mf=function(){Te(this,Ue,jf).call(this),Te(this,Ue,Af).call(this,Te(this,Ue,Of).call(this))},Df=function(){j(this,Fs)&&(_s.clearTimeout(j(this,Fs)),se(this,Fs,void 0))},If=function(){j(this,Bs)&&(_s.clearInterval(j(this,Bs)),se(this,Bs,void 0))},Lf=function(){const t=j(this,zt).getQueryCache().build(j(this,zt),this.options);if(t===j(this,De))return;const r=j(this,De);se(this,De,t),se(this,fa,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Lx=function(t){ft.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(j(this,jt))}),j(this,zt).getQueryCache().notify({query:j(this,De),type:"observerResultsUpdated"})})},ex);function WN(e,t){return on(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function by(e,t){return WN(e,t)||e.state.data!==void 0&&Ff(e,t,t.refetchOnMount)}function Ff(e,t,r){if(on(t.enabled,e)!==!1&&ts(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&Ch(e,t)}return!1}function Sy(e,t,r,o){return(e!==t||on(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Ch(e,r)}function Ch(e,t){return on(t.enabled,e)!==!1&&e.isStaleByTime(ts(t.staleTime,e))}function VN(e,t){return!uc(e.getCurrentResult(),t)}function Cy(e){return{onFetch:(t,r)=>{var y,v,E,k,C;const o=t.options,i=(E=(v=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:v.fetchMore)==null?void 0:E.direction,l=((k=t.state.data)==null?void 0:k.pages)||[],u=((C=t.state.data)==null?void 0:C.pageParams)||[];let f={pages:[],pageParams:[]},p=0;const g=async()=>{let w=!1;const S=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},N=jx(t.options,t.fetchOptions),T=async(P,_,F)=>{if(w)return Promise.reject();if(_==null&&P.pages.length)return Promise.resolve(P);const $=(()=>{const ue={client:t.client,queryKey:t.queryKey,pageParam:_,direction:F?"backward":"forward",meta:t.options.meta};return S(ue),ue})(),W=await N($),{maxPages:oe}=t.options,K=F?DN:MN;return{pages:K(P.pages,W,oe),pageParams:K(P.pageParams,_,oe)}};if(i&&l.length){const P=i==="backward",_=P?HN:Ey,F={pages:l,pageParams:u},H=_(o,F);f=await T(F,H,P)}else{const P=e??l.length;do{const _=p===0?u[0]??o.initialPageParam:Ey(o,f);if(p>0&&_==null)break;f=await T(f,_),p++}while(p<P)}return f};t.options.persister?t.fetchFn=()=>{var w,S;return(S=(w=t.options).persister)==null?void 0:S.call(w,g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=g}}}function Ey(e,{pages:t,pageParams:r}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}function HN(e,{pages:t,pageParams:r}){var o;return t.length>0?(o=e.getPreviousPageParam)==null?void 0:o.call(e,t[0],t,r[0],r):void 0}var pa,Mn,Ot,$s,Dn,Ur,tx,qN=(tx=class extends Dx{constructor(t){super();we(this,Dn);we(this,pa);we(this,Mn);we(this,Ot);we(this,$s);se(this,pa,t.client),this.mutationId=t.mutationId,se(this,Ot,t.mutationCache),se(this,Mn,[]),this.state=t.state||Fx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,Mn).includes(t)||(j(this,Mn).push(t),this.clearGcTimeout(),j(this,Ot).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){se(this,Mn,j(this,Mn).filter(r=>r!==t)),this.scheduleGc(),j(this,Ot).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,Mn).length||(this.state.status==="pending"?this.scheduleGc():j(this,Ot).remove(this))}continue(){var t;return((t=j(this,$s))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,p,g,y,v,E,k,C,w,S,N,T,P,_,F,H,$,W,oe;const r=()=>{Te(this,Dn,Ur).call(this,{type:"continue"})},o={client:j(this,pa),meta:this.options.meta,mutationKey:this.options.mutationKey};se(this,$s,Mx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,o):Promise.reject(new Error("No mutationFn found")),onFail:(K,ue)=>{Te(this,Dn,Ur).call(this,{type:"failed",failureCount:K,error:ue})},onPause:()=>{Te(this,Dn,Ur).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Ot).canRun(this)}));const i=this.state.status==="pending",l=!j(this,$s).canStart();try{if(i)r();else{Te(this,Dn,Ur).call(this,{type:"pending",variables:t,isPaused:l}),await((f=(u=j(this,Ot).config).onMutate)==null?void 0:f.call(u,t,this,o));const ue=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,t,o));ue!==this.state.context&&Te(this,Dn,Ur).call(this,{type:"pending",context:ue,variables:t,isPaused:l})}const K=await j(this,$s).start();return await((v=(y=j(this,Ot).config).onSuccess)==null?void 0:v.call(y,K,t,this.state.context,this,o)),await((k=(E=this.options).onSuccess)==null?void 0:k.call(E,K,t,this.state.context,o)),await((w=(C=j(this,Ot).config).onSettled)==null?void 0:w.call(C,K,null,this.state.variables,this.state.context,this,o)),await((N=(S=this.options).onSettled)==null?void 0:N.call(S,K,null,t,this.state.context,o)),Te(this,Dn,Ur).call(this,{type:"success",data:K}),K}catch(K){try{throw await((P=(T=j(this,Ot).config).onError)==null?void 0:P.call(T,K,t,this.state.context,this,o)),await((F=(_=this.options).onError)==null?void 0:F.call(_,K,t,this.state.context,o)),await(($=(H=j(this,Ot).config).onSettled)==null?void 0:$.call(H,void 0,K,this.state.variables,this.state.context,this,o)),await((oe=(W=this.options).onSettled)==null?void 0:oe.call(W,void 0,K,t,this.state.context,o)),K}finally{Te(this,Dn,Ur).call(this,{type:"error",error:K})}}finally{j(this,Ot).runNext(this)}}},pa=new WeakMap,Mn=new WeakMap,Ot=new WeakMap,$s=new WeakMap,Dn=new WeakSet,Ur=function(t){const r=o=>{switch(t.type){case"failed":return{...o,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};
140case"pending":return{...o,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...o,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:t.error,failureCount:o.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ft.batch(()=>{j(this,Mn).forEach(o=>{o.onMutationUpdate(t)}),j(this,Ot).notify({mutation:this,type:"updated",action:t})})},tx);function Fx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ar,yn,ma,nx,QN=(nx=class extends Jo{constructor(t={}){super();we(this,ar);we(this,yn);we(this,ma);this.config=t,se(this,ar,new Set),se(this,yn,new Map),se(this,ma,0)}build(t,r,o){const i=new qN({client:t,mutationCache:this,mutationId:++Ml(this,ma)._,options:t.defaultMutationOptions(r),state:o});return this.add(i),i}add(t){j(this,ar).add(t);const r=Fl(t);if(typeof r=="string"){const o=j(this,yn).get(r);o?o.push(t):j(this,yn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,ar).delete(t)){const r=Fl(t);if(typeof r=="string"){const o=j(this,yn).get(r);if(o)if(o.length>1){const i=o.indexOf(t);i!==-1&&o.splice(i,1)}else o[0]===t&&j(this,yn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Fl(t);if(typeof r=="string"){const o=j(this,yn).get(r),i=o==null?void 0:o.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var o;const r=Fl(t);if(typeof r=="string"){const i=(o=j(this,yn).get(r))==null?void 0:o.find(l=>
vendor: 5,504 bytes, line 140
140l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{j(this,ar).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,ar).clear(),j(this,yn).clear()})}getAll(){return Array.from(j(this,ar))}find(t){const r={exact:!0,...t};return this.getAll().find(o=>yy(r,o))}findAll(t={}){return this.getAll().filter(r=>yy(t,r))}notify(t){ft.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return ft.batch(()=>Promise.all(t.map(r=>r.continue().catch(At))))}},ar=new WeakMap,yn=new WeakMap,ma=new WeakMap,nx);function Fl(e){var t;return(t=e.options.scope)==null?void 0:t.id}var lr,Gr,Wt,cr,fr,Gl,Bf,rx,KN=(rx=class extends Jo{constructor(r,o){super();we(this,fr);we(this,lr);we(this,Gr);we(this,Wt);we(this,cr);se(this,lr,r),this.setOptions(o),this.bindMethods(),Te(this,fr,Gl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const o=this.options;this.options=j(this,lr).defaultMutationOptions(r),uc(this.options,o)||j(this,lr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:j(this,Wt),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&Ws(o.mutationKey)!==Ws(this.options.mutationKey)?this.reset():((i=j(this,Wt))==null?void 0:i.state.status)==="pending"&&j(this,Wt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=j(this,Wt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,fr,Gl).call(this),Te(this,fr,Bf).call(this,r)}getCurrentResult(){return j(this,Gr)}reset(){var r;(r=j(this,Wt))==null||r.removeObserver(this),se(this,Wt,void 0),Te(this,fr,Gl).call(this),Te(this,fr,Bf).call(this)}mutate(r,o){var i;return se(this,cr,o),(i=j(this,Wt))==null||i.removeObserver(this),se(this,Wt,j(this,lr).getMutationCache().build(j(this,lr),this.options)),j(this,Wt).addObserver(this),j(this,Wt).execute(r)}},lr=new WeakMap,Gr=new WeakMap,Wt=new WeakMap,cr=new WeakMap,fr=new WeakSet,Gl=function(){var o;const r=((o=j(this,Wt))==null?void 0:o.state)??Fx();se(this,Gr,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Bf=function(r){ft.batch(()=>{var o,i,l,u,f,p,g,y;if(j(this,cr)&&this.hasListeners()){const v=j(this,Gr).variables,E=j(this,Gr).context,k={client:j(this,lr),meta:this.options.meta,mutationKey:this.options.mutationKey};(r==null?void 0:r.type)==="success"?((i=(o=j(this,cr)).onSuccess)==null||i.call(o,r.data,v,E,k),(u=(l=j(this,cr)).onSettled)==null||u.call(l,r.data,null,v,E,k)):(r==null?void 0:r.type)==="error"&&((p=(f=j(this,cr)).onError)==null||p.call(f,r.error,v,E,k),(y=(g=j(this,cr)).onSettled)==null||y.call(g,void 0,r.error,v,E,k))}this.listeners.forEach(v=>{v(j(this,Gr))})})},rx),In,sx,YN=(sx=class extends Jo{constructor(t={}){super();we(this,In);this.config=t,se(this,In,new Map)}build(t,r,o){const i=r.queryKey,l=r.queryHash??wh(i,r);let u=this.get(l);return u||(u=new UN({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:o,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){j(this,In).has(t.queryHash)||(j(this,In).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=j(this,In).get(t.queryHash);r&&(t.destroy(),r===t&&j(this,In).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ft.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,In).get(t)}getAll(){return[...j(this,In).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(o=>gy(r,o))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(o=>gy(t,o)):r}notify(t){ft.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},In=new WeakMap,sx),tt,Xr,Jr,zo,Wo,Zr,Vo,Ho,ox,GN=(ox=class{constructor(e={}){we(this,tt);we(this,Xr);we(this,Jr);we(this,zo);we(this,Wo);we(this,Zr);we(this,Vo);we(this,Ho);se(this,tt,e.queryCache||new YN),se(this,Xr,e.mutationCache||new QN),se(this,Jr,e.defaultOptions||{}),se(this,zo,new Map),se(this,Wo,new Map),se(this,Zr,0)}mount(){Ml(this,Zr)._++,j(this,Zr)===1&&(se(this,Vo,Sh.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,tt).onFocus())})),se(this,Ho,dc.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,tt).onOnline())})))}unmount(){var e,t;Ml(this,Zr)._--,j(this,Zr)===0&&((e=j(this,Vo))==null||e.call(this),se(this,Vo,void 0),(t=j(this,Ho))==null||t.call(this),se(this,Ho,void 0))}isFetching(e){return j(this,tt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,Xr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=j(this,tt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=j(this,tt).build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ts(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return j(this,tt).findAll(e).map(({queryKey:t,state:r})=>{const o=r.data;return[t,o]})}setQueryData(e,t,r){const o=this.defaultQueryOptions({queryKey:e}),i=j(this,tt).get(o.queryHash),l=i==null?void 0:i.state.data,u=jN(t,l);if(u!==void 0)return j(this,tt).build(this,o).setData(u,{...r,manual:!0})}
140setQueriesData(e,t,r){return ft.batch(()=>j(this,tt).findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=j(this,tt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=j(this,tt);ft.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=j(this,tt);return ft.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},o=ft.batch(()=>j(this,tt).findAll(e).map(i=>i.cancel(r)));return Promise.all(o).then(At).catch(At)}invalidateQueries(e,t={}){return ft.batch(()=>(j(this,tt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},o=ft.batch(()=>j(this,tt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,r);return r.throwOnError||(l=l.catch(At)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(o).then(At)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=j(this,tt).build(this,t);return r.isStaleByTime(ts(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(At).catch(At)}fetchInfiniteQuery(e){return e.behavior=Cy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(At).catch(At)}ensureInfiniteQueryData(e){return e.behavior=Cy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dc.isOnline()?j(this,Xr).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,tt)}getMutationCache(){return j(this,Xr)}getDefaultOptions(){return j(this,Jr)}setDefaultOptions(e){se(this,Jr,e)}setQueryDefaults(e,t){j(this,zo).set(Ws(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,zo).values()],r={};return t.forEach(o=>{oa(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){j(this,Wo).set(Ws(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,Wo).values()],r={};return t.forEach(o=>{oa(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Jr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===bh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Jr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,tt).clear(),j(this,Xr).clear()}},tt=new WeakMap,Xr=new WeakMap,Jr=new WeakMap,zo=new WeakMap,Wo=new WeakMap,Zr=new WeakMap,Vo=new WeakMap,Ho=new WeakMap,ox),Bx=x.createContext(void 0),Pc=e=>{const t=x.useContext(Bx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},XN=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(Bx.Provider,{value:e,children:t})),$x=x.createContext(!1),JN=()=>x.useContext($x);$x.Provider;function ZN(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ek=x.createContext(ZN()),tk=()=>x.useContext(ek),nk=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},rk=e=>{x.useEffect(()=>{e.clearReset()},[e])},sk=({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(i&&e.data===void 0||Ox(r,[e.error,o])),ok=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...i)=>r(o(...i)):r(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ik=(e,t)=>e.isLoading&&e.isFetching&&!t,ak=(e,t)=>
140(e==null?void 0:e.suspense)&&t.isPending,Ny=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function lk(e,t,r){var v,E,k,C,w;const o=JN(),i=tk(),l=Pc(),u=l.defaultQueryOptions(e);(E=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||E.call(v,u),u._optimisticResults=o?"isRestoring":"optimistic",ok(u),nk(u,i),rk(i);const f=!l.getQueryCache().get(u.queryHash),[p]=x.useState(()=>new t(l,u)),g=p.getOptimisticResult(u),y=!o&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(S=>{const N=y?p.subscribe(ft.batchCalls(S)):At;return p.updateResult(),N},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x.useEffect(()=>{p.setOptions(u)},[u,p]),ak(u,g))throw Ny(u,p,i);if(sk({result:g,errorResetBoundary:i,throwOnError:u.throwOnError,query:l.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw g.error;if((C=(k=l.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||C.call(k,u,g),u.experimental_prefetchInRender&&!zs&&ik(g,o)){const S=f?Ny(u,p,i):(w=l.getQueryCache().get(u.queryHash))==null?void 0:w.promise;S==null||S.catch(At).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?g:p.trackResult(g)}function qo(e,t){return lk(e,zN)}function Rs(e,t){const r=Pc(),[o]=x.useState(()=>new KN(r,e));x.useEffect(()=>{o.setOptions(e)},[o,e]);const i=x.useSyncExternalStore(x.useCallback(u=>o.subscribe(ft.batchCalls(u)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),l=x.useCallback((u,f)=>{o.mutate(u,f).catch(At)},[o]);if(i.error&&Ox(o.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}const ck=new GN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var ga=ix();const uk=ph(ga);/** 141 * @remix-run/router v1.23.0 142 * 143 * Copyright (c) Remix Software Inc. 144 * 145 * This source code is licensed under the MIT license found in the 146 * LICENSE.md file in the root directory of this source tree. 147 * 148 * @license MIT 149 */function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ia.apply(this,arguments)}var es;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(es||(es={}));const ky="popstate";function dk(e){e===void 0&&(e={});function t(o,i){let{pathname:l,search:u,hash:f}=o.location;return $f("",{pathname:l,search:u,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(o,i){return typeof i=="string"?i:fc(i)}return hk(t,r,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ux(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fk(){return Math.random().toString(36).substr(2,8)}function Py(e,t){return{usr:e.state,key:e.key,idx:t}}function $f(e,t,r,o){return r===void 0&&(r=null),ia({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zo(t):t,{state:r,key:t&&t.key||o||fk()})}function fc(e){let{pathname:t="/",search:r="",hash:o=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function Zo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function hk(e,t,r,o){o===void 0&&(o={});let{window:i=document.defaultView,v5Compat:l=!1}=o,u=i.history,f=es.Pop,p=null,g=y();g==null&&(g=0,u.replaceState(ia({},u.state,{idx:g}),""));function y(){return(u.state||{idx:null}).idx}function v(){f=es.Pop;let S=y(),N=S==null?null:S-g;g=S,p&&p({action:f,location:w.location,delta:N})}function E(S,N){f=es.Push;let T=$f(w.location,S,N);g=y()+1;let P=Py(T,g),_=w.createHref(T);try{u.pushState(P,"",_)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;i.location.assign(_)}l&&p&&p({action:f,location:w.location,delta:1})}function k(S,N){f=es.Replace;let T=$f(w.location,S,N);g=y();let P=Py(T,g),_=w.createHref(T);u.replaceState(P,"",_),l&&p&&p({action:f,location:w.location,delta:0})}function C(S){let N=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof S=="string"?S:fc(S);return T=T.replace(/ $/,"%20"),lt(N,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,N)}let w={get action(){return f},get location(){return e(i,u)},listen(S){if(p)throw new Error("A history only accepts one active listener");return i.addEventListener(ky,v),p=S,()=>{i.removeEventListener(ky,v),p=null}},createHref(S){return t(i,S)},createURL:C,encodeLocation(S){let N=C(S);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:E,replace:k,go(S){return u.go(S)}};return w}var _y;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_y||(_y={}));function pk(e,t,r){return r===void 0&&(r="/"),mk(e,t,r)}function mk(e,t,r,o){let i=typeof t=="string"?Zo(t):t,l=Eh(i.pathname||"/",r);if(l==null)return null;let u=zx(e);gk(u);let f=null;for(let p=0;f==null&&p<u.length;++p){let g=_k(l);f=Nk(u[p],g)}return f}function zx(e,t,r,o){t===void 0&&(t=[]),r===void 0&&(r=[]),o===void 0&&(o="");let i=(l,u,f)=>{let p={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};p.relativePath.startsWith("/")&&(lt(p.relativePath.startsWith(o),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+o+'" is not val
149id. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(o.length));let g=ns([o,p.relativePath]),y=r.concat(p);l.children&&l.children.length>0&&(lt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),zx(l.children,t,y,g)),!(l.path==null&&!l.index)&&t.push({path:g,score:Ck(g,l.index),routesMeta:y})};return e.forEach((l,u)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))i(l,u);else for(let p of Wx(l.path))i(l,u,p)}),t}function Wx(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,i=r.endsWith("?"),l=r.replace(/\?$/,"");if(o.length===0)return i?[l,""]:[l];let u=Wx(o.join("/")),f=[];return f.push(...u.map(p=>p===""?l:[l,p].join("/"))),i&&f.push(...u),f.map(p=>e.startsWith("/")&&p===""?"/":p)}function gk(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ek(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const yk=/^:[\w-]+$/,vk=3,xk=2,wk=1,bk=10,Sk=-2,Ry=e=>e==="*";function Ck(e,t){let r=e.split("/"),o=r.length;return r.some(Ry)&&(o+=Sk),t&&(o+=xk),r.filter(i=>!Ry(i)).reduce((i,l)=>i+(yk.test(l)?vk:l===""?wk:bk),o)}function Ek(e,t){return e.length===t.length&&e.slice(0,-1).every((o,i)=>o===t[i])?e[e.length-1]-t[t.length-1]:0}function Nk(e,t,r){let{routesMeta:o}=e,i={},l="/",u=[];for(let f=0;f<o.length;++f){let p=o[f],g=f===o.length-1,y=l==="/"?t:t.slice(l.length)||"/",v=kk({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),E=p.route;if(!v)return null;
vendor: 9,695 bytes, lines 149-158
149Object.assign(i,v.params),u.push({params:i,pathname:ns([l,v.pathname]),pathnameBase:Ok(ns([l,v.pathnameBase])),route:E}),v.pathnameBase!=="/"&&(l=ns([l,v.pathnameBase]))}return u}function kk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Pk(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],u=l.replace(/(.)\/+$/,"$1"),f=i.slice(1);return{params:o.reduce((g,y,v)=>{let{paramName:E,isOptional:k}=y;if(E==="*"){let w=f[v]||"";u=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const C=f[v];return k&&!C?g[E]=void 0:g[E]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:l,pathnameBase:u,pattern:e}}function Pk(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ux(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,p)=>(o.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),o]}function _k(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ux(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Eh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function Rk(e,t){t===void 0&&(t="/");let{pathname:r,search:o="",hash:i=""}=typeof e=="string"?Zo(e):e;return{pathname:r?r.startsWith("/")?r:Tk(r,t):t,search:Ak(o),hash:Mk(i)}}function Tk(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function tf(e,t,r,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function jk(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Vx(e,t){let r=jk(e);return t?r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function Hx(e,t,r,o){o===void 0&&(o=!1);let i;typeof e=="string"?i=Zo(e):(i=ia({},e),lt(!i.pathname||!i.pathname.includes("?"),tf("?","pathname","search",i)),lt(!i.pathname||!i.pathname.includes("#"),tf("#","pathname","hash",i)),lt(!i.search||!i.search.includes("#"),tf("#","search","hash",i)));let l=e===""||i.pathname==="",u=l?"/":i.pathname,f;if(u==null)f=r;else{let v=t.length-1;if(!o&&u.startsWith("..")){let E=u.split("/");for(;E[0]==="..";)E.shift(),v-=1;i.pathname=E.join("/")}f=v>=0?t[v]:"/"}let p=Rk(i,f),g=u&&u!=="/"&&u.endsWith("/"),y=(l||u===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}const ns=e=>e.join("/").replace(/\/\/+/g,"/"),Ok=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ak=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Mk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qx=["post","put","patch","delete"];new Set(qx);const Ik=["get",...qx];new Set(Ik);/** 150 * React Router v6.30.1 151 * 152 * Copyright (c) Remix Software Inc. 153 * 154 * This source code is licensed under the MIT license found in the 155 * LICENSE.md file in the root directory of this source tree. 156 * 157 * @license MIT 158 */function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},aa.apply(this,arguments)}const Nh=x.createContext(null),Lk=x.createContext(null),Xs=x.createContext(null),_c=x.createContext(null),Js=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Qx=x.createContext(null);function Fk(e,t){let{relative:r}=t===void 0?{}:t;ya()||lt(!1);let{basename:o,navigator:i}=x.useContext(Xs),{hash:l,pathname:u,search:f}=Yx(e,{relative:r}),p=u;return o!=="/"&&(p=u==="/"?o:ns([o,u])),i.createHref({pathname:p,search:f,hash:l})}function ya(){return x.useContext(_c)!=null}function ei(){return ya()||lt(!1),x.useContext(_c).location}function Kx(e){x.useContext(Xs).static||x.useLayoutEffect(e)}function Bk(){let{isDataRoute:e}=x.useContext(Js);return e?Jk():$k()}function $k(){ya()||lt(!1);let e=x.useContext(Nh),{basename:t,future:r,navigator:o}=x.useContext(Xs),{matches:i}=x.useContext(Js),{pathname:l}=ei(),u=JSON.stringify(Vx(i,r.v7_relativeSplatPath)),f=x.useRef(!1);return Kx(()=>{f.current=!0}),x.useCallback(function(g,y){if(y===void 0&&(y={}),!f.current)return;if(typeof g=="number"){o.go(g);return}let v=Hx(g,JSON.parse(u),l,y.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:ns([t,v.pathname])),(y.replace?o.replace:o.push)(v,y.state,y)},[t,o,u,l,e])}function Yx(e,t){let{relative:r}=t===void 0?{}:t,{future:o}=x.useContext(Xs),{matches:i}=x.useContext(Js),{pathname:l}=ei(),u=JSON.stringify(Vx(i,o.v7_relativeSplatPath));return x.useMemo(()=>Hx(e,JSON.parse(u),l,r==="path"),[e,u,l,r])}function Uk(e,t){return zk(e,t)}function zk(e,t,r,o){ya()||lt(!1);let{navigator:i}=x.useContext(Xs),{matches:l}=x.useContext(Js),u=l[l.length-1],f=u?u.params:{};u&&u.pathname;let p=u?u.pathnameBase:"/";u&&u.route;let g=ei(),y;if(t){var v;let S=typeof t=="string"?Zo(t):t;p==="/"||(v=S.pathname)!=null&&v.startsWith(p)||lt(!1),y=S}else y=g;let E=y.pathname||"/",k=E;if(p!=="/"){let S=p.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(S.length).join("/")}let C=pk(e,{pathname:k}),w=Qk(C&&C.map(S=>Object.assign({},S,{params:Object.assign({},f,S.params),pathname:ns([p,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?p:ns([p,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),l,r,o);return t&&w?x.createElement(_c.Provider,{value:{location:aa({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:es.Pop}},w):w}function Wk(){let e=Xk(),t=Dk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:i},r):null,null)}const Vk=x.createElement(Wk,null);class Hk extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?x.createElement(Js.Provider,{value:this.props.routeContext},x.createElement(Qx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qk(e){let{routeContext:t,match:r,children:o}=e,i=x.useContext(Nh);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),x.createElement(Js.Provider,{value:t},o)}function Qk(e,t,r,o){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),o===void 0&&(o=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=o)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,f=(i=r)==null?void 0:i.errors;if(f!=null){let y=u.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);y>=0||lt(!1),u=u.slice(0,Math.min(u.length,y+1))}let p=!1,g=-1;if(r&&o&&o.v7_partialHydration)for(let y=0;y<u.length;y++){let v=u[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=y),v.route.id){let{loaderData:E,errors:k}=r,C=v.route.loader&&E[v.route.id]===void 0&&(!k||k[v.route.id]===void 0);if(v.route.lazy||C){p=!0,g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}return u.reduceRight((y,v,E)=>{let k,C=!1,w=null,S=null;r&&(k=f&&v.route.id?f[v.route.id]:void 0,w=v.route.errorElement||Vk,p&&(g<0&&E===0?(Zk("route-fallback"),C=!0,S=null):g===E&&(C=!0,S=v.route.hydrateFallbackElement||null)));let N=t.concat(u.slice(0,E+1)),T=()=>{let P;return k?P=w:C?P=S:v.route.Component?P=x.createElement(v.route.Component,null):v.route.element?P=v.route.element:P=y,x.createElement(qk,{match:v,routeContext:{outlet:y,matches:N,isDataRoute:r!=null},children:P})};return r&&(v.route.ErrorBoundary||v.route.errorElement||E===0)?x.createElement(Hk,{location:r.location,revalidation:r.revalidation,component:w,error:k,children:T(),routeContext:{outlet:null,matches:N,isDataRoute:!0}}):T()},null)}var Gx=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Gx||{}),Xx=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useL
158oaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Xx||{});function Kk(e){let t=x.useContext(Nh);return t||lt(!1),t}function Yk(e){let t=x.useContext(Lk);return t||lt(!1),t}function Gk(e){let t=x.useContext(Js);return t||lt(!1),t}function Jx(e){let t=Gk(),r=t.matches[t.matches.length-1];return r.route.id||lt(!1),r.route.id}function Xk(){var e;let t=x.useContext(Qx),r=Yk(),o=Jx();return t!==void 0?t:(e=r.errors)==null?void 0:e[o]}function Jk(){let{router:e}=Kk(Gx.UseNavigateStable),t=Jx(Xx.UseNavigateStable),r=x.useRef(!1);return Kx(()=>{r.current=!0}),x.useCallback(function(i,l){l===void 0&&(l={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,aa({fromRouteId:t},l)))},[e,t])}const Ty={};function Zk(e,t,r){Ty[e]||(Ty[e]=!0)}function eP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Xl(e){lt(!1)}function tP(e){let{basename:t="/",children:r=null,location:o,navigationType:i=es.Pop,navigator:l,static:u=!1,future:f}=e;ya()&<(!1);let p=t.replace(/^\/*/,"/"),g=x.useMemo(()=>({basename:p,navigator:l,static:u,future:aa({v7_relativeSplatPath:!1},f)}),[p,f,l,u]);typeof o=="string"&&(o=Zo(o));let{pathname:y="/",search:v="",hash:E="",state:k=null,key:C="default"}=o,w=x.useMemo(()=>{let S=Eh(y,p);return S==null?null:{location:{pathname:S,search:v,hash:E,state:k,key:C},navigationType:i}},[p,y,v,E,k,C,i]);return w==null?null:x.createElement(Xs.Provider,{value:g},x.createElement(_c.Provider,{children:r,value:w}))}function nP(e){let{children:t,location:r}=e;return Uk(Uf(t),r)}new Promise(()=>{});function Uf(e,t){t===void 0&&(t=[]);let r=[];return x.Children.forEach(e,(o,i)=>{if(!x.isValidElement(o))return;let l=[...t,i];if(o.type===x.Fragment){r.push.apply(r,Uf(o.props.children,l));return}o.type!==Xl&<(!1),!o.props.index||!o.props.children||lt(!1);let u={id:o.props.id||l.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=Uf(o.props.children,l)),r.push(u)}),r}/** 159 * React Router DOM v6.30.1 160 * 161 * Copyright (c) Remix Software Inc. 162 * 163 * This source code is licensed under the MIT license found in the 164 * LICENSE.md file in the root directory of this source tree. 165 * 166 * @license MIT 167 */function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},zf.apply(this,arguments)}function rP(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function sP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oP(e,t){return e.button===0&&(!t||t==="_self")&&!sP(e)}const iP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],aP="6";try{window.__reactRouterVersion=aP}catch{}const lP="startTransition",jy=gh[lP];function cP(e){let{basename:t,children:r,future:o,window:i}=e,l=x.useRef();l.current==null&&(l.current=dk({window:i,v5Compat:!0}));let u=l.current,[f,p]=x.useState({action:u.action,location:u.location}),{v7_startTransition:g}=o||{},y=x.useCallback(v=>{g&&jy?jy(()=>p(v)):p(v)},[p,g]);return x.useLayoutEffect(()=>u.listen(y),[u,y]),x.useEffect(()=>eP(o),[o]),x.createElement(tP,{basename:t,children:r,location:f.location,navigationType:f.action,navigator:u,future:o})}const uP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fP=x.forwardRef(function(t,r){let{onClick:o,relative:i,reloadDocument:l,replace:u,state:f,target:p,to:g,preventScrollReset:y,viewTransition:v}
167=t,E=rP(t,iP),{basename:k}=x.useContext(Xs),C,w=!1;if(typeof g=="string"&&dP.test(g)&&(C=g,uP))try{let P=new URL(window.location.href),_=g.startsWith("//")?new URL(P.protocol+g):new URL(g),F=Eh(_.pathname,k);_.origin===P.origin&&F!=null?g=F+_.search+_.hash:w=!0}catch{}let S=Fk(g,{relative:i}),N=hP(g,{replace:u,state:f,target:p,preventScrollReset:y,relative:i,viewTransition:v});function T(P){o&&o(P),P.defaultPrevented||N(P)}return x.createElement("a",zf({},E,{href:C||S,onClick:w||l?o:T,ref:r,target:p}))});var Oy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Oy||(Oy={}));var Ay;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ay||(Ay={}));function hP(e,t){let{target:r,replace:o,state:i,preventScrollReset:l,relative:u,viewTransition:f}=t===void 0?{}:t,p=Bk(),g=ei(),y=Yx(e,{relative:u});return x.useCallback(v=>{if(oP(v,r)){v.preventDefault();let E=o!==void 0?o:fc(g)===fc(y);p(e,{replace:E,state:i,preventScrollReset:l,relative:u,viewTransition:f})}},[g,p,y,o,i,r,e,l,u,f])}function Zx(e,t){return function(){return e.apply(t,arguments)}}const{toString:pP}=Object.prototype,{getPrototypeOf:kh}=Object,{iterator:Rc,toStringTag:ew}=Symbol,Tc=(e=>t=>{const r=pP.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nn=e=>(e=e.toLowerCase(),t=>Tc(t)===e),jc=e=>t=>typeof t===e,{isArray:ti}=Array,Qo=jc("undefined");function va(e){return e!==null&&!Qo(e)&&e.constructor!==null&&!Qo(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tw=Nn("ArrayBuffer");function mP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tw(e.buffer),t}const gP=jc("string"),Vt=jc("function"),nw=jc("number"),xa=e=>e!==null&&typeof e=="object",yP=e=>e===!0||e===!1,Jl=e=>{if(Tc(e)!=="object")return!1;const t=kh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ew in e)&&!(Rc in e)},vP=e=>{if(!xa(e)||va(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},xP=Nn("Date"),wP=Nn("File"),bP=Nn("Blob"),SP=Nn("FileList"),CP=e=>xa(e)&&Vt(e.pipe),EP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vt(e.append)&&((t=Tc(e))==="formdata"||t==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"))},NP=Nn("URLSearchParams"),[kP,PP,_P,RP]=["ReadableStream","Request","Response","Headers"].map(Nn),TP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wa(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),ti(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{if(va(e))return;const l=r?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let f;for(o=0;o<u;o++)f=l[o],t.call(null,e[f],f,e)}}function rw(e,t){if(va(e))return null;t=t.toLowerCase();const r=Object.keys(e);let o=r.length,i;for(;o-- >0;)if(i=r[o],t===i.toLowerCase())return i;return null}const Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sw=e=>!Qo(e)&&e!==Ts;function Wf(){const{caseless:e,skipUndefined:t}=sw(this)&&this||{},r={},o=(i,l)=>{const u=e&&rw(r,l)||l;Jl(r[u])&&Jl(i)?r[u]=Wf(r[u],i):Jl(i)?r[u]=Wf({},i):ti(i)?r[u]=i.slice():(!t||!Qo(i))&&(r[u]=i)};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&wa(arguments[i],o);return r}const jP=(e,t,r,{allOwnKeys:o}={})=>(wa(t,(i,l)=>{r&&Vt(i)?e[l]=Zx(i,r):e[l]=i},{allOwnKeys:o}),e),OP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),AP=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},MP=(e,t,r,o)=>{let i,l,u;const f={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)u=i[l],(!o||o(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=r!==!1&&kh(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},DP=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},IP=e=>{if(!e)return null;if(ti(e))return e;let t=e.length;if(!nw(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},LP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kh(Uint8Array)),FP=(e,t)=>
vendor: 2,031 bytes, line 167
167{const o=(e&&e[Rc]).call(e);let i;for(;(i=o.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},BP=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},$P=Nn("HTMLFormElement"),UP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,i){return o.toUpperCase()+i}),My=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zP=Nn("RegExp"),ow=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};wa(r,(i,l)=>{let u;(u=t(i,l,e))!==!1&&(o[l]=u||i)}),Object.defineProperties(e,o)},WP=e=>{ow(e,(t,r)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(Vt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},VP=(e,t)=>{const r={},o=i=>{i.forEach(l=>{r[l]=!0})};return ti(e)?o(e):o(String(e).split(t)),r},HP=()=>{},qP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function QP(e){return!!(e&&Vt(e.append)&&e[ew]==="FormData"&&e[Rc])}const KP=e=>{const t=new Array(10),r=(o,i)=>{if(xa(o)){if(t.indexOf(o)>=0)return;if(va(o))return o;if(!("toJSON"in o)){t[i]=o;const l=ti(o)?[]:{};return wa(o,(u,f)=>{const p=r(u,i+1);!Qo(p)&&(l[f]=p)}),t[i]=void 0,l}}return o};return r(e,0)},YP=Nn("AsyncFunction"),GP=e=>e&&(xa(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),iw=((e,t)=>e?setImmediate:t?((r,o)=>(Ts.addEventListener("message",({source:i,data:l})=>{i===Ts&&l===r&&o.length&&o.shift()()},!1),i=>{o.push(i),Ts.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Vt(Ts.postMessage)),XP=typeof queueMicrotask<"u"?queueMicrotask.bind(Ts):typeof process<"u"&&process.nextTick||iw,JP=e=>e!=null&&Vt(e[Rc]),z={isArray:ti,isArrayBuffer:tw,isBuffer:va,isFormData:EP,isArrayBufferView:mP,isString:gP,isNumber:nw,isBoolean:yP,isObject:xa,isPlainObject:Jl,isEmptyObject:vP,isReadableStream:kP,isRequest:PP,isResponse:_P,isHeaders:RP,isUndefined:Qo,isDate:xP,isFile:wP,isBlob:bP,isRegExp:zP,isFunction:Vt,isStream:CP,isURLSearchParams:NP,isTypedArray:LP,is
vendor: 5,017 bytes, line 167
167FileList:SP,forEach:wa,merge:Wf,extend:jP,trim:TP,stripBOM:OP,inherits:AP,toFlatObject:MP,kindOf:Tc,kindOfTest:Nn,endsWith:DP,toArray:IP,forEachEntry:FP,matchAll:BP,isHTMLForm:$P,hasOwnProperty:My,hasOwnProp:My,reduceDescriptors:ow,freezeMethods:WP,toObjectSet:VP,toCamelCase:UP,noop:HP,toFiniteNumber:qP,findKey:rw,global:Ts,isContextDefined:sw,isSpecCompliantForm:QP,toJSONObject:KP,isAsyncFn:YP,isThenable:GP,setImmediate:iw,asap:XP,isIterable:JP};function Re(e,t,r,o,i){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),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status?i.status:null)}z.inherits(Re,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:z.toJSONObject(this.config),code:this.code,status:this.status}}});const aw=Re.prototype,lw={};["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=>{lw[e]={value:e}});Object.defineProperties(Re,lw);Object.defineProperty(aw,"isAxiosError",{value:!0});Re.from=(e,t,r,o,i,l)=>{const u=Object.create(aw);z.toFlatObject(e,u,function(y){return y!==Error.prototype},g=>g!=="isAxiosError");const f=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return Re.call(u,f,p,r,o,i),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",l&&Object.assign(u,l),u};const ZP=null;function Vf(e){return z.isPlainObject(e)||z.isArray(e)}function cw(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Dy(e,t,r){return e?e.concat(t).map(function(i,l){return i=cw(i),!r&&l?"["+i+"]":i}).join(r?".":""):t}function e_(e){return z.isArray(e)&&!e.some(Vf)}const t_=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Oc(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!z.isUndefined(S[w])});const o=r.metaTokens,i=r.visitor||y,l=r.dots,u=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function g(C){if(C===null)return"";if(z.isDate(C))return C.toISOString();if(z.isBoolean(C))return C.toString();if(!p&&z.isBlob(C))throw new Re("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(C)||z.isTypedArray(C)?p&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function y(C,w,S){let N=C;if(C&&!S&&typeof C=="object"){if(z.endsWith(w,"{}"))w=o?w:w.slice(0,-2),C=JSON.stringify(C);else if(z.isArray(C)&&e_(C)||(z.isFileList(C)||z.endsWith(w,"[]"))&&(N=z.toArray(C)))return w=cw(w),N.forEach(function(P,_){!(z.isUndefined(P)||P===null)&&t.append(u===!0?Dy([w],_,l):u===null?w:w+"[]",g(P))}),!1}return Vf(C)?!0:(t.append(Dy(S,w,l),g(C)),!1)}const v=[],E=Object.assign(t_,{defaultVisitor:y,convertValue:g,isVisitable:Vf});function k(C,w){if(!z.isUndefined(C)){if(v.indexOf(C)!==-1)throw Error("Circular reference detected in "+w.join("."));v.push(C),z.forEach(C,function(N,T){(!(z.isUndefined(N)||N===null)&&i.call(t,N,z.isString(T)?T.trim():T,w,E))===!0&&k(N,w?w.concat(T):[T])}),v.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return k(e),t}function Iy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Ph(e,t){this._pairs=[],e&&Oc(e,this,t)}const uw=Ph.prototype;uw.append=function(t,r){this._pairs.push([t,r])};uw.toString=function(t){const r=t?function(o){return t.call(this,o,Iy)}:Iy;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function n_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dw(e,t,r){if(!t)return e;const o=r&&r.encode||n_;z.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let l;if(i?l=i(t,r):l=z.isURLSearchParams(t)?t.toString():new Ph(t,r).toString(o),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Ly{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(o){o!==null&&t(o)})}}const fw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},r_=typeof URLSearchParams<"u"?URLSearchParams:Ph,s_=typeof FormData<"u"?FormData:null,o_=typeof Blob<"u"?Blob:null,i_={isBrowser:!0,classes:{
vendor: 4,082 bytes, lines 167-168
167URLSearchParams:r_,FormData:s_,Blob:o_},protocols:["http","https","file","blob","url","data"]},_h=typeof window<"u"&&typeof document<"u",Hf=typeof navigator=="object"&&navigator||void 0,a_=_h&&(!Hf||["ReactNative","NativeScript","NS"].indexOf(Hf.product)<0),l_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c_=_h&&window.location.href||"http://localhost",u_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_h,hasStandardBrowserEnv:a_,hasStandardBrowserWebWorkerEnv:l_,navigator:Hf,origin:c_},Symbol.toStringTag,{value:"Module"})),kt={...u_,...i_};function d_(e,t){return Oc(e,new kt.classes.URLSearchParams,{visitor:function(r,o,i,l){return kt.isNode&&z.isBuffer(r)?(this.append(o,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function f_(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h_(e){const t={},r=Object.keys(e);let o;const i=r.length;let l;for(o=0;o<i;o++)l=r[o],t[l]=e[l];return t}function hw(e){function t(r,o,i,l){let u=r[l++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),p=l>=r.length;return u=!u&&z.isArray(i)?i.length:u,p?(z.hasOwnProp(i,u)?i[u]=[i[u],o]:i[u]=o,!f):((!i[u]||!z.isObject(i[u]))&&(i[u]=[]),t(r,o,i[u],l)&&z.isArray(i[u])&&(i[u]=h_(i[u])),!f)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(o,i)=>{t(f_(o),i,r,0)}),r}return null}function p_(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const ba={transitional:fw,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",i=o.indexOf("application/json")>-1,l=z.isObject(t);if(l&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return i?JSON.stringify(hw(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(l){if(o.indexOf("application/x-www-form-urlencoded")>-1)return d_(t,this.formSerializer).toString();if((f=z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Oc(f?{"files[]":t}:t,p&&new p,this.formSerializer)}}return l||i?(r.setContentType("application/json",!1),p_(t)):t}],transformResponse:[function(t){const r=this.transitional||ba.transitional,o=r&&r.forcedJSONParsing,i=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(o&&!this.responseType||i)){const u=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(f){if(u)throw f.name==="SyntaxError"?Re.from(f,Re.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{ba.headers[e]={}});const m_=z.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=>{const t={};let r,o,i;return e&&e.split(` 168`).forEach(function(u){i=u.indexOf(":"),r=u.substring(0,i).trim().toLowerCase(),o=u.substring(i+1).trim(),!(!r||t[r]&&m_[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},Fy=Symbol("internals");function Ki(e){return e&&String(e).trim().toLowerCase()}function Zl(e){return e===!1||e==null?e:z.isArray(e)?e.map(Zl):String(e)}function y_(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const v_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
vendor: 7,075 bytes, lines 168-169
168function nf(e,t,r,o,i){if(z.isFunction(o))return o.call(this,t,r);if(i&&(t=r),!!z.isString(t)){if(z.isString(o))return t.indexOf(o)!==-1;if(z.isRegExp(o))return o.test(t)}}function x_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function w_(e,t){const r=z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(i,l,u){return this[o].call(this,t,i,l,u)},configurable:!0})})}let Ht=class{constructor(t){t&&this.set(t)}set(t,r,o){const i=this;function l(f,p,g){const y=Ki(p);if(!y)throw new Error("header name must be a non-empty string");const v=z.findKey(i,y);(!v||i[v]===void 0||g===!0||g===void 0&&i[v]!==!1)&&(i[v||p]=Zl(f))}const u=(f,p)=>z.forEach(f,(g,y)=>l(g,y,p));if(z.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(z.isString(t)&&(t=t.trim())&&!v_(t))u(g_(t),r);else if(z.isObject(t)&&z.isIterable(t)){let f={},p,g;for(const y of t){if(!z.isArray(y))throw TypeError("Object iterator must return a key-value pair");f[g=y[0]]=(p=f[g])?z.isArray(p)?[...p,y[1]]:[p,y[1]]:y[1]}u(f,r)}else t!=null&&l(r,t,o);return this}get(t,r){if(t=Ki(t),t){const o=z.findKey(this,t);if(o){const i=this[o];if(!r)return i;if(r===!0)return y_(i);if(z.isFunction(r))return r.call(this,i,o);if(z.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ki(t),t){const o=z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||nf(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let i=!1;function l(u){if(u=Ki(u),u){const f=z.findKey(o,u);f&&(!r||nf(o,o[f],f,r))&&(delete o[f],i=!0)}}return z.isArray(t)?t.forEach(l):l(t),i}clear(t){const r=Object.keys(this);let o=r.length,i=!1;for(;o--;){const l=r[o];(!t||nf(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const r=this,o={};return z.forEach(this,(i,l)=>{const u=z.findKey(o,l);if(u){r[u]=Zl(i),delete r[l];return}const f=t?x_(l):String(l).trim();f!==l&&delete r[l],r[f]=Zl(i),o[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return z.forEach(this,(o,i)=>{o!=null&&o!==!1&&(r[i]=t&&z.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 169`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(i=>o.set(i)),o}static accessor(t){const o=(this[Fy]=this[Fy]={accessors:{}}).accessors,i=this.prototype;function l(u){const f=Ki(u);o[f]||(w_(i,u),o[f]=!0)}return z.isArray(t)?t.forEach(l):l(t),this}};Ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(Ht.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});z.freezeMethods(Ht);function rf(e,t){const r=this||ba,o=t||r,i=Ht.from(o.headers);let l=o.data;return z.forEach(e,function(f){l=f.call(r,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function pw(e){return!!(e&&e.__CANCEL__)}function ni(e,t,r){Re.call(this,e??"canceled",Re.ERR_CANCELED,t,r),this.name="CanceledError"}z.inherits(ni,Re,{__CANCEL__:!0});function mw(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Re("Request failed with status code "+r.status,[Re.ERR_BAD_REQUEST,Re.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function b_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function S_(e,t){e=e||10;const r=new Array(e),o=new Array(e);let i=0,l=0,u;return t=t!==void 0?t:1e3,function(p){const g=Date.now(),y=o[l];u||(u=g),r[i]=p,o[i]=g;let v=l,E=0;for(;v!==i;)E+=r[v++],v=v%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),g-u<t)return;const k=y&&g-y;return k?Math.round(E*1e3/k):void 0}}function C_(e,t){let r=0,o=1e3/t,i,l;const u=(g,y=Date.now())=>{r=y,i=null,l&&(clearTimeout(l),l=null),e(...g)};return[(...g)=>{const y=Date.now(),v=y-r;v>=o?u(g,y):(i=g,l||(l=setTimeout(()=>{l=null,u(i)},o-v)))},()=>i&&u(i)]}const hc=(e,t,r=3)=>{let o=0;const i=S_(50,250);return C_(l=>{const u=l.loaded,f=l.lengthComputable?l.total:void 0,p=u-o,g=i(p),y=u<=f;o=u;const v={loaded:u,total:f,progress:f?u/f:void 0,bytes:p,rate:g||void 0,estimated:g&&f&&y?(f-u)/g:void 0,event:l,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(v)},r)},By=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},$y=e=>(...t)=>z.asap(()=>e(...t)),E_=kt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,kt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(kt.origin),kt.navigator&&/(msie|trident)/i.test(kt.navigator.userAgent)):()=>!0,N_=kt.hasStandardBrowserEnv?{write(e,t,r,o,i,l){const u=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),z.isString(o)&&u.push("path="+o),z.isString(i)&&u.push("domain="+i),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const 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 k_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gw(e,t,r){let o=!k_(t);return e&&(o||r==!1)?P_(e,t):t}const Uy=e=>e instanceof Ht?{...e}:e;function Vs(e,t){t=t||{};const r={};function o(g,y,v,E){return z.isPlainObject(g)&&z.isPlainObject(y)?z.merge.call({caseless:E},g,y):z.isPlainObject(y)?z.merge({},y):z.isArray(y)?y.slice():y}function i(g,y,v,E){if(z.isUndefined(y)){if(!z.isUndefined(g))return o(void 0,g,v,E)}else return o(g,y,v,E)}function l(g,y){if(!z.isUndefined(y))return o(void 0,y)}function u(g,y){if(z.isUndefined(y)){if(!z.isUndefined(g))return o(void 0,g)}else return o(void 0,y)}function f(g,y,v){if(v in t)return o(g,y);if(v in e)return o(void 0,g)}const p={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(g,y,v)=>i(Uy(g),Uy(y),v,!0)};return z.forEach(Object.keys({...e,...t}),function(y){const v=p[y]||i,E=v(e[y],t[y],y);z.isUndefined(E)&&v!==f||(r[y]=E)}),r}const yw=e=>{const t=Vs({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:l,headers:u,auth:f}=t;if(t.headers=u=Ht.from(u),t.url=dw(gw(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),z.isFormData(r)){if(kt.hasStandardBrowserEnv||kt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);
vendor: 2,398 bytes, line 169
169else if(z.isFunction(r.getHeaders)){const p=r.getHeaders(),g=["content-type","content-length"];Object.entries(p).forEach(([y,v])=>{g.includes(y.toLowerCase())&&u.set(y,v)})}}if(kt.hasStandardBrowserEnv&&(o&&z.isFunction(o)&&(o=o(t)),o||o!==!1&&E_(t.url))){const p=i&&l&&N_.read(l);p&&u.set(i,p)}return t},__=typeof XMLHttpRequest<"u",R_=__&&function(e){return new Promise(function(r,o){const i=yw(e);let l=i.data;const u=Ht.from(i.headers).normalize();let{responseType:f,onUploadProgress:p,onDownloadProgress:g}=i,y,v,E,k,C;function w(){k&&k(),C&&C(),i.cancelToken&&i.cancelToken.unsubscribe(y),i.signal&&i.signal.removeEventListener("abort",y)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function N(){if(!S)return;const P=Ht.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),F={data:!f||f==="text"||f==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:P,config:e,request:S};mw(function($){r($),w()},function($){o($),w()},F),S=null}"onloadend"in S?S.onloadend=N:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(N)},S.onabort=function(){S&&(o(new Re("Request aborted",Re.ECONNABORTED,e,S)),S=null)},S.onerror=function(_){const F=_&&_.message?_.message:"Network Error",H=new Re(F,Re.ERR_NETWORK,e,S);H.event=_||null,o(H),S=null},S.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const F=i.transitional||fw;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),o(new Re(_,F.clarifyTimeoutError?Re.ETIMEDOUT:Re.ECONNABORTED,e,S)),S=null},l===void 0&&u.setContentType(null),"setRequestHeader"in S&&z.forEach(u.toJSON(),function(_,F){S.setRequestHeader(F,_)}),z.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),f&&f!=="json"&&(S.responseType=i.responseType),g&&([E,C]=hc(g,!0),S.addEventListener("progress",E)),p&&S.upload&&([v,k]=hc(p),S.upload.addEventListener("progress",v),S.upload.addEventListener("loadend",k)),(i.cancelToken||i.signal)&&(y=P=>{S&&(o(!P||P.type?new ni(null,e,S):P),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(y),i.signal&&(i.signal.aborted?y():i.signal.addEventListener("abort",y)));const T=b_(i.url);if(T&&kt.protocols.indexOf(T)===-1){o(new Re("Unsupported protocol "+T+":",Re.ERR_BAD_REQUEST,e));return}S.send(l||null)})},T_=(e,t)=>
vendor: 4,452 bytes, line 169
169{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,i;const l=function(g){if(!i){i=!0,f();const y=g instanceof Error?g:this.reason;o.abort(y instanceof Re?y:new ni(y instanceof Error?y.message:y))}};let u=t&&setTimeout(()=>{u=null,l(new Re(`timeout ${t} of ms exceeded`,Re.ETIMEDOUT))},t);const f=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(g=>{g.unsubscribe?g.unsubscribe(l):g.removeEventListener("abort",l)}),e=null)};e.forEach(g=>g.addEventListener("abort",l));const{signal:p}=o;return p.unsubscribe=()=>z.asap(f),p}},j_=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let o=0,i;for(;o<r;)i=o+t,yield e.slice(o,i),o=i},O_=async function*(e,t){for await(const r of A_(e))yield*j_(r,t)},A_=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},zy=(e,t,r,o)=>{const i=O_(e,t);let l=0,u,f=p=>{u||(u=!0,o&&o(p))};return new ReadableStream({async pull(p){try{const{done:g,value:y}=await i.next();if(g){f(),p.close();return}let v=y.byteLength;if(r){let E=l+=v;r(E)}p.enqueue(new Uint8Array(y))}catch(g){throw f(g),g}},cancel(p){return f(p),i.return()}},{highWaterMark:2})},Wy=64*1024,{isFunction:Bl}=z,M_=(({Request:e,Response:t})=>({Request:e,Response:t}))(z.global),{ReadableStream:Vy,TextEncoder:Hy}=z.global,qy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},D_=e=>{e=z.merge.call({skipUndefined:!0},M_,e);const{fetch:t,Request:r,Response:o}=e,i=t?Bl(t):typeof fetch=="function",l=Bl(r),u=Bl(o);if(!i)return!1;const f=i&&Bl(Vy),p=i&&(typeof Hy=="function"?(C=>w=>C.encode(w))(new Hy):async C=>new Uint8Array(await new r(C).arrayBuffer())),g=l&&f&&qy(()=>{let C=!1;const w=new r(kt.origin,{body:new Vy,method:"POST",get duplex(){return C=!0,"half"}}).headers.has("Content-Type");return C&&!w}),y=u&&f&&qy(()=>z.isReadableStream(new o("").body)),v={stream:y&&(C=>C.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!v[C]&&(v[C]=(w,S)=>{let N=w&&w[C];if(N)return N.call(w);throw new Re(`Response type '${C}' is not supported`,Re.ERR_NOT_SUPPORT,S)})});const E=async C=>{if(C==null)return 0;if(z.isBlob(C))return C.size;if(z.isSpecCompliantForm(C))return(await new r(kt.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(z.isArrayBufferView(C)||z.isArrayBuffer(C))return C.byteLength;if(z.isURLSearchParams(C)&&(C=C+""),z.isString(C))return(await p(C)).byteLength},k=async(C,w)=>{const S=z.toFiniteNumber(C.getContentLength());return S??E(w)};return async C=>{let{url:w,method:S,data:N,signal:T,cancelToken:P,timeout:_,onDownloadProgress:F,onUploadProgress:H,responseType:$,headers:W,withCredentials:oe="same-origin",fetchOptions:K}=yw(C),ue=t||fetch;$=$?($+"").toLowerCase():"text";let ie=T_([T,P&&P.toAbortSignal()],_),ne=null;const ae=ie&&ie.unsubscribe&&(()=>{ie.unsubscribe()});let xe;try{if(H&&g&&S!=="get"&&S!=="head"&&(xe=await k(W,N))!==0){let A=new r(w,{method:"POST",body:N,duplex:"half"}),V;if(z.isFormData(N)&&(V=A.headers.get("content-type"))&&W.setContentType(V),A.body){const[de,ce]=By(xe,hc($y(H)));N=zy(A.body,Wy,de,ce)}}z.isString(oe)||(oe=oe?"include":"omit");const G=l&&"credentials"in r.prototype,re={...K,signal:ie,method:S.toUpperCase(),headers:W.normalize().toJSON(),body:N,duplex:"half",credentials:G?oe:void 0};ne=l&&new r(w,re);let D=await(l?ue(ne,K):ue(w,re));const ee=y&&($==="stream"||$==="response");if(y&&(F||ee&&ae)){const A={};["status","statusText","headers"].forEach(Ne=>{A[Ne]=D[Ne]});const V=z.toFiniteNumber(D.headers.get("content-length")),[de,ce]=F&&By(V,hc($y(F),!0))||[];D=new o(zy(D.body,Wy,de,()=>{ce&&ce(),ae&&ae()}),A)}$=$||"text";let J=await v[z.findKey(v,$)||"text"](D,C);return!ee&&ae&&ae(),await new Promise((A,V)=>{mw(A,V,{data:J,headers:Ht.from(D.headers),status:D.status,statusText:D.statusText,config:C,request:ne})})}catch(G){throw ae&&ae(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new Re("Network Error",Re.ERR_NETWORK,C,ne),{cause:G.cause||G}):Re.from(G,G&&G.code,C,ne)}}},I_=new Map,vw=e=>{let t=e?e.env:{};const{fetch:r,Request:o,Response:i}=t,l=[o,i,r];let u=l.length,f=u,p,g,y=I_;for(;f--;)p=l[f],g=y.get(p),g===void 0&&y.set(p,g=f?new Map:D_(t)),y=g;return g};vw();const qf={http:ZP,xhr:R_,fetch:{get:vw}};z.forEach(qf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qy=e=>`- ${e}`,L_=e=>
vendor: 4,168 bytes, lines 169-172
169z.isFunction(e)||e===null||e===!1,xw={getAdapter:(e,t)=>{e=z.isArray(e)?e:[e];const{length:r}=e;let o,i;const l={};for(let u=0;u<r;u++){o=e[u];let f;if(i=o,!L_(o)&&(i=qf[(f=String(o)).toLowerCase()],i===void 0))throw new Re(`Unknown adapter '${f}'`);if(i&&(z.isFunction(i)||(i=i.get(t))))break;l[f||"#"+u]=i}if(!i){const u=Object.entries(l).map(([p,g])=>`adapter ${p} `+(g===!1?"is not supported by the environment":"is not available in the build"));let f=r?u.length>1?`since : 170`+u.map(Qy).join(` 171`):" "+Qy(u[0]):"as no adapter specified";throw new Re("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i},adapters:qf};function sf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ni(null,e)}function Ky(e){return sf(e),e.headers=Ht.from(e.headers),e.data=rf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xw.getAdapter(e.adapter||ba.adapter,e)(e).then(function(o){return sf(e),o.data=rf.call(e,e.transformResponse,o),o.headers=Ht.from(o.headers),o},function(o){return pw(o)||(sf(e),o&&o.response&&(o.response.data=rf.call(e,e.transformResponse,o.response),o.response.headers=Ht.from(o.response.headers))),Promise.reject(o)})}const ww="1.12.2",Ac={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ac[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Yy={};Ac.transitional=function(t,r,o){function i(l,u){return"[Axios v"+ww+"] Transitional option '"+l+"'"+u+(o?". "+o:"")}return(l,u,f)=>{if(t===!1)throw new Re(i(u," has been removed"+(r?" in "+r:"")),Re.ERR_DEPRECATED);return r&&!Yy[u]&&(Yy[u]=!0,console.warn(i(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,u,f):!0}};Ac.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function F_(e,t,r){if(typeof e!="object")throw new Re("options must be an object",Re.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const l=o[i],u=t[l];if(u){const f=e[l],p=f===void 0||u(f,l,e);if(p!==!0)throw new Re("option "+l+" must be "+p,Re.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Re("Unknown option "+l,Re.ERR_BAD_OPTION)}}const ec={assertOptions:F_,validators:Ac},An=ec.validators;let Us=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ly,response:new Ly}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{o.stack?l&&!String(o.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(o.stack+=` 172`+l):o.stack=l}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vs(this.defaults,r);const{transitional:o,paramsSerializer:i,headers:l}=r;o!==void 0&&ec.assertOptions(o,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),i!=null&&(z.isFunction(i)?r.paramsSerializer={serialize:i}:ec.assertOptions(i,{encode:An.function,serialize:An.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ec.assertOptions(r,{baseUrl:An.spelling("baseURL"),withXsrfToken:An.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=l&&z.merge(l.common,l[r.method]);l&&z.forEach(["delete","get","head","post","put","patch","common"],C=>{delete l[C]}),r.headers=Ht.concat(u,l);const f=[];let p=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(p=p&&w.synchronous,f.unshift(w.fulfilled,w.rejected))});const g=[];this.interceptors.response.forEach(function(w){g.push(w.fulfilled,w.rejected)});let y,v=0,E;if(!p){const C=[Ky.bind(this),void 0];for(C.unshift(...f),C.push(...g),E=C.length,y=Promise.resolve(r);v<E;)y=y.then(C[v++],C[v++]);return y}E=f.length;let k=r;for(;v<E;){const C=f[v++],w=f[v++];try{k=C(k)}catch(S){w.call(this,S);break}}
vendor: 1,901 bytes, line 172
172try{y=Ky.call(this,k)}catch(C){return Promise.reject(C)}for(v=0,E=g.length;v<E;)y=y.then(g[v++],g[v++]);return y}getUri(t){t=Vs(this.defaults,t);const r=gw(t.baseURL,t.url,t.allowAbsoluteUrls);return dw(r,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){Us.prototype[t]=function(r,o){return this.request(Vs(o||{},{method:t,url:r,data:(o||{}).data}))}});z.forEach(["post","put","patch"],function(t){function r(o){return function(l,u,f){return this.request(Vs(f||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}Us.prototype[t]=r(),Us.prototype[t+"Form"]=r(!0)});let B_=class bw{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const o=this;this.promise.then(i=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](i);o._listeners=null}),this.promise.then=i=>{let l;const u=new Promise(f=>{o.subscribe(f),l=f}).then(i);return u.cancel=function(){o.unsubscribe(l)},u},t(function(l,u,f){o.reason||(o.reason=new ni(l,u,f),r(o.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;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new bw(function(i){t=i}),cancel:t}}};function $_(e){return function(r){return e.apply(null,r)}}function U_(e){return z.isObject(e)&&e.isAxiosError===!0}const Qf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
172alContent: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(Qf).forEach(([e,t])=>{Qf[t]=e});function Sw(e){const t=new Us(e),r=Zx(Us.prototype.request,t);return z.extend(r,Us.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Sw(Vs(e,i))},r}const ot=Sw(ba);ot.Axios=Us;ot.CanceledError=ni;ot.CancelToken=B_;ot.isCancel=pw;ot.VERSION=ww;ot.toFormData=Oc;ot.AxiosError=Re;ot.Cancel=ot.CanceledError;ot.all=function(t){return Promise.all(t)};ot.spread=$_;ot.isAxiosError=U_;ot.mergeConfig=Vs;ot.AxiosHeaders=Ht;ot.formToJSON=e=>hw(z.isHTMLForm(e)?new FormData(e):e);ot.getAdapter=xw.getAdapter;ot.HttpStatusCode=Qf;ot.default=ot;const{Axios:sI,AxiosError:oI,CanceledError:iI,isCancel:aI,CancelToken:lI,VERSION:cI,all:uI,Cancel:dI,isAxiosError:fI,spread:hI,toFormData:pI,AxiosHeaders:mI,HttpStatusCode:gI,formToJSON:yI,getAdapter:vI,mergeConfig:xI}=ot,z_=typeof window>"u",Gy=!z_&&window.self!==window.top,of=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),bt=[];for(let e=0;e<256;++e)bt.push((e+256).toString(16).slice(1));
172function W_(e,t=0){return(bt[e[t+0]]+bt[e[t+1]]+bt[e[t+2]]+bt[e[t+3]]+"-"+bt[e[t+4]]+bt[e[t+5]]+"-"+bt[e[t+6]]+bt[e[t+7]]+"-"+bt[e[t+8]]+bt[e[t+9]]+"-"+bt[e[t+10]]+bt[e[t+11]]+bt[e[t+12]]+bt[e[t+13]]+bt[e[t+14]]+bt[e[t+15]]).toLowerCase()}let af;const V_=new Uint8Array(16);function H_(){if(!af){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");af=crypto.getRandomValues.bind(crypto)}return af(V_)}const q_=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Xy={randomUUID:q_};function Q_(e,t,r){var i;e=e||{};const o=e.random??((i=e.rng)==null?void 0:i.call(e))??H_();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,W_(o)}function K_(e,t,r){return Xy.randomUUID&&!e?Xy.randomUUID():Q_(e)}class Y_ extends Error{constructor(t,r,o,i,l){super(t),this.name="Base44Error",this.status=r,this.code=o,this.data=i,this.originalError=l}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Zi({baseURL:e,headers:t={},token:r,interceptResponses:o=!0,onError:i}){const l=ot.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return r&&(l.defaults.headers.common.Authorization=`Bearer ${r}`),l.interceptors.request.use(u=>{typeof window<"u"&&u.headers.set("X-Origin-URL",window.location.href);const f=K_();if(u.requestId=f,Gy)try{window.parent.postMessage({type:"api-request-start",requestId:f,data:{url:e+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),o&&l.interceptors.response.use(u=>{var f;const p=(f=u.config)===null||f===void 0?void 0:f.requestId;try{Gy&&p&&window.parent.postMessage({type:"api-request-end",requestId:p,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var f,p,g,y,v,E,k,C;const w=((p=(f=u.response)===null||f===void 0?void 0:f.data)===null||p===void 0?void 0:p.message)||((y=(g=u.response)===null||g===void 0?void 0:g.data)===null||y===void 0?void 0:y.detail)||u.message,S=new Y_(w,(v=u.response)===null||v===void 0?void 0:v.status,(k=(E=u.response)===null||E===void 0?void 0:E.data)===null||k===void 0?void 0:k.code,(C=u.response)===null||C===void 0?void 0:C.data,u);return i==null||i(S),Promise.reject(S)}),l}function Jy(e){const{axios:t,appId:r,getSocket:o}=e;return new Proxy({},{get(i,l){if(!(typeof l!="string"||l==="then"||l.startsWith("_")))return X_(t,r,l,o)}})}function G_(e){var t;try{const r=JSON.parse(e);return{type:r.type,data:r.data,id:r.id||((t=r.data)===null||t===void 0?void 0:t.id),timestamp:r.timestamp||new Date().toISOString()}}catch(r){return console.warn("[Base44 SDK] Failed to parse realtime message:",r),null}}function X_(e,t,r,o){const i=`/apps/${t}/entities/${r}`;return{async list(l,u,f,p){const g={};return l&&(g.sort=l),u&&(g.limit=u),f&&(g.skip=f),p&&(g.fields=Array.isArray(p)?p.join(","):p),e.get(i,{params:g})},async filter(l,u,f,p,g){const y={q:JSON.stringify(l)};return u&&(y.sort=u),f&&(y.limit=f),p&&(y.skip=p),g&&(y.fields=Array.isArray(g)?g.join(","):g),e.get(i,{params:y})},async get(l){return e.get(`${i}/${l}`)},async create(l){return e.post(i,l)},async update(l,u){return e.put(`${i}/${l}`,u)},async delete(l){return e.delete(`${i}/${l}`)},async deleteMany(l){return e.delete(i,{data:l})},async bulkCreate(l){return e.post(`${i}/bulk`,l)},async importEntities(l){const u=new FormData;return u.append("file",l,l.name),e.post(`${i}/import`,u,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(l){const u=`entities:${t}:${r}`;return o().subscribeToRoom(u,{update_model:g=>{const y=G_(g.data);if(y)try{l(y)}catch(v){console.error("[Base44 SDK] Subscription callback error:",v)}}})}}}function J_(e,t){return{async call(r,o,i){if(!(r!=null&&r.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(o!=null&&o.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:l,queryParams:u,...f}=i??{},p={...f,...l&&{path_params:l},...u&&{query_params:u}};return await e.post(`/apps/${t}/integrations/custom/${r}/${o}`,p)}}}function Zy(e,t){const r=J_(e,t);return new Proxy({}
172,{get(o,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?r:new Proxy({},{get(l,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async f=>{if(typeof f=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${f}`);let p,g;return f instanceof FormData||f&&Object.values(f).some(y=>y instanceof File)?(p=new FormData,Object.keys(f).forEach(y=>{f[y]instanceof File?p.append(y,f[y],f[y].name):typeof f[y]=="object"&&f[y]!==null?p.append(y,JSON.stringify(f[y])):p.append(y,f[y])}),g="multipart/form-data"):(p=f,g="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${u}`,p||f,{headers:{"Content-Type":g}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${u}`,p||f,{headers:{"Content-Type":g}})}}})}})}function Z_(e,t,r,o){return{async me(){return e.get(`/apps/${r}/entities/User/me`)},async updateMe(i){return e.put(`/apps/${r}/entities/User/me`,i)},redirectToLogin(i){var l;if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const u=i?new URL(i,window.location.origin).toString():window.location.href,f=`${(l=o.appBaseUrl)!==null&&l!==void 0?l:""}/login?from_url=${encodeURIComponent(u)}`;window.location.href=f},loginWithProvider(i,l="/"){const u=new URL(l,window.location.origin).toString(),f=i==="google"?"":`/${i}`,p=`${o.serverUrl}/api/apps/auth${f}/login?app_id=${r}&from_url=${encodeURIComponent(u)}`;window.location.href=p},logout(i){if(delete e.defaults.headers.common.Authorization,typeof window<"u"&&window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(l){console.error("Failed to remove token from localStorage:",l)}typeof window<"u"&&(i?window.location.href=i:window.location.reload())},setToken(i,l=!0){if(i&&(e.defaults.headers.common.Authorization=`Bearer ${i}`,t.defaults.headers.common.Authorization=`Bearer ${i}`,l&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",i),window.localStorage.setItem("token",i)}catch(u){console.error("Failed to save token to localStorage:",u)}},async loginViaEmailPassword(i,l,u){var f;try{const p=await e.post(`/apps/${r}/auth/login`,{email:i,password:l,...u&&{turnstile_token:u}}),{access_token:g,user:y}=p;return g&&this.setToken(g),{access_token:g,user:y}}catch(p){throw((f=p.response)===null||f===void 0?void 0:f.status)===401&&await this.logout(),p}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(i,l){return e.post(`/apps/${r}/users/invite-user`,{user_email:i,role:l})},register(i){return e.post(`/apps/${r}/auth/register`,i)},verifyOtp({email:i,otpCode:l}){return e.post(`/apps/${r}/auth/verify-otp`,{email:i,otp_code:l})},resendOtp(i){return e.post(`/apps/${r}/auth/resend-otp`,{email:i})},resetPasswordRequest(i){return e.post(`/apps/${r}/auth/reset-password-request`,{email:i})},resetPassword({resetToken:i,newPassword:l}){return e.post(`/apps/${r}/auth/reset-password`,{reset_token:i,new_password:l})},changePassword({userId:i,currentPassword:l,newPassword:u}){return e.post(`/apps/${r}/auth/change-password`,{user_id:i,current_password:l,new_password:u})}}}function eR(e,t,r){return{async getAccessToken(o){const i=`/apps/${t}/auth/sso/accesstoken/${o}`,l={};return r&&(l["on-behalf-of"]=`Bearer ${r}`),e.get(i,{headers:l})}}}function tR(e,t){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${r}`)).access_token}}}function Rh(e={}){const{storageKey:t="base44_access_token",paramName:r="access_token",saveToStorage:o=!0,removeFromUrl:i=!0}=e;let l=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(l=u.get(r),l){if(o&&nR(l,{storageKey:t}),i){u.delete(r);const f=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,f)}return l}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return l=window.localStorage.getItem(t),l}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function nR(e,t){const{storageKey:r="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(r,e),window.localStorage.setItem("token",e),!0}catch(o){return console.error("Error saving token to local storage:",o),!1}}
172function ev(e,t){return{async invoke(r,o){if(typeof o=="string")throw new Error(`Function ${r} must receive an object with named parameters, received: ${o}`);let i,l;return o instanceof FormData||o&&Object.values(o).some(u=>u instanceof File)?(i=new FormData,Object.keys(o).forEach(u=>{o[u]instanceof File?i.append(u,o[u],o[u].name):typeof o[u]=="object"&&o[u]!==null?i.append(u,JSON.stringify(o[u])):i.append(u,o[u])}),l="multipart/form-data"):(i=o,l="application/json"),e.post(`/apps/${t}/functions/${r}`,i||o,{headers:{"Content-Type":l}})}}}function tv({axios:e,getSocket:t,appId:r,serverUrl:o,token:i}){const l=`/apps/${r}/agents`,u={},f=()=>e.get(`${l}/conversations`),p=C=>e.get(`${l}/conversations/${C}`);return{getConversations:f,getConversation:p,listConversations:C=>e.get(`${l}/conversations`,{params:C}),createConversation:C=>e.post(`${l}/conversations`,C),addMessage:async(C,w)=>e.post(`${l}/conversations/v2/${C.id}/messages`,w),subscribeToConversation:(C,w)=>{const S=`/agent-conversations/${C}`,N=t(),T=p(C).then(P=>(u[C]=P,P));return N.subscribeToRoom(S,{connect:()=>{},update_model:async({data:P})=>{const _=JSON.parse(P);if(_._message){await T;const F=_._message,H=u[C];if(H){const $=H.messages||[],W=$.findIndex(K=>K.id===F.id),oe=W!==-1?$.map((K,ue)=>ue===W?F:K):[...$,F];u[C]={...H,messages:oe},w==null||w(u[C])}}}})},getWhatsAppConnectURL:C=>{const w=`${o}/api/apps/${r}/agents/${encodeURIComponent(C)}/whatsapp`,S=i??Rh();return S?`${w}?token=${S}`:w}}}function nv(e,t){const r=`/app-logs/${t}`;return{async logUserInApp(o){await e.post(`${r}/log-user-in-app/${o}`)},async fetchLogs(o={}){return await e.get(r,{params:o})},async getStats(o={}){return await e.get(`${r}/stats`,{params:o})}}}function rR(e,t){return{async inviteUser(r,o){if(o!=="user"&&o!=="admin")throw new Error(`Invalid role: "${o}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:r,role:o})}}}const Wn=Object.create(null);Wn.open="0";Wn.close="1";Wn.ping="2";Wn.pong="3";Wn.message="4";Wn.upgrade="5";Wn.noop="6";const tc=Object.create(null);Object.keys(Wn).forEach(e=>{tc[Wn[e]]=e});const Kf={type:"error",data:"parser error"},Cw=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ew=typeof ArrayBuffer=="function",Nw=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Th=({type:e,data:t},r,o)=>Cw&&t instanceof Blob?r?o(t):rv(t,o):Ew&&(t instanceof ArrayBuffer||Nw(t))?r?o(t):rv(new Blob([t]),o):o(Wn[e]+(t||"")),rv=(e,t)=>{const r=new FileReader;return r.onload=function(){const o=r.result.split(",")[1];t("b"+(o||""))},r.readAsDataURL(e)};function sv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let lf;function sR(e,t){if(Cw&&e.data instanceof Blob)return e.data.arrayBuffer().then(sv).then(t);if(Ew&&(e.data instanceof ArrayBuffer||Nw(e.data)))return t(sv(e.data));Th(e,!1,r=>{lf||(lf=new TextEncoder),t(lf.encode(r))})}const ov="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ea=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<ov.length;e++)ea[ov.charCodeAt(e)]=e;const oR=e=>{let t=e.length*.75,r=e.length,o,i=0,l,u,f,p;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const g=new ArrayBuffer(t),y=new Uint8Array(g);for(o=0;o<r;o+=4)l=ea[e.charCodeAt(o)],u=ea[e.charCodeAt(o+1)],f=ea[e.charCodeAt(o+2)],p=ea[e.charCodeAt(o+3)],y[i++]=l<<2|u>>4,y[i++]=(u&15)<<4|f>>2,y[i++]=(f&3)<<6|p&63;return g},iR=typeof ArrayBuffer=="function",jh=(e,t)=>{if(typeof e!="string")return{type:"message",data:kw(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:aR(e.substring(1),t)}:tc[r]?e.length>1?{type:tc[r],data:e.substring(1)}:{type:tc[r]}:Kf},aR=(e,t)=>{if(iR){const r=oR(e);return kw(r,t)}else return{base64:!0,data:e}},kw=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Pw="�",lR=(e,t)=>{const r=e.length,o=new Array(r);let i=0;e.forEach((l,u)=>{Th(l,!1,f=>{o[u]=f,++i===r&&t(o.join(Pw))})})},cR=(e,t)=>{const r=e.split(Pw),o=[];for(let i=0;i<r.length;i++){const l=jh(r[i],t);
vendor: 37,689 bytes, line 172
172if(o.push(l),l.type==="error")break}return o};function uR(){return new TransformStream({transform(e,t){sR(e,r=>{const o=r.length;let i;if(o<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,o);else if(o<65536){i=new Uint8Array(3);const l=new DataView(i.buffer);l.setUint8(0,126),l.setUint16(1,o)}else{i=new Uint8Array(9);const l=new DataView(i.buffer);l.setUint8(0,127),l.setBigUint64(1,BigInt(o))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(r)})}})}let cf;function $l(e){return e.reduce((t,r)=>t+r.length,0)}function Ul(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let o=0;for(let i=0;i<t;i++)r[i]=e[0][o++],o===e[0].length&&(e.shift(),o=0);return e.length&&o<e[0].length&&(e[0]=e[0].slice(o)),r}function dR(e,t){cf||(cf=new TextDecoder);const r=[];let o=0,i=-1,l=!1;return new TransformStream({transform(u,f){for(r.push(u);;){if(o===0){if($l(r)<1)break;const p=Ul(r,1);l=(p[0]&128)===128,i=p[0]&127,i<126?o=3:i===126?o=1:o=2}else if(o===1){if($l(r)<2)break;const p=Ul(r,2);i=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),o=3}else if(o===2){if($l(r)<8)break;const p=Ul(r,8),g=new DataView(p.buffer,p.byteOffset,p.length),y=g.getUint32(0);if(y>Math.pow(2,21)-1){f.enqueue(Kf);break}i=y*Math.pow(2,32)+g.getUint32(4),o=3}else{if($l(r)<i)break;const p=Ul(r,i);f.enqueue(jh(l?p:cf.decode(p),t)),o=0}if(i===0||i>e){f.enqueue(Kf);break}}}})}const _w=4;function at(e){if(e)return fR(e)}function fR(e){for(var t in at.prototype)e[t]=at.prototype[t];return e}at.prototype.on=at.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};at.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};at.prototype.off=at.prototype.removeListener=at.prototype.removeAllListeners=at.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o,i=0;i<r.length;i++)if(o=r[i],o===t||o.fn===t){r.splice(i,1);break}return r.length===0&&delete this._callbacks["$"+e],this};at.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,i=r.length;o<i;++o)r[o].apply(this,t)}return this};at.prototype.emitReserved=at.prototype.emit;at.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};at.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Mc=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),an=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),hR="arraybuffer";function Rw(e,...t){return t.reduce((r,o)=>(e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}const pR=an.setTimeout,mR=an.clearTimeout;function Dc(e,t){t.useNativeTimers?(e.setTimeoutFn=pR.bind(an),e.clearTimeoutFn=mR.bind(an)):(e.setTimeoutFn=an.setTimeout.bind(an),e.clearTimeoutFn=an.clearTimeout.bind(an))}const gR=1.33;function yR(e){return typeof e=="string"?vR(e):Math.ceil((e.byteLength||e.size)*gR)}function vR(e){let t=0,r=0;for(let o=0,i=e.length;o<i;o++)t=e.charCodeAt(o),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(o++,r+=4);return r}function Tw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function xR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function wR(e){let t={},r=e.split("&");for(let o=0,i=r.length;o<i;o++){let l=r[o].split("=");t[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}return t}class bR extends Error{constructor(t,r,o){super(t),this.description=r,this.context=o,this.type="TransportError"}}class Oh extends at{constructor(t){super(),this.writable=!1,Dc(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,o){return super.emitReserved("error",new bR(t,r,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=jh(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const r=xR(t);return r.length?"?"+r:""}}class SR extends Oh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};cR(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,lR(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Tw()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}}let jw=!1;try{jw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const CR=jw;function ER(){}class NR extends SR{constructor(t){if(super(t),typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}}doWrite(t,r){const o=this.request({method:"POST",data:t});o.on("success",r),o.on("error",(i,l)=>{this.onError("xhr post error",i,l)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=t}}class Un extends at{constructor(t,r,o){super(),this.createRequest=t,Dc(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var t;const r=Rw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&o.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var i;o.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Un.requestsCount++,Un.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ER,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Un.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Un.requestsCount=0;Un.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",iv);else if(typeof addEventListener=="function"){const e="onpagehide"in an?"pagehide":"unload";addEventListener(e,iv,!1)}}function iv(){for(let e in Un.requests)Un.requests.hasOwnProperty(e)&&Un.requests[e].abort()}const kR=(function(){const e=Ow({xdomain:!1});return e&&e.responseType!==null})();class PR extends NR{constructor(t){super(t);const r=t&&t.forceBase64;this.supportsBinary=kR&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Un(Ow,this.uri(),t)}}function Ow(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||CR))return new XMLHttpRequest}catch{}if(!t)try{return new an[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Aw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class _R extends Oh{get name(){return"websocket"}doOpen(){const t=this.uri(),r=this.opts.protocols,o=Aw?{}:Rw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,o)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const o=t[r],i=r===t.length-1;Th(o,this.supportsBinary,l=>{try{this.doWrite(o,l)}catch{}i&&Mc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Tw()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}}const uf=an.WebSocket||an.MozWebSocket;class RR extends _R{createSocket(t,r,o){return Aw?new uf(t,r,o):r?new uf(t,r):new uf(t)}doWrite(t,r){this.ws.send(r)}}class TR extends Oh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const r=dR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=t.readable.pipeThrough(r).getReader(),i=uR();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const l=()=>{o.read().then(({done:f,value:p})=>{f||(this.onPacket(p),l())}).catch(f=>{})};l();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const o=t[r],i=r===t.length-1;this._writer.write(o).then(()=>{i&&Mc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const jR={websocket:RR,webtransport:TR,polling:PR},OR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,AR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Yf(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),o=e.indexOf("]");r!=-1&&o!=-1&&(e=e.substring(0,r)+e.substring(r,o).replace(/:/g,";")+e.substring(o,e.length));let i=OR.exec(e||""),l={},u=14;for(;u--;)l[AR[u]]=i[u]||"";return r!=-1&&o!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=MR(l,l.path),l.queryKey=DR(l,l.query),l}function MR(e,t){const r=/\/{2,9}/g,o=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&o.splice(0,1),t.slice(-1)=="/"&&o.splice(o.length-1,1),o}function DR(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,i,l){i&&(r[i]=l)}),r}const Gf=typeof addEventListener=="function"&&typeof removeEventListener=="function",nc=[];Gf&&addEventListener("offline",()=>{nc.forEach(e=>e())},!1);class rs extends at{constructor(t,r){if(super(),this.binaryType=hR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){const o=Yf(t);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=Yf(r.host).host);Dc(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(o=>{const i=o.prototype.name;this.transports.push(i),this._transportsByName[i]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=wR(this.opts.query)),Gf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},nc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=_w,r.transport=t,this.id&&(r.sid=this.id);const o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&rs.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",rs.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o<this.writeBuffer.length;o++){const i=this.writeBuffer[o].data;if(i&&(r+=yR(i)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Mc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,o){return this._sendPacket("message",t,r,o),this}send(t,r,o){return this._sendPacket("message",t,r,o),this}_sendPacket(t,r,o,i){if(typeof r=="function"&&(i=r,r=void 0),typeof o=="function"&&(i=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;const l={type:t,data:r,options:o};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},o=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():t()}):this.upgrading?o():t()),this}_onError(t){if(rs.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Gf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const o=nc.indexOf(this._offlineEventListener);o!==-1&&nc.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}}rs.protocol=_w;class IR extends rs{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),o=!1;rs.priorWebsocketSuccess=!1;const i=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",v=>{if(!o)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;rs.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(y(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const E=new Error("probe error");E.transport=r.name,this.emitReserved("upgradeError",E)}}))};function l(){o||(o=!0,y(),r.close(),r=null)}const u=v=>{const E=new Error("probe error: "+v);E.transport=r.name,l(),this.emitReserved("upgradeError",E)};function f(){u("transport closed")}function p(){u("socket closed")}function g(v){r&&v.name!==r.name&&l()}const y=()=>{r.removeListener("open",i),r.removeListener("error",u),r.removeListener("close",f),this.off("close",p),this.off("upgrading",g)};r.once("open",i),r.once("error",u),r.once("close",f),this.once("close",p),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{o||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const r=[];for(let o=0;o<t.length;o++)~this.transports.indexOf(t[o])&&r.push(t[o]);return r}}let LR=class extends IR{constructor(t,r={}){const o=typeof t=="object"?t:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(i=>jR[i]).filter(i=>!!i)),super(t,o)}};function FR(e,t="",r){let o=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),o=Yf(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const l=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+l+":"+o.port+t,o.href=o.protocol+"://"+l+(r&&r.port===o.port?"":":"+o.port),o}const BR=typeof ArrayBuffer=="function",$R=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Mw=Object.prototype.toString,UR=typeof Blob=="function"||typeof Blob<"u"&&Mw.call(Blob)==="[object BlobConstructor]",zR=typeof File=="function"||typeof File<"u"&&Mw.call(File)==="[object FileConstructor]";function Ah(e){return BR&&(e instanceof ArrayBuffer||$R(e))||UR&&e instanceof Blob||zR&&e instanceof File}function rc(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,o=e.length;r<o;r++)if(rc(e[r]))return!0;return!1}if(Ah(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return rc(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&rc(e[r]))return!0;return!1}function WR(e){const t=[],r=e.data,o=e;return o.data=Xf(r,t),o.attachments=t.length,{packet:o,buffers:t}}function Xf(e,t){if(!e)return e;if(Ah(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let o=0;o<e.length;o++)r[o]=Xf(e[o],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Xf(e[o],t));return r}return e}function VR(e,t){return e.data=Jf(e.data,t),delete e.attachments,e}function Jf(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Jf(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Jf(e[r],t));return e}const HR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qR=5;var Ie;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ie||(Ie={}));class QR{constructor(t){this.replacer=t}encode(t){return(t.type===Ie.EVENT||t.type===Ie.ACK)&&rc(t)?this.encodeAsBinary({type:t.type===Ie.EVENT?Ie.BINARY_EVENT:Ie.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Ie.BINARY_EVENT||t.type===Ie.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=WR(t),o=this.encodeAsString(r.packet),i=r.buffers;return i.unshift(o),i}}function av(e){return Object.prototype.toString.call(e)==="[object Object]"}class Mh extends at{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const o=r.type===Ie.BINARY_EVENT;o||r.type===Ie.BINARY_ACK?(r.type=o?Ie.EVENT:Ie.ACK,this.reconstructor=new KR(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Ah(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const o={type:Number(t.charAt(0))};if(Ie[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===Ie.BINARY_EVENT||o.type===Ie.BINARY_ACK){const l=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const u=t.substring(l,r);if(u!=Number(u)||t.charAt(r)!=="-")throw new Error("Illegal attachments");o.attachments=Number(u)}if(t.charAt(r+1)==="/"){const l=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););o.nsp=t.substring(l,r)}else o.nsp="/";const i=t.charAt(r+1);if(i!==""&&Number(i)==i){const l=r+1;for(;++r;){const u=t.charAt(r);if(u==null||Number(u)!=u){--r;break}if(r===t.length)break}o.id=Number(t.substring(l,r+1))}if(t.charAt(++r)){const l=this.tryParse(t.substr(r));if(Mh.isPayloadValid(o.type,l))o.data=l;else throw new Error("invalid payload")}return o}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Ie.CONNECT:return av(r);case Ie.DISCONNECT:return r===void 0;case Ie.CONNECT_ERROR:return typeof r=="string"||av(r);case Ie.EVENT:case Ie.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&HR.indexOf(r[0])===-1);case Ie.ACK:case Ie.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class KR{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=VR(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const YR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Mh,Encoder:QR,get PacketType(){return Ie},protocol:qR},Symbol.toStringTag,{value:"Module"}));function vn(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const GR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Dw extends at{constructor(t,r,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[vn(t,"open",this.onopen.bind(this)),vn(t,"packet",this.onpacket.bind(this)),vn(t,"error",this.onerror.bind(this)),vn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var o,i,l;if(GR.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const u={type:Ie.EVENT,data:r};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const y=this.ids++,v=r.pop();this._registerAckCallback(y,v),u.id=y}const f=(i=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||i===void 0?void 0:i.writable,p=this.connected&&!(!((l=this.io.engine)===null||l===void 0)&&l._hasPingExpired());return this.flags.volatile&&!f||(p?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,r){var o;const i=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(i===void 0){this.acks[t]=r;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);r.call(this,new Error("operation has timed out"))},i),u=(...f)=>{this.io.clearTimeoutFn(l),r.apply(this,f)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...r){return new Promise((o,i)=>{const l=(u,f)=>u?i(u):o(f);l.withError=!0,r.push(l),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...l)=>o!==this._queue[0]?void 0:(i!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(i)):(this._queue.shift(),r&&r(null,...l)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ie.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(o=>String(o.id)===t)){const o=this.acks[t];delete this.acks[t],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ie.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ie.EVENT:case Ie.BINARY_EVENT:this.onevent(t);break;case Ie.ACK:case Ie.BINARY_ACK:this.onack(t);break;case Ie.DISCONNECT:this.ondisconnect();break;case Ie.CONNECT_ERROR:this.destroy();const o=new Error(t.data.message);o.data=t.data.data,this.emitReserved("connect_error",o);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const o of r)o.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let o=!1;return function(...i){o||(o=!0,r.packet({type:Ie.ACK,id:t,data:i}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ie.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let o=0;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const o of r)o.apply(this,t.data)}}}function ri(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ri.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};ri.prototype.reset=function(){this.attempts=0};ri.prototype.setMin=function(e){this.ms=e};ri.prototype.setMax=function(e){this.max=e};ri.prototype.setJitter=function(e){this.jitter=e};class Zf extends at{constructor(t,r){var o;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Dc(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new ri({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const i=r.parser||YR;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new LR(this.uri,this.opts);const r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const i=vn(r,"open",function(){o.onopen(),t&&t()}),l=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},u=vn(r,"error",l);if(this._timeout!==!1){const f=this._timeout,p=this.setTimeoutFn(()=>{i(),l(new Error("timeout")),r.close()},f);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(i),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(vn(t,"ping",this.onping.bind(this)),vn(t,"data",this.ondata.bind(this)),vn(t,"error",this.onerror.bind(this)),vn(t,"close",this.onclose.bind(this)),vn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){Mc(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let o=this.nsps[t];return o?this._autoConnect&&!o.active&&o.connect():(o=new Dw(this,t,r),this.nsps[t]=o),o}_destroy(t){const r=Object.keys(this.nsps);for(const o of r)if(this.nsps[o].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let o=0;o<r.length;o++)this.engine.write(r[o],t.options)}
172cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const o=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Yi={};function sc(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=FR(e,t.path||"/socket.io"),o=r.source,i=r.id,l=r.path,u=Yi[i]&&l in Yi[i].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let p;return f?p=new Zf(o,t):(Yi[i]||(Yi[i]=new Zf(o,t)),p=Yi[i]),r.query&&!t.query&&(t.query=r.queryKey),p.socket(r.path,t)}Object.assign(sc,{Manager:Zf,Socket:Dw,io:sc,connect:sc});function lv(e,t){var r;const o=sc(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(r=e.token)!==null&&r!==void 0?r:Rh()}});return o.on("connect",async()=>{var i;return console.log("connect",o.id),(i=t.connect)===null||i===void 0?void 0:i.call(t)}),o.on("update_model",async i=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,i)}),o.on("error",async i=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,i)}),o.on("connect_error",async i=>{var l;return console.error("connect_error",i),(l=t.error)===null||l===void 0?void 0:l.call(t,i)}),o}function XR({config:e}){let t={...e};const r={},o={connect:async()=>{const k=[];Object.keys(r).forEach(C=>{p(C);const w=v(C);w==null||w.forEach(({connect:S})=>{const N=async()=>S==null?void 0:S();k.push(N())})}),await Promise.all(k)},update_model:async k=>{const w=v(k.room).map(S=>{var N;return(N=S.update_model)===null||N===void 0?void 0:N.call(S,k)});await Promise.all(w)},error:async k=>{console.error("error",k);const C=Object.values(r).flat().map(w=>{var S;return(S=w.error)===null||S===void 0?void 0:S.call(w,k)});await Promise.all(C)}};let i=lv(e,o);function l(){u()}function u(){i&&i.disconnect()}function f(k){l(),t={...t,...k},i=lv(t,o)}function p(k){i.emit("join",k)}function g(k){i.emit("leave",k)}async function y(k,C){var w;const S=JSON.stringify(C);return(w=o.update_model)===null||w===void 0?void 0:w.call(o,{room:k,data:S}
172)}function v(k){return r[k]}return{socket:i,subscribeToRoom:(k,C)=>(r[k]||(p(k),r[k]=[]),r[k].push(C),()=>{var w,S;r[k]=(S=(w=r[k])===null||w===void 0?void 0:w.filter(N=>N!==C))!==null&&S!==void 0?S:[],r[k].length===0&&g(k)}),updateConfig:f,updateModel:y,disconnect:u}}const Gi=typeof window<"u"?window:{base44SharedInstances:{}};function JR(e,t){return Gi.base44SharedInstances||(Gi.base44SharedInstances={}),Gi.base44SharedInstances[e]||(Gi.base44SharedInstances[e]={instance:t()}),Gi.base44SharedInstances[e].instance}const ZR="__user_heartbeat_event__",eT="__initialization_event__",tT="__session_duration_event__",cv="analytics-enable",uv="base44_analytics_session_id",nT={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},rT="analytics",He=JR(rT,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...nT,...dT()}})),sT=({axiosClient:e,serverUrl:t,appId:r,userAuthModule:o})=>{var i;const{maxQueueSize:l,throttleTime:u,batchSize:f}=He.config;if(!(!((i=He.config)===null||i===void 0)&&i.enabled))return{track:()=>{},cleanup:()=>{}};let p;const g=`${t}/api/apps/${r}/analytics/track/batch`,y=async P=>{await e.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:P}})},v=P=>{try{const _=JSON.stringify({events:P}),F=new Blob([_],{type:"application/json"});return typeof navigator>"u"||_.length>6e4||!navigator.sendBeacon(g,F)}catch{return!1}},E=async(P,_={})=>{if(P.length===0)return;const F=await uT(o),H=P.map(cT(F));try{(!_.isBeacon||!v(H))&&await y(H)}catch{}},k=()=>{fv(E,{throttleTime:u,batchSize:f})},C=P=>{if(He.requestsQueue.length>=l)return;const _=lT();He.requestsQueue.push({...P,..._}),k()},w=()=>{fv(E,{throttleTime:u,batchSize:f}),p=hv(C),iT()},S=()=>{dv(),p==null||p(),aT(C);const P=He.requestsQueue.splice(0);E(P,{isBeacon:!0})},N=()=>{typeof window>"u"||(document.visibilityState==="hidden"?S():document.visibilityState==="visible"&&w())},T=()=>{dv(),p==null||p(),typeof window<"u"&&window.removeEventListener("visibilitychange",N)};return k(),p=hv(C),oT(C),typeof window<"u"&&window.addEventListener("visibilitychange",N),{track:C,cleanup:T}};function dv(){He.isProcessing=!1}async function fv(e,t){if(He.isProcessing)return;He.isProcessing=!0;const{throttleTime:r=1e3,batchSize:o=30}=t??{};for(;He.isProcessing&&He.requestsQueue.length>0;){const i=He.requestsQueue.splice(0,o);i.length&&await e(i),await new Promise(l=>setTimeout(l,r))}He.isProcessing=!1}function hv(e){var t;if(He.isHeartBeatProcessing||((t=He.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};He.isHeartBeatProcessing=!0;const r=setInterval(()=>{e({eventName:ZR})},He.config.heartBeatInterval);return()=>{clearInterval(r),He.isHeartBeatProcessing=!1}}function oT(e){typeof window>"u"||He.wasInitializationTracked||(He.wasInitializationTracked=!0,e({eventName:eT,properties:{referrer:document==null?void 0:document.referrer}}))}function iT(){typeof window>"u"||He.sessionStartTime!==null||(He.sessionStartTime=new Date().toISOString())}function aT(e){if(typeof window>"u"||He.sessionStartTime===null)return;const t=new Date().getTime()-new Date(He.sessionStartTime).getTime();He.sessionStartTime=null,e({eventName:tT,properties:{sessionDuration:t}})}function lT(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function cT(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let df=null;async function uT(e){if(!He.sessionContext){if(!df){const t=fT();df=e.me().then(r=>({user_id:r.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}He.sessionContext=await df}return He.sessionContext}function dT(){if(typeof window>"u")return;const t=new URLSearchParams(window.location.search).get(cv);if(t==null||!t.length)return;const r=new URLSearchParams(window.location.search);r.delete(cv);const o=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",o),{enabled:t==="true"}}function fT(){if(typeof window>"u")return of();try{const e=localStorage.getItem(uv);if(!e){const t=of();return localStorage.setItem(uv,t),t}return e}catch{return of()}}function hT(e){const{serverUrl:t="https://base44.app",appId:r,token:o,serviceToken:i,requiresAuth:l=!1,appBaseUrl:u,options:f,functionsVersion:p,headers:g}=e,y={serverUrl:t,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:r,token:o};let v=null;const E=()=>(v||(v=XR({config:y})),v),k={...g,"X-App-Id":String(r)},C=p?{...k,"Base44-Functions-Version":p}:k,w=Zi({baseURL:`${t}/api`,headers:k,token:o,onError:f==null?void 0:f.onError}),S=Zi({baseURL:`${t}/api`,headers:C,token:o,interceptResponses:!1,onError:f==null?void 0:f.onError}),N=Zi({baseURL:`${t}/api`,headers:k,token:i,onError:f==null?void 0:f.onError}),T=Zi({baseURL:`${t}/api`,headers:C,token:i,interceptResponses:!1}),P=Z_(w,S,r,{appBaseUrl:u,serverUrl:t}),_={entities:Jy({axios:w,appId:r,getSocket:E}),integrations:Zy(w,r),auth:P,functions:ev(S,r),agents:tv({axios:w,getSocket:E,appId:r,serverUrl:t,token:o}),appLogs:nv(w,r),users:rR(w,r),analytics:sT({axiosClient:w,serverUrl:t,appId:r,userAuthModule:P}),cleanup:()=>{_.analytics.cleanup(),v&&v.disconnect()}}
172,F={entities:Jy({axios:N,appId:r,getSocket:E}),integrations:Zy(N,r),sso:eR(N,r,o),connectors:tR(N,r),functions:ev(T,r),agents:tv({axios:N,getSocket:E,appId:r,serverUrl:t,token:o}),appLogs:nv(N,r),cleanup:()=>{v&&v.disconnect()}};if(typeof window<"u"){const $=o||Rh();$&&_.auth.setToken($)}return l&&typeof window<"u"&&setTimeout(async()=>{try{await _.auth.isAuthenticated()||_.auth.redirectToLogin(window.location.href)}catch($){console.error("Authentication check failed:",$),_.auth.redirectToLogin(window.location.href)}},0),{..._,setToken($){_.auth.setToken($),v&&v.updateConfig({token:$}),y.token=$},getConfig(){return{serverUrl:t,appId:r,requiresAuth:l}},get asServiceRole(){if(!i)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return F}}}const Iw=typeof window>"u",pT=Iw?{localStorage:new Map}:window,sa=pT.localStorage,mT=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Xi=(e,{defaultValue:t=void 0,removeFromUrl:r=!1}={})=>{if(Iw)return t;const o=`base44_${mT(e)}`,i=new URLSearchParams(window.location.search),l=i.get(e);if(r){i.delete(e);const f=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,f)}if(l)return sa.setItem(o,l),l;if(t)return sa.setItem(o,t),t;const u=sa.getItem(o);return u||null},gT=()=>(Xi("clear_access_token")==="true"&&(sa.removeItem("base44_access_token"),sa.removeItem("token")),{appId:Xi("app_id",{defaultValue:"696cf7f3357de9c07b089293"}),token:Xi("access_token",{removeFromUrl:!0}),fromUrl:Xi("from_url",{defaultValue:window.location.href}),functionsVersion:Xi("functions_version",{defaultValue:"prod"})}),ta={...gT()},{appId:yT,token:vT,functionsVersion:xT}=ta,vt=hT({appId:yT,token:vT,functionsVersion:xT,serverUrl:"",requiresAuth:!1}),Lw=x.createContext(),wT=({children:e})=>
172{const[t,r]=x.useState(null),[o,i]=x.useState(!1),[l,u]=x.useState(!0),[f,p]=x.useState(!0),[g,y]=x.useState(null),[v,E]=x.useState(null);x.useEffect(()=>{k()},[]);const k=async()=>{var N,T;try{p(!0),y(null);const P=Zi({baseURL:"/api/apps/public",headers:{"X-App-Id":ta.appId},token:ta.token,interceptResponses:!0});try{const _=await P.get(`/prod/public-settings/by-id/${ta.appId}`);E(_),ta.token?await C():(u(!1),i(!1)),p(!1)}catch(_){if(console.error("App state check failed:",_),_.status===403&&((T=(N=_.data)==null?void 0:N.extra_data)!=null&&T.reason)){const F=_.data.extra_data.reason;y(F==="auth_required"?{type:"auth_required",message:"Authentication required"}:F==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:F,message:_.message})}else y({type:"unknown",message:_.message||"Failed to load app"});p(!1),u(!1)}}catch(P){console.error("Unexpected error:",P),y({type:"unknown",message:P.message||"An unexpected error occurred"}),p(!1),u(!1)}},C=async()=>{try{u(!0);const N=await vt.auth.me();r(N),i(!0),u(!1)}catch(N){console.error("User auth check failed:",N),u(!1),i(!1),(N.status===401||N.status===403)&&y({type:"auth_required",message:"Authentication required"})}},w=(N=!0)=>{r(null),i(!1),N?vt.auth.logout(window.location.href):vt.auth.logout()},S=()=>{vt.auth.redirectToLogin(window.location.href)};return d.jsx(Lw.Provider,{value:{user:t,isAuthenticated:o,isLoadingAuth:l,isLoadingPublicSettings:f,authError:g,appPublicSettings:v,logout:w,navigateToLogin:S,checkAppState:k},children:e})},Fw=()=>{const e=x.useContext(Lw);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};function pv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bw(...e){return t=>{let r=!1;const o=e.map(i=>{const l=pv(i,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let i=0;i<o.length;i++){const l=o[i];typeof l=="function"?l():pv(e[i],null)}}}}function ze(...e){return x.useCallback(Bw(...e),e)}function Hs(e){const t=ST(e),r=x.forwardRef((o,i)=>{const{children:l,...u}=o,f=x.Children.toArray(l),p=f.find(ET);if(p){const g=p.props.children,y=f.map(v=>v===p?x.Children.count(g)>1?x.Children.only(null):x.isValidElement(g)?g.props.children:null:v);return d.jsx(t,{...u,ref:i,children:x.isValidElement(g)?x.cloneElement(g,void 0,y):null})}return d.jsx(t,{...u,ref:i,children:l})});return r.displayName=`${e}.Slot`,r}var bT=Hs("Slot");function ST(e){const t=x.forwardRef((r,o)=>{const{children:i,...l}=r;if(x.isValidElement(i)){const u=kT(i),f=NT(l,i.props);return i.type!==x.Fragment&&(f.ref=o?Bw(o,u):u),x.cloneElement(i,f)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $w=Symbol("radix.slottable");function CT(e){const t=({children:r})=>d.jsx(d.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=$w,t}function ET(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$w}function NT(e,t){const r={...t};for(const o in t){const i=e[o],l=t[o];/^on[A-Z]/.test(o)?i&&l?r[o]=(...f)=>{const p=l(...f);return i(...f),p}:i&&(r[o]=i):o==="style"?r[o]={...i,...l}:o==="className"&&(r[o]=[i,l].filter(Boolean).join(" "))}return{...e,...r}}function kT(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Dh=yh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Mt=x.forwardRef(({className:e,variant:t,size:r,asChild:o=!1,...i},l)=>{const u=o?bT:"button";return d.jsx(u,{className:Ce(Dh({variant:t,size:r,className:e})),ref:l,...i})});Mt.displayName="Button";const nt=x.forwardRef(({className:e,type:t,...r},o)=>d.jsx("input",{type:t,className:Ce("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...r}));nt.displayName="Input";var PT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],je=PT.reduce((e,t)=>
vendor: 4,390 bytes, line 172
172{const r=Hs(`Primitive.${t}`),o=x.forwardRef((i,l)=>{const{asChild:u,...f}=i,p=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...f,ref:l})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function _T(e,t){e&&ga.flushSync(()=>e.dispatchEvent(t))}var RT="Label",Uw=x.forwardRef((e,t)=>d.jsx(je.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Uw.displayName=RT;var zw=Uw;const TT=yh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ze=x.forwardRef(({className:e,...t},r)=>d.jsx(zw,{ref:r,className:Ce(TT(),e),...t}));Ze.displayName=zw.displayName;const xn=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("rounded-xl border bg-card text-card-foreground shadow",e),...t}));xn.displayName="Card";const wn=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("flex flex-col space-y-1.5 p-6",e),...t}));wn.displayName="CardHeader";const bn=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("font-semibold leading-none tracking-tight",e),...t}));bn.displayName="CardTitle";const jT=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("text-sm text-muted-foreground",e),...t}));jT.displayName="CardDescription";const Sn=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("p-6 pt-0",e),...t}));Sn.displayName="CardContent";const OT=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:Ce("flex items-center p-6 pt-0",e),...t}));OT.displayName="CardFooter";function _e(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function AT(e,t){const r=x.createContext(t),o=l=>{const{children:u,...f}=l,p=x.useMemo(()=>f,Object.values(f));return d.jsx(r.Provider,{value:p,children:u})};o.displayName=e+"Provider";function i(l){const u=x.useContext(r);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[o,i]}function Hn(e,t=[]){let r=[];function o(l,u){const f=x.createContext(u),p=r.length;r=[...r,u];const g=v=>{var N;const{scope:E,children:k,...C}=v,w=((N=E==null?void 0:E[e])==null?void 0:N[p])||f,S=x.useMemo(()=>C,Object.values(C));return d.jsx(w.Provider,{value:S,children:k})};g.displayName=l+"Provider";function y(v,E){var w;const k=((w=E==null?void 0:E[e])==null?void 0:w[p])||f,C=x.useContext(k);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${l}\``)}return[g,y]}const i=()=>{const l=r.map(u=>x.createContext(u));return function(f){const p=(f==null?void 0:f[e])||l;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};return i.scopeName=e,[o,MT(i,...t)]}function MT(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const u=o.reduce((f,{useScope:p,scopeName:g})=>{const v=p(l)[`__scope${g}`];return{...f,...v}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var Pt=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},DT=gh[" useInsertionEffect ".trim().toString()]||Pt;function os({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[i,l,u]=IT({defaultProp:t,onChange:r}),f=e!==void 0,p=f?e:i;{const y=x.useRef(e!==void 0);x.useEffect(()=>{const v=y.current;v!==f&&console.warn(`${o} is changing from ${v?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=f},[f,o])}const g=x.useCallback(y=>{var v;if(f){const E=LT(y)?y(e):y;E!==e&&((v=u.current)==null||v.call(u,E))}else l(y)},[f,e,l,u]);return[p,g]}function IT({defaultProp:e,onChange:t}){const[r,o]=x.useState(e),i=x.useRef(r),l=x.useRef(t);return DT(()=>{l.current=t},[t]),x.useEffect(()=>{var u;i.current!==r&&((u=l.current)==null||u.call(l,r),i.current=r)},[r,i]),[r,o,l]}function LT(e){return typeof e=="function"}function Ih(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}
vendor: 4,279 bytes, line 172
172function Lh(e){const[t,r]=x.useState(void 0);return Pt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let u,f;if("borderBoxSize"in l){const p=l.borderBoxSize,g=Array.isArray(p)?p[0]:p;u=g.inlineSize,f=g.blockSize}else u=e.offsetWidth,f=e.offsetHeight;r({width:u,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var Ic="Switch",[FT]=Hn(Ic),[BT,$T]=FT(Ic),Ww=x.forwardRef((e,t)=>{const{__scopeSwitch:r,name:o,checked:i,defaultChecked:l,required:u,disabled:f,value:p="on",onCheckedChange:g,form:y,...v}=e,[E,k]=x.useState(null),C=ze(t,P=>k(P)),w=x.useRef(!1),S=E?y||!!E.closest("form"):!0,[N,T]=os({prop:i,defaultProp:l??!1,onChange:g,caller:Ic});return d.jsxs(BT,{scope:r,checked:N,disabled:f,children:[d.jsx(je.button,{type:"button",role:"switch","aria-checked":N,"aria-required":u,"data-state":Qw(N),"data-disabled":f?"":void 0,disabled:f,value:p,...v,ref:C,onClick:_e(e.onClick,P=>{T(_=>!_),S&&(w.current=P.isPropagationStopped(),w.current||P.stopPropagation())})}),S&&d.jsx(qw,{control:E,bubbles:!w.current,name:o,value:p,checked:N,required:u,disabled:f,form:y,style:{transform:"translateX(-100%)"}})]})});Ww.displayName=Ic;var Vw="SwitchThumb",Hw=x.forwardRef((e,t)=>{const{__scopeSwitch:r,...o}=e,i=$T(Vw,r);return d.jsx(je.span,{"data-state":Qw(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})});Hw.displayName=Vw;var UT="SwitchBubbleInput",qw=x.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...i},l)=>{const u=x.useRef(null),f=ze(u,l),p=Ih(r),g=Lh(t);return x.useEffect(()=>{const y=u.current;if(!y)return;const v=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(v,"checked").set;if(p!==r&&k){const C=new Event("click",{bubbles:o});k.call(y,r),y.dispatchEvent(C)}},[p,r,o]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:f,style:{...i.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qw.displayName=UT;function Qw(e){return e?"checked":"unchecked"}var Kw=Ww,zT=Hw;const eh=x.forwardRef(({className:e,...t},r)=>d.jsx(Kw,{className:Ce("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:d.jsx(zT,{className:Ce("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));eh.displayName=Kw.displayName;const pc=x.forwardRef(({className:e,...t},r)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:r,className:Ce("w-full caption-bottom text-sm",e),...t})}));pc.displayName="Table";const mc=x.forwardRef(({className:e,...t},r)=>d.jsx("thead",{ref:r,className:Ce("[&_tr]:border-b",e),...t}));mc.displayName="TableHeader";const gc=x.forwardRef(({className:e,...t},r)=>d.jsx("tbody",{ref:r,className:Ce("[&_tr:last-child]:border-0",e),...t}));gc.displayName="TableBody";const WT=x.forwardRef(({className:e,...t},r)=>d.jsx("tfoot",{ref:r,className:Ce("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));WT.displayName="TableFooter";const js=x.forwardRef(({className:e,...t},r)=>d.jsx("tr",{ref:r,className:Ce("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));js.displayName="TableRow";const Be=x.forwardRef(({className:e,...t},r)=>d.jsx("th",{ref:r,className:Ce("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Be.displayName="TableHead";const $e=x.forwardRef(({className:e,...t},r)=>d.jsx("td",{ref:r,className:Ce("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));$e.displayName="TableCell";const VT=x.forwardRef(({className:e,...t},r)=>d.jsx("caption",{ref:r,className:Ce("mt-4 text-sm text-muted-foreground",e),...t}));
vendor: 5,196 bytes, line 172
172VT.displayName="TableCaption";function Yw(e){const t=e+"CollectionProvider",[r,o]=Hn(t),[i,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:S,children:N}=w,T=$r.useRef(null),P=$r.useRef(new Map).current;return d.jsx(i,{scope:S,itemMap:P,collectionRef:T,children:N})};u.displayName=t;const f=e+"CollectionSlot",p=Hs(f),g=$r.forwardRef((w,S)=>{const{scope:N,children:T}=w,P=l(f,N),_=ze(S,P.collectionRef);return d.jsx(p,{ref:_,children:T})});g.displayName=f;const y=e+"CollectionItemSlot",v="data-radix-collection-item",E=Hs(y),k=$r.forwardRef((w,S)=>{const{scope:N,children:T,...P}=w,_=$r.useRef(null),F=ze(S,_),H=l(y,N);return $r.useEffect(()=>(H.itemMap.set(_,{ref:_,...P}),()=>void H.itemMap.delete(_))),d.jsx(E,{[v]:"",ref:F,children:T})});k.displayName=y;function C(w){const S=l(e+"CollectionConsumer",w);return $r.useCallback(()=>{const T=S.collectionRef.current;if(!T)return[];const P=Array.from(T.querySelectorAll(`[${v}]`));return Array.from(S.itemMap.values()).sort((H,$)=>P.indexOf(H.ref.current)-P.indexOf($.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:u,Slot:g,ItemSlot:k},C,o]}var HT=gh[" useId ".trim().toString()]||(()=>{}),qT=0;function dr(e){const[t,r]=x.useState(HT());return Pt(()=>{r(o=>o??String(qT++))},[e]),t?`radix-${t}`:""}function is(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}var QT=x.createContext(void 0);function Fh(e){const t=x.useContext(QT);return e||t||"ltr"}var ff="rovingFocusGroup.onEntryFocus",KT={bubbles:!1,cancelable:!0},Sa="RovingFocusGroup",[th,Gw,YT]=Yw(Sa),[GT,Xw]=Hn(Sa,[YT]),[XT,JT]=GT(Sa),Jw=x.forwardRef((e,t)=>d.jsx(th.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(th.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(ZT,{...e,ref:t})})}));Jw.displayName=Sa;var ZT=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...v}=e,E=x.useRef(null),k=ze(t,E),C=Fh(l),[w,S]=os({prop:u,defaultProp:f??null,onChange:p,caller:Sa}),[N,T]=x.useState(!1),P=is(g),_=Gw(r),F=x.useRef(!1),[H,$]=x.useState(0);return x.useEffect(()=>{const W=E.current;if(W)return W.addEventListener(ff,P),()=>W.removeEventListener(ff,P)},[P]),d.jsx(XT,{scope:r,orientation:o,dir:C,loop:i,currentTabStopId:w,onItemFocus:x.useCallback(W=>S(W),[S]),onItemShiftTab:x.useCallback(()=>T(!0),[]),onFocusableItemAdd:x.useCallback(()=>$(W=>W+1),[]),onFocusableItemRemove:x.useCallback(()=>$(W=>W-1),[]),children:d.jsx(je.div,{tabIndex:N||H===0?-1:0,"data-orientation":o,...v,ref:k,style:{outline:"none",...e.style},onMouseDown:_e(e.onMouseDown,()=>{F.current=!0}),onFocus:_e(e.onFocus,W=>{const oe=!F.current;if(W.target===W.currentTarget&&oe&&!N){const K=new CustomEvent(ff,KT);if(W.currentTarget.dispatchEvent(K),!K.defaultPrevented){const ue=_().filter(G=>G.focusable),ie=ue.find(G=>G.active),ne=ue.find(G=>G.id===w),xe=[ie,ne,...ue].filter(Boolean).map(G=>G.ref.current);t0(xe,y)}}F.current=!1}),onBlur:_e(e.onBlur,()=>T(!1))})})}),Zw="RovingFocusGroupItem",e0=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:l,children:u,...f}=e,p=dr(),g=l||p,y=JT(Zw,r),v=y.currentTabStopId===g,E=Gw(r),{onFocusableItemAdd:k,onFocusableItemRemove:C,currentTabStopId:w}=y;return x.useEffect(()=>{if(o)return k(),()=>C()},[o,k,C]),d.jsx(th.ItemSlot,{scope:r,id:g,focusable:o,active:i,children:d.jsx(je.span,{tabIndex:v?0:-1,"data-orientation":y.orientation,...f,ref:t,onMouseDown:_e(e.onMouseDown,S=>{o?y.onItemFocus(g):S.preventDefault()}),onFocus:_e(e.onFocus,()=>y.onItemFocus(g)),onKeyDown:_e(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){y.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const N=nj(S,y.orientation,y.dir);if(N!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let P=E().filter(_=>_.focusable).map(_=>_.ref.current);if(N==="last")P.reverse();else if(N==="prev"||N==="next"){N==="prev"&&P.reverse();const _=P.indexOf(S.currentTarget);P=y.loop?rj(P,_+1):P.slice(_+1)}setTimeout(()=>t0(P))}}),children:typeof u=="function"?u({isCurrentTabStop:v,hasTabStop:w!=null}):u})})});e0.displayName=Zw;var ej={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function nj(e,t,r){const o=tj(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return ej[o]}function t0(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function rj(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var sj=Jw,oj=e0;function ij(e,t){return x.useReducer((r,o)=>t[r][o]??r,e)}var cs=e=>{const{present:t,children:r}=e,o=aj(t),i=typeof r=="function"?r({present:o.isPresent}):x.Children.only(r),l=ze(o.ref,lj(i));return typeof r=="function"||o.isPresent?x.cloneElement(i,{ref:l}):null};cs.displayName="Presence";
vendor: 4,860 bytes, line 172
172function aj(e){const[t,r]=x.useState(),o=x.useRef(null),i=x.useRef(e),l=x.useRef("none"),u=e?"mounted":"unmounted",[f,p]=ij(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const g=zl(o.current);l.current=f==="mounted"?g:"none"},[f]),Pt(()=>{const g=o.current,y=i.current;if(y!==e){const E=l.current,k=zl(g);e?p("MOUNT"):k==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&E!==k?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,p]),Pt(()=>{if(t){let g;const y=t.ownerDocument.defaultView??window,v=k=>{const w=zl(o.current).includes(CSS.escape(k.animationName));if(k.target===t&&w&&(p("ANIMATION_END"),!i.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",g=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},E=k=>{k.target===t&&(l.current=zl(o.current))};return t.addEventListener("animationstart",E),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{y.clearTimeout(g),t.removeEventListener("animationstart",E),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:x.useCallback(g=>{o.current=g?getComputedStyle(g):null,r(g)},[])}}function zl(e){return(e==null?void 0:e.animationName)||"none"}function lj(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Lc="Tabs",[cj]=Hn(Lc,[Xw]),n0=Xw(),[uj,Bh]=cj(Lc),r0=x.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:l,orientation:u="horizontal",dir:f,activationMode:p="automatic",...g}=e,y=Fh(f),[v,E]=os({prop:o,onChange:i,defaultProp:l??"",caller:Lc});return d.jsx(uj,{scope:r,baseId:dr(),value:v,onValueChange:E,orientation:u,dir:y,activationMode:p,children:d.jsx(je.div,{dir:y,"data-orientation":u,...g,ref:t})})});r0.displayName=Lc;var s0="TabsList",o0=x.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,l=Bh(s0,r),u=n0(r);return d.jsx(sj,{asChild:!0,...u,orientation:l.orientation,dir:l.dir,loop:o,children:d.jsx(je.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});o0.displayName=s0;var i0="TabsTrigger",a0=x.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...l}=e,u=Bh(i0,r),f=n0(r),p=u0(u.baseId,o),g=d0(u.baseId,o),y=o===u.value;return d.jsx(oj,{asChild:!0,...f,focusable:!i,active:y,children:d.jsx(je.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...l,ref:t,onMouseDown:_e(e.onMouseDown,v=>{!i&&v.button===0&&v.ctrlKey===!1?u.onValueChange(o):v.preventDefault()}),onKeyDown:_e(e.onKeyDown,v=>{[" ","Enter"].includes(v.key)&&u.onValueChange(o)}),onFocus:_e(e.onFocus,()=>{const v=u.activationMode!=="manual";!y&&!i&&v&&u.onValueChange(o)})})})});a0.displayName=i0;var l0="TabsContent",c0=x.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:i,children:l,...u}=e,f=Bh(l0,r),p=u0(f.baseId,o),g=d0(f.baseId,o),y=o===f.value,v=x.useRef(y);return x.useEffect(()=>{const E=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(E)},[]),d.jsx(cs,{present:i||y,children:({present:E})=>d.jsx(je.div,{"data-state":y?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":p,hidden:!E,id:g,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:E&&l})})});c0.displayName=l0;function u0(e,t){return`${e}-trigger-${t}`}function d0(e,t){return`${e}-content-${t}`}var dj=r0,f0=o0,h0=a0,p0=c0;const fj=dj,m0=x.forwardRef(({className:e,...t},r)=>d.jsx(f0,{ref:r,className:Ce("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));m0.displayName=f0.displayName;const oc=x.forwardRef(({className:e,...t},r)=>d.jsx(h0,{ref:r,className:Ce("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));oc.displayName=h0.displayName;const ic=x.forwardRef(({className:e,...t},r)=>d.jsx(p0,{ref:r,className:Ce("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ic.displayName=p0.displayName;
172function hj(){const e=Pc(),[t,r]=x.useState(20),[o,i]=x.useState({minPostcards:"",pricePerPostcard:""}),{data:l,isLoading:u}=qo({queryKey:["settings"],queryFn:()=>vt.entities.Settings.list()}),{data:f,isLoading:p}=qo({queryKey:["pricingTiers"],queryFn:()=>vt.entities.PricingTier.list()}),g=l==null?void 0:l[0],y=f||[],v=Rs({mutationFn:N=>vt.entities.Settings.update(g.id,N),onSuccess:()=>e.invalidateQueries(["settings"])}),E=Rs({mutationFn:N=>vt.entities.PricingTier.create(N),onSuccess:()=>{e.invalidateQueries(["pricingTiers"]),i({minPostcards:"",pricePerPostcard:""})}}),k=Rs({mutationFn:N=>vt.entities.PricingTier.delete(N),onSuccess:()=>e.invalidateQueries(["pricingTiers"])}),C=Rs({mutationFn:({id:N,data:T})=>vt.entities.PricingTier.update(N,T),onSuccess:()=>e.invalidateQueries(["pricingTiers"])}),S=(()=>{var G;if(!g||y.length===0)return null;const N=Math.max(Math.floor(t/g.peoplePerPostcard),1),T=Math.max(N,6),P=[...y].filter(re=>re.active!==!1).sort((re,D)=>D.minPostcards-re.minPostcards),_=P.find(re=>T>=re.minPostcards),F=_?_.pricePerPostcard:((G=P[P.length-1])==null?void 0:G.pricePerPostcard)||0,H=N*F,$=new Date;let W=!1;g.discountPercent>0&&(W=!0,g.discountStartDate&&new Date(g.discountStartDate)>$&&(W=!1),g.discountEndDate&&new Date(g.discountEndDate)<$&&(W=!1));const oe=W?g.discountPercent:0,K=H*(oe/100),ue=H-K,ie=g.shippingFeeILS||0,ae=(g.applyVatOnShipping?ue+ie:ue)*(g.vatPercent/100),xe=ue+ae+ie;return{postcardsCount:N,unitPrice:F,subtotalBeforeVat:H,discountActive:W,discountAmount:K,discountedSubtotal:ue,vatAmount:ae,shippingFee:ie,grandTotal:xe}})();return u||p?d.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:d.jsx(kc,{className:"h-8 w-8 animate-spin text-gray-600"})}):d.jsx("div",{className:"min-h-screen bg-gray-50 p-6",dir:"rtl",children:d.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[d.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"× ×××× ×ער×ת"}),d.jsxs(fj,{defaultValue:"settings",className:"space-y-6",children:[d.jsxs(m0,{className:"grid w-full grid-cols-3",children:[d.jsxs(oc,{value:"settings",className:"flex items-center gap-2",children:[d.jsx(zE,{className:"h-4 w-4"}),"×××ר×ת"]}),d.jsxs(oc,{value:"tiers",className:"flex items-center gap-2",children:[d.jsx(IE,{className:"h-4 w-4"}),"××ר××ת ×××ר"]}),d.jsxs(oc,{value:"calculator",className:"flex items-center gap-2",children:[d.jsx(SE,{className:"h-4 w-4"}),"×××קת ××ש××"]})]}),d.jsx(ic,{value:"settings",children:d.jsxs(xn,{children:[d.jsx(wn,{children:d.jsx(bn,{children:"×××ר×ת ×××××ת"})}),d.jsxs(Sn,{className:"space-y-6",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"××ס ×× ×©××/×××××"}),d.jsx(nt,{type:"number",value:(g==null?void 0:g.peoplePerPostcard)||2,onChange:N=>v.mutate({peoplePerPostcard:parseFloat(N.target.value)})})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"×××× ××¢×´×"}),d.jsx(nt,{type:"number",value:(g==null?void 0:g.vatPercent)||17,onChange:N=>v.mutate({vatPercent:parseFloat(N.target.value)})})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"××× ×ש××× (âª)"}),d.jsx(nt,{type:"number",value:(g==null?void 0:g.shippingFeeILS)||0,onChange:N=>v.mutate({shippingFeeILS:parseFloat(N.target.value)})})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"××¢×´× ×¢× ×ש×××"}),d.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[d.jsx(eh,{checked:(g==null?void 0:g.applyVatOnShipping)??!0,onCheckedChange:N=>v.mutate({applyVatOnShipping:N})}),d.jsx("span",{className:"text-sm text-gray-600",children:g!=null&&g.applyVatOnShipping?"××":"××"})]})]})]}),d.jsxs("div",{className:"border-t pt-6",children:[d.jsx("h3",{className:"font-semibold text-lg mb-4",children:"×××ר×ת ×× ××"}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"×××× ×× ××"}),d.jsx(nt,{type:"number",value:(g==null?void 0:g.discountPercent)||0,onChange:N=>v.mutate({discountPercent:parseFloat(N.target.value)})})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"ת×ר×× ×ת×××"}),d.jsx(nt,{type:"date",value:(g==null?void 0:g.discountStartDate)||"",onChange:N=>v.mutate({discountStartDate:N.target.value})})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"ת×ר×× ×¡×××"}),d.jsx(nt,{type:"date",value:(g==null?void 0:g.discountEndDate)||"",onChange:N=>v.mutate({discountEndDate:N.target.value})})]})]})]}),d.jsxs("div",{className:"border-t pt-6",children:[d.jsx("h3",{className:"font-semibold text-lg mb-4",children:"××× ××רצ××"}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"×ת××ת Webhook ×©× Make"}),d.jsx(nt,{type:"url",dir:"ltr",placeholder:"https://hook.make.com/...",value:(g==null?void 0:g.makeWebhookUrl)||"",onChange:N=>v.mutate({makeWebhookUrl:N.target.value})})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"×ת××ת API ×תש××× (POST)"}),d.jsx(nt,{type:"url",dir:"ltr",placeholder:"https://api.example.com/payment",value:(g==null?void 0:g.paymentApiUrl)||"",onChange:N=>v.mutate({paymentApiUrl:N.target.value})}),d.jsx("p",{className:"text-sm text-gray-500",children:"×ש××: order_id, name, amount, email, company_name, cell_number"})]})]})]})]})]})}),d.jsx(ic,{value:"tiers",children:d.jsxs(xn,{children:[d.jsx(wn,{children:d.jsx(bn,{children:"××ר××ת ×××ר"})}),d.jsxs(Sn,{className:"space-y-6",children:[d.jsxs("div",{className:"flex gap-4 items-end bg-gray-50 p-4 rounded-lg",children:[d.jsxs("div",{className:"space-y-2 flex-1",children:[d.jsx(Ze,{children:"××× ×××× ×××××ת"}),d.jsx(nt,{type:"number",value:o.minPostcards,onChange:N=>i({...o,minPostcards:N.target.value}),placeholder:"6"})]}),d.jsxs("div",{className:"space-y-2 flex-1",children:[d.jsx(Ze,{children:"×××ר ×××××× (âª)"}),d.jsx(nt,{type:"number",step:"0.1",value:o.pricePerPostcard,onChange:N=>i({...o,pricePerPostcard:N.target.value}),placeholder:"100"})]}),d.jsxs(Mt,{onClick:()=>E.mutate({minPostcards:parseFloat(o.minPostcards),pricePerPostcard:parseFloat(o.pricePerPostcard),active:!0}),disabled:!o.minPostcards||!o.pricePerPostcard,children:[d.jsx(vh,{className:"h-4 w-4 ml-2"}),"××סף"]})]}),d.jsxs(pc,{children:[d.jsx(mc,{children:d.jsxs(js,{children:[d.jsx(Be,{children:"××× ×××× ×××××ת"}),d.jsx(Be,{children:"×××ר ××××××"}),d.jsx(Be,{children:"פע××"}),d.jsx(Be,{children:"פע×××ת"})]})}),d.jsx(gc,{children:[...y].sort((N,T)=>N.minPostcards-T.minPostcards).map(N=>d.jsxs(js,{children:[d.jsx($e,{children:d.jsx(nt,{type:"number",value:N.minPostcards,onChange:T=>C.mutate({id:N.id,data:{minPostcards:parseFloat(T.target.value)}}),className:"w-24"})}),d.jsx($e,{children:d.jsx(nt,{type:"number",step:"0.1",value:N.pricePerPostcard,onChange:T=>C.mutate({id:N.id,data:{pricePerPostcard:parseFloat(T.target.value)}}),className:"w-24"})}),d.jsx($e,{children:d.jsx(eh,{checked:N.active!==!1,onCheckedChange:T=>C.mutate({id:N.id,data:{active:T}})})}),d.jsx($e,{children:d.jsx(Mt,{variant:"ghost",size:"icon",onClick:()=>k.mutate(N.id),className:"text-red-500 hover:text-red-700",children:d.jsx(Sf,{className:"h-4 w-4"})})})]},N.id))})]})]})]})}),d.jsx(ic,{value:"calculator",children:d.jsxs(xn,{children:[d.jsx(wn,{children:d.jsx(bn,{children:"×××קת ××ש×× ×××ר"})}),d.jsxs(Sn,{className:"space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{children:"×ספר ×× ×©××"}),d.jsx(nt,{type:"number",value:t,onChange:N=>r(parseInt(N.target.value)||2),className:"w-40"})]}),S&&d.jsxs("div",{className:"bg-gray-50 rounded-lg p-6 space-y-3",children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"×ספר ×××××ת:"}),d.jsx("span",{className:"font-bold",children:S.postcardsCount})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"×××ר ××××××:"}),d.jsxs("span",{className:"font-bold",children:[S.unitPrice.toFixed(2)," âª"]}
172)]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"ס××´× ××¤× × ××¢×´×:"}),d.jsxs("span",{className:"font-bold",children:[S.subtotalBeforeVat.toFixed(2)," âª"]})]}),S.discountActive&&d.jsxs("div",{className:"flex justify-between text-green-600",children:[d.jsxs("span",{children:["×× ×× (",g==null?void 0:g.discountPercent,"%):"]}),d.jsxs("span",{className:"font-bold",children:["-",S.discountAmount.toFixed(2)," âª"]})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsxs("span",{children:["××¢×´× (",g==null?void 0:g.vatPercent,"%):"]}),d.jsxs("span",{className:"font-bold",children:[S.vatAmount.toFixed(2)," âª"]})]}),S.shippingFee>0&&d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"×ש×××:"}),d.jsxs("span",{className:"font-bold",children:[S.shippingFee.toFixed(2)," âª"]})]}),d.jsxs("div",{className:"flex justify-between border-t pt-3 text-lg",children:[d.jsx("span",{children:"ס××´× ×תש×××:"}),d.jsxs("span",{className:"font-bold",children:[S.grandTotal.toFixed(2)," âª"]})]})]})]})]})})]})]})})}function pj({value:e,onChange:t,min:r=2,max:o=500,postcardsCount:i=0}){const l=()=>{e<o&&t(e+1)},u=()=>{e>r&&t(e-1)},f=p=>{const g=parseInt(p.target.value,10);isNaN(g)||(g>=r&&g<=o?t(g):g<r?t(r):g>o&&t(o))};return d.jsxs("div",{className:"flex flex-col items-center gap-6",children:[d.jsxs("div",{className:"flex items-center justify-center gap-4 md:gap-6 bg-white rounded-3xl p-3 md:p-4 shadow-xl w-full md:max-w-none mx-auto",children:[d.jsx(Mt,{variant:"ghost",size:"icon",onClick:u,disabled:e<=r,className:"h-14 w-14 md:h-20 md:w-20 rounded-2xl bg-[#2d5a4a] hover:bg-[#1e4035] text-white disabled:opacity-50",children:d.jsx(BE,{className:"h-6 w-6 md:h-8 md:w-8"})}),d.jsx("input",{type:"number",value:e,onChange:f,min:r,max:o,className:"w-20 md:w-32 text-center text-4xl md:text-6xl font-bold text-black bg-transparent border-none focus:outline-none focus:ring-0"}),d.jsx(Mt,{variant:"ghost",size:"icon",onClick:l,disabled:e>=o,className:"h-14 w-14 md:h-20 md:w-20 rounded-2xl bg-[#2d5a4a] hover:bg-[#1e4035] text-white disabled:opacity-50",children:d.jsx(vh,{className:"h-6 w-6 md:h-8 md:w-8"})})]}),e<r&&d.jsxs("p",{className:"text-red-600 text-xl font-semibold",children:["××× ×××× ",r," ×שתתפ×× (6 ×××××ת)"]}),i<6&&e>=r&&d.jsx("p",{className:"text-red-600 text-xl font-semibold",children:"××× ×××× ×××× ×: 6 ×××××ת"}),e<=12&&d.jsx("p",{className:"text-gray-600 text-base mt-2 text-center leading-relaxed",children:"×× ××ª× ×¤××ת ×-12 ×× ×©××, ×××××¥ ××ת××× ×¢× ×¢×× ×¦××ת ×¢× ×× ×ª ××¢××× ××××× × ×××× ××××ת."})]})}function kn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function qs(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const g0=6048e5,mj=864e5;let gj={};function Fc(){return gj}function la(e,t){var f,p,g,y;const r=Fc(),o=(t==null?void 0:t.weekStartsOn)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,i=kn(e),l=i.getDay(),u=(l<o?7:0)+l-o;return i.setDate(i.getDate()-u),i.setHours(0,0,0,0),i}function yc(e){return la(e,{weekStartsOn:1})}function y0(e){const t=kn(e),r=t.getFullYear(),o=qs(e,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=yc(o),l=qs(e,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const u=yc(l);return t.getTime()>=i.getTime()?r+1:t.getTime()>=u.getTime()?r:r-1}function mv(e){const t=kn(e);return t.setHours(0,0,0,0),t}function gv(e){const t=kn(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function yj(e,t){const r=mv(e),o=mv(t),i=+r-gv(r),l=+o-gv(o);return Math.round((i-l)/mj)}function vj(e){const t=y0(e),r=qs(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),yc(r)}function xj(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function wj(e){if(!xj(e)&&typeof e!="number")return!1;const t=kn(e);return!isNaN(Number(t))}function bj(e){const t=kn(e),r=qs(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Sj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Cj=(e,t,r)=>{let o;const i=Sj[e];return typeof i=="string"?o=i:t===1?o=i.one:o=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function To(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ej={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pj={date:To({formats:Ej,defaultWidth:"full"}),time:To({formats:Nj,defaultWidth:"full"}),dateTime:To({formats:kj,defaultWidth:"full"})},_j={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Rj=(e,t,r,o)=>_j[e];function Ln(e){return(t,r)=>{const o=r!=null&&r.context?String(r.context):"standalone";let i;if(o==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,f=r!=null&&r.width?String(r.width):u;i=e.formattingValues[f]||e.formattingValues[u]}else{const u=e.defaultWidth,f=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[f]||e.values[u]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const Tj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Oj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Aj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
172ay","Saturday"]},Mj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Dj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ij=(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Lj={ordinalNumber:Ij,era:Ln({values:Tj,defaultWidth:"wide"}),quarter:Ln({values:jj,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ln({values:Oj,defaultWidth:"wide"}),day:Ln({values:Aj,defaultWidth:"wide"}),dayPeriod:Ln({values:Mj,defaultWidth:"wide",formattingValues:Dj,defaultFormattingWidth:"wide"})};function Fn(e){return(t,r={})=>{const o=r.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const u=l[0],f=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(f)?Bj(f,v=>v.test(u)):Fj(f,v=>v.test(u));let g;g=e.valueCallback?e.valueCallback(p):p,g=r.valueCallback?r.valueCallback(g):g;const y=t.slice(u.length);return{value:g,rest:y}}}function Fj(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Bj(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function v0(e){return(t,r={})=>{const o=t.match(e.matchPattern);if(!o)return null;const i=o[0],l=t.match(e.parsePattern);if(!l)return null;let u=e.valueCallback?e.valueCallback(l[0]):l[0];u=r.valueCallback?r.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}const $j=/^(\d+)(th|st|nd|rd)?/i,Uj=/\d+/i,zj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wj={any:[/^b/i,/^(a|c)/i]},Vj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hj={any:[/1/i,/2/i,/3/i,/4/i]},qj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Qj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Yj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Gj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Jj={ordinalNumber:v0({matchPattern:$j,parsePattern:Uj,valueCallback:e=>parseInt(e,10)}),era:Fn({matchPatterns:zj,defaultMatchWidth:"wide",parsePatterns:Wj,defaultParseWidth:"any"}),quarter:Fn({matchPatterns:Vj,defaultMatchWidth:"wide",parsePatterns:Hj,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fn({matchPatterns:qj,defaultMatchWidth:"wide",parsePatterns:Qj,defaultParseWidth:"any"}),day:Fn({matchPatterns:Kj,defaultMatchWidth:"wide",parsePatterns:Yj,defaultParseWidth:"any"}),dayPeriod:Fn({matchPatterns:Gj,defaultMatchWidth:"any",parsePatterns:Xj,defaultParseWidth:"any"})},Zj={code:"en-US",formatDistance:Cj,formatLong:Pj,formatRelative:Rj,localize:Lj,match:Jj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function eO(e){const t=kn(e);return yj(t,bj(t))+1}function tO(e){const t=kn(e),r=+yc(t)-+vj(t);return Math.round(r/g0)+1}function x0(e,t){var y,v,E,k;const r=kn(e),o=r.getFullYear(),i=Fc(),l=(t==null?void 0:t.firstWeekContainsDate)??((v=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:v.firstWeekContainsDate)??i.firstWeekContainsDate??((k=(E=i.locale)==null?void 0:E.options)==null?void 0:k.firstWeekContainsDate)??1,u=qs(e,0);u.setFullYear(o+1,0,l),u.setHours(0,0,0,0);const f=la(u,t),p=qs(e,0);p.setFullYear(o,0,l),p.setHours(0,0,0,0);const g=la(p,t);return r.getTime()>=f.getTime()?o+1:r.getTime()>=g.getTime()?o:o-1}function nO(e,t){var f,p,g,y;const r=Fc(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,i=x0(e,t),l=qs(e,0);return l.setFullYear(i,0,o),l.setHours(0,0,0,0),la(l,t)}function rO(e,t){const r=kn(e),o=+la(r,t)-+nO(r,t);return Math.round(o/g0)+1}function Ve(e,t){const r=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return r+o}const Br={y(e,t){const r=e.getFullYear(),o=r>0?r:1-r;return Ve(t==="yy"?o%100:o,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ve(r+1,2)},d(e,t){return Ve(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ve(e.getHours()%12||12,t.length)},H(e,t){return Ve(e.getHours(),t.length)},m(e,t){return Ve(e.getMinutes(),t.length)},s(e,t){return Ve(e.getSeconds(),t.length)},S(e,t){const r=t.length,o=e.getMilliseconds(),i=Math.trunc(o*Math.pow(10,r-3));return Ve(i,t.length)}},ko={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yv={G:function(e,t,r){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const o=e.getFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return Br.y(e,t)},Y:function(e,t,r,o){const i=x0(e,o),l=i>0?i:1-i;if(t==="YY"){const u=l%100;return Ve(u,2)}return t==="Yo"?r.ordinalNumber(l,{unit:"year"}):Ve(l,t.length)},R:function(e,t){const r=y0(e);return Ve(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ve(r,t.length)},Q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return Ve(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return Ve(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){const o=e.getMonth();switch(t){case"M":case"MM":return Br.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return Ve(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){const i=rO(e,o);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Ve(i,t.length)},I:function(e,t,r){const o=tO(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):Ve(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Br.d(e,t)},D:function(e,t,r){const o=eO(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Ve(o,t.length)},E:function(e,t,r){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){const i=e.getDay(),l=(i-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return Ve(l,2);case"eo":return r.ordinalNumber(l,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){const i=e.getDay(),l=(i-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return Ve(l,t.length);case"co":return r.ordinalNumber(l,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const o=e.getDay(),i=o===0?7:o;switch(t){case"i":return String(i);case"ii":return Ve(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const o=e.getHours();let i;switch(o===12?i=ko.noon:o===0?i=ko.midnight:i=o/12>
vendor: 4,693 bytes, line 172
172=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const o=e.getHours();let i;switch(o>=17?i=ko.evening:o>=12?i=ko.afternoon:o>=4?i=ko.morning:i=ko.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Br.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Br.H(e,t)},K:function(e,t,r){const o=e.getHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Ve(o,t.length)},k:function(e,t,r){let o=e.getHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):Ve(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Br.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Br.s(e,t)},S:function(e,t){return Br.S(e,t)},X:function(e,t,r){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return xv(o);case"XXXX":case"XX":return Ps(o);case"XXXXX":case"XXX":default:return Ps(o,":")}},x:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"x":return xv(o);case"xxxx":case"xx":return Ps(o);case"xxxxx":case"xxx":default:return Ps(o,":")}},O:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vv(o,":");case"OOOO":default:return"GMT"+Ps(o,":")}},z:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vv(o,":");case"zzzz":default:return"GMT"+Ps(o,":")}},t:function(e,t,r){const o=Math.trunc(e.getTime()/1e3);return Ve(o,t.length)},T:function(e,t,r){const o=e.getTime();return Ve(o,t.length)}};function vv(e,t=""){const r=e>0?"-":"+",o=Math.abs(e),i=Math.trunc(o/60),l=o%60;return l===0?r+String(i):r+String(i)+t+Ve(l,2)}function xv(e,t){return e%60===0?(e>0?"-":"+")+Ve(Math.abs(e)/60,2):Ps(e,t)}function Ps(e,t=""){const r=e>0?"-":"+",o=Math.abs(e),i=Ve(Math.trunc(o/60),2),l=Ve(o%60,2);return r+i+t+l}const wv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},w0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},sO=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return wv(e,t);let l;switch(o){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",wv(o,t)).replace("{{time}}",w0(i,t))},oO={p:w0,P:sO},iO=/^D+$/,aO=/^Y+$/,lO=["D","DD","YY","YYYY"];function cO(e){return iO.test(e)}function uO(e){return aO.test(e)}function dO(e,t,r){const o=fO(e,t,r);if(console.warn(o),lO.includes(e))throw new RangeError(o)}function fO(e,t,r){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const hO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mO=/^'([^]*?)'?$/,gO=/''/g,yO=/[a-zA-Z]/;function vc(e,t,r){var y,v,E,k,C,w,S,N;const o=Fc(),i=(r==null?void 0:r.locale)??o.locale??Zj,l=(r==null?void 0:r.firstWeekContainsDate)??((v=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((k=(E=o.locale)==null?void 0:E.options)==null?void 0:k.firstWeekContainsDate)??1,u=(r==null?void 0:r.weekStartsOn)??((w=(C=r==null?void 0:r.locale)==null?void 0:C.options)==null?void 0:w.weekStartsOn)??o.weekStartsOn??((N=(S=o.locale)==null?void 0:S.options)==null?void 0:N.weekStartsOn)??0,f=kn(e);if(!wj(f))throw new RangeError("Invalid time value");let p=t.match(pO).map(T=>{const P=T[0];if(P==="p"||P==="P"){const _=oO[P];return _(T,i.formatLong)}return T}).join("").match(hO).map(T=>{if(T==="''")return{isToken:!1,value:"'"};const P=T[0];if(P==="'")return{isToken:!1,value:vO(T)};if(yv[P])return{isToken:!0,value:T};
172if(P.match(yO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:T}});i.localize.preprocessor&&(p=i.localize.preprocessor(f,p));const g={firstWeekContainsDate:l,weekStartsOn:u,locale:i};return p.map(T=>{if(!T.isToken)return T.value;const P=T.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&uO(P)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&cO(P))&&dO(P,t,String(e));const _=yv[P[0]];return _(f,P,i.localize,g)}).join("")}function vO(e){const t=e.match(mO);return t?t[1].replace(gO,"'"):e}const xO={lessThanXSeconds:{one:"פ××ת ××©× ×××",two:"פ××ת ××©×ª× ×©× ××ת",other:"פ××ת ×Ö¾{{count}} ×©× ××ת"},xSeconds:{one:"×©× ×××",two:"×©×ª× ×©× ××ת",other:"{{count}} ×©× ××ת"},halfAMinute:"××¦× ××§×",lessThanXMinutes:{one:"פ××ת ×××§×",two:"פ××ת ××©×ª× ××§×ת",other:"פ××ת ×Ö¾{{count}} ××§×ת"},xMinutes:{one:"××§×",two:"×©×ª× ××§×ת",other:"{{count}} ××§×ת"},aboutXHours:{one:"×שע×",two:"×שעת×××",other:"×Ö¾{{count}} שע×ת"},xHours:{one:"שע×",two:"שעת×××",other:"{{count}} שע×ת"},xDays:{one:"×××",two:"××××××",other:"{{count}} ××××"},aboutXWeeks:{one:"×ש×××¢",two:"×ש×××¢×××",other:"×Ö¾{{count}} ש×××¢×ת"},xWeeks:{one:"ש×××¢",two:"ש×××¢×××",other:"{{count}} ש×××¢×ת"},aboutXMonths:{one:"××××ש",two:"××××ש×××",other:"×Ö¾{{count}} ×××ש××"},xMonths:{one:"×××ש",two:"×××ש×××",other:"{{count}} ×××ש××"},aboutXYears:{one:"××©× ×",two:"××©× ×ª×××",other:"×Ö¾{{count}} ×©× ××"},xYears:{one:"×©× ×",two:"×©× ×ª×××",other:"{{count}} ×©× ××"},overXYears:{one:"××תר ××©× ×",two:"××תר ××©× ×ª×××",other:"××תר ×Ö¾{{count}} ×©× ××"},almostXYears:{one:"×××¢× ×©× ×",two:"×××¢× ×©× ×ª×××",other:"×××¢× {{count}} ×©× ××"}},wO=(e,t,r)=>{if(e==="xDays"&&(r!=null&&r.addSuffix)&&t<=2)return r.comparison&&r.comparison>0?t===1?"××ר":"××רת×××":t===1?"×ת×××":"ש×ש××";let o;const i=xO[e];return typeof i=="string"?o=i:t===1?o=i.one:t===2?o=i.two:o=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"××¢×× "+o:"××¤× × "+o:o},bO={full:"EEEE, d ×MMMM y",long:"d ×MMMM y",medium:"d ×MMM y",short:"d.M.y"},SO={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},CO={full:"{{date}} '×שע×' {{time}}",long:"{{date}} '×שע×' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EO={date:To({formats:bO,defaultWidth:"full"}),time:To({formats:SO,defaultWidth:"full"}),dateTime:To({formats:CO,defaultWidth:"full"})},NO={lastWeek:"eeee 'שע×ר ×שע×' p",yesterday:"'×ת××× ×שע×' p",today:"'×××× ×שע×' p",tomorrow:"'××ר ×שע×' p",nextWeek:"eeee '×שע×' p",other:"P"},kO=(e,t,r,o)=>NO[e],PO={narrow:["××¤× ×״ס","×ספ×ר×"],abbreviated:["××¤× ×״ס","×ספ×ר×"],wide:["××¤× × ×ספ×ר×","×ספ×ר×"]},_O={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ר××¢×× 1","ר××¢×× 2","ר××¢×× 3","ר××¢×× 4"]},RO={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["×× ×׳","פ×ר׳","×רץ","×פר׳","×××","××× ×","××××","×××׳","ספ×׳","××ק׳","× ××׳","×צ×׳"],wide:["×× ××ר","פ×ר××ר","×רץ","×פר××","×××","××× ×","××××","××××ס×","ספ×××ר","×××§×××ר","× ××××ר","×צ××ר"]},TO={narrow:["×׳","×׳","×׳","×׳","×׳","×׳","ש׳"],short:["×׳","×׳","×׳","×׳","×׳","×׳","ש׳"],abbreviated:["××× ×׳","××× ×׳","××× ×׳","××× ×׳","××× ×׳","××× ×׳","ש×ת"],wide:["××× ×¨×ש××","××× ×©× ×","××× ×©××ש×","××× ×¨×××¢×","××× ×××ש×","××× ×©×ש×","××× ×©×ת"]},jO={narrow:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"××קר",afternoon:"××ר ×צ×ר×××",evening:"ער×",night:"××××"},abbreviated:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"××קר",afternoon:"××ר ×צ×ר×××",evening:"ער×",night:"××××"},wide:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"××קר",afternoon:"××ר ×צ×ר×××",evening:"ער×",night:"××××"}},OO={narrow:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"×××קר",afternoon:"×צ×ר×××",evening:"×ער×",night:"×××××"},abbreviated:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"×××קר",afternoon:"××ר ×צ×ר×××",evening:"×ער×",night:"×××××"},wide:{am:"××¤× ×״צ",pm:"×××״צ",midnight:"×צ×ת",noon:"צ×ר×××",morning:"×××קר",afternoon:"××ר ×צ×ר×××",evening:"×ער×",night:"×××××"}},AO=(e,t)=>{const r=Number(e);if(r<=0||r>10)return String(r);const o=String(t==null?void 0:t.unit),i=["year","hour","minute","second"].indexOf(o)>=0,l=["ר×ש××","×©× ×","ש××ש×","ר×××¢×","×××ש×","ש×ש×","ש×××¢×","ש××× ×","תש××¢×","עש×ר×"],u=["ר×ש×× ×","×©× ×××","ש××ש×ת","ר×××¢×ת","×××ש×ת","ש×ש×ת","ש×××¢×ת","ש××× ×ת","תש××¢×ת","עש×ר×ת"],f=r-1;return i?u[f]:l[f]},MO={ordinalNumber:AO,era:Ln({values:PO,defaultWidth:"wide"}),quarter:Ln({values:_O,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ln({values:RO,defaultWidth:"wide"}),day:Ln({values:TO,defaultWidth:"wide"}),dayPeriod:Ln({values:jO,defaultWidth:"wide",formattingValues:OO,defaultFormattingWidth:"wide"})},DO=/^(\d+|(ר×ש××|×©× ×|ש××ש×|ר×××¢×|×××ש×|ש×ש×|ש×××¢×|ש××× ×|תש××¢×|עש×ר×|ר×ש×× ×|×©× ×××|ש××ש×ת|ר×××¢×ת|×××ש×ת|ש×ש×ת|ש×××¢×ת|ש××× ×ת|תש××¢×ת|עש×ר×ת))/i,IO=/^(\d+|ר×|×©× |ש×|ר×|×|ש×|ש×|ש×|ת|×¢)/i,LO={narrow:/^×(ספ×ר×|×¤× ×״ס)/i,abbreviated:/^×(ספ×ר×|×¤× ×״ס)/i,wide:/^×(×¤× × ×)?ספ×ר×/i},FO={any:[/^×פ/i,/^×ס/i]},BO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ר××¢×× [1234]/i},$O={any:[/1/i,/2/i,/3/i,/4/i]},UO={narrow:/^\d+/i,abbreviated:/^(×× ×|פ×ר|×רץ|×פר|×××|××× ×|××××|×××|ספ×|×××§|× ××|×צ×)׳?/i,wide:/^(×× ××ר|פ×ר××ר|×רץ|×פר××|×××|××× ×|××××|××××ס×|ספ×××ר|×××§×××ר|× ××××ר|×צ××ר)/i},zO={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^×× /i,/^פ/i,/^×ר/i,/^×פ/i,/^××/i,/^××× /i,/^×××/i,/^×××/i,/^ס/i,/^×××§/i,/^× /i,/^×/i]},WO={narrow:/^[××××××ש]׳/i,short:/^[××××××ש]׳/i,abbreviated:/^(ש×ת|××× (×|×|×|×|×|×)׳)/i,wide:/^××× (ר×ש××|×©× ×|ש××ש×|ר×××¢×|×××ש×|ש×ש×|ש×ת)/i}
172,VO={abbreviated:[/×׳$/i,/×׳$/i,/×׳$/i,/×׳$/i,/×׳$/i,/×׳$/i,/^ש/i],wide:[/×$/i,/× ×$/i,/××ש×$/i,/×¢×$/i,/××ש×$/i,/ש×ש×$/i,/ת$/i],any:[/^×/i,/^×/i,/^×/i,/^×/i,/^×/i,/^×/i,/^ש/i]},HO={any:/^(××ר ×|×)?(×צ×ת|צ×ר×××|××קר|ער×|××××|×××״צ|××¤× ×״צ)/i},qO={any:{am:/^×פ/i,pm:/^×××/i,midnight:/^×/i,noon:/^צ/i,morning:/××קר/i,afternoon:/×צ|××ר/i,evening:/ער×/i,night:/××××/i}},QO=["ר×","×©× ","ש×","ר×","×","ש×","ש×","ש×","ת","×¢"],KO={ordinalNumber:v0({matchPattern:DO,parsePattern:IO,valueCallback:e=>{const t=parseInt(e,10);return isNaN(t)?QO.indexOf(e)+1:t}}),era:Fn({matchPatterns:LO,defaultMatchWidth:"wide",parsePatterns:FO,defaultParseWidth:"any"}),quarter:Fn({matchPatterns:BO,defaultMatchWidth:"wide",parsePatterns:$O,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fn({matchPatterns:UO,defaultMatchWidth:"wide",parsePatterns:zO,defaultParseWidth:"any"}),day:Fn({matchPatterns:WO,defaultMatchWidth:"wide",parsePatterns:VO,defaultParseWidth:"any"}),dayPeriod:Fn({matchPatterns:HO,defaultMatchWidth:"any",parsePatterns:qO,defaultParseWidth:"any"})},xc={code:"he",formatDistance:wO,formatLong:EO,formatRelative:kO,localize:MO,match:KO,options:{weekStartsOn:0,firstWeekContainsDate:1}};function YO({peopleCount:e,postcardsCount:t,unitPrice:r,subtotalBeforeVat:o,discountAmount:i,discountedSubtotal:l,vatPercent:u,vatAmount:f,totalAfterVat:p,shippingFee:g,grandTotal:y,discountActive:v,discountPercent:E,discountEndDate:k}){const C=k?vc(new Date(k),"d ×MMMM yyyy",{locale:xc}):"";return d.jsxs(xn,{className:"bg-white/90 backdrop-blur-sm border-0 shadow-xl",children:[d.jsx(wn,{className:"pb-4",children:d.jsxs(bn,{className:"text-2xl md:text-3xl font-bold text-black leading-tight",children:["שק××× ××¢××ת, ××××ססת ×¢× ×¨×××©× ×¢× ",C]})}),d.jsxs(Sn,{className:"space-y-4",children:[d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsx("span",{className:"text-black text-base md:text-xl",children:"×ספר ×× ×©××"}),d.jsx("span",{className:"font-bold text-black text-lg md:text-xl",children:e})]}),d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsx("span",{className:"text-black text-base md:text-xl",children:"×ספר ×××××ת ×××××¥"}),d.jsx("span",{className:"font-bold text-black text-lg md:text-xl",children:t})]}),d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsx("span",{className:"text-black text-base md:text-xl",children:"×××ר ×××××× (××¤× × ××¢×´×)"}),d.jsxs("span",{className:"font-bold text-black text-lg md:text-xl",children:[r.toFixed(2)," âª"]})]}),d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsx("span",{className:"text-black text-base md:text-xl",children:"ס××´× ××¤× × ××¢×´× ××× ××"}),d.jsxs("span",{className:"font-bold text-black text-lg md:text-xl",children:[o.toFixed(2)," âª"]})]}),v&&E>0&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200 bg-green-50 -mx-6 px-6",children:[d.jsxs("span",{className:"text-green-700 font-bold text-base md:text-xl",children:["×× ×× (",E,"%)"]}),d.jsxs("span",{className:"font-bold text-green-700 text-lg md:text-xl",children:["-",i.toFixed(2)," âª"]})]}),d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsx("span",{className:"text-black text-base md:text-xl",children:"ס××´× ×××¨× ×× ×× (××¤× × ××¢×´×)"}),d.jsxs("span",{className:"font-bold text-black text-lg md:text-xl",children:[l.toFixed(2)," âª"]})]})]}),d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsxs("span",{className:"text-black text-base md:text-xl",children:["××¢×´× (",u,"%)"]}),d.jsxs("span",{className:"font-bold text-black text-lg md:text-xl",children:[f.toFixed(2)," âª"]})]}),d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsx("span",{className:"text-black text-base md:text-xl",children:"ס××´× ×××¨× ××¢×´×"}),d.jsxs("span",{className:"font-bold text-black text-lg md:text-xl",children:[p.toFixed(2)," âª"]}
vendor: 4,975 bytes, line 172
172)]}),g>0&&d.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-200",children:[d.jsx("span",{className:"text-black text-base md:text-xl",children:"×ש×××/××פ××"}),d.jsxs("span",{className:"font-bold text-black text-lg md:text-xl",children:[g.toFixed(2)," âª"]})]}),d.jsxs("div",{className:"py-6 bg-[#2d5a4a] -mx-6 px-6 mt-6 rounded-b-lg",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-white text-xl md:text-2xl font-bold",children:"ס××´× ×תש×××"}),d.jsxs("span",{className:"text-white text-2xl md:text-4xl font-bold",children:[y.toFixed(2)," âª"]})]}),v&&E>0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex justify-center items-center mt-3",children:d.jsxs("span",{className:"text-white/80 text-xl md:text-3xl",children:["×××ר ××§×ר×: ",d.jsxs("span",{className:"line-through",children:[(y/(1-E/100)).toFixed(2)," âª"]})]})}),d.jsx("div",{className:"flex justify-center items-center mt-2",children:d.jsxs("span",{className:"text-green-400 font-bold text-base md:text-2xl",children:["××§× ××× ××× ×ת ××ס×ת: ",(y/(1-E/100)-y).toFixed(2)," âª"]})})]})]})]})]})}var Bc="Checkbox",[GO]=Hn(Bc),[XO,$h]=GO(Bc);function JO(e){const{__scopeCheckbox:t,checked:r,children:o,defaultChecked:i,disabled:l,form:u,name:f,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:v}=e,[E,k]=os({prop:r,defaultProp:i??!1,onChange:p,caller:Bc}),[C,w]=x.useState(null),[S,N]=x.useState(null),T=x.useRef(!1),P=C?!!u||!!C.closest("form"):!0,_={checked:E,disabled:l,setChecked:k,control:C,setControl:w,name:f,form:u,value:y,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:ss(i)?!1:i,isFormControl:P,bubbleInput:S,setBubbleInput:N};return d.jsx(XO,{scope:t,..._,children:ZO(v)?v(_):o})}var b0="CheckboxTrigger",S0=x.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...o},i)=>{const{control:l,value:u,disabled:f,checked:p,required:g,setControl:y,setChecked:v,hasConsumerStoppedPropagationRef:E,isFormControl:k,bubbleInput:C}=$h(b0,e),w=ze(i,y),S=x.useRef(p);return x.useEffect(()=>{const N=l==null?void 0:l.form;if(N){const T=()=>v(S.current);return N.addEventListener("reset",T),()=>N.removeEventListener("reset",T)}},[l,v]),d.jsx(je.button,{type:"button",role:"checkbox","aria-checked":ss(p)?"mixed":p,"aria-required":g,"data-state":P0(p),"data-disabled":f?"":void 0,disabled:f,value:u,...o,ref:w,onKeyDown:_e(t,N=>{N.key==="Enter"&&N.preventDefault()}),onClick:_e(r,N=>{v(T=>ss(T)?!0:!T),C&&k&&(E.current=N.isPropagationStopped(),E.current||N.stopPropagation())})})});S0.displayName=b0;var Uh=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:o,checked:i,defaultChecked:l,required:u,disabled:f,value:p,onCheckedChange:g,form:y,...v}=e;return d.jsx(JO,{__scopeCheckbox:r,checked:i,defaultChecked:l,disabled:f,required:u,onCheckedChange:g,name:o,form:y,value:p,internal_do_not_use_render:({isFormControl:E})=>d.jsxs(d.Fragment,{children:[d.jsx(S0,{...v,ref:t,__scopeCheckbox:r}),E&&d.jsx(k0,{__scopeCheckbox:r})]})})});Uh.displayName=Bc;var C0="CheckboxIndicator",E0=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:o,...i}=e,l=$h(C0,r);return d.jsx(cs,{present:o||ss(l.checked)||l.checked===!0,children:d.jsx(je.span,{"data-state":P0(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});E0.displayName=C0;var N0="CheckboxBubbleInput",k0=x.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:o,hasConsumerStoppedPropagationRef:i,checked:l,defaultChecked:u,required:f,disabled:p,name:g,value:y,form:v,bubbleInput:E,setBubbleInput:k}=$h(N0,e),C=ze(r,k),w=Ih(l),S=Lh(o);x.useEffect(()=>{const T=E;if(!T)return;const P=window.HTMLInputElement.prototype,F=Object.getOwnPropertyDescriptor(P,"checked").set,H=!i.current;if(w!==l&&F){const $=new Event("click",{bubbles:H});T.indeterminate=ss(l),F.call(T,ss(l)?!1:l),T.dispatchEvent($)}},[E,w,l,i]);const N=x.useRef(ss(l)?!1:l);return d.jsx(je.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??N.current,required:f,disabled:p,name:g,value:y,form:v,...t,tabIndex:-1,ref:C,style:{...t.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});k0.displayName=N0;function ZO(e){return typeof e=="function"}function ss(e){return e==="indeterminate"}function P0(e){return ss(e)?"indeterminate":e?"checked":"unchecked"}const eA=x.forwardRef(({className:e,...t},r)=>d.jsx(Uh,{ref:r,className:Ce("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:d.jsx(E0,{className:Ce("flex items-center justify-center text-current"),children:d.jsx(ux,{className:"h-4 w-4"})})}));eA.displayName=Uh.displayName;function tA({discountPercent:e,discountEndDate:t}
172){if(!e||e<=0)return null;const r=t?vc(new Date(t),"d ×MMMM yyyy",{locale:xc}):"";return d.jsx("div",{className:"bg-[#2d5a4a] text-white rounded-3xl p-6 shadow-xl",children:d.jsxs("p",{className:"text-xl md:text-2xl leading-relaxed text-right",children:["××××× ×××× ×ª× ×¤×¨×× ×××× × ××× ××, ×§××××ª× ××××¢× ××××ª× ×, ש×ר×× ×ª×××× ×ר××ש ×ת ער×ת ××××××ת ××× ×× ×©× ",d.jsxs("span",{className:"font-bold text-2xl md:text-4xl",children:[e,"%"]}),".",d.jsx("br",{}),"×××××× ×ת ×ª×§×¤× ×× ×רק ×ר××שת ער×ת ×××××ת ×¢× ×-",d.jsx("span",{className:"font-bold text-xl md:text-3xl",children:r}),".",d.jsx("br",{}),"×××××× ×ת ×ª×§×¤× ×××§×××ת ×××××× ×©×¢××× ×××ª× ××¢×ר (××××§ ×××צע ××××× ××××)."]})})}function bv(){return d.jsx("footer",{className:"bg-white border-t border-gray-200 mt-16 py-8",children:d.jsx("div",{className:"max-w-6xl mx-auto px-4",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("h3",{className:"font-bold text-black text-xl mb-3",children:"פר×× ×צ×רת קשר"}),d.jsx("p",{className:"text-black text-lg",children:"××××× ×¦×³××××"}),d.jsx("p",{className:"text-black text-lg",children:"××××: [email protected]"}),d.jsx("p",{className:"text-black text-lg",children:"××פ××: 0506508990"}),d.jsx("p",{className:"text-black text-sm",children:"×ת××ת: ×¢××ר×× 27, ×××××¢×× 7179902"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("h3",{className:"font-bold text-black text-xl mb-3",children:"×ª×§× ×× ××"}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("a",{href:"https://www.wildchild.co.il/privacy",target:"_blank",rel:"noopener noreferrer",className:"block text-[#2d5a4a] hover:text-[#1e4035] underline text-lg",children:"×ª×§× ×× ×¤×¨×××ת"}),d.jsx("a",{href:"https://www.wildchild.co.il/regulations",target:"_blank",rel:"noopener noreferrer",className:"block text-[#2d5a4a] hover:text-[#1e4035] underline text-lg",children:"×ª×§× ×× ××××"})]})]})]})})})}const Sv="https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/user_687741899b22a8e9f3108b36/4b6ed03da_-.jpg";function nA(){const[e,t]=x.useState(20),[r,o]=x.useState({email:"",name:"",phone:"",company:""}),[i,l]=x.useState({}),[u,f]=x.useState("idle"),[p,g]=x.useState(null),[y,v]=x.useState(null),[E,k]=x.useState(!1),[C,w]=x.useState(!1);x.useEffect(()=>{u==="success"&&window.scrollTo({top:0,behavior:"smooth"})},[u]);const{data:S,isLoading:N}=qo({queryKey:["settings"],queryFn:()=>vt.entities.Settings.list()}),{data:T,isLoading:P}=qo({queryKey:["pricingTiers"],queryFn:()=>vt.entities.PricingTier.filter({active:!0})}),_=(S==null?void 0:S[0])||{peoplePerPostcard:2,vatPercent:17,shippingFeeILS:0,applyVatOnShipping:!0,discountPercent:0},F=T||[],H=x.useMemo(()=>{if(!_.discountPercent||_.discountPercent<=0)return!1;const ie=new Date;if(ie.setHours(0,0,0,0),_.discountStartDate){const ne=new Date(_.discountStartDate);if(ie<ne)return!1}if(_.discountEndDate){const ne=new Date(_.discountEndDate);if(ne.setHours(23,59,59,999),ie>ne)return!1}return!0},[_]),$=x.useMemo(()=>{if(C)return Math.floor(e/_.peoplePerPostcard);const ie=Math.floor(e/_.peoplePerPostcard);return Math.max(ie,6)},[e,_.peoplePerPostcard,C]),W=x.useMemo(()=>6*_.peoplePerPostcard,[_.peoplePerPostcard]),oe=ie=>{if(F.length===0)return 0;const ne=[...F].sort((xe,G)=>G.minPostcards-xe.minPostcards),ae=ne.find(xe=>ie>=xe.minPostcards);return ae?ae.pricePerPostcard:ne[ne.length-1].pricePerPostcard},K=x.useMemo(()=>{const ie=Math.max($,6),ne=oe(ie),ae=$*ne,xe=H?_.discountPercent:0,G=ae*(xe/100),re=ae-G,D=_.shippingFeeILS||0,J=(_.applyVatOnShipping?re+D:re)*(_.vatPercent/100),A=re+J,V=(_.applyVatOnShipping,A+D);return{unitPrice:Math.round(ne*100)/100,subtotalBeforeVat:Math.round(ae*100)/100,discountAmount:Math.round(G*100)/100,discountedSubtotal:Math.round(re*100)/100,vatAmount:Math.round(J*100)/100,totalAfterVat:Math.round(A*100)/100,shippingFee:Math.round(D*100)/100,grandTotal:Math.round(V*100)/100}},[$,F,_,H]);return N||P?d.jsx("div",{className:"min-h-screen bg-[#b8d4c8] flex items-center justify-center",children:d.jsx(kc,{className:"h-8 w-8 animate-spin text-[#2d5a4a]"})}):u==="success"?d.jsxs("div",{className:"min-h-screen bg-[#b8d4c8]",dir:"rtl",children:[d.jsx("div",{className:"w-full",children:d.jsx("img",{src:Sv,alt:"Pride Month Puzzle Parade",className:"w-full h-auto object-cover"})}),d.jsx("div",{className:"max-w-2xl mx-auto px-4 py-12 text-center",children:d.jsxs("div",{className:"bg-white/90 backdrop-blur-sm rounded-3xl p-8 shadow-xl",children:[d.jsx("div",{className:"w-20 h-20 bg-[#2d5a4a] rounded-full flex items-center justify-center mx-auto mb-6",children:d.jsx(TE,{className:"h-10 w-10 text-white"})}),d.jsx("h1",{className:"text-4xl font-bold text-black mb-6",children:"××××× × × ××¦×¨× ××צ×××! ð"}),d.jsx("p",{className:"text-black text-2xl mb-8 leading-relaxed",children:"××¢×××! ×§×××× × ×ת ×× ×פר××× ××× ×××××× ×©×× ×. ××××ר ××××× ×ª×× ×××× ×¢× ×§×ש×ר ×תש×××."}),d.jsxs("div",{className:"bg-[#e8f4ef] rounded-2xl p-6 mb-8 text-right",children:[d.jsx("h2",{className:"text-black text-2xl font-bold mb-4 text-center",children:"פר×× ××××× ×"}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"flex justify-between items-center border-b border-gray-300 pb-2",children:[d.jsx("span",{className:"text-gray-600 text-lg",children:"×©× ×××:"}),d.jsx("span",{className:"text-black font-semibold text-lg",children:r.name})]}),d.jsxs("div",{className:"flex justify-between items-center border-b border-gray-300 pb-2",children:[d.jsx("span",{className:"text-gray-600 text-lg",children:"תפק×× ×××ר×:"}),d.jsx("span",{className:"text-black font-semibold text-lg",children:r.position})]}),d.jsxs("div",{className:"flex justify-between items-center border-b border-gray-300 pb-2",children:[d.jsx("span",{className:"text-gray-600 text-lg",children:"××××××:"}),d.jsx("span",{className:"text-black font-semibold text-lg",children:r.email})]}),d.jsxs("div",{className:"flex justify-between items-center border-b border-gray-300 pb-2",children:[d.jsx("span",{className:"text-gray-600 text-lg",children:"×ספר × ×××:"}),d.jsx("span",{className:"text-black font-semibold text-lg",children:r.phone})]}),d.jsxs("div",{className:"flex justify-between items-center border-b border-gray-300 pb-2",children:[d.jsx("span",{className:"text-gray-600 text-lg",children:"×©× ×××ר×:"}),d.jsx("span",{className:"text-black font-semibold text-lg",children:r.company})]}),d.jsxs("div",{className:"flex justify-between items-center border-b border-gray-300 pb-2",children:[d.jsx("span",{className:"text-gray-600 text-lg",children:"×ת××ת ×××ר×:"}),d.jsx("span",{className:"text-black font-semibold text-lg",children:r.companyAddress})]}),d.jsxs("div",{className:"flex justify-between items-center border-b border-gray-300 pb-2",children:[d.jsx("span",{className:"text-gray-600 text-lg",children:"×ספר ×××××ת:"}),d.jsx("span",{className:"text-black font-semibold text-lg",children:$})]}),d.jsxs("div",{className:"flex justify-between items-center pt-3",children:[d.jsx("span",{className:"text-gray-600 text-xl font-bold",children:"ס××´× ×תש×××:"}),d.jsxs("span",{className:"text-[#2d5a4a] font-bold text-2xl",children:[K.grandTotal.toFixed(2)," âª"]}
vendor: 38,049 bytes, line 172
172)]})]})]}),(p==null?void 0:p.paymentLink)&&d.jsxs(Mt,{className:"bg-[#2d5a4a] hover:bg-[#1e4035] text-white font-bold py-6 px-10 rounded-2xl text-2xl w-full",onClick:()=>window.open(p.paymentLink,"_blank"),children:[d.jsx(OE,{className:"ml-2 h-6 w-6"}),"×תש×××"]}),d.jsx("p",{className:"text-black text-lg mt-8",children:"×ש ש×××ת? ×¦×¨× ×§×©×¨ ×××ª× ×"})]})}),d.jsx(bv,{})]}):d.jsxs("div",{className:"min-h-screen bg-[#d4e7dd]",dir:"rtl",children:[d.jsx("div",{className:"w-full bg-[#d4e7dd] flex justify-center",children:d.jsx("img",{src:Sv,alt:"Pride Month Puzzle Parade",className:"w-full md:w-1/2 h-auto object-cover"})}),d.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8 space-y-6",children:[d.jsx("div",{className:"text-center space-y-4",children:d.jsxs("h1",{className:"text-5xl font-bold text-black flex flex-col md:flex-row items-center justify-center gap-3",children:[d.jsx(ME,{className:"h-10 w-10 text-[#2d5a4a] fill-[#2d5a4a] order-first md:order-last"}),"ת××× ×©××ª×¢× ××× ×ª"]})}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[d.jsxs("div",{className:"space-y-6",children:[H&&d.jsx(tA,{discountPercent:_.discountPercent,discountEndDate:_.discountEndDate}),d.jsxs("div",{className:"space-y-4",children:[d.jsx("p",{className:"text-center text-black text-2xl font-medium mb-4",children:"×××× × ×ת ×ספר ××× ×©×× ×©××ª× ×××××× ××××ת:"}),d.jsx(pj,{value:e,onChange:t,min:W,max:500,postcardsCount:$})]}),d.jsxs("div",{className:"bg-white/90 backdrop-blur-sm rounded-3xl p-6 md:p-8 text-center shadow-xl flex flex-col justify-center",children:[d.jsx("p",{className:"text-black text-xl md:text-2xl font-medium mb-2 md:mb-3",children:"×××צ×:"}),d.jsxs("p",{className:"text-4xl md:text-6xl font-bold text-black mb-2 md:mb-3",children:[$," ×××××ת"]}),d.jsxs("p",{className:"text-lg text-gray-600",children:["(××××× ××ת ××× ",_.peoplePerPostcard," ×× ×©××)"]}),d.jsx("p",{className:"text-sm text-gray-500 mt-3",children:"×ספר ××××××ת ×××× ×××× ××××× × ××× 6"}),d.jsx("p",{className:"text-center text-black text-base md:text-lg leading-relaxed mt-4 px-4",children:"×××××¦× ×××ססת ×¢× ××××× ××ת ××× ×©× × ×שתתפ××. ×××§×¨× ×©× ×ספר ××Ö¾××××, ×××ש×× ××¢××× ×××¤× ×××."})]})]}),d.jsx(YO,{peopleCount:e,postcardsCount:$,unitPrice:K.unitPrice,subtotalBeforeVat:K.subtotalBeforeVat,discountAmount:K.discountAmount,discountedSubtotal:K.discountedSubtotal,vatPercent:_.vatPercent,vatAmount:K.vatAmount,totalAfterVat:K.totalAfterVat,shippingFee:K.shippingFee,grandTotal:K.grandTotal,discountActive:H,discountPercent:_.discountPercent,discountEndDate:_.discountEndDate})]})]}),d.jsx("div",{className:"max-w-6xl mx-auto px-4 pb-8",children:d.jsx("div",{className:"bg-yellow-100 border-2 border-yellow-500 rounded-2xl p-6 md:p-8 shadow-lg",children:d.jsxs("p",{className:"text-black text-xl md:text-2xl font-bold text-center leading-relaxed",children:["â ï¸ ××× ×× ×¢××× ×ר××ש×, ××× ×¢××× ×©× ×©×§××× ×¢××××ת.",d.jsx("br",{}),"××× ×××ש×× ×ש×× ×ר××ש×, ×ש ×××× ×¤×¨××× × ××× ×× ",d.jsx("a",{href:"https://www.wildchild.co.il/contact-pride",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-blue-600 transition-colors",children:"×××פס ×××"})," ××××ש×× ×ª×××× ××¨× ×××××¢× ×©×ª×§××× ×××××."]})})}),d.jsx(bv,{})]})}function Cv(e,[t,r]){return Math.min(r,Math.max(t,e))}function rA(e,t=globalThis==null?void 0:globalThis.document){const r=is(e);x.useEffect(()=>{const o=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var sA="DismissableLayer",nh="dismissableLayer.update",oA="dismissableLayer.pointerDownOutside",iA="dismissableLayer.focusOutside",Ev,_0=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$c=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...p}=e,g=x.useContext(_0),[y,v]=x.useState(null),E=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=x.useState({}),C=ze(t,$=>v($)),w=Array.from(g.layers),[S]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),N=w.indexOf(S),T=y?w.indexOf(y):-1,P=g.layersWithOutsidePointerEventsDisabled.size>0,_=T>=N,F=cA($=>{const W=$.target,oe=[...g.branches].some(K=>K.contains(W));!_||oe||(i==null||i($),u==null||u($),$.defaultPrevented||f==null||f())},E),H=uA($=>{const W=$.target;[...g.branches].some(K=>K.contains(W))||(l==null||l($),u==null||u($),$.defaultPrevented||f==null||f())},E);return rA($=>{T===g.layers.size-1&&(o==null||o($),!$.defaultPrevented&&f&&($.preventDefault(),f()))},E),x.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Ev=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Nv(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=Ev)}},[y,E,r,g]),x.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Nv())},[y,g]),x.useEffect(()=>{const $=()=>k({});return document.addEventListener(nh,$),()=>document.removeEventListener(nh,$)},[]),d.jsx(je.div,{...p,ref:C,style:{pointerEvents:P?_?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,H.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,F.onPointerDownCapture)})});$c.displayName=sA;var aA="DismissableLayerBranch",lA=x.forwardRef((e,t)=>{const r=x.useContext(_0),o=x.useRef(null),i=ze(t,o);return x.useEffect(()=>{const l=o.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),d.jsx(je.div,{...e,ref:i})});lA.displayName=aA;function cA(e,t=globalThis==null?void 0:globalThis.document){const r=is(e),o=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const l=f=>{if(f.target&&!o.current){let p=function(){R0(oA,r,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=p,t.addEventListener("click",i.current,{once:!0})):p()}else t.removeEventListener("click",i.current);o.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function uA(e,t=globalThis==null?void 0:globalThis.document){const r=is(e),o=x.useRef(!1);return x.useEffect(()=>{const i=l=>{l.target&&!o.current&&R0(iA,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Nv(){const e=new CustomEvent(nh);document.dispatchEvent(e)}function R0(e,t,r,{discrete:o}){const i=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?_T(i,l):i.dispatchEvent(l)}var hf=0;function zh(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??kv()),document.body.insertAdjacentElement("beforeend",e[1]??kv()),hf++,()=>{hf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hf--}},[])}function kv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pf="focusScope.autoFocusOnMount",mf="focusScope.autoFocusOnUnmount",Pv={bubbles:!1,cancelable:!0},dA="FocusScope",Uc=x.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=e,[f,p]=x.useState(null),g=is(i),y=is(l),v=x.useRef(null),E=ze(t,w=>p(w)),k=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(o){let w=function(P){if(k.paused||!f)return;const _=P.target;f.contains(_)?v.current=_:zr(v.current,{select:!0})},S=function(P){if(k.paused||!f)return;const _=P.relatedTarget;_!==null&&(f.contains(_)||zr(v.current,{select:!0}))},N=function(P){if(document.activeElement===document.body)for(const F of P)F.removedNodes.length>0&&zr(f)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const T=new MutationObserver(N);return f&&T.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),T.disconnect()}}},[o,f,k.paused]),x.useEffect(()=>{if(f){Rv.add(k);const w=document.activeElement;if(!f.contains(w)){const N=new CustomEvent(pf,Pv);f.addEventListener(pf,g),f.dispatchEvent(N),N.defaultPrevented||(fA(yA(T0(f)),{select:!0}),document.activeElement===w&&zr(f))}return()=>{f.removeEventListener(pf,g),setTimeout(()=>{const N=new CustomEvent(mf,Pv);f.addEventListener(mf,y),f.dispatchEvent(N),N.defaultPrevented||zr(w??document.body,{select:!0}),f.removeEventListener(mf,y),Rv.remove(k)},0)}}},[f,g,y,k]);const C=x.useCallback(w=>{if(!r&&!o||k.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,N=document.activeElement;if(S&&N){const T=w.currentTarget,[P,_]=hA(T);P&&_?!w.shiftKey&&N===_?(w.preventDefault(),r&&zr(P,{select:!0})):w.shiftKey&&N===P&&(w.preventDefault(),r&&zr(_,{select:!0})):N===T&&w.preventDefault()}},[r,o,k.paused]);return d.jsx(je.div,{tabIndex:-1,...u,ref:E,onKeyDown:C})});Uc.displayName=dA;function fA(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(zr(o,{select:t}),document.activeElement!==r)return}function hA(e){const t=T0(e),r=_v(t,e),o=_v(t.reverse(),e);return[r,o]}function T0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _v(e,t){for(const r of e)if(!pA(r,{upTo:t}))return r}function pA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mA(e){return e instanceof HTMLInputElement&&"select"in e}function zr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&mA(e)&&t&&e.select()}}var Rv=gA();function gA(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Tv(e,t),e.unshift(t)},remove(t){var r;e=Tv(e,t),(r=e[0])==null||r.resume()}}}function Tv(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function yA(e){return e.filter(t=>t.tagName!=="A")}const vA=["top","right","bottom","left"],as=Math.min,Gt=Math.max,wc=Math.round,Wl=Math.floor,zn=e=>({x:e,y:e}),xA={left:"right",right:"left",bottom:"top",top:"bottom"},wA={start:"end",end:"start"};function rh(e,t,r){return Gt(e,as(t,r))}function hr(e,t){return typeof e=="function"?e(t):e}function pr(e){return e.split("-")[0]}function si(e){return e.split("-")[1]}function Wh(e){return e==="x"?"y":"x"}function Vh(e){return e==="y"?"height":"width"}const bA=new Set(["top","bottom"]);function $n(e){return bA.has(pr(e))?"y":"x"}function Hh(e){return Wh($n(e))}function SA(e,t,r){r===void 0&&(r=!1);const o=si(e),i=Hh(e),l=Vh(i);let u=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=bc(u)),[u,bc(u)]}function CA(e){const t=bc(e);return[sh(e),t,sh(t)]}function sh(e){return e.replace(/start|end/g,t=>wA[t])}const jv=["left","right"],Ov=["right","left"],EA=["top","bottom"],NA=["bottom","top"];function kA(e,t,r){switch(e){case"top":case"bottom":return r?t?Ov:jv:t?jv:Ov;case"left":case"right":return t?EA:NA;default:return[]}}function PA(e,t,r,o){const i=si(e);let l=kA(pr(e),r==="start",o);return i&&(l=l.map(u=>u+"-"+i),t&&(l=l.concat(l.map(sh)))),l}function bc(e){return e.replace(/left|right|bottom|top/g,t=>xA[t])}function _A(e){return{top:0,right:0,bottom:0,left:0,...e}}function j0(e){return typeof e!="number"?_A(e):{top:e,right:e,bottom:e,left:e}}function Sc(e){const{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function Av(e,t,r){let{reference:o,floating:i}=e;const l=$n(t),u=Hh(t),f=Vh(u),p=pr(t),g=l==="y",y=o.x+o.width/2-i.width/2,v=o.y+o.height/2-i.height/2,E=o[f]/2-i[f]/2;let k;switch(p){case"top":k={x:y,y:o.y-i.height};break;case"bottom":k={x:y,y:o.y+o.height};break;case"right":k={x:o.x+o.width,y:v};break;case"left":k={x:o.x-i.width,y:v};break;default:k={x:o.x,y:o.y}}switch(si(t)){case"start":k[u]-=E*(r&&g?-1:1);break;case"end":k[u]+=E*(r&&g?-1:1);break}return k}const RA=async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:l=[],platform:u}=r,f=l.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(t));let g=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=Av(g,o,p),E=o,k={},C=0;for(let w=0;w<f.length;w++){const{name:S,fn:N}=f[w],{x:T,y:P,data:_,reset:F}=await N({x:y,y:v,initialPlacement:o,placement:E,strategy:i,middlewareData:k,rects:g,platform:u,elements:{reference:e,floating:t}});y=T??y,v=P??v,k={...k,[S]:{...k[S],..._}},F&&C<=50&&(C++,typeof F=="object"&&(F.placement&&(E=F.placement),F.rects&&(g=F.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:y,y:v}=Av(g,E,p)),w=-1)}return{x:y,y:v,placement:E,strategy:i,middlewareData:k}};async function ca(e,t){var r;t===void 0&&(t={});const{x:o,y:i,platform:l,rects:u,elements:f,strategy:p}=e,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:E=!1,padding:k=0}=hr(t,e),C=j0(k),S=f[E?v==="floating"?"reference":"floating":v],N=Sc(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(S)))==null||r?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:g,rootBoundary:y,strategy:p})),T=v==="floating"?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),_=await(l.isElement==null?void 0:l.isElement(P))?await(l.getScale==null?void 0:l.getScale(P))||{x:1,y:1}:{x:1,y:1},F=Sc(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:T,offsetParent:P,strategy:p}):T);return{top:(N.top-F.top+C.top)/_.y,bottom:(F.bottom-N.bottom+C.bottom)/_.y,left:(N.left-F.left+C.left)/_.x,right:(F.right-N.right+C.right)/_.x}}const TA=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:l,platform:u,elements:f,middlewareData:p}=t,{element:g,padding:y=0}=hr(e,t)||{};if(g==null)return{};const v=j0(y),E={x:r,y:o},k=Hh(i),C=Vh(k),w=await u.getDimensions(g),S=k==="y",N=S?"top":"left",T=S?"bottom":"right",P=S?"clientHeight":"clientWidth",_=l.reference[C]+l.reference[k]-E[k]-l.floating[C],F=E[k]-l.reference[k],H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let $=H?H[P]:0;(!$||!await(u.isElement==null?void 0:u.isElement(H)))&&($=f.floating[P]||l.floating[C]);const W=_/2-F/2,oe=$/2-w[C]/2-1,K=as(v[N],oe),ue=as(v[T],oe),ie=K,ne=$-w[C]-ue,ae=$/2-w[C]/2+W,xe=rh(ie,ae,ne),G=!p.arrow&&si(i)!=null&&ae!==xe&&l.reference[C]/2-(ae<ie?K:ue)-w[C]/2<0,re=G?ae<ie?ae-ie:ae-ne:0;return{[k]:E[k]+re,data:{[k]:xe,centerOffset:ae-xe-re,...G&&{alignmentOffset:re}},reset:G}}}),jA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:l,rects:u,initialPlacement:f,platform:p,elements:g}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:E,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:w=!0,...S}=hr(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const N=pr(i),T=$n(f),P=pr(f)===f,_=await(p.isRTL==null?void 0:p.isRTL(g.floating)),F=E||(P||!w?[bc(f)]:CA(f)),H=C!=="none";!E&&H&&F.push(...PA(f,w,C,_));const $=[f,...F],W=await ca(t,S),oe=[];let K=((o=l.flip)==null?void 0:o.overflows)||[];if(y&&oe.push(W[N]),v){const ae=SA(i,u,_);oe.push(W[ae[0]],W[ae[1]])}if(K=[...K,{placement:i,overflows:oe}],!oe.every(ae=>ae<=0)){var ue,ie;const ae=(((ue=l.flip)==null?void 0:ue.index)||0)+1,xe=$[ae];if(xe&&(!(v==="alignment"?T!==$n(xe):!1)||K.every(D=>$n(D.placement)===T?D.overflows[0]>0:!0)))return{data:{index:ae,overflows:K},reset:{placement:xe}};let G=(ie=K.filter(re=>re.overflows[0]<=0).sort((re,D)=>re.overflows[1]-D.overflows[1])[0])==null?void 0:ie.placement;if(!G)switch(k){case"bestFit":{var ne;const re=(ne=K.filter(D=>{if(H){const ee=$n(D.placement);return ee===T||ee==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(ee=>ee>0).reduce((ee,J)=>ee+J,0)]).sort((D,ee)=>D[1]-ee[1])[0])==null?void 0:ne[0];re&&(G=re);break}case"initialPlacement":G=f;break}if(i!==G)return{reset:{placement:G}}}return{}}}};function Mv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dv(e){return vA.some(t=>e[t]>=0)}const OA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...i}=hr(e,t);switch(o){case"referenceHidden":{const l=await ca(t,{...i,elementContext:"reference"}),u=Mv(l,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Dv(u)}}}case"escaped":{const l=await ca(t,{...i,altBoundary:!0}),u=Mv(l,r.floating);return{data:{escapedOffsets:u,escaped:Dv(u)}}}default:return{}}}}},O0=new Set(["left","top"]);async function AA(e,t){const{placement:r,platform:o,elements:i}=e,l=await(o.isRTL==null?void 0:o.isRTL(i.floating)),u=pr(r),f=si(r),p=$n(r)==="y",g=O0.has(u)?-1:1,y=l&&p?-1:1,v=hr(t,e);let{mainAxis:E,crossAxis:k,alignmentAxis:C}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof C=="number"&&(k=f==="end"?C*-1:C),p?{x:k*y,y:E*g}:{x:E*g,y:k*y}}const MA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:l,placement:u,middlewareData:f}=t,p=await AA(t,e);return u===((r=f.offset)==null?void 0:r.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:i+p.x,y:l+p.y,data:{...p,placement:u}}}}},DA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:S=>{let{x:N,y:T}=S;return{x:N,y:T}}},...p}=hr(e,t),g={x:r,y:o},y=await ca(t,p),v=$n(pr(i)),E=Wh(v);let k=g[E],C=g[v];if(l){const S=E==="y"?"top":"left",N=E==="y"?"bottom":"right",T=k+y[S],P=k-y[N];k=rh(T,k,P)}if(u){const S=v==="y"?"top":"left",N=v==="y"?"bottom":"right",T=C+y[S],P=C-y[N];C=rh(T,C,P)}const w=f.fn({...t,[E]:k,[v]:C});return{...w,data:{x:w.x-r,y:w.y-o,enabled:{[E]:l,[v]:u}}}}}},IA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:i,rects:l,middlewareData:u}=t,{offset:f=0,mainAxis:p=!0,crossAxis:g=!0}=hr(e,t),y={x:r,y:o},v=$n(i),E=Wh(v);let k=y[E],C=y[v];const w=hr(f,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const P=E==="y"?"height":"width",_=l.reference[E]-l.floating[P]+S.mainAxis,F=l.reference[E]+l.reference[P]-S.mainAxis;k<_?k=_:k>F&&(k=F)}if(g){var N,T;const P=E==="y"?"width":"height",_=O0.has(pr(i)),F=l.reference[v]-l.floating[P]+(_&&((N=u.offset)==null?void 0:N[v])||0)+(_?0:S.crossAxis),H=l.reference[v]+l.reference[P]+(_?0:((T=u.offset)==null?void 0:T[v])||0)-(_?S.crossAxis:0);C<F?C=F:C>H&&(C=H)}return{[E]:k,[v]:C}}}},LA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:i,rects:l,platform:u,elements:f}=t,{apply:p=()=>{},...g}=hr(e,t),y=await ca(t,g),v=pr(i),E=si(i),k=$n(i)==="y",{width:C,height:w}=l.floating;let S,N;v==="top"||v==="bottom"?(S=v,N=E===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(N=v,S=E==="end"?"top":"bottom");const T=w-y.top-y.bottom,P=C-y.left-y.right,_=as(w-y[S],T),F=as(C-y[N],P),H=!t.middlewareData.shift;let $=_,W=F;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(W=P),(o=t.middlewareData.shift)!=null&&o.enabled.y&&($=T),H&&!E){const K=Gt(y.left,0),ue=Gt(y.right,0),ie=Gt(y.top,0),ne=Gt(y.bottom,0);k?W=C-2*(K!==0||ue!==0?K+ue:Gt(y.left,y.right)):$=w-2*(ie!==0||ne!==0?ie+ne:Gt(y.top,y.bottom))}await p({...t,availableWidth:W,availableHeight:$});const oe=await u.getDimensions(f.floating);return C!==oe.width||w!==oe.height?{reset:{rects:!0}}:{}}}};function zc(){return typeof window<"u"}function oi(e){return A0(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qn(e){var t;return(t=(A0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function A0(e){return zc()?e instanceof Node||e instanceof Xt(e).Node:!1}function Cn(e){return zc()?e instanceof Element||e instanceof Xt(e).Element:!1}function Vn(e){return zc()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function Iv(e){return!zc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}const FA=new Set(["inline","contents"]);function Ca(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=En(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!FA.has(i)}const BA=new Set(["table","td","th"]);function $A(e){return BA.has(oi(e))}const UA=[":popover-open",":modal"];function Wc(e){return UA.some(t=>{try{return e.matches(t)}catch{return!1}})}const zA=["transform","translate","scale","rotate","perspective"],WA=["transform","translate","scale","rotate","perspective","filter"],VA=["paint","layout","strict","content"];function qh(e){const t=Qh(),r=Cn(e)?En(e):e;return zA.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||WA.some(o=>(r.willChange||"").includes(o))||VA.some(o=>(r.contain||"").includes(o))}function HA(e){let t=ls(e);for(;Vn(t)&&!Ko(t);){if(qh(t))return t;if(Wc(t))return null;t=ls(t)}return null}function Qh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qA=new Set(["html","body","#document"]);function Ko(e){return qA.has(oi(e))}function En(e){return Xt(e).getComputedStyle(e)}function Vc(e){return Cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ls(e){if(oi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Iv(e)&&e.host||qn(e);return Iv(t)?t.host:t}function M0(e){const t=ls(e);return Ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vn(t)&&Ca(t)?t:M0(t)}function ua(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=M0(e),l=i===((o=e.ownerDocument)==null?void 0:o.body),u=Xt(i);if(l){const f=oh(u);return t.concat(u,u.visualViewport||[],Ca(i)?i:[],f&&r?ua(f):[])}return t.concat(i,ua(i,[],r))}function oh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function D0(e){const t=En(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=Vn(e),l=i?e.offsetWidth:r,u=i?e.offsetHeight:o,f=wc(r)!==l||wc(o)!==u;return f&&(r=l,o=u),{width:r,height:o,$:f}}function Kh(e){return Cn(e)?e:e.contextElement}function jo(e){const t=Kh(e);if(!Vn(t))return zn(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:l}=D0(t);let u=(l?wc(r.width):r.width)/o,f=(l?wc(r.height):r.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const QA=zn(0);function I0(e){const t=Xt(e);return!Qh()||!t.visualViewport?QA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function KA(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Xt(e)?!1:t}function Qs(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=Kh(e);let u=zn(1);t&&(o?Cn(o)&&(u=jo(o)):u=jo(e));const f=KA(l,r,o)?I0(l):zn(0);let p=(i.left+f.x)/u.x,g=(i.top+f.y)/u.y,y=i.width/u.x,v=i.height/u.y;if(l){const E=Xt(l),k=o&&Cn(o)?Xt(o):o;let C=E,w=oh(C);for(;w&&o&&k!==C;){const S=jo(w),N=w.getBoundingClientRect(),T=En(w),P=N.left+(w.clientLeft+parseFloat(T.paddingLeft))*S.x,_=N.top+(w.clientTop+parseFloat(T.paddingTop))*S.y;p*=S.x,g*=S.y,y*=S.x,v*=S.y,p+=P,g+=_,C=Xt(w),w=oh(C)}}return Sc({width:y,height:v,x:p,y:g})}function Hc(e,t){const r=Vc(e).scrollLeft;return t?t.left+r:Qs(qn(e)).left+r}function L0(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Hc(e,r),i=r.top+t.scrollTop;return{x:o,y:i}}function YA(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e;const l=i==="fixed",u=qn(o),f=t?Wc(t.floating):!1;if(o===u||f&&l)return r;let p={scrollLeft:0,scrollTop:0},g=zn(1);const y=zn(0),v=Vn(o);if((v||!v&&!l)&&((oi(o)!=="body"||Ca(u))&&(p=Vc(o)),Vn(o))){const k=Qs(o);g=jo(o),y.x=k.x+o.clientLeft,y.y=k.y+o.clientTop}const E=u&&!v&&!l?L0(u,p):zn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+E.x,y:r.y*g.y-p.scrollTop*g.y+y.y+E.y}}function GA(e){return Array.from(e.getClientRects())}function XA(e){const t=qn(e),r=Vc(e),o=e.ownerDocument.body,i=Gt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=Gt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let u=-r.scrollLeft+Hc(e);const f=-r.scrollTop;return En(o).direction==="rtl"&&(u+=Gt(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:u,y:f}}const Lv=25;function JA(e,t){const r=Xt(e),o=qn(e),i=r.visualViewport;let l=o.clientWidth,u=o.clientHeight,f=0,p=0;if(i){l=i.width,u=i.height;const y=Qh();(!y||y&&t==="fixed")&&(f=i.offsetLeft,p=i.offsetTop)}const g=Hc(o);if(g<=0){const y=o.ownerDocument,v=y.body,E=getComputedStyle(v),k=y.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,C=Math.abs(o.clientWidth-v.clientWidth-k);C<=Lv&&(l-=C)}else g<=Lv&&(l+=g);return{width:l,height:u,x:f,y:p}}const ZA=new Set(["absolute","fixed"]);function e2(e,t){const r=Qs(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,l=Vn(e)?jo(e):zn(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,p=i*l.x,g=o*l.y;return{width:u,height:f,x:p,y:g}}function Fv(e,t,r){let o;if(t==="viewport")o=JA(e,r);else if(t==="document")o=XA(qn(e));else if(Cn(t))o=e2(t,r);else{const i=I0(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Sc(o)}function F0(e,t){const r=ls(e);return r===t||!Cn(r)||Ko(r)?!1:En(r).position==="fixed"||F0(r,t)}function t2(e,t){const r=t.get(e);if(r)return r;let o=ua(e,[],!1).filter(f=>Cn(f)&&oi(f)!=="body"),i=null;const l=En(e).position==="fixed";let u=l?ls(e):e;for(;Cn(u)&&!Ko(u);){const f=En(u),p=qh(u);!p&&f.position==="fixed"&&(i=null),(l?!p&&!i:!p&&f.position==="static"&&!!i&&ZA.has(i.position)||Ca(u)&&!p&&F0(e,u))?o=o.filter(y=>y!==u):i=f,u=ls(u)}return t.set(e,o),o}function n2(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const u=[...r==="clippingAncestors"?Wc(t)?[]:t2(t,this._c):[].concat(r),o],f=u[0],p=u.reduce((g,y)=>{const v=Fv(t,y,i);return g.top=Gt(v.top,g.top),g.right=as(v.right,g.right),g.bottom=as(v.bottom,g.bottom),g.left=Gt(v.left,g.left),g},Fv(t,f,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function r2(e){const{width:t,height:r}=D0(e);return{width:t,height:r}}function s2(e,t,r){const o=Vn(t),i=qn(t),l=r==="fixed",u=Qs(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const p=zn(0);function g(){p.x=Hc(i)}if(o||!o&&!l)if((oi(t)!=="body"||Ca(i))&&(f=Vc(t)),o){const k=Qs(t,!0,l,t);p.x=k.x+t.clientLeft,p.y=k.y+t.clientTop}else i&&g();l&&!o&&i&&g();const y=i&&!o&&!l?L0(i,f):zn(0),v=u.left+f.scrollLeft-p.x-y.x,E=u.top+f.scrollTop-p.y-y.y;return{x:v,y:E,width:u.width,height:u.height}}function gf(e){return En(e).position==="static"}function Bv(e,t){if(!Vn(e)||En(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return qn(e)===r&&(r=r.ownerDocument.body),r}function B0(e,t){const r=Xt(e);if(Wc(e))return r;if(!Vn(e)){let i=ls(e);for(;i&&!Ko(i);){if(Cn(i)&&!gf(i))return i;i=ls(i)}return r}let o=Bv(e,t);for(;o&&$A(o)&&gf(o);)o=Bv(o,t);return o&&Ko(o)&&gf(o)&&!qh(o)?r:o||HA(e)||r}const o2=async function(e){const t=this.getOffsetParent||B0,r=this.getDimensions,o=await r(e.floating);return{reference:s2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function i2(e){return En(e).direction==="rtl"}const a2={convertOffsetParentRelativeRectToViewportRelativeRect:YA,getDocumentElement:qn,getClippingRect:n2,getOffsetParent:B0,getElementRects:o2,getClientRects:GA,getDimensions:r2,getScale:jo,isElement:Cn,isRTL:i2};function $0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function l2(e,t){let r=null,o;const i=qn(e);function l(){var f;clearTimeout(o),(f=r)==null||f.disconnect(),r=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),l();const g=e.getBoundingClientRect(),{left:y,top:v,width:E,height:k}=g;if(f||t(),!E||!k)return;const C=Wl(v),w=Wl(i.clientWidth-(y+E)),S=Wl(i.clientHeight-(v+k)),N=Wl(y),P={rootMargin:-C+"px "+-w+"px "+-S+"px "+-N+"px",threshold:Gt(0,as(1,p))||1};let _=!0;function F(H){const $=H[0].intersectionRatio;if($!==p){if(!_)return u();$?u(!1,$):o=setTimeout(()=>{u(!1,1e-7)},1e3)}$===1&&!$0(g,e.getBoundingClientRect())&&u(),_=!1}try{r=new IntersectionObserver(F,{...P,root:i.ownerDocument})}catch{r=new IntersectionObserver(F,P)}r.observe(e)}return u(!0),l}function c2(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,g=Kh(e),y=i||l?[...g?ua(g):[],...ua(t)]:[];y.forEach(N=>{i&&N.addEventListener("scroll",r,{passive:!0}),l&&N.addEventListener("resize",r)});const v=g&&f?l2(g,r):null;let E=-1,k=null;u&&(k=new ResizeObserver(N=>{let[T]=N;T&&T.target===g&&k&&(k.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var P;(P=k)==null||P.observe(t)})),r()}),g&&!p&&k.observe(g),k.observe(t));let C,w=p?Qs(e):null;p&&S();function S(){const N=Qs(e);w&&!$0(w,N)&&r(),w=N,C=requestAnimationFrame(S)}return r(),()=>{var N;y.forEach(T=>{i&&T.removeEventListener("scroll",r),l&&T.removeEventListener("resize",r)}),v==null||v(),(N=k)==null||N.disconnect(),k=null,p&&cancelAnimationFrame(C)}}const u2=MA,d2=DA,f2=jA,h2=LA,p2=OA,$v=TA,m2=IA,g2=(e,t,r)=>{const o=new Map,i={platform:a2,...r},l={...i.platform,_c:o};return RA(e,t,{...i,platform:l})};var y2=typeof document<"u",v2=function(){},ac=y2?x.useLayoutEffect:v2;function Cc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Cc(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){const l=i[o];if(!(l==="_owner"&&e.$$typeof)&&!Cc(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function U0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uv(e,t){const r=U0(e);return Math.round(t*r)/r}function yf(e){const t=x.useRef(e);return ac(()=>{t.current=e}),t}function x2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:p,open:g}=e,[y,v]=x.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[E,k]=x.useState(o);Cc(E,o)||k(o);const[C,w]=x.useState(null),[S,N]=x.useState(null),T=x.useCallback(D=>{D!==H.current&&(H.current=D,w(D))},[]),P=x.useCallback(D=>{D!==$.current&&($.current=D,N(D))},[]),_=l||C,F=u||S,H=x.useRef(null),$=x.useRef(null),W=x.useRef(y),oe=p!=null,K=yf(p),ue=yf(i),ie=yf(g),ne=x.useCallback(()=>{if(!H.current||!$.current)return;const D={placement:t,strategy:r,middleware:E};ue.current&&(D.platform=ue.current),g2(H.current,$.current,D).then(ee=>{const J={...ee,isPositioned:ie.current!==!1};ae.current&&!Cc(W.current,J)&&(W.current=J,ga.flushSync(()=>{v(J)}))})},[E,t,r,ue,ie]);ac(()=>{g===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,v(D=>({...D,isPositioned:!1})))},[g]);const ae=x.useRef(!1);ac(()=>(ae.current=!0,()=>{ae.current=!1}),[]),ac(()=>{if(_&&(H.current=_),F&&($.current=F),_&&F){if(K.current)return K.current(_,F,ne);ne()}},[_,F,ne,K,oe]);const xe=x.useMemo(()=>({reference:H,floating:$,setReference:T,setFloating:P}),[T,P]),G=x.useMemo(()=>({reference:_,floating:F}),[_,F]),re=x.useMemo(()=>{const D={position:r,left:0,top:0};if(!G.floating)return D;const ee=Uv(G.floating,y.x),J=Uv(G.floating,y.y);return f?{...D,transform:"translate("+ee+"px, "+J+"px)",...U0(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ee,top:J}},[r,f,G.floating,y.x,y.y]);return x.useMemo(()=>({...y,update:ne,refs:xe,elements:G,floatingStyles:re}),[y,ne,xe,G,re])}const w2=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:i}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?$v({element:o.current,padding:i}).fn(r):{}:o?$v({element:o,padding:i}).fn(r):{}}}},b2=(e,t)=>({...u2(e),options:[e,t]}),S2=(e,t)=>({...d2(e),options:[e,t]}),C2=(e,t)=>({...m2(e),options:[e,t]}),E2=(e,t)=>({...f2(e),options:[e,t]}),N2=(e,t)=>({...h2(e),options:[e,t]}),k2=(e,t)=>({...p2(e),options:[e,t]}),P2=(e,t)=>({...w2(e),options:[e,t]});var _2="Arrow",z0=x.forwardRef((e,t)=>{const{children:r,width:o=10,height:i=5,...l}=e;return d.jsx(je.svg,{...l,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});z0.displayName=_2;var R2=z0,Yh="Popper",[W0,qc]=Hn(Yh),[T2,V0]=W0(Yh),H0=e=>{const{__scopePopper:t,children:r}=e,[o,i]=x.useState(null);return d.jsx(T2,{scope:t,anchor:o,onAnchorChange:i,children:r})};H0.displayName=Yh;var q0="PopperAnchor",Q0=x.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...i}=e,l=V0(q0,r),u=x.useRef(null),f=ze(t,u),p=x.useRef(null);return x.useEffect(()=>{const g=p.current;p.current=(o==null?void 0:o.current)||u.current,g!==p.current&&l.onAnchorChange(p.current)}),o?null:d.jsx(je.div,{...i,ref:f})});Q0.displayName=q0;var Gh="PopperContent",[j2,O2]=W0(Gh),K0=x.forwardRef((e,t)=>{var X,ge,I,te,Ee,Ae;const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:l="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:E=!1,updatePositionStrategy:k="optimized",onPlaced:C,...w}=e,S=V0(Gh,r),[N,T]=x.useState(null),P=ze(t,ht=>T(ht)),[_,F]=x.useState(null),H=Lh(_),$=(H==null?void 0:H.width)??0,W=(H==null?void 0:H.height)??0,oe=o+(l!=="center"?"-"+l:""),K=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ue=Array.isArray(g)?g:[g],ie=ue.length>0,ne={padding:K,boundary:ue.filter(M2),altBoundary:ie},{refs:ae,floatingStyles:xe,placement:G,isPositioned:re,middlewareData:D}=x2({strategy:"fixed",placement:oe,whileElementsMounted:(...ht)=>c2(...ht,{animationFrame:k==="always"}),elements:{reference:S.anchor},middleware:[b2({mainAxis:i+W,alignmentAxis:u}),p&&S2({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?C2():void 0,...ne}),p&&E2({...ne}),N2({...ne,apply:({elements:ht,rects:Dt,availableWidth:gr,availableHeight:yr})=>{const{width:Qn,height:Na}=Dt.reference,vr=ht.floating.style;vr.setProperty("--radix-popper-available-width",`${gr}px`),vr.setProperty("--radix-popper-available-height",`${yr}px`),vr.setProperty("--radix-popper-anchor-width",`${Qn}px`),vr.setProperty("--radix-popper-anchor-height",`${Na}px`)}}),_&&P2({element:_,padding:f}),D2({arrowWidth:$,arrowHeight:W}),E&&k2({strategy:"referenceHidden",...ne})]}),[ee,J]=X0(G),A=is(C);Pt(()=>{re&&(A==null||A())},[re,A]);const V=(X=D.arrow)==null?void 0:X.x,de=(ge=D.arrow)==null?void 0:ge.y,ce=((I=D.arrow)==null?void 0:I.centerOffset)!==0,[Ne,Pe]=x.useState();return Pt(()=>{N&&Pe(window.getComputedStyle(N).zIndex)},[N]),d.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...xe,transform:re?xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(te=D.transformOrigin)==null?void 0:te.x,(Ee=D.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ae=D.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(j2,{scope:r,placedSide:ee,onArrowChange:F,arrowX:V,arrowY:de,shouldHideArrow:ce,children:d.jsx(je.div,{"data-side":ee,"data-align":J,...w,ref:P,style:{...w.style,animation:re?void 0:"none"}})})})});K0.displayName=Gh;var Y0="PopperArrow",A2={top:"bottom",right:"left",bottom:"top",left:"right"},G0=x.forwardRef(function(t,r){const{__scopePopper:o,...i}=t,l=O2(Y0,o),u=A2[l.placedSide];return d.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:d.jsx(R2,{...i,ref:r,style:{...i.style,display:"block"}})})});G0.displayName=Y0;function M2(e){return e!==null}var D2=e=>({name:"transformOrigin",options:e,fn(t){var S,N,T;const{placement:r,rects:o,middlewareData:i}=t,u=((S=i.arrow)==null?void 0:S.centerOffset)!==0,f=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[g,y]=X0(r),v={start:"0%",center:"50%",end:"100%"}[y],E=(((N=i.arrow)==null?void 0:N.x)??0)+f/2,k=(((T=i.arrow)==null?void 0:T.y)??0)+p/2;let C="",w="";return g==="bottom"?(C=u?v:`${E}px`,w=`${-p}px`):g==="top"?(C=u?v:`${E}px`,w=`${o.floating.height+p}px`):g==="right"?(C=`${-p}px`,w=u?v:`${k}
172px`):g==="left"&&(C=`${o.floating.width+p}px`,w=u?v:`${k}px`),{data:{x:C,y:w}}}});function X0(e){const[t,r="center"]=e.split("-");return[t,r]}var J0=H0,Xh=Q0,Z0=K0,eb=G0,I2="Portal",Qc=x.forwardRef((e,t)=>{var f;const{container:r,...o}=e,[i,l]=x.useState(!1);Pt(()=>l(!0),[]);const u=r||i&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?uk.createPortal(d.jsx(je.div,{...o,ref:t}),u):null});Qc.displayName=I2;var tb=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),L2="VisuallyHidden",F2=x.forwardRef((e,t)=>d.jsx(je.span,{...e,ref:t,style:{...tb,...e.style}}));F2.displayName=L2;var B2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Po=new WeakMap,Vl=new WeakMap,Hl={},vf=0,nb=function(e){return e&&(e.host||nb(e.parentNode))},$2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=nb(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},U2=function(e,t,r,o){var i=$2(t,Array.isArray(e)?e:[e]);Hl[r]||(Hl[r]=new WeakMap);var l=Hl[r],u=[],f=new Set,p=new Set(i),g=function(v){!v||f.has(v)||(f.add(v),g(v.parentNode))};i.forEach(g);var y=function(v){!v||p.has(v)||Array.prototype.forEach.call(v.children,function(E){if(f.has(E))y(E);else try{var k=E.getAttribute(o),C=k!==null&&k!=="false",w=(Po.get(E)||0)+1,S=(l.get(E)||0)+1;Po.set(E,w),l.set(E,S),u.push(E),w===1&&C&&Vl.set(E,!0),S===1&&E.setAttribute(r,"true"),C||E.setAttribute(o,"true")}catch(N){console.error("aria-hidden: cannot operate on ",E,N)}})};return y(t),f.clear(),vf++,function(){u.forEach(function(v){var E=Po.get(v)-1,k=l.get(v)-1;Po.set(v,E),l.set(v,k),E||(Vl.has(v)||v.removeAttribute(o),Vl.delete(v)),k||v.removeAttribute(r)}),vf--,vf||(Po=new WeakMap,Po=new WeakMap,Vl=new WeakMap,Hl={})}},Jh=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=B2(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),U2(o,i,r,"aria-hidden")):function(){return null}},Bn=function(){return Bn=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Bn.apply(this,arguments)};function rb(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r}function z2(e,t,r){if(r||arguments.length===2)for(var o=0,i=t.length,l;o<i;o++)(l||!(o in t))&&(l||(l=Array.prototype.slice.call(t,0,o)),l[o]=t[o]);return e.concat(l||Array.prototype.slice.call(t))}var lc="right-scroll-bar-position",cc="width-before-scroll-bar",W2="with-scroll-bars-hidden",V2="--removed-body-scroll-bar-size";function xf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function H2(e,t){var r=x.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var i=r.value;i!==o&&(r.value=o,r.callback(o,i))}}}})[0];return r.callback=t,r.facade}var q2=typeof window<"u"?x.useLayoutEffect:x.useEffect,zv=new WeakMap;function Q2(e,t){var r=H2(null,function(o){return e.forEach(function(i){return xf(i,o)})});return q2(function(){var o=zv.get(r);if(o){var i=new Set(o),l=new Set(e),u=r.current;
vendor: 4,196 bytes, lines 172-187
172i.forEach(function(f){l.has(f)||xf(f,null)}),l.forEach(function(f){i.has(f)||xf(f,u)})}zv.set(r,e)},[e]),r}function K2(e){return e}function Y2(e,t){t===void 0&&(t=K2);var r=[],o=!1,i={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var u=t(l,o);return r.push(u),function(){r=r.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(o=!0;r.length;){var u=r;r=[],u.forEach(l)}r={push:function(f){return l(f)},filter:function(){return r}}},assignMedium:function(l){o=!0;var u=[];if(r.length){var f=r;r=[],f.forEach(l),u=r}var p=function(){var y=u;u=[],y.forEach(l)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){u.push(y),g()},filter:function(y){return u=u.filter(y),r}}}};return i}function G2(e){e===void 0&&(e={});var t=Y2(null);return t.options=Bn({async:!0,ssr:!1},e),t}var sb=function(e){var t=e.sideCar,r=rb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return x.createElement(o,Bn({},r))};sb.isSideCarExport=!0;function X2(e,t){return e.useMedium(t),sb}var ob=G2(),wf=function(){},Kc=x.forwardRef(function(e,t){var r=x.useRef(null),o=x.useState({onScrollCapture:wf,onWheelCapture:wf,onTouchMoveCapture:wf}),i=o[0],l=o[1],u=e.forwardProps,f=e.children,p=e.className,g=e.removeScrollBar,y=e.enabled,v=e.shards,E=e.sideCar,k=e.noRelative,C=e.noIsolation,w=e.inert,S=e.allowPinchZoom,N=e.as,T=N===void 0?"div":N,P=e.gapMode,_=rb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=E,H=Q2([r,t]),$=Bn(Bn({},_),i);return x.createElement(x.Fragment,null,y&&x.createElement(F,{sideCar:ob,removeScrollBar:g,shards:v,noRelative:k,noIsolation:C,inert:w,setCallbacks:l,allowPinchZoom:!!S,lockRef:r,gapMode:P}),u?x.cloneElement(x.Children.only(f),Bn(Bn({},$),{ref:H})):x.createElement(T,Bn({},$,{className:p,ref:H}),f))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kc.classNames={fullWidth:cc,zeroRight:lc};var J2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Z2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=J2();return t&&e.setAttribute("nonce",t),e}function eM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Z2())&&(eM(t,r),tM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rM=function(){var e=nM();return function(t,r){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ib=function(){var e=rM(),t=function(r){var o=r.styles,i=r.dynamic;return e(o,i),null};return t},sM={left:0,top:0,right:0,gap:0},bf=function(e){return parseInt(e||"",10)||0},oM=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[bf(r),bf(o),bf(i)]},iM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sM;var t=oM(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},aM=ib(),Oo="data-scroll-locked",lM=function(e,t,r,o){var i=e.left,l=e.top,u=e.right,f=e.gap;return r===void 0&&(r="margin"),` 173 .`.concat(W2,` { 174 overflow: hidden `).concat(o,`; 175 padding-right: `).concat(f,"px ").concat(o,`; 176 } 177 body[`).concat(Oo,`] { 178 overflow: hidden `).concat(o,`; 179 overscroll-behavior: contain; 180 `).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&` 181 padding-left: `.concat(i,`px; 182 padding-top: `).concat(l,`px; 183 padding-right: `).concat(u,`px; 184 margin-left:0; 185 margin-top:0; 186 margin-right: `).concat(f,"px ").concat(o,`; 187 `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";
187")].filter(Boolean).join(""),` 188 } 189 190 .`).concat(lc,` { 191 right: `).concat(f,"px ").concat(o,`; 192 } 193 194 .`).concat(cc,` { 195 margin-right: `).concat(f,"px ").concat(o,`; 196 } 197 198 .`).concat(lc," .").concat(lc,` { 199 right: 0 `).concat(o,`; 200 } 201 202 .`).concat(cc," .").concat(cc,` { 203 margin-right: 0 `).concat(o,`; 204 } 205 206 body[`).concat(Oo,`] { 207 `).concat(V2,": ").concat(f,`px; 208 } 209`)},Wv=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},cM=function(){x.useEffect(function(){return document.body.setAttribute(Oo,(Wv()+1).toString()),function(){var e=Wv()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},uM=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,i=o===void 0?"margin":o;cM();var l=x.useMemo(function(){return iM(i)},[i]);return x.createElement(aM,{styles:lM(l,!t,i,r?"":"!important")})},ih=!1;if(typeof window<"u")try{var ql=Object.defineProperty({},"passive",{get:function(){return ih=!0,!0}});window.addEventListener("test",ql,ql),window.removeEventListener("test",ql,ql)}catch{ih=!1}var _o=ih?{passive:!1}:!1,dM=function(e){return e.tagName==="TEXTAREA"},ab=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!dM(e)&&r[t]==="visible")},fM=function(e){return ab(e,"overflowY")},hM=function(e){return ab(e,"overflowX")},Vv=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=lb(e,o);if(i){var l=cb(e,o),u=l[1],f=l[2];if(u>f)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},pM=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},mM=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},lb=function(e,t){return e==="v"?fM(t):hM(t)},cb=function(e,t){return e==="v"?pM(t):mM(t)},gM=function(e,t){return e==="h"&&t==="rtl"?-1:1},yM=function(e,t,r,o,i){var l=gM(e,window.getComputedStyle(t).direction),u=l*o,f=r.target,p=t.contains(f),g=!1,y=u>0,v=0,E=0;do{if(!f)break;var k=cb(e,f),C=k[0],w=k[1],S=k[2],N=w-S-l*C;(C||N)&&lb(e,f)&&(v+=N,E+=C);var T=f.parentNode;f=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!p&&f!==document.body||p&&(t.contains(f)||t===f));return(y&&Math.abs(v)<1||!y&&Math.abs(E)<1)&&(g=!0),g},Ql=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hv=function(e){return[e.deltaX,e.deltaY]},qv=function(e){return e&&"current"in e?e.current:e},vM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xM=function(e){return` 210 .block-interactivity-`.concat(e,` {pointer-events: none;} 211 .allow-interactivity-`).concat(e,` {pointer-events: all;} 212`)},wM=0,Ro=[];function bM(e){var t=x.useRef([]),r=x.useRef([0,0]),o=x.useRef(),i=x.useState(wM++)[0],l=x.useState(ib)[0],u=x.useRef(e);x.useEffect(function(){u.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=z2([e.lockRef.current],(e.shards||[]).map(qv),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEac
vendor: 4,162 bytes, line 212
212h(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var N=Ql(w),T=r.current,P="deltaX"in w?w.deltaX:T[0]-N[0],_="deltaY"in w?w.deltaY:T[1]-N[1],F,H=w.target,$=Math.abs(P)>Math.abs(_)?"h":"v";if("touches"in w&&$==="h"&&H.type==="range")return!1;var W=Vv($,H);if(!W)return!0;if(W?F=$:(F=$==="v"?"h":"v",W=Vv($,H)),!W)return!1;if(!o.current&&"changedTouches"in w&&(P||_)&&(o.current=F),!F)return!0;var oe=o.current||F;return yM(oe,S,w,oe==="h"?P:_)},[]),p=x.useCallback(function(w){var S=w;if(!(!Ro.length||Ro[Ro.length-1]!==l)){var N="deltaY"in S?Hv(S):Ql(S),T=t.current.filter(function(F){return F.name===S.type&&(F.target===S.target||S.target===F.shadowParent)&&vM(F.delta,N)})[0];if(T&&T.should){S.cancelable&&S.preventDefault();return}if(!T){var P=(u.current.shards||[]).map(qv).filter(Boolean).filter(function(F){return F.contains(S.target)}),_=P.length>0?f(S,P[0]):!u.current.noIsolation;_&&S.cancelable&&S.preventDefault()}}},[]),g=x.useCallback(function(w,S,N,T){var P={name:w,delta:S,target:N,should:T,shadowParent:SM(N)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(_){return _!==P})},1)},[]),y=x.useCallback(function(w){r.current=Ql(w),o.current=void 0},[]),v=x.useCallback(function(w){g(w.type,Hv(w),w.target,f(w,e.lockRef.current))},[]),E=x.useCallback(function(w){g(w.type,Ql(w),w.target,f(w,e.lockRef.current))},[]);x.useEffect(function(){return Ro.push(l),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:E}),document.addEventListener("wheel",p,_o),document.addEventListener("touchmove",p,_o),document.addEventListener("touchstart",y,_o),function(){Ro=Ro.filter(function(w){return w!==l}),document.removeEventListener("wheel",p,_o),document.removeEventListener("touchmove",p,_o),document.removeEventListener("touchstart",y,_o)}},[]);var k=e.removeScrollBar,C=e.inert;return x.createElement(x.Fragment,null,C?x.createElement(l,{styles:xM(i)}):null,k?x.createElement(uM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function SM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CM=X2(ob,bM);var Yc=x.forwardRef(function(e,t){return x.createElement(Kc,Bn({},e,{ref:t,sideCar:CM}))});Yc.classNames=Kc.classNames;var EM=[" ","Enter","ArrowUp","ArrowDown"],NM=[" ","Enter"],Ks="Select",[Gc,Xc,kM]=Yw(Ks),[ii]=Hn(Ks,[kM,qc]),Jc=qc(),[PM,us]=ii(Ks),[_M,RM]=ii(Ks),ub=e=>{const{__scopeSelect:t,children:r,open:o,defaultOpen:i,onOpenChange:l,value:u,defaultValue:f,onValueChange:p,dir:g,name:y,autoComplete:v,disabled:E,required:k,form:C}=e,w=Jc(t),[S,N]=x.useState(null),[T,P]=x.useState(null),[_,F]=x.useState(!1),H=Fh(g),[$,W]=os({prop:o,defaultProp:i??!1,onChange:l,caller:Ks}),[oe,K]=os({prop:u,defaultProp:f,onChange:p,caller:Ks}),ue=x.useRef(null),ie=S?C||!!S.closest("form"):!0,[ne,ae]=x.useState(new Set),xe=Array.from(ne).map(G=>G.props.value).join(";");return d.jsx(J0,{...w,children:d.jsxs(PM,{required:k,scope:t,trigger:S,onTriggerChange:N,valueNode:T,onValueNodeChange:P,valueNodeHasChildren:_,onValueNodeHasChildrenChange:F,contentId:dr(),value:oe,onValueChange:K,open:$,onOpenChange:W,dir:H,triggerPointerDownPosRef:ue,disabled:E,children:[d.jsx(Gc.Provider,{scope:t,children:d.jsx(_M,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(G=>{ae(re=>new Set(re).add(G))},[]),onNativeOptionRemove:x.useCallback(G=>{ae(re=>{const D=new Set(re);return D.delete(G),D})},[]),children:r})}),ie?d.jsxs(Mb,{"aria-hidden":!0,required:k,tabIndex:-1,name:y,autoComplete:v,value:oe,onChange:G=>K(G.target.value),disabled:E,form:C,children:[oe===void 0?d.jsx("option",{value:""}):null,Array.from(ne)]},xe):null]})})};ub.displayName=Ks;var db="SelectTrigger",fb=x.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:o=!1,...i}=e,l=Jc(r),u=us(db,r),f=u.disabled||o,p=ze(t,u.onTriggerChange),g=Xc(r),y=x.useRef("touch"),[v,E,k]=Ib(w=>{const S=g().filter(P=>!P.disabled),N=S.find(P=>P.value===u.value),T=Lb(S,w,N);T!==void 0&&u.onValueChange(T.value)}
vendor: 16,308 bytes, line 212
212),C=w=>{f||(u.onOpenChange(!0),k()),w&&(u.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return d.jsx(Xh,{asChild:!0,...l,children:d.jsx(je.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":Db(u.value)?"":void 0,...i,ref:p,onClick:_e(i.onClick,w=>{w.currentTarget.focus(),y.current!=="mouse"&&C(w)}),onPointerDown:_e(i.onPointerDown,w=>{y.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(C(w),w.preventDefault())}),onKeyDown:_e(i.onKeyDown,w=>{const S=v.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&E(w.key),!(S&&w.key===" ")&&EM.includes(w.key)&&(C(),w.preventDefault())})})})});fb.displayName=db;var hb="SelectValue",pb=x.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:i,children:l,placeholder:u="",...f}=e,p=us(hb,r),{onValueNodeHasChildrenChange:g}=p,y=l!==void 0,v=ze(t,p.onValueNodeChange);return Pt(()=>{g(y)},[g,y]),d.jsx(je.span,{...f,ref:v,style:{pointerEvents:"none"},children:Db(p.value)?d.jsx(d.Fragment,{children:u}):l})});pb.displayName=hb;var TM="SelectIcon",mb=x.forwardRef((e,t)=>{const{__scopeSelect:r,children:o,...i}=e;return d.jsx(je.span,{"aria-hidden":!0,...i,ref:t,children:o||"â¼"})});mb.displayName=TM;var jM="SelectPortal",gb=e=>d.jsx(Qc,{asChild:!0,...e});gb.displayName=jM;var Ys="SelectContent",yb=x.forwardRef((e,t)=>{const r=us(Ys,e.__scopeSelect),[o,i]=x.useState();if(Pt(()=>{i(new DocumentFragment)},[]),!r.open){const l=o;return l?ga.createPortal(d.jsx(vb,{scope:e.__scopeSelect,children:d.jsx(Gc.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),l):null}return d.jsx(xb,{...e,ref:t})});yb.displayName=Ys;var mn=10,[vb,ds]=ii(Ys),OM="SelectContentImpl",AM=Hs("SelectContent.RemoveScroll"),xb=x.forwardRef((e,t)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:f,sideOffset:p,align:g,alignOffset:y,arrowPadding:v,collisionBoundary:E,collisionPadding:k,sticky:C,hideWhenDetached:w,avoidCollisions:S,...N}=e,T=us(Ys,r),[P,_]=x.useState(null),[F,H]=x.useState(null),$=ze(t,X=>_(X)),[W,oe]=x.useState(null),[K,ue]=x.useState(null),ie=Xc(r),[ne,ae]=x.useState(!1),xe=x.useRef(!1);x.useEffect(()=>{if(P)return Jh(P)},[P]),zh();const G=x.useCallback(X=>{const[ge,...I]=ie().map(Ae=>Ae.ref.current),[te]=I.slice(-1),Ee=document.activeElement;for(const Ae of X)if(Ae===Ee||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===ge&&F&&(F.scrollTop=0),Ae===te&&F&&(F.scrollTop=F.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==Ee))return},[ie,F]),re=x.useCallback(()=>G([W,P]),[G,W,P]);x.useEffect(()=>{ne&&re()},[ne,re]);const{onOpenChange:D,triggerPointerDownPosRef:ee}=T;x.useEffect(()=>{if(P){let X={x:0,y:0};const ge=te=>{var Ee,Ae;X={x:Math.abs(Math.round(te.pageX)-(((Ee=ee.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(te.pageY)-(((Ae=ee.current)==null?void 0:Ae.y)??0))}},I=te=>{X.x<=10&&X.y<=10?te.preventDefault():P.contains(te.target)||D(!1),document.removeEventListener("pointermove",ge),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",I,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",I,{capture:!0})}}},[P,D,ee]),x.useEffect(()=>{const X=()=>D(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[D]);const[J,A]=Ib(X=>{const ge=ie().filter(Ee=>!Ee.disabled),I=ge.find(Ee=>Ee.ref.current===document.activeElement),te=Lb(ge,X,I);te&&setTimeout(()=>te.ref.current.focus())}),V=x.useCallback((X,ge,I)=>{const te=!xe.current&&!I;(T.value!==void 0&&T.value===ge||te)&&(oe(X),te&&(xe.current=!0))},[T.value]),de=x.useCallback(()=>P==null?void 0:P.focus(),[P]),ce=x.useCallback((X,ge,I)=>{const te=!xe.current&&!I;(T.value!==void 0&&T.value===ge||te)&&ue(X)},[T.value]),Ne=o==="popper"?ah:wb,Pe=Ne===ah?{side:f,sideOffset:p,align:g,alignOffset:y,arrowPadding:v,collisionBoundary:E,collisionPadding:k,sticky:C,hideWhenDetached:w,avoidCollisions:S}:{};return d.jsx(vb,{scope:r,content:P,viewport:F,onViewportChange:H,itemRefCallback:V,selectedItem:W,onItemLeave:de,itemTextRefCallback:ce,focusSelectedItem:re,selectedItemText:K,position:o,isPositioned:ne,searchRef:J,children:d.jsx(Yc,{as:AM,allowPinchZoom:!0,children:d.jsx(Uc,{asChild:!0,trapped:T.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:_e(i,X=>{var ge;(ge=T.trigger)==null||ge.focus({preventScroll:!0}),X.preventDefault()}),children:d.jsx($c,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:d.jsx(Ne,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:X=>X.preventDefault(),...N,...Pe,onPlaced:()=>ae(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:_e(N.onKeyDown,X=>{const ge=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ge&&X.key.length===1&&A(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let te=ie().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(X.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const Ee=X.target,Ae=te.indexOf(Ee);te=te.slice(Ae+1)}setTimeout(()=>G(te)),X.preventDefault()}})})})})})})});xb.displayName=OM;var MM="SelectItemAlignedPosition",wb=x.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:o,...i}=e,l=us(Ys,r),u=ds(Ys,r),[f,p]=x.useState(null),[g,y]=x.useState(null),v=ze(t,$=>y($)),E=Xc(r),k=x.useRef(!1),C=x.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:N,focusSelectedItem:T}=u,P=x.useCallback(()=>{if(l.trigger&&l.valueNode&&f&&g&&w&&S&&N){const $=l.trigger.getBoundingClientRect(),W=g.getBoundingClientRect(),oe=l.valueNode.getBoundingClientRect(),K=N.getBoundingClientRect();if(l.dir!=="rtl"){const Ee=K.left-W.left,Ae=oe.left-Ee,ht=$.left-Ae,Dt=$.width+ht,gr=Math.max(Dt,W.width),yr=window.innerWidth-mn,Qn=Cv(Ae,[mn,Math.max(mn,yr-gr)]);f.style.minWidth=Dt+"px",f.style.left=Qn+"px"}else{const Ee=W.right-K.right,Ae=window.innerWidth-oe.right-Ee,ht=window.innerWidth-$.right-Ae,Dt=$.width+ht,gr=Math.max(Dt,W.width),yr=window.innerWidth-mn,Qn=Cv(Ae,[mn,Math.max(mn,yr-gr)]);f.style.minWidth=Dt+"px",f.style.right=Qn+"px"}const ue=E(),ie=window.innerHeight-mn*2,ne=w.scrollHeight,ae=window.getComputedStyle(g),xe=parseInt(ae.borderTopWidth,10),G=parseInt(ae.paddingTop,10),re=parseInt(ae.borderBottomWidth,10),D=parseInt(ae.paddingBottom,10),ee=xe+G+ne+D+re,J=Math.min(S.offsetHeight*5,ee),A=window.getComputedStyle(w),V=parseInt(A.paddingTop,10),de=parseInt(A.paddingBottom,10),ce=$.top+$.height/2-mn,Ne=ie-ce,Pe=S.offsetHeight/2,X=S.offsetTop+Pe,ge=xe+G+X,I=ee-ge;if(ge<=ce){const Ee=ue.length>0&&S===ue[ue.length-1].ref.current;f.style.bottom="0px";const Ae=g.clientHeight-w.offsetTop-w.offsetHeight,ht=Math.max(Ne,Pe+(Ee?de:0)+Ae+re),Dt=ge+ht;f.style.height=Dt+"px"}else{const Ee=ue.length>0&&S===ue[0].ref.current;f.style.top="0px";const ht=Math.max(ce,xe+w.offsetTop+(Ee?V:0)+Pe)+I;f.style.height=ht+"px",w.scrollTop=ge-ce+w.offsetTop}f.style.margin=`${mn}px 0`,f.style.minHeight=J+"px",f.style.maxHeight=ie+"px",o==null||o(),requestAnimationFrame(()=>k.current=!0)}},[E,l.trigger,l.valueNode,f,g,w,S,N,l.dir,o]);Pt(()=>P(),[P]);const[_,F]=x.useState();Pt(()=>{g&&F(window.getComputedStyle(g).zIndex)},[g]);const H=x.useCallback($=>{$&&C.current===!0&&(P(),T==null||T(),C.current=!1)},[P,T]);return d.jsx(IM,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:k,onScrollButtonChange:H,children:d.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:d.jsx(je.div,{...i,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});wb.displayName=MM;var DM="SelectPopperPosition",ah=x.forwardRef((e,t)=>{const{__scopeSelect:r,align:o="start",collisionPadding:i=mn,...l}=e,u=Jc(r);return d.jsx(Z0,{...u,...l,ref:t,align:o,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ah.displayName=DM;var[IM,Zh]=ii(Ys,{}),lh="SelectViewport",bb=x.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:o,...i}=e,l=ds(lh,r),u=Zh(lh,r),f=ze(t,l.onViewportChange),p=x.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(Gc.Slot,{scope:r,children:d.jsx(je.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:_e(i.onScroll,g=>{const y=g.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:E}=u;if(E!=null&&E.current&&v){const k=Math.abs(p.current-y.scrollTop);if(k>0){const C=window.innerHeight-mn*2,w=parseFloat(v.style.minHeight),S=parseFloat(v.style.height),N=Math.max(w,S);if(N<C){const T=N+k,P=Math.min(C,T),_=T-P;v.style.height=P+"px",v.style.bottom==="0px"&&(y.scrollTop=_>0?_:0,v.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});bb.displayName=lh;var Sb="SelectGroup",[LM,FM]=ii(Sb),BM=x.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,i=dr();return d.jsx(LM,{scope:r,id:i,children:d.jsx(je.div,{role:"group","aria-labelledby":i,...o,ref:t})})});BM.displayName=Sb;var Cb="SelectLabel",Eb=x.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,i=FM(Cb,r);return d.jsx(je.div,{id:i.id,...o,ref:t})});Eb.displayName=Cb;var Ec="SelectItem",[$M,Nb]=ii(Ec),kb=x.forwardRef((e,t)=>{const{__scopeSelect:r,value:o,disabled:i=!1,textValue:l,...u}=e,f=us(Ec,r),p=ds(Ec,r),g=f.value===o,[y,v]=x.useState(l??""),[E,k]=x.useState(!1),C=ze(t,T=>{var P;return(P=p.itemRefCallback)==null?void 0:P.call(p,T,o,i)}),w=dr(),S=x.useRef("touch"),N=()=>{i||(f.onValueChange(o),f.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx($M,{scope:r,value:o,disabled:i,textId:w,isSelected:g,onItemTextChange:x.useCallback(T=>{v(P=>P||((T==null?void 0:T.textContent)??"").trim())},[]),children:d.jsx(Gc.ItemSlot,{scope:r,value:o,disabled:i,textValue:y,children:d.jsx(je.div,{role:"option","aria-labelledby":w,"data-highlighted":E?"":void 0,"aria-selected":g&&E,"data-state":g?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:C,onFocus:_e(u.onFocus,()=>k(!0)),onBlur:_e(u.onBlur,()=>k(!1)),onClick:_e(u.onClick,()=>{S.current!=="mouse"&&N()}),onPointerUp:_e(u.onPointerUp,()=>{S.current==="mouse"&&N()}),onPointerDown:_e(u.onPointerDown,T=>{S.current=T.pointerType}),onPointerMove:_e(u.onPointerMove,T=>{var P;S.current=T.pointerType,i?(P=p.onItemLeave)==null||P.call(p):S.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_e(u.onPointerLeave,T=>{var P;T.currentTarget===document.activeElement&&((P=p.onItemLeave)==null||P.call(p))}),onKeyDown:_e(u.onKeyDown,T=>{var _;((_=p.searchRef)==null?void 0:_.current)!==""&&T.key===" "||(NM.includes(T.key)&&N(),T.key===" "&&T.preventDefault())})})})})});kb.displayName=Ec;var na="SelectItemText",Pb=x.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:i,...l}=e,u=us(na,r),f=ds(na,r),p=Nb(na,r),g=RM(na,r),[y,v]=x.useState(null),E=ze(t,N=>v(N),p.onItemTextChange,N=>{var T;return(T=f.itemTextRefCallback)==null?void 0:T.call(f,N,p.value,p.disabled)}),k=y==null?void 0:y.textContent,C=x.useMemo(()=>d.jsx("option",{value:p.value,disabled:p.disabled,children:k},p.value),[p.disabled,p.value,k]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=g;return Pt(()=>(w(C),()=>S(C)),[w,S,C]),d.jsxs(d.Fragment,{children:[d.jsx(je.span,{id:p.textId,...l,ref:E}),p.isSelected&&u.valueNode&&!u.valueNodeHasChildren?ga.createPortal(l.children,u.valueNode):null]})});Pb.displayName=na;var _b="SelectItemIndicator",Rb=x.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return Nb(_b,r).isSelected?d.jsx(je.span,{"aria-hidden":!0,...o,ref:t}):null});Rb.displayName=_b;var ch="SelectScrollUpButton",Tb=x.forwardRef((e,t)=>{const r=ds(ch,e.__scopeSelect),o=Zh(ch,e.__scopeSelect),[i,l]=x.useState(!1),u=ze(t,o.onScrollButtonChange);return Pt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const g=p.scrollTop>0;l(g)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),i?d.jsx(Ob,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});Tb.displayName=ch;var uh="SelectScrollDownButton",jb=x.forwardRef((e,t)=>{const r=ds(uh,e.__scopeSelect),o=Zh(uh,e.__scopeSelect),[i,l]=x.useState(!1),u=ze(t,o.onScrollButtonChange);return Pt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;l(y)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),i?d.jsx(Ob,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});jb.displayName=uh;var Ob=x.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:o,...i}=e,l=ds("SelectScrollButton",r),u=x.useRef(null),f=Xc(r),p=x.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return x.useEffect(()=>()=>p(),[p]),Pt(()=>{var y;const g=f().find(v=>v.ref.current===document.activeElement);(y=g==null?void 0:g.ref.current)==null||y.scrollIntoView({block:"nearest"})},[f]),d.jsx(je.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:_e(i.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(o,50))}),onPointerMove:_e(i.onPointerMove,()=>{var g;(g=l.onItemLeave)==null||g.call(l),u.current===null&&(u.current=window.setInterval(o,50))}),onPointerLeave:_e(i.onPointerLeave,()=>{p()})})}),UM="SelectSeparator",Ab=x.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return d.jsx(je.div,{"aria-hidden":!0,...o,ref:t})});Ab.displayName=UM;var dh="SelectArrow",zM=x.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,i=Jc(r),l=us(dh,r),u=ds(dh,r);return l.open&&u.position==="popper"?d.jsx(eb,{...i,...o,ref:t}):null});zM.displayName=dh;var WM="SelectBubbleInput",Mb=x.forwardRef(({__scopeSelect:e,value:t,...r},o)=>{const i=x.useRef(null),l=ze(o,i),u=Ih(t);return x.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(u!==t&&y){const v=new Event("change",{bubbles:!0});y.call(f,t),f.dispatchEvent(v)}},[u,t]),d.jsx(je.select,{...r,style:{...tb,...r.style},ref:l,defaultValue:t})});Mb.displayName=WM;function Db(e){return e===""||e===void 0}function Ib(e){const t=is(e),r=x.useRef(""),o=x.useRef(0),i=x.useCallback(u=>{const f=r.current+u;t(f),(function p(g){r.current=g,window.clearTimeout(o.current),g!==""&&(o.current=window.setTimeout(()=>p(""),1e3))})(f)},[t]),l=x.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,i,l]}function Lb(e,t,r){const i=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=r?e.indexOf(r):-1;let u=VM(e,Math.max(l,0));i.length===1&&(u=u.filter(g=>g!==r));const p=u.find(g=>g.textValue.toLowerCase().startsWith(i.toLowerCase()));return p!==r?p:void 0}function VM(e,t){return e.map((r,o)=>e[(t+o)%e.length])}
vendor: 4,753 bytes, line 212
212var HM=ub,Fb=fb,qM=pb,QM=mb,KM=gb,Bb=yb,YM=bb,$b=Eb,Ub=kb,GM=Pb,XM=Rb,zb=Tb,Wb=jb,Vb=Ab;const Wr=HM,Vr=qM,sr=x.forwardRef(({className:e,children:t,...r},o)=>d.jsxs(Fb,{ref:o,className:Ce("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,d.jsx(QM,{asChild:!0,children:d.jsx(dx,{className:"h-4 w-4 opacity-50"})})]}));sr.displayName=Fb.displayName;const Hb=x.forwardRef(({className:e,...t},r)=>d.jsx(zb,{ref:r,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(_E,{className:"h-4 w-4"})}));Hb.displayName=zb.displayName;const qb=x.forwardRef(({className:e,...t},r)=>d.jsx(Wb,{ref:r,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(dx,{className:"h-4 w-4"})}));qb.displayName=Wb.displayName;const or=x.forwardRef(({className:e,children:t,position:r="popper",...o},i)=>d.jsx(KM,{children:d.jsxs(Bb,{ref:i,className:Ce("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[d.jsx(Hb,{}),d.jsx(YM,{className:Ce("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(qb,{})]})}));or.displayName=Bb.displayName;const JM=x.forwardRef(({className:e,...t},r)=>d.jsx($b,{ref:r,className:Ce("px-2 py-1.5 text-sm font-semibold",e),...t}));JM.displayName=$b.displayName;const Ge=x.forwardRef(({className:e,children:t,...r},o)=>d.jsxs(Ub,{ref:o,className:Ce("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[d.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(XM,{children:d.jsx(ux,{className:"h-4 w-4"})})}),d.jsx(GM,{children:t})]}));Ge.displayName=Ub.displayName;const ZM=x.forwardRef(({className:e,...t},r)=>d.jsx(Vb,{ref:r,className:Ce("-mx-1 my-1 h-px bg-muted",e),...t}));ZM.displayName=Vb.displayName;const fh=x.forwardRef(({className:e,...t},r)=>d.jsx("textarea",{className:Ce("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));fh.displayName="Textarea";var Zc="Popover",[Qb]=Hn(Zc,[qc]),Ea=qc(),[eD,fs]=Qb(Zc),Kb=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:l,modal:u=!1}=e,f=Ea(t),p=x.useRef(null),[g,y]=x.useState(!1),[v,E]=os({prop:o,defaultProp:i??!1,onChange:l,caller:Zc});return d.jsx(J0,{...f,children:d.jsx(eD,{scope:t,contentId:dr(),triggerRef:p,open:v,onOpenChange:E,onOpenToggle:x.useCallback(()=>E(k=>!k),[E]),hasCustomAnchor:g,onCustomAnchorAdd:x.useCallback(()=>y(!0),[]),onCustomAnchorRemove:x.useCallback(()=>y(!1),[]),modal:u,children:r})})};Kb.displayName=Zc;var Yb="PopoverAnchor",tD=x.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=fs(Yb,r),l=Ea(r),{onCustomAnchorAdd:u,onCustomAnchorRemove:f}=i;return x.useEffect(()=>(u(),()=>f()),[u,f]),d.jsx(Xh,{...l,...o,ref:t})});tD.displayName=Yb;var Gb="PopoverTrigger",Xb=x.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=fs(Gb,r),l=Ea(r),u=ze(t,i.triggerRef),f=d.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nS(i.open),...o,ref:u,onClick:_e(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?f:d.jsx(Xh,{asChild:!0,...l,children:f})});Xb.displayName=Gb;var ep="PopoverPortal",[nD,rD]=Qb(ep,{forceMount:void 0}),Jb=e=>{const{__scopePopover:t,forceMount:r,children:o,container:i}=e,l=fs(ep,t);return d.jsx(nD,{scope:t,forceMount:r,children:d.jsx(cs,{present:r||l.open,children:d.jsx(Qc,{asChild:!0,container:i,children:o})})})};Jb.displayName=ep;var Yo="PopoverContent",Zb=x.forwardRef((e,t)=>
vendor: 8,928 bytes, lines 212-216
212{const r=rD(Yo,e.__scopePopover),{forceMount:o=r.forceMount,...i}=e,l=fs(Yo,e.__scopePopover);return d.jsx(cs,{present:o||l.open,children:l.modal?d.jsx(oD,{...i,ref:t}):d.jsx(iD,{...i,ref:t})})});Zb.displayName=Yo;var sD=Hs("PopoverContent.RemoveScroll"),oD=x.forwardRef((e,t)=>{const r=fs(Yo,e.__scopePopover),o=x.useRef(null),i=ze(t,o),l=x.useRef(!1);return x.useEffect(()=>{const u=o.current;if(u)return Jh(u)},[]),d.jsx(Yc,{as:sD,allowPinchZoom:!0,children:d.jsx(eS,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,u=>{var f;u.preventDefault(),l.current||(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:_e(e.onPointerDownOutside,u=>{const f=u.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,g=f.button===2||p;l.current=g},{checkForDefaultPrevented:!1}),onFocusOutside:_e(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),iD=x.forwardRef((e,t)=>{const r=fs(Yo,e.__scopePopover),o=x.useRef(!1),i=x.useRef(!1);return d.jsx(eS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(o.current||(f=r.triggerRef.current)==null||f.focus(),l.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:l=>{var p,g;(p=e.onInteractOutside)==null||p.call(e,l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=l.target;((g=r.triggerRef.current)==null?void 0:g.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),eS=x.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:y,...v}=e,E=fs(Yo,r),k=Ea(r);return zh(),d.jsx(Uc,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:d.jsx($c,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:y,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:g,onDismiss:()=>E.onOpenChange(!1),children:d.jsx(Z0,{"data-state":nS(E.open),role:"dialog",id:E.contentId,...k,...v,ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tS="PopoverClose",aD=x.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=fs(tS,r);return d.jsx(je.button,{type:"button",...o,ref:t,onClick:_e(e.onClick,()=>i.onOpenChange(!1))})});aD.displayName=tS;var lD="PopoverArrow",cD=x.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,i=Ea(r);return d.jsx(eb,{...i,...o,ref:t})});cD.displayName=lD;function nS(e){return e?"open":"closed"}var uD=Kb,dD=Xb,fD=Jb,rS=Zb;const hD=uD,pD=dD,sS=x.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},i)=>d.jsx(fD,{children:d.jsx(rS,{ref:i,align:t,sideOffset:r,className:Ce("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));sS.displayName=rS.displayName;var eu="Dialog",[oS,iS]=Hn(eu),[mD,Pn]=oS(eu),aS=e=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,f=x.useRef(null),p=x.useRef(null),[g,y]=os({prop:o,defaultProp:i??!1,onChange:l,caller:eu});return d.jsx(mD,{scope:t,triggerRef:f,contentRef:p,contentId:dr(),titleId:dr(),descriptionId:dr(),open:g,onOpenChange:y,onOpenToggle:x.useCallback(()=>y(v=>!v),[y]),modal:u,children:r})};aS.displayName=eu;var lS="DialogTrigger",cS=x.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,i=Pn(lS,r),l=ze(t,i.triggerRef);return d.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":rp(i.open),...o,ref:l,onClick:_e(e.onClick,i.onOpenToggle)})});cS.displayName=lS;var tp="DialogPortal",[gD,uS]=oS(tp,{forceMount:void 0}),dS=e=>{const{__scopeDialog:t,forceMount:r,children:o,container:i}=e,l=Pn(tp,t);return d.jsx(gD,{scope:t,forceMount:r,children:x.Children.map(o,u=>d.jsx(cs,{present:r||l.open,children:d.jsx(Qc,{asChild:!0,container:i,children:u})}))})};dS.displayName=tp;var Nc="DialogOverlay",fS=x.forwardRef((e,t)=>{const r=uS(Nc,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,l=Pn(Nc,e.__scopeDialog);return l.modal?d.jsx(cs,{present:o||l.open,children:d.jsx(vD,{...i,ref:t})}):null});fS.displayName=Nc;var yD=Hs("DialogOverlay.RemoveScroll"),vD=x.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,i=Pn(Nc,r);return d.jsx(Yc,{as:yD,allowPinchZoom:!0,shards:[i.contentRef],children:d.jsx(je.div,{"data-state":rp(i.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Gs="DialogContent",hS=x.forwardRef((e,t)=>{const r=uS(Gs,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,l=Pn(Gs,e.__scopeDialog);return d.jsx(cs,{present:o||l.open,children:l.modal?d.jsx(xD,{...i,ref:t}):d.jsx(wD,{...i,ref:t})})});hS.displayName=Gs;var xD=x.forwardRef((e,t)=>{const r=Pn(Gs,e.__scopeDialog),o=x.useRef(null),i=ze(t,r.contentRef,o);return x.useEffect(()=>{const l=o.current;if(l)return Jh(l)},[]),d.jsx(pS,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:_e(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&l.preventDefault()}),onFocusOutside:_e(e.onFocusOutside,l=>l.preventDefault())})}),wD=x.forwardRef((e,t)=>{const r=Pn(Gs,e.__scopeDialog),o=x.useRef(!1),i=x.useRef(!1);return d.jsx(pS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(o.current||(f=r.triggerRef.current)==null||f.focus(),l.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:l=>{var p,g;(p=e.onInteractOutside)==null||p.call(e,l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=l.target;((g=r.triggerRef.current)==null?void 0:g.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),pS=x.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...u}=e,f=Pn(Gs,r),p=x.useRef(null),g=ze(t,p);return zh(),d.jsxs(d.Fragment,{children:[d.jsx(Uc,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:d.jsx($c,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":rp(f.open),...u,ref:g,onDismiss:()=>f.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(SD,{titleId:f.titleId}),d.jsx(ED,{contentRef:p,descriptionId:f.descriptionId})]})]})}),np="DialogTitle",mS=x.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,i=Pn(np,r);return d.jsx(je.h2,{id:i.titleId,...o,ref:t})});mS.displayName=np;var gS="DialogDescription",yS=x.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,i=Pn(gS,r);return d.jsx(je.p,{id:i.descriptionId,...o,ref:t})});yS.displayName=gS;var vS="DialogClose",xS=x.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,i=Pn(vS,r);return d.jsx(je.button,{type:"button",...o,ref:t,onClick:_e(e.onClick,()=>i.onOpenChange(!1))})});xS.displayName=vS;function rp(e){return e?"open":"closed"}var wS="DialogTitleWarning",[bD,bS]=AT(wS,{contentName:Gs,titleName:np,docsSlug:"dialog"}),SD=({titleId:e})=>{const t=bS(wS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 213 214If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 215 216For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},CD="DialogDescriptionWarning",ED=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bS(CD).contentName}}.`;return x.useEffect(()=>{var l;const i=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},SS=aS,ND=cS,CS=dS,sp=fS,op=hS,ip=mS,ap=yS,lp=xS,ES="AlertDialog",[kD]=Hn(ES,[iS]),mr=iS(),NS=e=>{const{__scopeAlertDialog:t,...r}=e,o=mr(t);return d.jsx(SS,{...o,...r,modal:!0})};NS.displayName=ES;var PD="AlertDialogTrigger",_D=x.forwardRef((e,t)=>
216{const{__scopeAlertDialog:r,...o}=e,i=mr(r);return d.jsx(ND,{...i,...o,ref:t})});_D.displayName=PD;var RD="AlertDialogPortal",kS=e=>{const{__scopeAlertDialog:t,...r}=e,o=mr(t);return d.jsx(CS,{...o,...r})};kS.displayName=RD;var TD="AlertDialogOverlay",PS=x.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,i=mr(r);return d.jsx(sp,{...i,...o,ref:t})});PS.displayName=TD;var Ao="AlertDialogContent",[jD,OD]=kD(Ao),AD=CT("AlertDialogContent"),_S=x.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:o,...i}=e,l=mr(r),u=x.useRef(null),f=ze(t,u),p=x.useRef(null);return d.jsx(bD,{contentName:Ao,titleName:RS,docsSlug:"alert-dialog",children:d.jsx(jD,{scope:r,cancelRef:p,children:d.jsxs(op,{role:"alertdialog",...l,...i,ref:f,onOpenAutoFocus:_e(i.onOpenAutoFocus,g=>{var y;g.preventDefault(),(y=p.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[d.jsx(AD,{children:o}),d.jsx(DD,{contentRef:u})]})})})});_S.displayName=Ao;var RS="AlertDialogTitle",TS=x.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,i=mr(r);return d.jsx(ip,{...i,...o,ref:t})});TS.displayName=RS;var jS="AlertDialogDescription",OS=x.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,i=mr(r);return d.jsx(ap,{...i,...o,ref:t})});OS.displayName=jS;var MD="AlertDialogAction",AS=x.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,i=mr(r);return d.jsx(lp,{...i,...o,ref:t})});AS.displayName=MD;var MS="AlertDialogCancel",DS=x.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:i}=OD(MS,r),l=mr(r),u=ze(t,i);return d.jsx(lp,{...l,...o,ref:u})});DS.displayName=MS;var DD=({contentRef:e})=>{const t=`\`${Ao}\` requires a description for the component to be accessible for screen reader users. 217 218You can add a description to the \`${Ao}\` by passing a \`${jS}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 219 220Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ao}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 221 222For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return x.useEffect(()=>{var o;document.getElementById((o=e.current)==null?void 0:o.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},ID=NS,LD=kS,IS=PS,LS=_S,FS=AS,BS=DS,$S=TS,US=OS;const FD=ID,BD=LD,zS=x.forwardRef(({className:e,...t},r)=>d.jsx(IS,{className:Ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));zS.displayName=IS.displayName;const WS=x.forwardRef(({className:e,...t},r)=>d.jsxs(BD,{children:[d.jsx(zS,{}),d.jsx(LS,{ref:r,className:Ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));WS.displayName=LS.displayName;const VS=({className:e,...t})=>d.jsx("div",{className:Ce("flex flex-col space-y-2 text-center sm:text-left",e),...t});VS.displayName="AlertDialogHeader";const HS=({className:e,...t})=>d.jsx("div",{className:Ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});HS.displayName="AlertDialogFooter";const qS=x.forwardRef(({className:e,...t},r)=>d.jsx($S,{ref:r,className:Ce("text-lg font-semibold",e),...t}));qS.displayName=$S.displayName;const QS=x.forwardRef(({className:e,...t},r)=>d.jsx(US,{ref:r,className:Ce("text-sm text-muted-foreground",e),...t}));QS.displayName=US.displayName;const KS=x.forwardRef(({className:e,...t},r)=>d.jsx(FS,{ref:r,className:Ce(Dh(),e),...t}));KS.displayName=FS.displayName;const YS=x.forwardRef(({className:e,...t},r)=>d.jsx(BS,{ref:r,className:Ce(Dh({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));YS.displayName=BS.displayName;const $D=SS,UD=CS,GS=x.forwardRef(({className:e,...t},r)=>d.jsx(sp,{ref:r,className:Ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));GS.displayName=sp.displayName;const XS=x.forwardRef(({className:e,children:t,...r},o)=>d.jsxs(UD,{children:[d.jsx(GS,{}),d.jsxs(op,{ref:o,className:Ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
222nded-lg",e),...r,children:[t,d.jsxs(lp,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(fx,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));XS.displayName=op.displayName;const JS=({className:e,...t})=>d.jsx("div",{className:Ce("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});JS.displayName="DialogHeader";const ZS=x.forwardRef(({className:e,...t},r)=>d.jsx(ip,{ref:r,className:Ce("text-lg font-semibold leading-none tracking-tight",e),...t}));ZS.displayName=ip.displayName;const e1=x.forwardRef(({className:e,...t},r)=>d.jsx(ap,{ref:r,className:Ce("text-sm text-muted-foreground",e),...t}));e1.displayName=ap.displayName;function zD({open:e,onOpenChange:t,onSubmit:r,isSubmitting:o}){const[i,l]=x.useState({customerName:"",customerPosition:"",customerEmail:"",customerPhone:"",companyName:"",companyAddress:"",postcardsCount:6,grandTotal:0,status:"××ש×",source:"××ר×× ×"}),[u,f]=x.useState({}),p=(v,E)=>{l({...i,[v]:E}),u[v]&&f({...u,[v]:null})},g=()=>{const v={};return i.customerName.trim()||(v.customerName="ש×× ××××"),(!i.customerEmail.trim()||!i.customerEmail.includes("@"))&&(v.customerEmail="×××××× ×× ×ª×§××"),i.customerPhone.trim()||(v.customerPhone="ש×× ××××"),i.companyName.trim()||(v.companyName="ש×× ××××"),i.postcardsCount<6&&(v.postcardsCount="××× ×××× 6 ×××××ת"),i.grandTotal<=0&&(v.grandTotal="ס××× ×××× ××××ת ×××× ×-0"),f(v),Object.keys(v).length===0},y=()=>{g()&&(r(i),l({customerName:"",customerPosition:"",customerEmail:"",customerPhone:"",companyName:"",companyAddress:"",postcardsCount:6,grandTotal:0,status:"××ש×",source:"××ר×× ×"}),f({}))};return d.jsx($D,{open:e,onOpenChange:t,children:d.jsxs(XS,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",dir:"rtl",children:[d.jsxs(JS,{children:[d.jsx(ZS,{className:"text-2xl",children:"××ספת ×××× × ××× ×ת"}),d.jsx(e1,{children:"××× ×ת ×× ×פר××× ×× ×רש×× ××צ×רת ×××× × ×××©× ××ער×ת"})]}),d.jsxs("div",{className:"space-y-4 py-4",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"customerName",children:"×©× ××× *"}),d.jsx(nt,{id:"customerName",value:i.customerName,onChange:v=>p("customerName",v.target.value),className:u.customerName?"border-red-500":""}),u.customerName&&d.jsx("p",{className:"text-red-500 text-sm",children:u.customerName})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"customerPosition",children:"תפק×× ×××ר×"}),d.jsx(nt,{id:"customerPosition",value:i.customerPosition,onChange:v=>p("customerPosition",v.target.value)})]})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"customerEmail",children:"×××××× *"}),d.jsx(nt,{id:"customerEmail",type:"email",value:i.customerEmail,onChange:v=>p("customerEmail",v.target.value),className:u.customerEmail?"border-red-500":""}),u.customerEmail&&d.jsx("p",{className:"text-red-500 text-sm",children:u.customerEmail})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"customerPhone",children:"×ספר × ××× *"}),d.jsx(nt,{id:"customerPhone",value:i.customerPhone,onChange:v=>p("customerPhone",v.target.value),className:u.customerPhone?"border-red-500":""}),u.customerPhone&&d.jsx("p",{className:"text-red-500 text-sm",children:u.customerPhone})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"companyName",children:"×©× ××××¨× *"}),d.jsx(nt,{id:"companyName",value:i.companyName,onChange:v=>p("companyName",v.target.value),className:u.companyName?"border-red-500":""}),u.companyName&&d.jsx("p",{className:"text-red-500 text-sm",children:u.companyName})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"companyAddress",children:"×ת××ת ×××ר×"}),d.jsx(nt,{id:"companyAddress",value:i.companyAddress,onChange:v=>p("companyAddress",v.target.value)})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"postcardsCount",children:"×ספר ×××××ת *"}
222),d.jsx(nt,{id:"postcardsCount",type:"number",min:"6",value:i.postcardsCount,onChange:v=>p("postcardsCount",parseInt(v.target.value)||6),className:u.postcardsCount?"border-red-500":""}),u.postcardsCount&&d.jsx("p",{className:"text-red-500 text-sm",children:u.postcardsCount})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"grandTotal",children:"ס××´× ×תש××× (âª) *"}),d.jsx(nt,{id:"grandTotal",type:"number",min:"0",step:"0.01",value:i.grandTotal,onChange:v=>p("grandTotal",parseFloat(v.target.value)||0),className:u.grandTotal?"border-red-500":""}),u.grandTotal&&d.jsx("p",{className:"text-red-500 text-sm",children:u.grandTotal})]})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"status",children:"ס×××ס"}),d.jsxs(Wr,{value:i.status,onValueChange:v=>p("status",v),children:[d.jsx(sr,{children:d.jsx(Vr,{})}),d.jsxs(or,{children:[d.jsx(Ge,{value:"××ש×",children:"××ש×"}),d.jsx(Ge,{value:"× ×©×× ××× ×§ תש×××",children:"× ×©×× ××× ×§ תש×××"}),d.jsx(Ge,{value:"×תק×× ×ª×©×××",children:"×תק×× ×ª×©×××"}),d.jsx(Ge,{value:"×××פ××",children:"×××פ××"}),d.jsx(Ge,{value:"× ×©×× ××××ר",children:"× ×©×× ××××ר"})]})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Ze,{htmlFor:"source",children:"××§×ר ××××× ×"}),d.jsxs(Wr,{value:i.source,onValueChange:v=>p("source",v),children:[d.jsx(sr,{children:d.jsx(Vr,{})}),d.jsxs(or,{children:[d.jsx(Ge,{value:"××ר×× ×",children:"××ר×× ×"}),d.jsx(Ge,{value:"ש××××§",children:"ש××××§"})]})]})]})]})]}),d.jsxs("div",{className:"flex justify-end gap-3",children:[d.jsx(Mt,{variant:"outline",onClick:()=>t(!1),disabled:o,children:"×××××"}),d.jsx(Mt,{onClick:y,disabled:o,className:"bg-[#2d5a4a] hover:bg-[#1e4035]",children:o?d.jsxs(d.Fragment,{children:[d.jsx(kc,{className:"ml-2 h-4 w-4 animate-spin"}),"ש××ר..."]}):"ש××ר ×××× ×"})]})]})})}function WD(){const[e,t]=x.useState("created_date"),[r,o]=x.useState("desc"),[i,l]=x.useState({}),[u,f]=x.useState(null),[p,g]=x.useState(!1),[y,v]=x.useState(new Date().getMonth()),[E,k]=x.useState(new Date().getFullYear()),C=Pc(),{data:w,isLoading:S}=qo({queryKey:["orders",e,r],queryFn:()=>{const I=r==="desc"?`-${e}`:e;return vt.entities.Order.list(I,100)}}),N=Rs({mutationFn:({id:I,data:te})=>vt.entities.Order.update(I,te),onSuccess:()=>{C.invalidateQueries({queryKey:["orders"]})}}),T=Rs({mutationFn:I=>vt.entities.Order.delete(I),onSuccess:()=>{C.invalidateQueries({queryKey:["orders"]}),f(null)}}),P=Rs({mutationFn:I=>vt.entities.Order.create(I),onSuccess:()=>{C.invalidateQueries({queryKey:["orders"]}),g(!1)}}),_=(I,te)=>{N.mutate({id:I,data:{status:te}})},F=(I,te)=>{l({...i,[I]:te})},H=I=>{const te=i[I];te!==void 0&&N.mutate({id:I,data:{notes:te}})},$=()=>{u&&T.mutate(u)},W=I=>{const te={order_id:`MANUAL-${Date.now()}-${Math.random().toString(36).substring(2,8).toUpperCase()}`,customerName:I.customerName,customerPosition:I.customerPosition||"",customerEmail:I.customerEmail,customerPhone:I.customerPhone,companyName:I.companyName,companyAddress:I.companyAddress||"",peopleCount:0,postcardsCount:I.postcardsCount,unitPrice:0,discountPercentApplied:0,subtotalBeforeVat:0,vatPercent:0,vatAmount:0,shippingFee:0,grandTotal:I.grandTotal,currency:"ILS",status:I.status,source:I.source,notes:""};P.mutate(te)},oe=I=>I==="××ש×"?"bg-yellow-50 border-r-4 border-r-yellow-500":I==="× ×©×× ××× ×§ תש×××"?"bg-orange-50 border-r-4 border-r-orange-500":I==="×תק×× ×ª×©×××"?"bg-green-50 border-r-4 border-r-green-500":I==="×××פ××"?"bg-blue-50 border-r-4 border-r-blue-500":I==="× ×©×× ××××ר"?"bg-purple-50 border-r-4 border-r-purple-500":"",K=I=>{e===I?o(r==="asc"?"desc":"asc"):(t(I),o("desc"))},ue={××ש×:1,"× ×©×× ××× ×§ תש×××":2,"×תק×× ×ª×©×××":3,×××פ××:4,"× ×©×× ××××ר":5},ie=[...w||[]].sort((I,te)=>{const Ee=ue[I.status]||999,Ae=ue[te.status]||999;return Ee-Ae}),ne=ie.filter(I=>I.status!=="× ×©×× ××××ר"),ae=ie.filter(I=>I.status==="× ×©×× ××××ר");
222if(S)return d.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:d.jsx(kc,{className:"h-8 w-8 animate-spin text-[#2d5a4a]"})});const xe=(w==null?void 0:w.filter(I=>I.status==="××ש×").length)||0,G=(w==null?void 0:w.filter(I=>I.status==="×תק×× ×ª×©×××"||I.status==="×××פ××"||I.status==="× ×©×× ××××ר"))||[],re=G.reduce((I,te)=>I+(te.grandTotal||0),0),D=G.length,ee=D>0?re/D:0,J=G.filter(I=>I.source==="××ר×× ×"||!I.source),A=G.filter(I=>I.source==="ש××××§"),V=J.reduce((I,te)=>I+(te.grandTotal||0),0),de=A.reduce((I,te)=>I+(te.grandTotal||0),0),ce=G.filter(I=>{const te=new Date(I.created_date);return te.getMonth()===y&&te.getFullYear()===E}),Ne=ce.reduce((I,te)=>I+(te.grandTotal||0),0),Pe=ce.filter(I=>I.source==="××ר×× ×"||!I.source).reduce((I,te)=>I+(te.grandTotal||0),0),X=ce.filter(I=>I.source==="ש××××§").reduce((I,te)=>I+(te.grandTotal||0),0),ge=["×× ××ר","פ×ר××ר","×רץ","×פר××","×××","××× ×","××××","××××ס×","ספ×××ר","×××§×××ר","× ××××ר","×צ××ר"];return d.jsxs("div",{className:"min-h-screen bg-gray-50 p-6",dir:"rtl",children:[d.jsxs("div",{className:"max-w-full mx-auto space-y-6",children:[d.jsx("div",{className:"flex justify-end",children:d.jsxs(hD,{children:[d.jsx(pD,{asChild:!0,children:d.jsxs(Mt,{variant:"outline",className:"gap-2",children:[d.jsx(EE,{className:"h-4 w-4"}),ge[y]," ",E]})}),d.jsx(sS,{className:"w-auto p-4",dir:"rtl",children:d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"×©× ×"}),d.jsxs(Wr,{value:E.toString(),onValueChange:I=>k(parseInt(I)),children:[d.jsx(sr,{children:d.jsx(Vr,{})}),d.jsx(or,{children:[2024,2025,2026,2027].map(I=>d.jsx(Ge,{value:I.toString(),children:I},I))})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"text-sm font-medium mb-2 block",children:"×××ש"}),d.jsxs(Wr,{value:y.toString(),onValueChange:I=>v(parseInt(I)),children:[d.jsx(sr,{children:d.jsx(Vr,{})}),d.jsx(or,{children:ge.map((I,te)=>d.jsx(Ge,{value:te.toString(),children:I},te))})]})]})]})})]})}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[d.jsxs(xn,{className:"bg-gradient-to-br from-green-50 to-green-100 border-green-200",children:[d.jsx(wn,{className:"pb-3",children:d.jsxs(bn,{className:"text-sm font-medium text-green-700",children:["××× ×¡×ת ",ge[y]," ",E]})}),d.jsxs(Sn,{children:[d.jsxs("div",{className:"text-3xl font-bold text-green-900",children:["âª",Ne.toFixed(2)]}),d.jsxs("div",{className:"mt-2 space-y-1",children:[d.jsxs("div",{className:"text-xs text-green-700",children:["××ר×× ×: âª",Pe.toFixed(2)]}),d.jsxs("div",{className:"text-xs text-green-700",children:["ש××××§: âª",X.toFixed(2)]})]})]})]}),d.jsxs(xn,{className:"bg-gradient-to-br from-blue-50 to-blue-100 border-blue-200",children:[d.jsx(wn,{className:"pb-3",children:d.jsx(bn,{className:"text-sm font-medium text-blue-700",children:"ס××´× ××× ×¡×ת"})}),d.jsxs(Sn,{children:[d.jsxs("div",{className:"text-3xl font-bold text-blue-900",children:["âª",re.toFixed(2)]}),d.jsxs("div",{className:"mt-2 space-y-1",children:[d.jsxs("div",{className:"text-xs text-blue-700",children:["××ר×× ×: âª",V.toFixed(2)]}),d.jsxs("div",{className:"text-xs text-blue-700",children:["ש××××§: âª",de.toFixed(2)]})]})]})]}),d.jsxs(xn,{className:"bg-gradient-to-br from-purple-50 to-purple-100 border-purple-200",children:[d.jsx(wn,{className:"pb-3",children:d.jsx(bn,{className:"text-sm font-medium text-purple-700",children:"×××× ×ת ××צ×××ת"})}),d.jsx(Sn,{children:d.jsx("div",{className:"text-3xl font-bold text-purple-900",children:D})})]}),d.jsxs(xn,{className:"bg-gradient-to-br from-orange-50 to-orange-100 border-orange-200",children:[d.jsx(wn,{className:"pb-3",children:d.jsx(bn,{className:"text-sm font-medium text-orange-700",children:"×××צע ×ר××ש×"})}),d.jsx(Sn,{children:d.jsxs("div",{className:"text-3xl font-bold text-orange-900",children:["âª",ee.toFixed(2)]})})]})]}),d.jsxs(xn,{children:[d.jsx(wn,{children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(bn,{className:"text-3xl font-bold text-[#2d5a4a]",children:"× ×××× ×××× ×ת"}),d.jsxs("p",{className:"text-gray-600 mt-2",children:["ס××´× ",(ne==null?void 0:ne.length)||0," ×××× ×ת פע×××ת"]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs(Mt,{onClick:()=>g(!0),className:"bg-[#2d5a4a] hover:bg-[#1e4035]",children:[d.jsx(vh,{className:"ml-2 h-4 w-4"}),"××ספת ×××× × ××× ×ת"]}),xe>0&&d.jsxs("div",{className:"bg-red-500 text-white px-6 py-3 rounded-full flex items-center gap-2 shadow-lg",children:[d.jsx("span",{className:"text-2xl font-bold",children:xe}),d.jsx("span",{className:"text-lg font-semibold",children:"×××× ×ת ××ש×ת"})]})]})]})}),d.jsx(Sn,{children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs(pc,{children:[d.jsx(mc,{children:d.jsxs(js,{children:[d.jsx(Be,{className:"text-right",children:d.jsxs(Mt,{variant:"ghost",onClick:()=>K("created_date"),className:"font-bold",children:["ת×ר××",d.jsx(wE,{className:"mr-2 h-4 w-4"})]})}),d.jsx(Be,{className:"text-right font-bold",children:"×©× ×××"}),d.jsx(Be,{className:"text-right font-bold",children:"תפק××"}),d.jsx(Be,{className:"text-right font-bold",children:"××××××"}),d.jsx(Be,{className:"text-right font-bold",children:"× ×××"}),d.jsx(Be,{className:"text-right font-bold",children:"×©× ×××ר×"}),d.jsx(Be,{className:"text-right font-bold",children:"×ת××ת"}),d.jsx(Be,{className:"text-right font-bold",children:"×××××ת"}),d.jsx(Be,{className:"text-right font-bold",children:"ס×××"}),d.jsx(Be,{className:"text-right font-bold",children:"ס×××ס"}),d.jsx(Be,{className:"text-right font-bold",children:"××§×ר"}),d.jsx(Be,{className:"text-right font-bold",children:"×ער×ת"}),d.jsx(Be,{className:"text-right font-bold",children:"פע×××ת"})]})}),d.jsx(gc,{children:ne==null?void 0:ne.map(I=>{var te;return d.jsxs(js,{className:oe(I.status),children:[d.jsx($e,{className:"text-right",children:vc(new Date(I.created_date),"dd/MM/yyyy HH:mm",{locale:xc})}),d.jsx($e,{className:"text-right font-medium",children:I.customerName}),d.jsx($e,{className:"text-right",children:I.customerPosition||"-"}),d.jsx($e,{className:"text-right text-sm",children:I.customerEmail}),d.jsx($e,{className:"text-right",children:I.customerPhone}),d.jsx($e,{className:"text-right font-medium",children:I.companyName}),d.jsx($e,{className:"text-right text-sm",children:I.companyAddress||"-"}
222),d.jsx($e,{className:"text-right",children:I.postcardsCount}),d.jsxs($e,{className:"text-right font-bold text-[#2d5a4a]",children:[(te=I.grandTotal)==null?void 0:te.toFixed(2)," âª"]}),d.jsx($e,{className:"text-right",children:d.jsxs(Wr,{value:I.status,onValueChange:Ee=>_(I.id,Ee),children:[d.jsx(sr,{className:"w-32",children:d.jsx(Vr,{})}),d.jsxs(or,{children:[d.jsx(Ge,{value:"××ש×",children:"××ש×"}),d.jsx(Ge,{value:"× ×©×× ××× ×§ תש×××",children:"× ×©×× ××× ×§ תש×××"}),d.jsx(Ge,{value:"×תק×× ×ª×©×××",children:"×תק×× ×ª×©×××"}),d.jsx(Ge,{value:"×××פ××",children:"×××פ××"}),d.jsx(Ge,{value:"× ×©×× ××××ר",children:"× ×©×× ××××ר"})]})]})}),d.jsx($e,{className:"text-right",children:d.jsxs(Wr,{value:I.source||"××ר×× ×",onValueChange:Ee=>N.mutate({id:I.id,data:{source:Ee}}),children:[d.jsx(sr,{className:"w-28",children:d.jsx(Vr,{})}),d.jsxs(or,{children:[d.jsx(Ge,{value:"××ר×× ×",children:"××ר×× ×"}),d.jsx(Ge,{value:"ש××××§",children:"ש××××§"})]})]})}),d.jsx($e,{className:"text-right",children:d.jsxs("div",{className:"space-y-2",children:[d.jsx(fh,{value:i[I.id]!==void 0?i[I.id]:I.notes||"",onChange:Ee=>F(I.id,Ee.target.value),placeholder:"×ער×ת ×¤× ××××ת...",className:"min-h-[80px] text-sm"}),i[I.id]!==void 0&&i[I.id]!==I.notes&&d.jsx(Mt,{size:"sm",onClick:()=>H(I.id),className:"w-full bg-[#2d5a4a] hover:bg-[#1e4035]",children:"ש××ר ×ער×ת"})]})}),d.jsx($e,{className:"text-right",children:d.jsx(Mt,{variant:"ghost",size:"icon",onClick:()=>f(I.id),className:"text-red-500 hover:text-red-700 hover:bg-red-50",children:d.jsx(Sf,{className:"h-4 w-4"})})})]},I.id)})})]})})})]}),ae.length>0&&d.jsxs(xn,{className:"mt-6",children:[d.jsxs(wn,{children:[d.jsx(bn,{className:"text-2xl font-bold text-purple-700",children:"×××× ×ת ××צ×××ת ×©× ×©×××"}),d.jsxs("p",{className:"text-gray-600 mt-2",children:["ס××´× ",ae.length," ×××× ×ת ×©× ×©××× ××××ר"]})]}),d.jsx(Sn,{children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs(pc,{children:[d.jsx(mc,{children:d.jsxs(js,{children:[d.jsx(Be,{className:"text-right font-bold",children:"ת×ר××"}),d.jsx(Be,{className:"text-right font-bold",children:"×©× ×××"}),d.jsx(Be,{className:"text-right font-bold",children:"תפק××"}),d.jsx(Be,{className:"text-right font-bold",children:"××××××"}),d.jsx(Be,{className:"text-right font-bold",children:"× ×××"}),d.jsx(Be,{className:"text-right font-bold",children:"×©× ×××ר×"}),d.jsx(Be,{className:"text-right font-bold",children:"×ת××ת"}),d.jsx(Be,{className:"text-right font-bold",children:"×××××ת"}),d.jsx(Be,{className:"text-right font-bold",children:"ס×××"}),d.jsx(Be,{className:"text-right font-bold",children:"ס×××ס"}),d.jsx(Be,{className:"text-right font-bold",children:"××§×ר"}),d.jsx(Be,{className:"text-right font-bold",children:"×ער×ת"}),d.jsx(Be,{className:"text-right font-bold",children:"פע×××ת"})]})}),d.jsx(gc,{children:ae.map(I=>{var te;return d.jsxs(js,{className:"bg-purple-50 border-r-4 border-r-purple-500",children:[d.jsx($e,{className:"text-right",children:vc(new Date(I.created_date),"dd/MM/yyyy HH:mm",{locale:xc})}),d.jsx($e,{className:"text-right font-medium",children:I.customerName}),d.jsx($e,{className:"text-right",children:I.customerPosition||"-"}),d.jsx($e,{className:"text-right text-sm",children:I.customerEmail}),d.jsx($e,{className:"text-right",children:I.customerPhone}),d.jsx($e,{className:"text-right font-medium",children:I.companyName}),d.jsx($e,{className:"text-right text-sm",children:I.companyAddress||"-"}),d.jsx($e,{className:"text-right",children:I.postcardsCount}),d.jsxs($e,{className:"text-right font-bold text-[#2d5a4a]",children:[(te=I.grandTotal)==null?void 0:te.toFixed(2)," âª"]}),d.jsx($e,{className:"text-right",children:d.jsxs(Wr,{value:I.status,onValueChange:Ee=>_(I.id,Ee),children:[d.jsx(sr,{className:"w-40",children:d.jsx(Vr,{})}),d.jsxs(or,{children:[d.jsx(Ge,{value:"××ש×",children:"××ש×"}),d.jsx(Ge,{value:"× ×©×× ××× ×§ תש×××",children:"× ×©×× ××× ×§ תש×××"}),d.jsx(Ge,{value:"×תק×× ×ª×©×××",children:"×תק×× ×ª×©×××"}),d.jsx(Ge,{value:"×××פ××",children:"×××פ××"}),d.jsx(Ge,{value:"× ×©×× ××××ר",children:"× ×©×× ××××ר"})]})]})}),d.jsx($e,{className:"text-right",children:d.jsxs(Wr,{value:I.source||"××ר×× ×",onValueChange:Ee=>N.mutate({id:I.id,data:{source:Ee}}),children:[d.jsx(sr,{className:"w-28",children:d.jsx(Vr,{})}),d.jsxs(or,{children:[d.jsx(Ge,{value:"××ר×× ×",children:"××ר×× ×"}),d.jsx(Ge,{value:"ש××××§",children:"ש××××§"})]})]})}),d.jsx($e,{className:"text-right",children:d.jsxs("div",{className:"space-y-2",children:[d.jsx(fh,{value:i[I.id]!==void 0?i[I.id]:I.notes||"",onChange:Ee=>F(I.id,Ee.target.value),placeholder:"×ער×ת ×¤× ××××ת...",className:"min-h-[80px] text-sm"}),i[I.id]!==void 0&&i[I.id]!==I.notes&&d.jsx(Mt,{size:"sm",onClick:()=>H(I.id),className:"w-full bg-[#2d5a4a] hover:bg-[#1e4035]",children:"ש××ר ×ער×ת"})]})}),d.jsx($e,{className:"text-right",children:d.jsx(Mt,{variant:"ghost",size:"icon",onClick:()=>f(I.id),className:"text-red-500 hover:text-red-700 hover:bg-red-50",children:d.jsx(Sf,{className:"h-4 w-4"})})})]},I.id)})})]})})})]})]}),d.jsx(zD,{open:p,onOpenChange:g,onSubmit:W,isSubmitting:P.isPending}),d.jsx(FD,{open:!!u,onOpenChange:()=>f(null),children:d.jsxs(WS,{children:[d.jsxs(VS,{children:[d.jsx(qS,{children:"×××××§ ×ת ××××× × ×צ××ת×ת?"}),d.jsx(QS,{children:"פע××× ×× ×ª×××§ ×ת ××××× × ×צ××ת×ת ××× × ××ª× ×××× ×ש××ר ××ת×."})]}),d.jsxs(HS,{children:[d.jsx(YS,{children:"×××××"}),d.jsx(KS,{onClick:$,className:"bg-red-500 hover:bg-red-600",children:"×××§"})]})]})})]})}function VD(e){return"/"+e.replace(/ /g,"-")}function HD({children:e,currentPageName:t}){const r=t==="Admin";return d.jsxs("div",{className:"min-h-screen",children:[r&&d.jsx("nav",{className:"bg-white shadow-sm border-b",children:d.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-3 flex justify-between items-center",children:[d.jsx(fP,{to:VD("Checkout"),className:"text-gray-600 hover:text-gray-900 transition-colors",children:"â ×××¨× ×צ׳ק××××"}),d.jsx("span",{className:"font-semibold text-gray-900",children:"פ×× × × ××××"})]})}),e]})}const qD={Admin:hj,Checkout:nA,Orders:WD},t1={mainPage:"Checkout",Pages:qD,Layout:HD};function QD(){const e=ei(),{isAuthenticated:t}=Fw(),{Pages:r,mainPage:o}=t1,i=o;return x.useEffect(()=>{const l=e.pathname;let u;if(l==="/"||l==="")u=i;else{const f=l.replace(/^\//,"").split("/")[0];u=Object.keys(r).find(y=>y.toLowerCase()===f.toLowerCase())||null}t&&u&&vt.appLogs.logUserInApp(u).catch(()=>{})},[e,t,r,i]),null}function KD({}){var i;const t=ei().pathname.substring(1),{data:r,isFetched:o}=qo({queryKey:["user"],queryFn:async()=>{try{return{user:await vt.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return d.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:d.jsx("div",{className:"max-w-md w-full",children:d.jsxs("div",{className:"text-center space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),d.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),d.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",d.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),o&&r.isAuthenticated&&((i=r.user)==null?void 0:i.role)==="admin"&&d.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:d.jsxs("div",{className:"flex items-start space-x-3",children:[d.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:d.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),d.jsxs("div",{className:"text-left space-y-1",children:[d.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),d.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),d.jsx("div",{className:"pt-6",children:d.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[d.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const YD=()=>d.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:d.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:d.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),d.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),d.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),d.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[d.jsx("p",{children:"If you believe this is an error, you can:"}),d.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[d.jsx("li",{children:"Verify you are logged in with the correct account"}),d.jsx("li",{children:"Contact the app administrator for access"}),d.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:n1,Layout:Qv,mainPage:GD}=t1,r1=GD,XD=n1[r1],Kv=({children:e,currentPageName:t})=>Qv?d.jsx(Qv,{currentPageName:t,children:e}):d.jsx(d.Fragment,{children:e}),JD=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:r,navigateToLogin:o}=Fw();if(t||e)return d.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:d.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(r){if(r.type==="user_not_registered")return d.jsx(YD,{});if(r.type==="auth_required")return o(),null}return d.jsxs(nP,{children:[d.jsx(Xl,{path:"/",element:d.jsx(Kv,{currentPageName:r1,children:d.jsx(XD,{})})}),Object.entries(n1).map(([i,l])=>d.jsx(Xl,{path:`/${i}`,element:d.jsx(Kv,{currentPageName:i,children:d.jsx(l,{})})},i)),d.jsx(Xl,{path:"*",element:d.jsx(KD,{})})]})};function ZD(){return d.jsx(wT,{children:d.jsxs(XN,{client:ck,children:[d.jsxs(cP,{children:[d.jsx(QD,{}),d.jsx(JD,{})]}),d.jsx(PN,{})]})})}cE.createRoot(document.getElementById("root")).render(d.jsx(ZD,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.